diff --git a/src/Designer.js b/src/Designer.js index f4d1187..43a26e8 100644 --- a/src/Designer.js +++ b/src/Designer.js @@ -52,7 +52,6 @@ class Designer extends Component { componentWillMount() { this.objectRefs = {}; - // console.log("will mount", this.props) } showHandler(index) { @@ -127,12 +126,8 @@ class Designer extends Component { newObject(event) { let {mode, selectedTool} = this.state; - // console.log(mode, selectedTool, this.state) - this.resetSelection(event); - // console.log(mode, selectedTool, this.state) - if (mode !== modes.DRAW) { return; } @@ -175,9 +170,6 @@ class Designer extends Component { y: diffY + y })); - // console.log(object) - // console.log("ID => ", object.uuid, "CHANGES :", JSON.stringify(newPath)); - return { ...object, path: newPath, @@ -188,9 +180,6 @@ class Designer extends Component { updateObject(objectIndex, changes, updatePath) { let {objects, onUpdate} = this.props; - // console.log("THIS PROPS => ",this.props) - // console.log(this.props, changes, updatePath, objectIndex) - // console.log(index, objectIndex) onUpdate(objects.map((object, index) => { if (index === objectIndex) { let newObject = { @@ -370,7 +359,6 @@ class Designer extends Component { getObjectComponent(type) { let {objectTypes} = this.props; - // console.log("OBJECT COMPONENT => ",objectTypes[type], "TYPE => ", type) return objectTypes[type]; } diff --git a/src/Handler.js b/src/Handler.js index ac16165..151bd9f 100644 --- a/src/Handler.js +++ b/src/Handler.js @@ -46,9 +46,6 @@ class Handler extends Component { render() { let {props} = this; - // console.log(props) - // props.boundingBox.height += 10 - // props.boundingBox.width += 10 let {boundingBox} = props; let handlerStyle = { diff --git a/src/objects/Vector.js b/src/objects/Vector.js index 4834cab..81fae7d 100644 --- a/src/objects/Vector.js +++ b/src/objects/Vector.js @@ -24,7 +24,6 @@ export default class Vector extends Component { } getTransformMatrix({rotate, x, y, width, height}) { - console.log(rotate) if (rotate) { let centerX = width / 2 + x; let centerY = height / 2 + y; diff --git a/src/panels/PanelList.js b/src/panels/PanelList.js index 001eda8..92ca491 100644 --- a/src/panels/PanelList.js +++ b/src/panels/PanelList.js @@ -16,7 +16,6 @@ import Column from './Column'; class PanelList extends Component { render() { let {object, offset, objectComponent, id} = this.props; - // console.log(this.props) let style = { left: offset.width + offset.x, top: offset.y + window.scrollY, diff --git a/src/panels/TextPanel.js b/src/panels/TextPanel.js index e051ee9..4773e92 100644 --- a/src/panels/TextPanel.js +++ b/src/panels/TextPanel.js @@ -17,7 +17,6 @@ import Autocomplete from 'react-autocomplete'; export default class TextPanel extends Panel { constructor(props){ super() - // console.log(props) this.state = { value: props.object.fontFamily } } @@ -105,9 +104,6 @@ export default class TextPanel extends Panel { } }); this.props.onChange('fontFamily', value) - // console.log(this, e.target.options[e.target.selectedIndex].text) - // this.props.onChange('fontFamily', e.target.value) - // (e) => this.props.onChange('fontFamily', e.target.value) } matchStateToTerm (state, value) {