[ts] Closes #2207, updates threejs to latest.

This commit is contained in:
Mario Zechner 2022-11-28 09:09:38 +01:00
parent 8c3533835a
commit c19194ac7d
3 changed files with 35 additions and 19 deletions

View File

@ -53,9 +53,17 @@
"dev": true "dev": true
}, },
"node_modules/@types/three": { "node_modules/@types/three": {
"version": "0.140.0", "version": "0.146.0",
"resolved": "https://registry.npmjs.org/@types/three/-/three-0.140.0.tgz", "resolved": "https://registry.npmjs.org/@types/three/-/three-0.146.0.tgz",
"integrity": "sha512-YPJLSIY6uKUOp1k6BZYDq5GtEIdhfeK04UCbc9IPAVbdn/RNjkfrbnyd7smrsNkJhc0IFASLpd3AAYgwqgXKVQ==" "integrity": "sha512-75AgysUrIvTCB054eQa2pDVFurfeFW8CrMQjpzjt3yHBfuuknoSvvsESd/3EhQxPrz9si3+P0wiDUVsWUlljfA==",
"dependencies": {
"@types/webxr": "*"
}
},
"node_modules/@types/webxr": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.0.tgz",
"integrity": "sha512-IUMDPSXnYIbEO2IereEFcgcqfDREOgmbGqtrMpVPpACTU6pltYLwHgVkrnYv0XhWEcjio9sYEfIEzgn3c7nDqA=="
}, },
"node_modules/accepts": { "node_modules/accepts": {
"version": "1.3.8", "version": "1.3.8",
@ -7569,9 +7577,9 @@
} }
}, },
"node_modules/three": { "node_modules/three": {
"version": "0.140.2", "version": "0.146.0",
"resolved": "https://registry.npmjs.org/three/-/three-0.140.2.tgz", "resolved": "https://registry.npmjs.org/three/-/three-0.146.0.tgz",
"integrity": "sha512-DdT/AHm/TbZXEhQKQpGt5/iSgBrmXpjU26FNtj1KhllVPTKj1eG4X/ShyD5W2fngE+I1s1wa4ttC4C3oCJt7Ag==" "integrity": "sha512-1lvNfLezN6OJ9NaFAhfX4sm5e9YCzHtaRgZ1+B4C+Hv6TibRMsuBAM5/wVKzxjpYIlMymvgsHEFrrigEfXnb2A=="
}, },
"node_modules/through": { "node_modules/through": {
"version": "2.3.8", "version": "2.3.8",
@ -7992,8 +8000,8 @@
"license": "LicenseRef-LICENSE", "license": "LicenseRef-LICENSE",
"dependencies": { "dependencies": {
"@esotericsoftware/spine-core": "^4.1.23", "@esotericsoftware/spine-core": "^4.1.23",
"@types/three": "^0.140.0", "@types/three": "^0.146.0",
"three": "^0.140.0" "three": "^0.146.0"
} }
}, },
"spine-webgl": { "spine-webgl": {
@ -8025,8 +8033,8 @@
"version": "file:spine-threejs", "version": "file:spine-threejs",
"requires": { "requires": {
"@esotericsoftware/spine-core": "^4.1.23", "@esotericsoftware/spine-core": "^4.1.23",
"@types/three": "^0.140.0", "@types/three": "^0.146.0",
"three": "^0.140.0" "three": "^0.146.0"
} }
}, },
"@esotericsoftware/spine-webgl": { "@esotericsoftware/spine-webgl": {
@ -8042,9 +8050,17 @@
"dev": true "dev": true
}, },
"@types/three": { "@types/three": {
"version": "0.140.0", "version": "0.146.0",
"resolved": "https://registry.npmjs.org/@types/three/-/three-0.140.0.tgz", "resolved": "https://registry.npmjs.org/@types/three/-/three-0.146.0.tgz",
"integrity": "sha512-YPJLSIY6uKUOp1k6BZYDq5GtEIdhfeK04UCbc9IPAVbdn/RNjkfrbnyd7smrsNkJhc0IFASLpd3AAYgwqgXKVQ==" "integrity": "sha512-75AgysUrIvTCB054eQa2pDVFurfeFW8CrMQjpzjt3yHBfuuknoSvvsESd/3EhQxPrz9si3+P0wiDUVsWUlljfA==",
"requires": {
"@types/webxr": "*"
}
},
"@types/webxr": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.0.tgz",
"integrity": "sha512-IUMDPSXnYIbEO2IereEFcgcqfDREOgmbGqtrMpVPpACTU6pltYLwHgVkrnYv0XhWEcjio9sYEfIEzgn3c7nDqA=="
}, },
"accepts": { "accepts": {
"version": "1.3.8", "version": "1.3.8",
@ -13963,9 +13979,9 @@
} }
}, },
"three": { "three": {
"version": "0.140.2", "version": "0.146.0",
"resolved": "https://registry.npmjs.org/three/-/three-0.140.2.tgz", "resolved": "https://registry.npmjs.org/three/-/three-0.146.0.tgz",
"integrity": "sha512-DdT/AHm/TbZXEhQKQpGt5/iSgBrmXpjU26FNtj1KhllVPTKj1eG4X/ShyD5W2fngE+I1s1wa4ttC4C3oCJt7Ag==" "integrity": "sha512-1lvNfLezN6OJ9NaFAhfX4sm5e9YCzHtaRgZ1+B4C+Hv6TibRMsuBAM5/wVKzxjpYIlMymvgsHEFrrigEfXnb2A=="
}, },
"through": { "through": {
"version": "2.3.8", "version": "2.3.8",

View File

@ -30,8 +30,8 @@
}, },
"homepage": "https://github.com/esotericsoftware/spine-runtimes#readme", "homepage": "https://github.com/esotericsoftware/spine-runtimes#readme",
"dependencies": { "dependencies": {
"@types/three": "^0.140.0", "@types/three": "^0.146.0",
"three": "^0.140.0", "three": "^0.146.0",
"@esotericsoftware/spine-core": "^4.1.23" "@esotericsoftware/spine-core": "^4.1.23"
} }
} }

View File

@ -195,7 +195,7 @@ export class SkeletonDebugRenderer implements Disposable {
for (let i = 0, n = bones.length; i < n; i++) { for (let i = 0, n = bones.length; i < n; i++) {
let bone = bones[i]; let bone = bones[i];
if (ignoredBones && ignoredBones.indexOf(bone.data.name) > -1) continue; if (ignoredBones && ignoredBones.indexOf(bone.data.name) > -1) continue;
shapes.circle(true, bone.worldX, bone.worldY, 3 * this.scale, SkeletonDebugRenderer.GREEN, 8); shapes.circle(true, bone.worldX, bone.worldY, 3 * this.scale, this.boneOriginColor, 8);
} }
} }