@realsee/dnalogel 3.33.1-dev.1 → 3.34.0-dev.2
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/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +1 -1
- 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 +45 -27
- package/dist/index.umd.js +7 -7
- package/libs/CSS3DRenderPlugin/Controller.js +10 -10
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +14 -17
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +2 -2
- 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 +35 -28
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/index.js +0 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -82,28 +82,28 @@ class Z extends S {
|
|
|
82
82
|
o(this, "create3DDomContainer", (e, t) => {
|
|
83
83
|
if (this.state.disposed)
|
|
84
84
|
return;
|
|
85
|
-
const
|
|
85
|
+
const s = (() => {
|
|
86
86
|
var a;
|
|
87
87
|
(t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${b}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
88
|
-
const
|
|
88
|
+
const d = {
|
|
89
89
|
ratio: 216e-5,
|
|
90
90
|
devicePixelRatio: (a = t == null ? void 0 : t.dpr) != null ? a : 1,
|
|
91
91
|
mode: "front",
|
|
92
92
|
autoRender: !0,
|
|
93
93
|
wrapperStyle: {}
|
|
94
94
|
};
|
|
95
|
-
return Object.assign(
|
|
96
|
-
})(), { autoRender: l } =
|
|
97
|
-
|
|
98
|
-
const n = this.create3DElement(this.five.camera, e, h(p({},
|
|
95
|
+
return Object.assign(d, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
96
|
+
})(), { autoRender: l } = s;
|
|
97
|
+
s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
|
|
98
|
+
const n = this.create3DElement(this.five.camera, e, h(p({}, s), { autoRender: !1 }));
|
|
99
99
|
if (!n)
|
|
100
100
|
return;
|
|
101
101
|
const v = () => {
|
|
102
102
|
var a, u;
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
105
|
-
return console.error(`${b}: wrapper is ${
|
|
106
|
-
n.appendToElement(
|
|
103
|
+
const d = n.css3DObject.mode === "front" ? (u = this.frontFiveContainer) != null ? u : (a = this.five.getElement()) == null ? void 0 : a.parentElement : this.getBehindFiveElement();
|
|
104
|
+
if (!d)
|
|
105
|
+
return console.error(`${b}: wrapper is ${d}; mode is ${n.css3DObject.mode}`);
|
|
106
|
+
n.appendToElement(d), n.render(), this.created3DElementResults.push(n);
|
|
107
107
|
}, c = () => {
|
|
108
108
|
n.css3DObject.mode === "front" && v(), n.css3DObject.mode === "behind" && P(this.five).then(() => v());
|
|
109
109
|
};
|
|
@@ -14,18 +14,18 @@ var i = (n, e, t) => (C(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
|
14
14
|
var p = (n, e, t) => new Promise((s, r) => {
|
|
15
15
|
var d = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
l(t.next(c));
|
|
18
18
|
} catch (S) {
|
|
19
19
|
r(S);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, f = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
l(t.throw(c));
|
|
24
24
|
} catch (S) {
|
|
25
25
|
r(S);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, l = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(d, f);
|
|
28
|
+
l((t = t.apply(n, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import { anyPositionToVector3 as q } from "../../../shared-utils/positionToVector3.js";
|
|
31
31
|
import B from "./CSS3DRenderer.js";
|
|
@@ -48,10 +48,7 @@ const J = 3, G = "CSS3DRenderer", b = `${G}@${J}`, u = () => {
|
|
|
48
48
|
}, o = {
|
|
49
49
|
css3DObjects: [],
|
|
50
50
|
frontModeStore: {
|
|
51
|
-
css3DRenderer: (
|
|
52
|
-
const n = new B();
|
|
53
|
-
return n.domElement.style.zIndex = "1", n;
|
|
54
|
-
})()
|
|
51
|
+
css3DRenderer: new B()
|
|
55
52
|
},
|
|
56
53
|
behindModeStore: {
|
|
57
54
|
css3DRenderer: new B()
|
|
@@ -130,18 +127,18 @@ class y {
|
|
|
130
127
|
})(), d = t.map(q);
|
|
131
128
|
if ((d == null ? void 0 : d.length) < 4)
|
|
132
129
|
return console.error(`${b}: requires 4 point but params may have fewer`);
|
|
133
|
-
const { ratio:
|
|
130
|
+
const { ratio: f, devicePixelRatio: l, mode: c, autoRender: S, container: O, pointerEvents: F, wrapperStyle: I } = r;
|
|
134
131
|
let D = !1;
|
|
135
|
-
const a = this.createObject(d, { ratio:
|
|
132
|
+
const a = this.createObject(d, { ratio: f, dpr: l, container: O, mode: c, pointerEvents: F, wrapperStyle: I });
|
|
136
133
|
o.css3DObjects.push(a), r.scene && this.setScene(r.scene);
|
|
137
|
-
const
|
|
134
|
+
const N = () => {
|
|
138
135
|
if (D)
|
|
139
136
|
return;
|
|
140
137
|
const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
141
138
|
h && h.add(a);
|
|
142
139
|
}, E = () => {
|
|
143
|
-
D || (
|
|
144
|
-
}, m = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h),
|
|
140
|
+
D || (N(), this.render(e), this.hooks.emit("render"));
|
|
141
|
+
}, m = (h) => this.setVisibleById(a.id, h), M = (h) => this.setEnabledById(a.id, h), x = () => (D = !0, a.removeFromParent(), !0), V = c === "front" ? o.frontModeStore.css3DRenderer : o.behindModeStore.css3DRenderer;
|
|
145
142
|
return S && E(), {
|
|
146
143
|
id: a.uuid,
|
|
147
144
|
container: O,
|
|
@@ -153,7 +150,7 @@ class y {
|
|
|
153
150
|
enable: () => M(!0),
|
|
154
151
|
disable: () => M(!1),
|
|
155
152
|
setEnabled: M,
|
|
156
|
-
dispose:
|
|
153
|
+
dispose: x,
|
|
157
154
|
appendToElement: (h) => V.setWrapper(h)
|
|
158
155
|
};
|
|
159
156
|
});
|
|
@@ -250,8 +247,8 @@ class y {
|
|
|
250
247
|
console.error(`${b}: scene is required when mode is behind`);
|
|
251
248
|
return;
|
|
252
249
|
}
|
|
253
|
-
const
|
|
254
|
-
o.behindModeStore.css3DScene =
|
|
250
|
+
const f = new T(d);
|
|
251
|
+
o.behindModeStore.css3DScene = f, o.behindModeStore.scene = d;
|
|
255
252
|
}
|
|
256
253
|
return o.behindModeStore.css3DScene;
|
|
257
254
|
}
|
|
@@ -2,9 +2,9 @@ import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
|
2
2
|
import type * as THREE from 'three';
|
|
3
3
|
export default class ICSS3DRenderer extends CSS3DRenderer {
|
|
4
4
|
wrapper?: Element;
|
|
5
|
+
domElementWrapper: HTMLDivElement;
|
|
5
6
|
private requestAnimationFrameId?;
|
|
6
7
|
private resizeDisoper?;
|
|
7
|
-
private domElementWrapper;
|
|
8
8
|
constructor();
|
|
9
9
|
setWrapper(wrapper: Element): this;
|
|
10
10
|
appendToElement(wrapper: Element): void;
|
|
@@ -10,13 +10,13 @@ class v extends d {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
n(this, "wrapper");
|
|
13
|
+
n(this, "domElementWrapper", document.createElement("div"));
|
|
13
14
|
n(this, "requestAnimationFrameId");
|
|
14
15
|
n(this, "resizeDisoper");
|
|
15
|
-
n(this, "domElementWrapper", document.createElement("div"));
|
|
16
16
|
this.domElementWrapper.classList.add("ICSS3DRendererWrapper"), this.domElementWrapper.style.position = "absolute", this.domElementWrapper.style.top = "0", this.domElementWrapper.style.left = "0", this.domElementWrapper.style.width = "100%", this.domElementWrapper.style.height = "100%", this.domElementWrapper.style.userSelect = "none", this.domElementWrapper.style.pointerEvents = "none", this.domElement.classList.add("ICSS3DRenderer"), this.domElement.style.position = "absolute", this.domElement.style.top = "0", this.domElement.style.left = "0", this.domElement.style.userSelect = "none", this.domElement.style.pointerEvents = "none", this.domElementWrapper.appendChild(this.domElement);
|
|
17
17
|
}
|
|
18
18
|
setWrapper(e) {
|
|
19
|
-
if (
|
|
19
|
+
if (!e)
|
|
20
20
|
throw new Error("CSS3DRenderer: wrapper is required");
|
|
21
21
|
if ((() => {
|
|
22
22
|
for (let s = 0; s < e.children.length; s++)
|
|
@@ -26,8 +26,8 @@ import { BetterTween as E, tweenProgress as A } from "../../shared-utils/animati
|
|
|
26
26
|
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
27
27
|
import P from "../../PanoTagPlugin/controller/index.js";
|
|
28
28
|
import B from "../Components/Tag.js";
|
|
29
|
-
import { filterAdjacentDistinct as
|
|
30
|
-
import { objectAssignDeepExports as
|
|
29
|
+
import { filterAdjacentDistinct as I } from "../utils/index.js";
|
|
30
|
+
import { objectAssignDeepExports as W } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
31
31
|
const R = (
|
|
32
32
|
/* glsl */
|
|
33
33
|
`
|
|
@@ -221,7 +221,7 @@ class H {
|
|
|
221
221
|
i(this, "logWarning", (e) => L("GuideLineModeItem: ", e));
|
|
222
222
|
i(this, "logError", (e) => S("GuideLineModeItem: ", e));
|
|
223
223
|
var o, a;
|
|
224
|
-
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new P(this.five) }, this.endTagContainer = { tag: null, plugin: new P(this.five) };
|
|
224
|
+
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new P(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new P(this.five, { containerZIndex: 1 }) };
|
|
225
225
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
226
226
|
vertexShader: R,
|
|
227
227
|
fragmentShader: N,
|
|
@@ -290,7 +290,7 @@ class H {
|
|
|
290
290
|
return this.logError("disposed");
|
|
291
291
|
if (!this.five.work)
|
|
292
292
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
293
|
-
const s =
|
|
293
|
+
const s = I(e);
|
|
294
294
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
295
295
|
const o = t.skipPanoGroup ? s.map((a) => this.plugin.workUtils.getObserverStandingPosition(a)).filter(w) : null;
|
|
296
296
|
this.skippedPositions = o;
|
|
@@ -454,7 +454,7 @@ class H {
|
|
|
454
454
|
const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
455
455
|
if (!(t != null && t.data))
|
|
456
456
|
return r.plugin.clearTags();
|
|
457
|
-
const a =
|
|
457
|
+
const a = W({}, {
|
|
458
458
|
contentType: "Custom",
|
|
459
459
|
stickType: "2DPoint",
|
|
460
460
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent as A, init as z, safe_not_equal as T, append_styles as q, empty as M, insert as h, transition_in as f, transition_out as c, check_outros as S, detach as _, setContext as I, element as C, attr as N, toggle_class as u, set_style as k, group_outros as v, update_keyed_each as j, outro_and_destroy_block as B, create_component as D, mount_component as E, destroy_component as F } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import G from "./TagItem.js";
|
|
3
3
|
import "./Tag/index.js";
|
|
4
4
|
import "./Tag/TextTag/index.js";
|
|
5
5
|
import "./Tag/TextTag/TextTag.js";
|
|
@@ -93,82 +93,95 @@ import "./Tag/PanoramaTag.js";
|
|
|
93
93
|
import "./Tag/CustomTag.js";
|
|
94
94
|
import "../../vendor/classnames/index.js";
|
|
95
95
|
import "./Common/TagPoint.js";
|
|
96
|
-
function
|
|
97
|
-
|
|
96
|
+
function H(p) {
|
|
97
|
+
q(p, "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}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
function b(p, t, e) {
|
|
100
|
+
const i = p.slice();
|
|
101
|
+
return i[9] = t[e], i;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
let t,
|
|
103
|
+
function w(p) {
|
|
104
|
+
let t, e = [], i = /* @__PURE__ */ new Map(), m, n = (
|
|
105
105
|
/*tags*/
|
|
106
106
|
p[1]
|
|
107
107
|
);
|
|
108
|
-
const
|
|
108
|
+
const l = (o) => (
|
|
109
109
|
/*tag*/
|
|
110
|
-
o[
|
|
110
|
+
o[9].id
|
|
111
111
|
);
|
|
112
|
-
for (let o = 0; o <
|
|
113
|
-
let
|
|
114
|
-
|
|
112
|
+
for (let o = 0; o < n.length; o += 1) {
|
|
113
|
+
let r = b(p, n, o), s = l(r);
|
|
114
|
+
i.set(s, e[o] = y(s, r));
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
117
117
|
c() {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
var o;
|
|
119
|
+
t = C("div");
|
|
120
|
+
for (let r = 0; r < e.length; r += 1)
|
|
121
|
+
e[r].c();
|
|
122
|
+
N(t, "class", "tag--container svelte-p0nosq"), u(t, "hide", !/*state*/
|
|
122
123
|
p[5].visible || !/*temporaryState*/
|
|
123
|
-
p[6].visible),
|
|
124
|
+
p[6].visible), u(
|
|
124
125
|
t,
|
|
125
126
|
"withAnimation",
|
|
126
127
|
/*withAnimation*/
|
|
127
128
|
p[0]
|
|
129
|
+
), k(
|
|
130
|
+
t,
|
|
131
|
+
"z-index",
|
|
132
|
+
/*zIndex*/
|
|
133
|
+
(o = p[7]) != null ? o : ""
|
|
128
134
|
);
|
|
129
135
|
},
|
|
130
|
-
m(o,
|
|
131
|
-
h(o, t,
|
|
132
|
-
for (let
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
m(o, r) {
|
|
137
|
+
h(o, t, r);
|
|
138
|
+
for (let s = 0; s < e.length; s += 1)
|
|
139
|
+
e[s] && e[s].m(t, null);
|
|
140
|
+
m = !0;
|
|
135
141
|
},
|
|
136
|
-
p(o,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
p(o, r) {
|
|
143
|
+
var s;
|
|
144
|
+
r & /*state, temporaryState, withAnimation, tags, mediaStore, rendererMap, contentTypeMap*/
|
|
145
|
+
127 && (n = /*tags*/
|
|
146
|
+
o[1], v(), e = j(e, r, l, 1, o, n, i, t, B, y, null, b), S()), (!m || r & /*state, temporaryState*/
|
|
147
|
+
96) && u(t, "hide", !/*state*/
|
|
141
148
|
o[5].visible || !/*temporaryState*/
|
|
142
|
-
o[6].visible), (!
|
|
143
|
-
1) &&
|
|
149
|
+
o[6].visible), (!m || r & /*withAnimation*/
|
|
150
|
+
1) && u(
|
|
144
151
|
t,
|
|
145
152
|
"withAnimation",
|
|
146
153
|
/*withAnimation*/
|
|
147
154
|
o[0]
|
|
155
|
+
), r & /*zIndex*/
|
|
156
|
+
128 && k(
|
|
157
|
+
t,
|
|
158
|
+
"z-index",
|
|
159
|
+
/*zIndex*/
|
|
160
|
+
(s = o[7]) != null ? s : ""
|
|
148
161
|
);
|
|
149
162
|
},
|
|
150
163
|
i(o) {
|
|
151
|
-
if (!
|
|
152
|
-
for (let
|
|
153
|
-
|
|
154
|
-
|
|
164
|
+
if (!m) {
|
|
165
|
+
for (let r = 0; r < n.length; r += 1)
|
|
166
|
+
f(e[r]);
|
|
167
|
+
m = !0;
|
|
155
168
|
}
|
|
156
169
|
},
|
|
157
170
|
o(o) {
|
|
158
|
-
for (let
|
|
159
|
-
|
|
160
|
-
|
|
171
|
+
for (let r = 0; r < e.length; r += 1)
|
|
172
|
+
c(e[r]);
|
|
173
|
+
m = !1;
|
|
161
174
|
},
|
|
162
175
|
d(o) {
|
|
163
176
|
o && _(t);
|
|
164
|
-
for (let
|
|
165
|
-
|
|
177
|
+
for (let r = 0; r < e.length; r += 1)
|
|
178
|
+
e[r].d();
|
|
166
179
|
}
|
|
167
180
|
};
|
|
168
181
|
}
|
|
169
|
-
function
|
|
170
|
-
let
|
|
171
|
-
return
|
|
182
|
+
function y(p, t) {
|
|
183
|
+
let e, i, m;
|
|
184
|
+
return i = new G({
|
|
172
185
|
props: {
|
|
173
186
|
state: (
|
|
174
187
|
/*state*/
|
|
@@ -184,7 +197,7 @@ function k(p, t) {
|
|
|
184
197
|
),
|
|
185
198
|
tag: (
|
|
186
199
|
/*tag*/
|
|
187
|
-
t[
|
|
200
|
+
t[9]
|
|
188
201
|
),
|
|
189
202
|
mediaStore: (
|
|
190
203
|
/*mediaStore*/
|
|
@@ -203,108 +216,110 @@ function k(p, t) {
|
|
|
203
216
|
key: p,
|
|
204
217
|
first: null,
|
|
205
218
|
c() {
|
|
206
|
-
|
|
219
|
+
e = M(), D(i.$$.fragment), this.first = e;
|
|
207
220
|
},
|
|
208
|
-
m(
|
|
209
|
-
h(
|
|
221
|
+
m(n, l) {
|
|
222
|
+
h(n, e, l), E(i, n, l), m = !0;
|
|
210
223
|
},
|
|
211
|
-
p(
|
|
212
|
-
t =
|
|
224
|
+
p(n, l) {
|
|
225
|
+
t = n;
|
|
213
226
|
const o = {};
|
|
214
|
-
|
|
227
|
+
l & /*state*/
|
|
215
228
|
32 && (o.state = /*state*/
|
|
216
|
-
t[5]),
|
|
229
|
+
t[5]), l & /*temporaryState*/
|
|
217
230
|
64 && (o.temporaryState = /*temporaryState*/
|
|
218
|
-
t[6]),
|
|
231
|
+
t[6]), l & /*withAnimation*/
|
|
219
232
|
1 && (o.withAnimation = /*withAnimation*/
|
|
220
|
-
t[0]),
|
|
233
|
+
t[0]), l & /*tags*/
|
|
221
234
|
2 && (o.tag = /*tag*/
|
|
222
|
-
t[
|
|
235
|
+
t[9]), l & /*mediaStore*/
|
|
223
236
|
4 && (o.mediaStore = /*mediaStore*/
|
|
224
|
-
t[2]),
|
|
237
|
+
t[2]), l & /*rendererMap*/
|
|
225
238
|
8 && (o.rendererMap = /*rendererMap*/
|
|
226
|
-
t[3]),
|
|
239
|
+
t[3]), l & /*contentTypeMap*/
|
|
227
240
|
16 && (o.contentTypeMap = /*contentTypeMap*/
|
|
228
|
-
t[4]),
|
|
241
|
+
t[4]), i.$set(o);
|
|
229
242
|
},
|
|
230
|
-
i(
|
|
231
|
-
|
|
243
|
+
i(n) {
|
|
244
|
+
m || (f(i.$$.fragment, n), m = !0);
|
|
232
245
|
},
|
|
233
|
-
o(
|
|
234
|
-
|
|
246
|
+
o(n) {
|
|
247
|
+
c(i.$$.fragment, n), m = !1;
|
|
235
248
|
},
|
|
236
|
-
d(
|
|
237
|
-
|
|
249
|
+
d(n) {
|
|
250
|
+
n && _(e), F(i, n);
|
|
238
251
|
}
|
|
239
252
|
};
|
|
240
253
|
}
|
|
241
|
-
function
|
|
242
|
-
let t,
|
|
254
|
+
function J(p) {
|
|
255
|
+
let t, e, i = (
|
|
243
256
|
/*state*/
|
|
244
|
-
p[5].enabled &&
|
|
257
|
+
p[5].enabled && w(p)
|
|
245
258
|
);
|
|
246
259
|
return {
|
|
247
260
|
c() {
|
|
248
|
-
|
|
261
|
+
i && i.c(), t = M();
|
|
249
262
|
},
|
|
250
|
-
m(
|
|
251
|
-
|
|
263
|
+
m(m, n) {
|
|
264
|
+
i && i.m(m, n), h(m, t, n), e = !0;
|
|
252
265
|
},
|
|
253
|
-
p(
|
|
266
|
+
p(m, [n]) {
|
|
254
267
|
/*state*/
|
|
255
|
-
|
|
256
|
-
32 &&
|
|
257
|
-
|
|
258
|
-
}),
|
|
268
|
+
m[5].enabled ? i ? (i.p(m, n), n & /*state*/
|
|
269
|
+
32 && f(i, 1)) : (i = w(m), i.c(), f(i, 1), i.m(t.parentNode, t)) : i && (v(), c(i, 1, 1, () => {
|
|
270
|
+
i = null;
|
|
271
|
+
}), S());
|
|
259
272
|
},
|
|
260
|
-
i(
|
|
261
|
-
|
|
273
|
+
i(m) {
|
|
274
|
+
e || (f(i), e = !0);
|
|
262
275
|
},
|
|
263
|
-
o(
|
|
264
|
-
|
|
276
|
+
o(m) {
|
|
277
|
+
c(i), e = !1;
|
|
265
278
|
},
|
|
266
|
-
d(
|
|
267
|
-
|
|
279
|
+
d(m) {
|
|
280
|
+
i && i.d(m), m && _(t);
|
|
268
281
|
}
|
|
269
282
|
};
|
|
270
283
|
}
|
|
271
|
-
function
|
|
272
|
-
let { withAnimation:
|
|
273
|
-
return
|
|
274
|
-
"withAnimation" in
|
|
284
|
+
function K(p, t, e) {
|
|
285
|
+
let { withAnimation: i = !1 } = t, { tags: m = [] } = t, { hooks: n } = t, { mediaStore: l } = t, { rendererMap: o } = t, { contentTypeMap: r } = t, { state: s } = t, { temporaryState: d } = t, { zIndex: g = void 0 } = t;
|
|
286
|
+
return I("hooks", n), p.$$set = (a) => {
|
|
287
|
+
"withAnimation" in a && e(0, i = a.withAnimation), "tags" in a && e(1, m = a.tags), "hooks" in a && e(8, n = a.hooks), "mediaStore" in a && e(2, l = a.mediaStore), "rendererMap" in a && e(3, o = a.rendererMap), "contentTypeMap" in a && e(4, r = a.contentTypeMap), "state" in a && e(5, s = a.state), "temporaryState" in a && e(6, d = a.temporaryState), "zIndex" in a && e(7, g = a.zIndex);
|
|
275
288
|
}, [
|
|
276
|
-
|
|
277
|
-
n,
|
|
278
|
-
a,
|
|
279
|
-
o,
|
|
289
|
+
i,
|
|
280
290
|
m,
|
|
281
|
-
|
|
291
|
+
l,
|
|
292
|
+
o,
|
|
293
|
+
r,
|
|
294
|
+
s,
|
|
295
|
+
d,
|
|
282
296
|
g,
|
|
283
|
-
|
|
297
|
+
n
|
|
284
298
|
];
|
|
285
299
|
}
|
|
286
|
-
class
|
|
300
|
+
class qe extends A {
|
|
287
301
|
constructor(t) {
|
|
288
|
-
super(),
|
|
302
|
+
super(), z(
|
|
289
303
|
this,
|
|
290
304
|
t,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
305
|
+
K,
|
|
306
|
+
J,
|
|
307
|
+
T,
|
|
294
308
|
{
|
|
295
309
|
withAnimation: 0,
|
|
296
310
|
tags: 1,
|
|
297
|
-
hooks:
|
|
311
|
+
hooks: 8,
|
|
298
312
|
mediaStore: 2,
|
|
299
313
|
rendererMap: 3,
|
|
300
314
|
contentTypeMap: 4,
|
|
301
315
|
state: 5,
|
|
302
|
-
temporaryState: 6
|
|
316
|
+
temporaryState: 6,
|
|
317
|
+
zIndex: 7
|
|
303
318
|
},
|
|
304
|
-
|
|
319
|
+
H
|
|
305
320
|
);
|
|
306
321
|
}
|
|
307
322
|
}
|
|
308
323
|
export {
|
|
309
|
-
|
|
324
|
+
qe as default
|
|
310
325
|
};
|
|
@@ -27,9 +27,9 @@ var S = (d, m, t) => new Promise((e, o) => {
|
|
|
27
27
|
a((t = t.apply(d, m)).next());
|
|
28
28
|
});
|
|
29
29
|
import { TagComputer as V } from "./TagComputer.js";
|
|
30
|
-
import { Group as y, Quaternion as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
30
|
+
import { Group as y, Quaternion as x, Vector3 as b, Matrix4 as v } from "three";
|
|
31
|
+
import O from "../Components/TagContainer.js";
|
|
32
|
+
import E from "../Components/Tag/index.js";
|
|
33
33
|
import { loadGLTF as G } from "../../shared-utils/three/GLTFLoader.js";
|
|
34
34
|
import { isMediaModelTag as D, isStickModelTag as F } from "../utils/tag/tagCheck.js";
|
|
35
35
|
import { VideoPlane as _, ImagePlane as w } from "../utils/model/mediaPlane.js";
|
|
@@ -307,7 +307,7 @@ class Pi extends V {
|
|
|
307
307
|
if (e.tag3DContentSvelte) {
|
|
308
308
|
const { svelteApp: a, css3DInstance: s, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
|
|
309
309
|
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
|
|
310
|
-
const p = new
|
|
310
|
+
const p = new x().setFromUnitVectors(n, l);
|
|
311
311
|
s.css3DObject.setRotationFromQuaternion(p);
|
|
312
312
|
}
|
|
313
313
|
return;
|
|
@@ -340,7 +340,7 @@ class Pi extends V {
|
|
|
340
340
|
if (!p)
|
|
341
341
|
return;
|
|
342
342
|
this.store.css3DRenderDisposer.set(e.id, [p.dispose]);
|
|
343
|
-
const h = new
|
|
343
|
+
const h = new E({
|
|
344
344
|
target: p.container,
|
|
345
345
|
props: {
|
|
346
346
|
tag: e,
|
|
@@ -487,7 +487,7 @@ class Pi extends V {
|
|
|
487
487
|
const i = this.container;
|
|
488
488
|
if (!i)
|
|
489
489
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
490
|
-
this.TagContainerSvelte = new
|
|
490
|
+
this.TagContainerSvelte = new O({
|
|
491
491
|
target: i,
|
|
492
492
|
props: {
|
|
493
493
|
hooks: this.hooks,
|
|
@@ -497,7 +497,8 @@ class Pi extends V {
|
|
|
497
497
|
mediaStore: this.mediaStore,
|
|
498
498
|
rendererMap: this.rendererMap,
|
|
499
499
|
contentTypeMap: this.contentTypeMap,
|
|
500
|
-
withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation
|
|
500
|
+
withAnimation: (o = t == null ? void 0 : t.withAnimation) != null ? o : this.store.visibleWithAnimation,
|
|
501
|
+
zIndex: this.params.containerZIndex
|
|
501
502
|
}
|
|
502
503
|
});
|
|
503
504
|
}
|
|
@@ -16,6 +16,12 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
16
16
|
workUtil: WorkUtil;
|
|
17
17
|
set workCode(workCode: string);
|
|
18
18
|
get workCode(): string;
|
|
19
|
+
/** 插件参数 */
|
|
20
|
+
protected params: {
|
|
21
|
+
config: Pick<Tags, 'contentTypeConfig' | 'globalConfig'>;
|
|
22
|
+
debug: boolean;
|
|
23
|
+
containerZIndex?: number;
|
|
24
|
+
};
|
|
19
25
|
protected mediaStore: MediaStore;
|
|
20
26
|
/** css3DRenderPlugin */
|
|
21
27
|
protected get css3DRenderPlugin(): import("../../CSS3DRenderPlugin/Controller").default;
|