@3dverse/livelink.core 0.1.0
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/LICENSE +4 -0
- package/README.md +81 -0
- package/dist/_prebuild/EditorConnection.d.ts +54 -0
- package/dist/_prebuild/EditorConnection.d.ts.map +1 -0
- package/dist/_prebuild/EditorMessageHandler.d.ts +102 -0
- package/dist/_prebuild/EditorMessageHandler.d.ts.map +1 -0
- package/dist/_prebuild/GatewayConnection.d.ts +63 -0
- package/dist/_prebuild/GatewayConnection.d.ts.map +1 -0
- package/dist/_prebuild/GatewayMessageHandler.d.ts +179 -0
- package/dist/_prebuild/GatewayMessageHandler.d.ts.map +1 -0
- package/dist/_prebuild/enums.d.ts +4 -0
- package/dist/_prebuild/enums.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +55 -0
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts +27 -0
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/EntityCreationOptions.d.ts +7 -0
- package/dist/_prebuild/messages/editor/EntityCreationOptions.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +8 -0
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +7 -0
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts.map +1 -0
- package/dist/_prebuild/messages/editor/index.d.ts +6 -0
- package/dist/_prebuild/messages/editor/index.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +22 -0
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +32 -0
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ClientConfig.d.ts +38 -0
- package/dist/_prebuild/messages/gateway/ClientConfig.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +17 -0
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +23 -0
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/FrameData.d.ts +48 -0
- package/dist/_prebuild/messages/gateway/FrameData.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +23 -0
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/InputState.d.ts +23 -0
- package/dist/_prebuild/messages/gateway/InputState.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +24 -0
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +15 -0
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +30 -0
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +17 -0
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +18 -0
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +9 -0
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/UpdateAnimationSequenceStateMessage.d.ts +26 -0
- package/dist/_prebuild/messages/gateway/UpdateAnimationSequenceStateMessage.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +24 -0
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +24 -0
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts +120 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts.map +1 -0
- package/dist/_prebuild/messages/gateway/index.d.ts +18 -0
- package/dist/_prebuild/messages/gateway/index.d.ts.map +1 -0
- package/dist/_prebuild/types/assets.d.ts +24 -0
- package/dist/_prebuild/types/assets.d.ts.map +1 -0
- package/dist/_prebuild/types/components.d.ts +950 -0
- package/dist/_prebuild/types/components.d.ts.map +1 -0
- package/dist/sources/ComponentSerializer.d.ts +20 -0
- package/dist/sources/ComponentSerializer.d.ts.map +1 -0
- package/dist/sources/LivelinkCore.d.ts +161 -0
- package/dist/sources/LivelinkCore.d.ts.map +1 -0
- package/dist/sources/RequestHandler.d.ts +48 -0
- package/dist/sources/RequestHandler.d.ts.map +1 -0
- package/dist/sources/controllers/EditorController.d.ts +22 -0
- package/dist/sources/controllers/EditorController.d.ts.map +1 -0
- package/dist/sources/controllers/GatewayController.d.ts +31 -0
- package/dist/sources/controllers/GatewayController.d.ts.map +1 -0
- package/dist/sources/index.d.ts +11 -0
- package/dist/sources/index.d.ts.map +1 -0
- package/dist/sources/interfaces/ClientInterface.d.ts +8 -0
- package/dist/sources/interfaces/ClientInterface.d.ts.map +1 -0
- package/dist/sources/interfaces/EntityInterface.d.ts +8 -0
- package/dist/sources/interfaces/EntityInterface.d.ts.map +1 -0
- package/dist/sources/interfaces/SessionInterface.d.ts +20 -0
- package/dist/sources/interfaces/SessionInterface.d.ts.map +1 -0
- package/dist/sources/interfaces/index.d.ts +4 -0
- package/dist/sources/interfaces/index.d.ts.map +1 -0
- package/dist/sources/types/RTID.d.ts +24 -0
- package/dist/sources/types/RTID.d.ts.map +1 -0
- package/dist/sources/types/UUID.d.ts +24 -0
- package/dist/sources/types/UUID.d.ts.map +1 -0
- package/dist/sources/types/constants.d.ts +8 -0
- package/dist/sources/types/constants.d.ts.map +1 -0
- package/dist/sources/types/index.d.ts +5 -0
- package/dist/sources/types/index.d.ts.map +1 -0
- package/dist/sources/types/math.d.ts +87 -0
- package/dist/sources/types/math.d.ts.map +1 -0
- package/dist/sources/types/nativeTypes.d.ts +11 -0
- package/dist/sources/types/nativeTypes.d.ts.map +1 -0
- package/package.json +23 -0
package/LICENSE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Livelink protocol v1.0
|
|
2
|
+
|
|
3
|
+
## Spec-first development
|
|
4
|
+
|
|
5
|
+
https://www.atlassian.com/blog/technology/spec-first-api-development
|
|
6
|
+
|
|
7
|
+
https://blog.apideck.com/spec-driven-development-part-1
|
|
8
|
+
|
|
9
|
+
## AsyncAPI 3.0
|
|
10
|
+
|
|
11
|
+
https://www.asyncapi.com/docs/reference/specification/v3.0.0
|
|
12
|
+
|
|
13
|
+
# Livelink.js Core v1.0
|
|
14
|
+
|
|
15
|
+
Core implementation in JavaScript of the Livelink protocol.
|
|
16
|
+
|
|
17
|
+
This is a module that MUST always be loaded at runtime.
|
|
18
|
+
|
|
19
|
+
Handles the connection with the Livelink Broadcast & Persistence Server and the
|
|
20
|
+
connection with the Cluster Gateway hosting the session.
|
|
21
|
+
|
|
22
|
+
Provides video decoding support and access to a local entity registry.
|
|
23
|
+
|
|
24
|
+
## WebTransport
|
|
25
|
+
|
|
26
|
+
For faster connections
|
|
27
|
+
|
|
28
|
+
https://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API
|
|
29
|
+
|
|
30
|
+
## WebCodecs
|
|
31
|
+
|
|
32
|
+
For hardware decoding
|
|
33
|
+
|
|
34
|
+
https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API
|
|
35
|
+
|
|
36
|
+
## Web Workers
|
|
37
|
+
|
|
38
|
+
For software decoding
|
|
39
|
+
|
|
40
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
|
|
41
|
+
|
|
42
|
+
## OffscreenCanvas
|
|
43
|
+
|
|
44
|
+
For software decoding
|
|
45
|
+
|
|
46
|
+
https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas
|
|
47
|
+
|
|
48
|
+
## BigInt
|
|
49
|
+
|
|
50
|
+
For 64 bit int support
|
|
51
|
+
|
|
52
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
|
|
53
|
+
|
|
54
|
+
# Livelink.js v1.0
|
|
55
|
+
|
|
56
|
+
User facing interface with as many helper functions as we want.
|
|
57
|
+
|
|
58
|
+
# Questions
|
|
59
|
+
|
|
60
|
+
- ~~Do we need to support multiple sessions in a single page?~~ YES
|
|
61
|
+
- Add an option to send the depth buffer to allow better composition with WebGL?
|
|
62
|
+
- Do we merge the editor connection and the renderer connection behind a single interface?
|
|
63
|
+
- Use destructured objects as function params?
|
|
64
|
+
|
|
65
|
+
# Installation
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
# Dev
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm run dev
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
# Build
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm run build
|
|
81
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
|
+
* This file has been generated automatically from its AsyncAPI spec file.
|
|
4
|
+
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
|
+
*/
|
|
6
|
+
import { EditorMessageHandler } from "./EditorMessageHandler";
|
|
7
|
+
/**
|
|
8
|
+
* Holds the connection to the Livelink Broadcast & Persistence server.
|
|
9
|
+
*/
|
|
10
|
+
export declare class EditorConnection {
|
|
11
|
+
/**
|
|
12
|
+
* Socket connected to the Livelink Broadcast & Persistence server.
|
|
13
|
+
*/
|
|
14
|
+
private _socket;
|
|
15
|
+
/**
|
|
16
|
+
* Controller responsible of handling the responses to queries.
|
|
17
|
+
*/
|
|
18
|
+
private _handler;
|
|
19
|
+
/**
|
|
20
|
+
* Opens a connection to the Livelink server.
|
|
21
|
+
*/
|
|
22
|
+
connect({ livelink_url, handler }: {
|
|
23
|
+
livelink_url: string;
|
|
24
|
+
handler: EditorMessageHandler;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
send({ data }: {
|
|
30
|
+
data: ArrayBufferLike | string;
|
|
31
|
+
}): void;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
disconnect(): void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
private _onSocketOpened;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
private _onSocketClosed;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
private _onSocketError;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param message
|
|
51
|
+
*/
|
|
52
|
+
private _onMessageReceived;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=EditorConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorConnection.d.ts","sourceRoot":"","sources":["../../_prebuild/EditorConnection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D;;GAEG;AACH,qBAAa,gBAAgB;IACzB;;OAEG;IACH,OAAO,CAAC,OAAO,CAA0B;IAEzC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAqC;IAErD;;OAEG;IACG,OAAO,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,oBAAoB,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBhH;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI;IAIxD;;OAEG;IACH,UAAU;IAIV;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,eAAe;IAIvB;;OAEG;IACH,OAAO,CAAC,cAAc;IAEtB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;CAqF7B"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { EntityInterface } from "../sources/interfaces/EntityInterface";
|
|
2
|
+
import { RTID, UUID } from "../sources/types";
|
|
3
|
+
import { EditorConnection } from "./EditorConnection";
|
|
4
|
+
import { ConnectConfirmation, EditorEntity, EntityCreationOptions, EntityUpdatedEvent, UpdateEntitiesCommand } from "./messages/editor";
|
|
5
|
+
/**
|
|
6
|
+
* This follows the Livelink protocol specifications for the broker messages.
|
|
7
|
+
*/
|
|
8
|
+
export declare class EditorMessageHandler extends EventTarget {
|
|
9
|
+
#private;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
protected _connection: EditorConnection;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
protected _client_id: UUID | null;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
get client_id(): string | null;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
spawnEntity({ entity, options }: {
|
|
26
|
+
entity: EntityInterface;
|
|
27
|
+
options?: EntityCreationOptions;
|
|
28
|
+
}): Promise<EditorEntity[]>;
|
|
29
|
+
on_entities_created(data: Array<EditorEntity>): void;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
attachComponents(): void;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
updateComponents(data: UpdateEntitiesCommand): void;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
findEntitiesByEUID({ entity_uuid }: {
|
|
42
|
+
entity_uuid: UUID;
|
|
43
|
+
}): Promise<Array<EditorEntity>>;
|
|
44
|
+
onFindEntitiesByEUID(data: Array<EditorEntity>): void;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
onConnectConfirmation({ connect_confirmation }: {
|
|
49
|
+
connect_confirmation: ConnectConfirmation;
|
|
50
|
+
}): void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
retrieveChildren({ entity_rtid }: {
|
|
55
|
+
entity_rtid: RTID;
|
|
56
|
+
}): Promise<Record<string, EditorEntity>>;
|
|
57
|
+
onRetrieveChildren(data: Record<string, EditorEntity>): void;
|
|
58
|
+
onFindEntitiesWithComponents(data: any): void;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
resolveAncestors({ entity_rtid }: {
|
|
63
|
+
entity_rtid: RTID;
|
|
64
|
+
}): Promise<Array<EditorEntity>>;
|
|
65
|
+
onResolveAncestors(data: Array<EditorEntity>): void;
|
|
66
|
+
onFindEntitiesByNames(data: any): void;
|
|
67
|
+
onFilterEntities(data: any): void;
|
|
68
|
+
onExportEntityToScene(data: any): void;
|
|
69
|
+
onNextUndoRedo(data: any): void;
|
|
70
|
+
onClientColor(data: any): void;
|
|
71
|
+
onSceneStatsUpdate(data: any): void;
|
|
72
|
+
onServerError(data: any): void;
|
|
73
|
+
on_create_entity(data: any): void;
|
|
74
|
+
on_create_entities(data: any): void;
|
|
75
|
+
on_restore_entities(data: any): void;
|
|
76
|
+
on_spawn_entity(data: any): void;
|
|
77
|
+
on_entity_reparented(data: any): void;
|
|
78
|
+
deleteEntities({ entity_uuids }: {
|
|
79
|
+
entity_uuids: Array<UUID>;
|
|
80
|
+
}): Promise<string[]> | undefined;
|
|
81
|
+
on_entities_deleted(data: Array<UUID>): void;
|
|
82
|
+
on_animation_sequence_instance_added(data: any): void;
|
|
83
|
+
on_animation_sequence_instance_updated(data: any): void;
|
|
84
|
+
on_animation_sequence_instance_removed(data: any): void;
|
|
85
|
+
on_node_visibility_changed(data: any): void;
|
|
86
|
+
on_action_error(data: any): void;
|
|
87
|
+
on_attach_components(data: any): void;
|
|
88
|
+
on_update_components(emitter_id: UUID | null, entitiesUpdatedEvent: Record<UUID, EntityUpdatedEvent>): void;
|
|
89
|
+
on_detach_components(data: any): void;
|
|
90
|
+
on_delete_entities(data: any): void;
|
|
91
|
+
on_delete_entities_with_rtid(data: any): void;
|
|
92
|
+
on_reparent_entity(data: any): void;
|
|
93
|
+
on_entities_overridden(data: any): void;
|
|
94
|
+
on_update_settings(data: any): void;
|
|
95
|
+
on_select_entities(data: any): void;
|
|
96
|
+
on_add_animation_sequence_instance(data: any): void;
|
|
97
|
+
on_update_animation_sequence_instance(data: any): void;
|
|
98
|
+
on_remove_animation_sequence_instance(data: any): void;
|
|
99
|
+
on_set_node_visibility(data: any): void;
|
|
100
|
+
onUnhandledMessage(type: string, data: any): void;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=EditorMessageHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorMessageHandler.d.ts","sourceRoot":"","sources":["../../_prebuild/EditorMessageHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oB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rC,oBAAoB,CAAC,UAAU,EAAE,IAAI,GAAG,IAAI,EAAE,oBAAoB,EAAE,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,IAAI;IAU3G,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAIrC,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAInC,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAI7C,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAInC,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAIvC,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAInC,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAInC,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAInD,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAItD,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAItD,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAIvC,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;CASpD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
|
+
* This file has been generated automatically from its AsyncAPI spec file.
|
|
4
|
+
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
|
+
*/
|
|
6
|
+
import { GatewayMessageHandler } from "./GatewayMessageHandler";
|
|
7
|
+
/**
|
|
8
|
+
* Holds the connection to the cluster gateway hosting the renderer and the viewer handling the
|
|
9
|
+
* session.
|
|
10
|
+
*
|
|
11
|
+
* ┌─────────┬──────────────┐
|
|
12
|
+
* │ │ │
|
|
13
|
+
* │ │ ┌──────────┐ │
|
|
14
|
+
* │ │ │ Renderer │ │
|
|
15
|
+
* │ │ └─────┬────┘ │
|
|
16
|
+
* ┌────────┐ │ │ │ │
|
|
17
|
+
* │ Client │◄──────► Gateway ◄───────┤ │
|
|
18
|
+
* └────────┘ │ │ │ │
|
|
19
|
+
* ▲ │ │ ┌────┴───┐ │
|
|
20
|
+
* | │ │ │ Viewer │ │
|
|
21
|
+
* GatewayConnection │ │ └────────┘ │
|
|
22
|
+
* │ │ │
|
|
23
|
+
* └─────────┴──────────────┘
|
|
24
|
+
*
|
|
25
|
+
* Responsibilities of this class are threefold:
|
|
26
|
+
* - Open, maintain, and handle any error in the connection to the gateway.
|
|
27
|
+
*
|
|
28
|
+
* - Apply the authentication protocol when the first message is received.
|
|
29
|
+
* Note that initiating the authentication doesn't fall under this class's purview.
|
|
30
|
+
*
|
|
31
|
+
* - Demultiplex messages following the gateway Livelink Protocol.
|
|
32
|
+
* It is only responsible for deserializing the multiplexer binary header data according to the
|
|
33
|
+
* Livelink protocol specifications; in no case is it supposed to apply any kind of logic beyond
|
|
34
|
+
* routing messages to the appropriate handler.
|
|
35
|
+
*/
|
|
36
|
+
export declare class GatewayConnection {
|
|
37
|
+
#private;
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a connection linked to the specified message handler.
|
|
40
|
+
*/
|
|
41
|
+
constructor({ handler }: {
|
|
42
|
+
handler: GatewayMessageHandler;
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Opens a connection to the gateway.
|
|
46
|
+
*
|
|
47
|
+
* @throws {Error} Socket errors
|
|
48
|
+
*/
|
|
49
|
+
connect({ gateway_url }: {
|
|
50
|
+
gateway_url: string;
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
send({ data }: {
|
|
56
|
+
data: ArrayBufferLike | string;
|
|
57
|
+
}): void;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
disconnect(): void;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=GatewayConnection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayConnection.d.ts","sourceRoot":"","sources":["../../_prebuild/GatewayConnection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,iBAAiB;;IAW1B;;OAEG;gBACS,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,qBAAqB,CAAA;KAAE;IAI3D;;;;OAIG;IACG,OAAO,CAAC,EAAE,WAAW,EAAE,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BtE;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI;IAIxD;;OAEG;IACH,UAAU,IAAI,IAAI;CAiGrB"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
|
+
* This file has been generated automatically from its AsyncAPI spec file.
|
|
4
|
+
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
|
+
*/
|
|
6
|
+
import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, UpdateAnimationSequenceStateMessage, UpdateEntitiesFromJsonMessage, ViewportConfig } from "./messages/gateway";
|
|
7
|
+
import { UUID, Vec2ui16 } from "../sources/types";
|
|
8
|
+
/**
|
|
9
|
+
* Message handlers interface.
|
|
10
|
+
* This follows the Livelink protocol specifications for the gateway messages.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GatewayMessageHandler extends EventTarget {
|
|
13
|
+
#private;
|
|
14
|
+
/**
|
|
15
|
+
* Opens the connection to the specified gateway.
|
|
16
|
+
*/
|
|
17
|
+
protected _connect({ gateway_url }: {
|
|
18
|
+
gateway_url: string;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Closes any ongoing connection with the gateway.
|
|
22
|
+
*/
|
|
23
|
+
protected _disconnect(): void;
|
|
24
|
+
/***************************************************************************
|
|
25
|
+
* AUTHENTICATION
|
|
26
|
+
**************************************************************************/
|
|
27
|
+
/**
|
|
28
|
+
* Request
|
|
29
|
+
*/
|
|
30
|
+
authenticateClient({ session_auth }: {
|
|
31
|
+
session_auth: SessionAuth;
|
|
32
|
+
}): Promise<AuthenticationResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Reply
|
|
35
|
+
*/
|
|
36
|
+
_on_authenticateClient_response({ data_view }: {
|
|
37
|
+
data_view: DataView;
|
|
38
|
+
}): void;
|
|
39
|
+
/***************************************************************************
|
|
40
|
+
* HEARTBEAT
|
|
41
|
+
**************************************************************************/
|
|
42
|
+
/**
|
|
43
|
+
* Request
|
|
44
|
+
*/
|
|
45
|
+
pulseHeartbeat(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Reply
|
|
48
|
+
*/
|
|
49
|
+
_on_pulseHeartbeat_response(): void;
|
|
50
|
+
/***************************************************************************
|
|
51
|
+
* REGISTRATION
|
|
52
|
+
**************************************************************************/
|
|
53
|
+
/**
|
|
54
|
+
* Request
|
|
55
|
+
*/
|
|
56
|
+
configureClient({ client_config }: {
|
|
57
|
+
client_config: ClientConfig;
|
|
58
|
+
}): Promise<ClientConfigResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Reply
|
|
61
|
+
*/
|
|
62
|
+
_on_configureClient_response({ data_view }: {
|
|
63
|
+
data_view: DataView;
|
|
64
|
+
}): void;
|
|
65
|
+
/***************************************************************************
|
|
66
|
+
* VIEWER CONTROL
|
|
67
|
+
**************************************************************************/
|
|
68
|
+
/**
|
|
69
|
+
* Send
|
|
70
|
+
*/
|
|
71
|
+
setViewports({ viewports }: {
|
|
72
|
+
viewports: Array<ViewportConfig>;
|
|
73
|
+
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Send
|
|
76
|
+
*/
|
|
77
|
+
resume(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Send
|
|
80
|
+
*/
|
|
81
|
+
suspend(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Request
|
|
84
|
+
*/
|
|
85
|
+
resize({ size }: {
|
|
86
|
+
size: Vec2ui16;
|
|
87
|
+
}): Promise<ResizeResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* Reply
|
|
90
|
+
*/
|
|
91
|
+
_on_resize_response({ data_view }: {
|
|
92
|
+
data_view: DataView;
|
|
93
|
+
}): void;
|
|
94
|
+
/***************************************************************************
|
|
95
|
+
* INPUTS
|
|
96
|
+
**************************************************************************/
|
|
97
|
+
/**
|
|
98
|
+
* Send
|
|
99
|
+
*/
|
|
100
|
+
sendInputState({ input_state }: {
|
|
101
|
+
input_state: InputState;
|
|
102
|
+
}): void;
|
|
103
|
+
/***************************************************************************
|
|
104
|
+
* VIDEO STREAM
|
|
105
|
+
**************************************************************************/
|
|
106
|
+
/**
|
|
107
|
+
* Receive
|
|
108
|
+
*/
|
|
109
|
+
_onFrameReceived({ data_view }: {
|
|
110
|
+
data_view: DataView;
|
|
111
|
+
}): void;
|
|
112
|
+
/***************************************************************************
|
|
113
|
+
* SCRIPT EVENTS
|
|
114
|
+
**************************************************************************/
|
|
115
|
+
/**
|
|
116
|
+
* Receive
|
|
117
|
+
*/
|
|
118
|
+
_onScriptEventReceived({ data_view }: {
|
|
119
|
+
data_view: DataView;
|
|
120
|
+
}): void;
|
|
121
|
+
/***************************************************************************
|
|
122
|
+
* CLIENT REMOTE OPERATIONS
|
|
123
|
+
**************************************************************************/
|
|
124
|
+
/**
|
|
125
|
+
* Request
|
|
126
|
+
*/
|
|
127
|
+
castScreenSpaceRay({ screenSpaceRayQuery, }: {
|
|
128
|
+
screenSpaceRayQuery: ScreenSpaceRayQuery;
|
|
129
|
+
}): Promise<ScreenSpaceRayResult>;
|
|
130
|
+
/**
|
|
131
|
+
* Send
|
|
132
|
+
*/
|
|
133
|
+
highlightEntities({ highlightEntitiesMessage }: {
|
|
134
|
+
highlightEntitiesMessage: HighlightEntitiesMessage;
|
|
135
|
+
}): void;
|
|
136
|
+
/**
|
|
137
|
+
* Reply
|
|
138
|
+
*/
|
|
139
|
+
_on_clientRemoteOperation_response({ client_id, request_id, size, data_view, }: {
|
|
140
|
+
client_id: UUID;
|
|
141
|
+
request_id: number;
|
|
142
|
+
size: number;
|
|
143
|
+
data_view: DataView;
|
|
144
|
+
}): void;
|
|
145
|
+
/***************************************************************************
|
|
146
|
+
* EDITOR REMOTE OPERATIONS
|
|
147
|
+
**************************************************************************/
|
|
148
|
+
/**
|
|
149
|
+
* Send
|
|
150
|
+
*/
|
|
151
|
+
fireEvent({ fireEventMessage }: {
|
|
152
|
+
fireEventMessage: FireEventMessage;
|
|
153
|
+
}): void;
|
|
154
|
+
/**
|
|
155
|
+
* Send
|
|
156
|
+
*/
|
|
157
|
+
updateAnimationSequenceState({ updateAnimationSequenceStateMessage, }: {
|
|
158
|
+
updateAnimationSequenceStateMessage: UpdateAnimationSequenceStateMessage;
|
|
159
|
+
}): void;
|
|
160
|
+
/**
|
|
161
|
+
* Send
|
|
162
|
+
*/
|
|
163
|
+
assignClientToScript({ assignClientToScriptMessage, }: {
|
|
164
|
+
assignClientToScriptMessage: AssignClientToScriptMessage;
|
|
165
|
+
}): void;
|
|
166
|
+
/**
|
|
167
|
+
* Send
|
|
168
|
+
*/
|
|
169
|
+
updateEntities({ updateEntitiesFromJsonMessage, }: {
|
|
170
|
+
updateEntitiesFromJsonMessage: UpdateEntitiesFromJsonMessage;
|
|
171
|
+
}): void;
|
|
172
|
+
/**
|
|
173
|
+
* Send
|
|
174
|
+
*/
|
|
175
|
+
removeComponents({ removeComponentsCommand }: {
|
|
176
|
+
removeComponentsCommand: RemoveComponentsCommand;
|
|
177
|
+
}): void;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=GatewayMessageHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayMessageHandler.d.ts","sourceRoot":"","sources":["../../_prebuild/GatewayMessageHandler.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EACH,2BAA2B,EAC3B,sBAAsB,EACtB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,UAAU,EACV,uBAAuB,EACvB,cAAc,EAEd,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,mCAAmC,EACnC,6BAA6B,EAE7B,cAAc,EAuBjB,MAAM,oBAAoB,CAAC;AAY5B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAsC,MAAM,kBAAkB,CAAC;AAUtF;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;;IAsBlD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3E;;OAEG;IACH,SAAS,CAAC,WAAW,IAAI,IAAI;IAI7B;;gFAE4E;IAC5E;;OAEG;IACH,kBAAkB,CAAC,EAAE,YAAY,EAAE,EAAE;QAAE,YAAY,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAmBpG;;OAEG;IACH,+BAA+B,CAAC,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE,QAAQ,CAAA;KAAE,GAAG,IAAI;IAM7E;;gFAE4E;IAC5E;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ/B;;OAEG;IACH,2BAA2B,IAAI,IAAI;IAInC;;gFAE4E;IAC5E;;OAEG;IACH,eAAe,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,wBAAwB,EAAE,wBAAwB,CAAA;KAAE,GAAG,IAAI;IAsB7G;;OAEG;IACH,kCAAkC,CAAC,EAC/B,SAAS,EACT,UAAU,EACV,IAAI,EACJ,SAAS,GACZ,EAAE;QACC,SAAS,EAAE,IAAI,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,QAAQ,CAAC;KACvB,GAAG,IAAI;IAqCR;;gFAE4E;IAC5E;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,EAAE,EAAE;QAAE,gBAAgB,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI;IAsB7E;;OAEG;IACH,4BAA4B,CAAC,EACzB,mCAAmC,GACtC,EAAE;QACC,mCAAmC,EAAE,mCAAmC,CAAC;KAC5E,GAAG,IAAI;IAsBR;;OAEG;IACH,oBAAoB,CAAC,EACjB,2BAA2B,GAC9B,EAAE;QACC,2BAA2B,EAAE,2BAA2B,CAAC;KAC5D,GAAG,IAAI;IAsBR;;OAEG;IACH,cAAc,CAAC,EACX,6BAA6B,GAChC,EAAE;QACC,6BAA6B,EAAE,6BAA6B,CAAC;KAChE,GAAG,IAAI;IAsBR;;OAEG;IACH,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,EAAE;QAAE,uBAAuB,EAAE,uBAAuB,CAAA;KAAE,GAAG,IAAI;CAgE5G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../_prebuild/enums.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { UUID } from "../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type SceneStats = {
|
|
6
|
+
readonly triangleCount: number;
|
|
7
|
+
readonly totalTriangleCount: number;
|
|
8
|
+
readonly entityCount: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export type AttributeDescriptor = {
|
|
14
|
+
readonly type: string;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly mods: Array<"editor-only" | "engine-only" | "transient">;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export type ComponentDescriptor = {
|
|
22
|
+
readonly attributes: Array<AttributeDescriptor>;
|
|
23
|
+
readonly binarySupport: boolean;
|
|
24
|
+
readonly description: string;
|
|
25
|
+
readonly dynamicSize: boolean;
|
|
26
|
+
readonly hash: number;
|
|
27
|
+
readonly mods: Array<"editor-only" | "engine-only" | "transient">;
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly size: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export type ConnectConfirmation = {
|
|
35
|
+
readonly animationSequenceInstances: [];
|
|
36
|
+
readonly canEdit: boolean;
|
|
37
|
+
readonly clientColors: {};
|
|
38
|
+
readonly clientRTID: {};
|
|
39
|
+
readonly components: Record<string, ComponentDescriptor>;
|
|
40
|
+
readonly isTransient: boolean;
|
|
41
|
+
readonly rootNodes: {};
|
|
42
|
+
readonly sceneUUID: UUID;
|
|
43
|
+
readonly selectColor: string;
|
|
44
|
+
readonly sessionUUID: UUID;
|
|
45
|
+
readonly settingDescriptions: {};
|
|
46
|
+
readonly settings: {};
|
|
47
|
+
readonly stats: SceneStats;
|
|
48
|
+
readonly undoRedo: {
|
|
49
|
+
undo: {};
|
|
50
|
+
redo: {};
|
|
51
|
+
};
|
|
52
|
+
readonly userUUID: UUID;
|
|
53
|
+
readonly workspaceUUID: UUID;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=ConnectConfirmation.d.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AAC,YAAY,EAAE,EAAE,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACzD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,QAAQ,CAAC,mBAAmB,EAAE,EAAE,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,EAAE,CAAC;QAAC,IAAI,EAAE,EAAE,CAAA;KAAE,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { UUID } from "../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
type ClientSelection = {
|
|
6
|
+
clientUUID: UUID;
|
|
7
|
+
directSelection?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
isExternal?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export type EditorEntity = {
|
|
15
|
+
rtid: string;
|
|
16
|
+
components: Record<string, {}>;
|
|
17
|
+
children: string[];
|
|
18
|
+
selectingClients: ClientSelection[];
|
|
19
|
+
selectedDescendants: Record<string, ClientSelection[]>;
|
|
20
|
+
isVisible: boolean;
|
|
21
|
+
isRuntime: boolean;
|
|
22
|
+
isExternal: boolean;
|
|
23
|
+
isTransient: boolean;
|
|
24
|
+
ancestors?: EditorEntity[];
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=EditorEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorEntity.d.ts","sourceRoot":"","sources":["../../../../_prebuild/messages/editor/EditorEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;GAEG;AACH,KAAK,eAAe,GAAG;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityCreationOptions.d.ts","sourceRoot":"","sources":["../../../../_prebuild/messages/editor/EntityCreationOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC,8BAA8B,EAAE,OAAO,CAAC;CAC3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityUpdatedEvent.d.ts","sourceRoot":"","sources":["../../../../_prebuild/messages/editor/EntityUpdatedEvent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UUID } from "../../../sources/types";
|
|
2
|
+
import type { ComponentType } from "../../types/components";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export type UpdateEntitiesCommand = Record<UUID, Record<ComponentType, {}> | {}>;
|
|
7
|
+
//# sourceMappingURL=UpdateComponentsCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateComponentsCommand.d.ts","sourceRoot":"","sources":["../../../../_prebuild/messages/editor/UpdateComponentsCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,aAAa,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../_prebuild/messages/editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
|