@3dverse/livelink.core 0.7.5 → 0.7.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RTID, UUID } from "../sources/types";
|
|
2
2
|
import { EntityInterface } from "../sources/interfaces/EntityInterface";
|
|
3
|
-
import { ConnectConfirmation, EditorEntity, EntityCreationOptions, EntityUpdatedEvent, UpdateComponentsCommand } from "./messages/editor";
|
|
3
|
+
import { ConnectConfirmation, EditorEntity, EntityCreationOptions, EntityUpdatedEvent, EntityVisibilityChangedEvent, UpdateComponentsCommand } from "./messages/editor";
|
|
4
4
|
import { ComponentType } from "./types/components";
|
|
5
5
|
/**
|
|
6
6
|
* This follows the Livelink protocol specifications for the broker messages.
|
|
@@ -39,7 +39,7 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
39
39
|
entities: Array<EntityInterface>;
|
|
40
40
|
options?: EntityCreationOptions;
|
|
41
41
|
}): Promise<EditorEntity[]>;
|
|
42
|
-
|
|
42
|
+
onEntitiesCreated(data: Array<EditorEntity>): void;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
@@ -97,6 +97,13 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
97
97
|
findEntitiesByNames({ entity_names }: {
|
|
98
98
|
entity_names: Array<String>;
|
|
99
99
|
}): Promise<Array<EditorEntity>>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
setEntityVisibility({ entity_rtid, is_visible }: {
|
|
104
|
+
entity_rtid: RTID;
|
|
105
|
+
is_visible: boolean;
|
|
106
|
+
}): void;
|
|
100
107
|
onFindEntitiesByNames(data: Record<string, EditorEntity>): void;
|
|
101
108
|
/**
|
|
102
109
|
*
|
|
@@ -107,32 +114,32 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
107
114
|
onClientColor(data: any): void;
|
|
108
115
|
onSceneStatsUpdate(data: any): void;
|
|
109
116
|
onServerError(data: any): void;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
onCreateEntity(data: any): void;
|
|
118
|
+
onCreateEntities(data: any): void;
|
|
119
|
+
onRestoreEntities(data: any): void;
|
|
120
|
+
onSpawnEntity(data: any): void;
|
|
121
|
+
onEntityReparented(data: any): void;
|
|
115
122
|
deleteEntities({ entity_uuids }: {
|
|
116
123
|
entity_uuids: Array<UUID>;
|
|
117
124
|
}): Promise<Array<UUID>>;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
125
|
+
onEntitiesDeleted(data: Array<UUID>): void;
|
|
126
|
+
onAnimationSequenceInstanceAdded(data: any): void;
|
|
127
|
+
onAnimationSequenceInstanceUpdated(data: any): void;
|
|
128
|
+
onAnimationSequenceInstanceRemoved(data: any): void;
|
|
129
|
+
onEntityVisibilityChanged(data: EntityVisibilityChangedEvent): void;
|
|
130
|
+
onActionError(data: any): void;
|
|
131
|
+
onAttachComponents(data: any): void;
|
|
132
|
+
onUpdateComponents(emitter_id: UUID | null, entitiesUpdatedEvent: Record<UUID, EntityUpdatedEvent>): void;
|
|
133
|
+
onDetachComponents(data: any): void;
|
|
134
|
+
onDeleteEntities(data: any): void;
|
|
135
|
+
onDeleteEntitiesWithRtid(data: any): void;
|
|
136
|
+
onReparentEntity(data: any): void;
|
|
137
|
+
onEntitiesOverridden(data: any): void;
|
|
138
|
+
onUpdateSettings(data: any): void;
|
|
139
|
+
onSelectEntities(data: any): void;
|
|
140
|
+
onAddAnimationSequenceInstance(data: any): void;
|
|
141
|
+
onUpdateAnimationSequenceInstance(data: any): void;
|
|
142
|
+
onRemoveAnimationSequenceInstance(data: any): void;
|
|
143
|
+
onSetEntityVisibility(data: any): void;
|
|
137
144
|
onUnhandledMessage(type: string, data: any): void;
|
|
138
145
|
}
|
|
@@ -196,6 +196,13 @@ export declare class LivelinkCore {
|
|
|
196
196
|
findEntitiesByNames({ entity_names }: {
|
|
197
197
|
entity_names: Array<string>;
|
|
198
198
|
}): Promise<Array<EditorEntity>>;
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated
|
|
201
|
+
*/
|
|
202
|
+
setEntityVisibility({ entity_rtid, is_visible }: {
|
|
203
|
+
entity_rtid: RTID;
|
|
204
|
+
is_visible: boolean;
|
|
205
|
+
}): Promise<void>;
|
|
199
206
|
/**
|
|
200
207
|
*
|
|
201
208
|
*/
|