@realsee/dnalogel 3.33.1-dev.0 → 3.34.0-dev.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 +2 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +6 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -2
- package/dist/index.cjs.js +7 -7
- package/dist/index.js +42 -28
- package/dist/index.umd.js +7 -7
- package/libs/CSS3DRenderPlugin/Controller.js +32 -31
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +14 -17
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +5 -5
- package/libs/PanoTagPlugin/Components/TagContainer.js +114 -99
- package/libs/PanoTagPlugin/controller/TagRender.js +8 -7
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +6 -0
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -0
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/index.js +3 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Um from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Ym } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Xm() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.34.0-dev.0",
|
|
52
52
|
[
|
|
53
53
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -1519,10 +1519,7 @@ const Ip = 3, _a = "CSS3DRenderer", xs = `${_a}@${Ip}`, vn = () => {
|
|
|
1519
1519
|
}, Ke = {
|
|
1520
1520
|
css3DObjects: [],
|
|
1521
1521
|
frontModeStore: {
|
|
1522
|
-
css3DRenderer: (
|
|
1523
|
-
const n = new gc();
|
|
1524
|
-
return n.domElement.style.zIndex = "1", n;
|
|
1525
|
-
})()
|
|
1522
|
+
css3DRenderer: new gc()
|
|
1526
1523
|
},
|
|
1527
1524
|
behindModeStore: {
|
|
1528
1525
|
css3DRenderer: new gc()
|
|
@@ -2553,9 +2550,10 @@ let qp = class extends Ns {
|
|
|
2553
2550
|
if (!r)
|
|
2554
2551
|
return;
|
|
2555
2552
|
const a = () => {
|
|
2556
|
-
|
|
2553
|
+
var h, u;
|
|
2554
|
+
const c = r.css3DObject.mode === "front" ? (u = this.frontFiveContainer) != null ? u : (h = this.five.getElement()) == null ? void 0 : h.parentElement : this.getBehindFiveElement();
|
|
2557
2555
|
if (!c)
|
|
2558
|
-
return console.error(`${Ac}: wrapper is ${c}`);
|
|
2556
|
+
return console.error(`${Ac}: wrapper is ${c}; mode is ${r.css3DObject.mode}`);
|
|
2559
2557
|
r.appendToElement(c), r.render(), this.created3DElementResults.push(r);
|
|
2560
2558
|
}, l = () => {
|
|
2561
2559
|
r.css3DObject.mode === "front" && a(), r.css3DObject.mode === "behind" && vl(this.five).then(() => a());
|
|
@@ -7436,7 +7434,7 @@ let rn = class {
|
|
|
7436
7434
|
/**
|
|
7437
7435
|
* @realsee/dnalogel 版本号
|
|
7438
7436
|
*/
|
|
7439
|
-
d(this, "VERSION", "3.
|
|
7437
|
+
d(this, "VERSION", "3.34.0-dev.0");
|
|
7440
7438
|
d(this, "five");
|
|
7441
7439
|
/**
|
|
7442
7440
|
* @description: 插件事件钩子
|
|
@@ -18058,6 +18056,8 @@ class Yw extends Qw {
|
|
|
18058
18056
|
d(this, "config", Nw);
|
|
18059
18057
|
d(this, "tagsLengthWillUpdate", !0);
|
|
18060
18058
|
d(this, "workUtil", new Gl(this.five));
|
|
18059
|
+
/** 插件参数 */
|
|
18060
|
+
d(this, "params");
|
|
18061
18061
|
d(this, "mediaStore", Sl({
|
|
18062
18062
|
currentMediaElement: null
|
|
18063
18063
|
}));
|
|
@@ -28246,11 +28246,11 @@ class W2 extends ce {
|
|
|
28246
28246
|
}
|
|
28247
28247
|
}
|
|
28248
28248
|
function U2(n) {
|
|
28249
|
-
ge(n, "svelte-
|
|
28249
|
+
ge(n, "svelte-p0nosq", ".tag--container.svelte-p0nosq{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)}.withAnimation.svelte-p0nosq{transition:opacity 0.2s linear}.tag--container.hide.svelte-p0nosq{opacity:0;pointer-events:none}.tag--container.hide.svelte-p0nosq *{pointer-events:none !important}");
|
|
28250
28250
|
}
|
|
28251
28251
|
function bu(n, t, e) {
|
|
28252
28252
|
const i = n.slice();
|
|
28253
|
-
return i[
|
|
28253
|
+
return i[9] = t[e], i;
|
|
28254
28254
|
}
|
|
28255
28255
|
function yu(n) {
|
|
28256
28256
|
let t, e = [], i = /* @__PURE__ */ new Map(), s, o = (
|
|
@@ -28259,7 +28259,7 @@ function yu(n) {
|
|
|
28259
28259
|
);
|
|
28260
28260
|
const r = (a) => (
|
|
28261
28261
|
/*tag*/
|
|
28262
|
-
a[
|
|
28262
|
+
a[9].id
|
|
28263
28263
|
);
|
|
28264
28264
|
for (let a = 0; a < o.length; a += 1) {
|
|
28265
28265
|
let l = bu(n, o, a), c = r(l);
|
|
@@ -28267,16 +28267,22 @@ function yu(n) {
|
|
|
28267
28267
|
}
|
|
28268
28268
|
return {
|
|
28269
28269
|
c() {
|
|
28270
|
+
var a;
|
|
28270
28271
|
t = S("div");
|
|
28271
|
-
for (let
|
|
28272
|
-
e[
|
|
28273
|
-
C(t, "class", "tag--container svelte-
|
|
28272
|
+
for (let l = 0; l < e.length; l += 1)
|
|
28273
|
+
e[l].c();
|
|
28274
|
+
C(t, "class", "tag--container svelte-p0nosq"), K(t, "hide", !/*state*/
|
|
28274
28275
|
n[5].visible || !/*temporaryState*/
|
|
28275
28276
|
n[6].visible), K(
|
|
28276
28277
|
t,
|
|
28277
28278
|
"withAnimation",
|
|
28278
28279
|
/*withAnimation*/
|
|
28279
28280
|
n[0]
|
|
28281
|
+
), T(
|
|
28282
|
+
t,
|
|
28283
|
+
"z-index",
|
|
28284
|
+
/*zIndex*/
|
|
28285
|
+
(a = n[7]) != null ? a : ""
|
|
28280
28286
|
);
|
|
28281
28287
|
},
|
|
28282
28288
|
m(a, l) {
|
|
@@ -28286,6 +28292,7 @@ function yu(n) {
|
|
|
28286
28292
|
s = !0;
|
|
28287
28293
|
},
|
|
28288
28294
|
p(a, l) {
|
|
28295
|
+
var c;
|
|
28289
28296
|
l & /*state, temporaryState, withAnimation, tags, mediaStore, rendererMap, contentTypeMap*/
|
|
28290
28297
|
127 && (o = /*tags*/
|
|
28291
28298
|
a[1], ue(), e = Ut(e, l, r, 1, a, o, i, t, ji, wu, null, bu), fe()), (!s || l & /*state, temporaryState*/
|
|
@@ -28297,6 +28304,12 @@ function yu(n) {
|
|
|
28297
28304
|
"withAnimation",
|
|
28298
28305
|
/*withAnimation*/
|
|
28299
28306
|
a[0]
|
|
28307
|
+
), l & /*zIndex*/
|
|
28308
|
+
128 && T(
|
|
28309
|
+
t,
|
|
28310
|
+
"z-index",
|
|
28311
|
+
/*zIndex*/
|
|
28312
|
+
(c = a[7]) != null ? c : ""
|
|
28300
28313
|
);
|
|
28301
28314
|
},
|
|
28302
28315
|
i(a) {
|
|
@@ -28336,7 +28349,7 @@ function wu(n, t) {
|
|
|
28336
28349
|
),
|
|
28337
28350
|
tag: (
|
|
28338
28351
|
/*tag*/
|
|
28339
|
-
t[
|
|
28352
|
+
t[9]
|
|
28340
28353
|
),
|
|
28341
28354
|
mediaStore: (
|
|
28342
28355
|
/*mediaStore*/
|
|
@@ -28371,7 +28384,7 @@ function wu(n, t) {
|
|
|
28371
28384
|
1 && (a.withAnimation = /*withAnimation*/
|
|
28372
28385
|
t[0]), r & /*tags*/
|
|
28373
28386
|
2 && (a.tag = /*tag*/
|
|
28374
|
-
t[
|
|
28387
|
+
t[9]), r & /*mediaStore*/
|
|
28375
28388
|
4 && (a.mediaStore = /*mediaStore*/
|
|
28376
28389
|
t[2]), r & /*rendererMap*/
|
|
28377
28390
|
8 && (a.rendererMap = /*rendererMap*/
|
|
@@ -28421,9 +28434,9 @@ function Y2(n) {
|
|
|
28421
28434
|
};
|
|
28422
28435
|
}
|
|
28423
28436
|
function X2(n, t, e) {
|
|
28424
|
-
let { withAnimation: i = !1 } = t, { tags: s = [] } = t, { hooks: o } = t, { mediaStore: r } = t, { rendererMap: a } = t, { contentTypeMap: l } = t, { state: c } = t, { temporaryState: h } = t;
|
|
28425
|
-
return Ua("hooks", o), n.$$set = (
|
|
28426
|
-
"withAnimation" in
|
|
28437
|
+
let { withAnimation: i = !1 } = t, { tags: s = [] } = t, { hooks: o } = t, { mediaStore: r } = t, { rendererMap: a } = t, { contentTypeMap: l } = t, { state: c } = t, { temporaryState: h } = t, { zIndex: u = void 0 } = t;
|
|
28438
|
+
return Ua("hooks", o), n.$$set = (f) => {
|
|
28439
|
+
"withAnimation" in f && e(0, i = f.withAnimation), "tags" in f && e(1, s = f.tags), "hooks" in f && e(8, o = f.hooks), "mediaStore" in f && e(2, r = f.mediaStore), "rendererMap" in f && e(3, a = f.rendererMap), "contentTypeMap" in f && e(4, l = f.contentTypeMap), "state" in f && e(5, c = f.state), "temporaryState" in f && e(6, h = f.temporaryState), "zIndex" in f && e(7, u = f.zIndex);
|
|
28427
28440
|
}, [
|
|
28428
28441
|
i,
|
|
28429
28442
|
s,
|
|
@@ -28432,6 +28445,7 @@ function X2(n, t, e) {
|
|
|
28432
28445
|
l,
|
|
28433
28446
|
c,
|
|
28434
28447
|
h,
|
|
28448
|
+
u,
|
|
28435
28449
|
o
|
|
28436
28450
|
];
|
|
28437
28451
|
}
|
|
@@ -28446,12 +28460,13 @@ class Z2 extends ce {
|
|
|
28446
28460
|
{
|
|
28447
28461
|
withAnimation: 0,
|
|
28448
28462
|
tags: 1,
|
|
28449
|
-
hooks:
|
|
28463
|
+
hooks: 8,
|
|
28450
28464
|
mediaStore: 2,
|
|
28451
28465
|
rendererMap: 3,
|
|
28452
28466
|
contentTypeMap: 4,
|
|
28453
28467
|
state: 5,
|
|
28454
|
-
temporaryState: 6
|
|
28468
|
+
temporaryState: 6,
|
|
28469
|
+
zIndex: 7
|
|
28455
28470
|
},
|
|
28456
28471
|
U2
|
|
28457
28472
|
);
|
|
@@ -28805,7 +28820,8 @@ class eM extends Zw {
|
|
|
28805
28820
|
mediaStore: this.mediaStore,
|
|
28806
28821
|
rendererMap: this.rendererMap,
|
|
28807
28822
|
contentTypeMap: this.contentTypeMap,
|
|
28808
|
-
withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation
|
|
28823
|
+
withAnimation: (s = e == null ? void 0 : e.withAnimation) != null ? s : this.store.visibleWithAnimation,
|
|
28824
|
+
zIndex: this.params.containerZIndex
|
|
28809
28825
|
}
|
|
28810
28826
|
});
|
|
28811
28827
|
}
|
|
@@ -28842,8 +28858,6 @@ class ol extends eM {
|
|
|
28842
28858
|
super(e);
|
|
28843
28859
|
/** state */
|
|
28844
28860
|
d(this, "state", { enabled: !0, visible: !0 });
|
|
28845
|
-
/** 插件参数 */
|
|
28846
|
-
d(this, "params");
|
|
28847
28861
|
/** debug */
|
|
28848
28862
|
d(this, "debug");
|
|
28849
28863
|
d(this, "debugUtil", new tM(this));
|
|
@@ -28946,9 +28960,9 @@ class ol extends eM {
|
|
|
28946
28960
|
}
|
|
28947
28961
|
appendTo(e) {
|
|
28948
28962
|
var s, o, r, a;
|
|
28949
|
-
this.container = e;
|
|
28950
|
-
const i = (
|
|
28951
|
-
i && i !== this.container && ((
|
|
28963
|
+
this.container = e, (s = this.css3DRenderPlugin) == null || s.appendToFrontFiveContainer(this.container);
|
|
28964
|
+
const i = (r = (o = this.TagContainerSvelte) == null ? void 0 : o.$$) == null ? void 0 : r.root;
|
|
28965
|
+
i && i !== this.container && ((a = this.TagContainerSvelte) == null || a.$destroy(), this.TagContainerSvelte = void 0, this.updateDomView());
|
|
28952
28966
|
}
|
|
28953
28967
|
/**
|
|
28954
28968
|
* @description 加载数据
|
|
@@ -29650,7 +29664,7 @@ class rl {
|
|
|
29650
29664
|
d(this, "logWarning", (t) => ew("GuideLineModeItem: ", t));
|
|
29651
29665
|
d(this, "logError", (t) => bg("GuideLineModeItem: ", t));
|
|
29652
29666
|
var o, r;
|
|
29653
|
-
this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.startTagContainer = { tag: null, plugin: new ol(this.five) }, this.endTagContainer = { tag: null, plugin: new ol(this.five) };
|
|
29667
|
+
this.five = t, this.mode = e.mode, this.plugin = e.plugin, this.parent = e.parent, this.startTagContainer = { tag: null, plugin: new ol(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new ol(this.five, { containerZIndex: 1 }) };
|
|
29654
29668
|
const i = new w.BufferGeometry(), s = new w.ShaderMaterial({
|
|
29655
29669
|
vertexShader: aM,
|
|
29656
29670
|
fragmentShader: lM,
|