Skip to content

Commit

Permalink
Update three to 0.162
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardMoyse committed Mar 15, 2024
1 parent ce9bc00 commit dc2bcef
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 36 deletions.
4 changes: 2 additions & 2 deletions packages/phoenix-event-display/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
"jsroot": "^7.6.0",
"jszip": "^3.10.1",
"stats-js": "^1.0.1",
"three": "^0.160.0"
"three": "^0.162.0"
},
"devDependencies": {
"@babel/helper-string-parser": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.10",
"@compodoc/compodoc": "^1.1.21",
"@types/dat.gui": "^0.7.10",
"@types/three": "^0.155.0",
"@types/three": "^0.162.0",
"esbuild-loader": "^3.1.0",
"jest": "^29.6.2",
"ts-jest": "~29.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Tween, update as tweenUpdate } from '@tweenjs/tween.js';
import {
Group,
Object3D,
Object3DEventMap,
Vector3,
Plane,
Quaternion,
Expand Down Expand Up @@ -86,9 +87,13 @@ export class ThreeManager {
/** Loop to run for each frame to update stats. */
private uiLoop: () => void;
/** Function to check if the object intersected with raycaster is an event data */
private isEventData: (elem: Intersection<Object3D<Event>>) => boolean;
private isEventData: (
elem: Intersection<Object3D<Object3DEventMap>>,
) => boolean;
/** Function to check if the object intersected with raycaster is visible or lies in the clipped region */
private isVisible: (elem: Intersection<Object3D<Event>>) => boolean;
private isVisible: (
elem: Intersection<Object3D<Object3DEventMap>>,
) => boolean;
/** 'click' event listener callback to show 3D coordinates of the clicked point */
private show3DPointsCallback: (event: MouseEvent) => void;
/** 'click' event listener callback to shift the cartesian grid at the clicked point */
Expand Down Expand Up @@ -341,7 +346,7 @@ export class ThreeManager {
/**
* Returns the mainIntersect upon clicking a point
*/
private getMainIntersect(event): Intersection<Object3D<Event>> {
private getMainIntersect(event): Intersection<Object3D<Object3DEventMap>> {
const camera = this.controlsManager.getMainCamera();
const scene = this.sceneManager.getScene();
const raycaster = new Raycaster();
Expand Down
2 changes: 1 addition & 1 deletion packages/phoenix-ng/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"phoenix-ui-components": "^2.14.1",
"qrcode": "1.5.3",
"rxjs": "^7.8.1",
"three": "^0.160.0",
"three": "^0.162.0",
"tslib": "^2.6.1",
"typescript": "~5.1.6",
"zone.js": "^0.13.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit, Input } from '@angular/core';
import { ActiveVariable } from 'phoenix-event-display';
import { EventDisplayService } from '../../../../services/event-display.service';
import { Object3D, Event } from 'three';
import { Object3D, Object3DEventMap } from 'three';

@Component({
selector: 'app-geometry-browser-overlay',
Expand All @@ -13,7 +13,7 @@ export class GeometryBrowserOverlayComponent implements OnInit {
selectedCollection: string;
showingCollection: any;
activeObject: ActiveVariable<string>;
children: Object3D<Event>[];
children: Object3D<Object3DEventMap>[];

constructor(private eventDisplay: EventDisplayService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"css-element-queries": "^1.2.3",
"qrcode": "1.5.3",
"rxjs": "^7.8.1",
"three": "^0.160.0",
"three": "^0.162.0",
"tslib": "^2.6.1"
},
"devDependencies": {
Expand Down
46 changes: 19 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5722,10 +5722,10 @@ __metadata:
languageName: node
linkType: hard

"@tweenjs/tween.js@npm:~18.6.4":
version: 18.6.4
resolution: "@tweenjs/tween.js@npm:18.6.4"
checksum: 47208db3f6c32cde80284a852d0fca016284f90c4798eb4ebb2ebfc2e379504007bf0c031c2c33044df8a0878fd1942ebc4e0b7f5b8bcccf812b532ea1ee73eb
"@tweenjs/tween.js@npm:~23.1.1":
version: 23.1.1
resolution: "@tweenjs/tween.js@npm:23.1.1"
checksum: a93b331f0c2dc2dd2fce2c08ab9e505cd71ce1b31a3e2218f31da4f2d2af84ac4c4eaab05f9929a7b7884c5e00c5d32e8fd1872e0a3e10e9cca20febc8d263b5
languageName: node
linkType: hard

Expand Down Expand Up @@ -6122,17 +6122,16 @@ __metadata:
languageName: node
linkType: hard

"@types/three@npm:^0.155.0":
version: 0.155.0
resolution: "@types/three@npm:0.155.0"
"@types/three@npm:^0.162.0":
version: 0.162.0
resolution: "@types/three@npm:0.162.0"
dependencies:
"@tweenjs/tween.js": ~18.6.4
"@tweenjs/tween.js": ~23.1.1
"@types/stats.js": "*"
"@types/webxr": "*"
fflate: ~0.6.9
lil-gui: ~0.17.0
fflate: ~0.6.10
meshoptimizer: ~0.18.1
checksum: decd966b198ad0f24febcbd16a2c3ff584e7b0f7f89e70c2ecb8c1a7842598a51f79cd0965220aa74d216ab4474ca2f6e4023904aa7ca0f38c93fc8b99e2a0d6
checksum: 4a5727506d53228fd24c21ae5e38f0952da09e660870bc58c0d69759433284297f4195aecc7df94a85d8585cc07a3d960f519b0a0c99bece7de2037516880013
languageName: node
linkType: hard

Expand Down Expand Up @@ -10776,7 +10775,7 @@ cors@latest:
languageName: node
linkType: hard

"fflate@npm:~0.6.9":
"fflate@npm:~0.6.10":
version: 0.6.10
resolution: "fflate@npm:0.6.10"
checksum: 96384bc4090987fe565c0de8204e3830f538144ec950576fea50aee1b42adbe9fc3ed5e7905dfa7979faaa20979def330dbebce548f3dcafc3e118cc9838526d
Expand Down Expand Up @@ -13837,13 +13836,6 @@ cors@latest:
languageName: node
linkType: hard

"lil-gui@npm:~0.17.0":
version: 0.17.0
resolution: "lil-gui@npm:0.17.0"
checksum: a6f33e90748ea98477f1f7af6d6cbdc4a1b38ce9da86d674d73f7b0bbdc7f3e947d81edee04c32f33fb28c69a108ba04c24270a8398064ffcc56ffeabc0a916e
languageName: node
linkType: hard

"lilconfig@npm:2.1.0":
version: 2.1.0
resolution: "lilconfig@npm:2.1.0"
Expand Down Expand Up @@ -16203,15 +16195,15 @@ cors@latest:
"@compodoc/compodoc": ^1.1.21
"@tweenjs/tween.js": ^21.0.0
"@types/dat.gui": ^0.7.10
"@types/three": ^0.155.0
"@types/three": ^0.162.0
dat.gui: ^0.7.9
esbuild-loader: ^3.1.0
html2canvas: ^1.4.1
jest: ^29.6.2
jsroot: ^7.6.0
jszip: ^3.10.1
stats-js: ^1.0.1
three: ^0.160.0
three: ^0.162.0
ts-jest: ~29.1.1
typescript: ~5.1.6
webpack: ^5.88.2
Expand Down Expand Up @@ -16253,7 +16245,7 @@ cors@latest:
phoenix-ui-components: ^2.14.1
qrcode: 1.5.3
rxjs: ^7.8.1
three: ^0.160.0
three: ^0.162.0
tslib: ^2.6.1
typescript: ~5.1.6
zone.js: ^0.13.1
Expand All @@ -16275,7 +16267,7 @@ cors@latest:
node-fetch: ^3.3.2
qrcode: 1.5.3
rxjs: ^7.8.1
three: ^0.160.0
three: ^0.162.0
tslib: ^2.6.1
peerDependencies:
"@angular/common": "*"
Expand Down Expand Up @@ -18753,10 +18745,10 @@ proxy-middleware@latest:
languageName: node
linkType: hard

"three@npm:^0.160.0":
version: 0.160.0
resolution: "three@npm:0.160.0"
checksum: ae9aadbcdfcbf2afdfeebc376abacd980c4cbcd0177dbe56e1420305bcc3dea9115b865932937b74445d937f463623a496e9784c39e238b32f982d6a22c6311d
"three@npm:^0.162.0":
version: 0.162.0
resolution: "three@npm:0.162.0"
checksum: f3ba4d518f7cb209b6e4f8818177c1230014fc1b3dcd66ab113a9babf8e2b522645a1eb144dfc0900bf194e8890bc5d04f358dd4a7f06ee8aa44db56224f88fc
languageName: node
linkType: hard

Expand Down

0 comments on commit dc2bcef

Please sign in to comment.