@3dverse/livelink.core 0.7.11 → 0.7.13

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.
@@ -1,6 +1,6 @@
1
1
  import { RTID, UUID } from "../sources/types";
2
2
  import { EntityInterface } from "../sources/interfaces/EntityInterface";
3
- import { ConnectConfirmation, EditorEntity, EntityCreationOptions, EntityUpdatedEvent, EntityVisibilityChangedEvent, UpdateComponentsCommand } from "./messages/editor";
3
+ import { ConnectConfirmation, EditorEntity, EntityCreationCoreOptions, EntityUpdatedEvent, EntityVisibilityChangedEvent, UpdateComponentsCommand } from "./messages/editor";
4
4
  import { ComponentType } from "./types/components";
5
5
  /**
6
6
  * This follows the Livelink protocol specifications for the broker messages.
@@ -30,14 +30,14 @@ export declare class EditorMessageHandler extends EventTarget {
30
30
  */
31
31
  spawnEntity({ entity, options }: {
32
32
  entity: EntityInterface;
33
- options?: EntityCreationOptions;
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?: EntityCreationOptions;
40
+ options?: EntityCreationCoreOptions;
41
41
  }): Promise<EditorEntity[]>;
42
42
  onEntitiesCreated(data: Array<EditorEntity>): void;
43
43
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  *
3
3
  */
4
- export type EntityCreationOptions = {
4
+ export type EntityCreationCoreOptions = {
5
5
  delete_on_client_disconnection?: boolean;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  export * from "./ConnectConfirmation";
2
2
  export * from "./EditorEntity";
3
- export * from "./EntityCreationOptions";
3
+ export * from "./EntityCreationCoreOptions";
4
4
  export * from "./EntityUpdatedEvent";
5
5
  export * from "./UpdateComponentsCommand";
6
6
  export * from "./EntityVisibilityChangedEvent";
@@ -1,4 +1,4 @@
1
- import { Mat4, RTID, UUID } from "../../../sources/types";
1
+ import { Mat4, RTID, UUID, Vec3 } from "../../../sources/types";
2
2
  /**
3
3
  *
4
4
  */
@@ -6,12 +6,12 @@ export type FrameData = {
6
6
  encoded_frame_size: number;
7
7
  meta_data_size: number;
8
8
  encoded_frame: DataView;
9
- meta_data: FrameMetaData;
9
+ meta_data: RawFrameMetaData;
10
10
  };
11
11
  /**
12
12
  *
13
13
  */
14
- export type FrameMetaData = {
14
+ export type RawFrameMetaData = {
15
15
  renderer_timestamp: number;
16
16
  frame_counter: number;
17
17
  clients: Array<ClientMetaData>;
@@ -21,6 +21,9 @@ export type FrameMetaData = {
21
21
  */
22
22
  export type ClientMetaData = {
23
23
  client_id: UUID;
24
+ hovered_entity_rtid: RTID;
25
+ ws_hovered_position: Vec3;
26
+ ws_hovered_normal: Vec3;
24
27
  viewports: Array<ViewportMetaData>;
25
28
  };
26
29
  /**
@@ -37,10 +40,3 @@ export declare function deserialize_FrameData({ data_view, offset }: {
37
40
  data_view: DataView;
38
41
  offset?: number;
39
42
  }): FrameData;
40
- /**
41
- *
42
- */
43
- export declare function deserialize_FrameMetaData({ data_view, offset, }: {
44
- data_view: DataView;
45
- offset?: number;
46
- }): FrameMetaData;
@@ -744,13 +744,9 @@ export type ShadowCaster = Partial<{
744
744
  */
745
745
  quality: Int32;
746
746
  /**
747
- * For directional lights, , skews the ratio of cascade splits, value ranges from 0 to 1.
747
+ * For directional lights, adjusts the distribution of cascade splits in Cascaded Shadow Mapping for directional lights. A value of 0 results in uniform (linear) splits across the view frustum, while a value of 1 skews the splits toward the camera, providing higher shadow resolution near the viewer and lower resolution in the distance. Intermediate values blend linear and logarithmic distributions for a balanced result. The value ranges from 0 to 1.
748
748
  */
749
749
  cascadeSplitLambda: Float;
750
- /**
751
- * For directional lights, distance to the end of the furthest cascade.
752
- */
753
- cascadeMaxZ: Float;
754
750
  /**
755
751
  * For directional lights, number of cascades.
756
752
  */
@@ -4,7 +4,7 @@ import { Serializer } from "./Serializer";
4
4
  import { RTID, UUID, Vec2i } from "./types";
5
5
  import { EntityInterface } from "./interfaces/EntityInterface";
6
6
  import { SessionInterface } from "./interfaces/SessionInterface";
7
- import type { ComponentDescriptor, EditorEntity, EntityCreationOptions, UpdateComponentsCommand } from "../_prebuild/messages/editor";
7
+ import type { ComponentDescriptor, EditorEntity, EntityCreationCoreOptions, UpdateComponentsCommand } from "../_prebuild/messages/editor";
8
8
  import { SettingsBaseType } from "../_prebuild/types/settings";
9
9
  import { ComponentType } from "./core";
10
10
  /**
@@ -158,14 +158,14 @@ export declare class LivelinkCore {
158
158
  */
159
159
  createEntities({ entities, options, }: {
160
160
  entities: Array<EntityInterface>;
161
- options?: EntityCreationOptions;
161
+ options?: EntityCreationCoreOptions;
162
162
  }): Promise<Array<EditorEntity>>;
163
163
  /**
164
164
  *
165
165
  */
166
166
  spawnEntity({ entity, options, }: {
167
167
  entity: EntityInterface;
168
- options?: EntityCreationOptions;
168
+ options?: EntityCreationCoreOptions;
169
169
  }): Promise<EditorEntity>;
170
170
  /**
171
171
  *
@@ -7,6 +7,26 @@ export declare class ActivityWatcher extends EventTarget {
7
7
  * True if activity watcher has timedout
8
8
  */
9
9
  get has_timed_out(): boolean;
10
+ /**
11
+ * Inactivity timeout in seconds.
12
+ */
13
+ get inactivity_timeout(): number;
14
+ /**
15
+ * Inactivity timeout in seconds.
16
+ */
17
+ set inactivity_timeout(seconds: number);
18
+ /**
19
+ * Inactivity warning in seconds.
20
+ */
21
+ get inactivity_warning(): number;
22
+ /**
23
+ * Inactivity warning in seconds.
24
+ */
25
+ set inactivity_warning(seconds: number);
26
+ /**
27
+ *
28
+ */
29
+ get is_running(): boolean;
10
30
  /**
11
31
  * Start the timeouts.
12
32
  */
@@ -5,5 +5,5 @@ export declare const FTL_EDITOR_ROP_HEADER_SIZE: 25;
5
5
  export declare const LITTLE_ENDIAN: true;
6
6
  export declare const BIG_ENDIAN: false;
7
7
  export declare const HEARTBEAT_PERIOD_IN_MS: 2000;
8
- export declare const INACTIVITY_WARNING_IN_SEC: 300;
9
- export declare const INACTIVITY_TIMEOUT_IN_SEC: 360;
8
+ export declare const DEFAULT_INACTIVITY_WARNING_IN_SEC: 300;
9
+ export declare const DEFAULT_INACTIVITY_TIMEOUT_IN_SEC: 360;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",