@3dverse/livelink.core 1.1.13 → 1.1.15

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.
@@ -101,12 +101,12 @@ export type Bone = {
101
101
  export type BoxGeometry = {
102
102
  /**
103
103
  * Box dimensions (width, height, depth) in meters.
104
- * @defaultValue 1,1,1
104
+ * @defaultValue [1,1,1]
105
105
  */
106
106
  dimension: Vec3;
107
107
  /**
108
108
  * Local offset of the geometry origin (meters).
109
- * @defaultValue 0,0,0
109
+ * @defaultValue [0,0,0]
110
110
  */
111
111
  offset: Vec3;
112
112
  };
@@ -149,7 +149,7 @@ export type CapsuleGeometry = {
149
149
  axis: Int32;
150
150
  /**
151
151
  * Local offset of the geometry origin (meters).
152
- * @defaultValue 0,0,0
152
+ * @defaultValue [0,0,0]
153
153
  */
154
154
  offset: Vec3;
155
155
  };
@@ -174,7 +174,7 @@ export type CharacterController = {
174
174
  skinWidth: Float;
175
175
  /**
176
176
  * Requested displacement for the current frame.
177
- * @defaultValue 0,0,0
177
+ * @defaultValue [0,0,0]
178
178
  */
179
179
  displacement: Vec3;
180
180
  };
@@ -198,27 +198,27 @@ export type Constraint = {
198
198
  unlockedMotion: UInt32;
199
199
  /**
200
200
  * Lower linear limit per axis (meters).
201
- * @defaultValue 0,0,0
201
+ * @defaultValue [0,0,0]
202
202
  */
203
203
  motionLowerLimit: Vec3;
204
204
  /**
205
205
  * Upper linear limit per axis (meters).
206
- * @defaultValue 0,0,0
206
+ * @defaultValue [0,0,0]
207
207
  */
208
208
  motionUpperLimit: Vec3;
209
209
  /**
210
210
  * Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).
211
- * @defaultValue 0,0,0
211
+ * @defaultValue [0,0,0]
212
212
  */
213
213
  motionLimitSpringStiffness: Vec3;
214
214
  /**
215
215
  * Linear limit spring damping per axis (N·s/m).
216
- * @defaultValue 0,0,0
216
+ * @defaultValue [0,0,0]
217
217
  */
218
218
  motionLimitSpringDamping: Vec3;
219
219
  /**
220
220
  * Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.
221
- * @defaultValue 0,0
221
+ * @defaultValue [0,0]
222
222
  */
223
223
  swingLimitAngle: Vec2;
224
224
  /**
@@ -233,7 +233,7 @@ export type Constraint = {
233
233
  swingSpringDamping: Float;
234
234
  /**
235
235
  * Twist angle limits (min,max) around the twist axis (degrees). Range (−360, 360).
236
- * @defaultValue 0,0
236
+ * @defaultValue [0,0]
237
237
  */
238
238
  twistLimitAngle: Vec2;
239
239
  /**
@@ -253,32 +253,32 @@ export type Constraint = {
253
253
  export type ConstraintActuator = {
254
254
  /**
255
255
  * Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.
256
- * @defaultValue 0,0,0
256
+ * @defaultValue [0,0,0]
257
257
  */
258
258
  linearStiffness: Vec3;
259
259
  /**
260
260
  * Linear drive damping per axis (N·s/m).
261
- * @defaultValue 0,0,0
261
+ * @defaultValue [0,0,0]
262
262
  */
263
263
  linearDamping: Vec3;
264
264
  /**
265
265
  * Max linear drive force/impulse per axis (N). −1 = unlimited.
266
- * @defaultValue -1,-1,-1
266
+ * @defaultValue [-1,-1,-1]
267
267
  */
268
268
  linearForceLimit: Vec3;
269
269
  /**
270
270
  * Angular drive stiffness per axis (N·m/rad). >0 applies spring torque toward the goal.
271
- * @defaultValue 0,0,0
271
+ * @defaultValue [0,0,0]
272
272
  */
273
273
  angularStiffness: Vec3;
274
274
  /**
275
275
  * Angular drive damping per axis (N·m·s/rad).
276
- * @defaultValue 0,0,0
276
+ * @defaultValue [0,0,0]
277
277
  */
278
278
  angularDamping: Vec3;
279
279
  /**
280
280
  * Max angular drive torque/impulse per axis (N·m). −1 = unlimited.
281
- * @defaultValue -1,-1,-1
281
+ * @defaultValue [-1,-1,-1]
282
282
  */
283
283
  angularForceLimit: Vec3;
284
284
  /**
@@ -288,22 +288,22 @@ export type ConstraintActuator = {
288
288
  type: Int32;
289
289
  /**
290
290
  * Target linear position offset (meters).
291
- * @defaultValue 0,0,0
291
+ * @defaultValue [0,0,0]
292
292
  */
293
293
  goalPosition: Vec3;
294
294
  /**
295
295
  * Target angular orientation.
296
- * @defaultValue 0,0,0,1
296
+ * @defaultValue [0,0,0,1]
297
297
  */
298
298
  goalOrientation: Quat;
299
299
  /**
300
300
  * Target linear velocity (m/s).
301
- * @defaultValue 0,0,0
301
+ * @defaultValue [0,0,0]
302
302
  */
303
303
  linearVelocity: Vec3;
304
304
  /**
305
305
  * Target angular velocity (rad/s).
306
- * @defaultValue 0,0,0
306
+ * @defaultValue [0,0,0]
307
307
  */
308
308
  angularVelocity: Vec3;
309
309
  };
@@ -347,7 +347,7 @@ export type CylinderGeometry = {
347
347
  axis: Int32;
348
348
  /**
349
349
  * Local offset of the geometry origin (meters).
350
- * @defaultValue 0,0,0
350
+ * @defaultValue [0,0,0]
351
351
  */
352
352
  offset: Vec3;
353
353
  };
@@ -429,7 +429,7 @@ export type Label = {
429
429
  description: string;
430
430
  /**
431
431
  * Camera framing parameters for navigating to the label.
432
- * @defaultValue 0,0,0,0,0,0,1
432
+ * @defaultValue [0,0,0,0,0,0,1]
433
433
  */
434
434
  camera: Array<Float>;
435
435
  /**
@@ -475,27 +475,27 @@ export type LocalAabb = {
475
475
  export type LocalTransform = {
476
476
  /**
477
477
  * Local position (x, y, z) in meters.
478
- * @defaultValue 0,0,0
478
+ * @defaultValue [0,0,0]
479
479
  */
480
480
  position: Vec3;
481
481
  /**
482
482
  * Local orientation as a quaternion.
483
- * @defaultValue 0,0,0,1
483
+ * @defaultValue [0,0,0,1]
484
484
  */
485
485
  orientation: Quat;
486
486
  /**
487
487
  * Local non-uniform scale (x, y, z).
488
- * @defaultValue 1,1,1
488
+ * @defaultValue [1,1,1]
489
489
  */
490
490
  scale: Vec3;
491
491
  /**
492
492
  * Local orientation as Euler angles (editor-only).
493
- * @defaultValue 0,0,0
493
+ * @defaultValue [0,0,0]
494
494
  */
495
495
  eulerOrientation: Vec3;
496
496
  /**
497
497
  * Last global orientation entered by a user as Euler angles (may be invalid; editor-only).
498
- * @defaultValue 0,0,0
498
+ * @defaultValue [0,0,0]
499
499
  */
500
500
  globalEulerOrientation: Vec3;
501
501
  };
@@ -546,7 +546,7 @@ export type Measure = {
546
546
  type: UInt32;
547
547
  /**
548
548
  * Display color for the measurement.
549
- * @defaultValue 1,1,1
549
+ * @defaultValue [1,1,1]
550
550
  */
551
551
  color: Vec3;
552
552
  };
@@ -584,7 +584,7 @@ export type MorphTargets = {
584
584
  export type OrthographicLens = {
585
585
  /**
586
586
  * Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.
587
- * @defaultValue 1,1
587
+ * @defaultValue [1,1]
588
588
  */
589
589
  zoomFactor: Vec2;
590
590
  /**
@@ -637,7 +637,7 @@ export type PerspectiveLens = {
637
637
  farPlane: Float;
638
638
  /**
639
639
  * Projection center offset for stereoscopic rendering (meters).
640
- * @defaultValue 0,0
640
+ * @defaultValue [0,0]
641
641
  */
642
642
  offset: Vec2;
643
643
  };
@@ -662,7 +662,7 @@ export type PhysicsMaterial = {
662
662
  restitution: Float;
663
663
  /**
664
664
  * Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.
665
- * @defaultValue 0,0,0
665
+ * @defaultValue [0,0,0]
666
666
  */
667
667
  contactVelocity: Vec3;
668
668
  /**
@@ -687,7 +687,7 @@ export type PlaneGeometry = {
687
687
  distance: Float;
688
688
  /**
689
689
  * Unit normal vector of the plane (in local space).
690
- * @defaultValue 0,1,0
690
+ * @defaultValue [0,1,0]
691
691
  */
692
692
  normal: Vec3;
693
693
  };
@@ -706,7 +706,7 @@ export type PointCloudRef = {
706
706
  export type PointLight = {
707
707
  /**
708
708
  * RGB light color in linear space [0–1]. Multiplies intensity.
709
- * @defaultValue 1,1,1
709
+ * @defaultValue [1,1,1]
710
710
  */
711
711
  color: Vec3;
712
712
  /**
@@ -736,7 +736,7 @@ export type PointLight = {
736
736
  export type ReflectionProbe = {
737
737
  /**
738
738
  * Offset of the probe capture origin relative to the entity position (meters).
739
- * @defaultValue 0,0,0
739
+ * @defaultValue [0,0,0]
740
740
  */
741
741
  offset: Vec3;
742
742
  /**
@@ -766,7 +766,7 @@ export type RigidBody = {
766
766
  mass: Float;
767
767
  /**
768
768
  * Center of mass relative to the entity's local transform (meters).
769
- * @defaultValue 0,0,0
769
+ * @defaultValue [0,0,0]
770
770
  */
771
771
  centerOfMass: Vec3;
772
772
  /**
@@ -816,32 +816,32 @@ export type RigidBody = {
816
816
  export type RigidBodyActuator = {
817
817
  /**
818
818
  * Set the body's linear velocity for this frame.
819
- * @defaultValue 0,0,0
819
+ * @defaultValue [0,0,0]
820
820
  */
821
821
  linearVelocity: Vec3;
822
822
  /**
823
823
  * Set the body's angular velocity for this frame.
824
- * @defaultValue 0,0,0
824
+ * @defaultValue [0,0,0]
825
825
  */
826
826
  angularVelocity: Vec3;
827
827
  /**
828
828
  * Force to apply to the body (Newtons).
829
- * @defaultValue 0,0,0
829
+ * @defaultValue [0,0,0]
830
830
  */
831
831
  force: Vec3;
832
832
  /**
833
833
  * Linear impulse to apply to the body (N·s).
834
- * @defaultValue 0,0,0
834
+ * @defaultValue [0,0,0]
835
835
  */
836
836
  impulsiveForce: Vec3;
837
837
  /**
838
838
  * Torque to apply to the body (N·m).
839
- * @defaultValue 0,0,0
839
+ * @defaultValue [0,0,0]
840
840
  */
841
841
  torque: Vec3;
842
842
  /**
843
843
  * Angular impulse to apply to the body (N·m·s).
844
- * @defaultValue 0,0,0
844
+ * @defaultValue [0,0,0]
845
845
  */
846
846
  impulsiveTorque: Vec3;
847
847
  /**
@@ -1015,7 +1015,7 @@ export type SphereGeometry = {
1015
1015
  radius: Float;
1016
1016
  /**
1017
1017
  * Local offset of the geometry origin (meters).
1018
- * @defaultValue 0,0,0
1018
+ * @defaultValue [0,0,0]
1019
1019
  */
1020
1020
  offset: Vec3;
1021
1021
  };
@@ -1030,7 +1030,7 @@ export type Spline = {
1030
1030
  type: UInt32;
1031
1031
  /**
1032
1032
  * Display color of the curve.
1033
- * @defaultValue 1,1,1
1033
+ * @defaultValue [1,1,1]
1034
1034
  */
1035
1035
  color: Vec3;
1036
1036
  /**
@@ -1093,9 +1093,14 @@ export type VehicleController = {
1093
1093
  export type VolumeFilter = {
1094
1094
  /**
1095
1095
  * Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.
1096
- * @defaultValue 0,1
1096
+ * @defaultValue [0,1]
1097
1097
  */
1098
1098
  range: Vec2;
1099
+ /**
1100
+ * Tint applied to this volume's MPR/projection output.
1101
+ * @defaultValue [1,1,1]
1102
+ */
1103
+ mprColor: Vec3;
1099
1104
  /**
1100
1105
  * Apply Gaussian smoothing when sampling voxels.
1101
1106
  * @defaultValue false
@@ -79,7 +79,7 @@ export type DefaultCameraComponent = {
79
79
  renderGraphRef: AssetRef<Assets.RenderGraph>;
80
80
  /**
81
81
  * Input values as described in the referenced render graph in their original JSON format.
82
- * @defaultValue [object Object]
82
+ * @defaultValue {}
83
83
  */
84
84
  dataJSON: RenderGraphDataObject;
85
85
  /**
@@ -94,12 +94,12 @@ export type DefaultCameraComponent = {
94
94
  export type DefaultCameraTransform = {
95
95
  /**
96
96
  * x, y, z position of the camera
97
- * @defaultValue 0,1,5
97
+ * @defaultValue [0,1,5]
98
98
  */
99
99
  position: Vec3;
100
100
  /**
101
101
  * Orientation of the camera expressed as a quaternion
102
- * @defaultValue 0,0,0,1
102
+ * @defaultValue [0,0,0,1]
103
103
  */
104
104
  orientation: Quat;
105
105
  };
@@ -134,17 +134,17 @@ export type Display = {
134
134
  export type Environment = {
135
135
  /**
136
136
  * Solid color used to clear the screen before drawing.
137
- * @defaultValue 0,0,0
137
+ * @defaultValue [0,0,0]
138
138
  */
139
139
  clearColor: Vec3;
140
140
  /**
141
141
  * Color of the spherical gradient at the top of the sphere.
142
- * @defaultValue 1,1,1
142
+ * @defaultValue [1,1,1]
143
143
  */
144
144
  ambientColorTop: Vec3;
145
145
  /**
146
146
  * Color of the spherical gradient at the bottom of the sphere.
147
- * @defaultValue 1,1,1
147
+ * @defaultValue [1,1,1]
148
148
  */
149
149
  ambientColorBottom: Vec3;
150
150
  };
@@ -168,12 +168,12 @@ export type Misc = {
168
168
  export type Physics = {
169
169
  /**
170
170
  * The engine that is powering the physics of the scene.
171
- * @defaultValue physx
171
+ * @defaultValue "physx"
172
172
  */
173
173
  engine: string;
174
174
  /**
175
175
  * Global gravity applied throughout the scene.
176
- * @defaultValue 0,-9.8,0
176
+ * @defaultValue [0,-9.8,0]
177
177
  */
178
178
  gravity: Vec3;
179
179
  /**
@@ -13,3 +13,4 @@ export * from "./ViewportConfigCommand";
13
13
  export * from "./SetFilterCommand";
14
14
  export * from "./ToggleFilterCommand";
15
15
  export * from "./RemoveFilterCommand";
16
+ export * from "./UpdateSceneSettingsCommand";
package/dist/library.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},L=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!l.call(o,i)&&i!==r&&d(o,i,{get:()=>e[i],enumerable:!(t=p(e,i))||t.enumerable});return o};var m=o=>L(d({},"__esModule",{value:!0}),o);var I={};u(I,{DynamicLoader:()=>s});module.exports=m(I);var g=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class o{static#e=null;static#o=null;static get Core(){if(!o.#e)throw new Error("Livelink core not initialized");return o.#e}static load(e="prod"){return o.#o||(o.#o=o.#r(e)),o.#o}static async#r(e){let r=await o.#i(e),{LivelinkCore:t}=await r();o.#e=t;let i={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${t.VERSION} %c ${t.COMMIT_SHA} %c${e}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${i[e]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(e){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(e!=="prod"?`core.${e}.mjs`:"core.mjs");if(!g)return new Function("return import('"+r+"')");let i=await(await fetch(r)).text(),a=await new Function("return import('node:vm')")();return a.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new a.SourceTextModule(i,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(i)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.13");
1
+ "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},L=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!l.call(o,i)&&i!==r&&d(o,i,{get:()=>e[i],enumerable:!(t=p(e,i))||t.enumerable});return o};var m=o=>L(d({},"__esModule",{value:!0}),o);var I={};u(I,{DynamicLoader:()=>s});module.exports=m(I);var g=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class o{static#e=null;static#o=null;static get Core(){if(!o.#e)throw new Error("Livelink core not initialized");return o.#e}static load(e="prod"){return o.#o||(o.#o=o.#r(e)),o.#o}static async#r(e){let r=await o.#i(e),{LivelinkCore:t}=await r();o.#e=t;let i={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${t.VERSION} %c ${t.COMMIT_SHA} %c${e}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${i[e]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(e){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(e!=="prod"?`core.${e}.mjs`:"core.mjs");if(!g)return new Function("return import('"+r+"')");let i=await(await fetch(r)).text(),a=await new Function("return import('node:vm')")();return a.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new a.SourceTextModule(i,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(i)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.15");
2
2
  //# sourceMappingURL=library.cjs.map
package/dist/library.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var a=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class e{static#e=null;static#o=null;static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static load(o="prod"){return e.#o||(e.#o=e.#r(o)),e.#o}static async#r(o){let r=await e.#i(o),{LivelinkCore:i}=await r();e.#e=i;let t={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${i.VERSION} %c ${i.COMMIT_SHA} %c${o}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${t[o]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(o){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(o!=="prod"?`core.${o}.mjs`:"core.mjs");if(!a)return new Function("return import('"+r+"')");let t=await(await fetch(r)).text(),d=await new Function("return import('node:vm')")();return d.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new d.SourceTextModule(t,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(t)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.13");export{s as DynamicLoader};
1
+ var a=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class e{static#e=null;static#o=null;static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static load(o="prod"){return e.#o||(e.#o=e.#r(o)),e.#o}static async#r(o){let r=await e.#i(o),{LivelinkCore:i}=await r();e.#e=i;let t={prod:"#FFC700",dev:"#36D399",debug:"#FB4949"};console.info(`%c Livelink Core initialized \u{1F680} %c ${i.VERSION} %c ${i.COMMIT_SHA} %c${o}`,"background: #080A12; color: #FFC700; font-weight: bold; padding: 8px; padding-right: 164px; border-radius: 16px; margin: 16px 0 16px 0","background: #9EA6D6; color: #0A1018; font-weight: bold; padding: 1px; padding-right: 0px; margin-left: -160px; border-radius: 16px 0 0 16px;","background: #6973A8; color: #0A1018; font-weight: bold; padding: 1px; padding-left: 0; border-radius: 0 16px 16px 0;",`background: ${t[o]}; color: #000; font-weight: bold; padding: 6px 16px; border: 4px solid #080A12; border-radius: 16px; margin-left: 16px`)}static async#i(o){let r="https://cdn.3dverse.com/livelink/core/1.0/"+(o!=="prod"?`core.${o}.mjs`:"core.mjs");if(!a)return new Function("return import('"+r+"')");let t=await(await fetch(r)).text(),d=await new Function("return import('node:vm')")();return d.SourceTextModule?(console.info("Using experimental VM SourceTextModule to load Livelink core"),async()=>{let n=new d.SourceTextModule(t,{identifier:r});return await n.link(()=>{}),await n.evaluate(),n.namespace}):new Function("return import('data:text/javascript;base64,"+btoa(t)+"')")}constructor(){}};typeof window<"u"&&(window.__LIVELINK__||(window.__LIVELINK__={}),Object.prototype.hasOwnProperty.call(window.__LIVELINK__,"@3dverse/livelink.core")?console.warn("\u26A0\uFE0F WARNING \u26A0\uFE0F Multiple instances of Livelink Core being imported."):window.__LIVELINK__["@3dverse/livelink.core"]="1.1.15");export{s as DynamicLoader};
2
2
  //# sourceMappingURL=library.mjs.map
@@ -1,7 +1,7 @@
1
1
  export * from "./internal/GatewayEvents";
2
2
  export * from "./internal/EditorEvents";
3
3
  import type { AssetLoadingStatusEvent, AudioReceivedEvent, ClientConnectedEvent, ClientsDisconnectedEvent, FrameReceivedEvent, ScriptEventTriggeredEvent } from "./internal/GatewayEvents";
4
- import type { EntitiesCreatedEvent, EntitiesDeletedEvent, EntitiesUpdatedEvent, EntityVisibilityChangedEvent, LoadingCompletedEvent, SceneSettingsUpdatedEvent } from "./internal/EditorEvents";
4
+ import type { EntitiesCreatedEvent, EntitiesDeletedEvent, EntitiesUpdatedEvent, EntityVisibilityChangedEvent, SceneInfoLoadedEvent, SceneSettingsUpdatedEvent } from "./internal/EditorEvents";
5
5
  /**
6
6
  *
7
7
  */
@@ -39,7 +39,7 @@ export type CoreEvents = {
39
39
  "on-audio-received": AudioReceivedEvent;
40
40
  "on-script-event-received": ScriptEventTriggeredEvent;
41
41
  "on-asset-loading-status-received": AssetLoadingStatusEvent;
42
- "on-loading-completed": LoadingCompletedEvent;
42
+ "on-scene-info-loaded": SceneInfoLoadedEvent;
43
43
  "on-entities-created": EntitiesCreatedEvent;
44
44
  "on-entities-updated": EntitiesUpdatedEvent;
45
45
  "on-entities-deleted": EntitiesDeletedEvent;
@@ -6,6 +6,7 @@ import { SessionInterface } from "./SessionInterface";
6
6
  import { TypedEventTarget } from "./TypedEventTarget";
7
7
  import { CoreEvents } from "./CoreEvents";
8
8
  import type { EntityResponse, FindEntityOptions, FindEntityQuery, UpdateEntityCommand } from "./EntityUtils";
9
+ import type { SceneSettingsManifest } from "../_prebuild/engine_types/SceneSettingsRecord";
9
10
  /**
10
11
  * The LivelinkCore is the main entry point to the Livelink API.
11
12
  *
@@ -172,7 +173,7 @@ export declare class LivelinkCore extends TypedEventTarget<CoreEvents> {
172
173
  */
173
174
  highlightEntities({ highlightEntitiesMessage, }: {
174
175
  highlightEntitiesMessage: GatewayMessages.Commands.HighlightEntitiesData;
175
- }): void;
176
+ }): Promise<void>;
176
177
  /**
177
178
  * 11 - Fire an event.
178
179
  *
@@ -246,4 +247,11 @@ export declare class LivelinkCore extends TypedEventTarget<CoreEvents> {
246
247
  getChildren({ entity_rtid }: {
247
248
  entity_rtid: RTID;
248
249
  }): Promise<Array<EntityCore>>;
250
+ /**
251
+ *
252
+ */
253
+ updateSceneSettings({ updated_settings, persist, }: {
254
+ updated_settings: SceneSettingsManifest;
255
+ persist: boolean;
256
+ }): Promise<void>;
249
257
  }
@@ -1,6 +1,7 @@
1
1
  import type { ComponentName, ComponentsRecord, EntityCore } from "../../_prebuild/engine_types/ComponentsRecord";
2
2
  import { SceneSettingsManifest } from "../../_prebuild/engine_types/SceneSettingsRecord";
3
- import type { RTID, UUID } from "../types";
3
+ import { EntityResponse } from "../EntityUtils";
4
+ import type { RTID, UUID, Vec3 } from "../types";
4
5
  /**
5
6
  *
6
7
  */
@@ -38,6 +39,46 @@ export type Emitter = {
38
39
  */
39
40
  session_id: UUID;
40
41
  };
42
+ /**
43
+ *
44
+ */
45
+ export type SceneInfo = {
46
+ /**
47
+ * The global AABB of the scene.
48
+ */
49
+ readonly aabb: {
50
+ /**
51
+ * Global AABB minimum corner.
52
+ */
53
+ readonly min: Vec3;
54
+ /**
55
+ * Global AABB maximum corner.
56
+ */
57
+ readonly max: Vec3;
58
+ };
59
+ /**
60
+ * The number of entities in the scene.
61
+ */
62
+ readonly entity_count: number;
63
+ /**
64
+ * An array of entities that are present in the scene at the root level.
65
+ */
66
+ readonly root_entities: Array<EntityResponse>;
67
+ /**
68
+ * The number of triangles in the scene.
69
+ */
70
+ readonly triangle_count: {
71
+ /**
72
+ * Number of triangles in the scene, excluding sub-scenes.
73
+ */
74
+ readonly direct: number;
75
+ /**
76
+ * Total number of triangles in the scene including sub-scenes.
77
+ * Each sub-scene's triangles are counted recursively.
78
+ */
79
+ readonly total: number;
80
+ };
81
+ };
41
82
  /**
42
83
  *
43
84
  */
@@ -50,11 +91,11 @@ export declare class EditionEvent extends Event {
50
91
  /**
51
92
  *
52
93
  */
53
- export declare class LoadingCompletedEvent extends Event {
94
+ export declare class SceneInfoLoadedEvent extends Event {
54
95
  /**
55
- * An array of entities that are present in the scene at the root level.
96
+ * Information about the scene.
56
97
  */
57
- readonly root_entities: Array<EntityCore>;
98
+ readonly scene_info: SceneInfo;
58
99
  }
59
100
  /**
60
101
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",