@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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 (107) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +2 -2
  4. package/dist/index.cjs.js +255 -255
  5. package/dist/index.js +2733 -2732
  6. package/dist/index.umd.js +251 -251
  7. package/dist/shared-utils/tag.d.ts +1 -1
  8. package/dist/shared-utils/three/index.d.ts +1 -0
  9. package/libs/AreaMakerPlugin/Controller.js +104 -74
  10. package/libs/AreaMakerPlugin/index.js +33 -3
  11. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  12. package/libs/CSS3DRenderPlugin/Controller.js +35 -15
  13. package/libs/CSS3DRenderPlugin/index.js +34 -14
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  16. package/libs/CruisePlugin/BaseController.js +59 -29
  17. package/libs/CruisePlugin/Move.js +32 -13
  18. package/libs/CruisePlugin/Work.js +65 -46
  19. package/libs/CruisePlugin/index.js +37 -18
  20. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  21. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  22. package/libs/GuideLinePlugin/Controller.js +59 -40
  23. package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
  26. package/libs/GuideLinePlugin/index.js +37 -18
  27. package/libs/ModelMakerPlugin/Controller.js +50 -32
  28. package/libs/ModelMakerPlugin/index.js +33 -15
  29. package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
  30. package/libs/ModelTVVideoPlugin/index.js +23 -3
  31. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  32. package/libs/Object3DHelperPlugin/index.js +36 -17
  33. package/libs/PanoCompassPlugin/Controller.js +33 -13
  34. package/libs/PanoCompassPlugin/index.js +34 -14
  35. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  36. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  37. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  38. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  39. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  41. package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
  42. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  45. package/libs/PanoMeasurePlugin/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  47. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  48. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  49. package/libs/PanoRulerProPlugin/index.js +33 -3
  50. package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
  51. package/libs/PanoSpatialTagPlugin/index.js +21 -1
  52. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  53. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  54. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  55. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  56. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  57. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  58. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  59. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  60. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  61. package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
  62. package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
  63. package/libs/PanoTagPlugin/controller/index.js +45 -26
  64. package/libs/PanoTagPlugin/index.js +40 -21
  65. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  66. package/libs/PanoVideoPlugin/Controller.js +91 -61
  67. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  68. package/libs/PanoVideoPlugin/index.js +36 -6
  69. package/libs/PipelinePlugin/Controller.js +80 -51
  70. package/libs/PipelinePlugin/index.js +34 -5
  71. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  72. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  73. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  74. package/libs/Sculpt/Meshes/Box.js +3 -2
  75. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  76. package/libs/Sculpt/Meshes/Line.js +9 -8
  77. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  78. package/libs/Sculpt/Meshes/Point.js +3 -2
  79. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  80. package/libs/Sculpt/Meshes/Prism.js +8 -7
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  82. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  83. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  84. package/libs/Sculpt/index.d.ts +2 -2
  85. package/libs/Sculpt/index.js +3 -2
  86. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  87. package/libs/base/BasePlugin.js +4 -3
  88. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
  89. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  90. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  91. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  94. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  95. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  96. package/libs/floorplan/index.js +1 -0
  97. package/libs/index.js +28 -28
  98. package/libs/shared-utils/five/index.js +3 -2
  99. package/libs/shared-utils/five/lookObject.js +3 -2
  100. package/libs/shared-utils/index.js +44 -42
  101. package/libs/shared-utils/logger.js +1 -1
  102. package/libs/shared-utils/tag.d.ts +1 -1
  103. package/libs/shared-utils/tag.js +41 -41
  104. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  105. package/libs/shared-utils/three/index.d.ts +1 -0
  106. package/libs/shared-utils/three/index.js +1 -0
  107. package/package.json +1 -1
@@ -1,35 +1,36 @@
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 = (p, n, e) => n in p ? j(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e, m = (p, n) => {
5
- for (var e in n || (n = {}))
6
- P.call(n, e) && A(p, e, n[e]);
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 e of v(n))
9
- _.call(n, e) && A(p, e, n[e]);
10
- return p;
8
+ for (var e of v(o))
9
+ _.call(o, e) && A(c, e, o[e]);
10
+ return c;
11
11
  };
