@xtctwins/tctwins-core 1.1.18 → 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 +27337 -27310
  3. package/dist/tctwins-core.min.es5.js +3 -3
  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 -94
  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 -757
  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/utils.d.ts +165 -165
  148. package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
  149. package/types/viewer/scene/viewport/index.d.ts +1 -1
  150. package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
  151. package/types/viewer/scene/webgl/index.d.ts +1 -1
@@ -1,22 +1,22 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildBoxLinesGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* 3D point indicating the center position. */
7
- center?: number[];
8
- /* Half-size on the X-axis. */
9
- xSize?: number;
10
- /* Half-size on the Y-axis. */
11
- ySize?: number;
12
- /* Half-size on the Z-axis.*/
13
- zSize?: number;
14
- };
15
-
16
- /**
17
- * @desc Creates a box-shaped lines {@link Geometry}.
18
- *
19
- * @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
20
- * @returns {Object} Configuration for a {@link Geometry} subtype.
21
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildBoxLinesGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D point indicating the center position. */
7
+ center?: number[];
8
+ /* Half-size on the X-axis. */
9
+ xSize?: number;
10
+ /* Half-size on the Y-axis. */
11
+ ySize?: number;
12
+ /* Half-size on the Z-axis.*/
13
+ zSize?: number;
14
+ };
15
+
16
+ /**
17
+ * @desc Creates a box-shaped lines {@link Geometry}.
18
+ *
19
+ * @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
20
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
21
+ */
22
22
  export function buildBoxLinesGeometry(cfg: buildBoxLinesGeometryConfiguration): Geometry;
@@ -1,28 +1,28 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildCylinderGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* 3D point indicating the center position. */
7
- center?: number[];
8
- /* Radius of top. */
9
- radiusTop?: number;
10
- /* Radius of bottom. */
11
- radiusBottom?: number;
12
- /* Height. */
13
- height?: number;
14
- /* Number of horizontal segments. */
15
- radialSegments?: number;
16
- /* Number of vertical segments. */
17
- heightSegments?: number;
18
- /* Whether or not the cylinder has solid caps on the ends. */
19
- openEnded?: boolean;
20
- };
21
-
22
- /**
23
- * @desc Creates a cylinder-shaped {@link Geometry}.
24
- *
25
- * @param {buildCylinderGeometryConfiguration} [cfg] Configs
26
- * @returns {Object} Configuration for a {@link Geometry} subtype.
27
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildCylinderGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D point indicating the center position. */
7
+ center?: number[];
8
+ /* Radius of top. */
9
+ radiusTop?: number;
10
+ /* Radius of bottom. */
11
+ radiusBottom?: number;
12
+ /* Height. */
13
+ height?: number;
14
+ /* Number of horizontal segments. */
15
+ radialSegments?: number;
16
+ /* Number of vertical segments. */
17
+ heightSegments?: number;
18
+ /* Whether or not the cylinder has solid caps on the ends. */
19
+ openEnded?: boolean;
20
+ };
21
+
22
+ /**
23
+ * @desc Creates a cylinder-shaped {@link Geometry}.
24
+ *
25
+ * @param {buildCylinderGeometryConfiguration} [cfg] Configs
26
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
27
+ */
28
28
  export function buildCylinderGeometry(cfg: buildCylinderGeometryConfiguration): Geometry;
@@ -1,18 +1,18 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildGridGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* Dimension on the X and Z-axis. */
7
- size?: number;
8
- /* Number of divisions on X and Z axis.. */
9
- divisions?: number;
10
- };
11
-
12
- /**
13
- * @desc Creates a grid-shaped {@link Geometry}.
14
- *
15
- * @param {buildGridGeometryConfiguration} [cfg] Configs
16
- * @returns {Object} Configuration for a {@link Geometry} subtype.
17
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildGridGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* Dimension on the X and Z-axis. */
7
+ size?: number;
8
+ /* Number of divisions on X and Z axis.. */
9
+ divisions?: number;
10
+ };
11
+
12
+ /**
13
+ * @desc Creates a grid-shaped {@link Geometry}.
14
+ *
15
+ * @param {buildGridGeometryConfiguration} [cfg] Configs
16
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
17
+ */
18
18
  export function buildGridGeometry(cfg: buildGridGeometryConfiguration): Geometry;
