From deeb84501187e25cff611f3cb16ea01a1c5f8b35 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 20 Sep 2021 21:16:52 +0200 Subject: [PATCH] [ts] Removed logging from CameraController, update to version 4.0.14. --- spine-ts/package-lock.json | 4 ++-- spine-ts/package.json | 4 ++-- spine-ts/spine-canvas/package.json | 4 ++-- spine-ts/spine-core/package.json | 2 +- spine-ts/spine-player/package.json | 4 ++-- spine-ts/spine-threejs/package.json | 4 ++-- spine-ts/spine-webgl/package.json | 4 ++-- spine-ts/spine-webgl/src/CameraController.ts | 5 ----- 8 files changed, 13 insertions(+), 18 deletions(-) diff --git a/spine-ts/package-lock.json b/spine-ts/package-lock.json index 5cfe579ed..23488f93a 100644 --- a/spine-ts/package-lock.json +++ b/spine-ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "@esotericsoftware/spine-ts", - "version": "4.0.13", + "version": "4.0.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@esotericsoftware/spine-ts", - "version": "4.0.13", + "version": "4.0.14", "license": "LicenseRef-LICENSE", "workspaces": [ "spine-core", diff --git a/spine-ts/package.json b/spine-ts/package.json index 7f2d64366..68f751129 100644 --- a/spine-ts/package.json +++ b/spine-ts/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-ts", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "files": [ "README.md" @@ -60,4 +60,4 @@ "typescript": "^4.3.5", "@types/offscreencanvas": "^2019.6.4" } -} \ No newline at end of file +} diff --git a/spine-ts/spine-canvas/package.json b/spine-ts/spine-canvas/package.json index cd9eed158..17e2e7407 100644 --- a/spine-ts/spine-canvas/package.json +++ b/spine-ts/spine-canvas/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-canvas", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -32,4 +32,4 @@ "dependencies": { "@esotericsoftware/spine-core": "^4.0.13" } -} \ No newline at end of file +} diff --git a/spine-ts/spine-core/package.json b/spine-ts/spine-core/package.json index 98f2d4de6..399a5afa1 100644 --- a/spine-ts/spine-core/package.json +++ b/spine-ts/spine-core/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-core", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/spine-ts/spine-player/package.json b/spine-ts/spine-player/package.json index 29febf97c..6ea467f76 100644 --- a/spine-ts/spine-player/package.json +++ b/spine-ts/spine-player/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-player", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -32,4 +32,4 @@ "dependencies": { "@esotericsoftware/spine-webgl": "^4.0.13" } -} \ No newline at end of file +} diff --git a/spine-ts/spine-threejs/package.json b/spine-ts/spine-threejs/package.json index b3685f303..4b7de0e11 100644 --- a/spine-ts/spine-threejs/package.json +++ b/spine-ts/spine-threejs/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-threejs", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -34,4 +34,4 @@ "three": "^0.132.0", "@esotericsoftware/spine-core": "^4.0.13" } -} \ No newline at end of file +} diff --git a/spine-ts/spine-webgl/package.json b/spine-ts/spine-webgl/package.json index 860046d97..444450d8a 100644 --- a/spine-ts/spine-webgl/package.json +++ b/spine-ts/spine-webgl/package.json @@ -1,6 +1,6 @@ { "name": "@esotericsoftware/spine-webgl", - "version": "4.0.13", + "version": "4.0.14", "description": "The official Spine Runtimes for the web.", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -32,4 +32,4 @@ "dependencies": { "@esotericsoftware/spine-core": "^4.0.13" } -} \ No newline at end of file +} diff --git a/spine-ts/spine-webgl/src/CameraController.ts b/spine-ts/spine-webgl/src/CameraController.ts index 3c7493f2c..4df203b84 100644 --- a/spine-ts/spine-webgl/src/CameraController.ts +++ b/spine-ts/spine-webgl/src/CameraController.ts @@ -40,7 +40,6 @@ export class CameraController { new Input(canvas).addListener({ down: (x: number, y: number) => { - console.log(`Down ${x.toFixed(0)} ${y.toFixed(0)}`); cameraX = camera.position.x; cameraY = camera.position.y; mouseX = lastX = x; @@ -48,7 +47,6 @@ export class CameraController { initialZoom = camera.zoom; }, dragged: (x: number, y: number) => { - console.log(`Dragged ${x.toFixed(0)} ${y.toFixed(0)}`); let deltaX = x - mouseX; let deltaY = y - mouseY; let originWorld = camera.screenToWorld(new Vector3(0, 0), canvas.clientWidth, canvas.clientHeight); @@ -82,12 +80,9 @@ export class CameraController { }, zoom: (initialDistance, distance) => { let newZoom = initialDistance / distance; - console.log(`${newZoom}, ${initialDistance}, ${distance}`); camera.zoom = initialZoom * newZoom; - console.log(`zoom ${newZoom}`); }, up: (x: number, y: number) => { - console.log(`Up ${x.toFixed(0)} ${y.toFixed(0)}`); lastX = x; lastY = y; },