@realsee/dnalogel 3.78.0-alpha.4 → 3.78.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 +40 -10
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +95 -82
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14187 -12436
- package/dist/index.umd.js +87 -74
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- 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 +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- 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 +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- 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 +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- 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 +131 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
- 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/Tag/PolygonTag.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- 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.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +5 -5
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- 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.d.ts +1 -0
- package/libs/index.js +162 -150
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/package.json +3 -3
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var c = (
|
|
3
|
-
var o = (
|
|
2
|
+
var c = (e, i, t) => i in e ? h(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
|
|
3
|
+
var o = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, 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 w, exitItemStyle as C, exitIconStyle as E } from "./style.js";
|
|
@@ -86,6 +86,7 @@ import "../../../Sculpt/Meshes/Line.js";
|
|
|
86
86
|
import "../../../Sculpt/typings/style.js";
|
|
87
87
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
88
88
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
89
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
89
90
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
90
91
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
91
92
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -109,7 +110,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
109
110
|
import "../../Components/Common/CircleButton.js";
|
|
110
111
|
import "../../../vendor/svelte/transition/index.js";
|
|
111
112
|
import "../../../vendor/svelte/easing/index.js";
|
|
112
|
-
class
|
|
113
|
+
class Ii {
|
|
113
114
|
constructor(i, t) {
|
|
114
115
|
o(this, "revoke");
|
|
115
116
|
o(this, "container");
|
|
@@ -126,30 +127,30 @@ class Li {
|
|
|
126
127
|
if (!t || !i)
|
|
127
128
|
throw new Error("cannot find dom");
|
|
128
129
|
this.mode === "pc" && (Object.assign(t.style, C), Object.assign(i == null ? void 0 : i.style, E));
|
|
129
|
-
const
|
|
130
|
+
const r = () => {
|
|
130
131
|
t.style.opacity = "1";
|
|
131
132
|
}, s = () => {
|
|
132
133
|
t.style.opacity = "0.85";
|
|
133
|
-
},
|
|
134
|
+
}, m = () => {
|
|
134
135
|
this.measureController.disable();
|
|
135
136
|
};
|
|
136
|
-
return t.addEventListener("click",
|
|
137
|
-
t.removeEventListener("click",
|
|
137
|
+
return t.addEventListener("click", m), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
|
|
138
|
+
t.removeEventListener("click", m), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
|
|
138
139
|
};
|
|
139
140
|
});
|
|
140
|
-
var s,
|
|
141
|
+
var s, m;
|
|
141
142
|
this._params = t, this.measureController = i, this.mode = (s = t.mode) != null ? s : "pc", this.wrapper = t.container, this.container = document.createElement("div"), this.wrapper.appendChild(this.container);
|
|
142
|
-
const
|
|
143
|
-
if (this.useNewUI =
|
|
143
|
+
const r = (m = t.useNewUI) != null ? m : !1;
|
|
144
|
+
if (this.useNewUI = r, r && (this.container.style.position = "absolute", this.container.style.top = "0", this.container.style.left = "0", this.container.style.width = "100%", this.container.style.height = "100%", t.pointSelectorMode === "cursor" ? this.svelteDom = new b({
|
|
144
145
|
target: this.container,
|
|
145
146
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
146
147
|
}) : t.pointSelectorMode === "fixed" && (this.svelteDom = new _({
|
|
147
148
|
target: this.container,
|
|
148
149
|
props: { measureController: this.measureController, i18n: t.i18n, showExit: t.showExit }
|
|
149
|
-
}))), !
|
|
150
|
+
}))), !r) {
|
|
150
151
|
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)";
|
|
151
|
-
const l = this.container.querySelectorAll(".fpm__text"),
|
|
152
|
-
Object.assign(
|
|
152
|
+
const l = this.container.querySelectorAll(".fpm__text"), n = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
|
|
153
|
+
Object.assign(n == null ? void 0 : n.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, w));
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
dispose() {
|
|
@@ -161,9 +162,9 @@ class Li {
|
|
|
161
162
|
}
|
|
162
163
|
hide() {
|
|
163
164
|
var i, t;
|
|
164
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((
|
|
165
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.useNewUI === !1 && this.mode === "pc" && ((i = this.revoke) == null || i.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
export {
|
|
168
|
-
|
|
169
|
+
Ii as UIController
|
|
169
170
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Controller/index.js";
|
|
2
2
|
import "../shared-utils/tag.js";
|
|
3
3
|
import "three";
|
|
4
|
-
import { Magnifier as
|
|
4
|
+
import { Magnifier as qr } from "../shared-utils/three/Magnifier.js";
|
|
5
5
|
import "../shared-utils/three/PointSelector/index.js";
|
|
6
6
|
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -13,10 +13,10 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
13
13
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
14
14
|
import "../vendor/earcut/src/earcut.js";
|
|
15
15
|
import "../shared-utils/five/FivePuppet.js";
|
|
16
|
-
import { Model as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { Polyline as
|
|
16
|
+
import { Model as zr } from "./Model/index.js";
|
|
17
|
+
import { default as Br } from "./Model/point.js";
|
|
18
|
+
import { default as Er } from "./Model/line.js";
|
|
19
|
+
import { Polyline as Gr } from "./Model/polyline.js";
|
|
20
20
|
import "./Controller/EditController.js";
|
|
21
21
|
import "../shared-utils/throttle.js";
|
|
22
22
|
import "./Controller/BaseController.js";
|
|
@@ -71,6 +71,7 @@ import "../Sculpt/typings/style.js";
|
|
|
71
71
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
72
72
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
73
73
|
import "../shared-utils/util.js";
|
|
74
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
74
75
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
75
76
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
76
77
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -129,15 +130,15 @@ import "./Controller/ShortcutKeyController.js";
|
|
|
129
130
|
import "../shared-utils/safeObj.js";
|
|
130
131
|
import "../base/BasePlugin.js";
|
|
131
132
|
import "../shared-utils/url/defaultUrls.js";
|
|
132
|
-
const
|
|
133
|
+
const hr = function(o, r) {
|
|
133
134
|
return new t(o, r);
|
|
134
135
|
};
|
|
135
136
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
qr as Magnifier,
|
|
138
|
+
hr as PanoMeasurePlugin,
|
|
139
|
+
Er as PanoMeasurePluginLine,
|
|
140
|
+
zr as PanoMeasurePluginModel,
|
|
141
|
+
Br as PanoMeasurePluginPoint,
|
|
142
|
+
Gr as PanoMeasurePluginPolyline,
|
|
143
|
+
hr as default
|
|
143
144
|
};
|
|
@@ -63,6 +63,7 @@ import "../../../shared-utils/three/IObject3D.js";
|
|
|
63
63
|
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
64
64
|
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
65
65
|
import "../../../shared-utils/util.js";
|
|
66
|
+
import "../../../shared-utils/five/getFiveFromParentChain.js";
|
|
66
67
|
import "../../../shared-utils/three/core/LineGeometry.js";
|
|
67
68
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
68
69
|
import "../../../shared-utils/three/core/Line2.js";
|
|
@@ -80,7 +81,7 @@ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
80
81
|
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
81
82
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
82
83
|
import "@realsee/five";
|
|
83
|
-
class
|
|
84
|
+
class Jt extends y {
|
|
84
85
|
constructor(t) {
|
|
85
86
|
t.containerStyle = s(n({}, t.containerStyle), {
|
|
86
87
|
zIndex: "1"
|
|
@@ -111,5 +112,5 @@ class Ht extends y {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
export {
|
|
114
|
-
|
|
115
|
+
Jt as AreaItem
|
|
115
116
|
};
|
|
@@ -81,6 +81,7 @@ import "../Sculpt/typings/style.js";
|
|
|
81
81
|
import "../shared-utils/three/IObject3D.js";
|
|
82
82
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
83
83
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
84
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
84
85
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
85
86
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
86
87
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -99,7 +100,7 @@ import "../shared-utils/equal.js";
|
|
|
99
100
|
import "../shared-utils/isTruelyObject.js";
|
|
100
101
|
import "../shared-utils/math/planimetry.js";
|
|
101
102
|
import "./RulerItem.js";
|
|
102
|
-
class
|
|
103
|
+
class Ht {
|
|
103
104
|
constructor(t, i) {
|
|
104
105
|
e(this, "five");
|
|
105
106
|
e(this, "container", document.createElement("div"));
|
|
@@ -162,5 +163,5 @@ class Gt {
|
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
export {
|
|
165
|
-
|
|
166
|
+
Ht as default
|
|
166
167
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as
|
|
1
|
+
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as rt, onMount as nt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import { Five as lt } from "@realsee/five";
|
|
3
3
|
import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
@@ -53,6 +53,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
53
53
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
54
54
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
55
55
|
import "../shared-utils/util.js";
|
|
56
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
56
57
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
57
58
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
58
59
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -70,99 +71,99 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
70
71
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
72
73
|
import "../shared-utils/isTruelyObject.js";
|
|
73
|
-
function J(d,
|
|
74
|
+
function J(d, n, c) {
|
|
74
75
|
const t = d.slice();
|
|
75
|
-
return t[12] =
|
|
76
|
+
return t[12] = n[c], t;
|
|
76
77
|
}
|
|
77
78
|
function K(d) {
|
|
78
|
-
let
|
|
79
|
-
return
|
|
79
|
+
let n, c;
|
|
80
|
+
return n = new ht({
|
|
80
81
|
props: { rulerItemProp: (
|
|
81
82
|
/*itemData*/
|
|
82
83
|
d[12]
|
|
83
84
|
) }
|
|
84
85
|
}), {
|
|
85
86
|
c() {
|
|
86
|
-
st(
|
|
87
|
+
st(n.$$.fragment);
|
|
87
88
|
},
|
|
88
89
|
m(t, e) {
|
|
89
|
-
at(
|
|
90
|
+
at(n, t, e), c = !0;
|
|
90
91
|
},
|
|
91
92
|
p(t, e) {
|
|
92
93
|
const w = {};
|
|
93
94
|
e & /*rulerItemProp*/
|
|
94
95
|
1 && (w.rulerItemProp = /*itemData*/
|
|
95
|
-
t[12]),
|
|
96
|
+
t[12]), n.$set(w);
|
|
96
97
|
},
|
|
97
98
|
i(t) {
|
|
98
|
-
c || (C(
|
|
99
|
+
c || (C(n.$$.fragment, t), c = !0);
|
|
99
100
|
},
|
|
100
101
|
o(t) {
|
|
101
|
-
k(
|
|
102
|
+
k(n.$$.fragment, t), c = !1;
|
|
102
103
|
},
|
|
103
104
|
d(t) {
|
|
104
|
-
ct(
|
|
105
|
+
ct(n, t);
|
|
105
106
|
}
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
109
|
function dt(d) {
|
|
109
|
-
let
|
|
110
|
+
let n, c, t = (
|
|
110
111
|
/*rulerItemProp*/
|
|
111
112
|
d[0]
|
|
112
113
|
), e = [];
|
|
113
|
-
for (let
|
|
114
|
-
e[
|
|
115
|
-
const w = (
|
|
116
|
-
e[
|
|
114
|
+
for (let r = 0; r < t.length; r += 1)
|
|
115
|
+
e[r] = K(J(d, t, r));
|
|
116
|
+
const w = (r) => k(e[r], 1, 1, () => {
|
|
117
|
+
e[r] = null;
|
|
117
118
|
});
|
|
118
119
|
return {
|
|
119
120
|
c() {
|
|
120
|
-
|
|
121
|
-
for (let
|
|
122
|
-
e[
|
|
121
|
+
n = $("div");
|
|
122
|
+
for (let r = 0; r < e.length; r += 1)
|
|
123
|
+
e[r].c();
|
|
123
124
|
},
|
|
124
|
-
m(
|
|
125
|
-
tt(
|
|
125
|
+
m(r, s) {
|
|
126
|
+
tt(r, n, s);
|
|
126
127
|
for (let o = 0; o < e.length; o += 1)
|
|
127
|
-
e[o] && e[o].m(
|
|
128
|
+
e[o] && e[o].m(n, null);
|
|
128
129
|
c = !0;
|
|
129
130
|
},
|
|
130
|
-
p(
|
|
131
|
+
p(r, [s]) {
|
|
131
132
|
if (s & /*rulerItemProp*/
|
|
132
133
|
1) {
|
|
133
134
|
t = /*rulerItemProp*/
|
|
134
|
-
|
|
135
|
+
r[0];
|
|
135
136
|
let o;
|
|
136
137
|
for (o = 0; o < t.length; o += 1) {
|
|
137
|
-
const A = J(
|
|
138
|
-
e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(
|
|
138
|
+
const A = J(r, t, o);
|
|
139
|
+
e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(n, null));
|
|
139
140
|
}
|
|
140
141
|
for (mt(), o = t.length; o < e.length; o += 1)
|
|
141
142
|
w(o);
|
|
142
143
|
et();
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
|
-
i(
|
|
146
|
+
i(r) {
|
|
146
147
|
if (!c) {
|
|
147
148
|
for (let s = 0; s < t.length; s += 1)
|
|
148
149
|
C(e[s]);
|
|
149
150
|
c = !0;
|
|
150
151
|
}
|
|
151
152
|
},
|
|
152
|
-
o(
|
|
153
|
+
o(r) {
|
|
153
154
|
e = e.filter(Boolean);
|
|
154
155
|
for (let s = 0; s < e.length; s += 1)
|
|
155
156
|
k(e[s]);
|
|
156
157
|
c = !1;
|
|
157
158
|
},
|
|
158
|
-
d(
|
|
159
|
-
|
|
159
|
+
d(r) {
|
|
160
|
+
r && ot(n), rt(e, r);
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
163
|
}
|
|
163
|
-
function gt(d,
|
|
164
|
+
function gt(d, n, c) {
|
|
164
165
|
var B, G, H, U;
|
|
165
|
-
let { five: t } =
|
|
166
|
+
let { five: t } = n, { rulerDatas: e } = n, { options: w } = n, r = [];
|
|
166
167
|
const s = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (a, m) => {
|
|
167
168
|
const l = [
|
|
168
169
|
[{ x: 0, y: 0 }, { x: s, y: 0 }],
|
|
@@ -209,9 +210,9 @@ function gt(d, r, c) {
|
|
|
209
210
|
}, _ = () => {
|
|
210
211
|
const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
|
|
211
212
|
if (!m)
|
|
212
|
-
return c(0,
|
|
213
|
+
return c(0, r = []);
|
|
213
214
|
if (t.currentMode !== lt.Mode.Panorama)
|
|
214
|
-
return c(0,
|
|
215
|
+
return c(0, r = []);
|
|
215
216
|
const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
|
|
216
217
|
const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
|
|
217
218
|
return h - x;
|
|
@@ -233,21 +234,21 @@ function gt(d, r, c) {
|
|
|
233
234
|
labelElement: w.distanceText(P)
|
|
234
235
|
};
|
|
235
236
|
});
|
|
236
|
-
c(0,
|
|
237
|
+
c(0, r = y);
|
|
237
238
|
}, E = () => pt(_), R = ut(_, 80);
|
|
238
|
-
return
|
|
239
|
+
return nt(() => {
|
|
239
240
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
240
241
|
}), it(() => {
|
|
241
242
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
242
243
|
}), d.$$set = (a) => {
|
|
243
244
|
"five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
|
|
244
|
-
}, [
|
|
245
|
+
}, [r, t, e, w];
|
|
245
246
|
}
|
|
246
|
-
class
|
|
247
|
-
constructor(
|
|
248
|
-
super(), X(this,
|
|
247
|
+
class Ce extends Q {
|
|
248
|
+
constructor(n) {
|
|
249
|
+
super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
export {
|
|
252
|
-
|
|
253
|
+
Ce as default
|
|
253
254
|
};
|
|
@@ -54,6 +54,7 @@ import "../Sculpt/typings/style.js";
|
|
|
54
54
|
import "../shared-utils/three/IObject3D.js";
|
|
55
55
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
57
58
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
59
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
59
60
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -72,8 +73,8 @@ import "../shared-utils/equal.js";
|
|
|
72
73
|
import "../shared-utils/isTruelyObject.js";
|
|
73
74
|
import "../shared-utils/math/planimetry.js";
|
|
74
75
|
import "./RulerItem.js";
|
|
75
|
-
const
|
|
76
|
+
const kr = (r, o) => new t(r, o);
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
kr as PanoRulerProPlugin,
|
|
79
|
+
kr as default
|
|
79
80
|
};
|
|
@@ -55,6 +55,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
55
55
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
56
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
57
|
import "../shared-utils/util.js";
|
|
58
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
58
59
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
59
60
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
60
61
|
import "../shared-utils/three/core/Line2.js";
|
|
@@ -74,7 +75,7 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
74
75
|
import "../vendor/svelte/internal/index.js";
|
|
75
76
|
import "./store.js";
|
|
76
77
|
import "../vendor/svelte/store/index.js";
|
|
77
|
-
const W = 1e-3, v = 0.01, oo = jo,
|
|
78
|
+
const W = 1e-3, v = 0.01, oo = jo, Kt = (n, r) => {
|
|
78
79
|
var k, z, q, G, B, J, K, Q;
|
|
79
80
|
let I = r == null ? void 0 : r.container, y = 1.4;
|
|
80
81
|
const to = (k = r == null ? void 0 : r.wait) != null ? k : 200, eo = (z = r == null ? void 0 : r.maxNumberOnScreen) != null ? z : 3, A = (q = r == null ? void 0 : r.minRad) != null ? q : Math.PI / 4, D = (G = r == null ? void 0 : r.nearTolerance) != null ? G : 100, no = (B = r == null ? void 0 : r.upsideHeight) != null ? B : 1.6, j = (J = r == null ? void 0 : r.minDistance) != null ? J : 1.2, f = (K = r == null ? void 0 : r.maxDistance) != null ? K : 3.5, _ = Po(n), O = document.createElement("div");
|
|
@@ -102,8 +103,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
102
103
|
}, H = (t, s) => {
|
|
103
104
|
if (o.tags.length === 0)
|
|
104
105
|
return;
|
|
105
|
-
const
|
|
106
|
-
e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0),
|
|
106
|
+
const m = s.longitude - n.state.longitude, e = n.camera.clone();
|
|
107
|
+
e.position.copy(s.offset), e.rotateOnWorldAxis(new p.Vector3(0, 1, 0), m), e.updateProjectionMatrix(), e.updateMatrixWorld(!0);
|
|
107
108
|
const g = new p.Frustum(), P = new p.Matrix4();
|
|
108
109
|
P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P), o.tags.forEach((i) => {
|
|
109
110
|
const S = e.position.clone().setY(y).distanceTo(i.position);
|
|
@@ -135,14 +136,14 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
135
136
|
if (o.forbidden || !o.enabled)
|
|
136
137
|
return;
|
|
137
138
|
const t = n.camera, s = t.getWorldDirection(new p.Vector3());
|
|
138
|
-
o.origins = o.tags.map((
|
|
139
|
-
const e =
|
|
139
|
+
o.origins = o.tags.map((m) => {
|
|
140
|
+
const e = m.position.clone().project(t), g = m.position.clone().sub(t.position).setY(0).angleTo(s.setY(0)) < Math.PI / 2;
|
|
140
141
|
return {
|
|
141
|
-
id:
|
|
142
|
+
id: m.id,
|
|
142
143
|
front: g,
|
|
143
144
|
left: (e.x + 1) / 2 * 100,
|
|
144
145
|
top: (-e.y + 1) / 2 * 100,
|
|
145
|
-
destroying:
|
|
146
|
+
destroying: m.destroying
|
|
146
147
|
};
|
|
147
148
|
}), R.$set({ origins: o.origins });
|
|
148
149
|
}, M = () => {
|
|
@@ -152,18 +153,18 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
152
153
|
t.length && (o.tags = o.tags.concat(t), T());
|
|
153
154
|
}, to));
|
|
154
155
|
}, io = () => {
|
|
155
|
-
const { clientWidth: t, clientHeight: s } = n.getElement(),
|
|
156
|
+
const { clientWidth: t, clientHeight: s } = n.getElement(), m = [], e = n.camera, g = new p.Frustum(), P = new p.Matrix4(), i = e.getWorldDirection(new p.Vector3());
|
|
156
157
|
P.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), g.setFromProjectionMatrix(P);
|
|
157
|
-
const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d,
|
|
158
|
-
if (o.tags.find((l) =>
|
|
158
|
+
const S = o.tags.filter((d) => g.containsPoint(d.position) && !d.destroying).length, x = o.points.reduce((d, a) => {
|
|
159
|
+
if (o.tags.find((l) => a.id === l.id && !l.destroying))
|
|
159
160
|
return d;
|
|
160
|
-
const u = e.position.clone().setY(y).distanceTo(
|
|
161
|
-
if (u < j || u > f || !g.containsPoint(
|
|
161
|
+
const u = e.position.clone().setY(y).distanceTo(a.position);
|
|
162
|
+
if (u < j || u > f || !g.containsPoint(a.position))
|
|
162
163
|
return d;
|
|
163
|
-
const E =
|
|
164
|
-
if (E.angleTo(
|
|
164
|
+
const E = a.position.clone().sub(e.position).setY(0);
|
|
165
|
+
if (E.angleTo(a.normal) > Math.PI / 2 - A && E.angleTo(a.normal) < Math.PI / 2 + A)
|
|
165
166
|
return d;
|
|
166
|
-
const w =
|
|
167
|
+
const w = a.position.clone().project(e);
|
|
167
168
|
if (!o.tags.every((l) => {
|
|
168
169
|
if (l.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
169
170
|
return !0;
|
|
@@ -172,11 +173,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
172
173
|
}))
|
|
173
174
|
return d;
|
|
174
175
|
const h = {
|
|
175
|
-
id:
|
|
176
|
-
position:
|
|
177
|
-
normal:
|
|
178
|
-
replacement:
|
|
179
|
-
weight:
|
|
176
|
+
id: a.id,
|
|
177
|
+
position: a.position,
|
|
178
|
+
normal: a.normal,
|
|
179
|
+
replacement: a.replacement,
|
|
180
|
+
weight: a.weight,
|
|
180
181
|
distance: u
|
|
181
182
|
};
|
|
182
183
|
let c;
|
|
@@ -193,12 +194,12 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
193
194
|
}
|
|
194
195
|
return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
|
|
195
196
|
}, []);
|
|
196
|
-
for (let d = 0,
|
|
197
|
+
for (let d = 0, a = x.length; d < a && !(S + m.length >= eo); d++) {
|
|
197
198
|
const u = x[d];
|
|
198
|
-
if (
|
|
199
|
+
if (m.find((c) => u.id === c.id))
|
|
199
200
|
continue;
|
|
200
201
|
const E = u.position.clone().project(e);
|
|
201
|
-
if (!o.tags.concat(
|
|
202
|
+
if (!o.tags.concat(m).every((c) => {
|
|
202
203
|
if (c.position.clone().sub(e.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
203
204
|
return !0;
|
|
204
205
|
const l = c.position.clone().project(e);
|
|
@@ -233,7 +234,7 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
233
234
|
blurImageUrl: oo
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
|
-
|
|
237
|
+
m.push({
|
|
237
238
|
position: c,
|
|
238
239
|
normal: l,
|
|
239
240
|
id: b,
|
|
@@ -241,15 +242,15 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
return
|
|
245
|
+
return m;
|
|
245
246
|
}, ro = (t) => {
|
|
246
247
|
o.points = t.points.map((s) => {
|
|
247
|
-
var
|
|
248
|
+
var m, e;
|
|
248
249
|
return {
|
|
249
250
|
id: s.id,
|
|
250
251
|
position: new p.Vector3().fromArray(s.position),
|
|
251
252
|
normal: new p.Vector3().fromArray(s.normal),
|
|
252
|
-
replacement: (
|
|
253
|
+
replacement: (m = s.replacement) != null ? m : {},
|
|
253
254
|
weight: (e = s.weight) != null ? e : -1
|
|
254
255
|
};
|
|
255
256
|
}), t.render && (o.render = t.render), t.template && (o.template = t.template), t.events && (o.events = t.events), t.enabled === !1 && (o.enabled = t.enabled), t.folded === !0 && (o.folded = t.folded);
|
|
@@ -265,11 +266,11 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
265
266
|
o.folded = !1, o.tags.forEach((t) => {
|
|
266
267
|
t.app.$set({ folded: o.folded });
|
|
267
268
|
});
|
|
268
|
-
},
|
|
269
|
+
}, mo = () => {
|
|
269
270
|
o.folded = !0, o.tags.forEach((t) => {
|
|
270
271
|
t.app.$set({ folded: o.folded });
|
|
271
272
|
});
|
|
272
|
-
},
|
|
273
|
+
}, ao = (t) => {
|
|
273
274
|
o.tags.forEach((s) => {
|
|
274
275
|
s.id === t && s.app.$set({ folded: !1 });
|
|
275
276
|
});
|
|
@@ -290,8 +291,8 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
290
291
|
load: ro,
|
|
291
292
|
setIntersectObjects: so,
|
|
292
293
|
unfoldAll: po,
|
|
293
|
-
foldAll:
|
|
294
|
-
unfold:
|
|
294
|
+
foldAll: mo,
|
|
295
|
+
unfold: ao,
|
|
295
296
|
fold: fo,
|
|
296
297
|
enable: co,
|
|
297
298
|
disable: lo,
|
|
@@ -300,6 +301,6 @@ const W = 1e-3, v = 0.01, oo = jo, Jt = (n, r) => {
|
|
|
300
301
|
};
|
|
301
302
|
};
|
|
302
303
|
export {
|
|
303
|
-
|
|
304
|
-
|
|
304
|
+
Kt as PanoSpatialTagPlugin,
|
|
305
|
+
Kt as default
|
|
305
306
|
};
|
|
@@ -43,6 +43,7 @@ import "../shared-utils/three/IObject3D.js";
|
|
|
43
43
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
44
44
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
45
45
|
import "../shared-utils/util.js";
|
|
46
|
+
import "../shared-utils/five/getFiveFromParentChain.js";
|
|
46
47
|
import "../shared-utils/three/core/LineGeometry.js";
|
|
47
48
|
import "@realsee/five/line";
|
|
48
49
|
import "../shared-utils/three/core/LineMaterial.js";
|