@@ -1,22 +1,22 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildPlaneGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* Dimension on the X-axis. */
7
- xSize?: number;
8
- /* Dimension on the Z-axis. */
9
- zSize?: number;
10
- /* Number of segments on the X-axis. */
11
- xSegments?: number;
12
- /* Number of segments on the Z-axis. */
13
- zSegments?: number;
14
- };
15
-
16
- /**
17
- * @desc Creates a plane-shaped {@link Geometry}.
18
- *
19
- * @param {buildPlaneGeometryConfiguration} [cfg] Configs
20
- * @returns {Object} Configuration for a {@link Geometry} subtype.
21
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildPlaneGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* Dimension on the X-axis. */
7
+ xSize?: number;
8
+ /* Dimension on the Z-axis. */
9
+ zSize?: number;
10
+ /* Number of segments on the X-axis. */
11
+ xSegments?: number;
12
+ /* Number of segments on the Z-axis. */
13
+ zSegments?: number;
14
+ };
15
+
16
+ /**
17
+ * @desc Creates a plane-shaped {@link Geometry}.
18
+ *
19
+ * @param {buildPlaneGeometryConfiguration} [cfg] Configs
20
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
21
+ */
22
22
  export function buildPlaneGeometry(cfg: buildPlaneGeometryConfiguration): Geometry;
@@ -1,22 +1,22 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildSphereGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* 3D point indicating the center position. */
7
- center?: number[];
8
- /* Radius. */
9
- radius?: number;
10
- /* Number of latitudinal bands. */
11
- heightSegments?: number;
12
- /* Number of longitudinal bands. */
13
- widthSegments?: number;
14
- };
15
-
16
- /**
17
- * @desc Creates a sphere-shaped {@link Geometry}.
18
- *
19
- * @param {buildSphereGeometryConfiguration} [cfg] Configs
20
- * @returns {Object} Configuration for a {@link Geometry} subtype.
21
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildSphereGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D point indicating the center position. */
7
+ center?: number[];
8
+ /* Radius. */
9
+ radius?: number;
10
+ /* Number of latitudinal bands. */
11
+ heightSegments?: number;
12
+ /* Number of longitudinal bands. */
13
+ widthSegments?: number;
14
+ };
15
+
16
+ /**
17
+ * @desc Creates a sphere-shaped {@link Geometry}.
18
+ *
19
+ * @param {buildSphereGeometryConfiguration} [cfg] Configs
20
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
21
+ */
22
22
  export function buildSphereGeometry(cfg: buildSphereGeometryConfiguration): Geometry;
@@ -1,26 +1,26 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildTorusGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* 3D point indicating the center position. */
7
- center?: number[];
8
- /* The overall radius. */
9
- radius?: number;
10
- /* The tube radius. */
11
- tube?: number;
12
- /* The number of radial segments. */
13
- radialSegments?: number;
14
- /* The number of tubular segments. */
15
- tubeSegments?: number;
16
- /* The length of the arc in radians, where Math.PI*2 is a closed torus. */
17
- arc?: number;
18
- };
19
-
20
- /**
21
- * @desc Creates a torus-shaped {@link Geometry}.
22
- *
23
- * @param {buildTorusGeometryConfiguration} [cfg] Configs
24
- * @returns {Object} Configuration for a {@link Geometry} subtype.
25
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildTorusGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D point indicating the center position. */
7
+ center?: number[];
8
+ /* The overall radius. */
9
+ radius?: number;
10
+ /* The tube radius. */
11
+ tube?: number;
12
+ /* The number of radial segments. */
13
+ radialSegments?: number;
14
+ /* The number of tubular segments. */
15
+ tubeSegments?: number;
16
+ /* The length of the arc in radians, where Math.PI*2 is a closed torus. */
17
+ arc?: number;
18
+ };
19
+
20
+ /**
21
+ * @desc Creates a torus-shaped {@link Geometry}.
22
+ *
23
+ * @param {buildTorusGeometryConfiguration} [cfg] Configs
24
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
25
+ */
26
26
  export function buildTorusGeometry(cfg: buildTorusGeometryConfiguration): Geometry;
