@xtctwins/tctwins-core 1.1.19 → 1.1.20

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.
Files changed (151) hide show
  1. package/README.md +4 -4
  2. package/dist/tctwins-core.es5.js +27517 -27493
  3. package/dist/tctwins-core.min.es5.js +4 -4
  4. package/package.json +84 -84
  5. package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
  6. package/types/extras/ContextMenu/index.d.ts +1 -1
  7. package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
  8. package/types/extras/PointerCircle/index.d.ts +1 -1
  9. package/types/extras/PointerLens/PointerLens.d.ts +146 -146
  10. package/types/extras/index.d.ts +3 -3
  11. package/types/index.d.ts +3 -3
  12. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
  13. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
  14. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
  15. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
  16. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
  17. package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
  18. package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
  19. package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
  20. package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
  21. package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
  22. package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
  23. package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
  24. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
  25. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
  26. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
  27. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
  28. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
  29. package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
  30. package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
  31. package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
  32. package/types/plugins/FastNavPlugin/index.d.ts +1 -1
  33. package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
  34. package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
  35. package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
  36. package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
  37. package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
  38. package/types/plugins/NavCubePlugin/index.d.ts +1 -1
  39. package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
  40. package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
  41. package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
  42. package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
  43. package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
  44. package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
  45. package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
  46. package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
  47. package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
  48. package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
  49. package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
  50. package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
  51. package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
  52. package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
  53. package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
  54. package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
  55. package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
  56. package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
  57. package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
  58. package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
  59. package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
  60. package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
  61. package/types/plugins/index.d.ts +30 -30
  62. package/types/viewer/Configs.d.ts +46 -46
  63. package/types/viewer/Plugin.d.ts +69 -69
  64. package/types/viewer/Viewer.d.ts +282 -282
  65. package/types/viewer/index.d.ts +6 -6
  66. package/types/viewer/localization/LocaleService.d.ts +183 -183
  67. package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
  68. package/types/viewer/metadata/MetaModel.d.ts +94 -102
  69. package/types/viewer/metadata/MetaObject.d.ts +74 -74
  70. package/types/viewer/metadata/MetaScene.d.ts +135 -135
  71. package/types/viewer/metadata/Property.d.ts +29 -29
  72. package/types/viewer/metadata/PropertySet.d.ts +31 -31
  73. package/types/viewer/metadata/index.d.ts +6 -6
  74. package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
  75. package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
  76. package/types/viewer/scene/Component.d.ts +155 -155
  77. package/types/viewer/scene/Entity.d.ts +401 -401
  78. package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
  79. package/types/viewer/scene/camera/Camera.d.ts +364 -364
  80. package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
  81. package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
  82. package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
  83. package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
  84. package/types/viewer/scene/camera/Frustum.d.ts +166 -166
  85. package/types/viewer/scene/camera/Ortho.d.ts +115 -115
  86. package/types/viewer/scene/camera/Perspective.d.ts +136 -136
  87. package/types/viewer/scene/camera/index.d.ts +4 -4
  88. package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
  89. package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
  90. package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
  91. package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
  92. package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
  93. package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
  94. package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
  95. package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
  96. package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
  97. package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
  98. package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
  99. package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
  100. package/types/viewer/scene/geometry/index.d.ts +2 -2
  101. package/types/viewer/scene/index.d.ts +23 -23
  102. package/types/viewer/scene/input/input.d.ts +69 -69
  103. package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
  104. package/types/viewer/scene/lights/DirLight.d.ts +25 -25
  105. package/types/viewer/scene/lights/Light.d.ts +3 -3
  106. package/types/viewer/scene/lights/PointLight.d.ts +30 -30
  107. package/types/viewer/scene/lights/index.d.ts +2 -2
  108. package/types/viewer/scene/marker/Marker.d.ts +136 -136
  109. package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
  110. package/types/viewer/scene/marker/index.d.ts +2 -2
  111. package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
  112. package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
  113. package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
  114. package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
  115. package/types/viewer/scene/materials/Material.d.ts +3 -3
  116. package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
  117. package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
  118. package/types/viewer/scene/materials/Texture.d.ts +260 -260
  119. package/types/viewer/scene/materials/index.d.ts +6 -6
  120. package/types/viewer/scene/math/Frustum.d.ts +41 -41
  121. package/types/viewer/scene/math/index.d.ts +1 -1
  122. package/types/viewer/scene/math/math.d.ts +104 -104
  123. package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
  124. package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
  125. package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
  126. package/types/viewer/scene/mementos/index.d.ts +3 -3
  127. package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
  128. package/types/viewer/scene/mesh/index.d.ts +1 -1
  129. package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
  130. package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
  131. package/types/viewer/scene/models/SceneModel.d.ts +757 -762
  132. package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
  133. package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
  134. package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
  135. package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
  136. package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
  137. package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
  138. package/types/viewer/scene/models/index.d.ts +7 -7
  139. package/types/viewer/scene/nodes/Node.d.ts +664 -664
  140. package/types/viewer/scene/nodes/index.d.ts +1 -1
  141. package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
  142. package/types/viewer/scene/postfx/SAO.d.ts +209 -209
  143. package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
  144. package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
  145. package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
  146. package/types/viewer/scene/stats.d.ts +40 -40
  147. package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
  148. package/types/viewer/scene/viewport/index.d.ts +1 -1
  149. package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
  150. package/types/viewer/scene/webgl/index.d.ts +1 -1
  151. package/dist/tctwins-core.umd.js +0 -37
