diff --git a/package.json b/package.json index 1535f5a64..3fc1b05d4 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "devDependencies": { "@types/mocha": "^10.0.1", - "@types/three": "^0.159.0", + "@types/three": "^0.160.0", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", "alive-server": "^1.3.0", diff --git a/packages/core/package.json b/packages/core/package.json index 7d096d225..86d64445f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,7 +7,7 @@ "main": "./src/index.ts", "types": "./src/index.ts", "dependencies": { - "three": "^0.159.0" + "three": "^0.160.0" }, "scripts": { "build": "tsup", diff --git a/packages/virtual-tour-plugin/src/utils.ts b/packages/virtual-tour-plugin/src/utils.ts index 33ee18be7..178b27df9 100644 --- a/packages/virtual-tour-plugin/src/utils.ts +++ b/packages/virtual-tour-plugin/src/utils.ts @@ -1,11 +1,11 @@ import { Position, utils } from '@photo-sphere-viewer/core'; -import { BufferGeometry, MathUtils, Mesh, MeshBasicMaterial } from 'three'; +import { BufferGeometry, MathUtils, Mesh, MeshBasicMaterial, MeshLambertMaterial } from 'three'; import { GpsPosition } from './model'; /** * Changes the color of a mesh */ -export function setMeshColor(mesh: Mesh, color: string) { +export function setMeshColor(mesh: Mesh, color: string) { mesh.material.color.set(color); } diff --git a/yarn.lock b/yarn.lock index fcb602c39..2f79d1f9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1520,10 +1520,10 @@ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.8.tgz#b94a4391c85666c7b73299fd3ad79d4faa435310" integrity sha512-ipixuVrh2OdNmauvtT51o3d8z12p6LtFW9in7U79der/kwejjdNchQC5UMn5u/KxNoM7VHHOs/l8KS8uHxhODQ== -"@types/three@^0.159.0": - version "0.159.0" - resolved "https://registry.yarnpkg.com/@types/three/-/three-0.159.0.tgz#e1c9d2a84543c2febee5244cc5cf7d657d13aa45" - integrity sha512-2gybdh7HtX+rGUgslzK7QEJfzD2I0qrbUGzKk+dK0FDx49UHkNX0rqZVRzIgeFjBd1HzzhNNgwNoMacm3Wyc7w== +"@types/three@^0.160.0": + version "0.160.0" + resolved "https://registry.yarnpkg.com/@types/three/-/three-0.160.0.tgz#7915a97e0a14ccaa9ccbb9f190c5730b04a23075" + integrity sha512-jWlbUBovicUKaOYxzgkLlhkiEQJkhCVvg4W2IYD2trqD2om3VK4DGLpHH5zQHNr7RweZK/5re/4IVhbhvxbV9w== dependencies: "@types/stats.js" "*" "@types/webxr" "*" @@ -10125,10 +10125,10 @@ thenify-all@^1.0.0: dependencies: any-promise "^1.0.0" -three@^0.159.0: - version "0.159.0" - resolved "https://registry.yarnpkg.com/three/-/three-0.159.0.tgz#6576b1210805b14f0765bac41fd0e4ec18e43b2e" - integrity sha512-eCmhlLGbBgucuo4VEA9IO3Qpc7dh8Bd4VKzr7WfW4+8hMcIfoAVi1ev0pJYN9PTTsCslbcKgBwr2wNZ1EvLInA== +three@^0.160.0: + version "0.160.0" + resolved "https://registry.yarnpkg.com/three/-/three-0.160.0.tgz#cd1e4dbd01aee0719280a9086d75545db52b7a8f" + integrity sha512-DLU8lc0zNIPkM7rH5/e1Ks1Z8tWCGRq6g8mPowdDJpw1CFBJMU7UoJjC6PefXW7z//SSl0b2+GCw14LB+uDhng== through2@^2.0.0: version "2.0.5"