@3dverse/livelink.core 0.8.0 → 1.0.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/README.md +61 -17
- package/dist/_prebuild/EditorConnection.d.ts +1 -29
- package/dist/_prebuild/EditorMessageHandler.d.ts +1 -139
- package/dist/_prebuild/GatewayConnection.d.ts +1 -64
- package/dist/_prebuild/GatewayMessageHandler.d.ts +1 -197
- package/dist/_prebuild/engine_types/ComponentsHashes.d.ts +5 -0
- package/dist/_prebuild/{types → engine_types}/ComponentsRecord.d.ts +65 -44
- package/dist/_prebuild/{types → engine_types}/assets.d.ts +69 -0
- package/dist/_prebuild/{types → engine_types}/components.d.ts +164 -164
- package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +1 -71
- package/dist/_prebuild/messages/editor/EditorEntity.d.ts +1 -75
- package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -7
- package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +1 -8
- package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +1 -6
- package/dist/_prebuild/messages/editor/index.d.ts +0 -1
- package/dist/_prebuild/messages/gateway/commands/AssignClientToScriptCommand.d.ts +9 -0
- package/dist/_prebuild/messages/gateway/commands/AuthenticationCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/{ClientConfig.d.ts → commands/ConfigureClientCommand.d.ts} +11 -13
- package/dist/_prebuild/messages/gateway/commands/FireEventCommand.d.ts +11 -0
- package/dist/_prebuild/messages/gateway/commands/HighlightEntitiesCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/InputStateCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveComponentsCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/RemoveFilterCommand.d.ts +7 -0
- package/dist/_prebuild/messages/gateway/commands/ResizeCommand.d.ts +13 -0
- package/dist/_prebuild/messages/gateway/commands/SendSkeletonPoseCommand.d.ts +25 -0
- package/dist/_prebuild/messages/gateway/commands/SetFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/ToggleFilterCommand.d.ts +8 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromBytesCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromJsonCommand.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/commands/ViewportConfigCommand.d.ts +16 -0
- package/dist/_prebuild/messages/gateway/commands/index.d.ts +15 -0
- package/dist/_prebuild/messages/gateway/enums.d.ts +8 -115
- package/dist/_prebuild/messages/gateway/events/AssetLoadingEvent.d.ts +1 -0
- package/dist/_prebuild/messages/gateway/events/FrameDataEvent.d.ts +26 -0
- package/dist/_prebuild/messages/gateway/events/ScriptEvent.d.ts +10 -0
- package/dist/_prebuild/messages/gateway/events/index.d.ts +3 -0
- package/dist/_prebuild/messages/gateway/index.d.ts +16 -22
- package/dist/_prebuild/messages/gateway/queries/ScreenSpaceRayQuery.d.ts +18 -0
- package/dist/_prebuild/messages/gateway/queries/index.d.ts +1 -0
- package/dist/_prebuild/messages/index.d.ts +2 -0
- package/dist/library.cjs +1 -1
- package/dist/library.cjs.map +4 -4
- package/dist/library.mjs +1 -1
- package/dist/library.mjs.map +4 -4
- package/dist/sources/ActivityWatcher.d.ts +40 -21
- package/dist/sources/CoreEvents.d.ts +35 -0
- package/dist/sources/DynamicLoader.d.ts +38 -0
- package/dist/sources/EntityUtils.d.ts +117 -0
- package/dist/sources/LivelinkCore.d.ts +131 -127
- package/dist/sources/{interfaces/SessionInterface.d.ts → SessionInterface.d.ts} +2 -6
- package/dist/sources/TypedEventTarget.d.ts +14 -0
- package/dist/sources/controllers/EditorController.d.ts +1 -21
- package/dist/sources/controllers/EditorEvents.d.ts +27 -0
- package/dist/sources/controllers/GatewayController.d.ts +1 -60
- package/dist/sources/controllers/GatewayEvents.d.ts +54 -0
- package/dist/sources/core.d.ts +12 -11
- package/dist/sources/internal/RequestHandler.d.ts +1 -0
- package/dist/sources/internal/Serializer.d.ts +1 -0
- package/dist/sources/library.d.ts +1 -1
- package/dist/sources/types/RTID.d.ts +6 -21
- package/dist/sources/types/UUID.d.ts +11 -21
- package/dist/sources/types/dataObjects.d.ts +1 -1
- package/dist/sources/types/index.d.ts +1 -0
- package/dist/sources/types/math.d.ts +1 -105
- package/dist/sources/types/nativeTypes.d.ts +0 -132
- package/dist/sources/types/utils.d.ts +19 -0
- package/package.json +6 -4
- package/dist/_prebuild/enums.d.ts +0 -6
- package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +0 -6
- package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +0 -31
- package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/FrameData.d.ts +0 -42
- package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/InputState.d.ts +0 -22
- package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +0 -19
- package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +0 -14
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +0 -30
- package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +0 -16
- package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +0 -17
- package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +0 -28
- package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +0 -8
- package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +0 -20
- package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +0 -20
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +0 -25
- package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +0 -23
- package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +0 -30
- package/dist/_prebuild/types/ComponentsHashes.d.ts +0 -53
- package/dist/sources/LivelinkCoreModule.d.ts +0 -39
- package/dist/sources/RequestHandler.d.ts +0 -49
- package/dist/sources/Serializer.d.ts +0 -34
- package/dist/sources/interfaces/ClientInterface.d.ts +0 -12
- package/dist/sources/interfaces/EntityInterface.d.ts +0 -20
- package/dist/sources/interfaces/index.d.ts +0 -3
- /package/dist/_prebuild/{types → engine_types}/SceneSettingsRecord.d.ts +0 -0
- /package/dist/_prebuild/{types → engine_types}/sceneSettings.d.ts +0 -0
|
@@ -1,71 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ComponentType } from "../../types/ComponentsRecord";
|
|
3
|
-
import { SceneSettingsRecord, SceneSettingType } from "../../types/SceneSettingsRecord";
|
|
4
|
-
/**
|
|
5
|
-
* @category Editor
|
|
6
|
-
*/
|
|
7
|
-
export type SceneStats = {
|
|
8
|
-
readonly triangleCount: number;
|
|
9
|
-
readonly totalTriangleCount: number;
|
|
10
|
-
readonly entityCount: number;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @category Editor
|
|
14
|
-
*/
|
|
15
|
-
export type AttributeDescriptor = {
|
|
16
|
-
readonly type: string;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly mods: Array<"editor-only" | "engine-only" | "transient">;
|
|
19
|
-
readonly default?: unknown;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @category Editor
|
|
23
|
-
*/
|
|
24
|
-
export type ComponentDescriptor = {
|
|
25
|
-
readonly attributes: Array<AttributeDescriptor>;
|
|
26
|
-
readonly binarySupport: boolean;
|
|
27
|
-
readonly description: string;
|
|
28
|
-
readonly dynamicSize: boolean;
|
|
29
|
-
readonly hash: number;
|
|
30
|
-
readonly mods: Array<"editor-only" | "engine-only" | "transient">;
|
|
31
|
-
readonly name: string;
|
|
32
|
-
readonly size: number;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @category Editor
|
|
36
|
-
*/
|
|
37
|
-
export type SettingAttributeDescriptor<T extends SceneSettingType> = {
|
|
38
|
-
readonly default: T;
|
|
39
|
-
readonly name: string;
|
|
40
|
-
readonly type: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* @category Editor
|
|
44
|
-
*/
|
|
45
|
-
export type SettingDescriptor<T extends SceneSettingType> = {
|
|
46
|
-
readonly attributes: Array<SettingAttributeDescriptor<T>>;
|
|
47
|
-
readonly name: string;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* @category Editor
|
|
51
|
-
*/
|
|
52
|
-
export type ConnectConfirmation = {
|
|
53
|
-
readonly canEdit: boolean;
|
|
54
|
-
readonly clientColors: unknown;
|
|
55
|
-
readonly clientRTID: unknown;
|
|
56
|
-
readonly components: Record<ComponentType, ComponentDescriptor>;
|
|
57
|
-
readonly isTransient: boolean;
|
|
58
|
-
readonly rootNodes: unknown;
|
|
59
|
-
readonly sceneUUID: UUID;
|
|
60
|
-
readonly selectColor: string;
|
|
61
|
-
readonly sessionUUID: UUID;
|
|
62
|
-
readonly settingDescriptions: Record<SceneSettingType, SettingDescriptor<SceneSettingType>>;
|
|
63
|
-
readonly settings: SceneSettingsRecord;
|
|
64
|
-
readonly stats: SceneStats;
|
|
65
|
-
readonly undoRedo: {
|
|
66
|
-
undo: unknown;
|
|
67
|
-
redo: unknown;
|
|
68
|
-
};
|
|
69
|
-
readonly userUUID: UUID;
|
|
70
|
-
readonly workspaceUUID: UUID;
|
|
71
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Euid } from "../../types/components";
|
|
3
|
-
import type { ComponentsRecord } from "../../types/ComponentsRecord";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
*
|
|
7
|
-
* @category Editor
|
|
8
|
-
*/
|
|
9
|
-
export type ClientSelection = {
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
clientUUID: UUID;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
directSelection?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
color?: string;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
isExternal?: boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Representation of an entity as seen by the editor.
|
|
29
|
-
*
|
|
30
|
-
* @category Editor
|
|
31
|
-
*/
|
|
32
|
-
export type EditorEntity = {
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
rtid: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
components: {
|
|
41
|
-
euid?: Euid;
|
|
42
|
-
} & ComponentsRecord;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
children: string[];
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated
|
|
49
|
-
*/
|
|
50
|
-
selectingClients: ClientSelection[];
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated
|
|
53
|
-
*/
|
|
54
|
-
selectedDescendants: Record<string, ClientSelection[]>;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
isVisible: boolean;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
isRuntime: boolean;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
isExternal: boolean;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
isTransient: boolean;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
ancestors?: EditorEntity[];
|
|
75
|
-
};
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/_prebuild/messages/gateway/{ClientConfig.d.ts → commands/ConfigureClientCommand.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Vec2i } from "
|
|
2
|
-
import { CodecType } from "
|
|
1
|
+
import type { Vec2i } from "../../../../sources/types";
|
|
2
|
+
import { CodecType, EncodingProfile } from "../enums";
|
|
3
3
|
/**
|
|
4
|
-
* @category
|
|
4
|
+
* @category Payloads
|
|
5
5
|
*/
|
|
6
6
|
export type ClientConfig = {
|
|
7
7
|
remote_canvas_size: Vec2i;
|
|
@@ -9,15 +9,7 @@ export type ClientConfig = {
|
|
|
9
9
|
supported_devices: SupportedDevices;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* @category
|
|
13
|
-
*/
|
|
14
|
-
export declare enum EncodingProfile {
|
|
15
|
-
base = 0,
|
|
16
|
-
main = 1,
|
|
17
|
-
high = 2
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @category Gateway
|
|
12
|
+
* @category Payloads
|
|
21
13
|
*/
|
|
22
14
|
export type EncoderConfig = {
|
|
23
15
|
codec: CodecType;
|
|
@@ -26,7 +18,7 @@ export type EncoderConfig = {
|
|
|
26
18
|
lossy: boolean;
|
|
27
19
|
};
|
|
28
20
|
/**
|
|
29
|
-
* @category
|
|
21
|
+
* @category Payloads
|
|
30
22
|
*/
|
|
31
23
|
export type SupportedDevices = {
|
|
32
24
|
keyboard: boolean;
|
|
@@ -35,3 +27,9 @@ export type SupportedDevices = {
|
|
|
35
27
|
gamepad: boolean;
|
|
36
28
|
touchscreen: boolean;
|
|
37
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @category Responses
|
|
32
|
+
*/
|
|
33
|
+
export type ClientConfigResponse = {
|
|
34
|
+
codec: CodecType;
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RTID, ScriptDataObject, UUID } from "../../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
* @category Payloads
|
|
4
|
+
*/
|
|
5
|
+
export type FireEventData = {
|
|
6
|
+
event_map_id: UUID;
|
|
7
|
+
event_name: string;
|
|
8
|
+
emitter_entity: RTID;
|
|
9
|
+
target_entities: Array<RTID>;
|
|
10
|
+
data_object: ScriptDataObject;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RTID, Quat, Vec3, UInt32 } from "../../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
* @category Payloads
|
|
4
|
+
*/
|
|
5
|
+
export type SkeletonPartialPose = {
|
|
6
|
+
positions?: Array<{
|
|
7
|
+
bone_index: UInt32;
|
|
8
|
+
value: Vec3;
|
|
9
|
+
}>;
|
|
10
|
+
orientations?: Array<{
|
|
11
|
+
bone_index: UInt32;
|
|
12
|
+
value: Quat;
|
|
13
|
+
}>;
|
|
14
|
+
scales?: Array<{
|
|
15
|
+
bone_index: UInt32;
|
|
16
|
+
value: Vec3;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Payloads
|
|
21
|
+
*/
|
|
22
|
+
export type SkeletonPoseData = {
|
|
23
|
+
controller_rtid: RTID;
|
|
24
|
+
partial_pose: SkeletonPartialPose;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Float, Int32, RTID } from "../../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
* @category Payloads
|
|
4
|
+
*/
|
|
5
|
+
export type ViewportConfig = {
|
|
6
|
+
left: Float;
|
|
7
|
+
top: Float;
|
|
8
|
+
width: Float;
|
|
9
|
+
height: Float;
|
|
10
|
+
camera_rtid: RTID;
|
|
11
|
+
render_target_index?: Int32;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @category Payloads
|
|
15
|
+
*/
|
|
16
|
+
export type ViewportConfigs = Array<ViewportConfig>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./AssignClientToScriptCommand";
|
|
2
|
+
export * from "./ConfigureClientCommand";
|
|
3
|
+
export * from "./FireEventCommand";
|
|
4
|
+
export * from "./HighlightEntitiesCommand";
|
|
5
|
+
export * from "./InputStateCommand";
|
|
6
|
+
export * from "./RemoveComponentsCommand";
|
|
7
|
+
export * from "./ResizeCommand";
|
|
8
|
+
export * from "./SendSkeletonPoseCommand";
|
|
9
|
+
export * from "./AuthenticationCommand";
|
|
10
|
+
export * from "./UpdateEntitiesFromBytesCommand";
|
|
11
|
+
export * from "./UpdateEntitiesFromJsonCommand";
|
|
12
|
+
export * from "./ViewportConfigCommand";
|
|
13
|
+
export * from "./SetFilterCommand";
|
|
14
|
+
export * from "./ToggleFilterCommand";
|
|
15
|
+
export * from "./RemoveFilterCommand";
|
|
@@ -1,123 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
*
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
authentication = 0,
|
|
6
|
-
registration = 1,
|
|
7
|
-
video_stream = 2,
|
|
8
|
-
inputs = 3,
|
|
9
|
-
viewer_control = 4,
|
|
10
|
-
client_remote_operations = 5,
|
|
11
|
-
editor_remote_operations = 6,
|
|
12
|
-
DEPRECATED__camera_sharing = 7,
|
|
13
|
-
broadcast_clients = 8,
|
|
14
|
-
broadcast_video_stream = 9,
|
|
15
|
-
DEPRECATED__spatial_anchor = 10,
|
|
16
|
-
heartbeat = 11,
|
|
17
|
-
video_stream_header = 12,
|
|
18
|
-
audio_stream = 13,
|
|
19
|
-
broadcast_script_events = 14,
|
|
20
|
-
asset_loading_events = 15,
|
|
21
|
-
gpu_memory_profiler = 16
|
|
22
|
-
}
|
|
4
|
+
export type CodecType = "h264" | "h264rgb" | "h265";
|
|
23
5
|
/**
|
|
24
|
-
*
|
|
6
|
+
*
|
|
25
7
|
*/
|
|
26
|
-
export
|
|
27
|
-
asset_loading_status = 0,
|
|
28
|
-
DEPRECATED__update_ar_cameras = 1,
|
|
29
|
-
create_controller = 2,
|
|
30
|
-
cast_screen_space_ray = 3,
|
|
31
|
-
select_entities = 4,
|
|
32
|
-
set_controllers_state = 5,
|
|
33
|
-
delete_controller = 6,
|
|
34
|
-
update_action_map = 7,
|
|
35
|
-
update_selection_color = 8,
|
|
36
|
-
update_camera_controller_settings = 9,
|
|
37
|
-
physics_raycast = 10
|
|
38
|
-
}
|
|
8
|
+
export type EncodingProfile = "base" | "main" | "high";
|
|
39
9
|
/**
|
|
40
|
-
*
|
|
10
|
+
*
|
|
41
11
|
*/
|
|
42
|
-
export
|
|
43
|
-
resize = 0,
|
|
44
|
-
DEPRECATED_update_action_map = 1,
|
|
45
|
-
suspend = 2,
|
|
46
|
-
resume = 3,
|
|
47
|
-
encoder_params = 4,
|
|
48
|
-
set_viewports = 5
|
|
49
|
-
}
|
|
12
|
+
export type HighlightMode = "None" | "HighlightAndKeepOldSelection" | "HighlightAndDiscardOldSelection";
|
|
50
13
|
/**
|
|
51
|
-
*
|
|
14
|
+
*
|
|
52
15
|
*/
|
|
53
|
-
export
|
|
54
|
-
h264 = 0,
|
|
55
|
-
h264rgb = 1,
|
|
56
|
-
h265 = 2
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
export declare enum InputOperation {
|
|
62
|
-
reset = 0,
|
|
63
|
-
lbutton_down = 1,
|
|
64
|
-
mbutton_down = 2,
|
|
65
|
-
rbutton_down = 3,
|
|
66
|
-
lbutton_up = 4,
|
|
67
|
-
mbutton_up = 5,
|
|
68
|
-
rbutton_up = 6,
|
|
69
|
-
mouse_move = 7,
|
|
70
|
-
on_key_down = 8,
|
|
71
|
-
on_key_up = 9,
|
|
72
|
-
resize = 10,
|
|
73
|
-
disconnect = 11,
|
|
74
|
-
touch_start = 12,
|
|
75
|
-
touch_end = 13,
|
|
76
|
-
touch_move = 14,
|
|
77
|
-
touch_pinch_start = 15,
|
|
78
|
-
touch_pinch_move = 16,
|
|
79
|
-
window_resized = 17,
|
|
80
|
-
send_camera = 18,
|
|
81
|
-
input_resolution = 19,
|
|
82
|
-
cam_matrix = 20,
|
|
83
|
-
projection_matrix = 21,
|
|
84
|
-
wheel = 22,
|
|
85
|
-
hololens_tap = 23,
|
|
86
|
-
scene_info = 24,
|
|
87
|
-
scene_uuid = 25,
|
|
88
|
-
gamepad_axis = 26,
|
|
89
|
-
gamepad_buttons = 27,
|
|
90
|
-
mouse_move_delta = 28,
|
|
91
|
-
touch_pinch_end = 29,
|
|
92
|
-
headset_move = 30
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
export declare enum EditorRemoteOperation {
|
|
98
|
-
update_config = 0,
|
|
99
|
-
create_entity = 1,
|
|
100
|
-
reparent_entity = 2,
|
|
101
|
-
update_entities_from_bytes = 3,
|
|
102
|
-
remove_components = 4,
|
|
103
|
-
delete_entities = 5,
|
|
104
|
-
set_visibility = 6,
|
|
105
|
-
update_material = 7,
|
|
106
|
-
update_volume_material = 8,
|
|
107
|
-
DEPRECATED__update_data_object = 9,
|
|
108
|
-
reload_asset = 10,
|
|
109
|
-
fire_event = 11,
|
|
110
|
-
update_script_data_object = 12,
|
|
111
|
-
DEPRECATED__update_render_graph_data_object = 13,
|
|
112
|
-
reload_shaders = 14,
|
|
113
|
-
update_entities_from_json = 15,
|
|
114
|
-
set_filter = 16,
|
|
115
|
-
remove_filter = 17,
|
|
116
|
-
toggle_filter = 18,
|
|
117
|
-
DEPRECATED__update_animation_controller_data_object = 19,
|
|
118
|
-
assign_client_uuid_to_script = 20,
|
|
119
|
-
DEPRECATED__update_animation_sequence_instance = 21,
|
|
120
|
-
DEPRECATED__remove_animation_sequence_instance = 22,
|
|
121
|
-
DEPRECATED__update_animation_sequence_state = 23,
|
|
122
|
-
send_skeleton_pose = 24
|
|
123
|
-
}
|
|
16
|
+
export type InputOperation = "reset" | "lbutton_down" | "mbutton_down" | "rbutton_down" | "lbutton_up" | "mbutton_up" | "rbutton_up" | "mouse_move" | "on_key_down" | "on_key_up" | "resize" | "disconnect" | "touch_start" | "touch_end" | "touch_move" | "touch_pinch_start" | "touch_pinch_move" | "window_resized" | "send_camera" | "input_resolution" | "cam_matrix" | "projection_matrix" | "wheel" | "hololens_tap" | "scene_info" | "scene_uuid" | "gamepad_axis" | "gamepad_buttons" | "mouse_move_delta" | "touch_pinch_end" | "headset_move";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Mat4, RTID, UUID, Vec3 } from "../../../../sources/types";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type RawFrameMetaData = {
|
|
6
|
+
renderer_timestamp: number;
|
|
7
|
+
frame_counter: number;
|
|
8
|
+
clients: Array<ClientMetaData>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export type ClientMetaData = {
|
|
14
|
+
client_id: UUID;
|
|
15
|
+
hovered_entity_rtid: RTID;
|
|
16
|
+
ws_hovered_position: Vec3;
|
|
17
|
+
ws_hovered_normal: Vec3;
|
|
18
|
+
viewports: Array<ViewportMetaData>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export type ViewportMetaData = {
|
|
24
|
+
camera_rtid: RTID;
|
|
25
|
+
ws_from_ls: Mat4;
|
|
26
|
+
};
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * from "./
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from "./
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export * from "./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./UpdateEntitiesFromBytesMessage";
|
|
18
|
-
export * from "./UpdateEntitiesFromJsonMessage";
|
|
19
|
-
export * from "./ViewportConfig";
|
|
20
|
-
export * from "./SetFilterMessage";
|
|
21
|
-
export * from "./ToggleFilterMessage";
|
|
22
|
-
export * from "./RemoveFilterMessage";
|
|
1
|
+
/**
|
|
2
|
+
* @category Core
|
|
3
|
+
*/
|
|
4
|
+
export * as Commands from "./commands";
|
|
5
|
+
/**
|
|
6
|
+
* @category Core
|
|
7
|
+
*/
|
|
8
|
+
export * as Queries from "./queries";
|
|
9
|
+
/**
|
|
10
|
+
* @category Core
|
|
11
|
+
*/
|
|
12
|
+
export * as Events from "./events";
|
|
13
|
+
/**
|
|
14
|
+
* @category Core
|
|
15
|
+
*/
|
|
16
|
+
export * as Enums from "./enums";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RTID, Vec2, Vec3 } from "../../../../sources/types";
|
|
2
|
+
import { HighlightMode } from "../enums";
|
|
3
|
+
/**
|
|
4
|
+
* @category Payloads
|
|
5
|
+
*/
|
|
6
|
+
export type ScreenSpaceRayQuery = {
|
|
7
|
+
camera_rtid: RTID;
|
|
8
|
+
pos: Vec2;
|
|
9
|
+
mode: HighlightMode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @category Responses
|
|
13
|
+
*/
|
|
14
|
+
export type ScreenSpaceRayResponse = {
|
|
15
|
+
entity_rtid: RTID;
|
|
16
|
+
position: Vec3;
|
|
17
|
+
normal: Vec3;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ScreenSpaceRayQuery";
|
package/dist/library.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var a=(o,e)=>{for(var r in e)n(o,r,{get:e[r],enumerable:!0})},l=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of L(e))!p.call(o,t)&&t!==r&&n(o,t,{get:()=>e[t],enumerable:!(i=c(e,t))||i.enumerable});return o};var I=o=>l(n({},"__esModule",{value:!0}),o);var E={};a(E,{DynamicLoader:()=>s});module.exports=I(E);var C=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class o{static#e=null;static get Core(){if(!o.#e)throw new Error("Livelink core not initialized");return o.#e}static async load(e="prod"){if(console.log({LIVELINK_CORE_URL:"https://cdn.3dverse.com/livelink/core/1.0",LIVELINK_CORE_VERSION:"1.0",LIVELINK_CORE_COMMIT_SHA:"f7c0a762"}),o.#e)return;let r=await o.#o(e),{LivelinkCore:i}=await r();o.#e=i,console.info(`LiveLink core 1.0 [${e}] [#f7c0a762] initialized`)}static async#o(e){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(e!=="prod"?`core.${e}.mjs`:"core.mjs");if(!C)return new Function("return import('"+r+"')");let t=await(await fetch(r)).text();return new Function("return import('data:text/javascript;base64,"+btoa(t)+"')")}constructor(){}};
|
|
2
2
|
//# sourceMappingURL=library.cjs.map
|