@3dverse/livelink.core 0.5.0 → 0.5.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/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 +24 -28
- 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";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* DO NOT EDIT THIS FILE MANUALLY.
|
|
3
3
|
* This file has been generated automatically from ftl-schemas
|
|
4
4
|
*/
|
|
5
|
-
import type { RTID, UUID, Quat, Vec3, Vec2, Int32, UInt32, Float, Int8 } from "../../sources/types";
|
|
5
|
+
import type { RTID, UUID, Mat4, Quat, Vec3, Vec2, Int32, UInt32, Float, Int8 } from "../../sources/types";
|
|
6
6
|
import type * as Assets from "./assets";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
@@ -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.
|
|
@@ -525,6 +541,10 @@ export type PerspectiveLens = Partial<{
|
|
|
525
541
|
* Distance from the viewer to the far clipping plane.
|
|
526
542
|
*/
|
|
527
543
|
farPlane: Float;
|
|
544
|
+
/**
|
|
545
|
+
* Offset of the projection for stereoscopic rendering.
|
|
546
|
+
*/
|
|
547
|
+
offset: Vec2;
|
|
528
548
|
}>;
|
|
529
549
|
/**
|
|
530
550
|
* Physics material which represents a set of physical surface properties.
|
|
@@ -814,37 +834,13 @@ export type SpotLight = Partial<{
|
|
|
814
834
|
IESProfile: AssetRef<Assets.Texture>;
|
|
815
835
|
}>;
|
|
816
836
|
/**
|
|
817
|
-
* A lens that applies
|
|
837
|
+
* A lens that applies a custom projection.
|
|
818
838
|
*/
|
|
819
839
|
export type StereoscopicLens = Partial<{
|
|
820
840
|
/**
|
|
821
|
-
*
|
|
841
|
+
* Projection matrix.
|
|
822
842
|
*/
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* Angle of the right side of the field of view.
|
|
826
|
-
*/
|
|
827
|
-
angleRight: Float;
|
|
828
|
-
/**
|
|
829
|
-
* Angle of the top part of the field of view.
|
|
830
|
-
*/
|
|
831
|
-
angleUp: Float;
|
|
832
|
-
/**
|
|
833
|
-
* Angle of the bottom part of the field of view (this value is negative).
|
|
834
|
-
*/
|
|
835
|
-
angleDown: Float;
|
|
836
|
-
/**
|
|
837
|
-
* Specifies the distance from the viewer to the near clipping plane.
|
|
838
|
-
*/
|
|
839
|
-
nearPlane: Float;
|
|
840
|
-
/**
|
|
841
|
-
* Specifies the distance from the viewer to the far clipping plane.
|
|
842
|
-
*/
|
|
843
|
-
farPlane: Float;
|
|
844
|
-
/**
|
|
845
|
-
* Specifies the aspect ratio of the viewport, usually equals width/height.
|
|
846
|
-
*/
|
|
847
|
-
aspectRatio: Float;
|
|
843
|
+
cs_from_vs: Mat4;
|
|
848
844
|
}>;
|
|
849
845
|
/**
|
|
850
846
|
* Tags used to filter entities.
|
|
@@ -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;
|