@tomorrowevening/hermes 0.0.101 → 0.0.103
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 +1188 -1155
- package/package.json +1 -1
- package/types/core/remote/RemoteThree.d.ts +2 -1
- package/types/core/types.d.ts +1 -1
- package/types/editor/global.d.ts +2 -1
- package/types/editor/tools/splineEditor/Spline.d.ts +1 -1
- package/types/editor/tools/splineEditor/index.d.ts +2 -0
- package/types/editor/sidePanel/CustomAccordion.d.ts +0 -6
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.103",
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
12
12
|
"bugs": {
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Camera, RenderTargetOptions, Scene, WebGLRenderTarget, WebGLRenderer } from 'three';
|
1
|
+
import { Camera, Curve, RenderTargetOptions, Scene, WebGLRenderTarget, WebGLRenderer } from 'three';
|
2
2
|
import Application from '../Application';
|
3
3
|
import BaseRemote from './BaseRemote';
|
4
4
|
import { BroadcastData, GroupData } from '../types';
|
@@ -18,6 +18,7 @@ export default class RemoteThree extends BaseRemote {
|
|
18
18
|
removeGroup(name: string): void;
|
19
19
|
updateGroup(group: string, prop: string, value: any): void;
|
20
20
|
removeAllGroups(): void;
|
21
|
+
addSpline(spline: Curve<any>): void;
|
21
22
|
addScene(value: Scene): void;
|
22
23
|
refreshScene(value: string): void;
|
23
24
|
removeScene(value: Scene): void;
|
package/types/core/types.d.ts
CHANGED
@@ -27,7 +27,7 @@ export interface GroupCallback {
|
|
27
27
|
export type ApplicationMode = 'app' | 'editor';
|
28
28
|
export type VoidCallback = () => void;
|
29
29
|
export type DataUpdateCallback = (data: any) => void;
|
30
|
-
export type EditorEvent = 'custom' | 'setSheet' | 'setSheetObject' | 'updateSheetObject' | 'updateTimeline' | 'playSheet' | 'pauseSheet' | 'getObject' | 'setObject' | 'updateObject' | 'addScene' | 'refreshScene' | 'removeScene' | 'setScene' | 'createTexture' | 'requestMethod' | 'addCamera' | 'removeCamera' | 'addFolder' | 'bindObject' | 'updateBind' | 'addButton' | 'clickButton' | 'selectComponent' | 'draggableListUpdate' | 'addGroup' | 'removeGroup' | 'updateGroup';
|
30
|
+
export type EditorEvent = 'custom' | 'setSheet' | 'setSheetObject' | 'updateSheetObject' | 'updateTimeline' | 'playSheet' | 'pauseSheet' | 'getObject' | 'setObject' | 'updateObject' | 'addScene' | 'refreshScene' | 'removeScene' | 'setScene' | 'createTexture' | 'requestMethod' | 'addCamera' | 'removeCamera' | 'addSpline' | 'addFolder' | 'bindObject' | 'updateBind' | 'addButton' | 'clickButton' | 'selectComponent' | 'draggableListUpdate' | 'addGroup' | 'removeGroup' | 'updateGroup';
|
31
31
|
export type VoidFunc = () => void;
|
32
32
|
export type BroadcastCallback = (data: BroadcastData) => void;
|
33
33
|
export type TheatreUpdateCallback = (data: any) => void;
|
package/types/editor/global.d.ts
CHANGED
@@ -15,7 +15,8 @@ export declare enum ToolEvents {
|
|
15
15
|
ADD_CAMERA = "ToolEvents::addCamera",
|
16
16
|
REMOVE_CAMERA = "ToolEvents::removeCamera",
|
17
17
|
ADD_GROUP = "ToolEvents::addGroup",
|
18
|
-
REMOVE_GROUP = "ToolEvents::removeGroup"
|
18
|
+
REMOVE_GROUP = "ToolEvents::removeGroup",
|
19
|
+
ADD_SPLINE = "ToolEvents::addSpline"
|
19
20
|
}
|
20
21
|
export type ToolEvent = {
|
21
22
|
[key in ToolEvents]: {
|
@@ -27,7 +27,7 @@ export default class Spline extends Object3D {
|
|
27
27
|
hideTransform: () => void;
|
28
28
|
exportSpline: () => void;
|
29
29
|
showPoints: (visible?: boolean) => void;
|
30
|
-
addPoints: (
|
30
|
+
addPoints: (pts?: Array<Vector3>) => void;
|
31
31
|
addPoint: (position: Vector3, update?: boolean) => Mesh;
|
32
32
|
addNextPt: () => void;
|
33
33
|
removePoint: (child: Object3D) => void;
|
@@ -15,11 +15,13 @@ export default class SplineEditor extends Object3D {
|
|
15
15
|
constructor(camera: Camera);
|
16
16
|
initDebug(): void;
|
17
17
|
dispose(): void;
|
18
|
+
addSpline(spline: Spline): void;
|
18
19
|
createSpline: (defaultPoints?: Array<Vector3>) => Spline;
|
19
20
|
createSplineFromArray: (points: Array<number[]>) => Spline;
|
20
21
|
createSplineFromCurve: (curve: CatmullRomCurve3) => Spline;
|
21
22
|
createSplineFromJSON: (data: SplineJSON) => Spline;
|
22
23
|
showPoints: (visible?: boolean) => void;
|
24
|
+
private onAddSpline;
|
23
25
|
get camera(): Camera;
|
24
26
|
set camera(value: Camera);
|
25
27
|
}
|