@@ -1,22 +1,22 @@
1
- import { Geometry } from "../Geometry";
2
-
3
- export declare type buildVectorTextGeometryConfiguration = {
4
- /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
- id?: string;
6
- /* 3D point indicating the center position. */
7
- center?: number[];
8
- /* 3D point indicating the top left corner. */
9
- origin?: number[];
10
- /* Size of each character. */
11
- size?: number;
12
- /* The text. */
13
- text?: string;
14
- };
15
-
16
- /**
17
- * @desc Creates wireframe vector text {@link Geometry}.
18
- *
19
- * @param {buildVectorTextGeometryConfiguration} [cfg] Configs
20
- * @returns {Object} Configuration for a {@link Geometry} subtype.
21
- */
1
+ import { Geometry } from "../Geometry";
2
+
3
+ export declare type buildVectorTextGeometryConfiguration = {
4
+ /* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
5
+ id?: string;
6
+ /* 3D point indicating the center position. */
7
+ center?: number[];
8
+ /* 3D point indicating the top left corner. */
9
+ origin?: number[];
10
+ /* Size of each character. */
11
+ size?: number;
12
+ /* The text. */
13
+ text?: string;
14
+ };
15
+
16
+ /**
17
+ * @desc Creates wireframe vector text {@link Geometry}.
18
+ *
19
+ * @param {buildVectorTextGeometryConfiguration} [cfg] Configs
20
+ * @returns {Object} Configuration for a {@link Geometry} subtype.
21
+ */
22
22
  export function buildVectorTextGeometry(cfg: buildVectorTextGeometryConfiguration): Geometry;
@@ -1,8 +1,8 @@
1
- export * from "./buildBoxGeometry";
2
- export * from "./buildBoxLinesGeometry";
3
- export * from "./buildCylinderGeometry";
4
- export * from "./buildGridGeometry";
5
- export * from "./buildPlaneGeometry";
6
- export * from "./buildSphereGeometry";
7
- export * from "./buildTorusGeometry";
8
- export * from "./buildVectorTextGeometry";
1
+ export * from "./buildBoxGeometry";
2
+ export * from "./buildBoxLinesGeometry";
3
+ export * from "./buildCylinderGeometry";
4
+ export * from "./buildGridGeometry";
5
+ export * from "./buildPlaneGeometry";
6
+ export * from "./buildSphereGeometry";
7
+ export * from "./buildTorusGeometry";
8
+ export * from "./buildVectorTextGeometry";
@@ -1,3 +1,3 @@
1
- export * from "./ReadableGeometry";
2
- export * from "./VBOGeometry";
1
+ export * from "./ReadableGeometry";
2
+ export * from "./VBOGeometry";
3
3
  export * from "./builders";
