@3dverse/livelink.core 0.7.12 → 0.8.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/dist/_prebuild/EditorMessageHandler.d.ts +5 -5
- package/dist/_prebuild/GatewayConnection.d.ts +6 -0
- package/dist/_prebuild/GatewayMessageHandler.d.ts +7 -4
- package/dist/_prebuild/enums.d.ts +4 -1
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +18 -17
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts +52 -3
- package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +6 -0
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -1
- package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +3 -0
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +3 -3
- package/dist/_prebuild/messages/editor/index.d.ts +1 -1
- package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +2 -2
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +3 -2
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/ClientConfig.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/FrameData.d.ts +5 -5
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/InputState.d.ts +3 -3
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +4 -3
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +2 -2
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +4 -3
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +2 -2
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +1 -1
- package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +4 -3
- package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +4 -3
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +4 -4
- package/dist/_prebuild/messages/gateway/enums.d.ts +6 -6
- package/dist/_prebuild/types/ComponentsHashes.d.ts +53 -0
- package/dist/_prebuild/types/ComponentsRecord.d.ts +186 -0
- package/dist/_prebuild/types/SceneSettingsRecord.d.ts +50 -0
- package/dist/_prebuild/types/assets.d.ts +27 -23
- package/dist/_prebuild/types/components.d.ts +380 -318
- package/dist/_prebuild/types/{settings.d.ts → sceneSettings.d.ts} +85 -70
- package/dist/sources/ActivityWatcher.d.ts +44 -0
- package/dist/sources/LivelinkCore.d.ts +12 -11
- package/dist/sources/RequestHandler.d.ts +2 -0
- package/dist/sources/Serializer.d.ts +6 -6
- package/dist/sources/{types/constants.d.ts → constants.d.ts} +2 -2
- package/dist/sources/controllers/GatewayController.d.ts +10 -3
- package/dist/sources/core.d.ts +25 -5
- package/dist/sources/interfaces/ClientInterface.d.ts +5 -0
- package/dist/sources/interfaces/EntityInterface.d.ts +11 -0
- package/dist/sources/interfaces/SessionInterface.d.ts +9 -4
- package/dist/sources/types/RTID.d.ts +4 -3
- package/dist/sources/types/UUID.d.ts +4 -4
- package/dist/sources/types/dataObjects.d.ts +52 -0
- package/dist/sources/types/index.d.ts +2 -5
- package/dist/sources/types/math.d.ts +38 -17
- package/dist/sources/types/nativeTypes.d.ts +84 -13
- package/package.json +10 -2
- package/dist/_prebuild/messages/editor/EntityCreationOptions.d.ts +0 -6
- package/dist/sources/controllers/ActivityWatcher.d.ts +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RTID, UUID } from "../sources/types";
|
|
2
2
|
import { EntityInterface } from "../sources/interfaces/EntityInterface";
|
|
3
|
-
import { ConnectConfirmation, EditorEntity,
|
|
4
|
-
import { ComponentType } from "./types/
|
|
3
|
+
import { ConnectConfirmation, EditorEntity, EntityCreationCoreOptions, EntityUpdatedEvent, EntityVisibilityChangedEvent, UpdateComponentsCommand } from "./messages/editor";
|
|
4
|
+
import { ComponentType } from "./types/ComponentsRecord";
|
|
5
5
|
/**
|
|
6
6
|
* This follows the Livelink protocol specifications for the broker messages.
|
|
7
7
|
*/
|
|
@@ -30,14 +30,14 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
30
30
|
*/
|
|
31
31
|
spawnEntity({ entity, options }: {
|
|
32
32
|
entity: EntityInterface;
|
|
33
|
-
options?:
|
|
33
|
+
options?: EntityCreationCoreOptions;
|
|
34
34
|
}): Promise<EditorEntity[]>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
createEntities({ entities, options }: {
|
|
39
39
|
entities: Array<EntityInterface>;
|
|
40
|
-
options?:
|
|
40
|
+
options?: EntityCreationCoreOptions;
|
|
41
41
|
}): Promise<EditorEntity[]>;
|
|
42
42
|
onEntitiesCreated(data: Array<EditorEntity>): void;
|
|
43
43
|
/**
|
|
@@ -95,7 +95,7 @@ export declare class EditorMessageHandler extends EventTarget {
|
|
|
95
95
|
*
|
|
96
96
|
*/
|
|
97
97
|
findEntitiesByNames({ entity_names }: {
|
|
98
|
-
entity_names: Array<
|
|
98
|
+
entity_names: Array<string>;
|
|
99
99
|
}): Promise<Array<EditorEntity>>;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
5
|
*/
|
|
6
6
|
import { GatewayMessageHandler } from "./GatewayMessageHandler";
|
|
7
|
+
/**
|
|
8
|
+
* The reason why the gateway has disconnected.
|
|
9
|
+
*
|
|
10
|
+
* @category Core
|
|
11
|
+
*/
|
|
12
|
+
export type GatewayDisconnectedReason = "closed" | "forcibly_closed" | "inactivity";
|
|
7
13
|
/**
|
|
8
14
|
* Holds the connection to the cluster gateway hosting the renderer and the viewer handling the
|
|
9
15
|
* session.
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
|
|
5
5
|
*/
|
|
6
6
|
import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, RemoveFilterMessage, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, SetFilterMessage, SkeletonPoseMessage, ToggleFilterMessage, UpdateEntitiesFromBytesMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "./messages/gateway";
|
|
7
|
-
import {
|
|
7
|
+
import { GatewayDisconnectedReason } from "./GatewayConnection";
|
|
8
|
+
import { UUID, Vec2ui16 } from "../sources/types";
|
|
8
9
|
/**
|
|
9
10
|
* Message handlers interface.
|
|
10
11
|
* This follows the Livelink protocol specifications for the gateway messages.
|
|
11
12
|
*/
|
|
12
|
-
export declare class GatewayMessageHandler extends EventTarget {
|
|
13
|
+
export declare abstract class GatewayMessageHandler extends EventTarget {
|
|
13
14
|
#private;
|
|
14
15
|
/**
|
|
15
16
|
* Opens the connection to the specified gateway.
|
|
@@ -34,7 +35,9 @@ export declare class GatewayMessageHandler extends EventTarget {
|
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
36
37
|
*/
|
|
37
|
-
_onMessageSent(is_heart_beat
|
|
38
|
+
abstract _onMessageSent({ is_heart_beat }: {
|
|
39
|
+
is_heart_beat?: boolean;
|
|
40
|
+
}): void;
|
|
38
41
|
/***************************************************************************
|
|
39
42
|
* AUTHENTICATION (0)
|
|
40
43
|
**************************************************************************/
|
|
@@ -133,7 +136,7 @@ export declare class GatewayMessageHandler extends EventTarget {
|
|
|
133
136
|
/**
|
|
134
137
|
* Reply
|
|
135
138
|
*/
|
|
136
|
-
_on_clientRemoteOperation_response({ client_id, request_id,
|
|
139
|
+
_on_clientRemoteOperation_response({ client_id, request_id, data_view, }: {
|
|
137
140
|
client_id: UUID;
|
|
138
141
|
request_id: number;
|
|
139
142
|
size: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { UUID } from "../../../sources/types";
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentType } from "../../types/ComponentsRecord";
|
|
3
|
+
import { SceneSettingsRecord, SceneSettingType } from "../../types/SceneSettingsRecord";
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* @category Editor
|
|
5
6
|
*/
|
|
6
7
|
export type SceneStats = {
|
|
7
8
|
readonly triangleCount: number;
|
|
@@ -9,7 +10,7 @@ export type SceneStats = {
|
|
|
9
10
|
readonly entityCount: number;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* @category Editor
|
|
13
14
|
*/
|
|
14
15
|
export type AttributeDescriptor = {
|
|
15
16
|
readonly type: string;
|
|
@@ -18,7 +19,7 @@ export type AttributeDescriptor = {
|
|
|
18
19
|
readonly default?: unknown;
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* @category Editor
|
|
22
23
|
*/
|
|
23
24
|
export type ComponentDescriptor = {
|
|
24
25
|
readonly attributes: Array<AttributeDescriptor>;
|
|
@@ -31,39 +32,39 @@ export type ComponentDescriptor = {
|
|
|
31
32
|
readonly size: number;
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* @category Editor
|
|
35
36
|
*/
|
|
36
|
-
export type SettingAttributeDescriptor<T extends
|
|
37
|
+
export type SettingAttributeDescriptor<T extends SceneSettingType> = {
|
|
37
38
|
readonly default: T;
|
|
38
39
|
readonly name: string;
|
|
39
40
|
readonly type: string;
|
|
40
41
|
};
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
+
* @category Editor
|
|
43
44
|
*/
|
|
44
|
-
export type SettingDescriptor<T extends
|
|
45
|
+
export type SettingDescriptor<T extends SceneSettingType> = {
|
|
45
46
|
readonly attributes: Array<SettingAttributeDescriptor<T>>;
|
|
46
47
|
readonly name: string;
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
|
-
*
|
|
50
|
+
* @category Editor
|
|
50
51
|
*/
|
|
51
52
|
export type ConnectConfirmation = {
|
|
52
53
|
readonly canEdit: boolean;
|
|
53
|
-
readonly clientColors:
|
|
54
|
-
readonly clientRTID:
|
|
55
|
-
readonly components: Record<
|
|
54
|
+
readonly clientColors: unknown;
|
|
55
|
+
readonly clientRTID: unknown;
|
|
56
|
+
readonly components: Record<ComponentType, ComponentDescriptor>;
|
|
56
57
|
readonly isTransient: boolean;
|
|
57
|
-
readonly rootNodes:
|
|
58
|
+
readonly rootNodes: unknown;
|
|
58
59
|
readonly sceneUUID: UUID;
|
|
59
60
|
readonly selectColor: string;
|
|
60
61
|
readonly sessionUUID: UUID;
|
|
61
|
-
readonly settingDescriptions: Record<
|
|
62
|
-
readonly settings:
|
|
62
|
+
readonly settingDescriptions: Record<SceneSettingType, SettingDescriptor<SceneSettingType>>;
|
|
63
|
+
readonly settings: SceneSettingsRecord;
|
|
63
64
|
readonly stats: SceneStats;
|
|
64
65
|
readonly undoRedo: {
|
|
65
|
-
undo:
|
|
66
|
-
redo:
|
|
66
|
+
undo: unknown;
|
|
67
|
+
redo: unknown;
|
|
67
68
|
};
|
|
68
69
|
readonly userUUID: UUID;
|
|
69
70
|
readonly workspaceUUID: UUID;
|
|
@@ -1,26 +1,75 @@
|
|
|
1
1
|
import type { UUID } from "../../../sources/types";
|
|
2
|
+
import { Euid } from "../../types/components";
|
|
3
|
+
import type { ComponentsRecord } from "../../types/ComponentsRecord";
|
|
2
4
|
/**
|
|
5
|
+
* @deprecated
|
|
3
6
|
*
|
|
7
|
+
* @category Editor
|
|
4
8
|
*/
|
|
5
|
-
type ClientSelection = {
|
|
9
|
+
export type ClientSelection = {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
6
13
|
clientUUID: UUID;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
7
17
|
directSelection?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
8
21
|
color?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
9
25
|
isExternal?: boolean;
|
|
10
26
|
};
|
|
11
27
|
/**
|
|
28
|
+
* Representation of an entity as seen by the editor.
|
|
12
29
|
*
|
|
30
|
+
* @category Editor
|
|
13
31
|
*/
|
|
14
32
|
export type EditorEntity = {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
15
36
|
rtid: string;
|
|
16
|
-
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
components: {
|
|
41
|
+
euid?: Euid;
|
|
42
|
+
} & ComponentsRecord;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
17
46
|
children: string[];
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
18
50
|
selectingClients: ClientSelection[];
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
*/
|
|
19
54
|
selectedDescendants: Record<string, ClientSelection[]>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
20
58
|
isVisible: boolean;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
21
62
|
isRuntime: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
22
66
|
isExternal: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
23
70
|
isTransient: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
24
74
|
ancestors?: EditorEntity[];
|
|
25
75
|
};
|
|
26
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UUID } from "../../../sources/types";
|
|
2
|
-
import
|
|
2
|
+
import { ComponentsRecord } from "../../types/ComponentsRecord";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* @category Editor
|
|
5
5
|
*/
|
|
6
|
-
export type UpdateComponentsCommand = Record<UUID,
|
|
6
|
+
export type UpdateComponentsCommand = Record<UUID, ComponentsRecord>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./ConnectConfirmation";
|
|
2
2
|
export * from "./EditorEntity";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./EntityCreationCoreOptions";
|
|
4
4
|
export * from "./EntityUpdatedEvent";
|
|
5
5
|
export * from "./UpdateComponentsCommand";
|
|
6
6
|
export * from "./EntityVisibilityChangedEvent";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* @category Gateway
|
|
3
3
|
*/
|
|
4
4
|
export type AssetLoadingEvent = {
|
|
5
5
|
loading_payloads: boolean;
|
|
@@ -7,7 +7,7 @@ export type AssetLoadingEvent = {
|
|
|
7
7
|
pending_scenes: number;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* @internal
|
|
11
11
|
*/
|
|
12
12
|
export declare function deserialize_AssetLoadingEvent({ data_view }: {
|
|
13
13
|
data_view: DataView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RTID, UUID } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type AssignClientToScriptMessage = {
|
|
6
6
|
client_uuid: UUID;
|
|
@@ -8,11 +8,12 @@ export type AssignClientToScriptMessage = {
|
|
|
8
8
|
entity_rtid: RTID;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @internal
|
|
11
12
|
* UUID_BYTE_SIZE * 2 + RTID_BYTE_SIZE;
|
|
12
13
|
*/
|
|
13
14
|
export declare const ASSIGN_CLIENT_TO_SCRIPT_MESSAGE_BYTE_SIZE: 36;
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* @internal
|
|
16
17
|
*/
|
|
17
18
|
export declare function serialize_AssignClientToScriptMessage({ data_view, offset, assignClientToScriptMessage, }: {
|
|
18
19
|
data_view: DataView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UUID } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare enum AuthenticationStatus {
|
|
6
6
|
unknown_error = 0,
|
|
@@ -16,14 +16,14 @@ export declare enum AuthenticationStatus {
|
|
|
16
16
|
client_not_found = 400
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* @internal
|
|
20
20
|
*/
|
|
21
21
|
export type AuthenticationResponse = {
|
|
22
22
|
status: AuthenticationStatus;
|
|
23
23
|
client_id: UUID;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* @internal
|
|
27
27
|
*/
|
|
28
28
|
export declare function deserialize_AuthenticationResponse({ data_view, offset, }: {
|
|
29
29
|
data_view: DataView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Vec2i } from "../../../sources/types";
|
|
2
2
|
import { CodecType } from "./enums";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* @category Gateway
|
|
5
5
|
*/
|
|
6
6
|
export type ClientConfig = {
|
|
7
7
|
remote_canvas_size: Vec2i;
|
|
@@ -9,7 +9,7 @@ export type ClientConfig = {
|
|
|
9
9
|
supported_devices: SupportedDevices;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* @category Gateway
|
|
13
13
|
*/
|
|
14
14
|
export declare enum EncodingProfile {
|
|
15
15
|
base = 0,
|
|
@@ -17,7 +17,7 @@ export declare enum EncodingProfile {
|
|
|
17
17
|
high = 2
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @category Gateway
|
|
21
21
|
*/
|
|
22
22
|
export type EncoderConfig = {
|
|
23
23
|
codec: CodecType;
|
|
@@ -26,7 +26,7 @@ export type EncoderConfig = {
|
|
|
26
26
|
lossy: boolean;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* @category Gateway
|
|
30
30
|
*/
|
|
31
31
|
export type SupportedDevices = {
|
|
32
32
|
keyboard: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { CodecType } from "./enums";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type ClientConfigResponse = {
|
|
6
6
|
codec: CodecType;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* @internal
|
|
10
10
|
*/
|
|
11
11
|
export declare function deserialize_ClientConfigResponse({ data_view, offset }: {
|
|
12
12
|
data_view: DataView;
|
|
13
|
-
offset
|
|
13
|
+
offset?: number;
|
|
14
14
|
}): {
|
|
15
15
|
codec: number;
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RTID, UUID } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type FireEventMessage = {
|
|
6
6
|
event_map_id: UUID;
|
|
@@ -10,11 +10,11 @@ export type FireEventMessage = {
|
|
|
10
10
|
data_object: Record<string, unknown>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @internal
|
|
14
14
|
*/
|
|
15
15
|
export declare function compute_FireEventMessage_size(fireEventMessage: FireEventMessage): number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* @internal
|
|
18
18
|
*/
|
|
19
19
|
export declare function serialize_FireEventMessage({ data_view, offset, fireEventMessage, }: {
|
|
20
20
|
data_view: DataView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mat4, RTID, UUID, Vec3 } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type FrameData = {
|
|
6
6
|
encoded_frame_size: number;
|
|
@@ -9,7 +9,7 @@ export type FrameData = {
|
|
|
9
9
|
meta_data: RawFrameMetaData;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* @category Gateway
|
|
13
13
|
*/
|
|
14
14
|
export type RawFrameMetaData = {
|
|
15
15
|
renderer_timestamp: number;
|
|
@@ -17,7 +17,7 @@ export type RawFrameMetaData = {
|
|
|
17
17
|
clients: Array<ClientMetaData>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* @category Gateway
|
|
21
21
|
*/
|
|
22
22
|
export type ClientMetaData = {
|
|
23
23
|
client_id: UUID;
|
|
@@ -27,14 +27,14 @@ export type ClientMetaData = {
|
|
|
27
27
|
viewports: Array<ViewportMetaData>;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* @category Gateway
|
|
31
31
|
*/
|
|
32
32
|
export type ViewportMetaData = {
|
|
33
33
|
camera_rtid: RTID;
|
|
34
34
|
ws_from_ls: Mat4;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* @internal
|
|
38
38
|
*/
|
|
39
39
|
export declare function deserialize_FrameData({ data_view, offset }: {
|
|
40
40
|
data_view: DataView;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RTID } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type HighlightEntitiesMessage = {
|
|
6
6
|
entities: Array<RTID>;
|
|
7
7
|
keep_old_selection: boolean;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* @internal
|
|
11
11
|
*/
|
|
12
12
|
export declare function compute_HighlightEntitiesMessage_size({ highlightEntitiesMessage, }: {
|
|
13
13
|
highlightEntitiesMessage: HighlightEntitiesMessage;
|
|
14
14
|
}): number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* @internal
|
|
17
17
|
*/
|
|
18
18
|
export declare function serialize_HighlightEntitiesMessage({ data_view, offset, highlightEntitiesMessage, }: {
|
|
19
19
|
data_view: DataView;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { InputOperation } from "./enums";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type InputState = {
|
|
6
6
|
input_operation: InputOperation;
|
|
7
7
|
input_data?: Uint8Array;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* @internal
|
|
11
11
|
*/
|
|
12
12
|
export declare function compute_InputState_size({ input_state }: {
|
|
13
13
|
input_state: InputState;
|
|
14
14
|
}): number;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* @internal
|
|
17
17
|
*/
|
|
18
18
|
export declare function serialize_InputState({ data_view, offset, input_state, }: {
|
|
19
19
|
data_view: DataView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityInterface } from "../../../sources/interfaces";
|
|
2
|
-
import { ComponentType } from "../../types/
|
|
2
|
+
import { ComponentType } from "../../types/ComponentsRecord";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* @category Gateway
|
|
5
5
|
*/
|
|
6
6
|
export type RemoveComponentsCommand = {
|
|
7
7
|
components: Array<{
|
|
@@ -10,11 +10,11 @@ export type RemoveComponentsCommand = {
|
|
|
10
10
|
}>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @internal
|
|
14
14
|
*/
|
|
15
15
|
export declare function compute_RemoveComponentsCommand_size(removeComponentsCommand: RemoveComponentsCommand): number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* @internal
|
|
18
18
|
*/
|
|
19
19
|
export declare function serialize_RemoveComponentsCommand({ data_view, offset, removeComponentsCommand, }: {
|
|
20
20
|
data_view: DataView;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* @experimental
|
|
3
|
+
* @category Gateway
|
|
3
4
|
*/
|
|
4
5
|
export type RemoveFilterMessage = {
|
|
5
6
|
name: string;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* @internal
|
|
9
10
|
*/
|
|
10
11
|
export declare function compute_RemoveFilterMessage_size(removeFilterMessage: RemoveFilterMessage): number;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* @internal
|
|
13
14
|
*/
|
|
14
15
|
export declare function serialize_RemoveFilterMessage({ data_view, offset, removeFilterMessage, }: {
|
|
15
16
|
data_view: DataView;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Vec2ui16 } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type ResizeResponse = {
|
|
6
6
|
size: Vec2ui16;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* @internal
|
|
10
10
|
*/
|
|
11
11
|
export declare function deserialize_ResizeResponse({ data_view, offset, }: {
|
|
12
12
|
data_view: DataView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RTID, Vec2 } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export declare enum HighlightMode {
|
|
6
6
|
None = 0,
|
|
@@ -8,7 +8,7 @@ export declare enum HighlightMode {
|
|
|
8
8
|
HighlightAndDiscardOldSelection = 2
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @category Gateway
|
|
12
12
|
*/
|
|
13
13
|
export type ScreenSpaceRayQuery = {
|
|
14
14
|
camera_rtid: RTID;
|
|
@@ -16,11 +16,12 @@ export type ScreenSpaceRayQuery = {
|
|
|
16
16
|
mode: HighlightMode;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
+
* @internal
|
|
19
20
|
* 8 + 1 + 4
|
|
20
21
|
*/
|
|
21
22
|
export declare const SCREEN_SPACE_QUERY_BYTE_SIZE: 13;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* @internal
|
|
24
25
|
*/
|
|
25
26
|
export declare function serialize_ScreenSpaceRayQuery({ data_view, offset, screenSpaceRayQuery, }: {
|
|
26
27
|
data_view: DataView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RTID, Vec3 } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type ScreenSpaceRayResult = {
|
|
6
6
|
entity_rtid: RTID;
|
|
@@ -8,7 +8,7 @@ export type ScreenSpaceRayResult = {
|
|
|
8
8
|
normal: Vec3;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @internal
|
|
12
12
|
*/
|
|
13
13
|
export declare function deserialize_ScreenSpaceRayResult({ data_view, offset, }: {
|
|
14
14
|
data_view: DataView;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { RTID } from "../../../sources/types";
|
|
1
|
+
import { RTID, ScriptDataObject } from "../../../sources/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @category Gateway
|
|
4
4
|
*/
|
|
5
5
|
export type ScriptEvent = {
|
|
6
6
|
emitter_rtid: RTID;
|
|
7
7
|
event_name: string;
|
|
8
8
|
target_rtids: Array<RTID>;
|
|
9
|
-
data_object:
|
|
9
|
+
data_object: ScriptDataObject;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export declare function deserialize_ScriptEvent({ data_view, offset, }: {
|
|
15
15
|
data_view: DataView;
|