@tomorrowevening/hermes 0.0.65 → 0.0.67
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 +14 -14
- package/dist/hermes.es.js +1671 -1517
- package/package.json +1 -1
- package/types/core/remote/RemoteThree.d.ts +5 -0
- package/types/core/types.d.ts +1 -1
- package/types/editor/global.d.ts +2 -0
- package/types/editor/sidePanel/inspector/utils/InspectAnimation.d.ts +1 -1
- package/types/editor/sidePanel/inspector/utils/InspectLight.d.ts +1 -1
- package/types/editor/sidePanel/inspector/utils/InspectTransform.d.ts +1 -1
- package/types/editor/sidePanel/types.d.ts +5 -3
- package/types/editor/sidePanel/utils.d.ts +1 -1
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.67",
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
12
12
|
"bugs": {
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
@@ -4,6 +4,7 @@ import BaseRemote from './BaseRemote';
|
|
4
4
|
import { BroadcastData } from '../types';
|
5
5
|
export default class RemoteThree extends BaseRemote {
|
6
6
|
scene?: Scene;
|
7
|
+
scenes: Map<string, Scene>;
|
7
8
|
renderer?: WebGLRenderer;
|
8
9
|
renderTargets: Map<string, WebGLRenderTarget>;
|
9
10
|
dispose(): void;
|
@@ -12,6 +13,10 @@ export default class RemoteThree extends BaseRemote {
|
|
12
13
|
requestMethod(uuid: string, key: string, value?: any, subitem?: string): void;
|
13
14
|
updateObject(uuid: string, key: string, value: any): void;
|
14
15
|
createTexture(uuid: string, key: string, value: any): void;
|
16
|
+
addScene(value: Scene): void;
|
17
|
+
removeScene(value: Scene): void;
|
18
|
+
removeAllScenes(): void;
|
19
|
+
getScene(uuid: string): Scene | null;
|
15
20
|
setScene(value: Scene): void;
|
16
21
|
addCamera(camera: Camera): void;
|
17
22
|
removeCamera(camera: Camera): void;
|
package/types/core/types.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface BroadcastData {
|
|
6
6
|
export type ApplicationMode = 'app' | 'editor';
|
7
7
|
export type VoidCallback = () => void;
|
8
8
|
export type DataUpdateCallback = (data: any) => void;
|
9
|
-
export type EditorEvent = 'custom' | 'setSheet' | 'setSheetObject' | 'updateSheetObject' | 'updateTimeline' | 'playSheet' | 'pauseSheet' | 'getObject' | 'setObject' | 'updateObject' | 'setScene' | 'createTexture' | 'requestMethod' | 'addCamera' | 'removeCamera' | 'addFolder' | 'bindObject' | 'updateBind' | 'addButton' | 'clickButton' | 'selectComponent' | 'draggableListUpdate';
|
9
|
+
export type EditorEvent = 'custom' | 'setSheet' | 'setSheetObject' | 'updateSheetObject' | 'updateTimeline' | 'playSheet' | 'pauseSheet' | 'getObject' | 'setObject' | 'updateObject' | 'addScene' | 'removeScene' | 'setScene' | 'createTexture' | 'requestMethod' | 'addCamera' | 'removeCamera' | 'addFolder' | 'bindObject' | 'updateBind' | 'addButton' | 'clickButton' | 'selectComponent' | 'draggableListUpdate';
|
10
10
|
export type VoidFunc = () => void;
|
11
11
|
export type BroadcastCallback = (data: BroadcastData) => void;
|
12
12
|
export type TheatreUpdateCallback = (data: any) => void;
|
package/types/editor/global.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import RemoteThree from '@/core/remote/RemoteThree';
|
2
2
|
import { RemoteObject } from '../../types';
|
3
|
-
export default function InspectAnimation(
|
3
|
+
export default function InspectAnimation(object: RemoteObject, three: RemoteThree): import("react/jsx-runtime").JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import RemoteThree from '@/core/remote/RemoteThree';
|
2
2
|
import { RemoteObject } from '../../types';
|
3
|
-
export declare function InspectLight(
|
3
|
+
export declare function InspectLight(object: RemoteObject, three: RemoteThree): import("react/jsx-runtime").JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { RemoteObject } from '../../types';
|
2
2
|
import RemoteThree from '@/core/remote/RemoteThree';
|
3
|
-
export declare function InspectTransform(
|
3
|
+
export declare function InspectTransform(object: RemoteObject, three: RemoteThree): import("react/jsx-runtime").JSX.Element;
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import RemoteThree from '@/core/remote/RemoteThree';
|
2
|
-
import { Color
|
2
|
+
import { Color } from 'three';
|
3
3
|
export interface CoreComponentProps {
|
4
4
|
class?: string;
|
5
5
|
three: RemoteThree;
|
6
6
|
}
|
7
7
|
export interface ChildObjectProps extends CoreComponentProps {
|
8
|
-
child?:
|
8
|
+
child?: RemoteObject;
|
9
|
+
scene?: RemoteObject;
|
9
10
|
three: RemoteThree;
|
10
11
|
}
|
11
12
|
export interface SidePanelState {
|
12
|
-
scene?:
|
13
|
+
scene?: RemoteObject;
|
13
14
|
three: RemoteThree;
|
14
15
|
}
|
15
16
|
export interface MinimumObject {
|
@@ -104,4 +105,5 @@ export interface RemoteObject {
|
|
104
105
|
perspectiveCameraInfo?: PerspectiveCameraInfo;
|
105
106
|
orthographicCameraInfo?: OrthographicCameraInfo;
|
106
107
|
lightInfo?: LightInfo;
|
108
|
+
children: RemoteObject[];
|
107
109
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Object3D, Texture } from 'three';
|
2
2
|
import { MinimumObject, RemoteObject } from './types';
|
3
|
-
export declare function determineIcon(obj:
|
3
|
+
export declare function determineIcon(obj: RemoteObject): string;
|
4
4
|
export declare function stripScene(obj: Object3D): MinimumObject;
|
5
5
|
export declare function convertImageToBase64(imgElement: HTMLImageElement): string;
|
6
6
|
export declare function stripObject(obj: Object3D): RemoteObject;
|