12
- var u = (p, n, e) => (A(p, typeof n != "symbol" ? n + "" : n, e), e);
13
- var d = (p, n, e) => new Promise((t, i) => {
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
14
  var s = (a) => {
15
15
  try {
16
- h(e.next(a));
17
- } catch (c) {
18
- i(c);
16
+ n(e.next(a));
17
+ } catch (p) {
18
+ i(p);
19
19
  }
20
20
  }, r = (a) => {
21
21
  try {
22
- h(e.throw(a));
23
- } catch (c) {
24
- i(c);
22
+ n(e.throw(a));
23
+ } catch (p) {
24
+ i(p);
25
25
  }
26
- }, h = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
27
- h((e = e.apply(p, n)).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";
31
31
  import "../shared-utils/tag.js";
32
32
  import "hammerjs";
33
+ import "../shared-utils/three/PointSelector/index.js";
33
34
  import "three/examples/jsm/renderers/CSS3DRenderer";
34
35
  import "@realsee/five/line";
35
36
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -53,6 +54,34 @@ import "../shared-utils/positionToVector3.js";
53
54
  import "../shared-utils/five/vector3ToScreen.js";
54
55
  import "../shared-utils/three/temp.js";
55
56
  import "../shared-utils/dom/resizeObserver.js";
57
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
58
+ import "../shared-utils/three/Magnifier.js";
59
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
60
+ import "../shared-utils/three/Assets/index.js";
61
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
62
+ import "../CSS3DRenderPlugin/utils/even.js";
63
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
64
+ import "../shared-utils/three/centerPoint.js";
65
+ import "../shared-utils/three/getObjectVisible.js";
66
+ import "../shared-utils/three/PointSelector/utils/html.js";
67
+ import "../shared-utils/five/initialCSS3DRender.js";
68
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
69
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
70
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
71
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
72
+ import "../Sculpt/Meshes/Line.js";
73
+ import "../Sculpt/typings/style.js";
74
+ import "../shared-utils/five/FiveLine.js";
75
+ import "../shared-utils/three/IObject3D.js";
76
+ import "../Sculpt/utils/removeAllTag.js";
77
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
78
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
79
+ import "../shared-utils/util.js";
80
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
81
+ import "../shared-utils/isTouchDevice.js";
82
+ import "../shared-utils/five/getPosition.js";
83
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
84
+ import "../shared-utils/three/PointSelector/utils/contents.js";
56
85
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
57
86
  import "../vendor/three/build/three.module.js";
58
87
  import "../shared-utils/isTruelyObject.js";
@@ -63,11 +92,11 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
63
92
  import "../shared-utils/three/Extras/Core/Interpolations.js";
64
93
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
65
94
  const g = { flowSpeed: 0.6, rotateSpeed: 0 };
66
- class le extends S {
95
+ class ze extends S {
67
96
  constructor(e) {
68
97
  super(e);
69
98
  // ==================== public properties ====================
70
- u(this, "data");
99
+ d(this, "data");
71
100
  /** 插件状态
72
101
  * @property `visible` `<boolean>` 是否可见
73
102
  * @property `enabled` `<boolean>` 是否启用
@@ -76,28 +105,28 @@ class le extends S {
76
105
  * @property `speed.flowSpeed` `<number>` 横向流动速度,默认是 0.6 m/s
77
106
  * @property `speed.rotateSpeed` `<number>` 纵向旋转速度:默认是 0 deg/s
78
107
  */
79
- u(this, "state");
108
+ d(this, "state");
80
109
  /** 当前插件所有新增 THREE 相关副作用都在 group 下 */
81
- u(this, "group");
110
+ d(this, "group");
82
111
  /** 用于展示水流的水管 */
83
- u(this, "pipeObjects", []);
112
+ d(this, "pipeObjects", []);
84
113
  // ==================== private properties ====================
85
114
  /** 水管贴图缓存 */
86
- u(this, "texturePromiseCache", /* @__PURE__ */ new Map());
115
+ d(this, "texturePromiseCache", /* @__PURE__ */ new Map());
87
116
  /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
88
- u(this, "dispose", () => {
117
+ d(this, "dispose", () => {
89
118
  this.disable(), this.five.scene.remove(this.group), this.texturePromiseCache.forEach((e) => e.then((t) => t.dispose())), this.texturePromiseCache.clear();
90
119
  });
91
- u(this, "onWantsFiveTapGesture", (...e) => {
120
+ d(this, "onWantsFiveTapGesture", (...e) => {
92
121
  const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
93
122
  if (i.length === 0 || !this.data)
94
123
  return;
95
- const h = i[0].object.customID, a = this.data.pipes.find(({ id: o }) => o === h), c = this.data.pipelines.find((o) => a && o.pipes.includes(a));
96
- if (!(!a || !c))
124
+ 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));
125
+ if (!(!a || !p))
97
126
  return this.hooks.emit("tap", {
98
127
  intersectObjects: i,
99
128
  pipe: a,
100
- pipeline: c,
129
+ pipeline: p,
101
130
  wantsFiveTapGestureParams: e
102
131
  }), !1;
103
132
  });
@@ -120,19 +149,19 @@ class le extends S {
120
149
  */
121
150
  // eslint-disable-next-line max-params
122
151
  load(e, t, i, s) {
123
- return d(this, null, function* () {
152
+ return m(this, null, function* () {
124
153
  const r = this.data;
125
154
  this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
126
- this.data.pipes.filter((h) => !!(h != null && h.texture)).map((b) => d(this, [b], function* ({ id: h, texture: a, path: c, radius: o }) {
127
- const l = yield this.loadPipeTexture(a), f = { id: h, path: c, textureURL: a, texture: l, geometryConfig: { radius: o } };
155
+ this.data.pipes.filter((n) => !!(n != null && n.texture)).map((b) => m(this, [b], function* ({ id: n, texture: a, path: p, radius: h }) {
156
+ const l = yield this.loadPipeTexture(a), f = { id: n, path: p, textureURL: a, texture: l, geometryConfig: { radius: h } };
128
157
  return new D(f);
129
158
  }))
130
- ), this.data.pipelines.forEach((h) => {
131
- h.pipes.reduce((a, c) => {
132
- const o = this.findPipeObjectWithID(c.id);
133
- return o == null || o.setInitialDisplacement(a), a + ((o == null ? void 0 : o.pathLength) || 0);
159
+ ), this.data.pipelines.forEach((n) => {
160
+ n.pipes.reduce((a, p) => {
161
+ const h = this.findPipeObjectWithID(p.id);
162
+ return h == null || h.setInitialDisplacement(a), a + ((h == null ? void 0 : h.pathLength) || 0);
134
163
  }, 0);
135
- }), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((h) => h.setOpacity(0)), this.state.enabled && (this.group.add(...this.pipeObjects), this.five.needsRender = !0), t && this.setState(t, { userAction: i });
164
+ }), 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 });
136
165
  });
137
166
  }
138
167
  /** 更改插件 State
@@ -187,10 +216,10 @@ class le extends S {
187
216
  * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
188
217
  */
189
218
  show() {
190
- return d(this, arguments, function* (e = {}) {
219
+ return m(this, arguments, function* (e = {}) {
191
220
  if (this.state.visible)
192
221
  return;
193
- const t = m({
222
+ const t = u({
194
223
  userAction: !0,
195
224
  anime: { duration: 500 }
196
225
  }, e);
@@ -204,10 +233,10 @@ class le extends S {
204
233
  * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
205
234
  */
206
235
  hide() {
207
- return d(this, arguments, function* (e = {}) {
236
+ return m(this, arguments, function* (e = {}) {
208
237
  if (this.state.visible === !1)
209
238
  return;
210
- const t = m({
239
+ const t = u({
211
240
  userAction: !0,
212
241
  anime: { duration: 500 }
213
242
  }, e);
@@ -225,15 +254,15 @@ class le extends S {
225
254
  * @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
226
255
  * */
227
256
  switchPipelines(e) {
228
- return d(this, null, function* () {
229
- var c, o, b, l, f, w;
257
+ return m(this, null, function* () {
258
+ var p, h, b, l, f, w;
230
259
  if (!this.data)
231
260
  return;
232
- const t = (c = e == null ? void 0 : e.target) != null ? c : null, i = (o = e == null ? void 0 : e.userAction) != null ? o : !0;
261
+ const t = (p = e == null ? void 0 : e.target) != null ? p : null, i = (h = e == null ? void 0 : e.userAction) != null ? h : !0;
233
262
  this.updateState({ target: t }, i);
234
- const s = { duration: 500 }, r = (l = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? l : s, h = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
263
+ 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 = {
235
264
  target: t,
236
- showAnime: h,
265
+ showAnime: n,
237
266
  hideAnime: r
238
267
  };
239
268
  this._switchPipelines(a);
@@ -266,7 +295,7 @@ class le extends S {
266
295
  this.updateState({ speed: t }, i), this._setSpeed(t);
267
296
  }
268
297
  formatData(e, t) {
269
- return d(this, null, function* () {
298
+ return m(this, null, function* () {
270
299
  return y(e, t);
271
300
  });
272
301
  }
@@ -277,7 +306,7 @@ class le extends S {
277
306
  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);
278
307
  }
279
308
  _show(e) {
280
- return d(this, null, function* () {
309
+ return m(this, null, function* () {
281
310
  var s;
282
311
  this.hooks.emit("show", { userAction: e.userAction });
283
312
  const t = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
@@ -285,7 +314,7 @@ class le extends S {
285
314
  });
286
315
  }
287
316
  _hide(e) {
288
- return d(this, null, function* () {
317
+ return m(this, null, function* () {
289
318
  var i;
290
319
  this.hooks.emit("hide", { userAction: e.userAction });
291
320
  const t = (i = e == null ? void 0 : e.anime) != null ? i : { duration: 500 };
@@ -293,7 +322,7 @@ class le extends S {
293
322
  });
294
323
  }
295
324
  _switchPipelines(e) {
296
- return d(this, null, function* () {
325
+ return m(this, null, function* () {
297
326
  if (!this.data)
298
327
  return;
299
328
  const t = this.findPipeObjectWithTarget(e.target), i = e.hideAnime;
@@ -313,11 +342,11 @@ class le extends S {
313
342
  }
314
343
  updateState(e, t) {
315
344
  const i = this.state;
316
- this.state = m(m({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
345
+ this.state = u(u({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
317
346
  }
318
347
  /** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
319
348
  loadPipeTexture(e) {
320
- return d(this, null, function* () {
349
+ return m(this, null, function* () {
321
350
  const t = this.texturePromiseCache.get(e);
322
351
  if (t)
323
352
  return t;
@@ -343,5 +372,5 @@ class le extends S {
343
372
  }
344
373
  }
345
374
  export {
346
- le as Controller
375
+ ze as Controller
347
376
  };
@@ -14,16 +14,45 @@ import "../shared-utils/five/transformPosition.js";
14
14
  import "../shared-utils/three/temp.js";
15
15
  import "../shared-utils/dom/resizeObserver.js";
16
16
  import "hammerjs";
17
+ import "../shared-utils/three/PointSelector/index.js";
18
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
19
+ import "../shared-utils/three/Magnifier.js";
20
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
21
+ import "../shared-utils/three/Assets/index.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
17
23
  import "three/examples/jsm/renderers/CSS3DRenderer";
24
+ import "../CSS3DRenderPlugin/utils/even.js";
25
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
26
+ import "../shared-utils/three/centerPoint.js";
27
+ import "../shared-utils/three/getObjectVisible.js";
18
28
  import "@realsee/five/line";
19
29
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
20
30
  import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
21
31
  import "../vendor/three/build/three.module.js";
22
32
  import "../shared-utils/three/core/Sphere.js";
23
33
  import "animejs";
24
- import "../shared-utils/url/absoluteUrl.js";
25
- import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
34
  import "../shared-utils/isNil.js";
35
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
+ import "../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../shared-utils/five/initialCSS3DRender.js";
38
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
+ import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
+ import "../Sculpt/Meshes/Line.js";
43
+ import "../Sculpt/typings/style.js";
44
+ import "../shared-utils/five/FiveLine.js";
45
+ import "../shared-utils/three/IObject3D.js";
46
+ import "../Sculpt/utils/removeAllTag.js";
47
+ import "../Sculpt/utils/Meshes/getLengthHTML.js";
48
+ import "../shared-utils/three/applyObjectMatrixWorld.js";
49
+ import "../shared-utils/util.js";
50
+ import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
51
+ import "../shared-utils/isTouchDevice.js";
52
+ import "../shared-utils/five/getPosition.js";
53
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
54
+ import "../shared-utils/three/PointSelector/utils/contents.js";
55
+ import "../shared-utils/url/absoluteUrl.js";
27
56
  import "../shared-utils/equal.js";
28
57
  import "../shared-utils/isTruelyObject.js";
29
58
  import "../shared-utils/three/loadTexture.js";
@@ -35,8 +64,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
35
64
  import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
36
65
  import "../shared-utils/three/Extras/Core/Interpolations.js";
37
66
  import "../shared-utils/three/Extras/Core/Interpolations2.js";
38
- const M = (r) => new o(r);
67
+ const cr = (r) => new o(r);
39
68
  export {
40
- M as PipelinePlugin,
41
- M as default
69
+ cr as PipelinePlugin,
70
+ cr as default
42
71
  };
@@ -1,9 +1,10 @@
1
1
  var v = Object.defineProperty;
2
- var u = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var r = (o, e, t) => (u(o, typeof e != "symbol" ? e + "" : e, t), t);
2
+ var u = (r, o, t) => o in r ? v(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
+ var e = (r, o, t) => (u(r, typeof o != "symbol" ? o + "" : o, t), t);
4
4
  import "../../../shared-utils/tag.js";
5
5
  import "three";
6
6
  import "hammerjs";
7
+ import "../../../shared-utils/three/PointSelector/index.js";
7
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
9
  import "@realsee/five/line";
9
10
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -21,9 +22,38 @@ import "../../../shared-utils/Utils/WorkUtil.js";
21
22
  import "../../../shared-utils/five/transformPosition.js";
22
23
  import "../../../shared-utils/three/temp.js";
23
24
  import "../../../shared-utils/dom/resizeObserver.js";
25
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
26
+ import "../../../shared-utils/three/Magnifier.js";
27
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
28
+ import "../../../shared-utils/three/Assets/index.js";
29
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
30
+ import "../../../CSS3DRenderPlugin/utils/even.js";
31
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
+ import "../../../shared-utils/three/centerPoint.js";
33
+ import "../../../shared-utils/three/getObjectVisible.js";
34
+ import "../../../shared-utils/isNil.js";
35
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../../../shared-utils/five/initialCSS3DRender.js";
38
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
+ import "../../../Sculpt/Meshes/Line.js";
43
+ import "../../../Sculpt/typings/style.js";
44
+ import "../../../shared-utils/five/FiveLine.js";
45
+ import "../../../shared-utils/three/IObject3D.js";
46
+ import "../../../Sculpt/utils/removeAllTag.js";
47
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
48
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
49
+ import "../../../shared-utils/util.js";
50
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
51
+ import "../../../shared-utils/isTouchDevice.js";
52
+ import "../../../shared-utils/five/getPosition.js";
53
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
54
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
24
55
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
56
  import "../../../vendor/three/build/three.module.js";
26
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
57
  import "../../../shared-utils/animationFrame/BetterTween.js";
28
58
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
29
59
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
@@ -47,19 +77,19 @@ const d = (
47
77
  }
48
78
  `
49
79
  );
50
- class K extends h {
80
+ class gt extends h {
51
81
  constructor(t) {
52
82
  super(t, d);
53
83
  /** 初始状态下,当前水管内的水流在整体管道上的位移
54
84
  * @description 因为水管是不连续的,而要达到水流的连续效果,需要用过贴图的 uOffset 控制每根水管的初始状态
55
85
  */
56
- r(this, "initialDisplacement", 0);
57
- r(this, "oldTime", (/* @__PURE__ */ new Date()).getTime());
86
+ e(this, "initialDisplacement", 0);
87
+ e(this, "oldTime", (/* @__PURE__ */ new Date()).getTime());
58
88
  /** 横向流动速度:m / s */
59
- r(this, "flowSpeed", 0.6);
89
+ e(this, "flowSpeed", 0.6);
60
90
  /** 纵向旋转速度:deg / s */
61
- r(this, "rotateSpeed", 0);
62
- r(this, "flowAnimationDisposer", () => {
91
+ e(this, "rotateSpeed", 0);
92
+ e(this, "flowAnimationDisposer", () => {
63
93
  });
64
94
  }
65
95
  setInitialDisplacement(t, i = "backward") {
@@ -85,10 +115,10 @@ class K extends h {
85
115
  this.flowAnimationDisposer(), this.oldTime = (/* @__PURE__ */ new Date()).getTime();
86
116
  let t = 0, i = 0;
87
117
  const m = c(() => {
88
- const n = (/* @__PURE__ */ new Date()).getTime(), s = n - this.oldTime, a = this.flowSpeed * (s / 1e3), l = this.rotateSpeed * (s / 1e3);
89
- t = t + a, i = i + l;
90
- const p = 1 / 360, f = i * p;
91
- this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime = n;
118
+ const p = (/* @__PURE__ */ new Date()).getTime(), n = p - this.oldTime, s = this.flowSpeed * (n / 1e3), a = this.rotateSpeed * (n / 1e3);
119
+ t = t + s, i = i + a;
120
+ const l = 1 / 360, f = i * l;
121
+ this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime = p;
92
122
  });
93
123
  this.flowAnimationDisposer = function() {
94
124
  m(), this.moveForwardFromInitialOffset(0);
@@ -105,5 +135,5 @@ class K extends h {
105
135
  }
106
136
  }
107
137
  export {
108
- K as ObjectFlowPipe
138
+ gt as ObjectFlowPipe
109
139
  };
@@ -1,9 +1,10 @@
1
1
  var s = Object.defineProperty;
2
- var n = (e, t, i) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var o = (e, t, i) => (n(e, typeof t != "symbol" ? t + "" : t, i), i);
2
+ var n = (r, t, i) => t in r ? s(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i;
3
+ var p = (r, t, i) => (n(r, typeof t != "symbol" ? t + "" : t, i), i);
4
4
  import "../../../shared-utils/tag.js";
5
5
  import "three";
6
6
  import "hammerjs";
7
+ import "../../../shared-utils/three/PointSelector/index.js";
7
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
9
  import "@realsee/five/line";
9
10
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
@@ -21,28 +22,57 @@ import "../../../shared-utils/Utils/WorkUtil.js";
21
22
  import "../../../shared-utils/five/transformPosition.js";
22
23
  import "../../../shared-utils/three/temp.js";
23
24
  import "../../../shared-utils/dom/resizeObserver.js";
25
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
26
+ import "../../../shared-utils/three/Magnifier.js";
27
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
28
+ import "../../../shared-utils/three/Assets/index.js";
29
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
30
+ import "../../../CSS3DRenderPlugin/utils/even.js";
31
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
+ import "../../../shared-utils/three/centerPoint.js";
33
+ import "../../../shared-utils/three/getObjectVisible.js";
34
+ import "../../../shared-utils/isNil.js";
35
+ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
36
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
37
+ import "../../../shared-utils/five/initialCSS3DRender.js";
38
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
42
+ import "../../../Sculpt/Meshes/Line.js";
43
+ import "../../../Sculpt/typings/style.js";
44
+ import "../../../shared-utils/five/FiveLine.js";
45
+ import "../../../shared-utils/three/IObject3D.js";
46
+ import "../../../Sculpt/utils/removeAllTag.js";
47
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
48
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
49
+ import "../../../shared-utils/util.js";
50
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
51
+ import "../../../shared-utils/isTouchDevice.js";
52
+ import "../../../shared-utils/five/getPosition.js";
53
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
54
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
24
55
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
25
56
  import "../../../vendor/three/build/three.module.js";
26
- import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
27
57
  import "../../../shared-utils/animationFrame/index.js";
28
58
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
29
59
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
30
60
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
31
- class J extends a {
61
+ class ci extends a {
32
62
  constructor(i) {
33
63
  super(i);
34
- o(this, "imageCount", 64);
35
- o(this, "highlightAnime");
64
+ p(this, "imageCount", 64);
65
+ p(this, "highlightAnime");
36
66
  }
37
67
  highlight(i) {
38
- const r = (i == null ? void 0 : i.duration) || 500;
39
- this.disposeAnime(), this.highlightAnime = h(r).onUpdate(({ progress: m }) => this.setOpacity(m)).yoyo(!0).repeat(1 / 0).play();
68
+ const m = (i == null ? void 0 : i.duration) || 500;
69
+ this.disposeAnime(), this.highlightAnime = h(m).onUpdate(({ progress: o }) => this.setOpacity(o)).yoyo(!0).repeat(1 / 0).play();
40
70
  }
41
71
  highlight1(i) {
42
- const r = (i == null ? void 0 : i.duration) || 2500;
43
- this.disposeAnime(), this.highlightAnime = h(r).onUpdate(({ progress: m }) => {
44
- const p = -(Math.ceil(m * this.imageCount) - 1) / this.imageCount;
45
- this.material.uniforms.vOffset.value !== p && (this.material.uniforms.vOffset.value = p, this.material.needsUpdate = !0, this.needsRender = !0);
72
+ const m = (i == null ? void 0 : i.duration) || 2500;
73
+ this.disposeAnime(), this.highlightAnime = h(m).onUpdate(({ progress: o }) => {
74
+ const e = -(Math.ceil(o * this.imageCount) - 1) / this.imageCount;
75
+ this.material.uniforms.vOffset.value !== e && (this.material.uniforms.vOffset.value = e, this.material.needsUpdate = !0, this.needsRender = !0);
46
76
  }).repeat(1 / 0).play();
47
77
  }
48
78
  disposeAnime() {
@@ -51,5 +81,5 @@ class J extends a {
51
81
  }
52
82
  }
53
83
  export {
54
- J as ObjectHighlightPipe
84
+ ci as ObjectHighlightPipe
55
85
  };