@tomorrowevening/hermes 0.0.111 → 0.0.112
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hermes.cjs.js +14 -14
- package/dist/hermes.es.js +1373 -1368
- package/package.json +1 -1
- package/types/editor/multiView/MultiView.d.ts +116 -116
- package/types/editor/sidePanel/inspector/utils/InspectAnimation.d.ts +8 -3
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"module": "./dist/hermes.esm.js",
|
8
8
|
"types": "./types/index.d.ts",
|
9
9
|
"type": "module",
|
10
|
-
"version": "0.0.
|
10
|
+
"version": "0.0.112",
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
12
12
|
"bugs": {
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
@@ -1,116 +1,116 @@
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
2
|
-
import { Camera, Object3D, OrthographicCamera, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
3
|
-
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
4
|
-
import RemoteThree from '@/core/remote/RemoteThree';
|
5
|
-
import { InteractionMode, MultiViewMode } from './MultiViewData';
|
6
|
-
import './MultiView.scss';
|
7
|
-
type MultiViewProps = {
|
8
|
-
three: RemoteThree;
|
9
|
-
scenes: Map<string, any>;
|
10
|
-
onSceneSet?: (scene: Scene) => void;
|
11
|
-
onSceneUpdate?: (scene: Scene) => void;
|
12
|
-
onSceneResize?: (scene: Scene, width: number, height: number) => void;
|
13
|
-
};
|
14
|
-
type MultiViewState = {
|
15
|
-
mode: MultiViewMode;
|
16
|
-
modeOpen: boolean;
|
17
|
-
renderModeOpen: boolean;
|
18
|
-
interactionMode: InteractionMode;
|
19
|
-
interactionModeOpen: boolean;
|
20
|
-
lastUpdate: number;
|
21
|
-
};
|
22
|
-
export default class MultiView extends Component<MultiViewProps, MultiViewState> {
|
23
|
-
static instance: MultiView | null;
|
24
|
-
scene: Scene;
|
25
|
-
renderer?: WebGLRenderer | null;
|
26
|
-
currentScene?: Scene;
|
27
|
-
cameras: Map<string, Camera>;
|
28
|
-
controls: Map<string, OrbitControls>;
|
29
|
-
currentCamera: PerspectiveCamera | OrthographicCamera;
|
30
|
-
currentWindow: any;
|
31
|
-
private cameraHelpers;
|
32
|
-
private lightHelpers;
|
33
|
-
private helpersContainer;
|
34
|
-
private grid;
|
35
|
-
private axisHelper;
|
36
|
-
private interactionHelper;
|
37
|
-
private currentTransform?;
|
38
|
-
private splineEditor;
|
39
|
-
private depthMaterial;
|
40
|
-
private normalsMaterial;
|
41
|
-
private uvMaterial;
|
42
|
-
private wireframeMaterial;
|
43
|
-
private playing;
|
44
|
-
private rafID;
|
45
|
-
private width;
|
46
|
-
private height;
|
47
|
-
private sceneSet;
|
48
|
-
private tlCam;
|
49
|
-
private trCam;
|
50
|
-
private blCam;
|
51
|
-
private brCam;
|
52
|
-
private tlRender;
|
53
|
-
private trRender;
|
54
|
-
private blRender;
|
55
|
-
private brRender;
|
56
|
-
private cameraVisibility;
|
57
|
-
private lightVisibility;
|
58
|
-
selectedItem: Object3D | undefined;
|
59
|
-
private debugCamera;
|
60
|
-
private raycaster;
|
61
|
-
private pointer;
|
62
|
-
private cameraControls;
|
63
|
-
private canvasRef;
|
64
|
-
private containerRef;
|
65
|
-
private tlWindow;
|
66
|
-
private trWindow;
|
67
|
-
private blWindow;
|
68
|
-
private brWindow;
|
69
|
-
constructor(props: MultiViewProps);
|
70
|
-
componentDidMount(): void;
|
71
|
-
componentDidUpdate(prevProps: Readonly<MultiViewProps>, prevState: Readonly<MultiViewState>, snapshot?: any): void;
|
72
|
-
componentWillUnmount(): void;
|
73
|
-
render(): ReactNode;
|
74
|
-
private setupRenderer;
|
75
|
-
private setupScene;
|
76
|
-
private setupTools;
|
77
|
-
play(): void;
|
78
|
-
pause(): void;
|
79
|
-
toggleOrbitControls(value: boolean): void;
|
80
|
-
private update;
|
81
|
-
private draw;
|
82
|
-
private onUpdate;
|
83
|
-
private enable;
|
84
|
-
private disable;
|
85
|
-
private resize;
|
86
|
-
private sceneUpdate;
|
87
|
-
private addCamera;
|
88
|
-
private removeCamera;
|
89
|
-
private onMouseMove;
|
90
|
-
private onClick;
|
91
|
-
private onKey;
|
92
|
-
private onSetSelectedItem;
|
93
|
-
private updateSelectedItemHelper;
|
94
|
-
private onUpdateTransform;
|
95
|
-
private clearLightHelpers;
|
96
|
-
private addLightHelpers;
|
97
|
-
private createControls;
|
98
|
-
private clearCamera;
|
99
|
-
private killControls;
|
100
|
-
private assignControls;
|
101
|
-
private updateCamera;
|
102
|
-
private updateCameraControls;
|
103
|
-
private clearControls;
|
104
|
-
private saveExpandedCameraVisibility;
|
105
|
-
private saveExpandedLightVisibility;
|
106
|
-
private getSceneOverride;
|
107
|
-
private drawSingle;
|
108
|
-
private drawDouble;
|
109
|
-
private drawQuad;
|
110
|
-
get appID(): string;
|
111
|
-
get mode(): MultiViewMode;
|
112
|
-
get three(): RemoteThree;
|
113
|
-
get expandedCameraVisibility(): string;
|
114
|
-
get expandedLightVisibility(): string;
|
115
|
-
}
|
116
|
-
export {};
|
1
|
+
import { Component, ReactNode } from 'react';
|
2
|
+
import { Camera, Object3D, OrthographicCamera, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
3
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
4
|
+
import RemoteThree from '@/core/remote/RemoteThree';
|
5
|
+
import { InteractionMode, MultiViewMode } from './MultiViewData';
|
6
|
+
import './MultiView.scss';
|
7
|
+
type MultiViewProps = {
|
8
|
+
three: RemoteThree;
|
9
|
+
scenes: Map<string, any>;
|
10
|
+
onSceneSet?: (scene: Scene) => void;
|
11
|
+
onSceneUpdate?: (scene: Scene) => void;
|
12
|
+
onSceneResize?: (scene: Scene, width: number, height: number) => void;
|
13
|
+
};
|
14
|
+
type MultiViewState = {
|
15
|
+
mode: MultiViewMode;
|
16
|
+
modeOpen: boolean;
|
17
|
+
renderModeOpen: boolean;
|
18
|
+
interactionMode: InteractionMode;
|
19
|
+
interactionModeOpen: boolean;
|
20
|
+
lastUpdate: number;
|
21
|
+
};
|
22
|
+
export default class MultiView extends Component<MultiViewProps, MultiViewState> {
|
23
|
+
static instance: MultiView | null;
|
24
|
+
scene: Scene;
|
25
|
+
renderer?: WebGLRenderer | null;
|
26
|
+
currentScene?: Scene;
|
27
|
+
cameras: Map<string, Camera>;
|
28
|
+
controls: Map<string, OrbitControls>;
|
29
|
+
currentCamera: PerspectiveCamera | OrthographicCamera;
|
30
|
+
currentWindow: any;
|
31
|
+
private cameraHelpers;
|
32
|
+
private lightHelpers;
|
33
|
+
private helpersContainer;
|
34
|
+
private grid;
|
35
|
+
private axisHelper;
|
36
|
+
private interactionHelper;
|
37
|
+
private currentTransform?;
|
38
|
+
private splineEditor;
|
39
|
+
private depthMaterial;
|
40
|
+
private normalsMaterial;
|
41
|
+
private uvMaterial;
|
42
|
+
private wireframeMaterial;
|
43
|
+
private playing;
|
44
|
+
private rafID;
|
45
|
+
private width;
|
46
|
+
private height;
|
47
|
+
private sceneSet;
|
48
|
+
private tlCam;
|
49
|
+
private trCam;
|
50
|
+
private blCam;
|
51
|
+
private brCam;
|
52
|
+
private tlRender;
|
53
|
+
private trRender;
|
54
|
+
private blRender;
|
55
|
+
private brRender;
|
56
|
+
private cameraVisibility;
|
57
|
+
private lightVisibility;
|
58
|
+
selectedItem: Object3D | undefined;
|
59
|
+
private debugCamera;
|
60
|
+
private raycaster;
|
61
|
+
private pointer;
|
62
|
+
private cameraControls;
|
63
|
+
private canvasRef;
|
64
|
+
private containerRef;
|
65
|
+
private tlWindow;
|
66
|
+
private trWindow;
|
67
|
+
private blWindow;
|
68
|
+
private brWindow;
|
69
|
+
constructor(props: MultiViewProps);
|
70
|
+
componentDidMount(): void;
|
71
|
+
componentDidUpdate(prevProps: Readonly<MultiViewProps>, prevState: Readonly<MultiViewState>, snapshot?: any): void;
|
72
|
+
componentWillUnmount(): void;
|
73
|
+
render(): ReactNode;
|
74
|
+
private setupRenderer;
|
75
|
+
private setupScene;
|
76
|
+
private setupTools;
|
77
|
+
play(): void;
|
78
|
+
pause(): void;
|
79
|
+
toggleOrbitControls(value: boolean): void;
|
80
|
+
private update;
|
81
|
+
private draw;
|
82
|
+
private onUpdate;
|
83
|
+
private enable;
|
84
|
+
private disable;
|
85
|
+
private resize;
|
86
|
+
private sceneUpdate;
|
87
|
+
private addCamera;
|
88
|
+
private removeCamera;
|
89
|
+
private onMouseMove;
|
90
|
+
private onClick;
|
91
|
+
private onKey;
|
92
|
+
private onSetSelectedItem;
|
93
|
+
private updateSelectedItemHelper;
|
94
|
+
private onUpdateTransform;
|
95
|
+
private clearLightHelpers;
|
96
|
+
private addLightHelpers;
|
97
|
+
private createControls;
|
98
|
+
private clearCamera;
|
99
|
+
private killControls;
|
100
|
+
private assignControls;
|
101
|
+
private updateCamera;
|
102
|
+
private updateCameraControls;
|
103
|
+
private clearControls;
|
104
|
+
private saveExpandedCameraVisibility;
|
105
|
+
private saveExpandedLightVisibility;
|
106
|
+
private getSceneOverride;
|
107
|
+
private drawSingle;
|
108
|
+
private drawDouble;
|
109
|
+
private drawQuad;
|
110
|
+
get appID(): string;
|
111
|
+
get mode(): MultiViewMode;
|
112
|
+
get three(): RemoteThree;
|
113
|
+
get expandedCameraVisibility(): string;
|
114
|
+
get expandedLightVisibility(): string;
|
115
|
+
}
|
116
|
+
export {};
|
@@ -1,3 +1,8 @@
|
|
1
|
-
import RemoteThree from '@/core/remote/RemoteThree';
|
2
|
-
import { RemoteObject } from '../../types';
|
3
|
-
|
1
|
+
import RemoteThree from '@/core/remote/RemoteThree';
|
2
|
+
import { RemoteObject } from '../../types';
|
3
|
+
type InspectAnimationProps = {
|
4
|
+
object: RemoteObject;
|
5
|
+
three: RemoteThree;
|
6
|
+
};
|
7
|
+
export default function InspectAnimation(props: InspectAnimationProps): import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|