@realsee/dnalogel 3.46.0 → 3.47.0

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 (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Sculpt/Meshes/Polygon.d.ts +6 -0
  3. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
  4. package/dist/Sculpt/Meshes/Polyline.d.ts +7 -0
  5. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  6. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
  7. package/dist/index.cjs.js +54 -54
  8. package/dist/index.js +3645 -3592
  9. package/dist/index.umd.js +46 -46
  10. package/dist/shared-utils/five/getPosition.d.ts +2 -0
  11. package/dist/shared-utils/three/PointSelector/index.d.ts +14 -10
  12. package/dist/typings/typings.d.ts +2 -0
  13. package/libs/AreaMakerPlugin/Controller.js +3 -2
  14. package/libs/AreaMakerPlugin/index.js +3 -2
  15. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  16. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  17. package/libs/CSS3DRenderPlugin/index.js +6 -5
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  19. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +3 -2
  20. package/libs/CruisePlugin/BaseController.js +5 -4
  21. package/libs/CruisePlugin/Move.js +3 -2
  22. package/libs/CruisePlugin/Work.js +3 -2
  23. package/libs/CruisePlugin/index.js +7 -6
  24. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  25. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  26. package/libs/GuideLinePlugin/Controller.js +5 -4
  27. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  29. package/libs/GuideLinePlugin/index.js +7 -6
  30. package/libs/ModelMakerPlugin/Controller.js +3 -2
  31. package/libs/ModelMakerPlugin/index.js +3 -2
  32. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  33. package/libs/ModelTVVideoPlugin/index.js +3 -2
  34. package/libs/Object3DHelperPlugin/Controller.js +19 -18
  35. package/libs/Object3DHelperPlugin/index.js +6 -5
  36. package/libs/PanoCompassPlugin/Controller.js +3 -2
  37. package/libs/PanoCompassPlugin/index.js +4 -3
  38. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  39. package/libs/PanoDoorLabelPlugin/Controller.js +21 -20
  40. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  41. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  42. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  43. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  44. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  45. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  46. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  47. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  48. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  49. package/libs/PanoMeasurePlugin/index.js +14 -13
  50. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  52. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +34 -33
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  57. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +62 -61
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  62. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  64. package/libs/PanoTagPlugin/controller/index.js +6 -5
  65. package/libs/PanoTagPlugin/index.js +12 -11
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  67. package/libs/PanoVideoPlugin/Controller.js +3 -2
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  69. package/libs/PanoVideoPlugin/index.js +6 -5
  70. package/libs/PipelinePlugin/Controller.js +3 -2
  71. package/libs/PipelinePlugin/index.js +4 -3
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  75. package/libs/Sculpt/Meshes/Line.js +17 -14
  76. package/libs/Sculpt/Meshes/Polygon.d.ts +6 -0
  77. package/libs/Sculpt/Meshes/Polygon.js +7 -4
  78. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +8 -0
  79. package/libs/Sculpt/Meshes/PolygonWithEdge.js +38 -24
  80. package/libs/Sculpt/Meshes/Polyline.d.ts +7 -0
  81. package/libs/Sculpt/Meshes/Polyline.js +32 -23
  82. package/libs/Sculpt/Objects/Base/index.js +20 -17
  83. package/libs/Sculpt/Objects/Line/Editor.js +6 -6
  84. package/libs/Sculpt/Objects/Line/index.js +16 -16
  85. package/libs/Sculpt/Objects/Point/Editor.js +10 -10
  86. package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
  87. package/libs/Sculpt/Objects/Polygon/index.js +43 -37
  88. package/libs/Sculpt/Objects/Polyline/Editor.js +3 -3
  89. package/libs/Sculpt/Objects/Polyline/index.js +43 -43
  90. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  91. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  92. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +6 -0
  93. package/libs/Sculpt/utils/three/ColoredMesh.js +39 -31
  94. package/libs/base/BasePlugin.js +1 -1
  95. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  96. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  97. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  98. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  99. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  101. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  102. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  103. package/libs/index.js +126 -125
  104. package/libs/shared-utils/five/getPosition.d.ts +2 -0
  105. package/libs/shared-utils/five/getPosition.js +25 -30
  106. package/libs/shared-utils/logger.js +1 -1
  107. package/libs/shared-utils/three/PointSelector/index.d.ts +14 -10
  108. package/libs/shared-utils/three/PointSelector/index.js +74 -57
  109. package/libs/typings/typings.d.ts +2 -0
  110. package/package.json +1 -1
@@ -167,6 +167,7 @@ import "../../Sculpt/typings/style.js";
167
167
  import "../../shared-utils/five/FiveLine.js";
168
168
  import "../../shared-utils/tag.js";
169
169
  import "../../shared-utils/five/vector3ToScreen.js";
170
+ import "../../Sculpt/utils/removeAllTag.js";
170
171
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
171
172
  import "../../shared-utils/isTouchDevice.js";
172
173
  import "../../shared-utils/five/getPosition.js";
@@ -224,7 +225,7 @@ import "../utils/normalPositionToPositions.js";
224
225
  import "../../vendor/svelte/store/index.js";
225
226
  import "../../CSS3DRenderPlugin/index.js";
226
227
  import "../../CSS3DRenderPlugin/Controller.js";
227
- class Mr extends U {
228
+ class Pr extends U {
228
229
  constructor(t) {
229
230
  super(t);
230
231
  c(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -375,5 +376,5 @@ class Mr extends U {
375
376
  }
376
377
  }
377
378
  export {
378
- Mr as TagRender
379
+ Pr as TagRender
379
380
  };
@@ -84,6 +84,7 @@ import "../../Sculpt/typings/style.js";
84
84
  import "../../shared-utils/five/FiveLine.js";
85
85
  import "../../shared-utils/tag.js";
86
86
  import "../../shared-utils/five/vector3ToScreen.js";
87
+ import "../../Sculpt/utils/removeAllTag.js";
87
88
  import "animejs";
88
89
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
89
90
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
@@ -106,7 +107,7 @@ import "../Assets/Icon.js";
106
107
  import "../../shared-utils/three/getPositionsByObjectFit.js";
107
108
  import "../../shared-utils/three/FragmentTransparencyMaterial.js";
108
109
  import "../../shared-utils/three/getNormal.js";
109
- class vi extends E {
110
+ class Ei extends E {
110
111
  constructor(t) {
111
112
  super(t);
112
113
  e(this, "tags", []);
@@ -236,5 +237,5 @@ class vi extends E {
236
237
  }
237
238
  }
238
239
  export {
239
- vi as TagUtil
240
+ Ei as TagUtil
240
241
  };
@@ -183,6 +183,7 @@ import "../../Sculpt/typings/style.js";
183
183
  import "../../shared-utils/five/FiveLine.js";
184
184
  import "../../shared-utils/tag.js";
185
185
  import "../../shared-utils/five/vector3ToScreen.js";
186
+ import "../../Sculpt/utils/removeAllTag.js";
186
187
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
187
188
  import "../../shared-utils/isTouchDevice.js";
188
189
  import "../../shared-utils/five/getPosition.js";
@@ -239,8 +240,8 @@ import "../utils/addDebugPoints.js";
239
240
  import "../utils/requestIdleCallback.js";
240
241
  import "../Components/TagItem.js";
241
242
  import "../Components/Common/TagPoint.js";
242
- const S = "Dnalogel-PanoTagPlugin", Qo = (p) => `${S}--${p}`;
243
- class $o extends O {
243
+ const S = "Dnalogel-PanoTagPlugin", $o = (p) => `${S}--${p}`;
244
+ class Wo extends O {
244
245
  constructor(e, t) {
245
246
  super(e);
246
247
  /** state */
@@ -645,7 +646,7 @@ class $o extends O {
645
646
  }
646
647
  }
647
648
  export {
648
- $o as PanoTagPluginController,
649
- $o as default,
650
- Qo as pluginFlag
649
+ Wo as PanoTagPluginController,
650
+ Wo as default,
651
+ $o as pluginFlag
651
652
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as pp } from "./controller/index.js";
3
- import { defaultGlobalConfig as mp } from "./typings/tag/TagConfig.js";
4
- import { ContentType as ep, DimensionType as lp, PointType as ap } from "./Archive/deprecated.js";
2
+ import { pluginFlag as ip } from "./controller/index.js";
3
+ import { defaultGlobalConfig as np } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as lp, DimensionType as ap, PointType as fp } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "../shared-utils/positionToVector3.js";
@@ -149,6 +149,7 @@ import "../Sculpt/typings/style.js";
149
149
  import "../shared-utils/five/FiveLine.js";
150
150
  import "../shared-utils/tag.js";
151
151
  import "../shared-utils/five/vector3ToScreen.js";
152
+ import "../Sculpt/utils/removeAllTag.js";
152
153
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
153
154
  import "../shared-utils/isTouchDevice.js";
154
155
  import "../shared-utils/five/getPosition.js";
@@ -213,14 +214,14 @@ import "./Components/TagContainer.js";
213
214
  import "./Components/TagItem.js";
214
215
  import "./Components/Common/TagPoint.js";
215
216
  import "../shared-utils/animationFrame/BetterTween.js";
216
- const op = (o, t) => new r(o, t);
217
+ const tp = (o, t) => new r(o, t);
217
218
  export {
218
- ep as ContentType,
219
- lp as DimensionType,
220
- op as PanoTagPlugin,
219
+ lp as ContentType,
220
+ ap as DimensionType,
221
+ tp as PanoTagPlugin,
221
222
  r as PanoTagPluginController,
222
- ap as PointType,
223
- op as default,
224
- mp as defaultGlobalConfig,
225
- pp as pluginFlag
223
+ fp as PointType,
224
+ tp as default,
225
+ np as defaultGlobalConfig,
226
+ ip as pluginFlag
226
227
  };
@@ -99,11 +99,12 @@ import "../../../Sculpt/typings/style.js";
99
99
  import "../../../shared-utils/five/FiveLine.js";
100
100
  import "../../../shared-utils/tag.js";
101
101
  import "../../../shared-utils/five/vector3ToScreen.js";
102
+ import "../../../Sculpt/utils/removeAllTag.js";
102
103
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
103
104
  import "../../../shared-utils/isTouchDevice.js";
104
105
  import "../../../shared-utils/five/getPosition.js";
105
106
  import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
106
- function Di(o, i, t) {
107
+ function Gi(o, i, t) {
107
108
  var v, b, j, C, A;
108
109
  const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
109
110
  if (!o)
@@ -149,5 +150,5 @@ function Di(o, i, t) {
149
150
  return P(T), Object.values(f).forEach((p) => P(p)), T._isMerged = !0, T;
150
151
  }
151
152
  export {
152
- Di as calculateTagConfig
153
+ Gi as calculateTagConfig
153
154
  };
@@ -96,13 +96,14 @@ import "../Sculpt/typings/style.js";
96
96
  import "../shared-utils/five/FiveLine.js";
97
97
  import "../shared-utils/tag.js";
98
98
  import "../shared-utils/five/vector3ToScreen.js";
99
+ import "../Sculpt/utils/removeAllTag.js";
99
100
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
100
101
  import "../shared-utils/isTouchDevice.js";
101
102
  import "../shared-utils/five/getPosition.js";
102
103
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
103
104
  import "../shared-utils/animationFrame/index.js";
104
105
  import "./utils/index.js";
105
- class nt extends _ {
106
+ class st extends _ {
106
107
  constructor(r) {
107
108
  super(r);
108
109
  s(this, "controllerMap", /* @__PURE__ */ new Map());
@@ -245,5 +246,5 @@ class nt extends _ {
245
246
  }
246
247
  }
247
248
  export {
248
- nt as PanoVideoPluginController
249
+ st as PanoVideoPluginController
249
250
  };
@@ -87,11 +87,12 @@ import "../Sculpt/typings/style.js";
87
87
  import "../shared-utils/five/FiveLine.js";
88
88
  import "../shared-utils/tag.js";
89
89
  import "../shared-utils/five/vector3ToScreen.js";
90
+ import "../Sculpt/utils/removeAllTag.js";
90
91
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
91
92
  import "../shared-utils/isTouchDevice.js";
92
93
  import "../shared-utils/five/getPosition.js";
93
94
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
94
- class ue {
95
+ class le {
95
96
  /** 初始化视频、模型以及相关事件监听。 */
96
97
  constructor(i, e) {
97
98
  t(this, "video");
@@ -367,5 +368,5 @@ class ue {
367
368
  }
368
369
  }
369
370
  export {
370
- ue as VideoMeshController
371
+ le as VideoMeshController
371
372
  };
@@ -1,5 +1,5 @@
1
1
  import { PanoVideoPluginController as r } from "./Controller.js";
2
- import { typings as Qo } from "./typings/index.js";
2
+ import { typings as Ro } from "./typings/index.js";
3
3
  import "./VideoMeshController.js";
4
4
  import "./utils/shader.js";
5
5
  import "three";
@@ -85,15 +85,16 @@ import "../Sculpt/typings/style.js";
85
85
  import "../shared-utils/five/FiveLine.js";
86
86
  import "../shared-utils/tag.js";
87
87
  import "../shared-utils/five/vector3ToScreen.js";
88
+ import "../Sculpt/utils/removeAllTag.js";
88
89
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
89
90
  import "../shared-utils/isTouchDevice.js";
90
91
  import "../shared-utils/five/getPosition.js";
91
92
  import "../shared-utils/five/getRaycasterByNdcPosition.js";
92
93
  import "../shared-utils/animationFrame/index.js";
93
94
  import "./utils/index.js";
94
- const Mo = (o) => new r(o);
95
+ const No = (o) => new r(o);
95
96
  export {
96
- Mo as PanoVideoPlugin,
97
- Qo as PanoVideoPluginType,
98
- Mo as default
97
+ No as PanoVideoPlugin,
98
+ Ro as PanoVideoPluginType,
99
+ No as default
99
100
  };
@@ -114,6 +114,7 @@ import "../Sculpt/typings/style.js";
114
114
  import "../shared-utils/five/FiveLine.js";
115
115
  import "../shared-utils/tag.js";
116
116
  import "../shared-utils/five/vector3ToScreen.js";
117
+ import "../Sculpt/utils/removeAllTag.js";
117
118
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
118
119
  import "../shared-utils/isTouchDevice.js";
119
120
  import "../shared-utils/five/getPosition.js";
@@ -126,7 +127,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
126
127
  import "../shared-utils/three/Extras/Core/Interpolations.js";
127
128
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
128
129
  const g = { flowSpeed: 0.6, rotateSpeed: 0 };
129
- class Pe extends S {
130
+ class _e extends S {
130
131
  constructor(t) {
131
132
  super(t);
132
133
  // ==================== public properties ====================
@@ -406,5 +407,5 @@ class Pe extends S {
406
407
  }
407
408
  }
408
409
  export {
409
- Pe as Controller
410
+ _e as Controller
410
411
  };
@@ -83,6 +83,7 @@ import "../Sculpt/typings/style.js";
83
83
  import "../shared-utils/five/FiveLine.js";
84
84
  import "../shared-utils/tag.js";
85
85
  import "../shared-utils/five/vector3ToScreen.js";
86
+ import "../Sculpt/utils/removeAllTag.js";
86
87
  import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
87
88
  import "../shared-utils/isTouchDevice.js";
88
89
  import "../shared-utils/five/getPosition.js";
@@ -98,8 +99,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
98
99
  import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
99
100
  import "../shared-utils/three/Extras/Core/Interpolations.js";
100
101
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
101
- const Wr = (r) => new o(r);
102
+ const Xr = (r) => new o(r);
102
103
  export {
103
- Wr as PipelinePlugin,
104
- Wr as default
104
+ Xr as PipelinePlugin,
105
+ Xr as default
105
106
  };
@@ -86,6 +86,7 @@ import "../../../Sculpt/typings/style.js";
86
86
  import "../../../shared-utils/five/FiveLine.js";
87
87
  import "../../../shared-utils/tag.js";
88
88
  import "../../../shared-utils/five/vector3ToScreen.js";
89
+ import "../../../Sculpt/utils/removeAllTag.js";
89
90
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
91
  import "../../../shared-utils/isTouchDevice.js";
91
92
  import "../../../shared-utils/five/getPosition.js";
@@ -113,7 +114,7 @@ const d = (
113
114
  }
114
115
  `
115
116
  );
116
- class ri extends h {
117
+ class mi extends h {
117
118
  constructor(t) {
118
119
  super(t, d);
119
120
  /** 初始状态下,当前水管内的水流在整体管道上的位移
@@ -171,5 +172,5 @@ class ri extends h {
171
172
  }
172
173
  }
173
174
  export {
174
- ri as ObjectFlowPipe
175
+ mi as ObjectFlowPipe
175
176
  };
@@ -86,6 +86,7 @@ import "../../../Sculpt/typings/style.js";
86
86
  import "../../../shared-utils/five/FiveLine.js";
87
87
  import "../../../shared-utils/tag.js";
88
88
  import "../../../shared-utils/five/vector3ToScreen.js";
89
+ import "../../../Sculpt/utils/removeAllTag.js";
89
90
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
90
91
  import "../../../shared-utils/isTouchDevice.js";
91
92
  import "../../../shared-utils/five/getPosition.js";
@@ -94,7 +95,7 @@ import "../../../shared-utils/animationFrame/index.js";
94
95
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
95
96
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
96
97
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
97
- class _i extends a {
98
+ class $i extends a {
98
99
  constructor(i) {
99
100
  super(i);
100
101
  p(this, "imageCount", 64);
@@ -117,5 +118,5 @@ class _i extends a {
117
118
  }
118
119
  }
119
120
  export {
120
- _i as ObjectHighlightPipe
121
+ $i as ObjectHighlightPipe
121
122
  };
@@ -111,6 +111,7 @@ import "../../../Sculpt/typings/style.js";
111
111
  import "../../../shared-utils/five/FiveLine.js";
112
112
  import "../../../shared-utils/tag.js";
113
113
  import "../../../shared-utils/five/vector3ToScreen.js";
114
+ import "../../../Sculpt/utils/removeAllTag.js";
114
115
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
115
116
  import "../../../shared-utils/isTouchDevice.js";
116
117
  import "../../../shared-utils/five/getPosition.js";
@@ -1,7 +1,7 @@
1
- var E = Object.defineProperty;
1
+ var _ = Object.defineProperty;
2
2
  var L = Object.getOwnPropertySymbols;
3
3
  var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
4
- var f = (l, o, e) => o in l ? E(l, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[o] = e, y = (l, o) => {
4
+ var f = (l, o, e) => o in l ? _(l, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[o] = e, y = (l, o) => {
5
5
  for (var e in o || (o = {}))
6
6
  S.call(o, e) && f(l, e, o[e]);
7
7
  if (L)
@@ -11,8 +11,8 @@ var f = (l, o, e) => o in l ? E(l, o, { enumerable: !0, configurable: !0, writab
11
11
  };
12
12
  var h = (l, o, e) => (f(l, typeof o != "symbol" ? o + "" : o, e), e);
13
13
  import * as a from "three";
14
- import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
15
- import { LineGeometry as T, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
14
+ import { DEFAULT_LINE_COLOR as b, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as m } from "../typings/style.js";
15
+ import { LineGeometry as D, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
16
16
  import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
17
17
  import { IObject3D as I } from "../../shared-utils/three/IObject3D.js";
18
18
  import "hammerjs";
@@ -20,11 +20,12 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
20
20
  import { centerPoint as R } from "../../shared-utils/three/centerPoint.js";
21
21
  import { LightTag as x } from "../../shared-utils/tag.js";
22
22
  import { globalModules as p } from "../utils/Modules/Global.js";
23
+ import { removeAllTag as v } from "../utils/removeAllTag.js";
23
24
  import "../../shared-utils/three/THREESphere.js";
24
25
  import "animejs";
25
26
  import { notNil as c } from "../../shared-utils/isNil.js";
26
27
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
- class _ extends w {
28
+ class T extends w {
28
29
  constructor(e) {
29
30
  var n, t;
30
31
  super(e);
@@ -43,13 +44,13 @@ class _ extends w {
43
44
  this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
44
45
  }
45
46
  }
46
- class m extends H {
47
+ class E extends H {
47
48
  constructor(e, n) {
48
49
  super(e, n);
49
50
  h(this, "name", "Line3");
50
51
  }
51
52
  }
52
- class $ extends I {
53
+ class J extends I {
53
54
  constructor(e) {
54
55
  var s, r, u, g, d;
55
56
  super();
@@ -62,14 +63,14 @@ class $ extends I {
62
63
  h(this, "opacityBeforeHighlight");
63
64
  h(this, "paramsStyle", {});
64
65
  this.paramsStyle = e != null ? e : {};
65
- const n = new T(), t = new _({
66
+ const n = new D(), t = new T({
66
67
  color: new a.Color((s = e == null ? void 0 : e.lineColor) != null ? s : b),
67
68
  linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
68
69
  dashScale: 40,
69
70
  opacity: (u = e == null ? void 0 : e.opacity) != null ? u : 1,
70
71
  transparent: !0,
71
72
  dashed: (g = e == null ? void 0 : e.dashed) != null ? g : !1
72
- }), i = new _({
73
+ }), i = new T({
73
74
  color: new a.Color((d = e == null ? void 0 : e.lineColor) != null ? d : b),
74
75
  linewidth: t.linewidth * 0.9,
75
76
  dashScale: t.dashScale,
@@ -79,7 +80,9 @@ class $ extends I {
79
80
  transparent: !0,
80
81
  resolution: t.resolution
81
82
  });
82
- this.line = new m(n, t), this.backLine = new m(n, i), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points);
83
+ this.line = new E(n, t), this.backLine = new E(n, i), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
84
+ v(this);
85
+ });
83
86
  }
84
87
  get style() {
85
88
  return {
@@ -112,7 +115,7 @@ class $ extends I {
112
115
  return;
113
116
  this.addIfNotExists(this.line, this.backLine);
114
117
  const t = n.flatMap((i) => [i.x, i.y, i.z]);
115
- t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new T(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
118
+ t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new D(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
116
119
  }
117
120
  setResolution(e, n) {
118
121
  const t = this.line.material.resolution;
@@ -127,7 +130,7 @@ class $ extends I {
127
130
  n ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
128
131
  }
129
132
  highlight() {
130
- this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * D, this.backLine.material.opacity = this.backLine.material.opacity * D, this.needsRender = !0);
133
+ this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * m, this.backLine.material.opacity = this.backLine.material.opacity * m, this.needsRender = !0);
131
134
  }
132
135
  unhighlight() {
133
136
  this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
@@ -142,12 +145,12 @@ class $ extends I {
142
145
  t.forEach(([i, s], r) => {
143
146
  var d;
144
147
  const u = R(i, s), g = i.distanceTo(s).toFixed(2) + "m";
145
- this.lengthDoms[r] = (d = this.lengthDoms[r]) != null ? d : new x(p.five), this.lengthDoms[r].setPosition(u), this.lengthDoms[r].container.innerHTML = `<div style="pointer-events:none;">${g}</div>`;
148
+ this.lengthDoms[r] = (d = this.lengthDoms[r]) != null ? d : new x(p.five), this.lengthDoms[r].setPosition(u), this.lengthDoms[r].container.innerHTML = `<div style="pointer-events:none;color:white;">${g}</div>`;
146
149
  }), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
147
150
  } else
148
151
  this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
149
152
  }
150
153
  }
151
154
  export {
152
- $ as LineMesh
155
+ J as LineMesh
153
156
  };
@@ -9,6 +9,12 @@ export type PolygonStyle = ColoredMeshStyle;
9
9
  export type PolygonData = PointsData;
10
10
  export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
11
11
  name: string;
12
+ get style(): {
13
+ color: THREE.Color;
14
+ opacity: number;
15
+ occlusionVisibility: boolean;
16
+ occlusionMode: string;
17
+ };
12
18
  get isBlank(): boolean;
13
19
  get center(): THREE.Vector3;
14
20
  points: THREE.Vector3[];
@@ -4,13 +4,13 @@ var t = (o, i, e) => (p(o, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import * as r from "three";
5
5
  import { generatePolygonGeometry as g } from "../../shared-utils/three/generatePolygonGeometry.js";
6
6
  import { DEFAULT_HIGHLIGHT_OPACITY as a } from "../typings/style.js";
7
- import { anyPositionToVector3 as f } from "../../shared-utils/positionToVector3.js";
8
- import { ColoredMesh as y } from "../utils/three/ColoredMesh.js";
7
+ import { anyPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
8
+ import { ColoredMesh as f } from "../utils/three/ColoredMesh.js";
9
9
  import { getGeometryInfo as d } from "../../shared-utils/three/geometryUtil.js";
10
10
  const n = new r.BufferGeometry();
11
11
  n.name = "blankGeometry";
12
12
  n.isBlank = !0;
13
- class G extends y {
13
+ class G extends f {
14
14
  constructor(e) {
15
15
  super(e);
16
16
  t(this, "name", "PolygonMesh");
@@ -23,6 +23,9 @@ class G extends y {
23
23
  t(this, "highlighted", !1);
24
24
  e != null && e.points && this.setPoints(e.points);
25
25
  }
26
+ get style() {
27
+ return super.style;
28
+ }
26
29
  get isBlank() {
27
30
  return !!this.geometry.isBlank;
28
31
  }
@@ -31,7 +34,7 @@ class G extends y {
31
34
  }
32
35
  setPoints(e) {
33
36
  var s;
34
- const h = e.map(f);
37
+ const h = e.map(y);
35
38
  this.points = h, this.geometry = (s = g(this.points)) != null ? s : n, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
36
39
  }
37
40
  getGeometryInfo() {
@@ -9,6 +9,14 @@ export type PolygonWithEdgeMeshStyle = PolygonStyle & LineStyle;
9
9
  */
10
10
  export declare class PolygonWithEdgeMesh extends PolygonMesh {
11
11
  name: string;
12
+ get style(): {
13
+ lineWidth: number;
14
+ lineColor: THREE.Color;
15
+ color: THREE.Color;
16
+ opacity: number;
17
+ occlusionVisibility: boolean;
18
+ occlusionMode: string;
19
+ };
12
20
  get lineWidth(): number;
13
21
  get lineColor(): THREE.Color;
14
22
  protected line: PolylineMesh;
@@ -1,27 +1,41 @@
1
- var g = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var d = (e, s, t) => s in e ? g(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
5
- var r = (e, s) => {
1
+ var f = Object.defineProperty, p = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var n = Object.getOwnPropertySymbols;
4
+ var g = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
5
+ var l = (i, e, t) => e in i ? f(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, d = (i, e) => {
6
+ for (var t in e || (e = {}))
7
+ g.call(e, t) && l(i, t, e[t]);
8
+ if (n)
9
+ for (var t of n(e))
10
+ u.call(e, t) && l(i, t, e[t]);
11
+ return i;
12
+ }, y = (i, e) => p(i, P(e));
13
+ var c = (i, e) => {
6
14
  var t = {};
7
- for (var i in e)
8
- u.call(e, i) && s.indexOf(i) < 0 && (t[i] = e[i]);
9
- if (e != null && o)
10
- for (var i of o(e))
11
- s.indexOf(i) < 0 && c.call(e, i) && (t[i] = e[i]);
15
+ for (var s in i)
16
+ g.call(i, s) && e.indexOf(s) < 0 && (t[s] = i[s]);
17
+ if (i != null && n)
18
+ for (var s of n(i))
19
+ e.indexOf(s) < 0 && u.call(i, s) && (t[s] = i[s]);
12
20
  return t;
13
21
  };
14
- var n = (e, s, t) => (d(e, typeof s != "symbol" ? s + "" : s, t), t);
15
- import { PolylineMesh as f } from "./Polyline.js";
16
- import { PolygonMesh as y } from "./Polygon.js";
17
- import { intersectWithoutLine as p } from "../../shared-utils/three/THREERaycaster.js";
18
- class S extends y {
22
+ var o = (i, e, t) => (l(i, typeof e != "symbol" ? e + "" : e, t), t);
23
+ import { PolylineMesh as W } from "./Polyline.js";
24
+ import { PolygonMesh as C } from "./Polygon.js";
25
+ import { intersectWithoutLine as E } from "../../shared-utils/three/THREERaycaster.js";
26
+ class w extends C {
19
27
  constructor(t) {
20
- const l = t != null ? t : {}, { points: i } = l, h = r(l, ["points"]);
28
+ const r = t != null ? t : {}, { points: s } = r, h = c(r, ["points"]);
21
29
  super();
22
- n(this, "name", "PolygonWithEdgeMesh");
23
- n(this, "line", new f());
24
- i && this.setPoints(i), h && this.setStyle(h);
30
+ o(this, "name", "PolygonWithEdgeMesh");
31
+ o(this, "line", new W());
32
+ s && this.setPoints(s), h && this.setStyle(h);
33
+ }
34
+ get style() {
35
+ return y(d({}, super.style), {
36
+ lineWidth: this.lineWidth,
37
+ lineColor: this.lineColor
38
+ });
25
39
  }
26
40
  get lineWidth() {
27
41
  return this.line.lineWidth;
@@ -29,13 +43,13 @@ class S extends y {
29
43
  get lineColor() {
30
44
  return this.line.lineColor;
31
45
  }
32
- raycast(t, i) {
46
+ raycast(t, s) {
33
47
  return this.children.forEach((h) => {
34
- p(h, t, i, !0);
48
+ E(h, t, s, !0);
35
49
  }), !1;
36
50
  }
37
- setPoints(t, i = { closed: !0 }) {
38
- super.setPoints(t), this.points && (this.line.setPoints(this.points, i), this.addIfNotExists(this.line));
51
+ setPoints(t, s = { closed: !0 }) {
52
+ super.setPoints(t), this.points && (this.line.setPoints(this.points, s), this.addIfNotExists(this.line));
39
53
  }
40
54
  setStyle(t) {
41
55
  super.setStyle(t), this.line.setStyle(t);
@@ -48,5 +62,5 @@ class S extends y {
48
62
  }
49
63
  }
50
64
  export {
51
- S as PolygonWithEdgeMesh
65
+ w as PolygonWithEdgeMesh
52
66
  };
@@ -8,6 +8,13 @@ export type PolylineStyle = LineMeshStyle;
8
8
  export type PolylineData = PointsData;
9
9
  export declare abstract class PolylineBaseMesh extends IObject3D {
10
10
  name: string;
11
+ get style(): {
12
+ lineColor: THREE.Color;
13
+ lineWidth: number;
14
+ dashed: boolean;
15
+ occlusionVisibility: boolean;
16
+ occlusionMode: "translucence" | "depthTest";
17
+ };
11
18
  get lineColor(): THREE.Color;
12
19
  get lineWidth(): number;
13
20
  get dashed(): boolean;