@3dverse/livelink.core 0.4.0 → 0.4.1
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.
|
@@ -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;
|
|
@@ -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)
|