Skip to content

Commit

Permalink
clean up console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-curtis committed May 17, 2017
1 parent ecc5694 commit ea4324d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/Designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Designer extends Component {

componentWillMount() {
this.objectRefs = {};
// console.log("will mount", this.props)
}

showHandler(index) {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand All @@ -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 = {
Expand Down Expand Up @@ -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];
}

Expand Down
3 changes: 0 additions & 3 deletions src/Handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion src/objects/Vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/panels/PanelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions src/panels/TextPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ea4324d

Please sign in to comment.