@3dverse/livelink.core 0.5.0 → 0.5.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.
- package/dist/_prebuild/GatewayMessageHandler.d.ts +5 -5
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +0 -1
- package/dist/_prebuild/messages/gateway/index.d.ts +0 -1
- package/dist/_prebuild/types/components.d.ts +16 -0
- package/dist/_prebuild/types/settings.d.ts +4 -0
- package/dist/sources/LivelinkCore.d.ts +1 -5
- package/package.json +1 -1
- package/dist/_prebuild/messages/gateway/UpdateAnimationSequenceStateMessage.d.ts +0 -25
|
@@ -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, SessionAuth, SkeletonPoseMessage,
|
|
6
|
+
import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, SkeletonPoseMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "./messages/gateway";
|
|
7
7
|
import { UUID, Vec2ui16 } from "../sources/types";
|
|
8
8
|
/**
|
|
9
9
|
* Message handlers interface.
|
|
@@ -21,6 +21,10 @@ export declare class GatewayMessageHandler extends EventTarget {
|
|
|
21
21
|
* Closes any ongoing connection with the gateway.
|
|
22
22
|
*/
|
|
23
23
|
protected _disconnect(): void;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
_onDisconnected(): void;
|
|
24
28
|
/***************************************************************************
|
|
25
29
|
* AUTHENTICATION (0)
|
|
26
30
|
**************************************************************************/
|
|
@@ -136,10 +140,6 @@ export declare class GatewayMessageHandler extends EventTarget {
|
|
|
136
140
|
* Send
|
|
137
141
|
*/
|
|
138
142
|
sendSkeletonPose(sendSkeletonPoseMessage: SkeletonPoseMessage): void;
|
|
139
|
-
/**
|
|
140
|
-
* Send
|
|
141
|
-
*/
|
|
142
|
-
updateAnimationSequenceState(updateAnimationSequenceStateMessage: UpdateAnimationSequenceStateMessage): void;
|
|
143
143
|
/**
|
|
144
144
|
* Send
|
|
145
145
|
*/
|
|
@@ -13,6 +13,5 @@ export * from "./ScreenSpaceRayResult";
|
|
|
13
13
|
export * from "./ScriptEvent";
|
|
14
14
|
export * from "./SendSkeletonPoseMessage";
|
|
15
15
|
export * from "./SessionAuth";
|
|
16
|
-
export * from "./UpdateAnimationSequenceStateMessage";
|
|
17
16
|
export * from "./UpdateEntitiesFromJsonMessage";
|
|
18
17
|
export * from "./ViewportConfig";
|
|
@@ -67,10 +67,26 @@ export type AnimationSequenceController = Partial<{
|
|
|
67
67
|
* The speed at which to play the animation sequence. The sequence will go in reverse if set to a value lower than 0.
|
|
68
68
|
*/
|
|
69
69
|
playbackSpeed: Float;
|
|
70
|
+
/**
|
|
71
|
+
* The normalized offset at which to start the playback.
|
|
72
|
+
*/
|
|
73
|
+
startOffset: Float;
|
|
74
|
+
/**
|
|
75
|
+
* The normalized offset at which to stop the playback (or loop back to start offset).
|
|
76
|
+
*/
|
|
77
|
+
stopOffset: Float;
|
|
70
78
|
/**
|
|
71
79
|
* Whether or not the animation loops when it reaches the end of the sequence.
|
|
72
80
|
*/
|
|
73
81
|
loop: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The play state of the animation.
|
|
84
|
+
*/
|
|
85
|
+
playState: Int32;
|
|
86
|
+
/**
|
|
87
|
+
* The offset to seek at next frame. Must be in the [0, 1] range.
|
|
88
|
+
*/
|
|
89
|
+
seekOffset: Float;
|
|
74
90
|
}>;
|
|
75
91
|
/**
|
|
76
92
|
* Links entity to bone in skeleton.
|
|
@@ -119,6 +119,10 @@ export type Physics = Partial<{
|
|
|
119
119
|
* Global gravity applied throughout the scene.
|
|
120
120
|
*/
|
|
121
121
|
gravity: Vec3;
|
|
122
|
+
/**
|
|
123
|
+
* A frame-rate-independent interval that dictates when physics calculations are performed.
|
|
124
|
+
*/
|
|
125
|
+
timestepInS: Float;
|
|
122
126
|
/**
|
|
123
127
|
* The approximate size of objects in the simulation. This is used to estimate certain length-related tolerances.
|
|
124
128
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ScreenSpaceRayQuery, ScreenSpaceRayResult, SkeletonPoseMessage,
|
|
1
|
+
import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ScreenSpaceRayQuery, ScreenSpaceRayResult, SkeletonPoseMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "../_prebuild/messages/gateway";
|
|
2
2
|
import { Serializer } from "./Serializer";
|
|
3
3
|
import { RTID, UUID, Vec2i } from "./types";
|
|
4
4
|
import { EntityInterface } from "./interfaces/EntityInterface";
|
|
@@ -123,10 +123,6 @@ export declare class LivelinkCore {
|
|
|
123
123
|
* 20
|
|
124
124
|
*/
|
|
125
125
|
assignClientToScript(assignClientToScriptMessage: AssignClientToScriptMessage): void;
|
|
126
|
-
/**
|
|
127
|
-
* 23
|
|
128
|
-
*/
|
|
129
|
-
updateAnimationSequenceState(updateAnimationSequenceStateMessage: UpdateAnimationSequenceStateMessage): void;
|
|
130
126
|
/**
|
|
131
127
|
* 24
|
|
132
128
|
*/
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { RTID, UUID } from "../../../sources/types";
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export type UpdateAnimationSequenceStateMessage = {
|
|
6
|
-
linker_rtid: RTID;
|
|
7
|
-
animation_sequence_id: UUID;
|
|
8
|
-
state: 0 | 1;
|
|
9
|
-
playback_speed: number;
|
|
10
|
-
seek_offset?: number;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare function comppute_UpdateAnimationSequenceStateMessage_size({ updateAnimationSequenceStateMessage, }: {
|
|
16
|
-
updateAnimationSequenceStateMessage: UpdateAnimationSequenceStateMessage;
|
|
17
|
-
}): number;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare function serialize_UpdateAnimationSequenceStateMessage({ data_view, offset, updateAnimationSequenceStateMessage, }: {
|
|
22
|
-
data_view: DataView;
|
|
23
|
-
offset?: number;
|
|
24
|
-
updateAnimationSequenceStateMessage: UpdateAnimationSequenceStateMessage;
|
|
25
|
-
}): number;
|