diff --git a/src/components/paint-editor.jsx b/src/components/paint-editor.jsx index 68661388..39b570f0 100644 --- a/src/components/paint-editor.jsx +++ b/src/components/paint-editor.jsx @@ -16,7 +16,7 @@ class PaintEditorComponent extends React.Component { this.setState({canvas: canvas}); } render () { - // Tools can't work without a canvas, so we might as well not render them until we have it + // Tools can't work without a canvas, so we don't render them until we have it if (this.state.canvas) { return (
diff --git a/src/containers/paper-canvas.jsx b/src/containers/paper-canvas.jsx index a3b524ff..4ccb0b58 100644 --- a/src/containers/paper-canvas.jsx +++ b/src/containers/paper-canvas.jsx @@ -29,7 +29,6 @@ class PaperCanvas extends React.Component { paper.remove(); } setCanvas (canvas) { - debugger; this.canvas = canvas; if (this.props.canvasRef) { this.props.canvasRef(canvas); diff --git a/src/tools/blob.js b/src/tools/blob.js index d2617fc7..c6540633 100644 --- a/src/tools/blob.js +++ b/src/tools/blob.js @@ -1,6 +1,6 @@ -const paper = require('paper'); -const log = require('../log/log'); -const broadBrushHelper = require('./broad-brush-helper'); +import paper from 'paper'; +import log from '../log/log'; +import broadBrushHelper from './broad-brush-helper'; class BlobTool { @@ -11,9 +11,9 @@ class BlobTool { return 'segmentbrush'; } - // brush size >= threshold use segment brush, else use broadbrush + // If brush size >= threshold use segment brush, else use broadbrush // Segment brush has performance issues at low threshold, but broad brush has weird corners - // which are more obvious the bigger it is + // which get more obvious the bigger it is static get THRESHOLD () { return 100000; }