@realsee/dnalogel 3.50.16 → 3.50.18-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/README.md +116 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +2 -0
- package/dist/Sculpt/utils/export.d.ts +18 -0
- package/dist/index.cjs.js +207 -207
- package/dist/index.js +34867 -34776
- package/dist/index.umd.js +211 -211
- package/dist/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/tag.d.ts +41 -2
- package/dist/shared-utils/three/temp.d.ts +2 -2
- package/libs/AreaMakerPlugin/Controller.js +100 -46
- package/libs/AreaMakerPlugin/index.js +64 -10
- package/libs/AreaMakerPlugin/utils/Item.js +156 -100
- package/libs/CSS3DRenderPlugin/Controller.js +93 -44
- package/libs/CSS3DRenderPlugin/index.js +62 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +105 -49
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +130 -77
- package/libs/CruisePlugin/BaseController.js +143 -89
- package/libs/CruisePlugin/Move.js +83 -39
- package/libs/CruisePlugin/Work.js +95 -51
- package/libs/CruisePlugin/index.js +66 -22
- package/libs/CurrentPanoImagePlugin/Controller.js +139 -85
- package/libs/CurrentPanoImagePlugin/index.js +63 -9
- package/libs/GuideLinePlugin/Controller.js +57 -13
- package/libs/GuideLinePlugin/GuideLineItem.js +63 -19
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +6 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +58 -14
- package/libs/GuideLinePlugin/index.js +66 -22
- package/libs/ModelMakerPlugin/Controller.d.ts +2 -0
- package/libs/ModelMakerPlugin/Controller.js +190 -129
- package/libs/ModelMakerPlugin/index.js +63 -21
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +5 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +9 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +96 -47
- package/libs/ModelTVVideoPlugin/index.js +55 -6
- package/libs/Object3DHelperPlugin/Controller.js +42 -25
- package/libs/Object3DHelperPlugin/index.js +28 -12
- package/libs/PanoCompassPlugin/Controller.js +92 -44
- package/libs/PanoCompassPlugin/index.js +63 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +79 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +132 -78
- package/libs/PanoDoorLabelPlugin/index.js +63 -9
- package/libs/PanoMeasurePlugin/Components/Controller0.js +126 -77
- package/libs/PanoMeasurePlugin/Components/Controller1.js +139 -90
- package/libs/PanoMeasurePlugin/Controller/EditController.js +120 -71
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +120 -70
- package/libs/PanoMeasurePlugin/Controller/index.js +132 -86
- package/libs/PanoMeasurePlugin/Model/area.js +72 -22
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +56 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +64 -15
- package/libs/PanoMeasurePlugin/index.js +62 -16
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +57 -2
- package/libs/PanoRulerProPlugin/Controller.js +88 -33
- package/libs/PanoRulerProPlugin/RulerItems.js +146 -91
- package/libs/PanoRulerProPlugin/index.js +64 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +177 -128
- package/libs/PanoSpatialTagPlugin/index.js +53 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +116 -60
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +192 -136
- package/libs/PanoTagPlugin/Components/Tag/index.js +194 -139
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +204 -149
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +157 -101
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +75 -20
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +86 -31
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +93 -37
- package/libs/PanoTagPlugin/controller/TagRender.js +62 -18
- package/libs/PanoTagPlugin/controller/TagUtil.js +123 -79
- package/libs/PanoTagPlugin/controller/index.js +110 -72
- package/libs/PanoTagPlugin/index.js +72 -28
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +77 -21
- package/libs/PanoVideoPlugin/Controller.js +95 -41
- package/libs/PanoVideoPlugin/VideoMeshController.js +119 -63
- package/libs/PanoVideoPlugin/index.js +66 -12
- package/libs/PipelinePlugin/Controller.js +173 -119
- package/libs/PipelinePlugin/index.js +63 -9
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +70 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +58 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +98 -42
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +10 -6
- package/libs/Sculpt/Meshes/Line.js +43 -38
- package/libs/Sculpt/Meshes/LineWithDots.js +14 -10
- package/libs/Sculpt/Meshes/Point.js +24 -20
- package/libs/Sculpt/Meshes/Polygon.js +5 -2
- package/libs/Sculpt/Meshes/Prism.js +19 -16
- package/libs/Sculpt/Objects/Line/Editor.js +6 -5
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/export.d.ts +18 -0
- package/libs/Sculpt/utils/export.js +21 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +26 -22
- package/libs/base/BasePlugin.js +14 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +146 -94
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +62 -10
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +109 -56
- package/libs/floorplan/ModelFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +116 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +62 -9
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +105 -52
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +62 -9
- package/libs/floorplan/index.js +4 -0
- package/libs/index.js +208 -206
- package/libs/shared-utils/five/fiveEveryReadyListener.d.ts +2 -0
- package/libs/shared-utils/five/fiveEveryReadyListener.js +15 -0
- package/libs/shared-utils/five/index.js +6 -2
- package/libs/shared-utils/five/lookObject.js +31 -27
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +41 -2
- package/libs/shared-utils/tag.js +139 -86
- package/libs/shared-utils/three/index.js +4 -0
- package/libs/shared-utils/three/temp.d.ts +2 -2
- package/libs/shared-utils/three/temp.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 ot, transition_out as k, detach as et, destroy_each as rt, onMount as nt, onDestroy as it, create_component as mt, mount_component as st, destroy_component as at, group_outros as pt } from "../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Five as ct } from "@realsee/five";
|
|
3
|
+
import { nextFrame as lt } 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";
|
|
@@ -11,6 +11,10 @@ import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
|
11
11
|
import "../shared-utils/three/core/Sphere.js";
|
|
12
12
|
import "animejs";
|
|
13
13
|
import { equal as z } from "../shared-utils/equal.js";
|
|
14
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
15
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
16
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
17
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
14
18
|
import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
|
|
15
19
|
import { throttle as ut } from "../shared-utils/throttle.js";
|
|
16
20
|
import ht from "./RulerItem.js";
|
|
@@ -24,7 +28,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
24
28
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
25
29
|
import "../shared-utils/five/transformPosition.js";
|
|
26
30
|
import "../shared-utils/three/temp.js";
|
|
31
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
27
32
|
import "../shared-utils/dom/resizeObserver.js";
|
|
33
|
+
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
28
34
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
29
35
|
import "../shared-utils/three/Magnifier.js";
|
|
30
36
|
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
@@ -56,114 +62,163 @@ import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
|
56
62
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
57
63
|
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
58
64
|
import "../vendor/three/build/three.module.js";
|
|
65
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
66
|
+
import "../shared-utils/three/earcut3D.js";
|
|
67
|
+
import "earcut";
|
|
68
|
+
import "../shared-utils/three/getNormal.js";
|
|
69
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
70
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
71
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
72
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
73
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
74
|
+
import "../base/BasePlugin.js";
|
|
75
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
76
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
77
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
78
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
79
|
+
import "../shared-utils/three/boundingBox.js";
|
|
80
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
81
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
84
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
85
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
86
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
89
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
90
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
91
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
92
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
93
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
94
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
95
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
96
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
97
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
98
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
99
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
100
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
101
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
102
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
103
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
104
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
105
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
106
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
107
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
108
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
109
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
110
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
111
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
112
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
113
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
59
114
|
import "../shared-utils/isTruelyObject.js";
|
|
60
|
-
function J(d,
|
|
115
|
+
function J(d, n, a) {
|
|
61
116
|
const t = d.slice();
|
|
62
|
-
return t[12] =
|
|
117
|
+
return t[12] = n[a], t;
|
|
63
118
|
}
|
|
64
119
|
function K(d) {
|
|
65
|
-
let
|
|
66
|
-
return
|
|
120
|
+
let n, a;
|
|
121
|
+
return n = new ht({
|
|
67
122
|
props: { rulerItemProp: (
|
|
68
123
|
/*itemData*/
|
|
69
124
|
d[12]
|
|
70
125
|
) }
|
|
71
126
|
}), {
|
|
72
127
|
c() {
|
|
73
|
-
|
|
128
|
+
mt(n.$$.fragment);
|
|
74
129
|
},
|
|
75
|
-
m(t,
|
|
76
|
-
|
|
130
|
+
m(t, o) {
|
|
131
|
+
st(n, t, o), a = !0;
|
|
77
132
|
},
|
|
78
|
-
p(t,
|
|
133
|
+
p(t, o) {
|
|
79
134
|
const w = {};
|
|
80
|
-
|
|
135
|
+
o & /*rulerItemProp*/
|
|
81
136
|
1 && (w.rulerItemProp = /*itemData*/
|
|
82
|
-
t[12]),
|
|
137
|
+
t[12]), n.$set(w);
|
|
83
138
|
},
|
|
84
139
|
i(t) {
|
|
85
|
-
|
|
140
|
+
a || (C(n.$$.fragment, t), a = !0);
|
|
86
141
|
},
|
|
87
142
|
o(t) {
|
|
88
|
-
k(
|
|
143
|
+
k(n.$$.fragment, t), a = !1;
|
|
89
144
|
},
|
|
90
145
|
d(t) {
|
|
91
|
-
|
|
146
|
+
at(n, t);
|
|
92
147
|
}
|
|
93
148
|
};
|
|
94
149
|
}
|
|
95
150
|
function dt(d) {
|
|
96
|
-
let
|
|
151
|
+
let n, a, t = (
|
|
97
152
|
/*rulerItemProp*/
|
|
98
153
|
d[0]
|
|
99
|
-
),
|
|
100
|
-
for (let
|
|
101
|
-
|
|
102
|
-
const w = (
|
|
103
|
-
|
|
154
|
+
), o = [];
|
|
155
|
+
for (let r = 0; r < t.length; r += 1)
|
|
156
|
+
o[r] = K(J(d, t, r));
|
|
157
|
+
const w = (r) => k(o[r], 1, 1, () => {
|
|
158
|
+
o[r] = null;
|
|
104
159
|
});
|
|
105
160
|
return {
|
|
106
161
|
c() {
|
|
107
|
-
|
|
108
|
-
for (let
|
|
109
|
-
|
|
162
|
+
n = $("div");
|
|
163
|
+
for (let r = 0; r < o.length; r += 1)
|
|
164
|
+
o[r].c();
|
|
110
165
|
},
|
|
111
|
-
m(
|
|
112
|
-
tt(
|
|
113
|
-
for (let
|
|
114
|
-
e
|
|
115
|
-
|
|
166
|
+
m(r, m) {
|
|
167
|
+
tt(r, n, m);
|
|
168
|
+
for (let e = 0; e < o.length; e += 1)
|
|
169
|
+
o[e] && o[e].m(n, null);
|
|
170
|
+
a = !0;
|
|
116
171
|
},
|
|
117
|
-
p(
|
|
118
|
-
if (
|
|
172
|
+
p(r, [m]) {
|
|
173
|
+
if (m & /*rulerItemProp*/
|
|
119
174
|
1) {
|
|
120
175
|
t = /*rulerItemProp*/
|
|
121
|
-
|
|
122
|
-
let
|
|
123
|
-
for (
|
|
124
|
-
const A = J(
|
|
125
|
-
e
|
|
176
|
+
r[0];
|
|
177
|
+
let e;
|
|
178
|
+
for (e = 0; e < t.length; e += 1) {
|
|
179
|
+
const A = J(r, t, e);
|
|
180
|
+
o[e] ? (o[e].p(A, m), C(o[e], 1)) : (o[e] = K(A), o[e].c(), C(o[e], 1), o[e].m(n, null));
|
|
126
181
|
}
|
|
127
|
-
for (
|
|
128
|
-
w(
|
|
129
|
-
|
|
182
|
+
for (pt(), e = t.length; e < o.length; e += 1)
|
|
183
|
+
w(e);
|
|
184
|
+
ot();
|
|
130
185
|
}
|
|
131
186
|
},
|
|
132
|
-
i(
|
|
133
|
-
if (!
|
|
134
|
-
for (let
|
|
135
|
-
C(
|
|
136
|
-
|
|
187
|
+
i(r) {
|
|
188
|
+
if (!a) {
|
|
189
|
+
for (let m = 0; m < t.length; m += 1)
|
|
190
|
+
C(o[m]);
|
|
191
|
+
a = !0;
|
|
137
192
|
}
|
|
138
193
|
},
|
|
139
|
-
o(
|
|
140
|
-
|
|
141
|
-
for (let
|
|
142
|
-
k(
|
|
143
|
-
|
|
194
|
+
o(r) {
|
|
195
|
+
o = o.filter(Boolean);
|
|
196
|
+
for (let m = 0; m < o.length; m += 1)
|
|
197
|
+
k(o[m]);
|
|
198
|
+
a = !1;
|
|
144
199
|
},
|
|
145
|
-
d(
|
|
146
|
-
|
|
200
|
+
d(r) {
|
|
201
|
+
r && et(n), rt(o, r);
|
|
147
202
|
}
|
|
148
203
|
};
|
|
149
204
|
}
|
|
150
|
-
function gt(d,
|
|
205
|
+
function gt(d, n, a) {
|
|
151
206
|
var B, G, H, U;
|
|
152
|
-
let { five: t } =
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
[{ x: 0, y: 0 }, { x:
|
|
156
|
-
[{ x: 0, y: 0 }, { x: 0, y:
|
|
157
|
-
[{ x:
|
|
158
|
-
[{ x: 0, y:
|
|
207
|
+
let { five: t } = n, { rulerDatas: o } = n, { options: w } = n, r = [];
|
|
208
|
+
const m = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, e = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (s, p) => {
|
|
209
|
+
const c = [
|
|
210
|
+
[{ x: 0, y: 0 }, { x: m, y: 0 }],
|
|
211
|
+
[{ x: 0, y: 0 }, { x: 0, y: e }],
|
|
212
|
+
[{ x: m, y: 0 }, { x: m, y: e }],
|
|
213
|
+
[{ x: 0, y: e }, { x: m, y: e }]
|
|
159
214
|
], f = [];
|
|
160
|
-
for (let u = 0; u <
|
|
161
|
-
const g = ft([
|
|
215
|
+
for (let u = 0; u < c.length; u++) {
|
|
216
|
+
const g = ft([s, p], [c[u][0], c[u][1]], !0);
|
|
162
217
|
g && f.push(g);
|
|
163
218
|
}
|
|
164
219
|
return f.length === 0 ? !1 : f;
|
|
165
|
-
}, j = (
|
|
166
|
-
const
|
|
220
|
+
}, j = (s, p) => {
|
|
221
|
+
const c = s.clone().project(t.camera), f = (c.x + 1) / 2 * m, u = (-c.y + 1) / 2 * e, g = p.clone().project(t.camera), L = (g.x + 1) / 2 * m, y = (-g.y + 1) / 2 * e, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
|
|
167
222
|
return {
|
|
168
223
|
startLeft: f,
|
|
169
224
|
startTop: u,
|
|
@@ -171,16 +226,16 @@ function gt(d, r, c) {
|
|
|
171
226
|
endTop: y,
|
|
172
227
|
distance: i
|
|
173
228
|
};
|
|
174
|
-
}, N = (
|
|
175
|
-
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g =
|
|
229
|
+
}, N = (s, p, c) => {
|
|
230
|
+
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = s.clone().sub(f).normalize().angleTo(u), L = p.clone().sub(f).normalize().angleTo(u), y = s.distanceTo(p), T = p.clone().sub(p.clone().sub(s).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(s, p), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
|
|
176
231
|
let P = !0;
|
|
177
|
-
|
|
232
|
+
c || (P = !1), !z(s, c) && !z(p, c) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
|
|
178
233
|
let I = 50, b = D;
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
234
|
+
const l = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
|
|
235
|
+
if (l && l.length === 1 && (z(s, c) ? (b = Math.sqrt(Math.pow(l[0].x - h, 2) + Math.pow(l[0].y - x, 2)), I = b / D * 50) : z(p, c) && (b = Math.sqrt(Math.pow(l[0].x - v, 2) + Math.pow(l[0].y - q, 2)), I = 100 - b / D * 50)), l && l.length === 2) {
|
|
181
236
|
const F = {
|
|
182
|
-
x: (
|
|
183
|
-
y: (
|
|
237
|
+
x: (l[0].x + l[1].x) / 2,
|
|
238
|
+
y: (l[0].y + l[1].y) / 2
|
|
184
239
|
};
|
|
185
240
|
I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
|
|
186
241
|
}
|
|
@@ -194,18 +249,18 @@ function gt(d, r, c) {
|
|
|
194
249
|
ruleLength: y
|
|
195
250
|
};
|
|
196
251
|
}, _ = () => {
|
|
197
|
-
const
|
|
198
|
-
if (!
|
|
199
|
-
return
|
|
200
|
-
if (t.currentMode !==
|
|
201
|
-
return
|
|
202
|
-
const
|
|
203
|
-
const h = i.clone().setY(0).sub(
|
|
252
|
+
const s = t.panoIndex, p = o.find((i) => i.panoIndex === s);
|
|
253
|
+
if (!p)
|
|
254
|
+
return a(0, r = []);
|
|
255
|
+
if (t.currentMode !== ct.Mode.Panorama)
|
|
256
|
+
return a(0, r = []);
|
|
257
|
+
const c = t.camera.position, f = t.camera.getWorldDirection(new M()), u = p.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = p.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
|
|
258
|
+
const h = i.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(c).normalize().angleTo(f.clone().setY(0));
|
|
204
259
|
return h - x;
|
|
205
|
-
}), y =
|
|
206
|
-
var b,
|
|
260
|
+
}), y = p.lines.map((i) => {
|
|
261
|
+
var b, l;
|
|
207
262
|
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 && ((
|
|
263
|
+
return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((l = i.children) == null || l.forEach((F) => {
|
|
209
264
|
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]));
|
|
210
265
|
I.push({ width: O, state: F.state });
|
|
211
266
|
})), {
|
|
@@ -220,21 +275,21 @@ function gt(d, r, c) {
|
|
|
220
275
|
labelElement: w.distanceText(P)
|
|
221
276
|
};
|
|
222
277
|
});
|
|
223
|
-
|
|
224
|
-
}, E = () =>
|
|
225
|
-
return
|
|
278
|
+
a(0, r = y);
|
|
279
|
+
}, E = () => lt(_), R = ut(_, 80);
|
|
280
|
+
return nt(() => {
|
|
226
281
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
227
282
|
}), it(() => {
|
|
228
283
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
229
|
-
}), d.$$set = (
|
|
230
|
-
"five" in
|
|
231
|
-
}, [
|
|
284
|
+
}), d.$$set = (s) => {
|
|
285
|
+
"five" in s && a(1, t = s.five), "rulerDatas" in s && a(2, o = s.rulerDatas), "options" in s && a(3, w = s.options);
|
|
286
|
+
}, [r, t, o, w];
|
|
232
287
|
}
|
|
233
|
-
class
|
|
234
|
-
constructor(
|
|
235
|
-
super(), X(this,
|
|
288
|
+
class De extends Q {
|
|
289
|
+
constructor(n) {
|
|
290
|
+
super(), X(this, n, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
236
291
|
}
|
|
237
292
|
}
|
|
238
293
|
export {
|
|
239
|
-
|
|
294
|
+
De as default
|
|
240
295
|
};
|
|
@@ -15,7 +15,10 @@ import "../shared-utils/Subscribe.js";
|
|
|
15
15
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
16
16
|
import "../shared-utils/five/transformPosition.js";
|
|
17
17
|
import "../shared-utils/three/temp.js";
|
|
18
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
18
19
|
import "../shared-utils/dom/resizeObserver.js";
|
|
20
|
+
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
21
|
+
import "../shared-utils/throttle.js";
|
|
19
22
|
import "hammerjs";
|
|
20
23
|
import "../shared-utils/three/PointSelector/index.js";
|
|
21
24
|
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
@@ -35,32 +38,84 @@ import "../vendor/three/build/three.module.js";
|
|
|
35
38
|
import "../shared-utils/three/core/Sphere.js";
|
|
36
39
|
import "animejs";
|
|
37
40
|
import "../shared-utils/isNil.js";
|
|
38
|
-
import "../
|
|
39
|
-
import "../shared-utils/
|
|
41
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
42
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
43
|
+
import "../shared-utils/three/earcut3D.js";
|
|
44
|
+
import "earcut";
|
|
45
|
+
import "../shared-utils/three/getNormal.js";
|
|
46
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
47
|
+
import "../Sculpt/typings/style.js";
|
|
48
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
49
|
+
import "../shared-utils/three/IObject3D.js";
|
|
50
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
51
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
52
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
53
|
+
import "../base/BasePlugin.js";
|
|
54
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
55
|
+
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
56
|
+
import "../Sculpt/utils/three/rayOnLine.js";
|
|
57
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
58
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
60
|
+
import "../shared-utils/three/boundingBox.js";
|
|
61
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
63
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
64
|
+
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
40
66
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
41
67
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
42
68
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
69
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
70
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
|
+
import "../shared-utils/util.js";
|
|
72
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
73
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
74
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
43
75
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
44
76
|
import "../Sculpt/Meshes/Line.js";
|
|
45
|
-
import "../Sculpt/typings/style.js";
|
|
46
77
|
import "../shared-utils/five/FiveLine.js";
|
|
47
|
-
import "../shared-utils/three/IObject3D.js";
|
|
48
78
|
import "../Sculpt/utils/removeAllTag.js";
|
|
49
79
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
50
80
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
|
-
import "../shared-utils/util.js";
|
|
52
81
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
82
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
83
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
84
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
85
|
+
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
86
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
87
|
+
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
88
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
89
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
90
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
91
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
92
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
93
|
+
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
94
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
95
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
96
|
+
import "../shared-utils/math/rad2Deg.js";
|
|
97
|
+
import "../shared-utils/math/deg2Rad.js";
|
|
98
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
99
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
100
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
101
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
102
|
+
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
103
|
+
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
104
|
+
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
105
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
106
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
107
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
53
108
|
import "../shared-utils/isTouchDevice.js";
|
|
109
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
54
110
|
import "../shared-utils/five/getPosition.js";
|
|
55
111
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
56
112
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
57
113
|
import "../shared-utils/equal.js";
|
|
58
114
|
import "../shared-utils/isTruelyObject.js";
|
|
59
115
|
import "../shared-utils/math/planimetry.js";
|
|
60
|
-
import "../shared-utils/throttle.js";
|
|
61
116
|
import "./RulerItem.js";
|
|
62
|
-
const
|
|
117
|
+
const Po = (r, o) => new t(r, o);
|
|
63
118
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
119
|
+
Po as PanoRulerProPlugin,
|
|
120
|
+
Po as default
|
|
66
121
|
};
|