mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 23:27:23 +01:00
refactor: Remove debug logging from WebGL2LayerClass initialization and syncTransform methods
This commit is contained in:
parent
744dbb154c
commit
ae6d105bf1
1 changed files with 0 additions and 9 deletions
|
|
@ -34,8 +34,6 @@ export class WebGL2LayerClass {
|
||||||
this.scene = new Scene();
|
this.scene = new Scene();
|
||||||
this.camera = new OrthographicCamera(0, graphWidth, 0, graphHeight, -1, 1);
|
this.camera = new OrthographicCamera(0, graphWidth, 0, graphHeight, -1, 1);
|
||||||
|
|
||||||
console.log("WebGL2Layer: initialized");
|
|
||||||
|
|
||||||
svg.on("zoom.webgl", () => this.requestRender());
|
svg.on("zoom.webgl", () => this.requestRender());
|
||||||
|
|
||||||
// Process pre-init registrations (register() before init() is explicitly safe)
|
// Process pre-init registrations (register() before init() is explicitly safe)
|
||||||
|
|
@ -101,13 +99,6 @@ export class WebGL2LayerClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
syncTransform(): void {
|
syncTransform(): void {
|
||||||
console.log("WebGL2Layer: syncing transform", {
|
|
||||||
viewX,
|
|
||||||
viewY,
|
|
||||||
scale,
|
|
||||||
graphWidth,
|
|
||||||
graphHeight,
|
|
||||||
});
|
|
||||||
if (!this.camera) return;
|
if (!this.camera) return;
|
||||||
const x = -viewX / scale;
|
const x = -viewX / scale;
|
||||||
const y = -viewY / scale;
|
const y = -viewY / scale;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue