Skip to content

Commit

Permalink
feat(stuff): stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gar committed Feb 25, 2017
1 parent 2776771 commit f22004e
Show file tree
Hide file tree
Showing 8 changed files with 231 additions and 8 deletions.
220 changes: 220 additions & 0 deletions dist/index.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.umd.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/index.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.umd.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"build:main": "babel src",
"build:umd": "webpack --config webpack.config.babel.js --output-filename index.umd.js",
"build:umd.min": "webpack --config webpack.config.babel.js --output-filename index.umd.min.js -p",
"build:utilities": "webpack --config webpack.config.utilities.babel.js --output-filename utilities.umd.min.js -p",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/Render.js → src/Handwrite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Circle} from './Helper'

class Render {
class Handwrite {
constructor(canvas, image) {

this.image = image
Expand Down Expand Up @@ -83,4 +83,4 @@ class Render {
}
}

export default Render
export default Handwrite
8 changes: 4 additions & 4 deletions src/dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DragFile from './DragFile.js'
import Capture from './Capture.js'
import Render from './Render.js'
import Handwrite from './Handwrite.js'


const dragTarget = document.getElementById('dragTarget');
Expand All @@ -24,7 +24,7 @@ const startOver = document.getElementById('startOver');

class Dev {
constructor() {
this.render = null


brushSize.addEventListener('change', this.brushUpdate.bind(this))
this.capture = new Capture(captureCanvas, brushSize.value)
Expand Down Expand Up @@ -72,12 +72,12 @@ class Dev {

this.capture.signals.pointsUpdated.add(this.pointsUpdated)

this.render = new Render(renderCanvas, renderImage)
this.handwrite = new Handwrite(renderCanvas, renderImage)
}


draw(points) {
this.render.draw(points, {radius:this.capture.radius})
this.handwrite.draw(points, {radius:this.capture.radius})
}


Expand Down
2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {join} from 'path'
const include = join(__dirname, 'src')

export default {
entry: './src/FrecklesHack.js',
entry: './src/Handwrite.js',
output: {
path: join(__dirname, 'dist'),
libraryTarget: 'umd',
Expand Down

0 comments on commit f22004e

Please sign in to comment.