@3dverse/livelink.core 1.0.9 → 1.0.10

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.
@@ -92,6 +92,10 @@ export type ComponentsRecord = {
92
92
  * 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.
93
93
  */
94
94
  joint: Components.Joint;
95
+ /**
96
+ * Display a label in the 3d view.
97
+ */
98
+ label: Components.Label;
95
99
  /**
96
100
  * Lineage of the entity through linkers.
97
101
  */
@@ -112,6 +116,10 @@ export type ComponentsRecord = {
112
116
  * Reference to a material.
113
117
  */
114
118
  material_ref: Components.MaterialRef;
119
+ /**
120
+ * Display a measure in the 3d view.
121
+ */
122
+ measure: Components.Measure;
115
123
  /**
116
124
  * Reference to a mesh.
117
125
  */
@@ -176,6 +184,10 @@ export type ComponentsRecord = {
176
184
  * Sphere geometry.
177
185
  */
178
186
  sphere_geometry: Components.SphereGeometry;
187
+ /**
188
+ * Display a spline in the 3d view.
189
+ */
190
+ spline: Components.Spline;
179
191
  /**
180
192
  * Adds a cutoff to a point light to simulate a spot light.
181
193
  */
@@ -15,6 +15,14 @@ export type SceneSettingsRecord = {
15
15
  * Settings for debug lines
16
16
  */
17
17
  debug_lines?: SceneSettings.DebugLines;
18
+ /**
19
+ * Default camera component of the scene, used to create default cameras.
20
+ */
21
+ default_camera_component?: SceneSettings.DefaultCameraComponent;
22
+ /**
23
+ * Default camera global transform of the scene, used to create default cameras.
24
+ */
25
+ default_camera_transform?: SceneSettings.DefaultCameraTransform;
18
26
  /**
19
27
  * Settings for the display
20
28
  */
@@ -416,6 +416,29 @@ export type Joint = {
416
416
  */
417
417
  enableCollision: boolean;
418
418
  };
419
+ /**
420
+ * Display a label in the 3d view.
421
+ */
422
+ export type Label = {
423
+ /**
424
+ * Title of the label.
425
+ */
426
+ title: string;
427
+ /**
428
+ * Description of the label.
429
+ */
430
+ description: string;
431
+ /**
432
+ * Camera distance from the label.
433
+ * @defaultValue 0,0,0,0,0,0,1
434
+ */
435
+ camera: Array<Float>;
436
+ /**
437
+ * Travel speed in units per second.
438
+ * @defaultValue 15
439
+ */
440
+ speed: Float;
441
+ };
419
442
  /**
420
443
  * Lineage of the entity through linkers.
421
444
  */
@@ -513,6 +536,21 @@ export type MaterialRef = {
513
536
  */
514
537
  faceCulling: Int32;
515
538
  };
539
+ /**
540
+ * Display a measure in the 3d view.
541
+ */
542
+ export type Measure = {
543
+ /**
544
+ * Define the type of the measure.
545
+ * @defaultValue 0
546
+ */
547
+ type: UInt32;
548
+ /**
549
+ * Color of the measure
550
+ * @defaultValue 1,1,1
551
+ */
552
+ color: Vec3;
553
+ };
516
554
  /**
517
555
  * Reference to a mesh.
518
556
  */
@@ -893,6 +931,26 @@ export type SphereGeometry = {
893
931
  */
894
932
  offset: Vec3;
895
933
  };
934
+ /**
935
+ * Display a spline in the 3d view.
936
+ */
937
+ export type Spline = {
938
+ /**
939
+ * Define the type of the curve.
940
+ * @defaultValue 0
941
+ */
942
+ type: UInt32;
943
+ /**
944
+ * Color of the curve.
945
+ * @defaultValue 1,1,1
946
+ */
947
+ color: Vec3;
948
+ /**
949
+ * When type is catmullrom, defines catmullrom's tension.
950
+ * @defaultValue 0.5
951
+ */
952
+ tension: Float;
953
+ };
896
954
  /**
897
955
  * Adds a cutoff to a point light to simulate a spot light.
898
956
  */
@@ -2,7 +2,8 @@
2
2
  * DO NOT EDIT THIS FILE MANUALLY.
3
3
  * This file has been generated automatically from ftl-schemas
4
4
  */
5
- import type { Vec3, UInt32, Float } from "../../sources/types";
5
+ import type { Assets } from "../../sources/core";
6
+ import type { Vec3, UInt32, Float, Int32, Quat, AssetRef } from "../../sources/types";
6
7
  /**
7
8
  * Settings for debug lines
8
9
  */
@@ -68,6 +69,40 @@ export type DebugLines = {
68
69
  */
69
70
  drawReflectionProbes?: boolean;
70
71
  };
72
+ /**
73
+ * Default camera component of the scene, used to create default cameras.
74
+ */
75
+ export type DefaultCameraComponent = {
76
+ /**
77
+ * Specifies which render graph this camera should use.
78
+ */
79
+ renderGraphRef?: AssetRef<Assets.RenderGraph>;
80
+ /**
81
+ * Input values as described in the referenced render graph in their original JSON format.
82
+ * @defaultValue [object Object]
83
+ */
84
+ dataJSON?: undefined;
85
+ /**
86
+ * Index of the render target to blit.
87
+ * @defaultValue -1
88
+ */
89
+ renderTargetIndex?: Int32;
90
+ };
91
+ /**
92
+ * Default camera global transform of the scene, used to create default cameras.
93
+ */
94
+ export type DefaultCameraTransform = {
95
+ /**
96
+ * x, y, z position of the camera
97
+ * @defaultValue 0,0,0
98
+ */
99
+ position?: Vec3;
100
+ /**
101
+ * Orientation of the camera expressed as a quaternion
102
+ * @defaultValue 0,0,0,1
103
+ */
104
+ orientation?: Quat;
105
+ };
71
106
  /**
72
107
  * Settings for the display
73
108
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",