Skip to content

Commit 818f64b

Browse files
committed
Clean up cube file
1 parent 42a5557 commit 818f64b

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

src/arCube.ts

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,8 @@ class ArCube {
2929
this.scaleSignal = new Signal(this);
3030
this.bgCubeCenter = new THREE.Vector3();
3131
this.initialize();
32-
// console.log('bears start');
33-
// const { getState, setState } = useBearStore;
34-
// const bears = getState().bears;
35-
// console.log('bears - test');
36-
// console.log('bears 1', bears);
37-
// const inc = useBearStore.getState().increase;
38-
// inc(2);
39-
// console.log('bears 2', getState().bears);
40-
41-
// setState({ bears: 5 });
42-
43-
// console.log('bears 3', getState().bears);
44-
45-
// inc(3);
46-
47-
// setState({ tests: 3 });
48-
// console.log('bears 4', getState());
49-
50-
// this.animate();
51-
// window.addEventListener('markerFound', () => {
52-
// console.log('Marker found');
53-
// });
54-
55-
// window.addEventListener('markerLost', () => {
56-
// console.log('Marker lost');
57-
// });
5832
}
5933

60-
bears: number;
61-
6234
modelInScene: string[];
6335
scenesWithModel: Record<string, number[]>;
6436
clock: THREE.Clock;
@@ -92,30 +64,6 @@ class ArCube {
9264
arjsVid: HTMLElement | null;
9365
videoDeviceIdUnsub: () => void;
9466
isSecondSceneUnsub: () => void;
95-
// sceneGroup: THREE.Group;
96-
// sceneGroupArray: THREE.Group[];
97-
// edgeGroup: THREE.Group;
98-
// gltfModel: THREE.Group;
99-
// observer: IntersectionObserver;
100-
// readonly markerControls: any;
101-
// readonly ambientLight: THREE.AmbientLight;
102-
// readonly rotationArray: THREE.Vector3[];
103-
// readonly markerRoot: THREE.Group;
104-
// readonly markerGroup: THREE.Group;
105-
// readonly pointLight: THREE.PointLight;
106-
// readonly loader: THREE.TextureLoader;
107-
// readonly stageMesh: THREE.MeshBasicMaterial;
108-
// readonly stage: THREE.Mesh;
109-
// readonly edgeGeometry: THREE.CylinderGeometry;
110-
// readonly edgeCenters: THREE.Vector3[];
111-
// readonly edgeRotations: THREE.Vector3[];
112-
// readonly animationRequestId: number | undefined;
113-
// readonly now: number;
114-
// readonly then: number;
115-
// readonly elapsed: number;
116-
// readonly fpsInterval: number;
117-
// readonly webcamFromArjs: HTMLElement | null;
118-
// model: IModelRegistryData;
11967
themeChangedSignal: ISignal<
12068
IThemeManager,
12169
IChangedArgs<string, string | null>
@@ -126,7 +74,6 @@ class ArCube {
12674
this.modelInScene = new Array(2);
12775
this.scenesWithModel = {};
12876

129-
// TODO: this returns the unsub function, use that
13077
this.videoDeviceIdUnsub = useCubeStore.subscribe(
13178
state => state.videoDeviceId,
13279
videoDeviceId => {

0 commit comments

Comments
 (0)