@realsee/dnalogel 3.51.0 → 3.52.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 (278) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
  3. package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  4. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
  5. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  6. package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
  7. package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  8. package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  9. package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  10. package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  11. package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  12. package/dist/Sculpt/Meshes/Box.d.ts +6 -24
  13. package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
  14. package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
  15. package/dist/Sculpt/Meshes/Line.d.ts +9 -22
  16. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
  17. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  18. package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
  19. package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
  20. package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
  21. package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
  22. package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
  23. package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  24. package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
  25. package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
  26. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
  27. package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
  28. package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
  29. package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  30. package/dist/Sculpt/index.d.ts +10 -19
  31. package/dist/Sculpt/typings/style.d.ts +6 -0
  32. package/dist/Sculpt/utils/export.d.ts +24 -18
  33. package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  34. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  35. package/dist/index.cjs.js +88 -3009
  36. package/dist/index.d.ts +79 -1
  37. package/dist/index.js +35141 -54254
  38. package/dist/index.umd.js +81 -3002
  39. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  40. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  41. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  42. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  43. package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  44. package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  45. package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  46. package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  47. package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  48. package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  49. package/dist/shared-utils/five/FiveLine.d.ts +18 -14
  50. package/dist/shared-utils/index.d.ts +0 -1
  51. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  52. package/dist/shared-utils/tag.d.ts +5 -7
  53. package/dist/shared-utils/three/boundingBox.d.ts +14 -20
  54. package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
  55. package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  56. package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
  57. package/dist/shared-utils/three/getNormal.d.ts +5 -2
  58. package/libs/AreaMakerPlugin/Controller.js +47 -100
  59. package/libs/AreaMakerPlugin/index.js +12 -65
  60. package/libs/AreaMakerPlugin/utils/Item.js +102 -157
  61. package/libs/CSS3DRenderPlugin/Controller.js +45 -93
  62. package/libs/CSS3DRenderPlugin/index.js +15 -63
  63. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
  64. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
  65. package/libs/CruisePlugin/BaseController.js +90 -143
  66. package/libs/CruisePlugin/Move.js +39 -83
  67. package/libs/CruisePlugin/Work.js +52 -96
  68. package/libs/CruisePlugin/index.js +23 -67
  69. package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
  70. package/libs/CurrentPanoImagePlugin/index.js +11 -64
  71. package/libs/GuideLinePlugin/Controller.js +13 -57
  72. package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
  73. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
  74. package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
  75. package/libs/GuideLinePlugin/index.js +23 -67
  76. package/libs/ModelMakerPlugin/Controller.js +125 -165
  77. package/libs/ModelMakerPlugin/index.js +23 -63
  78. package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
  79. package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
  80. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
  81. package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
  82. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
  83. package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
  84. package/libs/ModelTVVideoPlugin/index.js +8 -56
  85. package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
  86. package/libs/Object3DHelperPlugin/Controller.js +105 -92
  87. package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
  88. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
  89. package/libs/Object3DHelperPlugin/index.js +15 -30
  90. package/libs/PanoCompassPlugin/Controller.js +46 -93
  91. package/libs/PanoCompassPlugin/index.js +17 -64
  92. package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
  93. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
  94. package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
  95. package/libs/PanoDoorLabelPlugin/index.js +11 -64
  96. package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
  97. package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
  98. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
  99. package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
  100. package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
  101. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
  102. package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
  103. package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
  104. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
  105. package/libs/PanoMeasurePlugin/Model/area.js +25 -74
  106. package/libs/PanoMeasurePlugin/Model/index.js +3 -2
  107. package/libs/PanoMeasurePlugin/Model/line.js +1 -0
  108. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
  109. package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
  110. package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
  111. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
  112. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
  113. package/libs/PanoMeasurePlugin/index.js +18 -64
  114. package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
  115. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
  116. package/libs/PanoMeasurePlugin/utils/line.js +3 -2
  117. package/libs/PanoRulerProPlugin/Controller.js +34 -89
  118. package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
  119. package/libs/PanoRulerProPlugin/index.js +10 -65
  120. package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
  121. package/libs/PanoSpatialTagPlugin/index.js +6 -54
  122. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
  123. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
  124. package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
  125. package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
  126. package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
  127. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
  128. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
  129. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
  130. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
  131. package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
  132. package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
  133. package/libs/PanoTagPlugin/controller/index.js +37 -81
  134. package/libs/PanoTagPlugin/index.js +28 -72
  135. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
  136. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
  137. package/libs/PanoVideoPlugin/Controller.js +43 -96
  138. package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
  139. package/libs/PanoVideoPlugin/index.js +14 -67
  140. package/libs/PipelinePlugin/Controller.js +123 -176
  141. package/libs/PipelinePlugin/index.js +11 -64
  142. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
  143. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
  144. package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
  145. package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
  146. package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
  147. package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
  148. package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
  149. package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
  150. package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
  151. package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
  152. package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
  153. package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
  154. package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
  155. package/libs/Sculpt/Meshes/Box.d.ts +6 -24
  156. package/libs/Sculpt/Meshes/Box.js +22 -93
  157. package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
  158. package/libs/Sculpt/Meshes/Circle.js +18 -27
  159. package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
  160. package/libs/Sculpt/Meshes/Cylinder.js +17 -24
  161. package/libs/Sculpt/Meshes/Line.d.ts +9 -22
  162. package/libs/Sculpt/Meshes/Line.js +85 -104
  163. package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
  164. package/libs/Sculpt/Meshes/Point.js +29 -34
  165. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
  166. package/libs/Sculpt/Meshes/Polygon.js +40 -53
  167. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  168. package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
  169. package/libs/Sculpt/Meshes/Prism.js +108 -84
  170. package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
  171. package/libs/Sculpt/Meshes/Rectangle.js +12 -22
  172. package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
  173. package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
  174. package/libs/Sculpt/Objects/Base/index.js +20 -25
  175. package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
  176. package/libs/Sculpt/Objects/Box/index.js +72 -60
  177. package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
  178. package/libs/Sculpt/Objects/Circle/index.js +41 -37
  179. package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
  180. package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
  181. package/libs/Sculpt/Objects/Line/Editor.js +8 -10
  182. package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
  183. package/libs/Sculpt/Objects/Line/index.js +45 -41
  184. package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
  185. package/libs/Sculpt/Objects/Point/index.js +33 -29
  186. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
  187. package/libs/Sculpt/Objects/Polygon/index.js +67 -63
  188. package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
  189. package/libs/Sculpt/Objects/Polyline/index.js +46 -42
  190. package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
  191. package/libs/Sculpt/Objects/Prism/index.js +58 -53
  192. package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
  193. package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
  194. package/libs/Sculpt/index.d.ts +10 -19
  195. package/libs/Sculpt/index.js +105 -107
  196. package/libs/Sculpt/typings/style.d.ts +6 -0
  197. package/libs/Sculpt/utils/export.d.ts +24 -18
  198. package/libs/Sculpt/utils/export.js +52 -19
  199. package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
  200. package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
  201. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
  202. package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
  203. package/libs/base/BasePlugin.js +10 -15
  204. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
  205. package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
  206. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
  207. package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
  208. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
  209. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
  210. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
  211. package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
  212. package/libs/floorplan/index.js +0 -5
  213. package/libs/index.d.ts +79 -1
  214. package/libs/index.js +229 -215
  215. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
  216. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
  217. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
  218. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
  219. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
  220. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
  221. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
  222. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
  223. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
  224. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
  225. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
  226. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
  227. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
  228. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
  229. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
  230. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
  231. package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
  232. package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
  233. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
  234. package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
  235. package/libs/shared-utils/five/FiveDomEvents.js +88 -88
  236. package/libs/shared-utils/five/FiveLine.d.ts +18 -14
  237. package/libs/shared-utils/five/FiveLine.js +31 -13
  238. package/libs/shared-utils/five/index.js +2 -7
  239. package/libs/shared-utils/five/lookObject.js +27 -32
  240. package/libs/shared-utils/index.d.ts +0 -1
  241. package/libs/shared-utils/index.js +31 -33
  242. package/libs/shared-utils/logger.js +1 -1
  243. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  244. package/libs/shared-utils/tag.d.ts +5 -7
  245. package/libs/shared-utils/tag.js +1 -1
  246. package/libs/shared-utils/three/boundingBox.d.ts +14 -20
  247. package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
  248. package/libs/shared-utils/three/core/LineGeometry.js +26 -0
  249. package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
  250. package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
  251. package/libs/shared-utils/three/earcut3D.js +5 -5
  252. package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
  253. package/libs/shared-utils/three/geometryUtil.js +3 -1
  254. package/libs/shared-utils/three/getNormal.d.ts +5 -2
  255. package/libs/shared-utils/three/getNormal.js +6 -5
  256. package/libs/shared-utils/three/index.js +0 -5
  257. package/package.json +1 -1
  258. package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
  259. package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  260. package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  261. package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  262. package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  263. package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
  264. package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
  265. package/libs/Sculpt/Objects/Box/Editor.js +0 -44
  266. package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
  267. package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
  268. package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
  269. package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
  270. package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
  271. package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
  272. package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
  273. package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
  274. package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
  275. package/libs/Sculpt/utils/getBetterNormal.js +0 -8
  276. package/libs/vendor/three/build/three.module.js +0 -19336
  277. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
  278. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
