Skip to content

Commit 8ea354c

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
fix(soba): update controls
1 parent ff694a2 commit 8ea354c

File tree

4 files changed

+851
-796
lines changed

4 files changed

+851
-796
lines changed

apps/sandbox/src/app/pages/animation-keyframes/index.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SceneGraph {
2323
readonly #pmremGenerator = new THREE.PMREMGenerator(this.#gl);
2424

2525
readonly statsDom = this.#gl.domElement.parentElement as HTMLElement;
26-
readonly texture = this.#pmremGenerator.fromScene(new RoomEnvironment(), 0.04).texture;
26+
readonly texture = this.#pmremGenerator.fromScene(RoomEnvironment(), 0.04).texture;
2727

2828
readonly #gltf = injectNgtsGLTFLoader(() => 'LittlestTokyo.glb');
2929

libs/soba/controls/src/orbit-controls/orbit-controls.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ import {
88
Input,
99
Output,
1010
} from '@angular/core';
11-
import { injectBeforeRender, injectNgtRef, NgtArgs, NgtSignalStore, NgtStore, NgtVector3 } from 'angular-three';
11+
import {
12+
injectBeforeRender,
13+
injectNgtRef,
14+
NgtArgs,
15+
NgtSignalStore,
16+
NgtStore,
17+
type NgtCamera,
18+
type NgtVector3,
19+
} from 'angular-three';
1220
import { OrbitControls } from 'three-stdlib';
1321

1422
export type NgtsOrbitControlsState = {
@@ -98,7 +106,7 @@ export class NgtsOrbitControls extends NgtSignalStore<NgtsOrbitControlsState> {
98106
const controlsCamera = camera || defaultCamera;
99107
const controls = this.controlsRef.nativeElement;
100108
if (!controls || controls.object !== controlsCamera) {
101-
this.controlsRef.nativeElement = new OrbitControls(controlsCamera);
109+
this.controlsRef.nativeElement = new OrbitControls(controlsCamera as NgtCamera);
102110
}
103111
},
104112
{ allowSignalWrites: true }

package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
},
99
"private": true,
1010
"devDependencies": {
11-
"@analogjs/platform": "^0.2.0-beta.11",
12-
"@angular-devkit/build-angular": "16.0.2",
13-
"@angular-devkit/core": "16.0.2",
14-
"@angular-devkit/schematics": "16.0.2",
11+
"@analogjs/platform": "^0.2.0-beta.13",
12+
"@angular-devkit/build-angular": "16.0.3",
13+
"@angular-devkit/core": "16.0.3",
14+
"@angular-devkit/schematics": "16.0.3",
1515
"@angular-eslint/eslint-plugin": "16.0.2",
1616
"@angular-eslint/eslint-plugin-template": "16.0.2",
1717
"@angular-eslint/template-parser": "16.0.2",
18-
"@angular/cli": "~16.0.2",
19-
"@angular/compiler-cli": "16.0.2",
20-
"@angular/language-service": "16.0.2",
18+
"@angular/cli": "~16.0.3",
19+
"@angular/compiler-cli": "16.0.3",
20+
"@angular/language-service": "16.0.3",
2121
"@nx/angular": "16.2.2",
2222
"@nx/devkit": "16.2.2",
2323
"@nx/eslint-plugin": "16.2.2",
@@ -31,19 +31,19 @@
3131
"@nx/workspace": "16.2.2",
3232
"@release-it/bumper": "^4.0.2",
3333
"@release-it/conventional-changelog": "^5.1.1",
34-
"@schematics/angular": "16.0.2",
35-
"@storybook/addon-essentials": "7.0.12",
36-
"@storybook/angular": "7.0.12",
37-
"@storybook/core-server": "7.0.12",
34+
"@schematics/angular": "16.0.3",
35+
"@storybook/addon-essentials": "7.0.18",
36+
"@storybook/angular": "7.0.18",
37+
"@storybook/core-server": "7.0.18",
3838
"@swc-node/register": "^1.6.5",
3939
"@swc/cli": "0.1.62",
40-
"@swc/core": "^1.3.59",
40+
"@swc/core": "^1.3.60",
4141
"@types/jest": "29.5.1",
4242
"@types/node": "18.15.11",
4343
"@types/stats.js": "^0.17.0",
44-
"@types/three": "^0.152.0",
45-
"@typescript-eslint/eslint-plugin": "5.59.6",
46-
"@typescript-eslint/parser": "5.59.6",
44+
"@types/three": "^0.152.1",
45+
"@typescript-eslint/eslint-plugin": "5.59.7",
46+
"@typescript-eslint/parser": "5.59.7",
4747
"autoprefixer": "^10.4.14",
4848
"daisyui": "^2.51.6",
4949
"dotenv-cli": "^7.2.1",
@@ -54,7 +54,7 @@
5454
"jest": "29.5.0",
5555
"jest-environment-jsdom": "29.5.0",
5656
"jest-preset-angular": "13.1.1",
57-
"jsdom": "^22.0.0",
57+
"jsdom": "^22.1.0",
5858
"jsonc-eslint-parser": "^2.3.0",
5959
"ng-packagr": "~16.0.1",
6060
"nx": "16.2.2",
@@ -71,31 +71,31 @@
7171
"ts-jest": "29.1.0",
7272
"ts-node": "10.9.1",
7373
"typescript": "5.0.4",
74-
"vite": "4.3.8",
74+
"vite": "4.3.9",
7575
"vite-plugin-glslify": "^2.0.1",
7676
"vite-tsconfig-paths": "4.2.0",
7777
"vitest": "0.31.1"
7878
},
7979
"dependencies": {
80-
"@analogjs/content": "^0.2.0-beta.11",
81-
"@analogjs/router": "^0.2.0-beta.11",
82-
"@angular/animations": "16.0.2",
83-
"@angular/cdk": "16.0.1",
84-
"@angular/common": "16.0.2",
85-
"@angular/compiler": "16.0.2",
86-
"@angular/core": "16.0.2",
87-
"@angular/forms": "16.0.2",
88-
"@angular/platform-browser": "16.0.2",
89-
"@angular/platform-browser-dynamic": "16.0.2",
90-
"@angular/platform-server": "^16.0.2",
91-
"@angular/router": "16.0.2",
80+
"@analogjs/content": "^0.2.0-beta.13",
81+
"@analogjs/router": "^0.2.0-beta.13",
82+
"@angular/animations": "16.0.3",
83+
"@angular/cdk": "16.0.2",
84+
"@angular/common": "16.0.3",
85+
"@angular/compiler": "16.0.3",
86+
"@angular/core": "16.0.3",
87+
"@angular/forms": "16.0.3",
88+
"@angular/platform-browser": "16.0.3",
89+
"@angular/platform-browser-dynamic": "16.0.3",
90+
"@angular/platform-server": "^16.0.3",
91+
"@angular/router": "16.0.3",
9292
"@pmndrs/cannon-worker-api": "^2.3.2",
9393
"@rx-angular/state": "^14.0.0",
9494
"@swc/helpers": "0.5.1",
9595
"cannon-es": "^0.20.0",
9696
"cannon-es-debugger": "^1.0.0",
9797
"front-matter": "^4.0.2",
98-
"marked": "^5.0.2",
98+
"marked": "^5.0.3",
9999
"ngx-resize": "^2.0.0",
100100
"nice-color-palettes": "^3.0.0",
101101
"postprocessing": "^6.31.0",
@@ -106,7 +106,7 @@
106106
"stats.js": "^0.17.0",
107107
"three": "^0.152.2",
108108
"three-mesh-bvh": "^0.6.0",
109-
"three-stdlib": "^2.21.12",
109+
"three-stdlib": "^2.23.4",
110110
"troika-three-text": "^0.47.2",
111111
"tslib": "^2.5.2",
112112
"zone.js": "0.13.0"

0 commit comments

Comments
 (0)