@3dverse/livelink.core 0.5.1 → 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;
@@ -2,7 +2,7 @@
2
2
  * DO NOT EDIT THIS FILE MANUALLY.
3
3
  * This file has been generated automatically from ftl-schemas
4
4
  */
5
- import type { RTID, UUID, Quat, Vec3, Vec2, Int32, UInt32, Float, Int8 } from "../../sources/types";
5
+ import type { RTID, UUID, Mat4, Quat, Vec3, Vec2, Int32, UInt32, Float, Int8 } from "../../sources/types";
6
6
  import type * as Assets from "./assets";
7
7
  /**
8
8
  *
@@ -541,6 +541,10 @@ export type PerspectiveLens = Partial<{
541
541
  * Distance from the viewer to the far clipping plane.
542
542
  */
543
543
  farPlane: Float;
544
+ /**
545
+ * Offset of the projection for stereoscopic rendering.
546
+ */
547
+ offset: Vec2;
544
548
  }>;
545
549
  /**
546
550
  * Physics material which represents a set of physical surface properties.
@@ -830,37 +834,13 @@ export type SpotLight = Partial<{
830
834
  IESProfile: AssetRef<Assets.Texture>;
831
835
  }>;
832
836
  /**
833
- * A lens that applies an off-center perspective projection.
837
+ * A lens that applies a custom projection.
834
838
  */
835
839
  export type StereoscopicLens = Partial<{
836
840
  /**
837
- * Angle of the left side of the field of view (this value is negative).
841
+ * Projection matrix.
838
842
  */
839
- angleLeft: Float;
840
- /**
841
- * Angle of the right side of the field of view.
842
- */
843
- angleRight: Float;
844
- /**
845
- * Angle of the top part of the field of view.
846
- */
847
- angleUp: Float;
848
- /**
849
- * Angle of the bottom part of the field of view (this value is negative).
850
- */
851
- angleDown: Float;
852
- /**
853
- * Specifies the distance from the viewer to the near clipping plane.
854
- */
855
- nearPlane: Float;
856
- /**
857
- * Specifies the distance from the viewer to the far clipping plane.
858
- */
859
- farPlane: Float;
860
- /**
861
- * Specifies the aspect ratio of the viewport, usually equals width/height.
862
- */
863
- aspectRatio: Float;
843
+ cs_from_vs: Mat4;
864
844
  }>;
865
845
  /**
866
846
  * Tags used to filter entities.
@@ -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.1",
3
+ "version": "0.5.3",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",