@realsee/dnalogel 3.43.0 → 3.44.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/CHANGELOG.md +4 -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 +7374 -7116
- 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 +23 -33
- 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,6 +1,6 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var h = (r,
|
|
3
|
-
var
|
|
2
|
+
var h = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var o = (r, e, t) => (h(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import d from "./HTML.js";
|
|
5
5
|
import u from "./mobileHTML.js";
|
|
6
6
|
import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as C, exitItemStyle as E, exitIconStyle as x } from "./style.js";
|
|
@@ -40,43 +40,36 @@ import "../../../shared-utils/three/getNormal.js";
|
|
|
40
40
|
import "../../utils/dom/areaDom.js";
|
|
41
41
|
import "../../../shared-utils/three/geometryUtil.js";
|
|
42
42
|
import "hammerjs";
|
|
43
|
-
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
45
|
-
import "../../../shared-utils/positionToVector3.js";
|
|
46
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
47
43
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
48
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
49
|
-
import "../../../shared-utils/util.js";
|
|
50
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
51
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
52
|
-
import "../../../shared-utils/Subscribe.js";
|
|
53
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
54
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
55
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
56
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
57
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
59
44
|
import "../../../shared-utils/three/THREESphere.js";
|
|
60
45
|
import "animejs";
|
|
61
46
|
import "../../../shared-utils/isNil.js";
|
|
47
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
62
48
|
import "../../utils/isIntersecting.js";
|
|
63
|
-
import "../../../shared-utils/three/PointSelector.js";
|
|
64
|
-
import "../../../shared-utils/three/PointSelectorHelper.js";
|
|
49
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
50
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
65
51
|
import "../../../shared-utils/three/Magnifier.js";
|
|
66
|
-
import "../../../shared-utils/
|
|
52
|
+
import "../../../shared-utils/Subscribe.js";
|
|
53
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
67
54
|
import "../../../shared-utils/three/Assets/index.js";
|
|
68
|
-
import "../../../
|
|
69
|
-
import "
|
|
70
|
-
import "../../../CSS3DRenderPlugin/
|
|
71
|
-
import "../../../
|
|
72
|
-
import "../../../shared-utils/
|
|
73
|
-
import "../../../shared-utils/five/
|
|
74
|
-
import "../../../
|
|
75
|
-
import "../../../
|
|
76
|
-
import "../../../
|
|
55
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
59
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
60
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
61
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
62
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
63
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
64
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
65
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
66
|
+
import "../../../Sculpt/utils/color.js";
|
|
67
|
+
import "../../../shared-utils/positionToVector3.js";
|
|
68
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
77
69
|
import "../../../shared-utils/isTouchDevice.js";
|
|
78
70
|
import "../../../shared-utils/five/getPosition.js";
|
|
79
71
|
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
72
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
80
73
|
import "../DeleteDom/index.js";
|
|
81
74
|
import "../DeleteDom/_Assets/delete.svg.js";
|
|
82
75
|
import "../DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -87,21 +80,21 @@ import "../../Components/Common/Switcher1.js";
|
|
|
87
80
|
import "../../Components/Common/CircleButton.js";
|
|
88
81
|
import "../../../vendor/svelte/transition/index.js";
|
|
89
82
|
import "../../../vendor/svelte/easing/index.js";
|
|
90
|
-
class
|
|
91
|
-
constructor(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
if (!t || !
|
|
83
|
+
class Yt {
|
|
84
|
+
constructor(e, t) {
|
|
85
|
+
o(this, "revoke");
|
|
86
|
+
o(this, "container");
|
|
87
|
+
o(this, "mainController");
|
|
88
|
+
o(this, "disposers", []);
|
|
89
|
+
o(this, "measureController");
|
|
90
|
+
o(this, "mode");
|
|
91
|
+
o(this, "svelteDom");
|
|
92
|
+
o(this, "_params");
|
|
93
|
+
o(this, "handleExit", () => {
|
|
94
|
+
const e = this.container.querySelector(".fpm__exit-icon"), t = this.container.querySelector(".fpm__exit");
|
|
95
|
+
if (!t || !e)
|
|
103
96
|
throw new Error("cannot find dom");
|
|
104
|
-
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(
|
|
97
|
+
this.mode === "pc" && (Object.assign(t.style, E), Object.assign(e == null ? void 0 : e.style, x));
|
|
105
98
|
const i = () => {
|
|
106
99
|
t.style.opacity = "1";
|
|
107
100
|
}, s = () => {
|
|
@@ -114,7 +107,7 @@ class so {
|
|
|
114
107
|
};
|
|
115
108
|
});
|
|
116
109
|
var s, n;
|
|
117
|
-
this._params = t, this.measureController =
|
|
110
|
+
this._params = t, this.measureController = e, this.mode = (s = t.mode) != null ? s : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
118
111
|
const i = (n = t.useNewUI) != null ? n : !1;
|
|
119
112
|
if (i && (t.pointSelectorMode === "cursor" ? this.svelteDom = new _({
|
|
120
113
|
target: t.container,
|
|
@@ -129,17 +122,17 @@ class so {
|
|
|
129
122
|
}
|
|
130
123
|
}
|
|
131
124
|
dispose() {
|
|
132
|
-
var
|
|
133
|
-
this.hide(), (
|
|
125
|
+
var e;
|
|
126
|
+
this.hide(), (e = this.svelteDom) == null || e.$destroy(), this.container.remove();
|
|
134
127
|
}
|
|
135
128
|
show() {
|
|
136
129
|
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new w(this.measureController, this.container), this.mainController = new S(this.measureController, this.container, this._params)) : this.mainController = new g(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
|
|
137
130
|
}
|
|
138
131
|
hide() {
|
|
139
|
-
var
|
|
140
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((
|
|
132
|
+
var e, t;
|
|
133
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((e = this.revoke) == null || e.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
141
134
|
}
|
|
142
135
|
}
|
|
143
136
|
export {
|
|
144
|
-
|
|
137
|
+
Yt as UIController
|
|
145
138
|
};
|
|
@@ -13,7 +13,7 @@ var i = (a, t, e) => (l(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
13
13
|
import { Raycaster as M, Mesh as v, RingGeometry as G, MeshBasicMaterial as C, DoubleSide as w } from "three";
|
|
14
14
|
import p from "../../Model/point.js";
|
|
15
15
|
import { exports as f } from "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
|
-
import P from "
|
|
16
|
+
import { htmlString as P } from "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
17
17
|
import { requestAnimationFrameInterval as k } from "../../../shared-utils/animationFrame/index.js";
|
|
18
18
|
import { noop as x } from "../../../shared-utils/noop.js";
|
|
19
19
|
import { getMouseGroup as A } from "../../utils/mouseGroup.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "three";
|
|
3
|
-
import { Magnifier as
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
3
|
+
import { Magnifier as rr } from "../shared-utils/three/Magnifier.js";
|
|
4
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
+
import "@realsee/five/line";
|
|
7
6
|
import "../shared-utils/three/THREESphere.js";
|
|
8
7
|
import "animejs";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
8
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
9
|
+
import { Model as ir } from "./Model/index.js";
|
|
10
|
+
import { default as pr } from "./Model/point.js";
|
|
11
|
+
import { default as nr } from "./Model/line.js";
|
|
12
|
+
import { Polyline as ur } from "./Model/polyline.js";
|
|
13
13
|
import "./Controller/EditController.js";
|
|
14
14
|
import "../shared-utils/throttle.js";
|
|
15
15
|
import "./Controller/BaseController.js";
|
|
@@ -17,7 +17,6 @@ import "./utils/ironbox.js";
|
|
|
17
17
|
import "../shared-utils/uuid.js";
|
|
18
18
|
import "./utils/line.js";
|
|
19
19
|
import "../shared-utils/five/FiveLine.js";
|
|
20
|
-
import "@realsee/five/line";
|
|
21
20
|
import "./utils/constants.js";
|
|
22
21
|
import "@realsee/five";
|
|
23
22
|
import "./utils/dom/distanceItem.js";
|
|
@@ -35,36 +34,30 @@ import "./utils/dom/areaDom.js";
|
|
|
35
34
|
import "../shared-utils/three/geometryUtil.js";
|
|
36
35
|
import "hammerjs";
|
|
37
36
|
import "../shared-utils/isNil.js";
|
|
38
|
-
import "
|
|
39
|
-
import "../
|
|
40
|
-
import "three/
|
|
41
|
-
import "../
|
|
42
|
-
import "../shared-utils/
|
|
43
|
-
import "../CSS3DRenderPlugin/utils/
|
|
37
|
+
import "./utils/isIntersecting.js";
|
|
38
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
39
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
40
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
41
|
+
import "../shared-utils/three/Assets/index.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
44
43
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
45
44
|
import "../shared-utils/Subscribe.js";
|
|
46
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
47
45
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
46
|
import "../shared-utils/three/getObjectVisible.js";
|
|
49
|
-
import "../
|
|
50
|
-
import "../
|
|
51
|
-
import "
|
|
52
|
-
import "../
|
|
53
|
-
import "../
|
|
54
|
-
import "../shared-utils/three/
|
|
55
|
-
import "../
|
|
56
|
-
import "../
|
|
57
|
-
import "
|
|
58
|
-
import "../CSS3DRenderPlugin/
|
|
59
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
60
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
61
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
62
|
-
import "../shared-utils/five/getFiveModel.js";
|
|
63
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
64
|
-
import "../shared-utils/animationFrame/index.js";
|
|
47
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
48
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
52
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
53
|
+
import "../Sculpt/Meshes/Line.js";
|
|
54
|
+
import "../Sculpt/utils/color.js";
|
|
55
|
+
import "../shared-utils/positionToVector3.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
65
57
|
import "../shared-utils/isTouchDevice.js";
|
|
66
58
|
import "../shared-utils/five/getPosition.js";
|
|
67
59
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
60
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
68
61
|
import "./Modules/DeleteDom/index.js";
|
|
69
62
|
import "./Modules/DeleteDom/_Assets/delete.svg.js";
|
|
70
63
|
import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -77,6 +70,7 @@ import "./utils/ndc2Screen.js";
|
|
|
77
70
|
import "../shared-utils/getPointFromHammerEvent.js";
|
|
78
71
|
import "./Controller/MixedController.js";
|
|
79
72
|
import "./Modules/rangePiece/index.js";
|
|
73
|
+
import "../shared-utils/animationFrame/index.js";
|
|
80
74
|
import "../shared-utils/noop.js";
|
|
81
75
|
import "./utils/mouseGroup.js";
|
|
82
76
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
@@ -109,15 +103,16 @@ import "../shared-utils/Utils/FiveUtil.js";
|
|
|
109
103
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
110
104
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
111
105
|
import "../shared-utils/five/transformPosition.js";
|
|
112
|
-
|
|
106
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
107
|
+
const _o = function(o, r) {
|
|
113
108
|
return new t(o, r);
|
|
114
109
|
};
|
|
115
110
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
rr as Magnifier,
|
|
112
|
+
_o as PanoMeasurePlugin,
|
|
113
|
+
nr as PanoMeasurePluginLine,
|
|
114
|
+
ir as PanoMeasurePluginModel,
|
|
115
|
+
pr as PanoMeasurePluginPoint,
|
|
116
|
+
ur as PanoMeasurePluginPolyline,
|
|
117
|
+
_o as default
|
|
123
118
|
};
|
|
@@ -2,45 +2,32 @@ var u = Object.defineProperty, D = Object.defineProperties;
|
|
|
2
2
|
var f = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var h = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var s = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, m = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
A.call(e, t) && s(o, t, e[t]);
|
|
8
8
|
if (h)
|
|
9
|
-
for (var t of h(
|
|
10
|
-
T.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var l = (
|
|
9
|
+
for (var t of h(e))
|
|
10
|
+
T.call(e, t) && s(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, a = (o, e) => D(o, f(e));
|
|
13
|
+
var l = (o, e, t) => (s(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import { ItemDom as y } from "./base.js";
|
|
15
15
|
import { getGeometryInfo as I } from "../../../shared-utils/three/geometryUtil.js";
|
|
16
16
|
import "three";
|
|
17
17
|
import "hammerjs";
|
|
18
|
-
import "
|
|
19
|
-
import "
|
|
20
|
-
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
18
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
|
+
import "@realsee/five/line";
|
|
21
20
|
import "../../../shared-utils/three/THREESphere.js";
|
|
22
21
|
import "animejs";
|
|
23
22
|
import { isNil as P } from "../../../shared-utils/isNil.js";
|
|
23
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
24
24
|
import "../isNDCPointInScreen.js";
|
|
25
25
|
import "../../../shared-utils/three/centerPoint.js";
|
|
26
|
-
|
|
27
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
28
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
29
|
-
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
30
|
-
import "../../../shared-utils/util.js";
|
|
31
|
-
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
32
|
-
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
33
|
-
import "../../../shared-utils/Subscribe.js";
|
|
34
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
35
|
-
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
36
|
-
import "../../../shared-utils/three/getObjectVisible.js";
|
|
37
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
38
|
-
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
39
|
-
class X extends y {
|
|
26
|
+
class w extends y {
|
|
40
27
|
constructor(t) {
|
|
41
|
-
t.containerStyle =
|
|
28
|
+
t.containerStyle = a(m({}, t.containerStyle), {
|
|
42
29
|
zIndex: "1"
|
|
43
|
-
}), t.contentStyle =
|
|
30
|
+
}), t.contentStyle = a(m({}, t.contentStyle), {
|
|
44
31
|
background: "#6386FF",
|
|
45
32
|
borderRadius: "2px"
|
|
46
33
|
});
|
|
@@ -51,21 +38,21 @@ class X extends y {
|
|
|
51
38
|
/**
|
|
52
39
|
* @description: dom 依赖的多边形的顶点的位置更新时,更新 dom 的位置和面积
|
|
53
40
|
*/
|
|
54
|
-
updateArea(t,
|
|
41
|
+
updateArea(t, i) {
|
|
55
42
|
var c, d;
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
43
|
+
const r = i != null ? i : this.area.polygon.geometry, n = I(r);
|
|
44
|
+
if (!n) {
|
|
58
45
|
this.ndcPosition = null, this.updateDomPosition(t);
|
|
59
46
|
return;
|
|
60
47
|
}
|
|
61
|
-
const { area:
|
|
62
|
-
this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(
|
|
48
|
+
const { area: p, center: x } = n;
|
|
49
|
+
this.ndcPosition = x, this.updateDomPosition(t), (d = (c = this.area.model) == null ? void 0 : c.config) != null && d.getAreaText ? this.contentDom.innerText = this.area.model.config.getAreaText(p) : this.updateAreaText(p, { fix: 2 });
|
|
63
50
|
}
|
|
64
|
-
updateAreaText(t,
|
|
65
|
-
const { unit:
|
|
66
|
-
this.contentDom.innerText = `${P(
|
|
51
|
+
updateAreaText(t, i) {
|
|
52
|
+
const { unit: r = "m²", fix: n } = i != null ? i : {};
|
|
53
|
+
this.contentDom.innerText = `${P(n) ? t : t.toFixed(n)}${r}`;
|
|
67
54
|
}
|
|
68
55
|
}
|
|
69
56
|
export {
|
|
70
|
-
|
|
57
|
+
w as AreaItem
|
|
71
58
|
};
|
|
@@ -9,33 +9,36 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
10
|
import "../shared-utils/positionToVector3.js";
|
|
11
11
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
12
|
-
import "
|
|
13
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
14
|
-
import "../shared-utils/util.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
15
13
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
16
14
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
17
15
|
import "../shared-utils/Subscribe.js";
|
|
18
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
18
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
20
19
|
import "../shared-utils/three/centerPoint.js";
|
|
21
20
|
import "../shared-utils/three/getObjectVisible.js";
|
|
22
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
23
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
25
21
|
import "hammerjs";
|
|
26
|
-
import "
|
|
22
|
+
import "@realsee/five/line";
|
|
27
23
|
import "../shared-utils/three/THREESphere.js";
|
|
28
24
|
import "animejs";
|
|
25
|
+
import "../shared-utils/isNil.js";
|
|
26
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
29
|
+
import "../shared-utils/util.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
29
32
|
import "../shared-utils/url/absoluteUrl.js";
|
|
30
33
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
31
34
|
import "../shared-utils/five/getFiveModel.js";
|
|
32
35
|
import "../vendor/svelte/internal/index.js";
|
|
33
36
|
import "./store.js";
|
|
34
37
|
import "../vendor/svelte/store/index.js";
|
|
35
|
-
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
38
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", lo = (n, r) => {
|
|
36
39
|
var k, z, q, B, G, J, K, Q;
|
|
37
|
-
let j =
|
|
38
|
-
const ee = (k =
|
|
40
|
+
let j = r == null ? void 0 : r.container, y = 1.4;
|
|
41
|
+
const ee = (k = r == null ? void 0 : r.wait) != null ? k : 200, oe = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, I = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, L = (B = r == null ? void 0 : r.nearTolerance) != null ? B : 100, te = (G = r == null ? void 0 : r.upsideHeight) != null ? G : 1.6, A = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
39
42
|
S.classList.add("PanoSpatialTagPlugin"), Object.assign(S.style, xe);
|
|
40
43
|
const V = new we();
|
|
41
44
|
let Z = new Image();
|
|
@@ -53,15 +56,15 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
53
56
|
}, Y = new Me({
|
|
54
57
|
target: S,
|
|
55
58
|
props: { origins: e.origins }
|
|
56
|
-
}), _ = (o,
|
|
57
|
-
T(),
|
|
59
|
+
}), _ = (o, s) => {
|
|
60
|
+
T(), s && M();
|
|
58
61
|
}, F = () => {
|
|
59
62
|
e.forbidden && (e.forbidden = !1, M());
|
|
60
|
-
}, H = (o,
|
|
63
|
+
}, H = (o, s) => {
|
|
61
64
|
if (e.tags.length === 0)
|
|
62
65
|
return;
|
|
63
|
-
const p =
|
|
64
|
-
t.position.copy(
|
|
66
|
+
const p = s.longitude - n.state.longitude, t = n.camera.clone();
|
|
67
|
+
t.position.copy(s.offset), t.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
|
|
65
68
|
const g = new a.Frustum(), P = new a.Matrix4();
|
|
66
69
|
P.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), g.setFromProjectionMatrix(P), e.tags.forEach((i) => {
|
|
67
70
|
const $ = t.position.clone().setY(y).distanceTo(i.position);
|
|
@@ -86,15 +89,15 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
86
89
|
}), e.tags = e.tags.filter((i) => !i.destroying), T();
|
|
87
90
|
}, 1900);
|
|
88
91
|
}, N = (o) => {
|
|
89
|
-
o !== ye.Mode.Panorama && !e.forbidden && (Y.$set({ origins: [] }), e.tags.forEach((
|
|
90
|
-
|
|
92
|
+
o !== ye.Mode.Panorama && !e.forbidden && (Y.$set({ origins: [] }), e.tags.forEach((s) => {
|
|
93
|
+
s.app.$destroy(), s = null;
|
|
91
94
|
}), e.origins = [], e.tags = [], e.forbidden = !0);
|
|
92
95
|
}, T = () => {
|
|
93
96
|
if (e.forbidden || !e.enabled)
|
|
94
97
|
return;
|
|
95
|
-
const o = n.camera,
|
|
98
|
+
const o = n.camera, s = o.getWorldDirection(new a.Vector3());
|
|
96
99
|
e.origins = e.tags.map((p) => {
|
|
97
|
-
const t = p.position.clone().project(o), g = p.position.clone().sub(o.position).setY(0).angleTo(
|
|
100
|
+
const t = p.position.clone().project(o), g = p.position.clone().sub(o.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
|
|
98
101
|
return {
|
|
99
102
|
id: p.id,
|
|
100
103
|
front: g,
|
|
@@ -110,7 +113,7 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
110
113
|
o.length && (e.tags = e.tags.concat(o), T());
|
|
111
114
|
}, ee));
|
|
112
115
|
}, ne = () => {
|
|
113
|
-
const { clientWidth: o, clientHeight:
|
|
116
|
+
const { clientWidth: o, clientHeight: s } = n.getElement(), p = [], t = n.camera, g = new a.Frustum(), P = new a.Matrix4(), i = t.getWorldDirection(new a.Vector3());
|
|
114
117
|
P.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), g.setFromProjectionMatrix(P);
|
|
115
118
|
const $ = e.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = e.points.reduce((d, m) => {
|
|
116
119
|
if (e.tags.find((l) => m.id === l.id && !l.destroying))
|
|
@@ -126,7 +129,7 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
126
129
|
if (l.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
127
130
|
return !0;
|
|
128
131
|
const b = l.position.clone().project(t);
|
|
129
|
-
return Math.sqrt(Math.pow((w.x - b.x) / 2 * o, 2) + Math.pow((w.y - b.y) / 2 *
|
|
132
|
+
return Math.sqrt(Math.pow((w.x - b.x) / 2 * o, 2) + Math.pow((w.y - b.y) / 2 * s, 2)) > L;
|
|
130
133
|
}))
|
|
131
134
|
return d;
|
|
132
135
|
const h = {
|
|
@@ -160,7 +163,7 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
160
163
|
if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
161
164
|
return !0;
|
|
162
165
|
const l = c.position.clone().project(t);
|
|
163
|
-
return Math.sqrt(Math.pow((E.x - l.x) / 2 * o, 2) + Math.pow((E.y - l.y) / 2 *
|
|
166
|
+
return Math.sqrt(Math.pow((E.x - l.x) / 2 * o, 2) + Math.pow((E.y - l.y) / 2 * s, 2)) > L;
|
|
164
167
|
}))
|
|
165
168
|
continue;
|
|
166
169
|
const w = new a.Raycaster(
|
|
@@ -200,19 +203,19 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
200
203
|
}
|
|
201
204
|
return p;
|
|
202
205
|
}, ie = (o) => {
|
|
203
|
-
e.points = o.points.map((
|
|
206
|
+
e.points = o.points.map((s) => {
|
|
204
207
|
var p, t;
|
|
205
208
|
return {
|
|
206
|
-
id:
|
|
207
|
-
position: new a.Vector3().fromArray(
|
|
208
|
-
normal: new a.Vector3().fromArray(
|
|
209
|
-
replacement: (p =
|
|
210
|
-
weight: (t =
|
|
209
|
+
id: s.id,
|
|
210
|
+
position: new a.Vector3().fromArray(s.position),
|
|
211
|
+
normal: new a.Vector3().fromArray(s.normal),
|
|
212
|
+
replacement: (p = s.replacement) != null ? p : {},
|
|
213
|
+
weight: (t = s.weight) != null ? t : -1
|
|
211
214
|
};
|
|
212
215
|
}), o.render && (e.render = o.render), o.template && (e.template = o.template), o.events && (e.events = o.events), o.enabled === !1 && (e.enabled = o.enabled), o.folded === !0 && (e.folded = o.folded);
|
|
213
|
-
},
|
|
216
|
+
}, re = (o) => {
|
|
214
217
|
e.intersectObjects = o, M();
|
|
215
|
-
},
|
|
218
|
+
}, se = () => {
|
|
216
219
|
e.enabled = !0, M();
|
|
217
220
|
}, ce = () => {
|
|
218
221
|
e.enabled = !1, Y.$set({ origins: [] }), e.tags.forEach((o) => {
|
|
@@ -227,12 +230,12 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
227
230
|
o.app.$set({ folded: e.folded });
|
|
228
231
|
});
|
|
229
232
|
}, ae = (o) => {
|
|
230
|
-
e.tags.forEach((
|
|
231
|
-
|
|
233
|
+
e.tags.forEach((s) => {
|
|
234
|
+
s.id === o && s.app.$set({ folded: !1 });
|
|
232
235
|
});
|
|
233
236
|
}, pe = (o) => {
|
|
234
|
-
e.tags.forEach((
|
|
235
|
-
|
|
237
|
+
e.tags.forEach((s) => {
|
|
238
|
+
s.id === o && s.app.$set({ folded: !0 });
|
|
236
239
|
});
|
|
237
240
|
}, U = () => {
|
|
238
241
|
n.once("renderFrame", T);
|
|
@@ -245,18 +248,18 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
245
248
|
};
|
|
246
249
|
return window.addEventListener("resize", U, !1), (Q = n == null ? void 0 : n.model) != null && Q.loaded ? R() : n.once("modelLoaded", R), n.on("dispose", W), {
|
|
247
250
|
load: ie,
|
|
248
|
-
setIntersectObjects:
|
|
251
|
+
setIntersectObjects: re,
|
|
249
252
|
unfoldAll: de,
|
|
250
253
|
foldAll: le,
|
|
251
254
|
unfold: ae,
|
|
252
255
|
fold: pe,
|
|
253
|
-
enable:
|
|
256
|
+
enable: se,
|
|
254
257
|
disable: ce,
|
|
255
258
|
hooks: V,
|
|
256
259
|
dispose: W
|
|
257
260
|
};
|
|
258
261
|
};
|
|
259
262
|
export {
|
|
260
|
-
|
|
261
|
-
|
|
263
|
+
lo as PanoSpatialTagPlugin,
|
|
264
|
+
lo as default
|
|
262
265
|
};
|
|
@@ -6,23 +6,26 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
6
6
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
8
8
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
9
|
-
import "
|
|
10
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
11
|
-
import "../shared-utils/util.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
12
10
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
13
11
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
14
12
|
import "../shared-utils/Subscribe.js";
|
|
15
13
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
14
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
16
15
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
17
16
|
import "../shared-utils/three/centerPoint.js";
|
|
18
17
|
import "../shared-utils/three/getObjectVisible.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
18
|
import "hammerjs";
|
|
23
|
-
import "
|
|
19
|
+
import "@realsee/five/line";
|
|
24
20
|
import "../shared-utils/three/THREESphere.js";
|
|
25
21
|
import "animejs";
|
|
22
|
+
import "../shared-utils/isNil.js";
|
|
23
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
24
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
26
|
+
import "../shared-utils/util.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
29
|
import "../shared-utils/url/absoluteUrl.js";
|
|
27
30
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
28
31
|
import "../shared-utils/five/getFiveModel.js";
|