@tomorrowevening/hermes 0.0.98 → 0.0.100

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ }
@@ -1,30 +1,31 @@
1
- import { Material, Object3D, Texture, WebGLRenderer } from 'three';
2
- export declare function capitalize(value: string): string;
3
- export declare function clamp(min: number, max: number, value: number): number;
4
- export declare function normalize(min: number, max: number, value: number): number;
5
- export declare function mix(min: number, max: number, value: number): number;
6
- export declare function distance(x: number, y: number): number;
7
- export declare function randomID(): string;
8
- export declare function isColor(obj: any): boolean;
9
- export declare function colorToHex(obj: any): string;
10
- export declare function round(value: number, precision?: number): number;
11
- export declare let totalThreeObjects: number;
12
- export declare const resetThreeObjects: () => void;
13
- export declare const hierarchyUUID: (object: Object3D) => void;
14
- export declare const disposeTexture: (texture?: Texture) => void;
15
- export declare const disposeMaterial: (material?: Material | Material[]) => void;
16
- export declare const dispose: (object: Object3D) => void;
17
- export declare class ExportTexture {
18
- static renderer: WebGLRenderer;
19
- private static canvas;
20
- private static context;
21
- private static scene;
22
- private static camera;
23
- private static material;
24
- private static inited;
25
- private static width;
26
- private static height;
27
- private static init;
28
- static renderToBlob(texture: Texture): string;
29
- private static renderToCanvas;
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
+ }