@realsee/dnalogel 3.73.1-alpha.1 → 3.73.1-alpha.3

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.
@@ -1,41 +1,41 @@
1
- var _ = Object.defineProperty;
2
- var G = (p, l, e) => l in p ? _(p, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[l] = e;
3
- var r = (p, l, e) => (G(p, typeof l != "symbol" ? l + "" : l, e), e);
4
- var d = (p, l, e) => new Promise((t, i) => {
1
+ var G = Object.defineProperty;
2
+ var O = (M, l, e) => l in M ? G(M, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : M[l] = e;
3
+ var a = (M, l, e) => (O(M, typeof l != "symbol" ? l + "" : l, e), e);
4
+ var m = (M, l, e) => new Promise((t, i) => {
5
5
  var s = (o) => {
6
6
  try {
7
7
  n(e.next(o));
8
- } catch (a) {
9
- i(a);
8
+ } catch (d) {
9
+ i(d);
10
10
  }
11
- }, h = (o) => {
11
+ }, r = (o) => {
12
12
  try {
13
13
  n(e.throw(o));
14
- } catch (a) {
15
- i(a);
14
+ } catch (d) {
15
+ i(d);
16
16
  }
17
- }, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, h);
18
- n((e = e.apply(p, l)).next());
17
+ }, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, r);
18
+ n((e = e.apply(M, l)).next());
19
19
  });
20
20
  import * as y from "three";
21
21
  import { Vector3 as b } from "three";
22
22
  import { centerPoint as I } from "../../../shared-utils/three/centerPoint.js";
23
- import { loadPicture as E } from "../../../shared-utils/three/loadTexture.js";
24
- import { QuadrangleGeometry as F, QuadrangleMesh as x } from "../../../shared-utils/three/Quadrangle.js";
23
+ import { loadPicture as H } from "../../../shared-utils/three/loadTexture.js";
24
+ import { QuadrangleGeometry as F, QuadrangleMesh as S } from "../../../shared-utils/three/Quadrangle.js";
25
25
  import { getVideoTexture as V } from "../../../shared-utils/three/loadVideoTexture.js";
26
- import { Image_Play_Icon_With_Text as B, Image_Play_Icon as S } from "../../Assets/Icon.js";
27
- import { getPositionsByObjectFit as M } from "../../../shared-utils/three/getPositionsByObjectFit.js";
26
+ import { Image_Play_Icon_With_Text as B, Image_Play_Icon as E } from "../../Assets/Icon.js";
27
+ import { getPositionsByObjectFit as g } from "../../../shared-utils/three/getPositionsByObjectFit.js";
28
28
  import { FragmentTransparencyMaterial as j } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
29
29
  import { getNormal as P } from "../../../shared-utils/three/getNormal.js";
30
30
  import { CONST as T } from "../../../shared-utils/constants.js";
31
31
  import "../../../shared-utils/math/pointsIsRectangle.js";
32
32
  import "../../../shared-utils/device.js";
33
- class H extends y.Mesh {
33
+ class C extends y.Mesh {
34
34
  constructor() {
35
35
  super(...arguments);
36
- r(this, "name", "MediaPlane");
37
- r(this, "src");
38
- r(this, "objectFit");
36
+ a(this, "name", "MediaPlane");
37
+ a(this, "src");
38
+ a(this, "objectFit");
39
39
  }
40
40
  /** 获取透明度 */
41
41
  get opacity() {
@@ -66,79 +66,86 @@ class H extends y.Mesh {
66
66
  });
67
67
  }
68
68
  }
69
- class z extends H {
69
+ class J extends C {
70
70
  constructor(e, t, i) {
71
- var n;
71
+ var o, d;
72
72
  super();
73
- r(this, "name", "PanoTagPluginImagePlane");
74
- r(this, "originRatio");
73
+ a(this, "name", "PanoTagPluginImagePlane");
74
+ a(this, "originRatio");
75
75
  this.src = e;
76
- const s = (n = i == null ? void 0 : i.resolveZFighting) != null ? n : !0;
77
- let h = t;
76
+ const s = (o = i == null ? void 0 : i.resolveZFighting) != null ? o : !0, r = (d = i == null ? void 0 : i.opacity) != null ? d : 1;
77
+ let n = t;
78
78
  if (s) {
79
- const o = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
80
- h = t.map((a) => a.clone().add(o));
79
+ const h = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
80
+ n = t.map((c) => c.clone().add(h));
81
81
  }
82
- E(e).then(({ texture: o, transparent: a }) => {
83
- var g;
84
- const v = new y.MeshBasicMaterial({ map: o, transparent: a, side: y.DoubleSide });
85
- this.originRatio = o.image.width / o.image.height, this.objectFit = (g = i == null ? void 0 : i.objectFit) != null ? g : "contain";
86
- const c = M(this.objectFit, h, o.image.width / o.image.height), m = I(...c), u = c.map((w) => w.clone().sub(m)), f = new F(u);
87
- this.position.copy(m), this.geometry = f, this.material = v;
88
- }).catch((o) => {
89
- console.error(`Imageplane error: ${o == null ? void 0 : o.message}`);
82
+ H(e).then(({ texture: h, transparent: c }) => {
83
+ var x;
84
+ const v = new y.MeshBasicMaterial({
85
+ map: h,
86
+ transparent: c || r < 1,
87
+ opacity: r,
88
+ side: y.DoubleSide
89
+ });
90
+ this.originRatio = h.image.width / h.image.height, this.objectFit = (x = i == null ? void 0 : i.objectFit) != null ? x : "contain";
91
+ const u = g(this.objectFit, n, h.image.width / h.image.height), p = I(...u), f = u.map((_) => _.clone().sub(p)), w = new F(f);
92
+ this.position.copy(p), this.geometry = w, this.material = v;
93
+ }).catch((h) => {
94
+ console.error(`Imageplane error: ${h == null ? void 0 : h.message}`);
90
95
  });
91
96
  }
92
97
  changePointsOrParams(e) {
93
98
  const { cornerPoints: t, params: i = {} } = e, { objectFit: s = this.objectFit } = i;
94
- let h = t;
99
+ let r = t;
95
100
  const { resolveZFighting: n } = i != null ? i : {};
96
101
  if (n) {
97
- const m = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
98
- h = t.map((u) => u.clone().add(m));
102
+ const v = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
103
+ r = t.map((u) => u.clone().add(v));
99
104
  }
100
- const o = M(s != null ? s : "contain", h, this.originRatio), a = I(...o), v = o.map((m) => m.clone().sub(a)), c = new F(v);
101
- this.objectFit = s != null ? s : "contain", this.position.copy(a), this.geometry = c;
105
+ const o = g(s != null ? s : "contain", r, this.originRatio), d = I(...o), h = o.map((v) => v.clone().sub(d)), c = new F(h);
106
+ this.objectFit = s != null ? s : "contain", this.position.copy(d), this.geometry = c;
102
107
  }
103
108
  }
104
- class J extends H {
109
+ class K extends C {
105
110
  // eslint-disable-next-line max-params
106
111
  constructor(e, t, i) {
107
112
  const {
108
113
  videoCoverSrc: s,
109
- objectFit: h = "contain",
114
+ objectFit: r = "contain",
110
115
  playButton: n = "withText",
111
116
  paused: o = !0,
112
- videoTextureMap: a,
113
- ImageTextureMap: v,
114
- domEvents: c
117
+ videoTextureMap: d,
118
+ ImageTextureMap: h,
119
+ domEvents: c,
120
+ opacity: v = 1
115
121
  } = i != null ? i : {};
116
122
  super();
117
- r(this, "isVideoPlane", !0);
118
- r(this, "name", "PanoTagPluginImagePlane");
119
- r(this, "videoInstance");
120
- r(this, "onVideoReady");
121
- r(this, "buttonSrc");
122
- r(this, "videoCoverSrc");
123
- r(this, "domEvents");
124
- r(this, "disposers", []);
125
- r(this, "cornerPoints");
126
- r(this, "videoMesh");
127
- r(this, "coverMesh");
128
- r(this, "buttonMesh");
129
- r(this, "videoTextureMap");
130
- r(this, "ImageTextureMap");
131
- this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? B : n === "withoutText" ? S : typeof n == "string" ? n : S)(), this.videoCoverSrc = s, this.objectFit = h, this.videoTextureMap = a, this.ImageTextureMap = v, this.domEvents = c, this.position.copy(I(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
123
+ a(this, "isVideoPlane", !0);
124
+ a(this, "name", "PanoTagPluginImagePlane");
125
+ a(this, "videoInstance");
126
+ a(this, "onVideoReady");
127
+ a(this, "buttonSrc");
128
+ a(this, "videoCoverSrc");
129
+ a(this, "domEvents");
130
+ a(this, "disposers", []);
131
+ a(this, "cornerPoints");
132
+ a(this, "videoMesh");
133
+ a(this, "coverMesh");
134
+ a(this, "buttonMesh");
135
+ a(this, "videoTextureMap");
136
+ a(this, "ImageTextureMap");
137
+ a(this, "initialOpacity");
138
+ this.cornerPoints = t, this.src = e, this.initialOpacity = v, this.buttonSrc = (() => n === "withText" ? B : n === "withoutText" ? E : typeof n == "string" ? n : E)(), this.videoCoverSrc = s, this.objectFit = r, this.videoTextureMap = d, this.ImageTextureMap = h, this.domEvents = c, this.position.copy(I(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
132
139
  o ? this.addButtonMesh() : this.play(!0);
133
140
  }), this.addEventListener("removed", () => {
134
141
  this.remove(...this.children);
135
142
  }), this.addEventListener("dispose", () => {
136
- var m;
137
- (m = this.disposers) == null || m.forEach((u) => u == null ? void 0 : u());
143
+ var u;
144
+ (u = this.disposers) == null || u.forEach((p) => p == null ? void 0 : p());
138
145
  });
139
146
  }
140
147
  play(e = !1) {
141
- return d(this, null, function* () {
148
+ return m(this, null, function* () {
142
149
  this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((t) => {
143
150
  this.pause(), console.error("play error", t);
144
151
  }), this.videoInstance.muted = e, this.render();
@@ -158,7 +165,7 @@ class J extends H {
158
165
  this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
159
166
  }
160
167
  showPauseUI() {
161
- return d(this, null, function* () {
168
+ return m(this, null, function* () {
162
169
  this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
163
170
  });
164
171
  }
@@ -167,41 +174,51 @@ class J extends H {
167
174
  this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
168
175
  }
169
176
  addCoverMesh() {
170
- return d(this, null, function* () {
177
+ return m(this, null, function* () {
171
178
  if (this.children.includes(this.coverMesh))
172
179
  return;
173
- const e = yield (() => d(this, null, function* () {
180
+ const e = yield (() => m(this, null, function* () {
174
181
  if (this.coverMesh)
175
182
  return this.coverMesh;
176
183
  if (!this.videoCoverSrc)
177
184
  return;
178
- const { texture: t, transparent: i } = yield this.getImageTexture(this.videoCoverSrc), s = new y.MeshBasicMaterial({ transparent: !1, map: t, side: y.DoubleSide }), h = M(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new x(h, s);
185
+ const { texture: t, transparent: i } = yield this.getImageTexture(this.videoCoverSrc), s = new y.MeshBasicMaterial({
186
+ transparent: i || this.initialOpacity < 1,
187
+ opacity: this.initialOpacity,
188
+ map: t,
189
+ side: y.DoubleSide
190
+ }), r = g(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new S(r, s);
179
191
  n.position.copy(new b(0, 0, 0)), n.name = "videoCoverMesh";
180
- const o = P(h).multiplyScalar(T.Z_FIGHTING_OFFSET);
192
+ const o = P(r).multiplyScalar(T.Z_FIGHTING_OFFSET);
181
193
  return n.position.add(o), n;
182
194
  }))();
183
195
  return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
184
196
  });
185
197
  }
186
198
  addVideoMesh() {
187
- return d(this, null, function* () {
199
+ return m(this, null, function* () {
188
200
  var i;
189
201
  if (this.children.includes(this.videoMesh))
190
202
  return;
191
- const e = yield (() => d(this, null, function* () {
203
+ const e = yield (() => m(this, null, function* () {
192
204
  if (this.videoMesh)
193
205
  return this.videoMesh;
194
206
  if (!this.src)
195
207
  return;
196
- const s = this.getVideoTexture(this.src), h = new y.MeshBasicMaterial({ transparent: !1, map: s, side: y.DoubleSide }), n = yield new Promise((v) => {
197
- s.metadataLoaded ? v(M(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
208
+ const s = this.getVideoTexture(this.src), r = new y.MeshBasicMaterial({
209
+ transparent: this.initialOpacity < 1,
210
+ opacity: this.initialOpacity,
211
+ map: s,
212
+ side: y.DoubleSide
213
+ }), n = yield new Promise((h) => {
214
+ s.metadataLoaded ? h(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
198
215
  "videoLoaded",
199
- () => v(M(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
216
+ () => h(g(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
200
217
  );
201
- }), o = new x(n, h);
218
+ }), o = new S(n, r);
202
219
  o.name = "videoMesh", o.position.copy(new b(0, 0, 0));
203
- const a = P(n).multiplyScalar(T.Z_FIGHTING_OFFSET);
204
- return o.position.add(a), o;
220
+ const d = P(n).multiplyScalar(T.Z_FIGHTING_OFFSET);
221
+ return o.position.add(d), o;
205
222
  }))();
206
223
  if (!e)
207
224
  return;
@@ -223,14 +240,14 @@ class J extends H {
223
240
  });
224
241
  }
225
242
  addButtonMesh() {
226
- return d(this, null, function* () {
243
+ return m(this, null, function* () {
227
244
  if (this.children.includes(this.buttonMesh))
228
245
  return;
229
- const e = yield (() => d(this, null, function* () {
230
- var u, f, g, w;
246
+ const e = yield (() => m(this, null, function* () {
247
+ var u, p, f, w;
231
248
  if (this.buttonMesh)
232
249
  return this.buttonMesh;
233
- const t = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, i = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, i, s) / s * 0.3, { texture: o, transparent: a } = yield this.getImageTexture(this.buttonSrc), v = M("contain", this.cornerPoints, o.image.width / o.image.height), c = new x(v, new j(o));
250
+ const t = (p = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? p : 1 / 0, i = (w = (f = this.coverMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, i, s) / s * 0.3, { texture: o, transparent: d } = yield this.getImageTexture(this.buttonSrc), h = g("contain", this.cornerPoints, o.image.width / o.image.height), c = new S(h, new j(o));
234
251
  c.position.copy(new b(0, 0, 0)), c.name = "buttonMesh", c.scale.set(n, n, n), c.material.side = y.DoubleSide, this.domEvents.addAutoBindEventListener(
235
252
  c,
236
253
  "click",
@@ -239,18 +256,18 @@ class J extends H {
239
256
  },
240
257
  { noEmitWhenHide: !0 }
241
258
  );
242
- const m = P(v).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
243
- return c.position.add(m), c;
259
+ const v = P(h).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
260
+ return c.position.add(v), c;
244
261
  }))();
245
262
  return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
246
263
  });
247
264
  }
248
265
  getImageTexture(e) {
249
- return d(this, null, function* () {
266
+ return m(this, null, function* () {
250
267
  var i, s;
251
268
  if ((i = this.ImageTextureMap) != null && i.has(e))
252
269
  return this.ImageTextureMap.get(e);
253
- const t = yield E(e);
270
+ const t = yield H(e);
254
271
  return (s = this.ImageTextureMap) == null || s.set(e, t), t;
255
272
  });
256
273
  }
@@ -262,52 +279,52 @@ class J extends H {
262
279
  return (s = this.videoTextureMap) == null || s.set(e, t), t;
263
280
  }
264
281
  changePointsOrParams(e) {
265
- return d(this, null, function* () {
282
+ return m(this, null, function* () {
266
283
  const { cornerPoints: t, params: i } = e;
267
284
  t && (this.cornerPoints = t, this.position.copy(I(...t))), i != null && i.objectFit && (this.objectFit = i.objectFit), yield this.updateAllMeshes();
268
285
  });
269
286
  }
270
287
  updateAllMeshes() {
271
- return d(this, null, function* () {
288
+ return m(this, null, function* () {
272
289
  this.videoMesh && (yield this.updateVideoMesh()), this.coverMesh && (yield this.updateCoverMesh()), this.buttonMesh && (yield this.updateButtonMesh()), this.render();
273
290
  });
274
291
  }
275
292
  updateVideoMesh() {
276
- return d(this, null, function* () {
293
+ return m(this, null, function* () {
277
294
  if (!this.videoMesh || !this.src)
278
295
  return;
279
296
  const e = this.getVideoTexture(this.src), t = yield new Promise((o) => {
280
- e.metadataLoaded ? o(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight)) : e.addEventListener(
297
+ e.metadataLoaded ? o(g(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight)) : e.addEventListener(
281
298
  "videoLoaded",
282
- () => o(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
299
+ () => o(g(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
283
300
  );
284
- }), i = I(...t), s = t.map((o) => o.clone().sub(i)), h = new F(s);
285
- this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new b(0, 0, 0));
301
+ }), i = I(...t), s = t.map((o) => o.clone().sub(i)), r = new F(s);
302
+ this.videoMesh.geometry.dispose(), this.videoMesh.geometry = r, this.videoMesh.position.copy(new b(0, 0, 0));
286
303
  const n = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
287
304
  this.videoMesh.position.add(n);
288
305
  });
289
306
  }
290
307
  updateCoverMesh() {
291
- return d(this, null, function* () {
308
+ return m(this, null, function* () {
292
309
  if (!this.coverMesh || !this.videoCoverSrc)
293
310
  return;
294
- const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = M(this.objectFit, this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((n) => n.clone().sub(i)), h = new F(s);
295
- this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new b(0, 0, 0));
311
+ const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = g(this.objectFit, this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((n) => n.clone().sub(i)), r = new F(s);
312
+ this.coverMesh.geometry.dispose(), this.coverMesh.geometry = r, this.coverMesh.position.copy(new b(0, 0, 0));
296
313
  });
297
314
  }
298
315
  updateButtonMesh() {
299
- return d(this, null, function* () {
300
- var u, f, g, w;
316
+ return m(this, null, function* () {
317
+ var u, p, f, w;
301
318
  if (!this.buttonMesh)
302
319
  return;
303
- const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = M("contain", this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((C) => C.clone().sub(i)), h = new F(s), n = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, o = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, a = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, a) / a * 0.3;
304
- this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new b(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
305
- const m = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
306
- this.buttonMesh.position.add(m);
320
+ const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = g("contain", this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((x) => x.clone().sub(i)), r = new F(s), n = (p = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? p : 1 / 0, o = (w = (f = this.coverMesh) == null ? void 0 : f.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, d = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, d) / d * 0.3;
321
+ this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = r, this.buttonMesh.position.copy(new b(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
322
+ const v = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
323
+ this.buttonMesh.position.add(v);
307
324
  });
308
325
  }
309
326
  }
310
327
  export {
311
- z as ImagePlane,
312
- J as VideoPlane
328
+ J as ImagePlane,
329
+ K as VideoPlane
313
330
  };
@@ -22,7 +22,7 @@ let A = class {
22
22
  /**
23
23
  * @realsee/dnalogel 版本号
24
24
  */
25
- r(this, "VERSION", "3.73.1-alpha.1");
25
+ r(this, "VERSION", "3.73.1-alpha.3");
26
26
  r(this, "NAME");
27
27
  r(this, "five");
28
28
  r(this, "workUtil");
@@ -1,11 +1,11 @@
1
- import * as l from "three";
2
- const a = (t, x) => {
3
- const o = new l.Box3();
4
- return t.modelScene.traverse((e) => {
5
- var r, n;
6
- ((n = (r = e == null ? void 0 : e.material) == null ? void 0 : r[0]) == null ? void 0 : n.floorIndex) === x && o.expandByObject(e);
7
- }), o;
1
+ import * as s from "three";
2
+ const m = (e, d) => {
3
+ const r = new s.Box3();
4
+ return e.models.find((o) => o.name === e.state.workCode).traverse((o) => {
5
+ var t, n;
6
+ ((n = (t = o == null ? void 0 : o.material) == null ? void 0 : t[0]) == null ? void 0 : n.floorIndex) === d && r.expandByObject(o);
7
+ }), r;
8
8
  };
9
9
  export {
10
- a as getFloorMesh
10
+ m as getFloorMesh
11
11
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.73.1-alpha.1",
3
+ "%c %c@realsee/dnalogel %cv3.73.1-alpha.3",
4
4
  [
5
5
  "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=')",
6
6
  "background-repeat: no-repeat",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.73.1-alpha.1",
3
+ "version": "3.73.1-alpha.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",