@tomorrowevening/hermes 0.0.137 → 0.0.139
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/dist/hermes.cjs.js +16 -16
- package/dist/hermes.es.js +1414 -1329
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/core/Application.d.ts +4 -5
- package/types/core/remote/BaseRemote.d.ts +9 -9
- package/types/core/remote/RemoteComponents.d.ts +7 -8
- package/types/core/remote/RemoteTheatre.d.ts +32 -33
- package/types/core/remote/RemoteThree.d.ts +41 -42
- package/types/editor/ThreeEditor.d.ts +13 -13
- package/types/editor/multiView/MultiView.d.ts +4 -1
- package/types/editor/multiView/Toggle.d.ts +11 -10
- package/types/editor/sidePanel/Accordion.d.ts +13 -13
- package/types/editor/sidePanel/DebugData.d.ts +27 -27
- package/types/editor/sidePanel/inspector/InspectorGroup.d.ts +26 -26
- package/types/editor/sidePanel/inspector/SceneInspector.d.ts +7 -7
- package/types/editor/sidePanel/inspector/utils/InspectAnimation.d.ts +10 -10
- package/types/editor/sidePanel/inspector/utils/InspectCamera.d.ts +4 -4
- package/types/editor/sidePanel/inspector/utils/InspectLight.d.ts +4 -4
- package/types/editor/sidePanel/inspector/utils/InspectMaterial.d.ts +10 -10
- package/types/editor/sidePanel/inspector/utils/InspectRenderer.d.ts +31 -31
- package/types/editor/sidePanel/inspector/utils/InspectTransform.d.ts +30 -30
- package/types/editor/sidePanel/types.d.ts +120 -120
- package/types/editor/theatreUtils.d.ts +1 -1
- package/types/editor/tools/Transform.d.ts +25 -25
- package/types/editor/tools/splineEditor/index.d.ts +29 -29
- package/types/index.d.ts +33 -33
- package/types/utils/detectSettings.d.ts +18 -16
@@ -1,29 +1,29 @@
|
|
1
|
-
import { Camera, CatmullRomCurve3, Object3D, Vector3 } from 'three';
|
2
|
-
import Spline from './Spline';
|
3
|
-
import Application from '@/core/Application';
|
4
|
-
export type SplineJSON = {
|
5
|
-
name: string;
|
6
|
-
points: Array<number[]>;
|
7
|
-
tension: number;
|
8
|
-
closed: boolean;
|
9
|
-
subdivide: number;
|
10
|
-
type: string;
|
11
|
-
};
|
12
|
-
export default class SplineEditor extends Object3D {
|
13
|
-
defaultScale: number;
|
14
|
-
private _camera;
|
15
|
-
private group;
|
16
|
-
private app;
|
17
|
-
constructor(camera: Camera, app: Application);
|
18
|
-
initDebug(): void;
|
19
|
-
dispose(): void;
|
20
|
-
addSpline(spline: Spline): void;
|
21
|
-
createSpline: (defaultPoints?: Array<Vector3>) => Spline;
|
22
|
-
createSplineFromArray: (points: Array<number[]>) => Spline;
|
23
|
-
createSplineFromCatmullRom: (curve: CatmullRomCurve3) => Spline;
|
24
|
-
createSplineFromJSON: (data: SplineJSON) => Spline;
|
25
|
-
showPoints: (visible?: boolean) => void;
|
26
|
-
private onAddSpline;
|
27
|
-
get camera(): Camera;
|
28
|
-
set camera(value: Camera);
|
29
|
-
}
|
1
|
+
import { Camera, CatmullRomCurve3, Object3D, Vector3 } from 'three';
|
2
|
+
import Spline from './Spline';
|
3
|
+
import { Application } from '@/core/Application';
|
4
|
+
export type SplineJSON = {
|
5
|
+
name: string;
|
6
|
+
points: Array<number[]>;
|
7
|
+
tension: number;
|
8
|
+
closed: boolean;
|
9
|
+
subdivide: number;
|
10
|
+
type: string;
|
11
|
+
};
|
12
|
+
export default class SplineEditor extends Object3D {
|
13
|
+
defaultScale: number;
|
14
|
+
private _camera;
|
15
|
+
private group;
|
16
|
+
private app;
|
17
|
+
constructor(camera: Camera, app: Application);
|
18
|
+
initDebug(): void;
|
19
|
+
dispose(): void;
|
20
|
+
addSpline(spline: Spline): void;
|
21
|
+
createSpline: (defaultPoints?: Array<Vector3>) => Spline;
|
22
|
+
createSplineFromArray: (points: Array<number[]>) => Spline;
|
23
|
+
createSplineFromCatmullRom: (curve: CatmullRomCurve3) => Spline;
|
24
|
+
createSplineFromJSON: (data: SplineJSON) => Spline;
|
25
|
+
showPoints: (visible?: boolean) => void;
|
26
|
+
private onAddSpline;
|
27
|
+
get camera(): Camera;
|
28
|
+
set camera(value: Camera);
|
29
|
+
}
|
package/types/index.d.ts
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
export * from './core/types';
|
2
|
-
export * from './editor/utils';
|
3
|
-
export * from './utils/detectSettings';
|
4
|
-
export * from './utils/math';
|
5
|
-
export * from './utils/three';
|
6
|
-
export * from './webworkers/types';
|
7
|
-
export * from './webworkers/EventHandling';
|
8
|
-
export * from './webworkers/ProxyManager';
|
9
|
-
export * from './core/Application';
|
10
|
-
export { default as AppRunner } from './core/AppRunner';
|
11
|
-
export { default as BaseScene } from './core/BaseScene';
|
12
|
-
export { default as BaseRemote } from './core/remote/BaseRemote';
|
13
|
-
export { default as RemoteComponents } from './core/remote/RemoteComponents';
|
14
|
-
export * from './editor/theatreUtils';
|
15
|
-
export { default as RemoteTheatre } from './core/remote/RemoteTheatre';
|
16
|
-
export { default as RemoteThree } from './core/remote/RemoteThree';
|
17
|
-
export { default as NavButton } from './editor/components/NavButton';
|
18
|
-
export { default as DraggableItem } from './editor/components/DraggableItem';
|
19
|
-
export { default as Draggable } from './editor/components/Draggable';
|
20
|
-
export { default as DropdownItem } from './editor/components/DropdownItem';
|
21
|
-
export { default as Dropdown } from './editor/components/Dropdown';
|
22
|
-
export { default as SidePanel } from './editor/sidePanel/SidePanel';
|
23
|
-
export { default as Accordion } from './editor/sidePanel/Accordion';
|
24
|
-
export { default as ChildObject } from './editor/sidePanel/ChildObject';
|
25
|
-
export { default as ContainerObject } from './editor/sidePanel/ContainerObject';
|
26
|
-
export { default as Inspector } from './editor/sidePanel/inspector/Inspector';
|
27
|
-
export { default as SceneInspector } from './editor/sidePanel/inspector/SceneInspector';
|
28
|
-
export { default as MultiView } from './editor/multiView/MultiView';
|
29
|
-
export { default as Editor } from './editor/Editor';
|
30
|
-
export { default as ThreeEditor } from './editor/ThreeEditor';
|
31
|
-
export { default as Transform } from './editor/tools/Transform';
|
32
|
-
export { default as Spline } from './editor/tools/splineEditor/Spline';
|
33
|
-
export { default as SplineEditor } from './editor/tools/splineEditor';
|
1
|
+
export * from './core/types';
|
2
|
+
export * from './editor/utils';
|
3
|
+
export * from './utils/detectSettings';
|
4
|
+
export * from './utils/math';
|
5
|
+
export * from './utils/three';
|
6
|
+
export * from './webworkers/types';
|
7
|
+
export * from './webworkers/EventHandling';
|
8
|
+
export * from './webworkers/ProxyManager';
|
9
|
+
export * from './core/Application';
|
10
|
+
export { default as AppRunner } from './core/AppRunner';
|
11
|
+
export { default as BaseScene } from './core/BaseScene';
|
12
|
+
export { default as BaseRemote } from './core/remote/BaseRemote';
|
13
|
+
export { default as RemoteComponents } from './core/remote/RemoteComponents';
|
14
|
+
export * from './editor/theatreUtils';
|
15
|
+
export { default as RemoteTheatre } from './core/remote/RemoteTheatre';
|
16
|
+
export { default as RemoteThree } from './core/remote/RemoteThree';
|
17
|
+
export { default as NavButton } from './editor/components/NavButton';
|
18
|
+
export { default as DraggableItem } from './editor/components/DraggableItem';
|
19
|
+
export { default as Draggable } from './editor/components/Draggable';
|
20
|
+
export { default as DropdownItem } from './editor/components/DropdownItem';
|
21
|
+
export { default as Dropdown } from './editor/components/Dropdown';
|
22
|
+
export { default as SidePanel } from './editor/sidePanel/SidePanel';
|
23
|
+
export { default as Accordion } from './editor/sidePanel/Accordion';
|
24
|
+
export { default as ChildObject } from './editor/sidePanel/ChildObject';
|
25
|
+
export { default as ContainerObject } from './editor/sidePanel/ContainerObject';
|
26
|
+
export { default as Inspector } from './editor/sidePanel/inspector/Inspector';
|
27
|
+
export { default as SceneInspector } from './editor/sidePanel/inspector/SceneInspector';
|
28
|
+
export { default as MultiView } from './editor/multiView/MultiView';
|
29
|
+
export { default as Editor } from './editor/Editor';
|
30
|
+
export { default as ThreeEditor } from './editor/ThreeEditor';
|
31
|
+
export { default as Transform } from './editor/tools/Transform';
|
32
|
+
export { default as Spline } from './editor/tools/splineEditor/Spline';
|
33
|
+
export { default as SplineEditor } from './editor/tools/splineEditor';
|
@@ -1,16 +1,18 @@
|
|
1
|
-
export declare enum QualityType {
|
2
|
-
'High' = 0,
|
3
|
-
'Medium' = 1,
|
4
|
-
'Low' = 2
|
5
|
-
}
|
6
|
-
export type AppSettings = {
|
7
|
-
dpr: number;
|
8
|
-
fps: number;
|
9
|
-
width: number;
|
10
|
-
height: number;
|
11
|
-
mobile: boolean;
|
12
|
-
supportOffScreenCanvas: boolean;
|
13
|
-
quality: QualityType;
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
export declare enum QualityType {
|
2
|
+
'High' = 0,
|
3
|
+
'Medium' = 1,
|
4
|
+
'Low' = 2
|
5
|
+
}
|
6
|
+
export type AppSettings = {
|
7
|
+
dpr: number;
|
8
|
+
fps: number;
|
9
|
+
width: number;
|
10
|
+
height: number;
|
11
|
+
mobile: boolean;
|
12
|
+
supportOffScreenCanvas: boolean;
|
13
|
+
quality: QualityType;
|
14
|
+
dev: boolean;
|
15
|
+
editor: boolean;
|
16
|
+
};
|
17
|
+
export declare function detectMaxFrameRate(callback: (fps: number) => void): void;
|
18
|
+
export declare function detectSettings(canvas: HTMLCanvasElement, dev: boolean, editor: boolean): Promise<AppSettings>;
|