Alejandro Toledo 5 лет назад
Родитель
Сommit
02edc66ad1

+ 1 - 26
inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationCurveEditorComponent.tsx

@@ -201,8 +201,6 @@ export class AnimationCurveEditorComponent extends React.Component<
     } else {
       scaleX = this.state.scale + 0.01;
     }
-    console.log(scaleX);
-    //this.setState({ scale: scaleX }, this.setAxesLength);
   }
 
   setFrameAxis(currentLength: number) {
@@ -251,18 +249,6 @@ export class AnimationCurveEditorComponent extends React.Component<
 
     let valueLines = Math.round((this.state.scale * this._heightScale) / 10);
 
-    let halfNegative = new Array(length / 2).fill(0).map((s, i) => {
-      return { value: -i * 10, label: -i };
-    });
-
-    let halfPositive = new Array(length / 2).fill(0).map((s, i) => {
-      return { value: i * 10, label: i };
-    });
-
-    let mixed = [...halfNegative, ...halfPositive];
-
-    console.log(mixed);
-
     let newFrameLength = new Array(length).fill(0).map((s, i) => {
       return { value: i * 10, label: i };
     });
@@ -1198,11 +1184,8 @@ export class AnimationCurveEditorComponent extends React.Component<
           pointB
         );
 
-        if (controlPoints === undefined) {
-          console.log('error getting bezier control points');
-        } else {
+        if (controlPoints !== undefined) {
           this.setKeyframePoint(controlPoints, i, keyframes.length);
-
           data += ` C${controlPoints[1].x} ${controlPoints[1].y} ${controlPoints[2].x} ${controlPoints[2].y} ${controlPoints[3].x} ${controlPoints[3].y}`;
         }
       }
@@ -1311,17 +1294,9 @@ export class AnimationCurveEditorComponent extends React.Component<
 
     if (coordinate === undefined) {
       this.playStopAnimation();
-
       updatedPath = this.getPathData(animation);
-
-      if (updatedPath === undefined) {
-        console.log('no keyframes in this animation');
-      }
     } else {
       let curves = this.getPathData(animation);
-      if (curves === undefined) {
-        console.log('no keyframes in this animation');
-      }
 
       updatedPath = [];
 

+ 0 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationListTree.tsx

@@ -290,7 +290,6 @@ export class AnimationListTree extends React.Component<
           },
         ]);
       default:
-        console.log('not recognized');
         return null;
     }
   }

+ 1 - 3
inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx

@@ -152,9 +152,7 @@ export class AnimationGridComponent extends React.Component<
 
   onCloseAnimationCurveEditor(window: Window | null) {
     this._isCurveEditorOpen = false;
-    if (window === null) {
-      console.log('Window already closed');
-    } else {
+    if (window !== null) {
       window.close();
     }
   }

+ 0 - 3
inspector/src/components/actionTabs/tabs/propertyGrids/animations/playhead.tsx

@@ -27,9 +27,6 @@ export class Playhead extends React.Component<IPlayheadProps> {
     e.preventDefault();
     if (this._active) {
       let moved = e.pageX - this._direction;
-
-      let framesToMove = Math.round(Math.abs(moved) / 2);
-      console.log(framesToMove);
       if (Math.sign(moved) === -1) {
         this.props.onCurrentFrameChange(this.props.frame - 1);
       } else {

+ 0 - 2
inspector/src/components/actionTabs/tabs/propertyGrids/animations/svgDraggableArea.tsx

@@ -157,8 +157,6 @@ export class SvgDraggableArea extends React.Component<
     });
     this.props.panningY(Math.round(newY));
     this.props.panningX(Math.round(newX));
-
-    console.log(Math.round(newX));
   }
 
   panTo(direction: string, value: number) {

+ 0 - 2
inspector/src/components/actionTabs/tabs/propertyGrids/animations/timeline.tsx

@@ -209,13 +209,11 @@ export class Timeline extends React.Component<
       ) {
         let updatedKeyframe = this.props.keyframes[this.state.activeKeyframe];
         if (this._direction > e.clientX) {
-          console.log(`Dragging left ${this.state.activeKeyframe}`);
           let used = this.isFrameBeingUsed(updatedKeyframe.frame - 1, -1);
           if (used) {
             updatedKeyframe.frame = used;
           }
         } else {
-          console.log(`Dragging Right ${this.state.activeKeyframe}`);
           let used = this.isFrameBeingUsed(updatedKeyframe.frame + 1, 1);
           if (used) {
             updatedKeyframe.frame = used;