@realsee/dnalogel 3.43.0 → 3.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/dist/Sculpt/Meshes/Line.d.ts +19 -1
- package/dist/Sculpt/utils/color.d.ts +1 -1
- package/dist/index.cjs.js +102 -68
- package/dist/index.js +7127 -6867
- package/dist/index.umd.js +106 -72
- package/dist/shared-utils/five/getPosition.d.ts +12 -4
- package/dist/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/dist/shared-utils/math/deg2Rad.d.ts +1 -1
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -1
- package/dist/shared-utils/positionToVector3.d.ts +6 -6
- package/{libs/shared-utils/three/PointSelector.d.ts → dist/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/dist/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/dist/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/dist/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/dist/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -3
- package/libs/AreaMakerPlugin/Controller.js +5 -18
- package/libs/AreaMakerPlugin/index.js +4 -17
- package/libs/AreaMakerPlugin/utils/Item.js +13 -26
- package/libs/CSS3DRenderPlugin/Controller.js +9 -6
- package/libs/CSS3DRenderPlugin/index.js +12 -9
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +73 -56
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +11 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +14 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +13 -0
- package/libs/CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js +85 -0
- package/libs/CruisePlugin/BaseController.js +20 -33
- package/libs/CruisePlugin/Move.js +25 -23
- package/libs/CruisePlugin/Work.js +10 -8
- package/libs/CruisePlugin/index.js +23 -21
- package/libs/CurrentPanoImagePlugin/Controller.js +30 -43
- package/libs/CurrentPanoImagePlugin/index.js +5 -18
- package/libs/GuideLinePlugin/Controller.js +15 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +19 -17
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -5
- package/libs/GuideLinePlugin/GuideLineModeItem.js +21 -19
- package/libs/GuideLinePlugin/index.js +23 -21
- package/libs/ModelMakerPlugin/Controller.js +19 -30
- package/libs/ModelMakerPlugin/index.js +11 -22
- package/libs/ModelTVVideoPlugin/Plugin.js +13 -10
- package/libs/ModelTVVideoPlugin/index.js +12 -9
- package/libs/Object3DHelperPlugin/Controller.js +7 -5
- package/libs/Object3DHelperPlugin/index.js +23 -21
- package/libs/PanoCompassPlugin/Controller.js +18 -15
- package/libs/PanoCompassPlugin/index.js +21 -18
- package/libs/PanoDoorLabelPlugin/BaseController.js +24 -37
- package/libs/PanoDoorLabelPlugin/Controller.js +56 -69
- package/libs/PanoDoorLabelPlugin/index.js +5 -18
- package/libs/PanoMeasurePlugin/Components/Controller0.js +40 -47
- package/libs/PanoMeasurePlugin/Components/Controller1.js +72 -79
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +6 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -39
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +177 -153
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +60 -74
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +59 -60
- package/libs/PanoMeasurePlugin/Model/area.js +30 -44
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -16
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +42 -49
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +35 -40
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +23 -36
- package/libs/PanoSpatialTagPlugin/Plugin.js +41 -38
- package/libs/PanoSpatialTagPlugin/index.js +10 -7
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +29 -43
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +55 -69
- package/libs/PanoTagPlugin/Components/Tag/index.js +9 -19
- package/libs/PanoTagPlugin/Components/TagContainer.js +42 -52
- package/libs/PanoTagPlugin/Components/TagItem.js +9 -19
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +56 -64
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +29 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +11 -21
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -28
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -16
- package/libs/PanoTagPlugin/controller/TagUtil.js +12 -9
- package/libs/PanoTagPlugin/controller/index.js +27 -25
- package/libs/PanoTagPlugin/index.js +28 -26
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +43 -57
- package/libs/PanoVideoPlugin/Controller.js +52 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +11 -25
- package/libs/PanoVideoPlugin/index.js +8 -21
- package/libs/PipelinePlugin/Controller.js +44 -57
- package/libs/PipelinePlugin/index.js +5 -18
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +20 -34
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -30
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +39 -53
- package/libs/Sculpt/Meshes/Box.js +3 -3
- package/libs/Sculpt/Meshes/Cylinder.js +14 -14
- package/libs/Sculpt/Meshes/Line.d.ts +19 -1
- package/libs/Sculpt/Meshes/Line.js +40 -41
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -6
- package/libs/Sculpt/Meshes/Point.js +3 -3
- package/libs/Sculpt/Meshes/Polyline.js +3 -3
- package/libs/Sculpt/Meshes/Prism.js +11 -12
- package/libs/Sculpt/Meshes/Rectangle.js +3 -3
- package/libs/Sculpt/Objects/Point/Editor.js +10 -10
- package/libs/Sculpt/Objects/Polygon/Editor.js +6 -6
- package/libs/Sculpt/Objects/Polyline/Editor.js +4 -4
- package/libs/Sculpt/index.js +3 -3
- package/libs/Sculpt/utils/Modules/Global.js +1 -1
- package/libs/Sculpt/utils/color.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
- package/libs/base/BasePlugin.js +4 -4
- package/libs/floorplan/Components/Compass.js +29 -31
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +9 -22
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -19
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -18
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +48 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -18
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +28 -41
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -18
- package/libs/floorplan/index.js +3 -3
- package/libs/index.js +140 -137
- package/libs/shared-utils/five/getPosition.d.ts +12 -4
- package/libs/shared-utils/five/getPosition.js +23 -23
- package/libs/shared-utils/five/index.js +2 -2
- package/libs/shared-utils/five/initialCSS3DRender.d.ts +2 -0
- package/libs/shared-utils/five/initialCSS3DRender.js +17 -0
- package/libs/shared-utils/five/lookObject.js +3 -3
- package/libs/shared-utils/index.js +38 -40
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/deg2Rad.d.ts +1 -1
- package/libs/shared-utils/math/rad2Deg.d.ts +1 -1
- package/libs/shared-utils/positionToVector3.d.ts +6 -6
- package/{dist/shared-utils/three/PointSelector.d.ts → libs/shared-utils/three/PointSelector/index.d.ts} +23 -7
- package/libs/shared-utils/three/{PointSelector.js → PointSelector/index.js} +54 -45
- package/libs/shared-utils/three/{PointHelper.d.ts → PointSelector/utils/PointHelper.d.ts} +11 -3
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +95 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.d.ts +30 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +153 -0
- package/libs/shared-utils/three/{PointSelectorHelper.d.ts → PointSelector/utils/PointSelectorHelper.d.ts} +9 -10
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +60 -0
- package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.js +3 -4
- package/libs/shared-utils/three/PointSelector/utils/typing.d.ts +8 -0
- package/libs/shared-utils/three/index.d.ts +2 -3
- package/libs/shared-utils/three/index.js +3 -3
- package/package.json +3 -3
- package/dist/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/libs/shared-utils/three/PointDomHelper.js +0 -62
- package/libs/shared-utils/three/PointHelper.js +0 -73
- package/libs/shared-utils/three/PointSelectorHelper.js +0 -52
- /package/dist/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
- /package/libs/{PanoMeasurePlugin/Modules/rangePiece → shared-utils/three/PointSelector/utils}/html.d.ts +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var P = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var A = (
|
|
4
|
+
var A = (d, n, e) => n in d ? j(d, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[n] = e, l = (d, n) => {
|
|
5
5
|
for (var e in n || (n = {}))
|
|
6
|
-
P.call(n, e) && A(
|
|
6
|
+
P.call(n, e) && A(d, e, n[e]);
|
|
7
7
|
if (v)
|
|
8
8
|
for (var e of v(n))
|
|
9
|
-
_.call(n, e) && A(
|
|
10
|
-
return
|
|
9
|
+
_.call(n, e) && A(d, e, n[e]);
|
|
10
|
+
return d;
|
|
11
11
|
};
|
|
12
|
-
var u = (
|
|
13
|
-
var
|
|
12
|
+
var u = (d, n, e) => (A(d, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
+
var p = (d, n, e) => new Promise((t, i) => {
|
|
14
14
|
var s = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
i(
|
|
16
|
+
h(e.next(a));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
i(c);
|
|
19
19
|
}
|
|
20
20
|
}, r = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
i(
|
|
22
|
+
h(e.throw(a));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
i(c);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, h = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(s, r);
|
|
27
|
+
h((e = e.apply(d, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import * as F from "three";
|
|
30
30
|
import { Controller as S } from "../base/BasePluginWithData.js";
|
|
@@ -36,22 +36,8 @@ import { ObjectFlowPipe as D } from "./utils/Objects/FlowPipe.js";
|
|
|
36
36
|
import "../base/BasePlugin.js";
|
|
37
37
|
import "../shared-utils/Subscribe.js";
|
|
38
38
|
import "hammerjs";
|
|
39
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
-
import "../shared-utils/positionToVector3.js";
|
|
42
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
43
39
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
44
|
-
import "
|
|
45
|
-
import "../shared-utils/util.js";
|
|
46
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
47
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
48
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
50
|
-
import "../shared-utils/three/centerPoint.js";
|
|
51
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
52
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
53
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
54
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
40
|
+
import "@realsee/five/line";
|
|
55
41
|
import "../shared-utils/three/THREESphere.js";
|
|
56
42
|
import "animejs";
|
|
57
43
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -60,6 +46,7 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
60
46
|
import "../shared-utils/five/transformPosition.js";
|
|
61
47
|
import "../shared-utils/five/getFiveModel.js";
|
|
62
48
|
import "../shared-utils/url/absoluteUrl.js";
|
|
49
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
63
50
|
import "../shared-utils/isTruelyObject.js";
|
|
64
51
|
import "../shared-utils/animationFrame/index.js";
|
|
65
52
|
import "./utils/Objects/Pipe.js";
|
|
@@ -68,7 +55,7 @@ import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
|
68
55
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
69
56
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
70
57
|
const g = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
71
|
-
class
|
|
58
|
+
class ne extends S {
|
|
72
59
|
constructor(e) {
|
|
73
60
|
super(e);
|
|
74
61
|
// ==================== public properties ====================
|
|
@@ -97,12 +84,12 @@ class Oe extends S {
|
|
|
97
84
|
const [t] = e, i = t.intersectObjects(this.pipeObjects, !1);
|
|
98
85
|
if (i.length === 0 || !this.data)
|
|
99
86
|
return;
|
|
100
|
-
const
|
|
101
|
-
if (!(!a || !
|
|
87
|
+
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));
|
|
88
|
+
if (!(!a || !c))
|
|
102
89
|
return this.hooks.emit("tap", {
|
|
103
90
|
intersectObjects: i,
|
|
104
91
|
pipe: a,
|
|
105
|
-
pipeline:
|
|
92
|
+
pipeline: c,
|
|
106
93
|
wantsFiveTapGestureParams: e
|
|
107
94
|
}), !1;
|
|
108
95
|
});
|
|
@@ -125,19 +112,19 @@ class Oe extends S {
|
|
|
125
112
|
*/
|
|
126
113
|
// eslint-disable-next-line max-params
|
|
127
114
|
load(e, t, i, s) {
|
|
128
|
-
return
|
|
115
|
+
return p(this, null, function* () {
|
|
129
116
|
const r = this.data;
|
|
130
117
|
this.data = yield this.formatData(e, s), this.removeAllPipes(), this.hooks.emit("dataChange", this.data, r), this.pipeObjects = yield Promise.all(
|
|
131
|
-
this.data.pipes.filter((
|
|
132
|
-
const
|
|
118
|
+
this.data.pipes.filter((h) => !!(h != null && h.texture)).map((b) => p(this, [b], function* ({ id: h, texture: a, path: c, radius: o }) {
|
|
119
|
+
const m = yield this.loadPipeTexture(a), f = { id: h, path: c, textureURL: a, texture: m, geometryConfig: { radius: o } };
|
|
133
120
|
return new D(f);
|
|
134
121
|
}))
|
|
135
|
-
), this.data.pipelines.forEach((
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
return
|
|
122
|
+
), this.data.pipelines.forEach((h) => {
|
|
123
|
+
h.pipes.reduce((a, c) => {
|
|
124
|
+
const o = this.findPipeObjectWithID(c.id);
|
|
125
|
+
return o == null || o.setInitialDisplacement(a), a + ((o == null ? void 0 : o.pathLength) || 0);
|
|
139
126
|
}, 0);
|
|
140
|
-
}), this.hooks.emit("dataLoaded", this.data), this.state.visible === !1 && this.pipeObjects.forEach((
|
|
127
|
+
}), 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 });
|
|
141
128
|
});
|
|
142
129
|
}
|
|
143
130
|
/** 更改插件 State
|
|
@@ -192,10 +179,10 @@ class Oe extends S {
|
|
|
192
179
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
193
180
|
*/
|
|
194
181
|
show() {
|
|
195
|
-
return
|
|
182
|
+
return p(this, arguments, function* (e = {}) {
|
|
196
183
|
if (this.state.visible)
|
|
197
184
|
return;
|
|
198
|
-
const t =
|
|
185
|
+
const t = l({
|
|
199
186
|
userAction: !0,
|
|
200
187
|
anime: { duration: 500 }
|
|
201
188
|
}, e);
|
|
@@ -209,10 +196,10 @@ class Oe extends S {
|
|
|
209
196
|
* @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
210
197
|
*/
|
|
211
198
|
hide() {
|
|
212
|
-
return
|
|
199
|
+
return p(this, arguments, function* (e = {}) {
|
|
213
200
|
if (this.state.visible === !1)
|
|
214
201
|
return;
|
|
215
|
-
const t =
|
|
202
|
+
const t = l({
|
|
216
203
|
userAction: !0,
|
|
217
204
|
anime: { duration: 500 }
|
|
218
205
|
}, e);
|
|
@@ -230,15 +217,15 @@ class Oe extends S {
|
|
|
230
217
|
* @param `options.userAction` `<boolean> | <undefined>` 是否是否是用户操作。
|
|
231
218
|
* */
|
|
232
219
|
switchPipelines(e) {
|
|
233
|
-
return
|
|
234
|
-
var
|
|
220
|
+
return p(this, null, function* () {
|
|
221
|
+
var c, o, b, m, f, w;
|
|
235
222
|
if (!this.data)
|
|
236
223
|
return;
|
|
237
|
-
const t = (
|
|
224
|
+
const t = (c = e == null ? void 0 : e.target) != null ? c : null, i = (o = e == null ? void 0 : e.userAction) != null ? o : !0;
|
|
238
225
|
this.updateState({ target: t }, i);
|
|
239
|
-
const s = { duration: 500 }, r = (
|
|
226
|
+
const s = { duration: 500 }, r = (m = (b = e == null ? void 0 : e.hideAnime) != null ? b : e == null ? void 0 : e.anime) != null ? m : s, h = (w = (f = e == null ? void 0 : e.showAnime) != null ? f : e == null ? void 0 : e.anime) != null ? w : s, a = {
|
|
240
227
|
target: t,
|
|
241
|
-
showAnime:
|
|
228
|
+
showAnime: h,
|
|
242
229
|
hideAnime: r
|
|
243
230
|
};
|
|
244
231
|
this._switchPipelines(a);
|
|
@@ -271,7 +258,7 @@ class Oe extends S {
|
|
|
271
258
|
this.updateState({ speed: t }, i), this._setSpeed(t);
|
|
272
259
|
}
|
|
273
260
|
formatData(e, t) {
|
|
274
|
-
return
|
|
261
|
+
return p(this, null, function* () {
|
|
275
262
|
return y(e, t);
|
|
276
263
|
});
|
|
277
264
|
}
|
|
@@ -282,7 +269,7 @@ class Oe extends S {
|
|
|
282
269
|
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);
|
|
283
270
|
}
|
|
284
271
|
_show(e) {
|
|
285
|
-
return
|
|
272
|
+
return p(this, null, function* () {
|
|
286
273
|
var s;
|
|
287
274
|
this.hooks.emit("show", { userAction: e.userAction });
|
|
288
275
|
const t = (s = e == null ? void 0 : e.anime) != null ? s : { duration: 500 }, i = this.findPipeObjectWithTarget(this.state.target);
|
|
@@ -290,7 +277,7 @@ class Oe extends S {
|
|
|
290
277
|
});
|
|
291
278
|
}
|
|
292
279
|
_hide(e) {
|
|
293
|
-
return
|
|
280
|
+
return p(this, null, function* () {
|
|
294
281
|
var i;
|
|
295
282
|
this.hooks.emit("hide", { userAction: e.userAction });
|
|
296
283
|
const t = (i = e == null ? void 0 : e.anime) != null ? i : { duration: 500 };
|
|
@@ -298,7 +285,7 @@ class Oe extends S {
|
|
|
298
285
|
});
|
|
299
286
|
}
|
|
300
287
|
_switchPipelines(e) {
|
|
301
|
-
return
|
|
288
|
+
return p(this, null, function* () {
|
|
302
289
|
if (!this.data)
|
|
303
290
|
return;
|
|
304
291
|
const t = this.findPipeObjectWithTarget(e.target), i = e.hideAnime;
|
|
@@ -318,11 +305,11 @@ class Oe extends S {
|
|
|
318
305
|
}
|
|
319
306
|
updateState(e, t) {
|
|
320
307
|
const i = this.state;
|
|
321
|
-
this.state =
|
|
308
|
+
this.state = l(l({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: t });
|
|
322
309
|
}
|
|
323
310
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
324
311
|
loadPipeTexture(e) {
|
|
325
|
-
return
|
|
312
|
+
return p(this, null, function* () {
|
|
326
313
|
const t = this.texturePromiseCache.get(e);
|
|
327
314
|
if (t)
|
|
328
315
|
return t;
|
|
@@ -348,5 +335,5 @@ class Oe extends S {
|
|
|
348
335
|
}
|
|
349
336
|
}
|
|
350
337
|
export {
|
|
351
|
-
|
|
338
|
+
ne as Controller
|
|
352
339
|
};
|
|
@@ -4,22 +4,8 @@ import "../base/BasePluginWithData.js";
|
|
|
4
4
|
import "../base/BasePlugin.js";
|
|
5
5
|
import "../shared-utils/Subscribe.js";
|
|
6
6
|
import "hammerjs";
|
|
7
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
8
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
9
|
-
import "../shared-utils/positionToVector3.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
-
import "
|
|
13
|
-
import "../shared-utils/util.js";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
15
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
-
import "../shared-utils/three/centerPoint.js";
|
|
19
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
8
|
+
import "@realsee/five/line";
|
|
23
9
|
import "../shared-utils/three/THREESphere.js";
|
|
24
10
|
import "animejs";
|
|
25
11
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
@@ -28,6 +14,7 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
28
14
|
import "../shared-utils/five/transformPosition.js";
|
|
29
15
|
import "../shared-utils/five/getFiveModel.js";
|
|
30
16
|
import "../shared-utils/url/absoluteUrl.js";
|
|
17
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
31
18
|
import "../shared-utils/equal.js";
|
|
32
19
|
import "../shared-utils/isTruelyObject.js";
|
|
33
20
|
import "../shared-utils/isNil.js";
|
|
@@ -40,8 +27,8 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
40
27
|
import "../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
41
28
|
import "../shared-utils/three/Extras/Core/Interpolations.js";
|
|
42
29
|
import "../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
43
|
-
const
|
|
30
|
+
const E = (r) => new o(r);
|
|
44
31
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
E as PipelinePlugin,
|
|
33
|
+
E as default
|
|
47
34
|
};
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
|
-
var u = (o,
|
|
3
|
-
var r = (o,
|
|
2
|
+
var u = (o, i, t) => i in o ? v(o, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[i] = t;
|
|
3
|
+
var r = (o, i, t) => (u(o, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
6
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
+
import "@realsee/five/line";
|
|
9
8
|
import "../../../shared-utils/three/THREESphere.js";
|
|
10
9
|
import "animejs";
|
|
11
10
|
import { requestAnimationFrameInterval as c } from "../../../shared-utils/animationFrame/index.js";
|
|
12
11
|
import { ObjectPipe as h } from "./Pipe.js";
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
15
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
17
|
-
import "../../../shared-utils/util.js";
|
|
18
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
19
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
20
|
-
import "../../../shared-utils/Subscribe.js";
|
|
21
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
22
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
23
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
24
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
25
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
26
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
12
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
27
13
|
import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
28
14
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
29
15
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
@@ -47,7 +33,7 @@ const d = (
|
|
|
47
33
|
}
|
|
48
34
|
`
|
|
49
35
|
);
|
|
50
|
-
class
|
|
36
|
+
class x extends h {
|
|
51
37
|
constructor(t) {
|
|
52
38
|
super(t, d);
|
|
53
39
|
/** 初始状态下,当前水管内的水流在整体管道上的位移
|
|
@@ -62,36 +48,36 @@ class K extends h {
|
|
|
62
48
|
r(this, "flowAnimationDisposer", () => {
|
|
63
49
|
});
|
|
64
50
|
}
|
|
65
|
-
setInitialDisplacement(t,
|
|
66
|
-
this.initialDisplacement = Math.abs(t) * (
|
|
51
|
+
setInitialDisplacement(t, e = "backward") {
|
|
52
|
+
this.initialDisplacement = Math.abs(t) * (e === "forward" ? -1 : 1), this.moveFromOrigin(this.initialDisplacement);
|
|
67
53
|
}
|
|
68
54
|
/** 水流移动「基于初始位置」
|
|
69
55
|
* @description 因为贴图的运动与 u 的 uOffset 相反,比较反直觉,所以封装方法易于理解
|
|
70
56
|
* @param displacement 位移:米 * 方向(向前 -> 正, 向后 -> 负)
|
|
71
57
|
*/
|
|
72
58
|
moveFromOrigin(t) {
|
|
73
|
-
const
|
|
74
|
-
return this.material.uniforms.uOffset.value =
|
|
59
|
+
const e = t * this.uPreMeter;
|
|
60
|
+
return this.material.uniforms.uOffset.value = e, this.material.needsUpdate = !0, this.needsRender = !0, !0;
|
|
75
61
|
}
|
|
76
62
|
/** 水流移动「基于调整管道差值之后的位置」
|
|
77
63
|
*
|
|
78
64
|
* @param distance 位移:米 * 方向
|
|
79
65
|
*/
|
|
80
66
|
moveForwardFromInitialOffset(t) {
|
|
81
|
-
const
|
|
82
|
-
this.moveFromOrigin(
|
|
67
|
+
const e = t * -1, n = this.initialDisplacement + e;
|
|
68
|
+
this.moveFromOrigin(n);
|
|
83
69
|
}
|
|
84
70
|
flow() {
|
|
85
71
|
this.flowAnimationDisposer(), this.oldTime = (/* @__PURE__ */ new Date()).getTime();
|
|
86
|
-
let t = 0,
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
t = t +
|
|
90
|
-
const
|
|
91
|
-
this.material.uniforms.vOffset.value =
|
|
72
|
+
let t = 0, e = 0;
|
|
73
|
+
const n = c(() => {
|
|
74
|
+
const s = (/* @__PURE__ */ new Date()).getTime(), a = s - this.oldTime, m = this.flowSpeed * (a / 1e3), l = this.rotateSpeed * (a / 1e3);
|
|
75
|
+
t = t + m, e = e + l;
|
|
76
|
+
const f = 1 / 360, p = e * f;
|
|
77
|
+
this.material.uniforms.vOffset.value = p, this.moveForwardFromInitialOffset(t), this.oldTime = s;
|
|
92
78
|
});
|
|
93
79
|
this.flowAnimationDisposer = function() {
|
|
94
|
-
|
|
80
|
+
n(), this.moveForwardFromInitialOffset(0);
|
|
95
81
|
};
|
|
96
82
|
}
|
|
97
83
|
stopFlow() {
|
|
@@ -105,5 +91,5 @@ class K extends h {
|
|
|
105
91
|
}
|
|
106
92
|
}
|
|
107
93
|
export {
|
|
108
|
-
|
|
94
|
+
x as ObjectFlowPipe
|
|
109
95
|
};
|
|
@@ -1,48 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var a = (e, t, i) => t in e ? o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var s = (e, t, i) => (a(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
4
|
import "three";
|
|
5
5
|
import "hammerjs";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
6
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
|
+
import "@realsee/five/line";
|
|
9
8
|
import "../../../shared-utils/three/THREESphere.js";
|
|
10
9
|
import "animejs";
|
|
11
|
-
import { tweenProgress as
|
|
12
|
-
import { ObjectPipe as
|
|
13
|
-
import "../../../
|
|
14
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
15
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
17
|
-
import "../../../shared-utils/util.js";
|
|
18
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
19
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
20
|
-
import "../../../shared-utils/Subscribe.js";
|
|
21
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
22
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
23
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
24
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
25
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
26
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
10
|
+
import { tweenProgress as n } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
11
|
+
import { ObjectPipe as p } from "./Pipe.js";
|
|
12
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
27
13
|
import "../../../shared-utils/animationFrame/index.js";
|
|
28
14
|
import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
29
15
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
30
16
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
31
|
-
class
|
|
17
|
+
class x extends p {
|
|
32
18
|
constructor(i) {
|
|
33
19
|
super(i);
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
s(this, "imageCount", 64);
|
|
21
|
+
s(this, "highlightAnime");
|
|
36
22
|
}
|
|
37
23
|
highlight(i) {
|
|
38
24
|
const r = (i == null ? void 0 : i.duration) || 500;
|
|
39
|
-
this.disposeAnime(), this.highlightAnime =
|
|
25
|
+
this.disposeAnime(), this.highlightAnime = n(r).onUpdate(({ progress: h }) => this.setOpacity(h)).yoyo(!0).repeat(1 / 0).play();
|
|
40
26
|
}
|
|
41
27
|
highlight1(i) {
|
|
42
28
|
const r = (i == null ? void 0 : i.duration) || 2500;
|
|
43
|
-
this.disposeAnime(), this.highlightAnime =
|
|
44
|
-
const
|
|
45
|
-
this.material.uniforms.vOffset.value !==
|
|
29
|
+
this.disposeAnime(), this.highlightAnime = n(r).onUpdate(({ progress: h }) => {
|
|
30
|
+
const m = -(Math.ceil(h * this.imageCount) - 1) / this.imageCount;
|
|
31
|
+
this.material.uniforms.vOffset.value !== m && (this.material.uniforms.vOffset.value = m, this.material.needsUpdate = !0, this.needsRender = !0);
|
|
46
32
|
}).repeat(1 / 0).play();
|
|
47
33
|
}
|
|
48
34
|
disposeAnime() {
|
|
@@ -51,5 +37,5 @@ class J extends a {
|
|
|
51
37
|
}
|
|
52
38
|
}
|
|
53
39
|
export {
|
|
54
|
-
|
|
40
|
+
x as ObjectHighlightPipe
|
|
55
41
|
};
|
|
@@ -1,54 +1,40 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var A = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var f = (
|
|
4
|
+
var f = (o, e, t) => e in o ? d(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, y = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
A.call(e, t) && f(
|
|
6
|
+
A.call(e, t) && f(o, t, e[t]);
|
|
7
7
|
if (v)
|
|
8
8
|
for (var t of v(e))
|
|
9
|
-
w.call(e, t) && f(
|
|
10
|
-
return
|
|
9
|
+
w.call(e, t) && f(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var l = (
|
|
14
|
-
var
|
|
12
|
+
var p = (o, e, t) => (f(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var l = (o, e, t) => new Promise((i, s) => {
|
|
14
|
+
var a = (u) => {
|
|
15
15
|
try {
|
|
16
|
-
n(t.next(
|
|
16
|
+
n(t.next(u));
|
|
17
17
|
} catch (c) {
|
|
18
18
|
s(c);
|
|
19
19
|
}
|
|
20
|
-
}, r = (
|
|
20
|
+
}, r = (u) => {
|
|
21
21
|
try {
|
|
22
|
-
n(t.throw(
|
|
22
|
+
n(t.throw(u));
|
|
23
23
|
} catch (c) {
|
|
24
24
|
s(c);
|
|
25
25
|
}
|
|
26
|
-
}, n = (
|
|
27
|
-
n((t = t.apply(
|
|
26
|
+
}, n = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(a, r);
|
|
27
|
+
n((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import * as
|
|
29
|
+
import * as m from "three";
|
|
30
30
|
import "hammerjs";
|
|
31
|
-
import "
|
|
32
|
-
import "
|
|
33
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
32
|
+
import "@realsee/five/line";
|
|
34
33
|
import "../../../shared-utils/three/THREESphere.js";
|
|
35
34
|
import "animejs";
|
|
36
35
|
import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
|
|
37
36
|
import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
|
|
38
|
-
import "../../../
|
|
39
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
41
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
42
|
-
import "../../../shared-utils/util.js";
|
|
43
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
44
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
45
|
-
import "../../../shared-utils/Subscribe.js";
|
|
46
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
47
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
49
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
50
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
37
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
52
38
|
import "../../../shared-utils/animationFrame/index.js";
|
|
53
39
|
import "../../../shared-utils/three/Extras/Core/Interpolations.js";
|
|
54
40
|
import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
|
|
@@ -79,29 +65,29 @@ const C = (
|
|
|
79
65
|
}
|
|
80
66
|
`
|
|
81
67
|
);
|
|
82
|
-
class h extends
|
|
68
|
+
class h extends m.Mesh {
|
|
83
69
|
constructor(t, i = O) {
|
|
84
70
|
super();
|
|
85
|
-
|
|
71
|
+
p(this, "geometryConfig", {
|
|
86
72
|
radius: 1.5 / 100,
|
|
87
73
|
tubularSegments: 20,
|
|
88
74
|
radialSegments: 8
|
|
89
75
|
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
p(this, "customID");
|
|
77
|
+
p(this, "path");
|
|
78
|
+
p(this, "pathLength", 0);
|
|
79
|
+
p(this, "pathPoints");
|
|
80
|
+
p(this, "texture");
|
|
81
|
+
p(this, "opacityAnime");
|
|
96
82
|
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
97
|
-
|
|
98
|
-
t.geometryConfig && (this.geometryConfig = y(y({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = h.calculatePath(t.path.map((
|
|
99
|
-
const { radius: s, tubularSegments:
|
|
83
|
+
p(this, "uPreMeter", 1);
|
|
84
|
+
t.geometryConfig && (this.geometryConfig = y(y({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = h.calculatePath(t.path.map((u) => new m.Vector3().fromArray(u))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
|
|
85
|
+
const { radius: s, tubularSegments: a, radialSegments: r } = this.geometryConfig, n = h.formatTexture(t.texture);
|
|
100
86
|
this.geometry = h.formatGeometryUV(
|
|
101
|
-
new
|
|
87
|
+
new m.TubeBufferGeometry(this.path, a, s, r),
|
|
102
88
|
this.pathLength,
|
|
103
89
|
this.uPreMeter
|
|
104
|
-
), this.material = new
|
|
90
|
+
), this.material = new m.ShaderMaterial({
|
|
105
91
|
uniforms: {
|
|
106
92
|
opacity: { value: 1 },
|
|
107
93
|
uOffset: { value: 0 },
|
|
@@ -120,13 +106,13 @@ class h extends u.Mesh {
|
|
|
120
106
|
* @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
|
|
121
107
|
*/
|
|
122
108
|
static calculatePath(t) {
|
|
123
|
-
return t.length === 2 ? new
|
|
109
|
+
return t.length === 2 ? new m.LineCurve3(t[0], t[1]) : new x(t);
|
|
124
110
|
}
|
|
125
111
|
static formatGeometryUV(t, i, s) {
|
|
126
|
-
const
|
|
127
|
-
for (let r = 0; r <
|
|
128
|
-
const n =
|
|
129
|
-
|
|
112
|
+
const a = t.getAttribute("uv");
|
|
113
|
+
for (let r = 0; r < a.count; r++) {
|
|
114
|
+
const n = a.getX(r) * i * s;
|
|
115
|
+
a.setX(r, n);
|
|
130
116
|
}
|
|
131
117
|
return t;
|
|
132
118
|
}
|
|
@@ -134,12 +120,12 @@ class h extends u.Mesh {
|
|
|
134
120
|
* 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
|
|
135
121
|
*/
|
|
136
122
|
static formatTexture(t) {
|
|
137
|
-
return t.wrapS =
|
|
123
|
+
return t.wrapS = m.RepeatWrapping, t.wrapT = m.RepeatWrapping, t;
|
|
138
124
|
}
|
|
139
125
|
hide(t) {
|
|
140
126
|
return l(this, null, function* () {
|
|
141
|
-
var
|
|
142
|
-
(
|
|
127
|
+
var a;
|
|
128
|
+
(a = this.opacityAnime) == null || a.dispose();
|
|
143
129
|
const i = 0;
|
|
144
130
|
if (typeof (t == null ? void 0 : t.duration) != "number")
|
|
145
131
|
return this.setOpacity(i);
|
|
@@ -153,8 +139,8 @@ class h extends u.Mesh {
|
|
|
153
139
|
}
|
|
154
140
|
show(t) {
|
|
155
141
|
return l(this, null, function* () {
|
|
156
|
-
var
|
|
157
|
-
(
|
|
142
|
+
var a;
|
|
143
|
+
(a = this.opacityAnime) == null || a.dispose();
|
|
158
144
|
const i = 1;
|
|
159
145
|
if (typeof (t == null ? void 0 : t.duration) != "number")
|
|
160
146
|
return this.setOpacity(i);
|
|
@@ -5,12 +5,12 @@ import { IObject3D as a } from "../../shared-utils/three/IObject3D.js";
|
|
|
5
5
|
import { anyPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "hammerjs";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
8
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
|
+
import "@realsee/five/line";
|
|
11
10
|
import "../../shared-utils/three/THREESphere.js";
|
|
12
11
|
import "animejs";
|
|
13
12
|
import { notNil as r } from "../../shared-utils/isNil.js";
|
|
13
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
14
14
|
import { RectangleWithEdgeMesh as P } from "./RectangleWithEdge.js";
|
|
15
15
|
import { RectangleMesh as m } from "./Rectangle.js";
|
|
16
16
|
class w extends a {
|