@tomorrowevening/hermes 0.0.98 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -674
- package/README.md +16 -16
- package/dist/hermes.cjs.js +149 -149
- package/dist/hermes.es.js +7051 -6246
- package/dist/style.css +1 -1
- package/package.json +80 -80
- package/types/core/remote/RemoteThree.d.ts +0 -2
- package/types/editor/global.d.ts +23 -18
- package/types/editor/multiView/MultiView.d.ts +107 -12
- package/types/editor/sidePanel/DebugData.d.ts +23 -0
- package/types/editor/sidePanel/inspector/InspectorGroup.d.ts +8 -7
- package/types/editor/sidePanel/inspector/utils/InspectTransform.d.ts +23 -3
- package/types/editor/tools/Transform.d.ts +22 -0
- package/types/editor/utils.d.ts +31 -30
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Camera, EventDispatcher } from 'three';
|
|
2
|
+
import { TransformControls } from 'three/examples/jsm/controls/TransformControls';
|
|
3
|
+
import RemoteThree from '@/core/remote/RemoteThree';
|
|
4
|
+
export default class Transform extends EventDispatcher {
|
|
5
|
+
static DRAG_START: string;
|
|
6
|
+
static DRAG_END: string;
|
|
7
|
+
private static _instance;
|
|
8
|
+
three: RemoteThree;
|
|
9
|
+
activeCamera: Camera;
|
|
10
|
+
controls: Map<string, TransformControls>;
|
|
11
|
+
private visibility;
|
|
12
|
+
private groups;
|
|
13
|
+
clear(): void;
|
|
14
|
+
add(name: string): TransformControls;
|
|
15
|
+
get(name: string): TransformControls | undefined;
|
|
16
|
+
remove(name: string): boolean;
|
|
17
|
+
enabled(value: boolean): void;
|
|
18
|
+
updateCamera(camera: Camera, element: HTMLElement): void;
|
|
19
|
+
show(): void;
|
|
20
|
+
hide(): void;
|
|
21
|
+
static get instance(): Transform;
|
|
22
|
+
}
|
package/types/editor/utils.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { Material, Object3D, Texture, WebGLRenderer } from 'three';
|
|
2
|
-
export declare function capitalize(value: string): string;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare
|
|
12
|
-
export declare
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
private static
|
|
21
|
-
private static
|
|
22
|
-
private static
|
|
23
|
-
private static
|
|
24
|
-
private static
|
|
25
|
-
private static
|
|
26
|
-
private static
|
|
27
|
-
private static
|
|
28
|
-
static
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
import { Material, Object3D, Texture, WebGLRenderer } from 'three';
|
|
2
|
+
export declare function capitalize(value: string): string;
|
|
3
|
+
export declare function copyToClipboard(data: any): string;
|
|
4
|
+
export declare function clamp(min: number, max: number, value: number): number;
|
|
5
|
+
export declare function normalize(min: number, max: number, value: number): number;
|
|
6
|
+
export declare function mix(min: number, max: number, value: number): number;
|
|
7
|
+
export declare function distance(x: number, y: number): number;
|
|
8
|
+
export declare function randomID(): string;
|
|
9
|
+
export declare function isColor(obj: any): boolean;
|
|
10
|
+
export declare function colorToHex(obj: any): string;
|
|
11
|
+
export declare function round(value: number, precision?: number): number;
|
|
12
|
+
export declare let totalThreeObjects: number;
|
|
13
|
+
export declare const resetThreeObjects: () => void;
|
|
14
|
+
export declare const hierarchyUUID: (object: Object3D) => void;
|
|
15
|
+
export declare const disposeTexture: (texture?: Texture) => void;
|
|
16
|
+
export declare const disposeMaterial: (material?: Material | Material[]) => void;
|
|
17
|
+
export declare const dispose: (object: Object3D) => void;
|
|
18
|
+
export declare class ExportTexture {
|
|
19
|
+
static renderer: WebGLRenderer;
|
|
20
|
+
private static canvas;
|
|
21
|
+
private static context;
|
|
22
|
+
private static scene;
|
|
23
|
+
private static camera;
|
|
24
|
+
private static material;
|
|
25
|
+
private static inited;
|
|
26
|
+
private static width;
|
|
27
|
+
private static height;
|
|
28
|
+
private static init;
|
|
29
|
+
static renderToBlob(texture: Texture): string;
|
|
30
|
+
private static renderToCanvas;
|
|
31
|
+
}
|