@3dverse/livelink.core 0.4.0 → 0.4.2
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/_prebuild/EditorMessageHandler.d.ts +8 -0
- package/dist/_prebuild/GatewayMessageHandler.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +15 -8
- package/dist/_prebuild/types/components.d.ts +4 -0
- package/dist/sources/LivelinkCore.d.ts +10 -3
- package/package.json +1 -1
|
@@ -47,6 +47,14 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
47
47
|
entity_uuid: UUID;
|
|
48
48
|
}): Promise<Array<EditorEntity>>;
|
|
49
49
|
onFindEntitiesByEUID(data: Array<EditorEntity>): void;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
getEntity({ entity_uuid, linkage }: {
|
|
54
|
+
entity_uuid: UUID;
|
|
55
|
+
linkage: Array<UUID>;
|
|
56
|
+
}): Promise<EditorEntity | null>;
|
|
57
|
+
onGetEntity(data: EditorEntity | null): void;
|
|
50
58
|
/**
|
|
51
59
|
*
|
|
52
60
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This file has been generated automatically from its AsyncAPI spec file.
|
|
4
4
|
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
5
|
*/
|
|
6
|
-
import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult,
|
|
6
|
+
import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, SkeletonPoseMessage, UpdateAnimationSequenceStateMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "./messages/gateway";
|
|
7
7
|
import { UUID, Vec2ui16 } from "../sources/types";
|
|
8
8
|
/**
|
|
9
9
|
* Message handlers interface.
|
|
@@ -82,8 +82,8 @@ export declare class GatewayMessageHandler extends EventTarget {
|
|
|
82
82
|
/**
|
|
83
83
|
* Send
|
|
84
84
|
*/
|
|
85
|
-
setViewports({
|
|
86
|
-
|
|
85
|
+
setViewports({ viewport_configs }: {
|
|
86
|
+
viewport_configs: ViewportConfigs;
|
|
87
87
|
}): void;
|
|
88
88
|
/**
|
|
89
89
|
* Send
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import { RTID } from "../../../sources/types";
|
|
1
|
+
import { Float, Int32, RTID } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
export type ViewportConfig = {
|
|
6
|
-
left:
|
|
7
|
-
top:
|
|
8
|
-
width:
|
|
9
|
-
height:
|
|
6
|
+
left: Float;
|
|
7
|
+
top: Float;
|
|
8
|
+
width: Float;
|
|
9
|
+
height: Float;
|
|
10
10
|
camera_rtid: RTID;
|
|
11
|
+
render_target_index?: Int32;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
*/
|
|
15
|
-
export
|
|
16
|
+
export type ViewportConfigs = Array<ViewportConfig>;
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
*/
|
|
19
|
-
export declare function
|
|
20
|
+
export declare function compute_ViewportConfigs_size({ viewport_configs }: {
|
|
21
|
+
viewport_configs: ViewportConfigs;
|
|
22
|
+
}): number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function serialize_ViewportConfigs({ data_view, offset, viewport_configs, }: {
|
|
20
27
|
data_view: DataView;
|
|
21
28
|
offset: number;
|
|
22
|
-
|
|
29
|
+
viewport_configs: ViewportConfigs;
|
|
23
30
|
}): number;
|
|
@@ -340,6 +340,10 @@ export type Joint = Partial<{
|
|
|
340
340
|
* Lineage of the entity through linkers.
|
|
341
341
|
*/
|
|
342
342
|
export type Lineage = Partial<{
|
|
343
|
+
/**
|
|
344
|
+
* UUIDs of the hierarchy of linkers that brought this entity.
|
|
345
|
+
*/
|
|
346
|
+
readonly value: Array<UUID>;
|
|
343
347
|
/**
|
|
344
348
|
* UUID of the parent of this entity (default is root).
|
|
345
349
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ScreenSpaceRayQuery, ScreenSpaceRayResult, SkeletonPoseMessage, UpdateAnimationSequenceStateMessage, UpdateEntitiesFromJsonMessage,
|
|
1
|
+
import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ScreenSpaceRayQuery, ScreenSpaceRayResult, SkeletonPoseMessage, UpdateAnimationSequenceStateMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "../_prebuild/messages/gateway";
|
|
2
2
|
import { ComponentSerializer } from "./ComponentSerializer";
|
|
3
3
|
import { RTID, UUID, Vec2i } from "./types";
|
|
4
4
|
import { EntityInterface } from "./interfaces/EntityInterface";
|
|
@@ -82,8 +82,8 @@ export declare class LivelinkCore {
|
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
|
-
setViewports({
|
|
86
|
-
|
|
85
|
+
setViewports({ viewport_configs }: {
|
|
86
|
+
viewport_configs: ViewportConfigs;
|
|
87
87
|
}): void;
|
|
88
88
|
/***************************************************************************
|
|
89
89
|
* CLIENT REMOTE OPERATIONS (5)
|
|
@@ -153,6 +153,13 @@ export declare class LivelinkCore {
|
|
|
153
153
|
findEntitiesByEUID({ entity_uuid }: {
|
|
154
154
|
entity_uuid: UUID;
|
|
155
155
|
}): Promise<Array<EditorEntity>>;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
getEntity({ entity_uuid, linkage, }: {
|
|
160
|
+
entity_uuid: UUID;
|
|
161
|
+
linkage: Array<UUID>;
|
|
162
|
+
}): Promise<EditorEntity | null>;
|
|
156
163
|
/**
|
|
157
164
|
*
|
|
158
165
|
*/
|