@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
|
@@ -2,7 +2,7 @@ var D = Object.defineProperty, P = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
4
|
var E = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e,
|
|
5
|
+
var u = (d, a, e) => a in d ? D(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, m = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
E.call(a, e) && u(d, e, a[e]);
|
|
8
8
|
if (b)
|
|
@@ -28,7 +28,7 @@ var l = (d, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { objectAssignDeepExports as
|
|
31
|
+
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
32
|
import { arrayPositionToVector3 as F } from "../../shared-utils/positionToVector3.js";
|
|
33
33
|
import { isModelTag as k, isMediaModelTag as w } from "../utils/tag/tagCheck.js";
|
|
34
34
|
import { debounce as M } from "../utils/debounce.js";
|
|
@@ -40,6 +40,7 @@ import { TagRender as R } from "./TagRender.js";
|
|
|
40
40
|
import "../../shared-utils/tag.js";
|
|
41
41
|
import { isModelLike as O } from "../../shared-utils/five/mode.js";
|
|
42
42
|
import "hammerjs";
|
|
43
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
43
44
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
44
45
|
import "@realsee/five/line";
|
|
45
46
|
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -120,6 +121,34 @@ import "../../shared-utils/Subscribe.js";
|
|
|
120
121
|
import "../../shared-utils/Utils/WorkUtil.js";
|
|
121
122
|
import "../../shared-utils/five/transformPosition.js";
|
|
122
123
|
import "../../shared-utils/three/temp.js";
|
|
124
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
125
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
126
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
127
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
128
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
129
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
130
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
131
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
132
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
133
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
134
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
135
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
136
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
137
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
138
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
139
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
140
|
+
import "../../Sculpt/typings/style.js";
|
|
141
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
142
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
143
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
144
|
+
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
145
|
+
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
146
|
+
import "../../shared-utils/util.js";
|
|
147
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
148
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
149
|
+
import "../../shared-utils/five/getPosition.js";
|
|
150
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
151
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
123
152
|
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
124
153
|
import "../../vendor/three/build/three.module.js";
|
|
125
154
|
import "../utils/noTypecheck.js";
|
|
@@ -140,7 +169,6 @@ import "../../shared-utils/three/GLTFLoader.js";
|
|
|
140
169
|
import "@realsee/five/gltf-loader";
|
|
141
170
|
import "../utils/planeNormal.js";
|
|
142
171
|
import "../utils/model/mediaPlane.js";
|
|
143
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
144
172
|
import "../../shared-utils/three/loadTexture.js";
|
|
145
173
|
import "../../shared-utils/three/Quadrangle.js";
|
|
146
174
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -155,7 +183,6 @@ import "../../shared-utils/typescript/entries.js";
|
|
|
155
183
|
import "../utils/tag/adaptConfig.js";
|
|
156
184
|
import "../typings/tag/TagConfig.js";
|
|
157
185
|
import "@realsee/five";
|
|
158
|
-
import "../../shared-utils/util.js";
|
|
159
186
|
import "../../shared-utils/three/blink.js";
|
|
160
187
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
161
188
|
import "../../shared-utils/formatRad.js";
|
|
@@ -172,13 +199,6 @@ import "../../vendor/svelte/store/index.js";
|
|
|
172
199
|
import "../../CSS3DRenderPlugin/index.js";
|
|
173
200
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
174
201
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
175
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
176
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
177
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
178
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
179
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
180
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
181
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
182
202
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
183
203
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
184
204
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
@@ -187,13 +207,12 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
187
207
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
188
208
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
189
209
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
190
|
-
import "../../shared-utils/isTouchDevice.js";
|
|
191
210
|
import "../../base/BasePlugin.js";
|
|
192
211
|
import "../utils/addDebugPoints.js";
|
|
193
212
|
import "../Components/TagItem.js";
|
|
194
213
|
import "../Components/Common/TagPoint.js";
|
|
195
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
196
|
-
class
|
|
214
|
+
const S = "Dnalogel-PanoTagPlugin", co = (d) => `${S}--${d}`;
|
|
215
|
+
class uo extends R {
|
|
197
216
|
constructor(e, t) {
|
|
198
217
|
super(e);
|
|
199
218
|
/** state */
|
|
@@ -204,7 +223,7 @@ class Zi extends R {
|
|
|
204
223
|
/** 更改 tag 模型 */
|
|
205
224
|
p(this, "changeTagModel", (e, t) => l(this, null, function* () {
|
|
206
225
|
var i;
|
|
207
|
-
e.data =
|
|
226
|
+
e.data = f({}, e.data, t), yield (i = e.loadModel) == null ? void 0 : i.call(e);
|
|
208
227
|
}));
|
|
209
228
|
p(this, "handleFiveModeChange", (e) => {
|
|
210
229
|
const t = () => {
|
|
@@ -240,7 +259,7 @@ class Zi extends R {
|
|
|
240
259
|
});
|
|
241
260
|
p(this, "handleFivePanoArrived", () => l(this, null, function* () {
|
|
242
261
|
this.tags.forEach((e) => {
|
|
243
|
-
e.state.visible = !1, e.temporaryState = c(
|
|
262
|
+
e.state.visible = !1, e.temporaryState = c(m({}, e.temporaryState), { visible: !0 }), e.applyVisible(), e.updateVisible();
|
|
244
263
|
}), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }), yield this.setUnfolded(), this.updateRender3DDomTag(), this.tags.filter(k).filter((e) => {
|
|
245
264
|
var t;
|
|
246
265
|
return (t = e.getConfig().modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
@@ -292,7 +311,7 @@ class Zi extends R {
|
|
|
292
311
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
293
312
|
this.TagContainerSvelte = new x({
|
|
294
313
|
target: this.container,
|
|
295
|
-
props: c(
|
|
314
|
+
props: c(m({}, n), { state: c(m({}, this.state), { enabled: !1 }) })
|
|
296
315
|
}), G(() => {
|
|
297
316
|
var r;
|
|
298
317
|
(r = this.TagContainerSvelte) == null || r.$set({ state: this.state });
|
|
@@ -301,7 +320,7 @@ class Zi extends R {
|
|
|
301
320
|
}
|
|
302
321
|
}), this.renderQueue.clear();
|
|
303
322
|
});
|
|
304
|
-
this.params =
|
|
323
|
+
this.params = f({}, { debug: !1, config: this.config }, m({}, t)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), I(1, { namespace: B.PlayAudio });
|
|
305
324
|
try {
|
|
306
325
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = S + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
307
326
|
get: function() {
|
|
@@ -328,7 +347,7 @@ class Zi extends R {
|
|
|
328
347
|
console.debug(this.NAME, " load:", { data: JSON.parse(JSON.stringify(e)) });
|
|
329
348
|
} catch (s) {
|
|
330
349
|
}
|
|
331
|
-
this.config =
|
|
350
|
+
this.config = f({}, this.config, {
|
|
332
351
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
333
352
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
334
353
|
});
|
|
@@ -364,7 +383,7 @@ class Zi extends R {
|
|
|
364
383
|
* @description 改变配置
|
|
365
384
|
*/
|
|
366
385
|
changeConfig(e, t = !0) {
|
|
367
|
-
t ? this.config =
|
|
386
|
+
t ? this.config = f({}, this.config, e) : this.config = e, this.tags.forEach((i) => {
|
|
368
387
|
i.updateConfig(), i.updateVisible();
|
|
369
388
|
});
|
|
370
389
|
}
|
|
@@ -372,7 +391,7 @@ class Zi extends R {
|
|
|
372
391
|
* @description 改变全局配置
|
|
373
392
|
*/
|
|
374
393
|
changeGlobalConfig(e, t = !0) {
|
|
375
|
-
t ? this.config.globalConfig =
|
|
394
|
+
t ? this.config.globalConfig = f({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.tags.forEach((i) => {
|
|
376
395
|
i.updateConfig(), i.updateVisible();
|
|
377
396
|
});
|
|
378
397
|
}
|
|
@@ -380,7 +399,7 @@ class Zi extends R {
|
|
|
380
399
|
* @description 改变类型配置
|
|
381
400
|
*/
|
|
382
401
|
changeContentTypeConfig(e, t, i = !0) {
|
|
383
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
402
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = f({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.tags.forEach((o) => {
|
|
384
403
|
o.updateConfig(), o.updateVisible();
|
|
385
404
|
});
|
|
386
405
|
}
|
|
@@ -415,7 +434,7 @@ class Zi extends R {
|
|
|
415
434
|
setState(e, t) {
|
|
416
435
|
if (this.checkDisposed())
|
|
417
436
|
return;
|
|
418
|
-
const { userAction: i = !0 } = t != null ? t : {}, o =
|
|
437
|
+
const { userAction: i = !0 } = t != null ? t : {}, o = m({}, this.state);
|
|
419
438
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
420
439
|
}
|
|
421
440
|
/**
|
|
@@ -615,7 +634,7 @@ class Zi extends R {
|
|
|
615
634
|
}
|
|
616
635
|
}
|
|
617
636
|
export {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
637
|
+
uo as PanoTagPluginController,
|
|
638
|
+
uo as default,
|
|
639
|
+
co as pluginFlag
|
|
621
640
|
};
|
|
@@ -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 qr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as zr } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as Br, DimensionType as Er, PointType as Hr } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -80,13 +80,42 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
80
80
|
import "../shared-utils/five/transformPosition.js";
|
|
81
81
|
import "../shared-utils/three/temp.js";
|
|
82
82
|
import "hammerjs";
|
|
83
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
84
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
85
|
+
import "../shared-utils/three/Magnifier.js";
|
|
86
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
87
|
+
import "../shared-utils/three/Assets/index.js";
|
|
88
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
83
89
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
90
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
91
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
92
|
+
import "../shared-utils/three/centerPoint.js";
|
|
93
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
84
94
|
import "@realsee/five/line";
|
|
85
95
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
86
96
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
87
97
|
import "../vendor/three/build/three.module.js";
|
|
88
98
|
import "../shared-utils/three/core/Sphere.js";
|
|
89
99
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
100
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
101
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
102
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
103
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
104
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
105
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
106
|
+
import "../Sculpt/Meshes/Line.js";
|
|
107
|
+
import "../Sculpt/typings/style.js";
|
|
108
|
+
import "../shared-utils/five/FiveLine.js";
|
|
109
|
+
import "../shared-utils/three/IObject3D.js";
|
|
110
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
111
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
112
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
113
|
+
import "../shared-utils/util.js";
|
|
114
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
115
|
+
import "../shared-utils/isTouchDevice.js";
|
|
116
|
+
import "../shared-utils/five/getPosition.js";
|
|
117
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
118
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
90
119
|
import "./utils/noTypecheck.js";
|
|
91
120
|
import "./Components/Tag/AudioTag/index.js";
|
|
92
121
|
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -106,7 +135,6 @@ import "../shared-utils/three/GLTFLoader.js";
|
|
|
106
135
|
import "@realsee/five/gltf-loader";
|
|
107
136
|
import "./utils/planeNormal.js";
|
|
108
137
|
import "./utils/model/mediaPlane.js";
|
|
109
|
-
import "../shared-utils/three/centerPoint.js";
|
|
110
138
|
import "../shared-utils/three/loadTexture.js";
|
|
111
139
|
import "../shared-utils/three/Quadrangle.js";
|
|
112
140
|
import "../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -121,7 +149,6 @@ import "../shared-utils/typescript/entries.js";
|
|
|
121
149
|
import "./utils/tag/adaptConfig.js";
|
|
122
150
|
import "@realsee/five";
|
|
123
151
|
import "../shared-utils/five/mode.js";
|
|
124
|
-
import "../shared-utils/util.js";
|
|
125
152
|
import "../shared-utils/three/blink.js";
|
|
126
153
|
import "../shared-utils/vectorToCoordinate.js";
|
|
127
154
|
import "../shared-utils/formatRad.js";
|
|
@@ -139,13 +166,6 @@ import "../vendor/svelte/store/index.js";
|
|
|
139
166
|
import "../CSS3DRenderPlugin/index.js";
|
|
140
167
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
141
168
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
142
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
143
|
-
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
144
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
145
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
146
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
147
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
148
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
149
169
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
150
170
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
151
171
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
@@ -155,7 +175,6 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
155
175
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
156
176
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
157
177
|
import "../shared-utils/three/core/Raycaster.js";
|
|
158
|
-
import "../shared-utils/isTouchDevice.js";
|
|
159
178
|
import "../base/BasePlugin.js";
|
|
160
179
|
import "../shared-utils/animationFrame/index.js";
|
|
161
180
|
import "./utils/DebugUtil.js";
|
|
@@ -166,14 +185,14 @@ import "./Components/TagContainer.js";
|
|
|
166
185
|
import "./Components/TagItem.js";
|
|
167
186
|
import "./Components/Common/TagPoint.js";
|
|
168
187
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
169
|
-
const
|
|
188
|
+
const hr = (o, t) => new r(o, t);
|
|
170
189
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
190
|
+
Br as ContentType,
|
|
191
|
+
Er as DimensionType,
|
|
192
|
+
hr as PanoTagPlugin,
|
|
174
193
|
r as PanoTagPluginController,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
194
|
+
Hr as PointType,
|
|
195
|
+
hr as default,
|
|
196
|
+
zr as defaultGlobalConfig,
|
|
197
|
+
qr as pluginFlag
|
|
179
198
|
};
|
|
@@ -2,12 +2,12 @@ var z = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var H = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (o, i,
|
|
6
|
-
for (var
|
|
7
|
-
J.call(i,
|
|
5
|
+
var x = (o, i, t) => i in o ? z(o, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[i] = t, F = (o, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
J.call(i, t) && x(o, t, i[t]);
|
|
8
8
|
if (E)
|
|
9
|
-
for (var
|
|
10
|
-
K.call(i,
|
|
9
|
+
for (var t of E(i))
|
|
10
|
+
K.call(i, t) && x(o, t, i[t]);
|
|
11
11
|
return o;
|
|
12
12
|
}, _ = (o, i) => B(o, H(i));
|
|
13
13
|
import { objectAssignDeepExports as l } from "../../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -19,6 +19,7 @@ import "../../../shared-utils/tag.js";
|
|
|
19
19
|
import { isPanoramaLike as R, isModelLike as S } from "../../../shared-utils/five/mode.js";
|
|
20
20
|
import "three";
|
|
21
21
|
import "hammerjs";
|
|
22
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
22
23
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
23
24
|
import "@realsee/five/line";
|
|
24
25
|
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -35,11 +36,40 @@ import "../../../shared-utils/Utils/WorkUtil.js";
|
|
|
35
36
|
import "../../../shared-utils/five/transformPosition.js";
|
|
36
37
|
import "../../../shared-utils/three/temp.js";
|
|
37
38
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
39
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
40
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
41
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
42
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
43
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
44
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
45
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
46
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
47
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
48
|
+
import "../../../shared-utils/isNil.js";
|
|
49
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
50
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
53
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
54
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
55
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
56
|
+
import "../../../Sculpt/typings/style.js";
|
|
57
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
58
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
59
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
60
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
61
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
62
|
+
import "../../../shared-utils/util.js";
|
|
63
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
64
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
65
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
66
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
67
|
+
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
38
68
|
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
39
69
|
import "../../../vendor/three/build/three.module.js";
|
|
40
|
-
function
|
|
70
|
+
function $o(o, i, t) {
|
|
41
71
|
var v, b, j, C, A;
|
|
42
|
-
const D = (v =
|
|
72
|
+
const D = (v = t == null ? void 0 : t.useCache) != null ? v : !0;
|
|
43
73
|
if (!o)
|
|
44
74
|
return (b = i.globalConfig) != null ? b : {};
|
|
45
75
|
if (D) {
|
|
@@ -49,39 +79,39 @@ function Co(o, i, e) {
|
|
|
49
79
|
return o.config;
|
|
50
80
|
}
|
|
51
81
|
const k = {}, d = {}, y = {};
|
|
52
|
-
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([
|
|
82
|
+
i.contentTypeConfig && Object.entries(i.contentTypeConfig).forEach(([r, n]) => {
|
|
53
83
|
var O, W;
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
56
|
-
if (
|
|
57
|
-
const [
|
|
58
|
-
(o.contentType ===
|
|
84
|
+
const e = r, a = e.split("-"), g = r.startsWith("["), m = g ? a[0].slice(1, -1) : void 0, c = g ? a.slice(1) : a, s = m ? ["PanoramaLike", "ModelLike"].includes(m) ? (O = d[m]) != null ? O : d[m] = {} : (W = y[m]) != null ? W : y[m] = {} : k;
|
|
85
|
+
if (!s[e]) {
|
|
86
|
+
if (c.length === 0 && (s[e] = n), c.length === 1) {
|
|
87
|
+
const [p] = c;
|
|
88
|
+
(o.contentType === p || p === "Any") && (s[e] = n);
|
|
59
89
|
}
|
|
60
|
-
if (
|
|
61
|
-
const [
|
|
62
|
-
|
|
90
|
+
if (c.length === 2) {
|
|
91
|
+
const [p = "Any", u = "Any"] = c;
|
|
92
|
+
p === "Mixin" && o.contentType === u && (s[e] = n), (o.stickType === p || p === "Any") && (o.contentType === u || u === "Any") && (s[e] = n);
|
|
63
93
|
}
|
|
64
|
-
if (
|
|
65
|
-
const [
|
|
94
|
+
if (c.length === 3) {
|
|
95
|
+
const [p = "Any", u, w] = c;
|
|
66
96
|
if (u === "Audio" && o.contentType === "Audio") {
|
|
67
97
|
const L = o;
|
|
68
|
-
(L.stickType ===
|
|
98
|
+
(L.stickType === p || p === "Any") && L.data.appearance === w && (s[e] = n);
|
|
69
99
|
}
|
|
70
100
|
}
|
|
71
101
|
}
|
|
72
102
|
});
|
|
73
|
-
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h),
|
|
74
|
-
I(d).forEach(([
|
|
75
|
-
q.forEach((
|
|
76
|
-
(
|
|
103
|
+
const h = (A = o.initialConfig) != null ? A : {}, M = l({}, N, i.globalConfig, ...Object.values(k)), G = l({}, M, h), f = {}, q = Object.values(Q.Mode);
|
|
104
|
+
I(d).forEach(([r, n]) => {
|
|
105
|
+
q.forEach((e) => {
|
|
106
|
+
(r === "PanoramaLike" && R(e) || r === "ModelLike" && S(e)) && (f[e] = l({}, M, ...Object.values(n), h, { _isMerged: !0 }));
|
|
77
107
|
});
|
|
78
|
-
}), I(y).forEach(([
|
|
79
|
-
const
|
|
80
|
-
|
|
108
|
+
}), I(y).forEach(([r, n]) => {
|
|
109
|
+
const e = f[r];
|
|
110
|
+
f[r] = l({}, M, e, ...Object.values(n), h, { _isMerged: !0 });
|
|
81
111
|
});
|
|
82
|
-
const T = _(F({}, G), { configWithFiveMode:
|
|
83
|
-
return P(T), Object.values(
|
|
112
|
+
const T = _(F({}, G), { configWithFiveMode: f });
|
|
113
|
+
return P(T), Object.values(f).forEach((r) => P(r)), T._isMerged = !0, T;
|
|
84
114
|
}
|
|
85
115
|
export {
|
|
86
|
-
|
|
116
|
+
$o as calculateTagConfig
|
|
87
117
|
};
|