@realsee/dnalogel 3.50.14 → 3.50.15-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
- package/dist/Sculpt/index.d.ts +2 -2
- package/dist/index.cjs.js +255 -255
- package/dist/index.js +2733 -2732
- package/dist/index.umd.js +251 -251
- package/dist/shared-utils/tag.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +1 -0
- package/libs/AreaMakerPlugin/Controller.js +104 -74
- package/libs/AreaMakerPlugin/index.js +33 -3
- package/libs/AreaMakerPlugin/utils/Item.js +66 -36
- package/libs/CSS3DRenderPlugin/Controller.js +35 -15
- package/libs/CSS3DRenderPlugin/index.js +34 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
- package/libs/CruisePlugin/BaseController.js +59 -29
- package/libs/CruisePlugin/Move.js +32 -13
- package/libs/CruisePlugin/Work.js +65 -46
- package/libs/CruisePlugin/index.js +37 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
- package/libs/CurrentPanoImagePlugin/index.js +34 -4
- package/libs/GuideLinePlugin/Controller.js +59 -40
- package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
- package/libs/GuideLinePlugin/index.js +37 -18
- package/libs/ModelMakerPlugin/Controller.js +50 -32
- package/libs/ModelMakerPlugin/index.js +33 -15
- package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
- package/libs/ModelTVVideoPlugin/index.js +23 -3
- package/libs/Object3DHelperPlugin/Controller.js +49 -30
- package/libs/Object3DHelperPlugin/index.js +36 -17
- package/libs/PanoCompassPlugin/Controller.js +33 -13
- package/libs/PanoCompassPlugin/index.js +34 -14
- package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
- package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
- package/libs/PanoDoorLabelPlugin/index.js +34 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
- package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
- package/libs/PanoMeasurePlugin/Model/area.js +41 -15
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
- package/libs/PanoMeasurePlugin/index.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
- package/libs/PanoRulerProPlugin/Controller.js +60 -30
- package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
- package/libs/PanoRulerProPlugin/index.js +33 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
- package/libs/PanoSpatialTagPlugin/index.js +21 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
- package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
- package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
- package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
- package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
- package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
- package/libs/PanoTagPlugin/controller/index.js +45 -26
- package/libs/PanoTagPlugin/index.js +40 -21
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
- package/libs/PanoVideoPlugin/Controller.js +91 -61
- package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
- package/libs/PanoVideoPlugin/index.js +36 -6
- package/libs/PipelinePlugin/Controller.js +80 -51
- package/libs/PipelinePlugin/index.js +34 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
- package/libs/Sculpt/Meshes/Box.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +9 -8
- package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Polygon.js +3 -2
- package/libs/Sculpt/Meshes/Prism.js +8 -7
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.d.ts +2 -2
- package/libs/Sculpt/index.js +3 -2
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
- package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +28 -28
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +44 -42
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +1 -1
- package/libs/shared-utils/tag.js +41 -41
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/index.d.ts +1 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -70,13 +70,42 @@ import "../../shared-utils/five/transformPosition.js";
|
|
|
70
70
|
import "../../shared-utils/three/temp.js";
|
|
71
71
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
72
72
|
import "hammerjs";
|
|
73
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
74
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
75
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
76
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
77
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
78
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
73
79
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
81
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
82
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
83
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
74
84
|
import "@realsee/five/line";
|
|
75
85
|
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
76
86
|
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
77
87
|
import "../../vendor/three/build/three.module.js";
|
|
78
88
|
import "../../shared-utils/three/core/Sphere.js";
|
|
79
89
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
90
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
91
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
92
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
93
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
95
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
96
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
97
|
+
import "../../Sculpt/typings/style.js";
|
|
98
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
99
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
100
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
101
|
+
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
102
|
+
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
103
|
+
import "../../shared-utils/util.js";
|
|
104
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
106
|
+
import "../../shared-utils/five/getPosition.js";
|
|
107
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
108
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
80
109
|
import "../utils/noTypecheck.js";
|
|
81
110
|
import "./Tag/AudioTag/index.js";
|
|
82
111
|
import "./Tag/AudioTag/AudioTag.js";
|
|
@@ -98,7 +127,6 @@ import "@realsee/five/gltf-loader";
|
|
|
98
127
|
import "../utils/planeNormal.js";
|
|
99
128
|
import "../utils/tag/tagCheck.js";
|
|
100
129
|
import "../utils/model/mediaPlane.js";
|
|
101
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
102
130
|
import "../../shared-utils/three/loadTexture.js";
|
|
103
131
|
import "../../shared-utils/three/Quadrangle.js";
|
|
104
132
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -116,7 +144,6 @@ import "../typings/tag/TagConfig.js";
|
|
|
116
144
|
import "@realsee/five";
|
|
117
145
|
import "../../shared-utils/five/mode.js";
|
|
118
146
|
import "../utils/tag/format.js";
|
|
119
|
-
import "../../shared-utils/util.js";
|
|
120
147
|
import "../../shared-utils/three/blink.js";
|
|
121
148
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
122
149
|
import "../../shared-utils/formatRad.js";
|
|
@@ -131,83 +158,83 @@ import "./Common/TagPoint.js";
|
|
|
131
158
|
function K(a) {
|
|
132
159
|
I(a, "svelte-1owzhnq", ".tag--container.svelte-1owzhnq{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translate3d(0, 0, 0);transition:opacity 0.2s linear}.tag--container.hide.svelte-1owzhnq{opacity:0;pointer-events:none}.tag--container.hide.svelte-1owzhnq *{pointer-events:none !important}");
|
|
133
160
|
}
|
|
134
|
-
function b(a, t,
|
|
135
|
-
const
|
|
136
|
-
return
|
|
161
|
+
function b(a, t, o) {
|
|
162
|
+
const i = a.slice();
|
|
163
|
+
return i[8] = t[o], i;
|
|
137
164
|
}
|
|
138
165
|
function y(a) {
|
|
139
|
-
let t,
|
|
166
|
+
let t, o = [], i = /* @__PURE__ */ new Map(), m, r, n = (
|
|
140
167
|
/*tags*/
|
|
141
168
|
a[0]
|
|
142
169
|
);
|
|
143
|
-
const f = (
|
|
170
|
+
const f = (p) => (
|
|
144
171
|
/*tag*/
|
|
145
|
-
|
|
172
|
+
p[8].id
|
|
146
173
|
);
|
|
147
|
-
for (let
|
|
148
|
-
let
|
|
149
|
-
|
|
174
|
+
for (let p = 0; p < n.length; p += 1) {
|
|
175
|
+
let e = b(a, n, p), s = f(e);
|
|
176
|
+
i.set(s, o[p] = z(s, e));
|
|
150
177
|
}
|
|
151
178
|
return {
|
|
152
179
|
c() {
|
|
153
|
-
var
|
|
180
|
+
var p;
|
|
154
181
|
t = N("div");
|
|
155
|
-
for (let
|
|
156
|
-
|
|
182
|
+
for (let e = 0; e < o.length; e += 1)
|
|
183
|
+
o[e].c();
|
|
157
184
|
h(t, "class", "tag--container svelte-1owzhnq"), h(t, "data-infive", "1"), g(t, "hide", !/*state*/
|
|
158
185
|
a[4].visible || !/*temporaryState*/
|
|
159
186
|
a[5].visible), k(
|
|
160
187
|
t,
|
|
161
188
|
"z-index",
|
|
162
189
|
/*zIndex*/
|
|
163
|
-
(
|
|
190
|
+
(p = a[6]) != null ? p : ""
|
|
164
191
|
);
|
|
165
192
|
},
|
|
166
|
-
m(
|
|
167
|
-
_(
|
|
168
|
-
for (let s = 0; s <
|
|
169
|
-
|
|
193
|
+
m(p, e) {
|
|
194
|
+
_(p, t, e);
|
|
195
|
+
for (let s = 0; s < o.length; s += 1)
|
|
196
|
+
o[s] && o[s].m(t, null);
|
|
170
197
|
r = !0;
|
|
171
198
|
},
|
|
172
|
-
p(
|
|
199
|
+
p(p, e) {
|
|
173
200
|
var s;
|
|
174
|
-
|
|
175
|
-
63 && (
|
|
176
|
-
|
|
201
|
+
e & /*state, temporaryState, tags, mediaStore, rendererMap, contentTypeMap*/
|
|
202
|
+
63 && (n = /*tags*/
|
|
203
|
+
p[0], v(), o = j(o, e, f, 1, p, n, i, t, A, z, null, b), S()), (!r || e & /*state, temporaryState*/
|
|
177
204
|
48) && g(t, "hide", !/*state*/
|
|
178
|
-
|
|
179
|
-
|
|
205
|
+
p[4].visible || !/*temporaryState*/
|
|
206
|
+
p[5].visible), e & /*zIndex*/
|
|
180
207
|
64 && k(
|
|
181
208
|
t,
|
|
182
209
|
"z-index",
|
|
183
210
|
/*zIndex*/
|
|
184
|
-
(s =
|
|
211
|
+
(s = p[6]) != null ? s : ""
|
|
185
212
|
);
|
|
186
213
|
},
|
|
187
|
-
i(
|
|
214
|
+
i(p) {
|
|
188
215
|
if (!r) {
|
|
189
|
-
for (let
|
|
190
|
-
c(
|
|
216
|
+
for (let e = 0; e < n.length; e += 1)
|
|
217
|
+
c(o[e]);
|
|
191
218
|
m || B(() => {
|
|
192
219
|
m = D(t, J, {}), m.start();
|
|
193
220
|
}), r = !0;
|
|
194
221
|
}
|
|
195
222
|
},
|
|
196
|
-
o(
|
|
197
|
-
for (let
|
|
198
|
-
u(
|
|
223
|
+
o(p) {
|
|
224
|
+
for (let e = 0; e < o.length; e += 1)
|
|
225
|
+
u(o[e]);
|
|
199
226
|
r = !1;
|
|
200
227
|
},
|
|
201
|
-
d(
|
|
202
|
-
|
|
203
|
-
for (let
|
|
204
|
-
|
|
228
|
+
d(p) {
|
|
229
|
+
p && d(t);
|
|
230
|
+
for (let e = 0; e < o.length; e += 1)
|
|
231
|
+
o[e].d();
|
|
205
232
|
}
|
|
206
233
|
};
|
|
207
234
|
}
|
|
208
235
|
function z(a, t) {
|
|
209
|
-
let
|
|
210
|
-
return
|
|
236
|
+
let o, i, m;
|
|
237
|
+
return i = new H({
|
|
211
238
|
props: {
|
|
212
239
|
state: (
|
|
213
240
|
/*state*/
|
|
@@ -238,85 +265,85 @@ function z(a, t) {
|
|
|
238
265
|
key: a,
|
|
239
266
|
first: null,
|
|
240
267
|
c() {
|
|
241
|
-
|
|
268
|
+
o = M(), E(i.$$.fragment), this.first = o;
|
|
242
269
|
},
|
|
243
|
-
m(r,
|
|
244
|
-
_(r,
|
|
270
|
+
m(r, n) {
|
|
271
|
+
_(r, o, n), F(i, r, n), m = !0;
|
|
245
272
|
},
|
|
246
|
-
p(r,
|
|
273
|
+
p(r, n) {
|
|
247
274
|
t = r;
|
|
248
275
|
const f = {};
|
|
249
|
-
|
|
276
|
+
n & /*state*/
|
|
250
277
|
16 && (f.state = /*state*/
|
|
251
|
-
t[4]),
|
|
278
|
+
t[4]), n & /*temporaryState*/
|
|
252
279
|
32 && (f.temporaryState = /*temporaryState*/
|
|
253
|
-
t[5]),
|
|
280
|
+
t[5]), n & /*tags*/
|
|
254
281
|
1 && (f.tag = /*tag*/
|
|
255
|
-
t[8]),
|
|
282
|
+
t[8]), n & /*mediaStore*/
|
|
256
283
|
2 && (f.mediaStore = /*mediaStore*/
|
|
257
|
-
t[1]),
|
|
284
|
+
t[1]), n & /*rendererMap*/
|
|
258
285
|
4 && (f.rendererMap = /*rendererMap*/
|
|
259
|
-
t[2]),
|
|
286
|
+
t[2]), n & /*contentTypeMap*/
|
|
260
287
|
8 && (f.contentTypeMap = /*contentTypeMap*/
|
|
261
|
-
t[3]),
|
|
288
|
+
t[3]), i.$set(f);
|
|
262
289
|
},
|
|
263
290
|
i(r) {
|
|
264
|
-
m || (c(
|
|
291
|
+
m || (c(i.$$.fragment, r), m = !0);
|
|
265
292
|
},
|
|
266
293
|
o(r) {
|
|
267
|
-
u(
|
|
294
|
+
u(i.$$.fragment, r), m = !1;
|
|
268
295
|
},
|
|
269
296
|
d(r) {
|
|
270
|
-
r && d(
|
|
297
|
+
r && d(o), G(i, r);
|
|
271
298
|
}
|
|
272
299
|
};
|
|
273
300
|
}
|
|
274
301
|
function L(a) {
|
|
275
|
-
let t,
|
|
302
|
+
let t, o, i = (
|
|
276
303
|
/*state*/
|
|
277
304
|
a[4].enabled && y(a)
|
|
278
305
|
);
|
|
279
306
|
return {
|
|
280
307
|
c() {
|
|
281
|
-
|
|
308
|
+
i && i.c(), t = M();
|
|
282
309
|
},
|
|
283
310
|
m(m, r) {
|
|
284
|
-
|
|
311
|
+
i && i.m(m, r), _(m, t, r), o = !0;
|
|
285
312
|
},
|
|
286
313
|
p(m, [r]) {
|
|
287
314
|
/*state*/
|
|
288
|
-
m[4].enabled ?
|
|
289
|
-
16 && c(
|
|
290
|
-
|
|
315
|
+
m[4].enabled ? i ? (i.p(m, r), r & /*state*/
|
|
316
|
+
16 && c(i, 1)) : (i = y(m), i.c(), c(i, 1), i.m(t.parentNode, t)) : i && (v(), u(i, 1, 1, () => {
|
|
317
|
+
i = null;
|
|
291
318
|
}), S());
|
|
292
319
|
},
|
|
293
320
|
i(m) {
|
|
294
|
-
|
|
321
|
+
o || (c(i), o = !0);
|
|
295
322
|
},
|
|
296
323
|
o(m) {
|
|
297
|
-
u(
|
|
324
|
+
u(i), o = !1;
|
|
298
325
|
},
|
|
299
326
|
d(m) {
|
|
300
|
-
|
|
327
|
+
i && i.d(m), m && d(t);
|
|
301
328
|
}
|
|
302
329
|
};
|
|
303
330
|
}
|
|
304
|
-
function O(a, t,
|
|
305
|
-
let { tags:
|
|
331
|
+
function O(a, t, o) {
|
|
332
|
+
let { tags: i = [] } = t, { hooks: m } = t, { mediaStore: r } = t, { rendererMap: n } = t, { contentTypeMap: f } = t, { state: p } = t, { temporaryState: e } = t, { zIndex: s = void 0 } = t;
|
|
306
333
|
return C("hooks", m), a.$$set = (l) => {
|
|
307
|
-
"tags" in l &&
|
|
334
|
+
"tags" in l && o(0, i = l.tags), "hooks" in l && o(7, m = l.hooks), "mediaStore" in l && o(1, r = l.mediaStore), "rendererMap" in l && o(2, n = l.rendererMap), "contentTypeMap" in l && o(3, f = l.contentTypeMap), "state" in l && o(4, p = l.state), "temporaryState" in l && o(5, e = l.temporaryState), "zIndex" in l && o(6, s = l.zIndex);
|
|
308
335
|
}, [
|
|
309
|
-
|
|
336
|
+
i,
|
|
310
337
|
r,
|
|
311
|
-
p,
|
|
312
|
-
f,
|
|
313
338
|
n,
|
|
314
|
-
|
|
339
|
+
f,
|
|
340
|
+
p,
|
|
341
|
+
e,
|
|
315
342
|
s,
|
|
316
343
|
m
|
|
317
344
|
];
|
|
318
345
|
}
|
|
319
|
-
class
|
|
346
|
+
class Jo extends w {
|
|
320
347
|
constructor(t) {
|
|
321
348
|
super(), T(
|
|
322
349
|
this,
|
|
@@ -339,5 +366,5 @@ class si extends w {
|
|
|
339
366
|
}
|
|
340
367
|
}
|
|
341
368
|
export {
|
|
342
|
-
|
|
369
|
+
Jo as default
|
|
343
370
|
};
|
|
@@ -6,6 +6,7 @@ import tt from "./Common/TagPoint.js";
|
|
|
6
6
|
import "../../shared-utils/tag.js";
|
|
7
7
|
import { isModelLike as et } from "../../shared-utils/five/mode.js";
|
|
8
8
|
import "hammerjs";
|
|
9
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
9
10
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
11
|
import "@realsee/five/line";
|
|
11
12
|
import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
@@ -77,6 +78,34 @@ import "../../shared-utils/Utils/WorkUtil.js";
|
|
|
77
78
|
import "../../shared-utils/five/transformPosition.js";
|
|
78
79
|
import "../../shared-utils/three/temp.js";
|
|
79
80
|
import "../../shared-utils/dom/resizeObserver.js";
|
|
81
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
82
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
83
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
84
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
85
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
86
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
87
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
88
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
89
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
90
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
91
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
92
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
93
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
95
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
96
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
97
|
+
import "../../Sculpt/typings/style.js";
|
|
98
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
99
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
100
|
+
import "../../Sculpt/utils/removeAllTag.js";
|
|
101
|
+
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
102
|
+
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
103
|
+
import "../../shared-utils/util.js";
|
|
104
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
105
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
106
|
+
import "../../shared-utils/five/getPosition.js";
|
|
107
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
108
|
+
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
80
109
|
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
81
110
|
import "../../vendor/three/build/three.module.js";
|
|
82
111
|
import "./Tag/AudioTag/index.js";
|
|
@@ -99,7 +128,6 @@ import "@realsee/five/gltf-loader";
|
|
|
99
128
|
import "../utils/planeNormal.js";
|
|
100
129
|
import "../utils/tag/tagCheck.js";
|
|
101
130
|
import "../utils/model/mediaPlane.js";
|
|
102
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
103
131
|
import "../../shared-utils/three/loadTexture.js";
|
|
104
132
|
import "../../shared-utils/three/Quadrangle.js";
|
|
105
133
|
import "../../shared-utils/math/pointsIsRectangle.js";
|
|
@@ -116,7 +144,6 @@ import "../utils/tag/adaptConfig.js";
|
|
|
116
144
|
import "../typings/tag/TagConfig.js";
|
|
117
145
|
import "@realsee/five";
|
|
118
146
|
import "../utils/tag/format.js";
|
|
119
|
-
import "../../shared-utils/util.js";
|
|
120
147
|
import "../../shared-utils/three/blink.js";
|
|
121
148
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
122
149
|
import "../../shared-utils/formatRad.js";
|
|
@@ -465,7 +492,7 @@ function at(o, t, i) {
|
|
|
465
492
|
H
|
|
466
493
|
];
|
|
467
494
|
}
|
|
468
|
-
class
|
|
495
|
+
class oo extends J {
|
|
469
496
|
constructor(t) {
|
|
470
497
|
super(), K(
|
|
471
498
|
this,
|
|
@@ -486,5 +513,5 @@ class Li extends J {
|
|
|
486
513
|
}
|
|
487
514
|
}
|
|
488
515
|
export {
|
|
489
|
-
|
|
516
|
+
oo as default
|
|
490
517
|
};
|
|
@@ -43,6 +43,7 @@ import "../../../shared-utils/tag.js";
|
|
|
43
43
|
import { isPanoramaLike as U, isModelLike as C } from "../../../shared-utils/five/mode.js";
|
|
44
44
|
import * as B from "three";
|
|
45
45
|
import "hammerjs";
|
|
46
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
46
47
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
47
48
|
import { centerPoint as ee } from "../../../shared-utils/three/centerPoint.js";
|
|
48
49
|
import "@realsee/five/line";
|
|
@@ -77,10 +78,36 @@ import "../../../shared-utils/Utils/FiveUtil.js";
|
|
|
77
78
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
78
79
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
79
80
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
81
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
82
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
83
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
84
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
85
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
86
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
87
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
88
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
89
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
90
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
91
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
92
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
93
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
94
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
95
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
96
|
+
import "../../../Sculpt/typings/style.js";
|
|
97
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
98
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
99
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
100
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
101
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
102
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
103
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
104
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
105
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
106
|
+
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
80
107
|
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
81
108
|
import "../../../vendor/three/build/three.module.js";
|
|
82
109
|
import "../../../shared-utils/formatRad.js";
|
|
83
|
-
class
|
|
110
|
+
class Ti {
|
|
84
111
|
constructor(i, e) {
|
|
85
112
|
f(this, "plugin");
|
|
86
113
|
f(this, "id");
|
|
@@ -639,5 +666,5 @@ class ii {
|
|
|
639
666
|
}
|
|
640
667
|
}
|
|
641
668
|
export {
|
|
642
|
-
|
|
669
|
+
Ti as BaseTag
|
|
643
670
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
|
-
var b = (
|
|
3
|
-
var l = (
|
|
4
|
-
var d = (
|
|
5
|
-
var
|
|
2
|
+
var b = (p, e, i) => e in p ? f(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i;
|
|
3
|
+
var l = (p, e, i) => (b(p, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
var d = (p, e, i) => new Promise((m, o) => {
|
|
5
|
+
var s = (t) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
r(i.next(t));
|
|
8
8
|
} catch (n) {
|
|
9
9
|
o(n);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, a = (t) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
r(i.throw(t));
|
|
14
14
|
} catch (n) {
|
|
15
15
|
o(n);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, r = (t) => t.done ? m(t.value) : Promise.resolve(t.value).then(s, a);
|
|
18
|
+
r((i = i.apply(p, e)).next());
|
|
19
19
|
});
|
|
20
20
|
import { arrayPositionToVector3 as h } from "../../../shared-utils/positionToVector3.js";
|
|
21
21
|
import { loadGLTF as j } from "../../../shared-utils/three/GLTFLoader.js";
|
|
@@ -53,20 +53,47 @@ import "../../../shared-utils/three/temp.js";
|
|
|
53
53
|
import "../../../shared-utils/dom/resizeObserver.js";
|
|
54
54
|
import "../../../shared-utils/five/mode.js";
|
|
55
55
|
import "hammerjs";
|
|
56
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
57
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
58
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
59
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
60
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
61
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
62
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
63
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
64
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
65
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
57
66
|
import "@realsee/five/line";
|
|
58
67
|
import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
59
68
|
import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
60
69
|
import "../../../vendor/three/build/three.module.js";
|
|
61
70
|
import "../../../shared-utils/three/core/Sphere.js";
|
|
62
71
|
import "animejs";
|
|
72
|
+
import "../../../shared-utils/isNil.js";
|
|
63
73
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
64
|
-
import "
|
|
74
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
75
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
76
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
77
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
78
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
79
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
80
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
81
|
+
import "../../../Sculpt/typings/style.js";
|
|
82
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
83
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
84
|
+
import "../../../Sculpt/utils/removeAllTag.js";
|
|
85
|
+
import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
86
|
+
import "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
65
87
|
import "../../../shared-utils/util.js";
|
|
88
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
89
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
90
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
91
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
92
|
+
import "../../../shared-utils/three/PointSelector/utils/contents.js";
|
|
93
|
+
import "../../utils/tag/format.js";
|
|
66
94
|
import "../../../shared-utils/three/blink.js";
|
|
67
95
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
68
96
|
import "../../../shared-utils/formatRad.js";
|
|
69
|
-
import "../../../shared-utils/isNil.js";
|
|
70
97
|
import "../../../shared-utils/five/lookPoint.js";
|
|
71
98
|
import "../../../shared-utils/uuid.js";
|
|
72
99
|
import "../../utils/tagPosition.js";
|
|
@@ -75,42 +102,42 @@ import "../../../shared-utils/url/getUrl.js";
|
|
|
75
102
|
import "../../../shared-utils/five/getFloorIndex.js";
|
|
76
103
|
import "../../../shared-utils/safeObj.js";
|
|
77
104
|
import "../../utils/Cache.js";
|
|
78
|
-
class
|
|
79
|
-
constructor(i,
|
|
80
|
-
super(i,
|
|
105
|
+
class ti extends D {
|
|
106
|
+
constructor(i, m) {
|
|
107
|
+
super(i, m);
|
|
81
108
|
l(this, "loading", !1);
|
|
82
109
|
/** 加载外部模型 */
|
|
83
110
|
l(this, "loadModel", () => d(this, null, function* () {
|
|
84
|
-
var
|
|
111
|
+
var a;
|
|
85
112
|
const i = this.data.modelUrl;
|
|
86
113
|
if (!i)
|
|
87
114
|
return;
|
|
88
115
|
this.loading = !0;
|
|
89
|
-
const
|
|
116
|
+
const m = j(i).then((r) => d(this, null, function* () {
|
|
90
117
|
var c;
|
|
91
|
-
const t = Object.assign(
|
|
118
|
+
const t = Object.assign(r.scene, {
|
|
92
119
|
customID: this.id,
|
|
93
120
|
isTagModel: !0,
|
|
94
121
|
removeEventListener: this.getConfig().clickable === !1 ? () => {
|
|
95
|
-
} : this.addObjectClickHandler(this,
|
|
122
|
+
} : this.addObjectClickHandler(this, r.scene, (g) => {
|
|
96
123
|
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
|
|
97
124
|
})
|
|
98
125
|
});
|
|
99
126
|
return t.visible = this.currentVisible, new u.Matrix4().fromArray(this.matrix).decompose(t.position, t.quaternion, t.scale), t.updateWorldMatrix(!0, !0), t.visible = yield this.getVisible(), (c = this.getConfig().modelConfig) != null && c.autoLookAtEnabled && t.lookAt(this.five.camera.position.clone().setY(t.position.y)), t;
|
|
100
127
|
}));
|
|
101
|
-
this.model = { promise:
|
|
102
|
-
const o = yield
|
|
103
|
-
if (this.loading = !1, ((
|
|
128
|
+
this.model = { promise: m };
|
|
129
|
+
const o = yield m;
|
|
130
|
+
if (this.loading = !1, ((a = this.model) == null ? void 0 : a.promise) !== m || !this.plugin.tags.includes(this))
|
|
104
131
|
return;
|
|
105
132
|
this.model.object = o;
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
133
|
+
const s = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
134
|
+
if (s && (this.plugin.gltfObjectGroup.remove(s), s.removeEventListener()), this.plugin.updateRender3DDomTag(), T(this)) {
|
|
108
135
|
if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
|
|
109
|
-
const
|
|
136
|
+
const r = this.data.mediaPosition.map(h);
|
|
110
137
|
this.mediaPlane = new M(this.data.mediaData[0].url, this.data.mediaPosition.map(h), {
|
|
111
138
|
objectFit: this.data.objectFit
|
|
112
139
|
});
|
|
113
|
-
const t = new u.Vector3().addVectors(
|
|
140
|
+
const t = new u.Vector3().addVectors(r[0], r[2]).divideScalar(2);
|
|
114
141
|
this.mediaPlane.position.copy(t), o.add(this.mediaPlane);
|
|
115
142
|
}
|
|
116
143
|
this.computeRenderType() !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.plugin.updateTagCss3DObjectMatrix(this, o), o.updateTagCss3DObjectMatrix());
|
|
@@ -120,13 +147,13 @@ class Ot extends D {
|
|
|
120
147
|
this.state.unfolded = !0;
|
|
121
148
|
}
|
|
122
149
|
applyVisible() {
|
|
123
|
-
var i,
|
|
124
|
-
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (
|
|
150
|
+
var i, m, o;
|
|
151
|
+
(i = this.model) != null && i.object && (this.model.object.visible = this.currentVisible), (m = this.tag3DContentSvelte) == null || m.svelteApp.$set({ tag: this, state: this.plugin.state }), (o = this.tag3DContentSvelte) == null || o.css3DInstance.setVisible(this.currentVisible);
|
|
125
152
|
}
|
|
126
153
|
computeNormal() {
|
|
127
154
|
return v(this.data.mediaPosition);
|
|
128
155
|
}
|
|
129
156
|
}
|
|
130
157
|
export {
|
|
131
|
-
|
|
158
|
+
ti as ModelTag
|
|
132
159
|
};
|