@@ -1,68 +1,68 @@
1
- import {SceneModelEntity} from "./SceneModelEntity";
2
- import {SceneModelTransform} from "./SceneModelTransform";
3
- import {SceneModelTextureSet} from "./SceneModelTextureSet";
4
- import {SceneModel} from "./SceneModel";
5
-
6
- /**
7
- * A mesh within a {@link SceneModel}.
8
- *
9
- * * Created with {@link SceneModel#createMesh}
10
- * * Belongs to exactly one {@link SceneModelEntity}
11
- * * Stored by ID in {@link SceneModel#meshes}
12
- * * Referenced by {@link SceneModelEntity#meshes}
13
- * * Can have a {@link SceneModelTransform} to dynamically scale, rotate and translate it.
14
- */
15
- export declare class SceneModelMesh {
16
-
17
- /**
18
- * The {@link SceneModel} that owns this SceneModelMesh.
19
- *
20
- * @type {SceneModel}
21
- */
22
- model: SceneModel;
23
-
24
- /**
25
- * The {@link SceneModelEntity} that owns this SceneModelMesh.
26
- *
27
- * @type {SceneModelEntity}
28
- */
29
- object: SceneModelEntity;
30
-
31
- /**
32
- * The {@link SceneModelTransform} that transforms this SceneModelMesh.
33
- *
34
- * * This only exists when the SceneModelMesh is instancing its geometry.
35
- * * These are created with {@link SceneModel#createTransform}
36
- * * Each of these is also registered in {@link SceneModel#transforms}.
37
- *
38
- * @type {SceneModelTransform}
39
- */
40
- transform: SceneModelTransform | null;
41
-
42
-
43
- /**
44
- * The {@link SceneModelTextureSet} that optionally textures this SceneModelMesh.
45
- *
46
- * * This only exists when the SceneModelMesh has texture.
47
- * * These are created with {@link SceneModel#createTextureSet}
48
- * * Each of these is also registered in {@link SceneModel#textureSets}.
49
- *
50
- * @type {SceneModelTextureSet}
51
- */
52
- textureSet: SceneModelTextureSet | null;
53
-
54
- /**
55
- * Unique ID of this SceneModelMesh.
56
- *
57
- * The SceneModelMesh is registered against this ID in {@link SceneModel#meshes}.
58
- */
59
- id: string | number;
60
-
61
- /**
62
- * The {@link SceneModelEntity} that owns this SceneModelMesh.
63
- *
64
- * @type {SceneModelEntity}
65
- */
66
- entity: SceneModelEntity;
67
-
68
- }
1
+ import {SceneModelEntity} from "./SceneModelEntity";
2
+ import {SceneModelTransform} from "./SceneModelTransform";
3
+ import {SceneModelTextureSet} from "./SceneModelTextureSet";
4
+ import {SceneModel} from "./SceneModel";
5
+
6
+ /**
7
+ * A mesh within a {@link SceneModel}.
8
+ *
9
+ * * Created with {@link SceneModel#createMesh}
10
+ * * Belongs to exactly one {@link SceneModelEntity}
11
+ * * Stored by ID in {@link SceneModel#meshes}
12
+ * * Referenced by {@link SceneModelEntity#meshes}
13
+ * * Can have a {@link SceneModelTransform} to dynamically scale, rotate and translate it.
14
+ */
15
+ export declare class SceneModelMesh {
16
+
17
+ /**
18
+ * The {@link SceneModel} that owns this SceneModelMesh.
19
+ *
20
+ * @type {SceneModel}
21
+ */
22
+ model: SceneModel;
23
+
24
+ /**
25
+ * The {@link SceneModelEntity} that owns this SceneModelMesh.
26
+ *
27
+ * @type {SceneModelEntity}
28
+ */
29
+ object: SceneModelEntity;
30
+
31
+ /**
32
+ * The {@link SceneModelTransform} that transforms this SceneModelMesh.
33
+ *
34
+ * * This only exists when the SceneModelMesh is instancing its geometry.
35
+ * * These are created with {@link SceneModel#createTransform}
36
+ * * Each of these is also registered in {@link SceneModel#transforms}.
37
+ *
38
+ * @type {SceneModelTransform}
39
+ */
40
+ transform: SceneModelTransform | null;
41
+
42
+
43
+ /**
44
+ * The {@link SceneModelTextureSet} that optionally textures this SceneModelMesh.
45
+ *
46
+ * * This only exists when the SceneModelMesh has texture.
47
+ * * These are created with {@link SceneModel#createTextureSet}
48
+ * * Each of these is also registered in {@link SceneModel#textureSets}.
49
+ *
50
+ * @type {SceneModelTextureSet}
51
+ */
52
+ textureSet: SceneModelTextureSet | null;
53
+
54
+ /**
55
+ * Unique ID of this SceneModelMesh.
56
+ *
57
+ * The SceneModelMesh is registered against this ID in {@link SceneModel#meshes}.
58
+ */
59
+ id: string | number;
60
+
61
+ /**
62
+ * The {@link SceneModelEntity} that owns this SceneModelMesh.
63
+ *
64
+ * @type {SceneModelEntity}
65
+ */
66
+ entity: SceneModelEntity;
67
+
68
+ }
@@ -1,16 +1,16 @@
1
- /**
2
- * A texture within a {@link SceneModelTextureSet}.
3
- *
4
- * * Created with {@link SceneModel#createTexture}
5
- * * Belongs to many {@link SceneModelTextureSet}s
6
- * * Stored by ID in {@link SceneModel#textures}}
7
- */
8
- export declare class SceneModelTexture {
9
-
10
- /**
11
- * Unique ID of this SceneModelTexture.
12
- *
13
- * The SceneModelTexture is registered against this ID in {@link SceneModel#textures}.
14
- */
15
- id: string | number;
16
- }
1
+ /**
2
+ * A texture within a {@link SceneModelTextureSet}.
3
+ *
4
+ * * Created with {@link SceneModel#createTexture}
5
+ * * Belongs to many {@link SceneModelTextureSet}s
6
+ * * Stored by ID in {@link SceneModel#textures}}
7
+ */
8
+ export declare class SceneModelTexture {
9
+
10
+ /**
11
+ * Unique ID of this SceneModelTexture.
12
+ *
13
+ * The SceneModelTexture is registered against this ID in {@link SceneModel#textures}.
14
+ */
15
+ id: string | number;
16
+ }
@@ -1,51 +1,51 @@
1
- import {SceneModelTexture} from "./SceneModelTexture";
2
-
3
-
4
- /**
5
- * A texture set within a {@link SceneModel}.
6
- *
7
- * * Created with {@link SceneModel#createTextureSet}
8
- * * Belongs to many {@link SceneModelMesh}es
9
- * * Stored by ID in {@link SceneModel#textureSets}
10
- * * Referenced by {@link SceneModelMesh#textureSet}
11
- */
12
-
13
- export declare class SceneModelTextureSet {
14
-
15
- /**
16
- * Unique ID of this SceneModelTextureSet.
17
- *
18
- * The SceneModelTextureSet is registered against this ID in {@link SceneModel#textureSets}.
19
- */
20
- id: string | number;
21
-
22
- /**
23
- * The color texture.
24
- * @type {SceneModelTexture|*}
25
- */
26
- colorTexture: SceneModelTexture | null;
27
-
28
- /**
29
- * The metallic-roughness texture.
30
- * @type {SceneModelTexture|*}
31
- */
32
- metallicRoughnessTexture: SceneModelTexture | null;
33
-
34
- /**
35
- * The normal map texture.
36
- * @type {SceneModelTexture|*}
37
- */
38
- normalsTexture: SceneModelTexture | null;
39
-
40
- /**
41
- * The emissive color texture.
42
- * @type {SceneModelTexture|*}
43
- */
44
- emissiveTexture: SceneModelTexture | null;
45
-
46
- /**
47
- * The ambient occlusion texture.
48
- * @type {SceneModelTexture|*}
49
- */
50
- occlusionTexture: SceneModelTexture | null;
51
- }
1
+ import {SceneModelTexture} from "./SceneModelTexture";
2
+
3
+
4
+ /**
5
+ * A texture set within a {@link SceneModel}.
6
+ *
7
+ * * Created with {@link SceneModel#createTextureSet}
8
+ * * Belongs to many {@link SceneModelMesh}es
9
+ * * Stored by ID in {@link SceneModel#textureSets}
10
+ * * Referenced by {@link SceneModelMesh#textureSet}
11
+ */
12
+
13
+ export declare class SceneModelTextureSet {
14
+
15
+ /**
16
+ * Unique ID of this SceneModelTextureSet.
17
+ *
18
+ * The SceneModelTextureSet is registered against this ID in {@link SceneModel#textureSets}.
19
+ */
20
+ id: string | number;
21
+
22
+ /**
23
+ * The color texture.
24
+ * @type {SceneModelTexture|*}
25
+ */
26
+ colorTexture: SceneModelTexture | null;
27
+
28
+ /**
29
+ * The metallic-roughness texture.
30
+ * @type {SceneModelTexture|*}
31
+ */
32
+ metallicRoughnessTexture: SceneModelTexture | null;
33
+
34
+ /**
35
+ * The normal map texture.
36
+ * @type {SceneModelTexture|*}
37
+ */
38
+ normalsTexture: SceneModelTexture | null;
39
+
40
+ /**
41
+ * The emissive color texture.
42
+ * @type {SceneModelTexture|*}
43
+ */
44
+ emissiveTexture: SceneModelTexture | null;
45
+
46
+ /**
47
+ * The ambient occlusion texture.
48
+ * @type {SceneModelTexture|*}
49
+ */
50
+ occlusionTexture: SceneModelTexture | null;
51
+ }
@@ -1,197 +1,197 @@
1
- import {SceneModelMesh} from "./SceneModelMesh";
2
-
3
- /**
4
- * A dynamically-updatable transform within a {@link SceneModel}.
5
- *
6
- * * Can be composed into hierarchies
7
- * * Shared by multiple {@link SceneModelMesh}es
8
- * * Created with {@link SceneModel#createTransform}
9
- * * Stored by ID in {@link SceneModel#transforms}
10
- * * Referenced by {@link SceneModelMesh#transform}
11
- */
12
- export declare class SceneModelTransform {
13
-
14
- /**
15
- * Unique ID of this SceneModelTransform.
16
- *
17
- * The SceneModelTransform is registered against this ID in {@link SceneModel#transforms}.
18
- */
19
- id: string | number;
20
-
21
- /**
22
- * The optional parent SceneModelTransform.
23
- *
24
- * @type {SceneModelTransform}
25
- */
26
- get parentTransform(): SceneModelTransform | null;
27
-
28
- /**
29
- * The {@link SceneModelMesh}es transformed by this SceneModelTransform.
30
- *
31
- * @returns {[]}
32
- */
33
- get meshes(): SceneModelMesh[];
34
-
35
- /**
36
- * Sets the SceneModelTransform's local translation.
37
- *
38
- * Default value is ````[0,0,0]````.
39
- *
40
- * @type {number[]}
41
- */
42
- set position(value: number[]);
43
-
44
- /**
45
- * Gets the SceneModelTransform's translation.
46
- *
47
- * Default value is ````[0,0,0]````.
48
- *
49
- * @type {number[]}
50
- */
51
- get position(): number[];
52
-
53
- /**
54
- * Sets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
55
- *
56
- * Default value is ````[0,0,0]````.
57
- *
58
- * @type {number[]}
59
- */
60
- set rotation(value: number[]);
61
-
62
- /**
63
- * Gets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
64
- *
65
- * Default value is ````[0,0,0]````.
66
- *
67
- * @type {number[]}
68
- */
69
- get rotation(): number[];
70
-
71
- /**
72
- * Sets the SceneModelTransform's rotation quaternion.
73
- *
74
- * Default value is ````[0,0,0,1]````.
75
- *
76
- * @type {number[]}
77
- */
78
- set quaternion(value: number[]);
79
-
80
- /**
81
- * Gets the SceneModelTransform's rotation quaternion.
82
- *
83
- * Default value is ````[0,0,0,1]````.
84
- *
85
- * @type {number[]}
86
- */
87
- get quaternion(): number[];
88
-
89
- /**
90
- * Sets the SceneModelTransform's scale.
91
- *
92
- * Default value is ````[1,1,1]````.
93
- *
94
- * @type {number[]}
95
- */
96
- set scale(value: number[]);
97
-
98
- /**
99
- * Gets the SceneModelTransform's scale.
100
- *
101
- * Default value is ````[1,1,1]````.
102
- *
103
- * @type {number[]}
104
- */
105
- get scale(): number[];
106
-
107
- /**
108
- * Sets the SceneModelTransform's transform matrix.
109
- *
110
- * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
111
- *
112
- * @type {number[]}
113
- */
114
- set matrix(value: number[]);
115
-
116
- /**
117
- * Gets the SceneModelTransform's transform matrix.
118
- *
119
- * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
120
- *
121
- * @type {number[]}
122
- */
123
- get matrix(): number[];
124
-
125
- /**
126
- * Gets the SceneModelTransform's World matrix.
127
- *
128
- * @property worldMatrix
129
- * @type {number[]}
130
- */
131
- get worldMatrix(): number[];
132
-
133
- /**
134
- * Rotates the SceneModelTransform about the given axis by the given increment.
135
- *
136
- * @param {number[]} axis Local axis about which to rotate.
137
- * @param {number} angle Angle increment in degrees.
138
- */
139
- rotate(axis: number[], angle: number): void;
140
-
141
- /**
142
- * Rotates the SceneModelTransform about the given World-space axis by the given increment.
143
- *
144
- * @param {number[]} axis Local axis about which to rotate.
145
- * @param {number} angle Angle increment in degrees.
146
- */
147
- rotateOnWorldAxis(axis: number[], angle: number): void;
148
-
149
- /**
150
- * Rotates the SceneModelTransform about the local X-axis by the given increment.
151
- *
152
- * @param {number} angle Angle increment in degrees.
153
- */
154
- rotateX(angle: number): void;
155
-
156
- /**
157
- * Rotates the SceneModelTransform about the local Y-axis by the given increment.
158
- *
159
- * @param {number} angle Angle increment in degrees.
160
- */
161
- rotateY(angle: number): void;
162
-
163
- /**
164
- * Rotates the SceneModelTransform about the local Z-axis by the given increment.
165
- *
166
- * @param {number} angle Angle increment in degrees.
167
- */
168
- rotateZ(angle: number): void;
169
-
170
- /**
171
- * Translates the SceneModelTransform along the local axis by the given increment.
172
- *
173
- * @param {number[]} axis Normalized local space 3D vector along which to translate.
174
- */
175
- translate(axis: number[]): void;
176
-
177
- /**
178
- * Translates the SceneModelTransform along the local X-axis by the given increment.
179
- *
180
- * @param {number} distance Distance to translate along the X-axis.
181
- */
182
- translateX(distance: number): void;
183
-
184
- /**
185
- * Translates the SceneModelTransform along the local Y-axis by the given increment.
186
- *
187
- * @param {number} distance Distance to translate along the Y-axis.
188
- */
189
- translateY(distance: number): void;
190
-
191
- /**
192
- * Translates the SceneModelTransform along the local Z-axis by the given increment.
193
- *
194
- * @param {number} distance Distance to translate along the Z-axis.
195
- */
196
- translateZ(distance: number): void;
197
- }
1
+ import {SceneModelMesh} from "./SceneModelMesh";
2
+
3
+ /**
4
+ * A dynamically-updatable transform within a {@link SceneModel}.
5
+ *
6
+ * * Can be composed into hierarchies
7
+ * * Shared by multiple {@link SceneModelMesh}es
8
+ * * Created with {@link SceneModel#createTransform}
9
+ * * Stored by ID in {@link SceneModel#transforms}
10
+ * * Referenced by {@link SceneModelMesh#transform}
11
+ */
12
+ export declare class SceneModelTransform {
13
+
14
+ /**
15
+ * Unique ID of this SceneModelTransform.
16
+ *
17
+ * The SceneModelTransform is registered against this ID in {@link SceneModel#transforms}.
18
+ */
19
+ id: string | number;
20
+
21
+ /**
22
+ * The optional parent SceneModelTransform.
23
+ *
24
+ * @type {SceneModelTransform}
25
+ */
26
+ get parentTransform(): SceneModelTransform | null;
27
+
28
+ /**
29
+ * The {@link SceneModelMesh}es transformed by this SceneModelTransform.
30
+ *
31
+ * @returns {[]}
32
+ */
33
+ get meshes(): SceneModelMesh[];
34
+
35
+ /**
36
+ * Sets the SceneModelTransform's local translation.
37
+ *
38
+ * Default value is ````[0,0,0]````.
39
+ *
40
+ * @type {number[]}
41
+ */
42
+ set position(value: number[]);
43
+
44
+ /**
45
+ * Gets the SceneModelTransform's translation.
46
+ *
47
+ * Default value is ````[0,0,0]````.
48
+ *
49
+ * @type {number[]}
50
+ */
51
+ get position(): number[];
52
+
53
+ /**
54
+ * Sets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
55
+ *
56
+ * Default value is ````[0,0,0]````.
57
+ *
58
+ * @type {number[]}
59
+ */
60
+ set rotation(value: number[]);
61
+
62
+ /**
63
+ * Gets the SceneModelTransform's rotation, as Euler angles given in degrees, for each of the X, Y and Z axis.
64
+ *
65
+ * Default value is ````[0,0,0]````.
66
+ *
67
+ * @type {number[]}
68
+ */
69
+ get rotation(): number[];
70
+
71
+ /**
72
+ * Sets the SceneModelTransform's rotation quaternion.
73
+ *
74
+ * Default value is ````[0,0,0,1]````.
75
+ *
76
+ * @type {number[]}
77
+ */
78
+ set quaternion(value: number[]);
79
+
80
+ /**
81
+ * Gets the SceneModelTransform's rotation quaternion.
82
+ *
83
+ * Default value is ````[0,0,0,1]````.
84
+ *
85
+ * @type {number[]}
86
+ */
87
+ get quaternion(): number[];
88
+
89
+ /**
90
+ * Sets the SceneModelTransform's scale.
91
+ *
92
+ * Default value is ````[1,1,1]````.
93
+ *
94
+ * @type {number[]}
95
+ */
96
+ set scale(value: number[]);
97
+
98
+ /**
99
+ * Gets the SceneModelTransform's scale.
100
+ *
101
+ * Default value is ````[1,1,1]````.
102
+ *
103
+ * @type {number[]}
104
+ */
105
+ get scale(): number[];
106
+
107
+ /**
108
+ * Sets the SceneModelTransform's transform matrix.
109
+ *
110
+ * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
111
+ *
112
+ * @type {number[]}
113
+ */
114
+ set matrix(value: number[]);
115
+
116
+ /**
117
+ * Gets the SceneModelTransform's transform matrix.
118
+ *
119
+ * Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
120
+ *
121
+ * @type {number[]}
122
+ */
123
+ get matrix(): number[];
124
+
125
+ /**
126
+ * Gets the SceneModelTransform's World matrix.
127
+ *
128
+ * @property worldMatrix
129
+ * @type {number[]}
130
+ */
131
+ get worldMatrix(): number[];
132
+
133
+ /**
134
+ * Rotates the SceneModelTransform about the given axis by the given increment.
135
+ *
136
+ * @param {number[]} axis Local axis about which to rotate.
137
+ * @param {number} angle Angle increment in degrees.
138
+ */
139
+ rotate(axis: number[], angle: number): void;
140
+
141
+ /**
142
+ * Rotates the SceneModelTransform about the given World-space axis by the given increment.
143
+ *
144
+ * @param {number[]} axis Local axis about which to rotate.
145
+ * @param {number} angle Angle increment in degrees.
146
+ */
147
+ rotateOnWorldAxis(axis: number[], angle: number): void;
148
+
149
+ /**
150
+ * Rotates the SceneModelTransform about the local X-axis by the given increment.
151
+ *
152
+ * @param {number} angle Angle increment in degrees.
153
+ */
154
+ rotateX(angle: number): void;
155
+
156
+ /**
157
+ * Rotates the SceneModelTransform about the local Y-axis by the given increment.
158
+ *
159
+ * @param {number} angle Angle increment in degrees.
160
+ */
161
+ rotateY(angle: number): void;
162
+
163
+ /**
164
+ * Rotates the SceneModelTransform about the local Z-axis by the given increment.
165
+ *
166
+ * @param {number} angle Angle increment in degrees.
167
+ */
168
+ rotateZ(angle: number): void;
169
+
170
+ /**
171
+ * Translates the SceneModelTransform along the local axis by the given increment.
172
+ *
173
+ * @param {number[]} axis Normalized local space 3D vector along which to translate.
174
+ */
175
+ translate(axis: number[]): void;
176
+
177
+ /**
178
+ * Translates the SceneModelTransform along the local X-axis by the given increment.
179
+ *
180
+ * @param {number} distance Distance to translate along the X-axis.
181
+ */
182
+ translateX(distance: number): void;
183
+
184
+ /**
185
+ * Translates the SceneModelTransform along the local Y-axis by the given increment.
186
+ *
187
+ * @param {number} distance Distance to translate along the Y-axis.
188
+ */
189
+ translateY(distance: number): void;
190
+
191
+ /**
192
+ * Translates the SceneModelTransform along the local Z-axis by the given increment.
193
+ *
194
+ * @param {number} distance Distance to translate along the Z-axis.
195
+ */
196
+ translateZ(distance: number): void;
197
+ }
@@ -1,7 +1,7 @@
1
- import {SceneModel} from "../SceneModel";
2
-
3
- /**
4
- * A high-performance model representation for efficient rendering and low memory usage.
5
- */
6
- export declare class VBOSceneModel extends SceneModel {
7
- }
1
+ import {SceneModel} from "../SceneModel";
2
+
3
+ /**
4
+ * A high-performance model representation for efficient rendering and low memory usage.
5
+ */
6
+ export declare class VBOSceneModel extends SceneModel {
7
+ }