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