@@ -1,30 +1,30 @@
1
1
  var j = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
- var A = (h, a, t) => a in h ? j(h, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[a] = t, u = (h, a) => {
5
- for (var t in a || (a = {}))
6
- P.call(a, t) && A(h, t, a[t]);
4
+ var A = (c, o, e) => o in c ? j(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e, u = (c, o) => {
5
+ for (var e in o || (o = {}))
6
+ P.call(o, e) && A(c, e, o[e]);
7
7
  if (v)
8
- for (var t of v(a))
9
- _.call(a, t) && A(h, t, a[t]);
10
- return h;
8
+ for (var e of v(o))
9
+ _.call(o, e) && A(c, e, o[e]);
10
+ return c;
11
11
  };
12
- var d = (h, a, t) => (A(h, typeof a != "symbol" ? a + "" : a, t), t);
13
- var c = (h, a, t) => new Promise((e, i) => {
14
- var s = (o) => {
12
+ var d = (c, o, e) => (A(c, typeof o != "symbol" ? o + "" : o, e), e);
13
+ var m = (c, o, e) => new Promise((t, i) => {
14
+ var s = (a) => {
15
15
  try {
16
- p(t.next(o));
17
- } catch (m) {
18
- i(m);
16
+ n(e.next(a));
17
+ } catch (p) {
18
+ i(p);
19
19
  }
20
- }, r = (o) => {
20
+ }, r = (a) => {
21
21
  try {
22
- p(t.throw(o));
23
- } catch (m) {
24
- i(m);
22
+ n(e.throw(a));
23
+ } catch (p) {
24
+ i(p);
25
25
  }
26
- }, p = (o) => o.done ? e(o.value) : Promise.resolve(o.value).then(s, r);
27
- p((t = t.apply(h, a)).next());
26
+ }, n = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
27
+ n((e = e.apply(c, o)).next());
28
28
  });
29
29
  import * as F from "three";
30
30
  import { Controller as S } from "../base/BasePluginWithData.js";
@@ -33,16 +33,11 @@ import "hammerjs";
33
33
  import "../shared-utils/three/PointSelector/index.js";
34
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
35
35
  import "@realsee/five/line";
36
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
36
+ import { notNil as T } from "../shared-utils/isNil.js";
37
37
  import "../shared-utils/three/core/Sphere.js";
38
38
  import "animejs";
39
- import { notNil as T } from "../shared-utils/isNil.js";
40
39
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
41
40
  import { equal as O } from "../shared-utils/equal.js";
42
- import "../Sculpt/Meshes/Polygon.js";
43
- import "../Sculpt/utils/Modules/Global.js";
44
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
45
- import "../Sculpt/utils/three/rayOnLine.js";
46
41
  import { loadTexture as x } from "../shared-utils/three/loadTexture.js";
47
42
  import { format as y, getPipesFromLibrary as C } from "./utils/formatData.js";
48
43
  import { ObjectFlowPipe as D } from "./utils/Objects/FlowPipe.js";
@@ -84,60 +79,12 @@ import "../Sculpt/utils/removeAllTag.js";
84
79
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
85
80
  import "../shared-utils/three/applyObjectMatrixWorld.js";
86
81
  import "../shared-utils/util.js";
82
+ import "../shared-utils/three/core/LineGeometry.js";
87
83
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
88
84
  import "../shared-utils/isTouchDevice.js";
89
85
  import "../shared-utils/five/getPosition.js";
90
86
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
91
87
  import "../shared-utils/three/PointSelector/utils/contents.js";
92
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
93
- import "../vendor/three/build/three.module.js";
94
- import "../shared-utils/three/generatePolygonGeometry.js";
95
- import "../shared-utils/three/earcut3D.js";
96
- import "earcut";
97
- import "../shared-utils/three/getNormal.js";
98
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
99
- import "../Sculpt/utils/three/ColoredMesh.js";
100
- import "../shared-utils/three/geometryUtil.js";
101
- import "../Sculpt/utils/Modules/Cursor.js";
102
- import "../Object3DHelperPlugin/Controller.js";
103
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
104
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
105
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
106
- import "../shared-utils/three/boundingBox.js";
107
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
108
- import "../shared-utils/Object3DHelper/utils/direction.js";
109
- import "../shared-utils/Object3DHelper/Constants/color.js";
110
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
111
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
112
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
113
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
114
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
115
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
116
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
117
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
118
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
119
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
120
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
121
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
122
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
123
- import "../shared-utils/threex/domevents/index.js";
124
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
125
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
126
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
127
- import "../shared-utils/Object3DHelper/index.js";
128
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
129
- import "../shared-utils/math/rad2Deg.js";
130
- import "../shared-utils/math/deg2Rad.js";
131
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
132
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
133
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
134
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
135
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
136
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
137
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
138
- import "../shared-utils/five/fiveModelLoad.js";
139
- import "../shared-utils/five/FiveDomEvents.js";
140
- import "../shared-utils/five/calculateThreeMouse.js";
141
88
  import "../shared-utils/isTruelyObject.js";
142
89
  import "../shared-utils/animationFrame/index.js";
143
90
  import "./utils/Objects/Pipe.js";
@@ -146,9 +93,9 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
146
93
  import "../shared-utils/three/Extras/Core/Interpolations.js";
147
94
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
148
95
  const g = { flowSpeed: 0.6, rotateSpeed: 0 };
149
- class ze extends S {
150
- constructor(t) {
151
- super(t);
96
+ class Be extends S {
97
+ constructor(e) {
98
+ super(e);
152
99
  // ==================== public properties ====================
153
100
  d(this, "data");
154
101
  /** 插件状态
@@ -169,19 +116,19 @@ class ze extends S {
169
116
  d(this, "texturePromiseCache", /* @__PURE__ */ new Map());
170
117
  /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
171
118
  d(this, "dispose", () => {
172
- this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((t) => t.then((e) => e.dispose())), this.texturePromiseCache.clear();
119
+ this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((e) => e.then((t) => t.dispose())), this.texturePromiseCache.clear();
173
120
  });
174
- d(this, "onWantsFiveTapGesture", (...t) => {
175
- const [e] = t, i = e.intersectObjects(this.pipeObjects, !1);
121
+ d(this, "onWantsFiveTapGesture", (...e) => {
122
+ const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
176
123
  if (i.length === 0 || !this.data)
177
124
  return;
178
- const p = i[0].object.customID, o = this.data.pipes.find(({ id: n }) => n === p), m = this.data.pipelines.find((n) => o && n.pipes.includes(o));
179
- if (!(!o || !m))
125
+ const n = i[0].object.customID, a = this.data.pipes.find(({ id: h }) => h === n), p = this.data.pipelines.find((h) => a && h.pipes.includes(a));
126
+ if (!(!a || !p))
180
127
  return this.hooks.emit("tap", {
181
128
  intersectObjects: i,
182
- pipe: o,
183
- pipeline: m,
184
- wantsFiveTapGestureParams: t
129
+ pipe: a,
130
+ pipeline: p,
131
+ wantsFiveTapGestureParams: e
185
132
  }), !1;
186
133
  });
187
134
  this.state = {
@@ -190,7 +137,7 @@ class ze extends S {
190
137
  enabled: !0,
191
138
  isFlowing: !1,
192
139
  speed: g
193
- }, this.five = t, this.group = new F.Group(), this.group.name = "water-pipe-group", this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
140
+ }, this.five = e, this.group = new F.Group(), this.group.name = "water-pipe-group", this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
194
141
  }
195
142
  /** 加载管道数据,重复调用会使用新数据覆盖旧数据
196
143
  * @param `data` `<Plugin.ServerData>` Open API 接口返回的数据。
@@ -202,20 +149,20 @@ class ze extends S {
202
149
  * 函数返回的 string 就是当前 water 对应的贴图地址。
203
150
  */
204
151
  // eslint-disable-next-line max-params
205
- load(t, e, i, s) {
206
- return c(this, null, function* () {
152
+ load(e, t, i, s) {
153
+ return m(this, null, function* () {
207
154
  const r = this.data;
208
- this.data = yield this.formatData(t, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
209
- this.data.pipes.filter((p) => !!(p != null && p.texture)).map((b) => c(this, [b], function* ({ id: p, texture: o, path: m, radius: n }) {
210
- const l = yield this.loadPipeTexture(o), f = { id: p, path: m, textureURL: o, texture: l, geometryConfig: { radius: n } };
155
+ this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
156
+ this.data.pipes.filter((n) => !!(n != null && n.texture)).map((b) => m(this, [b], function* ({ id: n, texture: a, path: p, radius: h }) {
157
+ const l = yield this.loadPipeTexture(a), f = { id: n, path: p, textureURL: a, texture: l, geometryConfig: { radius: h } };
211
158
  return new D(f);
212
159
  }))
213
- ), this.data.pipelines.forEach((p) => {
214
- p.pipes.reduce((o, m) => {
215
- const n = this.findPipeObjectWithID(m.id);
216
- return n == null || n.setInitialDisplacement(o), o + ((n == null ? void 0 : n.pathLength) || 0);
160
+ ), this.data.pipelines.forEach((n) => {
161
+ n.pipes.reduce((a, p) => {
162
+ const h = this.findPipeObjectWithID(p.id);
163
+ return h == null || h.setInitialDisplacement(a), a + ((h == null ? void 0 : h.pathLength) || 0);
217
164
  }, 0);
218
- }), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((p) => p.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), e && this.setState(e, { userAction: i });
165
+ }), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((n) => n.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
219
166
  });
220
167
  }
221
168
  /** 更改插件 State
@@ -223,18 +170,18 @@ class ze extends S {
223
170
  * @param `options` `<Option> | <undefined>`
224
171
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
225
172
  */
226
- setState(t, e = {}) {
173
+ setState(e, t = {}) {
227
174
  const i = this.state;
228
- if (O(t, i, { deep: !0 }))
175
+ if (O(e, i, { deep: !0 }))
229
176
  return;
230
- const s = e.userAction !== void 0 ? e.userAction : !0;
231
- if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
177
+ const s = t.userAction !== void 0 ? t.userAction : !0;
178
+ if (this.updateState(e, s), e.enabled !== void 0 && i.enabled !== e.enabled && (e.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), e.visible !== void 0 && i.visible !== e.visible) {
232
179
  const r = { userAction: s, anime: { duration: 500 } };
233
- t.visible ? this._show(r) : this._hide(r);
180
+ e.visible ? this._show(r) : this._hide(r);
234
181
  }
235
- if (t.isFlowing !== void 0 && i.isFlowing !== t.isFlowing && (t.isFlowing ? this._flow() : this._stopFlow()), t.speed !== void 0 && !O(i.speed, this.state.speed, { deep: !0 }) && this._setSpeed(t.speed), t.target !== void 0 && !O(i.target, this.state.target, { deep: !0 })) {
182
+ if (e.isFlowing !== void 0 && i.isFlowing !== e.isFlowing && (e.isFlowing ? this._flow() : this._stopFlow()), e.speed !== void 0 && !O(i.speed, this.state.speed, { deep: !0 }) && this._setSpeed(e.speed), e.target !== void 0 && !O(i.target, this.state.target, { deep: !0 })) {
236
183
  const r = {
237
- target: t.target,
184
+ target: e.target,
238
185
  showAnime: { duration: 500 },
239
186
  hideAnime: { duration: 500 }
240
187
  };
@@ -245,23 +192,23 @@ class ze extends S {
245
192
  * @param `options` `<Option> | <undefined>`
246
193
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
247
194
  */
248
- enable(t = {}) {
195
+ enable(e = {}) {
249
196
  var i;
250
197
  if (this.state.enabled)
251
198
  return;
252
- const e = (i = t.userAction) != null ? i : !0;
253
- this.updateState({ enabled: !0 }, e), this._enable({ userAction: e });
199
+ const t = (i = e.userAction) != null ? i : !0;
200
+ this.updateState({ enabled: !0 }, t), this._enable({ userAction: t });
254
201
  }
255
202
  /** 禁用插件
256
203
  * @param `options` `<Option> | <undefined>`
257
204
  * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
258
205
  */
259
- disable(t = {}) {
206
+ disable(e = {}) {
260
207
  var i;
261
208
  if (this.state.enabled === !1)
262
209
  return;
263
- const e = (i = t.userAction) != null ? i : !0;
264
- this.updateState({ enabled: !1, isFlowing: !1 }, e), this._disable({ userAction: e });
210
+ const t = (i = e.userAction) != null ? i : !0;
211
+ this.updateState({ enabled: !1, isFlowing: !1 }, t), this._disable({ userAction: t });
265
212
  }
266
213
  /** 展示管道模型,注意如果通过 `switchPipelines` 更改过 `visibleIDs`,则只会展示这一部分模型。
267
214
  * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
@@ -270,14 +217,14 @@ class ze extends S {
270
217
  * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
271
218
  */
272
219
  show() {
273
- return c(this, arguments, function* (t = {}) {
220
+ return m(this, arguments, function* (e = {}) {
274
221
  if (this.state.visible)
275
222
  return;
276
- const e = u({
223
+ const t = u({
277
224
  userAction: !0,
278
225
  anime: { duration: 500 }
279
- }, t);
280
- this.updateState({ visible: !0 }, e.userAction), yield this._show(e);
226
+ }, e);
227
+ this.updateState({ visible: !0 }, t.userAction), yield this._show(t);
281
228
  });
282
229
  }
283
230
  /** 插件内容整体隐藏
@@ -287,14 +234,14 @@ class ze extends S {
287
234
  * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
288
235
  */
289
236
  hide() {
290
- return c(this, arguments, function* (t = {}) {
237
+ return m(this, arguments, function* (e = {}) {
291
238
  if (this.state.visible === !1)
292
239
  return;
293
- const e = u({
240
+ const t = u({
294
241
  userAction: !0,
295
242
  anime: { duration: 500 }
296
- }, t);
297
- this.updateState({ visible: !1 }, e.userAction), yield this._hide(e);
243
+ }, e);
244
+ this.updateState({ visible: !1 }, t.userAction), yield this._hide(t);
298
245
  });
299
246
  }
300
247
  /** 切换管路
@@ -307,124 +254,124 @@ class ze extends S {
307
254
  * @param `options.anime` `<AnimeOptions> | <undefined>` 兜底的动画配置。
308
255
  * @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
309
256
  * */
310
- switchPipelines(t) {
311
- return c(this, null, function* () {
312
- var m, n, b, l, f, w;
257
+ switchPipelines(e) {
258
+ return m(this, null, function* () {
259
+ var p, h, b, l, f, w;
313
260
  if (!this.data)
314
261
  return;
315
- const e = (m = t == null ? void 0 : t.target) != null ? m : null, i = (n = t == null ? void 0 : t.userAction) != null ? n : !0;
316
- this.updateState({ target: e }, i);
317
- const s = { duration: 500 }, r = (l = (b = t == null ? void 0 : t.hideAnime) != null ? b : t == null ? void 0 : t.anime) != null ? l : s, p = (w = (f = t == null ? void 0 : t.showAnime) != null ? f : t == null ? void 0 : t.anime) != null ? w : s, o = {
318
- target: e,
319
- showAnime: p,
262
+ const t = (p = e == null ? void 0 : e.target) != null ? p : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
263
+ this.updateState({ target: t }, i);
264
+ const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, n = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
265
+ target: t,
266
+ showAnime: n,
320
267
  hideAnime: r
321
268
  };
322
- this._switchPipelines(o);
269
+ this._switchPipelines(a);
323
270
  });
324
271
  }
325
272
  /** 开始流动 */
326
- flow(t = {}) {
273
+ flow(e = {}) {
327
274
  var i;
328
275
  if (this.state.isFlowing)
329
276
  return;
330
- const e = (i = t.userAction) != null ? i : !0;
331
- this.updateState({ isFlowing: !0 }, e), this._flow();
277
+ const t = (i = e.userAction) != null ? i : !0;
278
+ this.updateState({ isFlowing: !0 }, t), this._flow();
332
279
  }
333
280
  /** 停止流动 */
334
- stopFlow(t = {}) {
281
+ stopFlow(e = {}) {
335
282
  var i;
336
283
  if (this.state.isFlowing === !1)
337
284
  return;
338
- const e = (i = t.userAction) != null ? i : !0;
339
- this.updateState({ isFlowing: !1 }, e), this._stopFlow();
285
+ const t = (i = e.userAction) != null ? i : !0;
286
+ this.updateState({ isFlowing: !1 }, t), this._stopFlow();
340
287
  }
341
288
  /** 更改水管流速
342
289
  * @param `options` `<SetSpeedOptions> | <undefined>`
343
290
  * @param `options.speed` `<Speed> | <undefined>` 参考 `state.speed` 的描述。
344
291
  * @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
345
292
  */
346
- setSpeed(t) {
293
+ setSpeed(e) {
347
294
  var s, r;
348
- const e = (s = t == null ? void 0 : t.speed) != null ? s : g, i = (r = t.userAction) != null ? r : !0;
349
- this.updateState({ speed: e }, i), this._setSpeed(e);
295
+ const t = (s = e == null ? void 0 : e.speed) != null ? s : g, i = (r = e.userAction) != null ? r : !0;
296
+ this.updateState({ speed: t }, i), this._setSpeed(t);
350
297
  }
351
- formatData(t, e) {
352
- return c(this, null, function* () {
353
- return y(t, e);
298
+ formatData(e, t) {
299
+ return m(this, null, function* () {
300
+ return y(e, t);
354
301
  });
355
302
  }
356
- _enable(t) {
357
- this.hooks.emit("enable", { userAction: t.userAction }), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
303
+ _enable(e) {
304
+ this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.group), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture);
358
305
  }
359
- _disable(t) {
360
- this.hooks.emit("disable", { userAction: t.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
306
+ _disable(e) {
307
+ this.hooks.emit("disable", { userAction: e.userAction }), this.disposeAnime(), this.five.scene.remove(this.group), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture);
361
308
  }
362
- _show(t) {
363
- return c(this, null, function* () {
309
+ _show(e) {
310
+ return m(this, null, function* () {
364
311
  var s;
365
- this.hooks.emit("show", { userAction: t.userAction });
366
- const e = (s = t == null ? void 0 : t.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
367
- yield Promise.all(i.map((r) => r == null ? void 0 : r.show(e))), this.five.needsRender = !0;
312
+ this.hooks.emit("show", { userAction: e.userAction });
313
+ const t = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
314
+ yield Promise.all(i.map((r) => r == null ? void 0 : r.show(t))), this.five.needsRender = !0;
368
315
  });
369
316
  }
370
- _hide(t) {
371
- return c(this, null, function* () {
317
+ _hide(e) {
318
+ return m(this, null, function* () {
372
319
  var i;
373
- this.hooks.emit("hide", { userAction: t.userAction });
374
- const e = (i = t == null ? void 0 : t.anime) != null ? i : { duration: 500 };
375
- yield Promise.all(this.pipeObjects.map((s) => s.hide(e))), this.five.needsRender = !0;
320
+ this.hooks.emit("hide", { userAction: e.userAction });
321
+ const t = (i = e == null ? void 0 : e.anime) != null ? i : { duration: 500 };
322
+ yield Promise.all(this.pipeObjects.map((s) => s.hide(t))), this.five.needsRender = !0;
376
323
  });
377
324
  }
378
- _switchPipelines(t) {
379
- return c(this, null, function* () {
325
+ _switchPipelines(e) {
326
+ return m(this, null, function* () {
380
327
  if (!this.data)
381
328
  return;
382
- const e = this.findPipeObjectWithTarget(t.target), i = t.hideAnime;
329
+ const t = this.findPipeObjectWithTarget(e.target), i = e.hideAnime;
383
330
  yield Promise.all(this.pipeObjects.map((r) => r.hide(i)));
384
- const s = t.showAnime;
385
- yield Promise.all(e.map((r) => r.show(s)));
331
+ const s = e.showAnime;
332
+ yield Promise.all(t.map((r) => r.show(s)));
386
333
  });
387
334
  }
388
335
  _flow() {
389
- this.pipeObjects.forEach((t) => t.flow());
336
+ this.pipeObjects.forEach((e) => e.flow());
390
337
  }
391
338
  _stopFlow() {
392
- this.pipeObjects.forEach((t) => t.stopFlow());
339
+ this.pipeObjects.forEach((e) => e.stopFlow());
393
340
  }
394
- _setSpeed(t) {
395
- this.pipeObjects.forEach((e) => e.setSpeed(t));
341
+ _setSpeed(e) {
342
+ this.pipeObjects.forEach((t) => t.setSpeed(e));
396
343
  }
397
- updateState(t, e) {
344
+ updateState(e, t) {
398
345
  const i = this.state;
399
- this.state = u(u({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
346
+ this.state = u(u({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
400
347
  }
401
348
  /** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
402
- loadPipeTexture(t) {
403
- return c(this, null, function* () {
404
- const e = this.texturePromiseCache.get(t);
405
- if (e)
406
- return e;
407
- const i = x(t);
408
- return this.texturePromiseCache.set(t, i), i;
349
+ loadPipeTexture(e) {
350
+ return m(this, null, function* () {
351
+ const t = this.texturePromiseCache.get(e);
352
+ if (t)
353
+ return t;
354
+ const i = x(e);
355
+ return this.texturePromiseCache.set(e, i), i;
409
356
  });
410
357
  }
411
358
  /** 销毁所有动画 */
412
359
  disposeAnime() {
413
- this.pipeObjects.forEach((t) => t.disposeAnime()), this.five.needsRender = !0;
360
+ this.pipeObjects.forEach((e) => e.disposeAnime()), this.five.needsRender = !0;
414
361
  }
415
362
  /** 移除所有管道模型 */
416
363
  removeAllPipes() {
417
- this.disposeAnime(), this.group.remove(...this.pipeObjects), this.pipeObjects.forEach((t) => t.dispose()), this.pipeObjects = [], this.five.needsRender = !0;
364
+ this.disposeAnime(), this.group.remove(...this.pipeObjects), this.pipeObjects.forEach((e) => e.dispose()), this.pipeObjects = [], this.five.needsRender = !0;
418
365
  }
419
366
  /** 根据 ID 查找管道模型 */
420
- findPipeObjectWithID(t) {
421
- return this.pipeObjects.find(({ customID: e }) => e === t);
367
+ findPipeObjectWithID(e) {
368
+ return this.pipeObjects.find(({ customID: t }) => t === e);
422
369
  }
423
370
  /** 根据 target 查找管道模型 */
424
- findPipeObjectWithTarget(t) {
425
- return t ? C({ data: this.data, target: t }).map(({ id: i }) => this.findPipeObjectWithID(i)).filter(T) : this.pipeObjects;
371
+ findPipeObjectWithTarget(e) {
372
+ return e ? C({ data: this.data, target: e }).map(({ id: i }) => this.findPipeObjectWithID(i)).filter(T) : this.pipeObjects;
426
373
  }
427
374
  }
428
375
  export {
429
- ze as Controller
376
+ Be as Controller
430
377
  };
@@ -29,84 +29,31 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
29
29
  import "../shared-utils/three/centerPoint.js";
30
30
  import "../shared-utils/three/getObjectVisible.js";
31
31
  import "@realsee/five/line";
32
- import "../vendor/three/examples/jsm/lines/LineGeometry.js";
33
- import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
34
- import "../vendor/three/build/three.module.js";
32
+ import "../shared-utils/isNil.js";
35
33
  import "../shared-utils/three/core/Sphere.js";
36
34
  import "animejs";
37
- import "../shared-utils/isNil.js";
38
35
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
39
- import "../Sculpt/Meshes/Polygon.js";
40
- import "../shared-utils/three/generatePolygonGeometry.js";
41
- import "../shared-utils/three/earcut3D.js";
42
- import "earcut";
43
- import "../shared-utils/three/getNormal.js";
44
- import "../PanoMeasurePlugin/utils/isIntersecting.js";
45
- import "../Sculpt/typings/style.js";
46
- import "../Sculpt/utils/three/ColoredMesh.js";
47
- import "../shared-utils/three/IObject3D.js";
48
- import "../Sculpt/utils/Modules/Global.js";
49
- import "../Sculpt/utils/Modules/Cursor.js";
50
- import "../Object3DHelperPlugin/Controller.js";
51
- import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
52
- import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
53
- import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
54
- import "../shared-utils/three/boundingBox.js";
55
- import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
56
- import "../shared-utils/Object3DHelper/utils/direction.js";
57
- import "../shared-utils/Object3DHelper/Constants/color.js";
58
- import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
59
- import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
36
+ import "../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../shared-utils/five/initialCSS3DRender.js";
60
38
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
61
39
  import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
62
40
  import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
- import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
64
- import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
65
- import "../shared-utils/util.js";
66
- import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
67
- import "../shared-utils/three/PointSelector/utils/html.js";
68
- import "../shared-utils/five/initialCSS3DRender.js";
69
41
  import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
70
42
  import "../Sculpt/Meshes/Line.js";
43
+ import "../Sculpt/typings/style.js";
71
44
  import "../shared-utils/five/FiveLine.js";
45
+ import "../shared-utils/three/IObject3D.js";
72
46
  import "../Sculpt/utils/removeAllTag.js";
73
47
  import "../Sculpt/utils/Meshes/getLengthHTML.js";
74
48
  import "../shared-utils/three/applyObjectMatrixWorld.js";
75
- import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
76
- import "../Sculpt/utils/three/rayOnLine.js";
49
+ import "../shared-utils/util.js";
50
+ import "../shared-utils/three/core/LineGeometry.js";
77
51
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
78
- import "../shared-utils/url/absoluteUrl.js";
79
- import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
80
- import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
81
- import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
82
- import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
83
- import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
84
- import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
85
- import "../shared-utils/Object3DHelper/Controller/MoveController.js";
86
- import "../shared-utils/Object3DHelper/Base/BaseController.js";
87
- import "../shared-utils/threex/domevents/index.js";
88
- import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
89
- import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
90
- import "../Object3DHelperPlugin/FiveControllerWrapper.js";
91
- import "../shared-utils/Object3DHelper/index.js";
92
- import "../shared-utils/Object3DHelper/Controller/RotateController.js";
93
- import "../shared-utils/math/rad2Deg.js";
94
- import "../shared-utils/math/deg2Rad.js";
95
- import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
96
- import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
97
- import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
98
- import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
99
- import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
100
- import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
101
- import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
102
- import "../shared-utils/five/fiveModelLoad.js";
103
- import "../shared-utils/five/FiveDomEvents.js";
104
- import "../shared-utils/five/calculateThreeMouse.js";
105
52
  import "../shared-utils/isTouchDevice.js";
106
- import "../shared-utils/three/geometryUtil.js";
107
53
  import "../shared-utils/five/getPosition.js";
108
54
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
109
55
  import "../shared-utils/three/PointSelector/utils/contents.js";
56
+ import "../shared-utils/url/absoluteUrl.js";
110
57
  import "../shared-utils/equal.js";
111
58
  import "../shared-utils/isTruelyObject.js";
112
59
  import "../shared-utils/three/loadTexture.js";
@@ -118,8 +65,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
118
65
  import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
119
66
  import "../shared-utils/three/Extras/Core/Interpolations.js";
120
67
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
121
- const co = (r) => new o(r);
68
+ const dr = (r) => new o(r);
122
69
  export {
123
- co as PipelinePlugin,
124
- co as default
70
+ dr as PipelinePlugin,
71
+ dr as default
125
72
  };