@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.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +2 -2
- package/dist/index.cjs.js +255 -255
- package/dist/index.js +2733 -2732
- package/dist/index.umd.js +251 -251
- package/dist/shared-utils/tag.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +1 -0
- package/libs/AreaMakerPlugin/Controller.js +104 -74
- package/libs/AreaMakerPlugin/index.js +33 -3
- package/libs/AreaMakerPlugin/utils/Item.js +66 -36
- package/libs/CSS3DRenderPlugin/Controller.js +35 -15
- package/libs/CSS3DRenderPlugin/index.js +34 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
- package/libs/CruisePlugin/BaseController.js +59 -29
- package/libs/CruisePlugin/Move.js +32 -13
- package/libs/CruisePlugin/Work.js +65 -46
- package/libs/CruisePlugin/index.js +37 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +59 -40
- package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
- package/libs/GuideLinePlugin/index.js +37 -18
- package/libs/ModelMakerPlugin/Controller.js +50 -32
- package/libs/ModelMakerPlugin/index.js +33 -15
- package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
- package/libs/ModelTVVideoPlugin/index.js +23 -3
- package/libs/Object3DHelperPlugin/Controller.js +49 -30
- package/libs/Object3DHelperPlugin/index.js +36 -17
- package/libs/PanoCompassPlugin/Controller.js +33 -13
- package/libs/PanoCompassPlugin/index.js +34 -14
- package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
- package/libs/PanoDoorLabelPlugin/index.js +34 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
- package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
- package/libs/PanoMeasurePlugin/Model/area.js +41 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
- package/libs/PanoRulerProPlugin/Controller.js +60 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
- package/libs/PanoRulerProPlugin/index.js +33 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
- package/libs/PanoSpatialTagPlugin/index.js +21 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
- package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
- package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
- package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
- package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
- package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
- package/libs/PanoTagPlugin/controller/index.js +45 -26
- package/libs/PanoTagPlugin/index.js +40 -21
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
- package/libs/PanoVideoPlugin/Controller.js +91 -61
- package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
- package/libs/PanoVideoPlugin/index.js +36 -6
- package/libs/PipelinePlugin/Controller.js +80 -51
- package/libs/PipelinePlugin/index.js +34 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +9 -8
- package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Polygon.js +3 -2
- package/libs/Sculpt/Meshes/Prism.js +8 -7
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.d.ts +2 -2
- package/libs/Sculpt/index.js +3 -2
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
- package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +28 -28
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +44 -42
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +1 -1
- package/libs/shared-utils/tag.js +41 -41
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/index.d.ts +1 -0
- package/libs/shared-utils/three/index.js +1 -0
- 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 = (
|
|
5
|
-
for (var e in
|
|
6
|
-
P.call(
|
|
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(
|
|
9
|
-
_.call(
|
|
10
|
-
return
|
|
8
|
+
for (var e of v(o))
|
|
9
|
+
_.call(o, e) && A(c, e, o[e]);
|
|
10
|
+
return c;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
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
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
n(e.next(a));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
i(p);
|
|
19
19
|
}
|
|
20
20
|
}, r = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
n(e.throw(a));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
i(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
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
|
|
95
|
+
class ze extends S {
|
|
67
96
|
constructor(e) {
|
|
68
97
|
super(e);
|
|
69
98
|
// ==================== public properties ====================
|
|
70
|
-
|
|
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
|
-
|
|
108
|
+
d(this, "state");
|
|
80
109
|
/** 当前插件所有新增 THREE 相关副作用都在 group 下 */
|
|
81
|
-
|
|
110
|
+
d(this, "group");
|
|
82
111
|
/** 用于展示水流的水管 */
|
|
83
|
-
|
|
112
|
+
d(this, "pipeObjects", []);
|
|
84
113
|
// ==================== private properties ====================
|
|
85
114
|
/** 水管贴图缓存 */
|
|
86
|
-
|
|
115
|
+
d(this, "texturePromiseCache", /* @__PURE__ */ new Map());
|
|
87
116
|
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
88
|
-
|
|
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
|
-
|
|
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
|
|
96
|
-
if (!(!a || !
|
|
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:
|
|
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
|
|
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((
|
|
127
|
-
const l = yield this.loadPipeTexture(a), f = { id:
|
|
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((
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
return
|
|
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((
|
|
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
|
|
219
|
+
return m(this, arguments, function* (e = {}) {
|
|
191
220
|
if (this.state.visible)
|
|
192
221
|
return;
|
|
193
|
-
const t =
|
|
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
|
|
236
|
+
return m(this, arguments, function* (e = {}) {
|
|
208
237
|
if (this.state.visible === !1)
|
|
209
238
|
return;
|
|
210
|
-
const t =
|
|
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
|
|
229
|
-
var
|
|
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 = (
|
|
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,
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
|
67
|
+
const cr = (r) => new o(r);
|
|
39
68
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
69
|
+
cr as PipelinePlugin,
|
|
70
|
+
cr as default
|
|
42
71
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
|
-
var u = (
|
|
3
|
-
var
|
|
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
|
|
80
|
+
class gt extends h {
|
|
51
81
|
constructor(t) {
|
|
52
82
|
super(t, d);
|
|
53
83
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
54
84
|
* @description 因为水管是不连续的,而要达到水流的连续效果,需要用过贴图的 uOffset 控制每根水管的初始状态
|
|
55
85
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
86
|
+
e(this, "initialDisplacement", 0);
|
|
87
|
+
e(this, "oldTime", (/* @__PURE__ */ new Date()).getTime());
|
|
58
88
|
/** 横向流动速度:m / s */
|
|
59
|
-
|
|
89
|
+
e(this, "flowSpeed", 0.6);
|
|
60
90
|
/** 纵向旋转速度:deg / s */
|
|
61
|
-
|
|
62
|
-
|
|
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
|
|
89
|
-
t = t +
|
|
90
|
-
const
|
|
91
|
-
this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime =
|
|
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
|
-
|
|
138
|
+
gt as ObjectFlowPipe
|
|
109
139
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var s = Object.defineProperty;
|
|
2
|
-
var n = (
|
|
3
|
-
var
|
|
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
|
|
61
|
+
class ci extends a {
|
|
32
62
|
constructor(i) {
|
|
33
63
|
super(i);
|
|
34
|
-
|
|
35
|
-
|
|
64
|
+
p(this, "imageCount", 64);
|
|
65
|
+
p(this, "highlightAnime");
|
|
36
66
|
}
|
|
37
67
|
highlight(i) {
|
|
38
|
-
const
|
|
39
|
-
this.disposeAnime(), this.highlightAnime = h(
|
|
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
|
|
43
|
-
this.disposeAnime(), this.highlightAnime = h(
|
|
44
|
-
const
|
|
45
|
-
this.material.uniforms.vOffset.value !==
|
|
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
|
-
|
|
84
|
+
ci as ObjectHighlightPipe
|
|
55
85
|
};
|