@@ -1,23 +1,23 @@
1
- export * from "./Component";
2
- export * from "./Entity";
3
- export * from "./LineSet";
4
- export * from "./Bitmap";
5
- export * from "./LineSet";
6
- export * from "./Bitmap";
7
- export * from "./camera";
8
- export * from "./CameraControl/CameraControl";
9
- export * from "./geometry";
10
- export * from "./lights";
11
- export * from "./marker";
12
- export * from "./materials";
13
- export * from "./math";
14
- export * from "./mementos";
15
- export * from "./mesh";
16
- export * from "./nodes";
17
- export * from "./models";
18
- export * from "./scene/Scene";
19
- export * from "./sectionPlane";
20
- export * from "./stats";
21
- export * from "./viewport";
22
- export * from "./webgl";
23
- export * from "./utils";
1
+ export * from "./Component";
2
+ export * from "./Entity";
3
+ export * from "./LineSet";
4
+ export * from "./Bitmap";
5
+ export * from "./LineSet";
6
+ export * from "./Bitmap";
7
+ export * from "./camera";
8
+ export * from "./CameraControl/CameraControl";
9
+ export * from "./geometry";
10
+ export * from "./lights";
11
+ export * from "./marker";
12
+ export * from "./materials";
13
+ export * from "./math";
14
+ export * from "./mementos";
15
+ export * from "./mesh";
16
+ export * from "./nodes";
17
+ export * from "./models";
18
+ export * from "./scene/Scene";
19
+ export * from "./sectionPlane";
20
+ export * from "./stats";
21
+ export * from "./viewport";
22
+ export * from "./webgl";
23
+ export * from "./utils";
@@ -1,69 +1,69 @@
1
- import { Component } from "../Component";
2
-
3
- /**
4
- * @desc Meditates mouse, touch and keyboard events for various interaction controls.
5
- *
6
- * Ordinarily, you would only use this component as a utility to help manage input events and state for your
7
- * own custom input handlers.
8
- *
9
- * * Located at {@link Scene#input}
10
- */
11
- export declare class Input extends Component {
12
- readonly KEY_CTRL: number;
13
-
14
- keyDown: boolean[];
15
-
16
- keyboardEnabled: boolean;
17
-
18
- /**
19
- * Sets whether input handlers are enabled.
20
- */
21
- setEnabled(enable: boolean): void;
22
-
23
- /**
24
- * Gets whether input handlers are enabled.
25
- */
26
- getEnabled(): boolean;
27
-
28
- /**
29
- * Sets whether or not keyboard input is enabled.
30
- */
31
- setKeyboardEnabled(enable: boolean): void;
32
-
33
- /**
34
- * Gets whether keyboard input is enabled.
35
- */
36
- getKeyboardEnabled(): boolean;
37
-
38
- /**
39
- * Fires on mouse events
40
- * @param event The loaded event
41
- * @param callback Called fired on the event
42
- * @param scope Scope for the callback
43
- */
44
- on(
45
- event: "mousedown" | "mouseup" | "mouseclicked" | "dblclick",
46
- callback: (canvasCoords: number[]) => void,
47
- scope?: any
48
- ): string;
49
-
50
- /**
51
- * Fires on touch events
52
- * @param event The loaded event
53
- * @param callback Called fired on the event
54
- * @param scope Scope for the callback
55
- */
56
- on(
57
- event: "touchstart" | "touchend" | "touchclicked",
58
- callback: (canvasCoords: number[]) => void,
59
- scope?: any
60
- ): string;
61
-
62
- /**
63
- * Fires on keyboard events
64
- * @param event The loaded event
65
- * @param callback Called fired on the event
66
- * @param scope Scope for the callback
67
- */
68
- on(event: "keydown" | "keyup", callback: (keyCode: number) => void, scope?: any): string;
69
- }
1
+ import { Component } from "../Component";
2
+
3
+ /**
4
+ * @desc Meditates mouse, touch and keyboard events for various interaction controls.
5
+ *
6
+ * Ordinarily, you would only use this component as a utility to help manage input events and state for your
7
+ * own custom input handlers.
8
+ *
9
+ * * Located at {@link Scene#input}
10
+ */
11
+ export declare class Input extends Component {
12
+ readonly KEY_CTRL: number;
13
+
14
+ keyDown: boolean[];
15
+
16
+ keyboardEnabled: boolean;
17
+
18
+ /**
19
+ * Sets whether input handlers are enabled.
20
+ */
21
+ setEnabled(enable: boolean): void;
22
+
23
+ /**
24
+ * Gets whether input handlers are enabled.
25
+ */
26
+ getEnabled(): boolean;
27
+
28
+ /**
29
+ * Sets whether or not keyboard input is enabled.
30
+ */
31
+ setKeyboardEnabled(enable: boolean): void;
32
+
33
+ /**
34
+ * Gets whether keyboard input is enabled.
35
+ */
36
+ getKeyboardEnabled(): boolean;
37
+
38
+ /**
39
+ * Fires on mouse events
40
+ * @param event The loaded event
41
+ * @param callback Called fired on the event
42
+ * @param scope Scope for the callback
43
+ */
44
+ on(
45
+ event: "mousedown" | "mouseup" | "mouseclicked" | "dblclick",
46
+ callback: (canvasCoords: number[]) => void,
47
+ scope?: any
48
+ ): string;
49
+
50
+ /**
51
+ * Fires on touch events
52
+ * @param event The loaded event
53
+ * @param callback Called fired on the event
54
+ * @param scope Scope for the callback
55
+ */
56
+ on(
57
+ event: "touchstart" | "touchend" | "touchclicked",
58
+ callback: (canvasCoords: number[]) => void,
59
+ scope?: any
60
+ ): string;
61
+
62
+ /**
63
+ * Fires on keyboard events
64
+ * @param event The loaded event
65
+ * @param callback Called fired on the event
66
+ * @param scope Scope for the callback
67
+ */
68
+ on(event: "keydown" | "keyup", callback: (keyCode: number) => void, scope?: any): string;
69
+ }
@@ -1,19 +1,19 @@
1
- import { Component } from '../Component';
2
- import { Light } from './Light';
3
-
4
- export declare type AmbientLightConfiguration = {
5
- /** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
6
- id?: string;
7
- /** The color of this AmbientLight. */
8
- color?: number[]
9
- /** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
10
- intensity?: number;
11
- };
12
-
13
- export declare class AmbientLight extends Light {
14
- /**
15
- * @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
16
- * @param {AmbientLightConfiguration} [cfg] AmbientLight configuration
17
- */
18
- constructor(owner: Component, cfg: AmbientLightConfiguration);
19
- }
1
+ import { Component } from '../Component';
2
+ import { Light } from './Light';
3
+
4
+ export declare type AmbientLightConfiguration = {
5
+ /** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
6
+ id?: string;
7
+ /** The color of this AmbientLight. */
8
+ color?: number[]
9
+ /** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
10
+ intensity?: number;
11
+ };
12
+
13
+ export declare class AmbientLight extends Light {
14
+ /**
15
+ * @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
16
+ * @param {AmbientLightConfiguration} [cfg] AmbientLight configuration
17
+ */
18
+ constructor(owner: Component, cfg: AmbientLightConfiguration);
19
+ }
@@ -1,25 +1,25 @@
1
- import { Component } from '../Component';
2
- import { Light } from './Light';
3
-
4
- export declare type DirLightConfiguration = {
5
- /** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
6
- id?: string;
7
- /** A unit vector indicating the direction that the light is shining, given in either World or View space, depending on the value of the ````space```` parameter. */
8
- dir?: number[]
9
- /** The color of this DirLight. */
10
- color?: number[]
11
- /** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
12
- intensity?: number;
13
- /** The coordinate system the DirLight is defined in - ````"view"```` or ````"space"````. */
14
- space?: 'view' | 'space';
15
- /** Flag which indicates if this DirLight casts a castsShadow. */
16
- castsShadow?: boolean;
17
- };
18
-
19
- export declare class DirLight extends Light {
20
- /**
21
- * @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
22
- * @param {DirLightConfiguration} [cfg] DirLight configuration
23
- */
24
- constructor(owner: Component, cfg: DirLightConfiguration);
25
- }
1
+ import { Component } from '../Component';
2
+ import { Light } from './Light';
3
+
4
+ export declare type DirLightConfiguration = {
5
+ /** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
6
+ id?: string;
7
+ /** A unit vector indicating the direction that the light is shining, given in either World or View space, depending on the value of the ````space```` parameter. */
8
+ dir?: number[]
9
+ /** The color of this DirLight. */
10
+ color?: number[]
11
+ /** The intensity of this AmbientLight, as a factor in range ````[0..1]````. */
12
+ intensity?: number;
13
+ /** The coordinate system the DirLight is defined in - ````"view"```` or ````"space"````. */
14
+ space?: 'view' | 'space';
15
+ /** Flag which indicates if this DirLight casts a castsShadow. */
16
+ castsShadow?: boolean;
17
+ };
18
+
19
+ export declare class DirLight extends Light {
20
+ /**
21
+ * @param {Component} owner Owner component. When destroyed, the owner will destroy this AmbientLight as well.
22
+ * @param {DirLightConfiguration} [cfg] DirLight configuration
23
+ */
24
+ constructor(owner: Component, cfg: DirLightConfiguration);
25
+ }
@@ -1,4 +1,4 @@
1
- import { Component } from "../Component";
2
-
3
- export declare class Light extends Component {
1
+ import { Component } from "../Component";
2
+
3
+ export declare class Light extends Component {
4
4
  }