@3dverse/livelink.core 0.7.3 → 0.7.4

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.
@@ -29,7 +29,7 @@ export type Euid = {
29
29
  /**
30
30
  * Animation controller with reference to an animation graph and an animation set. Enables skeletal animation on its skinned mesh descendents whose skeleton is compatible with the animations in the animation set.
31
31
  */
32
- export type AnimationController = {
32
+ export type AnimationController = Partial<{
33
33
  /**
34
34
  * UUID of the referenced animation graph.
35
35
  */
@@ -50,11 +50,11 @@ export type AnimationController = {
50
50
  * Whether or not root motion is enabled.
51
51
  */
52
52
  rootMotionEnabled: boolean;
53
- };
53
+ }>;
54
54
  /**
55
55
  * Animation sequence controller with reference to an animation sequence and assigned entities.
56
56
  */
57
- export type AnimationSequenceController = {
57
+ export type AnimationSequenceController = Partial<{
58
58
  /**
59
59
  * A reference to an animation sequence.
60
60
  */
@@ -87,20 +87,20 @@ export type AnimationSequenceController = {
87
87
  * The offset to seek at next frame. Must be in the [0, 1] range.
88
88
  */
89
89
  seekOffset: Float;
90
- };
90
+ }>;
91
91
  /**
92
92
  * Links entity to bone in skeleton.
93
93
  */
94
- export type Bone = {
94
+ export type Bone = Partial<{
95
95
  /**
96
96
  * Index of bone in skeleton.
97
97
  */
98
98
  boneIndex: UInt32;
99
- };
99
+ }>;
100
100
  /**
101
101
  * Box geometry.
102
102
  */
103
- export type BoxGeometry = {
103
+ export type BoxGeometry = Partial<{
104
104
  /**
105
105
  * Width, height and depth of the box.
106
106
  */
@@ -109,11 +109,11 @@ export type BoxGeometry = {
109
109
  * Geometry offset.
110
110
  */
111
111
  offset: Vec3;
112
- };
112
+ }>;
113
113
  /**
114
114
  * Virtual camera.
115
115
  */
116
- export type Camera = {
116
+ export type Camera = Partial<{
117
117
  /**
118
118
  * UUID of the referenced render graph this camera should use.
119
119
  */
@@ -126,11 +126,11 @@ export type Camera = {
126
126
  * Input values as described in the referenced render graph in their original JSON format.
127
127
  */
128
128
  dataJSON: Record<string, unknown>;
129
- };
129
+ }>;
130
130
  /**
131
131
  * Capsule geometry.
132
132
  */
133
- export type CapsuleGeometry = {
133
+ export type CapsuleGeometry = Partial<{
134
134
  /**
135
135
  * Radius of the spheres at each end of the capsule.
136
136
  */
@@ -147,11 +147,11 @@ export type CapsuleGeometry = {
147
147
  * Geometry offset.
148
148
  */
149
149
  offset: Vec3;
150
- };
150
+ }>;
151
151
  /**
152
152
  * Character controller used for movement constrained by collisions without having to deal with a rigid body. A character controller is kinematic, and so is not affected by forces. It uses its own tweaked collision algorithm to give a good feeling while controlling the character.
153
153
  */
154
- export type CharacterController = {
154
+ export type CharacterController = Partial<{
155
155
  /**
156
156
  * Step offset. If the height of a step is greater than stepOffset, the controller cannot climb automatically and gets stuck.
157
157
  */
@@ -168,20 +168,20 @@ export type CharacterController = {
168
168
  * Displacement vector for current frame.
169
169
  */
170
170
  displacement: Vec3;
171
- };
171
+ }>;
172
172
  /**
173
173
  * Reference to a collision geometry.
174
174
  */
175
- export type CollisionGeometryRef = {
175
+ export type CollisionGeometryRef = Partial<{
176
176
  /**
177
177
  * UUID of the referenced collision geometry.
178
178
  */
179
179
  collisionGeometryRef: AssetRef<Assets.CollisionGeometry>;
180
- };
180
+ }>;
181
181
  /**
182
182
  * A physics constraint that can be configured along 6 degrees of freedom. In its default state it behaves as a fixed constraint - that is, it rigidly fixes the constraint frames of its two entities. However, individual degrees of freedom may be unlocked to permit any combination of rotation around the x-, y- and z- axes, and translation along these axes.
183
183
  */
184
- export type Constraint = {
184
+ export type Constraint = Partial<{
185
185
  /**
186
186
  * Motion along the X axis
187
187
  */
@@ -282,20 +282,20 @@ export type Constraint = {
282
282
  * The goal velocity for angular drive.
283
283
  */
284
284
  driveAngularVelocity: Vec3;
285
- };
285
+ }>;
286
286
  /**
287
287
  * Culling geometry. Add this component in addition to another geometry component (e.g. box geometry, sphere geometry, etc.) to enable culling geometry.
288
288
  */
289
- export type CullingGeometry = {
289
+ export type CullingGeometry = Partial<{
290
290
  /**
291
291
  * Additive geometry will only display elements (vertices or voxels) inside the geometry. Subtractive will only display elements outside the geometry.
292
292
  */
293
293
  isAdditive: boolean;
294
- };
294
+ }>;
295
295
  /**
296
296
  * Cylinder geometry.
297
297
  */
298
- export type CylinderGeometry = {
298
+ export type CylinderGeometry = Partial<{
299
299
  /**
300
300
  * Radius of the cylinder.
301
301
  */
@@ -312,29 +312,29 @@ export type CylinderGeometry = {
312
312
  * Geometry offset.
313
313
  */
314
314
  offset: Vec3;
315
- };
315
+ }>;
316
316
  /**
317
317
  * Name of the entity.
318
318
  */
319
- export type DebugName = {
319
+ export type DebugName = Partial<{
320
320
  /**
321
321
  * Entity name.
322
322
  */
323
323
  value: string;
324
- };
324
+ }>;
325
325
  /**
326
326
  * Decal Projector.
327
327
  */
328
- export type DecalProjector = {
328
+ export type DecalProjector = Partial<{
329
329
  /**
330
330
  * Z-Index order of the decal projection. The higher index will render on top of the lower ones.
331
331
  */
332
332
  zIndex: Int32;
333
- };
333
+ }>;
334
334
  /**
335
335
  * The environment of a scene. Used to give a scene a skybox.
336
336
  */
337
- export type Environment = {
337
+ export type Environment = Partial<{
338
338
  /**
339
339
  * UUID of the skybox cubemap.
340
340
  */
@@ -347,11 +347,11 @@ export type Environment = {
347
347
  * Reference to the irradiance cubemap.
348
348
  */
349
349
  irradianceUUID: AssetRef<Assets.Cubemap>;
350
- };
350
+ }>;
351
351
  /**
352
352
  * Base component of all the other joint components (revolute_joint, etc.). By itself it will lock the orientations and distances of the constrainer and constrainee.
353
353
  */
354
- export type Joint = {
354
+ export type Joint = Partial<{
355
355
  /**
356
356
  * An entity that is a rigid body.
357
357
  */
@@ -372,11 +372,11 @@ export type Joint = {
372
372
  * Whether to enable collision between constrainer and constrainee.
373
373
  */
374
374
  enableCollision: boolean;
375
- };
375
+ }>;
376
376
  /**
377
377
  * Lineage of the entity through linkers.
378
378
  */
379
- export type Lineage = {
379
+ export type Lineage = Partial<{
380
380
  /**
381
381
  * UUIDs of the hierarchy of linkers that brought this entity.
382
382
  */
@@ -389,11 +389,11 @@ export type Lineage = {
389
389
  * Ordinal number of this entity in respect of its siblings.
390
390
  */
391
391
  ordinal: Int32;
392
- };
392
+ }>;
393
393
  /**
394
394
  * Local Axis Aligned Bounding Box of the entity.
395
395
  */
396
- export type LocalAabb = {
396
+ export type LocalAabb = Partial<{
397
397
  /**
398
398
  * Minimum point of the box.
399
399
  */
@@ -402,11 +402,11 @@ export type LocalAabb = {
402
402
  * Maximum point of the box.
403
403
  */
404
404
  max: Vec3;
405
- };
405
+ }>;
406
406
  /**
407
407
  * Local transform of the entity.
408
408
  */
409
- export type LocalTransform = {
409
+ export type LocalTransform = Partial<{
410
410
  /**
411
411
  * x, y, z position of the entity.
412
412
  */
@@ -427,11 +427,11 @@ export type LocalTransform = {
427
427
  * Last global orientation of the entity expressed as euler angles submitted by a user. This value may not be valid, and should be checked.
428
428
  */
429
429
  globalEulerOrientation: Vec3;
430
- };
430
+ }>;
431
431
  /**
432
432
  * References a shader and specifies input values if needed.
433
433
  */
434
- export type Material = {
434
+ export type Material = Partial<{
435
435
  /**
436
436
  * UUID of the referenced shader.
437
437
  */
@@ -448,11 +448,11 @@ export type Material = {
448
448
  * Specialization constants values as described in the referenced shader in their original JSON format.
449
449
  */
450
450
  constantsJSON: Record<string, unknown>;
451
- };
451
+ }>;
452
452
  /**
453
453
  * Reference to a material.
454
454
  */
455
- export type MaterialRef = {
455
+ export type MaterialRef = Partial<{
456
456
  /**
457
457
  * UUID of the referenced material.
458
458
  */
@@ -461,11 +461,11 @@ export type MaterialRef = {
461
461
  * Face culling mode. 0 to inherit from material, 1 for single sided, 2 for double sided.
462
462
  */
463
463
  faceCulling: Int32;
464
- };
464
+ }>;
465
465
  /**
466
466
  * Reference to a mesh.
467
467
  */
468
- export type MeshRef = {
468
+ export type MeshRef = Partial<{
469
469
  /**
470
470
  * UUID of the referenced mesh.
471
471
  */
@@ -474,11 +474,11 @@ export type MeshRef = {
474
474
  * Index of the submesh inside the mesh's submesh array.
475
475
  */
476
476
  submeshIndex: Int32;
477
- };
477
+ }>;
478
478
  /**
479
479
  * A lens that applies an orthographic projection.
480
480
  */
481
- export type OrthographicLens = {
481
+ export type OrthographicLens = Partial<{
482
482
  /**
483
483
  * Left plane.
484
484
  */
@@ -503,11 +503,11 @@ export type OrthographicLens = {
503
503
  * Far plane.
504
504
  */
505
505
  zFar: Float;
506
- };
506
+ }>;
507
507
  /**
508
508
  * Overrides a given entity in a sub scene.
509
509
  */
510
- export type Overrider = {
510
+ export type Overrider = Partial<{
511
511
  /**
512
512
  * Mark the overridden entity as deleted.
513
513
  */
@@ -520,11 +520,11 @@ export type Overrider = {
520
520
  * Hashes of the components to detach from the overridden entity.
521
521
  */
522
522
  componentsToDetach: Array<Int32>;
523
- };
523
+ }>;
524
524
  /**
525
525
  * A lens that applies a perspective projection.
526
526
  */
527
- export type PerspectiveLens = {
527
+ export type PerspectiveLens = Partial<{
528
528
  /**
529
529
  * Aspect ratio of the viewport, usually equals width/height.
530
530
  */
@@ -545,11 +545,11 @@ export type PerspectiveLens = {
545
545
  * Offset of the projection for stereoscopic rendering.
546
546
  */
547
547
  offset: Vec2;
548
- };
548
+ }>;
549
549
  /**
550
550
  * Physics material which represents a set of physical surface properties.
551
551
  */
552
- export type PhysicsMaterial = {
552
+ export type PhysicsMaterial = Partial<{
553
553
  /**
554
554
  * The friction coefficient applied between this surface and another surface if they are not moving lateral to each other. Usually a value from 0 to 1. A value of zero feels like ice, a value of 1 will make it very hard to get the object moving. Resulting static friction of a physics body colliding with another is determined by the average of both bodies' static friction coefficient.
555
555
  */
@@ -574,11 +574,11 @@ export type PhysicsMaterial = {
574
574
  * Whether to consider the geometry associated to this physics material as a trigger or not.
575
575
  */
576
576
  isTrigger: boolean;
577
- };
577
+ }>;
578
578
  /**
579
579
  * Plane geometry.
580
580
  */
581
- export type PlaneGeometry = {
581
+ export type PlaneGeometry = Partial<{
582
582
  /**
583
583
  * Distance from the origin in the plane's normal direction.
584
584
  */
@@ -587,20 +587,20 @@ export type PlaneGeometry = {
587
587
  * Normal of the plane.
588
588
  */
589
589
  normal: Vec3;
590
- };
590
+ }>;
591
591
  /**
592
592
  * Reference to a point cloud.
593
593
  */
594
- export type PointCloudRef = {
594
+ export type PointCloudRef = Partial<{
595
595
  /**
596
596
  * UUID of the referenced point cloud.
597
597
  */
598
598
  value: AssetRef<Assets.PointCloud>;
599
- };
599
+ }>;
600
600
  /**
601
601
  * A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
602
602
  */
603
- export type PointLight = {
603
+ export type PointLight = Partial<{
604
604
  /**
605
605
  * Light color.
606
606
  */
@@ -621,11 +621,11 @@ export type PointLight = {
621
621
  * Make this light direction control the atmosphere sun direction. If more than one light is marked to be a sun results are undefined.
622
622
  */
623
623
  isSun: boolean;
624
- };
624
+ }>;
625
625
  /**
626
626
  * Omni directional reflection probe parameters, used for local cubemap reflection generation.
627
627
  */
628
- export type ReflectionProbe = {
628
+ export type ReflectionProbe = Partial<{
629
629
  /**
630
630
  * x, y, z offset of the probe reflection origin.
631
631
  */
@@ -642,11 +642,11 @@ export type ReflectionProbe = {
642
642
  * Resolution of the reflection map.
643
643
  */
644
644
  quality: Int32;
645
- };
645
+ }>;
646
646
  /**
647
647
  * Revolute joint which keeps the origins and x-axes of the frames together, and allows free rotation around this common axis.
648
648
  */
649
- export type RevoluteJoint = {
649
+ export type RevoluteJoint = Partial<{
650
650
  /**
651
651
  * The minimum angle the rotation can go (in degrees).
652
652
  */
@@ -663,11 +663,11 @@ export type RevoluteJoint = {
663
663
  * If stiffness is greater than zero, this is the damping of the limit spring.
664
664
  */
665
665
  damping: Float;
666
- };
666
+ }>;
667
667
  /**
668
668
  * Rigid body parameters.
669
669
  */
670
- export type RigidBody = {
670
+ export type RigidBody = Partial<{
671
671
  /**
672
672
  * Mass of the rigid body. A value of 0 is interpreted as infinite mass.
673
673
  */
@@ -704,11 +704,11 @@ export type RigidBody = {
704
704
  * Specifies if rigid body is kinematic. Kinematic rigid bodies are not affected by forces such as gravity.
705
705
  */
706
706
  isKinematic: boolean;
707
- };
707
+ }>;
708
708
  /**
709
709
  * Reference to a scene.
710
710
  */
711
- export type SceneRef = {
711
+ export type SceneRef = Partial<{
712
712
  /**
713
713
  * UUID of the referenced scene.
714
714
  */
@@ -717,11 +717,11 @@ export type SceneRef = {
717
717
  * Maximum number of times a scene appears when it references itself.
718
718
  */
719
719
  maxRecursionCount: UInt32;
720
- };
720
+ }>;
721
721
  /**
722
722
  * References a script and specifies input values if needed.
723
723
  */
724
- export type ScriptElement = {
724
+ export type ScriptElement = Partial<{
725
725
  /**
726
726
  * UUID of the referenced script.
727
727
  */
@@ -730,20 +730,20 @@ export type ScriptElement = {
730
730
  * Input values as described in the referenced script in their original JSON format.
731
731
  */
732
732
  dataJSON: Record<string, unknown>;
733
- };
733
+ }>;
734
734
  /**
735
735
  * References multiple scripts.
736
736
  */
737
- export type ScriptMap = {
737
+ export type ScriptMap = Partial<{
738
738
  /**
739
739
  * List of scripts.
740
740
  */
741
741
  elements: Record<UUID, ScriptElement>;
742
- };
742
+ }>;
743
743
  /**
744
744
  * Enables a light to cast shadows.
745
745
  */
746
- export type ShadowCaster = {
746
+ export type ShadowCaster = Partial<{
747
747
  /**
748
748
  * Bias to apply to avoid self shadowing artifacts.
749
749
  */
@@ -772,20 +772,20 @@ export type ShadowCaster = {
772
772
  * For directional lights, accumulate all shadow cascades.
773
773
  */
774
774
  accumulateShadowCascades: boolean;
775
- };
775
+ }>;
776
776
  /**
777
777
  * Reference to a skeleton.
778
778
  */
779
- export type SkeletonRef = {
779
+ export type SkeletonRef = Partial<{
780
780
  /**
781
781
  * UUID of the referenced skeleton.
782
782
  */
783
783
  value: AssetRef<Assets.Skeleton>;
784
- };
784
+ }>;
785
785
  /**
786
786
  * Reference to a sound.
787
787
  */
788
- export type SoundRef = {
788
+ export type SoundRef = Partial<{
789
789
  /**
790
790
  * UUID of the referenced sound.
791
791
  */
@@ -806,11 +806,11 @@ export type SoundRef = {
806
806
  * Whether or not the sound loops.
807
807
  */
808
808
  looping: boolean;
809
- };
809
+ }>;
810
810
  /**
811
811
  * Sphere geometry.
812
812
  */
813
- export type SphereGeometry = {
813
+ export type SphereGeometry = Partial<{
814
814
  /**
815
815
  * Radius of the sphere.
816
816
  */
@@ -819,11 +819,11 @@ export type SphereGeometry = {
819
819
  * Geometry offset.
820
820
  */
821
821
  offset: Vec3;
822
- };
822
+ }>;
823
823
  /**
824
824
  * Adds a cutoff to a point light to simulate a spot light.
825
825
  */
826
- export type SpotLight = {
826
+ export type SpotLight = Partial<{
827
827
  /**
828
828
  * Cutoff angle.
829
829
  */
@@ -832,29 +832,29 @@ export type SpotLight = {
832
832
  * Reference to a IES 2d texture.
833
833
  */
834
834
  IESProfile: AssetRef<Assets.Texture>;
835
- };
835
+ }>;
836
836
  /**
837
837
  * A lens that applies a custom projection.
838
838
  */
839
- export type StereoscopicLens = {
839
+ export type StereoscopicLens = Partial<{
840
840
  /**
841
841
  * Projection matrix.
842
842
  */
843
843
  cs_from_vs: Mat4;
844
- };
844
+ }>;
845
845
  /**
846
846
  * Tags used to filter entities.
847
847
  */
848
- export type Tags = {
848
+ export type Tags = Partial<{
849
849
  /**
850
850
  * Tag list.
851
851
  */
852
852
  value: Array<string>;
853
- };
853
+ }>;
854
854
  /**
855
855
  * Vehicle Controller parameters.
856
856
  */
857
- export type VehicleController = {
857
+ export type VehicleController = Partial<{
858
858
  /**
859
859
  * The chassis.
860
860
  */
@@ -875,11 +875,11 @@ export type VehicleController = {
875
875
  * The rear right wheel.
876
876
  */
877
877
  rearRightWheel: EntityRef;
878
- };
878
+ }>;
879
879
  /**
880
880
  * Filtering properties applied to the volume.
881
881
  */
882
- export type VolumeFilter = {
882
+ export type VolumeFilter = Partial<{
883
883
  /**
884
884
  * Voxel intensity range displayed, not applicable if outside volume material range.
885
885
  */
@@ -900,25 +900,25 @@ export type VolumeFilter = {
900
900
  * Whether or not this volume is visible in the 3D view.
901
901
  */
902
902
  enable3D: boolean;
903
- };
903
+ }>;
904
904
  /**
905
905
  * Reference to a material to use with a volume.
906
906
  */
907
- export type VolumeMaterialRef = {
907
+ export type VolumeMaterialRef = Partial<{
908
908
  /**
909
909
  * UUID of the referenced volume material.
910
910
  */
911
911
  value: AssetRef<Assets.VolumeMaterial>;
912
- };
912
+ }>;
913
913
  /**
914
914
  * Reference to a volume made of voxels.
915
915
  */
916
- export type VolumeRef = {
916
+ export type VolumeRef = Partial<{
917
917
  /**
918
918
  * UUID of the referenced 3D texture.
919
919
  */
920
920
  texture3dRef: AssetRef<Assets.Texture3D>;
921
- };
921
+ }>;
922
922
  /**
923
923
  *
924
924
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",