@3dverse/livelink.core 0.7.12 → 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";
@@ -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.12",
3
+ "version": "0.7.13",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",