@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,103 +1,103 @@
1
- import { DistanceMeasurementsControl } from "./DistanceMeasurementsControl.js";
2
- import { DistanceMeasurementsPlugin } from "./DistanceMeasurementsPlugin.js";
3
- import { PointerLens } from "../../extras/PointerLens/PointerLens.js";
4
- import { PointerCircle } from "../../extras/PointerCircle/PointerCircle.js";
5
-
6
- /**
7
- * Creates {@link DistanceMeasurement}s in a {@link DistanceMeasurementsPlugin} from mouse input.
8
- *
9
- * @example
10
- * // Usage
11
- * const distanceMeasurementsControl = new DistanceMeasurementsMouseControl(distanceMeasurementsPlugin, {
12
- * pointerLens: new PointerLens(viewer),
13
- * snapping: true
14
- * });
15
- */
16
- export class DistanceMeasurementsTouchControl extends DistanceMeasurementsControl {
17
- /**
18
- * Creates a DistanceMeasurementsTouchControl bound to the given DistanceMeasurementsPlugin.
19
- * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
20
- * @param {container} [cfg.container] container that hold markers labels
21
- * @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
22
- * @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
23
- * @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
24
- * @param {_offsetY} [cfg._offsetY] _offsetY of the mouse
25
- */
26
- constructor(
27
- distanceMeasurementsPlugin: DistanceMeasurementsPlugin,
28
- cfg?: {
29
- pointerLens?: PointerLens;
30
- snapToEdge?: boolean;
31
- snapToVertex?: boolean;
32
- offsetX?: number;
33
- offsetY?: number;
34
- container?: HTMLDivElement;
35
- }
36
- );
37
-
38
- /**
39
- * @return {number} mouse offset
40
- */
41
- get offsetX(): number;
42
-
43
- /**
44
- * @param {number} offsetX
45
- */
46
- set offsetX(offsetX: number);
47
-
48
- /**
49
- * @return {number} mouse offset
50
- */
51
- get offsetY(): number;
52
-
53
- /**
54
- * @param {number} offsetY
55
- */
56
- set offsetY(offsetY: number);
57
-
58
- /**
59
- * Gets whether this DistanceMeasurementsTouchControl is currently active, responding to input.
60
- *
61
- * @returns {boolean} True if active, false otherwise.
62
- */
63
- get active(): boolean;
64
- set active(active: boolean);
65
-
66
- /**
67
- * Sets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsTouchControl.
68
- *
69
- * @param {boolean} snapping True to enable snap-to-vertex and snap-to-edge, false to disable.
70
- */
71
- set snapping(snapping: boolean);
72
-
73
- /**
74
- * Gets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsTouchControl.
75
- *
76
- * @returns {boolean} True if snap-to-vertex and snap-to-edge are enabled, false otherwise.
77
- */
78
- get snapping(): boolean;
79
-
80
- set touchState(state: number);
81
-
82
- get touchState(): number;
83
-
84
- /**
85
- * Activates this DistanceMeasurementsTouchControl, making it responsive to input.
86
- */
87
- activate(): void;
88
-
89
- /**
90
- * Deactivates this DistanceMeasurementsTouchControl, making it unresponsive to input.
91
- */
92
- deactivate(): void;
93
-
94
- /**
95
- * Resets this DistanceMeasurementsTouchControl, destroying any DistanceMeasurement under construction.
96
- */
97
- reset(): void;
98
-
99
- /**
100
- * Destroys this DistanceMeasurementsTouchControl.
101
- */
102
- destroy(): void;
103
- }
1
+ import { DistanceMeasurementsControl } from "./DistanceMeasurementsControl.js";
2
+ import { DistanceMeasurementsPlugin } from "./DistanceMeasurementsPlugin.js";
3
+ import { PointerLens } from "../../extras/PointerLens/PointerLens.js";
4
+ import { PointerCircle } from "../../extras/PointerCircle/PointerCircle.js";
5
+
6
+ /**
7
+ * Creates {@link DistanceMeasurement}s in a {@link DistanceMeasurementsPlugin} from mouse input.
8
+ *
9
+ * @example
10
+ * // Usage
11
+ * const distanceMeasurementsControl = new DistanceMeasurementsMouseControl(distanceMeasurementsPlugin, {
12
+ * pointerLens: new PointerLens(viewer),
13
+ * snapping: true
14
+ * });
15
+ */
16
+ export class DistanceMeasurementsTouchControl extends DistanceMeasurementsControl {
17
+ /**
18
+ * Creates a DistanceMeasurementsTouchControl bound to the given DistanceMeasurementsPlugin.
19
+ * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
20
+ * @param {container} [cfg.container] container that hold markers labels
21
+ * @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
22
+ * @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
23
+ * @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
24
+ * @param {_offsetY} [cfg._offsetY] _offsetY of the mouse
25
+ */
26
+ constructor(
27
+ distanceMeasurementsPlugin: DistanceMeasurementsPlugin,
28
+ cfg?: {
29
+ pointerLens?: PointerLens;
30
+ snapToEdge?: boolean;
31
+ snapToVertex?: boolean;
32
+ offsetX?: number;
33
+ offsetY?: number;
34
+ container?: HTMLDivElement;
35
+ }
36
+ );
37
+
38
+ /**
39
+ * @return {number} mouse offset
40
+ */
41
+ get offsetX(): number;
42
+
43
+ /**
44
+ * @param {number} offsetX
45
+ */
46
+ set offsetX(offsetX: number);
47
+
48
+ /**
49
+ * @return {number} mouse offset
50
+ */
51
+ get offsetY(): number;
52
+
53
+ /**
54
+ * @param {number} offsetY
55
+ */
56
+ set offsetY(offsetY: number);
57
+
58
+ /**
59
+ * Gets whether this DistanceMeasurementsTouchControl is currently active, responding to input.
60
+ *
61
+ * @returns {boolean} True if active, false otherwise.
62
+ */
63
+ get active(): boolean;
64
+ set active(active: boolean);
65
+
66
+ /**
67
+ * Sets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsTouchControl.
68
+ *
69
+ * @param {boolean} snapping True to enable snap-to-vertex and snap-to-edge, false to disable.
70
+ */
71
+ set snapping(snapping: boolean);
72
+
73
+ /**
74
+ * Gets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsTouchControl.
75
+ *
76
+ * @returns {boolean} True if snap-to-vertex and snap-to-edge are enabled, false otherwise.
77
+ */
78
+ get snapping(): boolean;
79
+
80
+ set touchState(state: number);
81
+
82
+ get touchState(): number;
83
+
84
+ /**
85
+ * Activates this DistanceMeasurementsTouchControl, making it responsive to input.
86
+ */
87
+ activate(): void;
88
+
89
+ /**
90
+ * Deactivates this DistanceMeasurementsTouchControl, making it unresponsive to input.
91
+ */
92
+ deactivate(): void;
93
+
94
+ /**
95
+ * Resets this DistanceMeasurementsTouchControl, destroying any DistanceMeasurement under construction.
96
+ */
97
+ reset(): void;
98
+
99
+ /**
100
+ * Destroys this DistanceMeasurementsTouchControl.
101
+ */
102
+ destroy(): void;
103
+ }
@@ -1,5 +1,5 @@
1
- export * from "./DistanceMeasurementsPlugin";
2
- export * from "./DistanceMeasurementsControl";
3
- export * from "./DistanceMeasurementsMouseControl";
4
- export * from "./DistanceMeasurementsTouchControl";
5
- export * from "./DistanceMeasurementsSimulateMouseControl";
1
+ export * from "./DistanceMeasurementsPlugin";
2
+ export * from "./DistanceMeasurementsControl";
3
+ export * from "./DistanceMeasurementsMouseControl";
4
+ export * from "./DistanceMeasurementsTouchControl";
5
+ export * from "./DistanceMeasurementsSimulateMouseControl";
@@ -1,223 +1,223 @@
1
- import { Plugin } from "../../viewer/Plugin";
2
- import { Viewer } from "../../viewer/Viewer";
3
-
4
- export declare type FastNavPluginConfiguration = {
5
- /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
6
- id?: string;
7
- /** Whether to temporarily hide color textures whenever we interact with the Viewer. */
8
- hideColorTexture?: boolean;
9
- /** Whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer. */
10
- hidePBR?: boolean;
11
- /** Whether to temporarily hide scalable ambient occlusion (SAO) whenever we interact with the Viewer. */
12
- hideSAO?: boolean;
13
- /** Whether to temporarily hide edges whenever we interact with the Viewer.*/
14
- hideEdges?: boolean;
15
- /** Whether to temporarily hide transparent objects whenever we interact with the Viewer. */
16
- hideTransparentObjects?: boolean;
17
- /** Whether to temporarily down-scale the canvas resolution whenever we interact with the Viewer. */
18
- scaleCanvasResolution?: boolean;
19
- /** The factor by which we downscale the canvas resolution whenever we interact with the Viewer. */
20
- scaleCanvasResolutionFactor?: number;
21
- /** Whether to temporarily have a delay before restoring normal rendering after we stop interacting with the Viewer. */
22
- delayBeforeRestore?: boolean;
23
- /** Delay in seconds before restoring normal rendering after we stop interacting with the Viewer. */
24
- delayBeforeRestoreSeconds?: number;
25
- };
26
-
27
- /**
28
- * {@link Viewer} plugin that makes interaction smoother with large models, by temporarily switching
29
- * the Viewer to faster, lower-quality rendering modes whenever we interact.
30
- *
31
- */
32
- export declare class FastNavPlugin extends Plugin {
33
- /**
34
- * @constructor
35
- * @param {Viewer} viewer The Viewer.
36
- * @param {FastNavPluginConfiguration} cfg FastNavPlugin configuration.
37
- */
38
- constructor(viewer: Viewer, cfg?: FastNavPluginConfiguration);
39
-
40
- /**
41
- * Gets whether to temporarily hide color textures whenever we interact with the Viewer.
42
- *
43
- * Default is ````true````.
44
- *
45
- * @return {Boolean} ````true```` if hiding color textures.
46
- */
47
- get hideColorTexture(): boolean;
48
-
49
- /**
50
- * Sets whether to temporarily hide color textures whenever we interact with the Viewer.
51
- *
52
- * Default is ````true````.
53
- *
54
- * @param {Boolean} hideColorTexture ````true```` to hide color textures.
55
- */
56
- set hideColorTexture(hideColorTexture: boolean);
57
-
58
- /**
59
- * Sets whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer.
60
- *
61
- * Default is ````true````.
62
- *
63
- * @param {Boolean} value ````true```` to hide PBR.
64
- */
65
- set hidePBR(value: boolean);
66
-
67
- /**
68
- * Gets whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer.
69
- *
70
- * Default is ````true````.
71
- *
72
- * @return {Boolean} ````true```` if hiding PBR.
73
- */
74
- get hidePBR(): boolean;
75
-
76
- /**
77
- * Sets whether to temporarily hide scalable ambient shadows (SAO) whenever we interact with the Viewer.
78
- *
79
- * Default is ````true````.
80
- *
81
- * @param {Boolean} value ````true```` to hide SAO.
82
- */
83
- set hideSAO(value: boolean);
84
-
85
- /**
86
- * Gets whether to temporarily hide scalable ambient shadows (SAO) whenever we interact with the Viewer.
87
- *
88
- * Default is ````true````.
89
- *
90
- * @return {Boolean} ````true```` if hiding SAO.
91
- */
92
- get hideSAO(): boolean;
93
-
94
- /**
95
- * Sets whether to temporarily hide edges whenever we interact with the Viewer.
96
- *
97
- * Default is ````true````.
98
- *
99
- * @param {Boolean} value ````true```` to hide edges.
100
- */
101
- set hideEdges(value: boolean);
102
-
103
- /**
104
- * Gets whether to temporarily hide edges whenever we interact with the Viewer.
105
- *
106
- * Default is ````true````.
107
- *
108
- * @return {Boolean} ````true```` if hiding edges.
109
- */
110
- get hideEdges(): boolean;
111
-
112
- /**
113
- * Sets whether to temporarily hide transparent objects whenever we interact with the Viewer.
114
- *
115
- * Does not hide X-rayed, selected, highlighted objects.
116
- *
117
- * Default is ````false````.
118
- *
119
- * @param {Boolean} value ````true```` to hide transparent objects.
120
- */
121
- set hideTransparentObjects(value: boolean);
122
-
123
- /**
124
- * Gets whether to temporarily hide transparent objects whenever we interact with the Viewer.
125
- *
126
- * Does not hide X-rayed, selected, highlighted objects.
127
- *
128
- * Default is ````false````.
129
- *
130
- * @return {Boolean} ````true```` if hiding transparent objects.
131
- */
132
- get hideTransparentObjects(): boolean;
133
-
134
- /**
135
- * Sets whether to temporarily scale the canvas resolution whenever we interact with the Viewer.
136
- *
137
- * Default is ````false````.
138
- *
139
- * The scaling factor is configured via {@link FastNavPlugin.scaleCanvasResolutionFactor}.
140
- *
141
- * @param {Boolean} scaleCanvasResolution ````true```` to scale the canvas resolution.
142
- */
143
- set scaleCanvasResolution(value: boolean);
144
-
145
- /**
146
- * Gets whether to temporarily scale the canvas resolution whenever we interact with the Viewer.
147
- *
148
- * Default is ````false````.
149
- *
150
- * The scaling factor is configured via {@link FastNavPlugin.scaleCanvasResolutionFactor}.
151
- *
152
- * @return {Boolean} ````true```` if scaling the canvas resolution.
153
- */
154
- get scaleCanvasResolution(): boolean;
155
-
156
- /**
157
- * Sets the factor by which we temporarily scale the canvas resolution when we interact with the viewer.
158
- *
159
- * Accepted range is ````[0.0 .. 1.0]````.
160
- *
161
- * Default is ````0.6````.
162
- *
163
- * Enable canvas resolution scaling by setting {@link FastNavPlugin.scaleCanvasResolution} ````true````.
164
- *
165
- * @param {Number} scaleCanvasResolutionFactor Factor by which we scale the canvas resolution.
166
- */
167
- set scaleCanvasResolutionFactor(value: number);
168
-
169
- /**
170
- * Gets the factor by which we temporarily scale the canvas resolution when we interact with the viewer.
171
- *
172
- * Default is ````0.6````.
173
- *
174
- * Enable canvas resolution scaling by setting {@link FastNavPlugin.scaleCanvasResolution} ````true````.
175
- *
176
- * @return {Number} Factor by which we scale the canvas resolution.
177
- */
178
- get scaleCanvasResolutionFactor(): number;
179
-
180
- /**
181
- * Sets whether to have a delay before restoring normal rendering after we stop interacting with the Viewer.
182
- *
183
- * The delay duration is configured via {@link FastNavPlugin.delayBeforeRestoreSeconds}.
184
- *
185
- * Default is ````true````.
186
- *
187
- * @param {Boolean} delayBeforeRestore Whether to have a delay.
188
- */
189
- set delayBeforeRestore(value: boolean);
190
-
191
- /**
192
- * Gets whether to have a delay before restoring normal rendering after we stop interacting with the Viewer.
193
- *
194
- * The delay duration is configured via {@link FastNavPlugin.delayBeforeRestoreSeconds}.
195
- *
196
- * Default is ````true````.
197
- *
198
- * @return {Boolean} Whether to have a delay.
199
- */
200
- get delayBeforeRestore(): boolean;
201
-
202
- /**
203
- * Sets the delay before restoring normal rendering after we stop interacting with the Viewer.
204
- *
205
- * The delay is enabled when {@link FastNavPlugin.delayBeforeRestore} is ````true````.
206
- *
207
- * Default is ````0.5```` seconds.
208
- *
209
- * @param {Number} delayBeforeRestoreSeconds Delay in seconds.
210
- */
211
- set delayBeforeRestoreSeconds(value: number);
212
-
213
- /**
214
- * Gets the delay before restoring normal rendering after we stop interacting with the Viewer.
215
- *
216
- * The delay is enabled when {@link FastNavPlugin.delayBeforeRestore} is ````true````.
217
- *
218
- * Default is ````0.5```` seconds.
219
- *
220
- * @return {Number} Delay in seconds.
221
- */
222
- get delayBeforeRestoreSeconds(): number;
223
- }
1
+ import { Plugin } from "../../viewer/Plugin";
2
+ import { Viewer } from "../../viewer/Viewer";
3
+
4
+ export declare type FastNavPluginConfiguration = {
5
+ /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
6
+ id?: string;
7
+ /** Whether to temporarily hide color textures whenever we interact with the Viewer. */
8
+ hideColorTexture?: boolean;
9
+ /** Whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer. */
10
+ hidePBR?: boolean;
11
+ /** Whether to temporarily hide scalable ambient occlusion (SAO) whenever we interact with the Viewer. */
12
+ hideSAO?: boolean;
13
+ /** Whether to temporarily hide edges whenever we interact with the Viewer.*/
14
+ hideEdges?: boolean;
15
+ /** Whether to temporarily hide transparent objects whenever we interact with the Viewer. */
16
+ hideTransparentObjects?: boolean;
17
+ /** Whether to temporarily down-scale the canvas resolution whenever we interact with the Viewer. */
18
+ scaleCanvasResolution?: boolean;
19
+ /** The factor by which we downscale the canvas resolution whenever we interact with the Viewer. */
20
+ scaleCanvasResolutionFactor?: number;
21
+ /** Whether to temporarily have a delay before restoring normal rendering after we stop interacting with the Viewer. */
22
+ delayBeforeRestore?: boolean;
23
+ /** Delay in seconds before restoring normal rendering after we stop interacting with the Viewer. */
24
+ delayBeforeRestoreSeconds?: number;
25
+ };
26
+
27
+ /**
28
+ * {@link Viewer} plugin that makes interaction smoother with large models, by temporarily switching
29
+ * the Viewer to faster, lower-quality rendering modes whenever we interact.
30
+ *
31
+ */
32
+ export declare class FastNavPlugin extends Plugin {
33
+ /**
34
+ * @constructor
35
+ * @param {Viewer} viewer The Viewer.
36
+ * @param {FastNavPluginConfiguration} cfg FastNavPlugin configuration.
37
+ */
38
+ constructor(viewer: Viewer, cfg?: FastNavPluginConfiguration);
39
+
40
+ /**
41
+ * Gets whether to temporarily hide color textures whenever we interact with the Viewer.
42
+ *
43
+ * Default is ````true````.
44
+ *
45
+ * @return {Boolean} ````true```` if hiding color textures.
46
+ */
47
+ get hideColorTexture(): boolean;
48
+
49
+ /**
50
+ * Sets whether to temporarily hide color textures whenever we interact with the Viewer.
51
+ *
52
+ * Default is ````true````.
53
+ *
54
+ * @param {Boolean} hideColorTexture ````true```` to hide color textures.
55
+ */
56
+ set hideColorTexture(hideColorTexture: boolean);
57
+
58
+ /**
59
+ * Sets whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer.
60
+ *
61
+ * Default is ````true````.
62
+ *
63
+ * @param {Boolean} value ````true```` to hide PBR.
64
+ */
65
+ set hidePBR(value: boolean);
66
+
67
+ /**
68
+ * Gets whether to temporarily hide physically-based rendering (PBR) whenever we interact with the Viewer.
69
+ *
70
+ * Default is ````true````.
71
+ *
72
+ * @return {Boolean} ````true```` if hiding PBR.
73
+ */
74
+ get hidePBR(): boolean;
75
+
76
+ /**
77
+ * Sets whether to temporarily hide scalable ambient shadows (SAO) whenever we interact with the Viewer.
78
+ *
79
+ * Default is ````true````.
80
+ *
81
+ * @param {Boolean} value ````true```` to hide SAO.
82
+ */
83
+ set hideSAO(value: boolean);
84
+
85
+ /**
86
+ * Gets whether to temporarily hide scalable ambient shadows (SAO) whenever we interact with the Viewer.
87
+ *
88
+ * Default is ````true````.
89
+ *
90
+ * @return {Boolean} ````true```` if hiding SAO.
91
+ */
92
+ get hideSAO(): boolean;
93
+
94
+ /**
95
+ * Sets whether to temporarily hide edges whenever we interact with the Viewer.
96
+ *
97
+ * Default is ````true````.
98
+ *
99
+ * @param {Boolean} value ````true```` to hide edges.
100
+ */
101
+ set hideEdges(value: boolean);
102
+
103
+ /**
104
+ * Gets whether to temporarily hide edges whenever we interact with the Viewer.
105
+ *
106
+ * Default is ````true````.
107
+ *
108
+ * @return {Boolean} ````true```` if hiding edges.
109
+ */
110
+ get hideEdges(): boolean;
111
+
112
+ /**
113
+ * Sets whether to temporarily hide transparent objects whenever we interact with the Viewer.
114
+ *
115
+ * Does not hide X-rayed, selected, highlighted objects.
116
+ *
117
+ * Default is ````false````.
118
+ *
119
+ * @param {Boolean} value ````true```` to hide transparent objects.
120
+ */
121
+ set hideTransparentObjects(value: boolean);
122
+
123
+ /**
124
+ * Gets whether to temporarily hide transparent objects whenever we interact with the Viewer.
125
+ *
126
+ * Does not hide X-rayed, selected, highlighted objects.
127
+ *
128
+ * Default is ````false````.
129
+ *
130
+ * @return {Boolean} ````true```` if hiding transparent objects.
131
+ */
132
+ get hideTransparentObjects(): boolean;
133
+
134
+ /**
135
+ * Sets whether to temporarily scale the canvas resolution whenever we interact with the Viewer.
136
+ *
137
+ * Default is ````false````.
138
+ *
139
+ * The scaling factor is configured via {@link FastNavPlugin.scaleCanvasResolutionFactor}.
140
+ *
141
+ * @param {Boolean} scaleCanvasResolution ````true```` to scale the canvas resolution.
142
+ */
143
+ set scaleCanvasResolution(value: boolean);
144
+
145
+ /**
146
+ * Gets whether to temporarily scale the canvas resolution whenever we interact with the Viewer.
147
+ *
148
+ * Default is ````false````.
149
+ *
150
+ * The scaling factor is configured via {@link FastNavPlugin.scaleCanvasResolutionFactor}.
151
+ *
152
+ * @return {Boolean} ````true```` if scaling the canvas resolution.
153
+ */
154
+ get scaleCanvasResolution(): boolean;
155
+
156
+ /**
157
+ * Sets the factor by which we temporarily scale the canvas resolution when we interact with the viewer.
158
+ *
159
+ * Accepted range is ````[0.0 .. 1.0]````.
160
+ *
161
+ * Default is ````0.6````.
162
+ *
163
+ * Enable canvas resolution scaling by setting {@link FastNavPlugin.scaleCanvasResolution} ````true````.
164
+ *
165
+ * @param {Number} scaleCanvasResolutionFactor Factor by which we scale the canvas resolution.
166
+ */
167
+ set scaleCanvasResolutionFactor(value: number);
168
+
169
+ /**
170
+ * Gets the factor by which we temporarily scale the canvas resolution when we interact with the viewer.
171
+ *
172
+ * Default is ````0.6````.
173
+ *
174
+ * Enable canvas resolution scaling by setting {@link FastNavPlugin.scaleCanvasResolution} ````true````.
175
+ *
176
+ * @return {Number} Factor by which we scale the canvas resolution.
177
+ */
178
+ get scaleCanvasResolutionFactor(): number;
179
+
180
+ /**
181
+ * Sets whether to have a delay before restoring normal rendering after we stop interacting with the Viewer.
182
+ *
183
+ * The delay duration is configured via {@link FastNavPlugin.delayBeforeRestoreSeconds}.
184
+ *
185
+ * Default is ````true````.
186
+ *
187
+ * @param {Boolean} delayBeforeRestore Whether to have a delay.
188
+ */
189
+ set delayBeforeRestore(value: boolean);
190
+
191
+ /**
192
+ * Gets whether to have a delay before restoring normal rendering after we stop interacting with the Viewer.
193
+ *
194
+ * The delay duration is configured via {@link FastNavPlugin.delayBeforeRestoreSeconds}.
195
+ *
196
+ * Default is ````true````.
197
+ *
198
+ * @return {Boolean} Whether to have a delay.
199
+ */
200
+ get delayBeforeRestore(): boolean;
201
+
202
+ /**
203
+ * Sets the delay before restoring normal rendering after we stop interacting with the Viewer.
204
+ *
205
+ * The delay is enabled when {@link FastNavPlugin.delayBeforeRestore} is ````true````.
206
+ *
207
+ * Default is ````0.5```` seconds.
208
+ *
209
+ * @param {Number} delayBeforeRestoreSeconds Delay in seconds.
210
+ */
211
+ set delayBeforeRestoreSeconds(value: number);
212
+
213
+ /**
214
+ * Gets the delay before restoring normal rendering after we stop interacting with the Viewer.
215
+ *
216
+ * The delay is enabled when {@link FastNavPlugin.delayBeforeRestore} is ````true````.
217
+ *
218
+ * Default is ````0.5```` seconds.
219
+ *
220
+ * @return {Number} Delay in seconds.
221
+ */
222
+ get delayBeforeRestoreSeconds(): number;
223
+ }
@@ -1 +1 @@
1
- export * from "./FastNavPlugin";
1
+ export * from "./FastNavPlugin";