@tomorrowevening/hermes 0.0.96 → 0.0.98
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -1
- package/dist/hermes.cjs.js +14 -14
- package/dist/hermes.es.js +1282 -1393
- package/package.json +2 -5
- package/types/core/remote/RemoteTheatre.d.ts +1 -1
- package/types/index.d.ts +0 -1
- package/types/core/remote/RemoteTweakpane.d.ts +0 -24
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.98",
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
12
12
|
"bugs": {
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
@@ -16,8 +16,7 @@
|
|
16
16
|
"Editor",
|
17
17
|
"Remote",
|
18
18
|
"TheatreJS",
|
19
|
-
"ThreeJS"
|
20
|
-
"Tweakpane"
|
19
|
+
"ThreeJS"
|
21
20
|
],
|
22
21
|
"files": [
|
23
22
|
"dist/hermes.es.js",
|
@@ -54,7 +53,6 @@
|
|
54
53
|
"devDependencies": {
|
55
54
|
"@theatre/core": "0.7.0",
|
56
55
|
"@theatre/studio": "0.7.0",
|
57
|
-
"@tweakpane/plugin-essentials": "^0.2.0",
|
58
56
|
"@types/react": "^18.2.15",
|
59
57
|
"@types/react-dom": "^18.2.7",
|
60
58
|
"@types/three": "^0.164.0",
|
@@ -74,7 +72,6 @@
|
|
74
72
|
"sass": "^1.66.1",
|
75
73
|
"stats-gl": "2.0.1",
|
76
74
|
"three": "^0.164.1",
|
77
|
-
"tweakpane": "^4.0.0",
|
78
75
|
"typescript": "^5.0.2",
|
79
76
|
"vite": "^4.4.5",
|
80
77
|
"vite-plugin-glsl": "^1.2.1",
|
@@ -14,7 +14,7 @@ export default class RemoteTheatre extends BaseRemote {
|
|
14
14
|
dispose(): void;
|
15
15
|
getSheetInstance(name: string, instanceId?: string): string;
|
16
16
|
sheet(name: string, instanceId?: string): ISheet | undefined;
|
17
|
-
playSheet(name: string, params?: any, instanceId?: string):
|
17
|
+
playSheet(name: string, params?: any, instanceId?: string): Promise<boolean>;
|
18
18
|
pauseSheet(name: string, instanceId?: string): void;
|
19
19
|
clearSheetObjects(sheetName: string): void;
|
20
20
|
sheetObject(sheetName: string, key: string, props: any, onUpdate?: DataUpdateCallback, instanceId?: string): ISheetObject | undefined;
|
package/types/index.d.ts
CHANGED
@@ -7,7 +7,6 @@ export { default as RemoteComponents } from './core/remote/RemoteComponents';
|
|
7
7
|
export * from './editor/theatreUtils';
|
8
8
|
export { default as RemoteTheatre } from './core/remote/RemoteTheatre';
|
9
9
|
export { default as RemoteThree } from './core/remote/RemoteThree';
|
10
|
-
export { default as RemoteTweakpane } from './core/remote/RemoteTweakpane';
|
11
10
|
export { default as NavButton } from './editor/components/NavButton';
|
12
11
|
export { default as DraggableItem } from './editor/components/DraggableItem';
|
13
12
|
export { default as Draggable } from './editor/components/Draggable';
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Pane } from 'tweakpane';
|
2
|
-
import Application from '../Application';
|
3
|
-
import BaseRemote from './BaseRemote';
|
4
|
-
import { BroadcastData, DataUpdateCallback, VoidCallback } from '../types';
|
5
|
-
export default class RemoteTweakpane extends BaseRemote {
|
6
|
-
bindCBs: Map<string, DataUpdateCallback>;
|
7
|
-
buttonCBs: Map<string, VoidCallback>;
|
8
|
-
protected pane?: Pane | undefined;
|
9
|
-
protected appCallbacks: number;
|
10
|
-
protected editorCallbacks: number;
|
11
|
-
protected inspectorFolder: any;
|
12
|
-
constructor(app: Application);
|
13
|
-
protected createGUI(): void;
|
14
|
-
dispose(): void;
|
15
|
-
addFolder(name: string, params?: any, parent?: any): any;
|
16
|
-
get bindID(): string;
|
17
|
-
bind(obj: any, name: string, params: any, parent?: any): void;
|
18
|
-
triggerBind(id: string, data: any): void;
|
19
|
-
button(name: string, callback: VoidCallback, parent?: any): void;
|
20
|
-
triggerButton(id: string): void;
|
21
|
-
createInspector(): void;
|
22
|
-
clearInspector(): void;
|
23
|
-
handleApp(app: Application, remote: BaseRemote, msg: BroadcastData): void;
|
24
|
-
}
|