@3dverse/livelink.core 0.5.2 → 0.5.3

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,7 @@
1
1
  import { RTID, UUID } from "../sources/types";
2
2
  import { EntityInterface } from "../sources/interfaces/EntityInterface";
3
3
  import { ConnectConfirmation, EditorEntity, EntityCreationOptions, EntityUpdatedEvent, UpdateComponentsCommand } from "./messages/editor";
4
+ import { ComponentType } from "./types/components";
4
5
  /**
5
6
  * This follows the Livelink protocol specifications for the broker messages.
6
7
  */
@@ -68,7 +69,14 @@ export declare class EditorMessageHandler extends EventTarget {
68
69
  entity_rtid: RTID;
69
70
  }): Promise<Record<string, EditorEntity>>;
70
71
  onRetrieveChildren(data: Record<string, EditorEntity>): void;
71
- onFindEntitiesWithComponents(data: any): void;
72
+ /**
73
+ *
74
+ */
75
+ findEntitiesWithComponents({ mandatory_components, forbidden_components, }: {
76
+ mandatory_components: Array<ComponentType>;
77
+ forbidden_components?: Array<ComponentType>;
78
+ }): Promise<Record<string, EditorEntity>>;
79
+ onFindEntitiesWithComponents(data: Record<string, EditorEntity>): void;
72
80
  /**
73
81
  *
74
82
  */
@@ -76,7 +84,16 @@ export declare class EditorMessageHandler extends EventTarget {
76
84
  entity_rtid: RTID;
77
85
  }): Promise<Array<EditorEntity>>;
78
86
  onResolveAncestors(data: Array<EditorEntity>): void;
79
- onFindEntitiesByNames(data: any): void;
87
+ /**
88
+ *
89
+ */
90
+ findEntitiesByNames({ entity_names }: {
91
+ entity_names: Array<String>;
92
+ }): Promise<Array<EditorEntity>>;
93
+ onFindEntitiesByNames(data: Record<string, EditorEntity>): void;
94
+ /**
95
+ *
96
+ */
80
97
  onFilterEntities(data: any): void;
81
98
  onExportEntityToScene(data: any): void;
82
99
  onNextUndoRedo(data: any): void;
@@ -31,6 +31,10 @@ export type DebugLines = Partial<{
31
31
  * Whether to draw the skeletons of rigged characters
32
32
  */
33
33
  drawSkeletons: boolean;
34
+ /**
35
+ * Whether to draw certain IK parameters like the forward and up vector of an IK Aim node, or the pole vector of an IK Two Bone node
36
+ */
37
+ drawIK: boolean;
34
38
  /**
35
39
  * Whether to draw the bouding boxes of entities
36
40
  */
@@ -5,6 +5,7 @@ import { EntityInterface } from "./interfaces/EntityInterface";
5
5
  import { SessionInterface } from "./interfaces/SessionInterface";
6
6
  import { EditorEntity, EntityCreationOptions, UpdateComponentsCommand } from "../_prebuild/messages/editor";
7
7
  import { SettingsBaseType } from "../_prebuild/types/settings";
8
+ import { ComponentType } from "./core";
8
9
  /**
9
10
  * The LivelinkCore interface.
10
11
  *
@@ -153,6 +154,19 @@ export declare class LivelinkCore {
153
154
  findEntitiesByEUID({ entity_uuid }: {
154
155
  entity_uuid: UUID;
155
156
  }): Promise<Array<EditorEntity>>;
157
+ /**
158
+ * @deprecated
159
+ */
160
+ findEntitiesWithComponents({ mandatory_components, forbidden_components, }: {
161
+ mandatory_components: Array<ComponentType>;
162
+ forbidden_components?: Array<ComponentType>;
163
+ }): Promise<Array<EditorEntity>>;
164
+ /**
165
+ * @deprecated
166
+ */
167
+ findEntitiesByNames({ entity_names }: {
168
+ entity_names: Array<string>;
169
+ }): Promise<Array<EditorEntity>>;
156
170
  /**
157
171
  *
158
172
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",