@inweb/viewer-three 27.2.4 → 27.3.1

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 (159) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +1 -1
  3. package/dist/extensions/components/AxesHelperComponent.js +2 -2
  4. package/dist/extensions/components/AxesHelperComponent.js.map +1 -1
  5. package/dist/extensions/components/AxesHelperComponent.min.js +2 -2
  6. package/dist/extensions/components/AxesHelperComponent.module.js +2 -2
  7. package/dist/extensions/components/AxesHelperComponent.module.js.map +1 -1
  8. package/dist/extensions/components/ExtentsHelperComponent.js +2 -2
  9. package/dist/extensions/components/ExtentsHelperComponent.js.map +1 -1
  10. package/dist/extensions/components/ExtentsHelperComponent.min.js +2 -2
  11. package/dist/extensions/components/ExtentsHelperComponent.module.js +2 -2
  12. package/dist/extensions/components/ExtentsHelperComponent.module.js.map +1 -1
  13. package/dist/extensions/components/GridHelperComponent.js +2 -2
  14. package/dist/extensions/components/GridHelperComponent.js.map +1 -1
  15. package/dist/extensions/components/GridHelperComponent.min.js +2 -2
  16. package/dist/extensions/components/GridHelperComponent.module.js +2 -2
  17. package/dist/extensions/components/GridHelperComponent.module.js.map +1 -1
  18. package/dist/extensions/components/InfoPanelComponent.js +2 -2
  19. package/dist/extensions/components/InfoPanelComponent.js.map +1 -1
  20. package/dist/extensions/components/InfoPanelComponent.min.js +2 -2
  21. package/dist/extensions/components/InfoPanelComponent.module.js +2 -2
  22. package/dist/extensions/components/InfoPanelComponent.module.js.map +1 -1
  23. package/dist/extensions/components/LightHelperComponent.js +2 -2
  24. package/dist/extensions/components/LightHelperComponent.js.map +1 -1
  25. package/dist/extensions/components/LightHelperComponent.min.js +2 -2
  26. package/dist/extensions/components/LightHelperComponent.module.js +2 -2
  27. package/dist/extensions/components/LightHelperComponent.module.js.map +1 -1
  28. package/dist/extensions/components/RoomEnvironmentComponent.js +2 -2
  29. package/dist/extensions/components/RoomEnvironmentComponent.js.map +1 -1
  30. package/dist/extensions/components/RoomEnvironmentComponent.min.js +2 -2
  31. package/dist/extensions/components/RoomEnvironmentComponent.module.js +2 -2
  32. package/dist/extensions/components/RoomEnvironmentComponent.module.js.map +1 -1
  33. package/dist/extensions/components/StatsPanelComponent.js +2 -2
  34. package/dist/extensions/components/StatsPanelComponent.js.map +1 -1
  35. package/dist/extensions/components/StatsPanelComponent.min.js +2 -2
  36. package/dist/extensions/components/StatsPanelComponent.module.js +2 -2
  37. package/dist/extensions/components/StatsPanelComponent.module.js.map +1 -1
  38. package/dist/extensions/loaders/GLTFCloudLoader.js +2 -2
  39. package/dist/extensions/loaders/GLTFCloudLoader.js.map +1 -1
  40. package/dist/extensions/loaders/GLTFCloudLoader.min.js +2 -2
  41. package/dist/extensions/loaders/GLTFCloudLoader.module.js +2 -2
  42. package/dist/extensions/loaders/GLTFCloudLoader.module.js.map +1 -1
  43. package/dist/extensions/loaders/GLTFFileLoader.js +2 -2
  44. package/dist/extensions/loaders/GLTFFileLoader.js.map +1 -1
  45. package/dist/extensions/loaders/GLTFFileLoader.min.js +2 -2
  46. package/dist/extensions/loaders/GLTFFileLoader.module.js +2 -2
  47. package/dist/extensions/loaders/GLTFFileLoader.module.js.map +1 -1
  48. package/dist/extensions/loaders/IFCXLoader.js +2 -2
  49. package/dist/extensions/loaders/IFCXLoader.js.map +1 -1
  50. package/dist/extensions/loaders/IFCXLoader.min.js +2 -2
  51. package/dist/extensions/loaders/IFCXLoader.module.js +2 -2
  52. package/dist/extensions/loaders/IFCXLoader.module.js.map +1 -1
  53. package/dist/extensions/loaders/PotreeLoader.js +2 -2
  54. package/dist/extensions/loaders/PotreeLoader.js.map +1 -1
  55. package/dist/extensions/loaders/PotreeLoader.min.js +2 -2
  56. package/dist/extensions/loaders/PotreeLoader.module.js +2 -2
  57. package/dist/extensions/loaders/PotreeLoader.module.js.map +1 -1
  58. package/dist/viewer-three.js +755 -362
  59. package/dist/viewer-three.js.map +1 -1
  60. package/dist/viewer-three.min.js +5 -5
  61. package/dist/viewer-three.module.js +756 -363
  62. package/dist/viewer-three.module.js.map +1 -1
  63. package/extensions/components/AxesHelperComponent.ts +2 -2
  64. package/extensions/components/ExtentsHelperComponent.ts +2 -2
  65. package/extensions/components/GridHelperComponent.ts +2 -2
  66. package/extensions/components/InfoPanelComponent.ts +2 -2
  67. package/extensions/components/LightHelperComponent.ts +2 -2
  68. package/extensions/components/RoomEnvironmentComponent.ts +2 -2
  69. package/extensions/components/StatsPanelComponent.ts +2 -2
  70. package/extensions/loaders/GLTFCloudLoader.ts +2 -2
  71. package/extensions/loaders/GLTFFileLoader.ts +2 -2
  72. package/extensions/loaders/IFCX/IFCXCloudLoader.ts +2 -2
  73. package/extensions/loaders/IFCX/IFCXFileLoader.ts +2 -2
  74. package/extensions/loaders/IFCX/IFCXLoader.ts +2 -2
  75. package/extensions/loaders/IFCX/index.ts +2 -2
  76. package/extensions/loaders/IFCX/render.js +2 -2
  77. package/extensions/loaders/Potree/PotreeFileLoader.ts +2 -2
  78. package/extensions/loaders/Potree/PotreeModelImpl.ts +2 -2
  79. package/extensions/loaders/Potree/index.ts +2 -2
  80. package/lib/Viewer/controls/WalkControls.d.ts +8 -0
  81. package/lib/Viewer/draggers/CuttingPlaneDragger.d.ts +23 -5
  82. package/lib/Viewer/helpers/PlaneHelper2.d.ts +8 -4
  83. package/lib/Viewer/measurement/Snapper.d.ts +1 -1
  84. package/package.json +5 -5
  85. package/src/Viewer/Viewer.ts +2 -2
  86. package/src/Viewer/commands/ApplyModelTransform.ts +2 -2
  87. package/src/Viewer/commands/ClearMarkup.ts +2 -2
  88. package/src/Viewer/commands/ClearSelected.ts +2 -2
  89. package/src/Viewer/commands/ClearSlices.ts +2 -2
  90. package/src/Viewer/commands/Explode.ts +2 -2
  91. package/src/Viewer/commands/GetDefaultViewPositions.ts +2 -2
  92. package/src/Viewer/commands/GetModels.ts +2 -2
  93. package/src/Viewer/commands/GetSelected.ts +2 -2
  94. package/src/Viewer/commands/GetSelected2.ts +2 -2
  95. package/src/Viewer/commands/GetSnapshot.ts +2 -2
  96. package/src/Viewer/commands/HideSelected.ts +2 -2
  97. package/src/Viewer/commands/IsolateSelected.ts +2 -2
  98. package/src/Viewer/commands/RegenerateAll.ts +2 -2
  99. package/src/Viewer/commands/ResetView.ts +2 -2
  100. package/src/Viewer/commands/SelectModel.ts +2 -2
  101. package/src/Viewer/commands/SetActiveDragger.ts +2 -2
  102. package/src/Viewer/commands/SetDefaultViewPosition.ts +2 -2
  103. package/src/Viewer/commands/SetMarkupColor.ts +2 -2
  104. package/src/Viewer/commands/SetSelected.ts +2 -2
  105. package/src/Viewer/commands/SetSelected2.ts +2 -2
  106. package/src/Viewer/commands/ShowAll.ts +2 -2
  107. package/src/Viewer/commands/ZoomTo.ts +2 -2
  108. package/src/Viewer/commands/ZoomToExtents.ts +2 -2
  109. package/src/Viewer/commands/ZoomToObjects.ts +2 -2
  110. package/src/Viewer/commands/ZoomToSelected.ts +2 -2
  111. package/src/Viewer/commands/index.ts +2 -2
  112. package/src/Viewer/components/BackgroundComponent.ts +2 -2
  113. package/src/Viewer/components/CameraComponent.ts +2 -2
  114. package/src/Viewer/components/CanvasRemoveComponent.ts +2 -2
  115. package/src/Viewer/components/CanvasResizeComponent.ts +2 -2
  116. package/src/Viewer/components/ExtentsComponent.ts +2 -2
  117. package/src/Viewer/components/HighlighterComponent.ts +2 -2
  118. package/src/Viewer/components/HighlighterUtils.ts +2 -2
  119. package/src/Viewer/components/InfoComponent.ts +2 -2
  120. package/src/Viewer/components/LightComponent.ts +2 -2
  121. package/src/Viewer/components/RenderLoopComponent.ts +2 -2
  122. package/src/Viewer/components/ResetComponent.ts +2 -2
  123. package/src/Viewer/components/SelectionComponent.ts +3 -3
  124. package/src/Viewer/components/ViewPositionComponent.ts +2 -2
  125. package/src/Viewer/components/WCSHelperComponent.ts +2 -2
  126. package/src/Viewer/components/index.ts +2 -2
  127. package/src/Viewer/controls/FlyControls.ts +2 -2
  128. package/src/Viewer/controls/JoyStickControls.ts +2 -2
  129. package/src/Viewer/controls/WalkControls.ts +52 -6
  130. package/src/Viewer/draggers/CuttingPlaneDragger.ts +193 -33
  131. package/src/Viewer/draggers/CuttingPlaneXAxis.ts +4 -5
  132. package/src/Viewer/draggers/CuttingPlaneYAxis.ts +4 -5
  133. package/src/Viewer/draggers/CuttingPlaneZAxis.ts +4 -5
  134. package/src/Viewer/draggers/FlyDragger.ts +2 -2
  135. package/src/Viewer/draggers/MeasureLineDragger.ts +2 -2
  136. package/src/Viewer/draggers/OrbitDragger.ts +2 -2
  137. package/src/Viewer/draggers/PanDragger.ts +2 -2
  138. package/src/Viewer/draggers/WalkDragger.ts +2 -2
  139. package/src/Viewer/draggers/ZoomDragger.ts +2 -2
  140. package/src/Viewer/draggers/index.ts +4 -2
  141. package/src/Viewer/helpers/PlaneHelper2.ts +32 -19
  142. package/src/Viewer/loaders/DynamicGltfLoader/DynamicGltfLoader.js +495 -182
  143. package/src/Viewer/loaders/DynamicGltfLoader/DynamicModelImpl.ts +46 -35
  144. package/src/Viewer/loaders/GLTFBinaryParser.ts +2 -2
  145. package/src/Viewer/loaders/GLTFCloudDynamicLoader.ts +2 -2
  146. package/src/Viewer/loaders/GLTFFileDynamicLoader.ts +2 -2
  147. package/src/Viewer/loaders/GLTFLoadingManager.ts +2 -2
  148. package/src/Viewer/loaders/JSONStreamParser.ts +2 -2
  149. package/src/Viewer/loaders/RangesLoader.ts +2 -2
  150. package/src/Viewer/loaders/index.ts +2 -2
  151. package/src/Viewer/measurement/Snapper.ts +15 -7
  152. package/src/Viewer/measurement/UnitConverter.ts +2 -2
  153. package/src/Viewer/measurement/UnitFormatter.ts +2 -2
  154. package/src/Viewer/models/IModelImpl.ts +2 -2
  155. package/src/Viewer/models/ModelImpl.ts +15 -12
  156. package/src/Viewer/postprocessing/SSAARenderPass.js +2 -2
  157. package/src/Viewer/scenes/Helpers.ts +2 -2
  158. package/src/index-umd.ts +2 -2
  159. package/src/index.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -19,8 +19,14 @@ export declare class WalkControls extends Controls<WalkControlsEventMap> {
19
19
  movementSpeed: number;
20
20
  multiplier: number;
21
21
  private groundFollowingSkippedFrames;
22
+ readonly GROUND_BOX_HALF_SIZE = 20;
23
+ readonly GROUND_BOX_REFRESH_THRESHOLD = 0.3;
22
24
  private raycaster;
23
25
  private groundObjects;
26
+ private _groundObjectBoxes;
27
+ private _activeGroundObjects;
28
+ private _groundBox;
29
+ private _groundBoxCenter;
24
30
  private moveKeys;
25
31
  private moveWheel;
26
32
  private moveClock;
@@ -41,6 +47,8 @@ export declare class WalkControls extends Controls<WalkControlsEventMap> {
41
47
  onWheel: (event: WheelEvent) => void;
42
48
  onKeyDown: (event: KeyboardEvent) => void;
43
49
  onKeyUp: (event: KeyboardEvent) => void;
50
+ private _rebuildGroundBox;
51
+ private _needsGroundBoxRebuild;
44
52
  private updateGroundFollowing;
45
53
  update(): void;
46
54
  rotateCamera(delta: Vector2): void;
@@ -1,22 +1,40 @@
1
- import { Object3D, Plane, Vector3 } from "three";
1
+ import { Plane, Quaternion, Vector2, Vector3 } from "three";
2
2
  import { TransformControls } from "three/examples/jsm/controls/TransformControls.js";
3
3
  import type { Viewer } from "../Viewer";
4
4
  import { PlaneHelper2 } from "../helpers/PlaneHelper2";
5
+ import { Snapper } from "../measurement/Snapper";
5
6
  import { OrbitDragger } from "./OrbitDragger";
6
7
  export declare class CuttingPlaneDragger extends OrbitDragger {
7
- protected plane: Plane;
8
- protected planeCenter: Object3D;
9
- protected planeHelper: PlaneHelper2;
8
+ protected clippingPlanes: Plane[];
9
+ protected helpers: PlaneHelper2[];
10
+ protected activeHelper: PlaneHelper2;
11
+ protected snapper: Snapper;
12
+ protected downPosition: Vector2;
13
+ protected position0: Vector3;
14
+ protected quaternion0: Quaternion;
10
15
  protected translate: TransformControls;
11
16
  protected rotate: TransformControls;
12
- constructor(viewer: Viewer, normal: Vector3);
17
+ constructor(viewer: Viewer);
13
18
  dispose(): void;
14
19
  transformChange: () => void;
15
20
  translateDrag: (event: any) => void;
16
21
  rotateDrag: (event: any) => void;
17
22
  updatePlaneSize: () => void;
18
23
  updateTransformCamera: () => void;
24
+ clearHelpers: () => void;
19
25
  onKeyDown: (event: KeyboardEvent) => void;
20
26
  onKeyUp: (event: KeyboardEvent) => void;
27
+ onPointerDown: (event: PointerEvent) => void;
28
+ onPointerUp: (event: PointerEvent) => void;
29
+ onPointerCancel: (event: PointerEvent) => void;
21
30
  onDoubleClick: (event: PointerEvent) => void;
31
+ private addHelper;
32
+ private setActiveHelper;
33
+ private saveState;
34
+ private reset;
35
+ addPlane(normal: Vector3): void;
36
+ addPlaneX(): void;
37
+ addPlaneY(): void;
38
+ addPlaneZ(): void;
39
+ deleteActivePlane(): void;
22
40
  }
@@ -1,8 +1,12 @@
1
- import { Line, Mesh } from "three";
2
- export declare class PlaneHelper2 extends Line {
1
+ import { Line, LineBasicMaterial, Mesh, MeshBasicMaterial, Object3D, Plane } from "three";
2
+ export declare class PlaneHelper2 extends Object3D {
3
+ plane: Plane;
3
4
  size: number;
4
- helper: Mesh;
5
- constructor(size?: number, color?: number);
5
+ outline: Line;
6
+ mesh: Mesh;
7
+ constructor(size?: number, color?: number, opacity?: number);
6
8
  dispose(): void;
7
9
  updateMatrixWorld(force: boolean): void;
10
+ getLineMaterial(): LineBasicMaterial;
11
+ getMeshMaterial(): MeshBasicMaterial;
8
12
  }
@@ -10,7 +10,7 @@ export declare class Snapper {
10
10
  constructor(camera: Camera, renderer: WebGLRenderer, canvas: HTMLCanvasElement);
11
11
  isMobile(): boolean;
12
12
  getMousePosition(event: MouseEvent, target: Vector2): Vector2;
13
- getPointerIntersects(mouse: Vector2, objects: Object3D[]): Array<Intersection<Object3D>>;
13
+ getPointerIntersects(mouse: Vector2, objects: Object3D[], recursive?: boolean, clip?: boolean): Array<Intersection<Object3D>>;
14
14
  getDetectRadius(point: Vector3): number;
15
15
  getSnapPoint(mouse: Vector2, objects: Object3D[]): Vector3;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/viewer-three",
3
- "version": "27.2.4",
3
+ "version": "27.3.1",
4
4
  "description": "JavaScript library for rendering CAD and BIM files in a browser using Three.js",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -35,10 +35,10 @@
35
35
  "docs": "typedoc"
36
36
  },
37
37
  "dependencies": {
38
- "@inweb/client": "~27.2.4",
39
- "@inweb/eventemitter2": "~27.2.4",
40
- "@inweb/markup": "~27.2.4",
41
- "@inweb/viewer-core": "~27.2.4"
38
+ "@inweb/client": "~27.3.1",
39
+ "@inweb/eventemitter2": "~27.3.1",
40
+ "@inweb/markup": "~27.3.1",
41
+ "@inweb/viewer-core": "~27.3.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@streamparser/json": "^0.0.22",
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you
@@ -1,5 +1,5 @@
1
1
  ///////////////////////////////////////////////////////////////////////////////
2
- // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
2
+ // Copyright (C) 2002-2026, Open Design Alliance (the "Alliance").
3
3
  // All rights reserved.
4
4
  //
5
5
  // This software and its documentation and related materials are owned by
@@ -14,7 +14,7 @@
14
14
  //
15
15
  // This application incorporates Open Design Alliance software pursuant to a
16
16
  // license agreement with Open Design Alliance.
17
- // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
17
+ // Open Design Alliance Copyright (C) 2002-2026 by Open Design Alliance.
18
18
  // All rights reserved.
19
19
  //
20
20
  // By use of this software, its documentation or related materials, you