diff --git a/frontend/apps/editor2d/src/KonvaApp/EditEngine.ts b/frontend/apps/editor2d/src/KonvaApp/EditEngine.ts index ecb81ffb7a..c317f0528e 100644 --- a/frontend/apps/editor2d/src/KonvaApp/EditEngine.ts +++ b/frontend/apps/editor2d/src/KonvaApp/EditEngine.ts @@ -279,26 +279,26 @@ export class EditEngine { public async setupStage() { // Frame rate inicator - const textNode = new Konva.Text({ - x: 10, - y: 80, - text: "", - fontSize: 18, - fontFamily: "Source Sans 3", - fill: "white", - }); - const anim = new Konva.Animation((frame) => { - if (frame && import.meta.env.DEV) { - const timeDiff = frame.timeDiff; - const frameRate = frame.frameRate; - textNode.setText( - `FrameTime: ${timeDiff.toFixed(0)} ms\nFrameRate: ${frameRate.toFixed(0)} fps`, - ); - } - }, this.mediaLayer); + // const textNode = new Konva.Text({ + // x: 10, + // y: 80, + // text: "", + // fontSize: 18, + // fontFamily: "Source Sans 3", + // fill: "white", + // }); + // const anim = new Konva.Animation((frame) => { + // if (frame && import.meta.env.DEV) { + // const timeDiff = frame.timeDiff; + // const frameRate = frame.frameRate; + // textNode.setText( + // `FrameTime: ${timeDiff.toFixed(0)} ms\nFrameRate: ${frameRate.toFixed(0)} fps`, + // ); + // } + // }, this.mediaLayer); - anim.start(); - this.uiLayer.add(textNode); + // anim.start(); + // this.uiLayer.add(textNode); this.addKeyboardShortcuts(); } diff --git a/frontend/apps/editor2d/src/KonvaApp/Engine.ts b/frontend/apps/editor2d/src/KonvaApp/Engine.ts index 9f1c7ceb9b..7e808ef635 100644 --- a/frontend/apps/editor2d/src/KonvaApp/Engine.ts +++ b/frontend/apps/editor2d/src/KonvaApp/Engine.ts @@ -561,26 +561,26 @@ export class Engine { public async setupStage() { // Frame rate inicator - const textNode = new Konva.Text({ - x: 10, - y: 80, - text: "", - fontSize: 18, - fontFamily: "Source Sans 3", - fill: "white", - }); - const anim = new Konva.Animation((frame) => { - if (frame && import.meta.env.DEV) { - const timeDiff = frame.timeDiff; - const frameRate = frame.frameRate; - textNode.setText( - `FrameTime: ${timeDiff.toFixed(0)} ms\nFrameRate: ${frameRate.toFixed(0)} fps`, - ); - } - }, this.mediaLayer); + // const textNode = new Konva.Text({ + // x: 10, + // y: 80, + // text: "", + // fontSize: 18, + // fontFamily: "Source Sans 3", + // fill: "white", + // }); + // const anim = new Konva.Animation((frame) => { + // if (frame && import.meta.env.DEV) { + // const timeDiff = frame.timeDiff; + // const frameRate = frame.frameRate; + // textNode.setText( + // `FrameTime: ${timeDiff.toFixed(0)} ms\nFrameRate: ${frameRate.toFixed(0)} fps`, + // ); + // } + // }, this.mediaLayer); - anim.start(); - this.uiLayer.add(textNode); + // anim.start(); + //this.uiLayer.add(textNode); this.addKeyboardShortcuts(); }