@realsee/dnalogel 3.50.14 → 3.50.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +4 -4
- package/dist/index.cjs.js +262 -262
- package/dist/index.js +4235 -4231
- package/dist/index.umd.js +263 -263
- package/dist/shared-utils/five/index.d.ts +2 -0
- 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 +39 -19
- 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 +33 -14
- package/libs/CruisePlugin/Work.js +66 -47
- package/libs/CruisePlugin/index.js +38 -19
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +69 -50
- package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
- package/libs/GuideLinePlugin/index.js +38 -19
- package/libs/ModelMakerPlugin/Controller.js +60 -42
- package/libs/ModelMakerPlugin/index.js +34 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
- package/libs/ModelTVVideoPlugin/index.js +24 -4
- 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 +16 -16
- 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 +54 -34
- package/libs/PanoSpatialTagPlugin/index.js +22 -2
- 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 +48 -29
- package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
- package/libs/PanoTagPlugin/controller/index.js +49 -30
- package/libs/PanoTagPlugin/index.js +41 -22
- 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 +9 -8
- 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 +4 -4
- 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 +89 -60
- 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/fiveModelLoad.js +1 -0
- package/libs/shared-utils/five/index.d.ts +2 -0
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +42 -35
- 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
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var c = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var h = (
|
|
5
|
-
for (var
|
|
6
|
-
v.call(t,
|
|
4
|
+
var h = (e, t, i) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, u = (e, t) => {
|
|
5
|
+
for (var i in t || (t = {}))
|
|
6
|
+
v.call(t, i) && h(e, i, t[i]);
|
|
7
7
|
if (c)
|
|
8
|
-
for (var
|
|
9
|
-
b.call(t,
|
|
10
|
-
return
|
|
8
|
+
for (var i of c(t))
|
|
9
|
+
b.call(t, i) && h(e, i, t[i]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
|
-
var o = (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var o = (e, t, i) => (h(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
13
|
+
var m = (e, t, i) => new Promise((p, s) => {
|
|
14
|
+
var a = (r) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
s(
|
|
16
|
+
l(i.next(r));
|
|
17
|
+
} catch (d) {
|
|
18
|
+
s(d);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, n = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
s(
|
|
22
|
+
l(i.throw(r));
|
|
23
|
+
} catch (d) {
|
|
24
|
+
s(d);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (r) => r.done ? p(r.value) : Promise.resolve(r.value).then(a, n);
|
|
27
|
+
l((i = i.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import I from "./RulerItems.js";
|
|
30
30
|
import "../vendor/svelte/internal/index.js";
|
|
@@ -44,20 +44,50 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
44
44
|
import "../shared-utils/three/temp.js";
|
|
45
45
|
import "../shared-utils/dom/resizeObserver.js";
|
|
46
46
|
import "hammerjs";
|
|
47
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
48
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
49
|
+
import "../shared-utils/three/Magnifier.js";
|
|
50
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
51
|
+
import "../shared-utils/three/Assets/index.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
47
53
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
54
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../shared-utils/three/centerPoint.js";
|
|
57
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
48
58
|
import "@realsee/five/line";
|
|
49
59
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
50
60
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
51
61
|
import "../vendor/three/build/three.module.js";
|
|
52
62
|
import "../shared-utils/three/core/Sphere.js";
|
|
53
63
|
import "animejs";
|
|
64
|
+
import "../shared-utils/isNil.js";
|
|
65
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
66
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
68
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
69
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
70
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
71
|
+
import "../Sculpt/Meshes/Line.js";
|
|
72
|
+
import "../Sculpt/typings/style.js";
|
|
73
|
+
import "../shared-utils/five/FiveLine.js";
|
|
74
|
+
import "../shared-utils/three/IObject3D.js";
|
|
75
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
76
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
77
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
78
|
+
import "../shared-utils/util.js";
|
|
79
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
80
|
+
import "../shared-utils/isTouchDevice.js";
|
|
81
|
+
import "../shared-utils/five/getPosition.js";
|
|
82
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
83
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
54
84
|
import "../shared-utils/equal.js";
|
|
55
85
|
import "../shared-utils/isTruelyObject.js";
|
|
56
86
|
import "../shared-utils/math/planimetry.js";
|
|
57
87
|
import "../shared-utils/throttle.js";
|
|
58
88
|
import "./RulerItem.js";
|
|
59
|
-
class
|
|
60
|
-
constructor(t,
|
|
89
|
+
class xt {
|
|
90
|
+
constructor(t, i) {
|
|
61
91
|
o(this, "five");
|
|
62
92
|
o(this, "container", document.createElement("div"));
|
|
63
93
|
o(this, "panoRulerProData");
|
|
@@ -70,23 +100,23 @@ class X {
|
|
|
70
100
|
distanceText: (t) => `${t.toFixed(1)}m`
|
|
71
101
|
}
|
|
72
102
|
});
|
|
73
|
-
var
|
|
103
|
+
var p, s;
|
|
74
104
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
75
105
|
"style",
|
|
76
106
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
77
|
-
),
|
|
78
|
-
var
|
|
79
|
-
(
|
|
107
|
+
), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (p = i.options) != null && p.className && this.container.classList.add((s = i.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => m(this, null, function* () {
|
|
108
|
+
var a, n;
|
|
109
|
+
(n = (a = this.five.getElement()) == null ? void 0 : a.parentNode) == null || n.append(this.container);
|
|
80
110
|
})), this.five.once("dispose", () => this.dispose());
|
|
81
111
|
}
|
|
82
112
|
load(t) {
|
|
83
|
-
return
|
|
113
|
+
return m(this, null, function* () {
|
|
84
114
|
if (!this.five.work)
|
|
85
115
|
return;
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
116
|
+
const i = t.data;
|
|
117
|
+
if (!i)
|
|
88
118
|
throw new Error("标尺数据依赖不齐全!");
|
|
89
|
-
this.panoRulerProData =
|
|
119
|
+
this.panoRulerProData = i, this.state.loaded = !0;
|
|
90
120
|
});
|
|
91
121
|
}
|
|
92
122
|
enable() {
|
|
@@ -96,7 +126,7 @@ class X {
|
|
|
96
126
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
97
127
|
}
|
|
98
128
|
render() {
|
|
99
|
-
return
|
|
129
|
+
return m(this, null, function* () {
|
|
100
130
|
var t;
|
|
101
131
|
if (this.state.enabled) {
|
|
102
132
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -119,5 +149,5 @@ class X {
|
|
|
119
149
|
}
|
|
120
150
|
}
|
|
121
151
|
export {
|
|
122
|
-
|
|
152
|
+
xt as default
|
|
123
153
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
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 nt, onMount as rt, onDestroy as
|
|
2
|
-
import { Five as
|
|
3
|
-
import { nextFrame 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 nt, onMount as rt, 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
|
+
import { Five as lt } from "@realsee/five";
|
|
3
|
+
import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
5
5
|
import { Vector3 as M } from "three";
|
|
6
6
|
import "hammerjs";
|
|
7
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
7
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
9
|
import "@realsee/five/line";
|
|
9
10
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
10
11
|
import "../shared-utils/three/core/Sphere.js";
|
|
11
12
|
import "animejs";
|
|
12
13
|
import { equal as z } from "../shared-utils/equal.js";
|
|
13
|
-
import { intersectionOfLine as
|
|
14
|
-
import { throttle as
|
|
14
|
+
import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
|
|
15
|
+
import { throttle as ut } from "../shared-utils/throttle.js";
|
|
15
16
|
import ht from "./RulerItem.js";
|
|
16
17
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
17
18
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -24,6 +25,35 @@ import "../shared-utils/Utils/WorkUtil.js";
|
|
|
24
25
|
import "../shared-utils/five/transformPosition.js";
|
|
25
26
|
import "../shared-utils/three/temp.js";
|
|
26
27
|
import "../shared-utils/dom/resizeObserver.js";
|
|
28
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
29
|
+
import "../shared-utils/three/Magnifier.js";
|
|
30
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
31
|
+
import "../shared-utils/three/Assets/index.js";
|
|
32
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
|
+
import "../shared-utils/three/centerPoint.js";
|
|
36
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
37
|
+
import "../shared-utils/isNil.js";
|
|
38
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
39
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
43
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
44
|
+
import "../Sculpt/Meshes/Line.js";
|
|
45
|
+
import "../Sculpt/typings/style.js";
|
|
46
|
+
import "../shared-utils/five/FiveLine.js";
|
|
47
|
+
import "../shared-utils/three/IObject3D.js";
|
|
48
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
49
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
50
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
|
+
import "../shared-utils/util.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
53
|
+
import "../shared-utils/isTouchDevice.js";
|
|
54
|
+
import "../shared-utils/five/getPosition.js";
|
|
55
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
56
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
27
57
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
28
58
|
import "../vendor/three/build/three.module.js";
|
|
29
59
|
import "../shared-utils/isTruelyObject.js";
|
|
@@ -40,10 +70,10 @@ function K(d) {
|
|
|
40
70
|
) }
|
|
41
71
|
}), {
|
|
42
72
|
c() {
|
|
43
|
-
|
|
73
|
+
st(r.$$.fragment);
|
|
44
74
|
},
|
|
45
75
|
m(t, e) {
|
|
46
|
-
|
|
76
|
+
at(r, t, e), c = !0;
|
|
47
77
|
},
|
|
48
78
|
p(t, e) {
|
|
49
79
|
const w = {};
|
|
@@ -78,38 +108,38 @@ function dt(d) {
|
|
|
78
108
|
for (let n = 0; n < e.length; n += 1)
|
|
79
109
|
e[n].c();
|
|
80
110
|
},
|
|
81
|
-
m(n,
|
|
82
|
-
tt(n, r,
|
|
111
|
+
m(n, s) {
|
|
112
|
+
tt(n, r, s);
|
|
83
113
|
for (let o = 0; o < e.length; o += 1)
|
|
84
114
|
e[o] && e[o].m(r, null);
|
|
85
115
|
c = !0;
|
|
86
116
|
},
|
|
87
|
-
p(n, [
|
|
88
|
-
if (
|
|
117
|
+
p(n, [s]) {
|
|
118
|
+
if (s & /*rulerItemProp*/
|
|
89
119
|
1) {
|
|
90
120
|
t = /*rulerItemProp*/
|
|
91
121
|
n[0];
|
|
92
122
|
let o;
|
|
93
123
|
for (o = 0; o < t.length; o += 1) {
|
|
94
124
|
const A = J(n, t, o);
|
|
95
|
-
e[o] ? (e[o].p(A,
|
|
125
|
+
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(r, null));
|
|
96
126
|
}
|
|
97
|
-
for (
|
|
127
|
+
for (mt(), o = t.length; o < e.length; o += 1)
|
|
98
128
|
w(o);
|
|
99
129
|
et();
|
|
100
130
|
}
|
|
101
131
|
},
|
|
102
132
|
i(n) {
|
|
103
133
|
if (!c) {
|
|
104
|
-
for (let
|
|
105
|
-
C(e[
|
|
134
|
+
for (let s = 0; s < t.length; s += 1)
|
|
135
|
+
C(e[s]);
|
|
106
136
|
c = !0;
|
|
107
137
|
}
|
|
108
138
|
},
|
|
109
139
|
o(n) {
|
|
110
140
|
e = e.filter(Boolean);
|
|
111
|
-
for (let
|
|
112
|
-
k(e[
|
|
141
|
+
for (let s = 0; s < e.length; s += 1)
|
|
142
|
+
k(e[s]);
|
|
113
143
|
c = !1;
|
|
114
144
|
},
|
|
115
145
|
d(n) {
|
|
@@ -120,37 +150,37 @@ function dt(d) {
|
|
|
120
150
|
function gt(d, r, c) {
|
|
121
151
|
var B, G, H, U;
|
|
122
152
|
let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
[{ x: 0, y: 0 }, { x:
|
|
153
|
+
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) => {
|
|
154
|
+
const l = [
|
|
155
|
+
[{ x: 0, y: 0 }, { x: s, y: 0 }],
|
|
126
156
|
[{ x: 0, y: 0 }, { x: 0, y: o }],
|
|
127
|
-
[{ x:
|
|
128
|
-
[{ x: 0, y: o }, { x:
|
|
129
|
-
],
|
|
130
|
-
for (let
|
|
131
|
-
const g =
|
|
132
|
-
g &&
|
|
157
|
+
[{ x: s, y: 0 }, { x: s, y: o }],
|
|
158
|
+
[{ x: 0, y: o }, { x: s, y: o }]
|
|
159
|
+
], f = [];
|
|
160
|
+
for (let u = 0; u < l.length; u++) {
|
|
161
|
+
const g = ft([a, m], [l[u][0], l[u][1]], !0);
|
|
162
|
+
g && f.push(g);
|
|
133
163
|
}
|
|
134
|
-
return
|
|
135
|
-
}, j = (
|
|
136
|
-
const
|
|
164
|
+
return f.length === 0 ? !1 : f;
|
|
165
|
+
}, j = (a, m) => {
|
|
166
|
+
const l = a.clone().project(t.camera), f = (l.x + 1) / 2 * s, u = (-l.y + 1) / 2 * o, g = m.clone().project(t.camera), L = (g.x + 1) / 2 * s, y = (-g.y + 1) / 2 * o, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
|
|
137
167
|
return {
|
|
138
|
-
startLeft:
|
|
139
|
-
startTop:
|
|
168
|
+
startLeft: f,
|
|
169
|
+
startTop: u,
|
|
140
170
|
endLeft: L,
|
|
141
171
|
endTop: y,
|
|
142
|
-
distance:
|
|
172
|
+
distance: i
|
|
143
173
|
};
|
|
144
|
-
}, N = (
|
|
145
|
-
const
|
|
174
|
+
}, N = (a, m, l) => {
|
|
175
|
+
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = a.clone().sub(f).normalize().angleTo(u), L = m.clone().sub(f).normalize().angleTo(u), y = a.distanceTo(m), T = m.clone().sub(m.clone().sub(a).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(a, m), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
|
|
146
176
|
let P = !0;
|
|
147
|
-
|
|
177
|
+
l || (P = !1), !z(a, l) && !z(m, l) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
|
|
148
178
|
let I = 50, b = D;
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
179
|
+
const p = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
|
|
180
|
+
if (p && p.length === 1 && (z(a, l) ? (b = Math.sqrt(Math.pow(p[0].x - h, 2) + Math.pow(p[0].y - x, 2)), I = b / D * 50) : z(m, l) && (b = Math.sqrt(Math.pow(p[0].x - v, 2) + Math.pow(p[0].y - q, 2)), I = 100 - b / D * 50)), p && p.length === 2) {
|
|
151
181
|
const F = {
|
|
152
|
-
x: (
|
|
153
|
-
y: (
|
|
182
|
+
x: (p[0].x + p[1].x) / 2,
|
|
183
|
+
y: (p[0].y + p[1].y) / 2
|
|
154
184
|
};
|
|
155
185
|
I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
|
|
156
186
|
}
|
|
@@ -164,18 +194,18 @@ function gt(d, r, c) {
|
|
|
164
194
|
ruleLength: y
|
|
165
195
|
};
|
|
166
196
|
}, _ = () => {
|
|
167
|
-
const
|
|
168
|
-
if (!
|
|
197
|
+
const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
|
|
198
|
+
if (!m)
|
|
169
199
|
return c(0, n = []);
|
|
170
|
-
if (t.currentMode !==
|
|
200
|
+
if (t.currentMode !== lt.Mode.Panorama)
|
|
171
201
|
return c(0, n = []);
|
|
172
|
-
const
|
|
173
|
-
const h =
|
|
202
|
+
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) => {
|
|
203
|
+
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));
|
|
174
204
|
return h - x;
|
|
175
|
-
}), y =
|
|
176
|
-
var b,
|
|
177
|
-
const T =
|
|
178
|
-
return
|
|
205
|
+
}), y = m.lines.map((i) => {
|
|
206
|
+
var b, p;
|
|
207
|
+
const T = i.start, h = i.end, { startLeft: x, startTop: v, distance: q, deg: D, visible: V, labelOffset: S, ruleLength: P } = N(new M(T[0], -T[1], -T[2]), new M(h[0], -h[1], -h[2]), L), I = [];
|
|
208
|
+
return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((p = i.children) == null || p.forEach((F) => {
|
|
179
209
|
const W = F.start, Y = F.end, { distance: O } = j(new M(W[0], -W[1], -W[2]), new M(Y[0], -Y[1], -Y[2]));
|
|
180
210
|
I.push({ width: O, state: F.state });
|
|
181
211
|
})), {
|
|
@@ -183,7 +213,7 @@ function gt(d, r, c) {
|
|
|
183
213
|
left: x,
|
|
184
214
|
top: v,
|
|
185
215
|
rotateDeg: D,
|
|
186
|
-
state:
|
|
216
|
+
state: i.state,
|
|
187
217
|
children: I,
|
|
188
218
|
labelOffset: S,
|
|
189
219
|
visible: V,
|
|
@@ -191,20 +221,20 @@ function gt(d, r, c) {
|
|
|
191
221
|
};
|
|
192
222
|
});
|
|
193
223
|
c(0, n = y);
|
|
194
|
-
}, E = () =>
|
|
224
|
+
}, E = () => pt(_), R = ut(_, 80);
|
|
195
225
|
return rt(() => {
|
|
196
226
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
197
|
-
}),
|
|
227
|
+
}), it(() => {
|
|
198
228
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
199
|
-
}), d.$$set = (
|
|
200
|
-
"five" in
|
|
229
|
+
}), d.$$set = (a) => {
|
|
230
|
+
"five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
|
|
201
231
|
}, [n, t, e, w];
|
|
202
232
|
}
|
|
203
|
-
class
|
|
233
|
+
class _e extends Q {
|
|
204
234
|
constructor(r) {
|
|
205
235
|
super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
206
236
|
}
|
|
207
237
|
}
|
|
208
238
|
export {
|
|
209
|
-
|
|
239
|
+
_e as default
|
|
210
240
|
};
|
|
@@ -17,20 +17,50 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
17
17
|
import "../shared-utils/three/temp.js";
|
|
18
18
|
import "../shared-utils/dom/resizeObserver.js";
|
|
19
19
|
import "hammerjs";
|
|
20
|
+
import "../shared-utils/three/PointSelector/index.js";
|
|
21
|
+
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
22
|
+
import "../shared-utils/three/Magnifier.js";
|
|
23
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
24
|
+
import "../shared-utils/three/Assets/index.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
20
26
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
29
|
+
import "../shared-utils/three/centerPoint.js";
|
|
30
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
21
31
|
import "@realsee/five/line";
|
|
22
32
|
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
23
33
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
24
34
|
import "../vendor/three/build/three.module.js";
|
|
25
35
|
import "../shared-utils/three/core/Sphere.js";
|
|
26
36
|
import "animejs";
|
|
37
|
+
import "../shared-utils/isNil.js";
|
|
38
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
39
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
43
|
+
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
44
|
+
import "../Sculpt/Meshes/Line.js";
|
|
45
|
+
import "../Sculpt/typings/style.js";
|
|
46
|
+
import "../shared-utils/five/FiveLine.js";
|
|
47
|
+
import "../shared-utils/three/IObject3D.js";
|
|
48
|
+
import "../Sculpt/utils/removeAllTag.js";
|
|
49
|
+
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
50
|
+
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
|
+
import "../shared-utils/util.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
53
|
+
import "../shared-utils/isTouchDevice.js";
|
|
54
|
+
import "../shared-utils/five/getPosition.js";
|
|
55
|
+
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
56
|
+
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
27
57
|
import "../shared-utils/equal.js";
|
|
28
58
|
import "../shared-utils/isTruelyObject.js";
|
|
29
59
|
import "../shared-utils/math/planimetry.js";
|
|
30
60
|
import "../shared-utils/throttle.js";
|
|
31
61
|
import "./RulerItem.js";
|
|
32
|
-
const
|
|
62
|
+
const ar = (r, o) => new t(r, o);
|
|
33
63
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
64
|
+
ar as PanoRulerProPlugin,
|
|
65
|
+
ar as default
|
|
36
66
|
};
|