Przeglądaj źródła

[ts] Removed logging from CameraController, update to version 4.0.14.

Mario Zechner 4 lat temu
rodzic
commit
deeb845011

+ 2 - 2
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",

+ 2 - 2
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"
   }
-}
+}

+ 2 - 2
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"
   }
-}
+}

+ 1 - 1
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",

+ 2 - 2
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"
   }
-}
+}

+ 2 - 2
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"
   }
-}
+}

+ 2 - 2
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"
   }
-}
+}

+ 0 - 5
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;
 			},