@realsee/dnalogel 3.79.2 → 3.79.4

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.
@@ -309,6 +309,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
309
309
  import "../Sculpt/utils/three/ColoredMesh.js";
310
310
  import "../shared-utils/three/geometryUtil.js";
311
311
  import "../Sculpt/Objects/Polygon/Editor.js";
312
+ import "../Sculpt/utils/isIntersecting.js";
312
313
  import "../Sculpt/Objects/Prism/index.js";
313
314
  import "../Sculpt/Meshes/Prism.js";
314
315
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -372,7 +373,7 @@ import "./utils/coordinatesToVector.js";
372
373
  import "./utils/safeCall.js";
373
374
  import "./utils/sleep.js";
374
375
  import "../shared-utils/five/fiveLoaded.js";
375
- class me extends z {
376
+ class pe extends z {
376
377
  constructor(t, r) {
377
378
  var h;
378
379
  super(t, r);
@@ -480,5 +481,5 @@ class me extends z {
480
481
  }
481
482
  }
482
483
  export {
483
- me as default
484
+ pe as default
484
485
  };
@@ -295,6 +295,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
295
295
  import "../Sculpt/utils/three/ColoredMesh.js";
296
296
  import "../shared-utils/three/geometryUtil.js";
297
297
  import "../Sculpt/Objects/Polygon/Editor.js";
298
+ import "../Sculpt/utils/isIntersecting.js";
298
299
  import "../Sculpt/Objects/Prism/index.js";
299
300
  import "../Sculpt/Meshes/Prism.js";
300
301
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -372,7 +373,7 @@ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
372
373
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
373
374
  import "./Work.js";
374
375
  import "./utils/coordinatesToVector.js";
375
- class dm extends V {
376
+ class fm extends V {
376
377
  constructor(t, i) {
377
378
  super(t, i);
378
379
  C(this, "state", {
@@ -847,5 +848,5 @@ class dm extends V {
847
848
  }
848
849
  }
849
850
  export {
850
- dm as default
851
+ fm as default
851
852
  };
@@ -1,4 +1,4 @@
1
- import { typing as zm } from "./typing/index.js";
1
+ import { typing as Am } from "./typing/index.js";
2
2
  import t from "./Work.js";
3
3
  import i from "./Move.js";
4
4
  import "../GuideLinePlugin/index.js";
@@ -281,6 +281,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
281
281
  import "../Sculpt/utils/three/ColoredMesh.js";
282
282
  import "../shared-utils/three/geometryUtil.js";
283
283
  import "../Sculpt/Objects/Polygon/Editor.js";
284
+ import "../Sculpt/utils/isIntersecting.js";
284
285
  import "../Sculpt/Objects/Prism/index.js";
285
286
  import "../Sculpt/Meshes/Prism.js";
286
287
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -344,13 +345,13 @@ import "./utils/sleep.js";
344
345
  import "../shared-utils/five/fiveLoaded.js";
345
346
  import "./BaseController.js";
346
347
  import "./utils/getFiveStateOnCurve.js";
347
- const bm = (o, r) => new t(o, r), hm = (o, r) => new i(o, r);
348
+ const hm = (o, r) => new t(o, r), jm = (o, r) => new i(o, r);
348
349
  export {
349
- bm as CruisePlugin,
350
+ hm as CruisePlugin,
350
351
  t as CruisePluginController,
351
- zm as CruisePluginTypes,
352
+ Am as CruisePluginTypes,
352
353
  i as MoveController,
353
- hm as MovePlugin,
354
+ jm as MovePlugin,
354
355
  t as WalkController,
355
- bm as default
356
+ hm as default
356
357
  };
@@ -306,6 +306,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
306
306
  import "../Sculpt/utils/three/ColoredMesh.js";
307
307
  import "../shared-utils/three/geometryUtil.js";
308
308
  import "../Sculpt/Objects/Polygon/Editor.js";
309
+ import "../Sculpt/utils/isIntersecting.js";
309
310
  import "../Sculpt/Objects/Prism/index.js";
310
311
  import "../Sculpt/Meshes/Prism.js";
311
312
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -372,8 +373,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
372
373
  import "../CruisePlugin/utils/safeCall.js";
373
374
  import "../CruisePlugin/utils/sleep.js";
374
375
  import "../shared-utils/five/fiveLoaded.js";
375
- const _ = "GuideLinePlugin", E = `${_}`, fe = (a) => `${E}--${a}`;
376
- class be extends k {
376
+ const _ = "GuideLinePlugin", E = `${_}`, be = (a) => `${E}--${a}`;
377
+ class ge extends k {
377
378
  constructor(t, i) {
378
379
  super(t, i);
379
380
  d(this, "name", _);
@@ -571,6 +572,6 @@ class be extends k {
571
572
  }
572
573
  }
573
574
  export {
574
- be as default,
575
- fe as pluginFlag
575
+ ge as default,
576
+ be as pluginFlag
576
577
  };
@@ -5,7 +5,7 @@ import "../shared-utils/five/changeMode.js";
5
5
  import "../CruisePlugin/Move.js";
6
6
  import "../CruisePlugin/Work.js";
7
7
  import "../shared-utils/Subscribe.js";
8
- import { GuideLineItem as qp } from "./GuideLineItem/index.js";
8
+ import { GuideLineItem as sp } from "./GuideLineItem/index.js";
9
9
  import "three";
10
10
  import "./utils/createLineGeometry.js";
11
11
  import "../vendor/polyline-normals/index.js";
@@ -277,6 +277,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
277
277
  import "../Sculpt/utils/three/ColoredMesh.js";
278
278
  import "../shared-utils/three/geometryUtil.js";
279
279
  import "../Sculpt/Objects/Polygon/Editor.js";
280
+ import "../Sculpt/utils/isIntersecting.js";
280
281
  import "../Sculpt/Objects/Prism/index.js";
281
282
  import "../Sculpt/Meshes/Prism.js";
282
283
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -344,5 +345,5 @@ import "../CruisePlugin/utils/safeCall.js";
344
345
  import "../CruisePlugin/utils/sleep.js";
345
346
  import "../shared-utils/five/fiveLoaded.js";
346
347
  export {
347
- qp as GuideLineItem
348
+ sp as GuideLineItem
348
349
  };
@@ -26,7 +26,7 @@ import "./utils/index.js";
26
26
  import "../vendor/object-assign-deep/objectAssignDeep.js";
27
27
  import "./utils/createPath.js";
28
28
  import "../shared-utils/fontSize.js";
29
- import { GuideLineModeItem as pp } from "./GuideLineModeItem/index.js";
29
+ import { GuideLineModeItem as ep } from "./GuideLineModeItem/index.js";
30
30
  import "../vendor/polyline-normals/index.js";
31
31
  import "../vendor/polyline-miter-util/index.js";
32
32
  import "../vendor/gl-vec2/add.js";
@@ -276,6 +276,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
276
276
  import "../Sculpt/utils/three/ColoredMesh.js";
277
277
  import "../shared-utils/three/geometryUtil.js";
278
278
  import "../Sculpt/Objects/Polygon/Editor.js";
279
+ import "../Sculpt/utils/isIntersecting.js";
279
280
  import "../Sculpt/Objects/Prism/index.js";
280
281
  import "../Sculpt/Meshes/Prism.js";
281
282
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -326,5 +327,5 @@ import "../PanoTagPlugin/Components/Common/TagPopover/ShareIcon.js";
326
327
  import "../PanoTagPlugin/utils/popoverContainer.js";
327
328
  import "../shared-utils/px2rem.js";
328
329
  export {
329
- pp as GuideLineModeItem
330
+ ep as GuideLineModeItem
330
331
  };
@@ -1,6 +1,6 @@
1
1
  import t from "./Controller.js";
2
- import { GuideLineItem$1 as jp } from "./GuideLineItem/index.js";
3
- import { GuideLineModeItem$1 as qp } from "./GuideLineModeItem/index.js";
2
+ import { GuideLineItem$1 as kp } from "./GuideLineItem/index.js";
3
+ import { GuideLineModeItem$1 as vp } from "./GuideLineModeItem/index.js";
4
4
  import "../base/BasePluginWithData.js";
5
5
  import "../base/BasePlugin.js";
6
6
  import "../shared-utils/Subscribe.js";
@@ -285,6 +285,7 @@ import "../PanoMeasurePlugin/utils/isIntersecting.js";
285
285
  import "../Sculpt/utils/three/ColoredMesh.js";
286
286
  import "../shared-utils/three/geometryUtil.js";
287
287
  import "../Sculpt/Objects/Polygon/Editor.js";
288
+ import "../Sculpt/utils/isIntersecting.js";
288
289
  import "../Sculpt/Objects/Prism/index.js";
289
290
  import "../Sculpt/Meshes/Prism.js";
290
291
  import "../shared-utils/three/core/PrismGeometry.js";
@@ -343,10 +344,10 @@ import "../shared-utils/five/changeMode.js";
343
344
  import "../shared-utils/nearlyEqual.js";
344
345
  import "../CruisePlugin/Move.js";
345
346
  import "../CruisePlugin/utils/getFiveStateOnCurve.js";
346
- const r = (i, o) => new t(i, o), Cp = r;
347
+ const r = (i, o) => new t(i, o), bp = r;
347
348
  export {
348
- jp as GuideLineItem,
349
- qp as GuideLineModeItem,
349
+ kp as GuideLineItem,
350
+ vp as GuideLineModeItem,
350
351
  r as GuideLinePlugin,
351
- Cp as default
352
+ bp as default
352
353
  };
@@ -1,30 +1,30 @@
1
1
  var P = Object.defineProperty;
2
2
  var b = Object.getOwnPropertySymbols;
3
3
  var E = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
4
- var S = (a, n, t) => n in a ? P(a, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[n] = t, y = (a, n) => {
5
- for (var t in n || (n = {}))
6
- E.call(n, t) && S(a, t, n[t]);
4
+ var S = (a, p, t) => p in a ? P(a, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[p] = t, y = (a, p) => {
5
+ for (var t in p || (p = {}))
6
+ E.call(p, t) && S(a, t, p[t]);
7
7
  if (b)
8
- for (var t of b(n))
9
- B.call(n, t) && S(a, t, n[t]);
8
+ for (var t of b(p))
9
+ B.call(p, t) && S(a, t, p[t]);
10
10
  return a;
11
11
  };
12
- var f = (a, n, t) => (S(a, typeof n != "symbol" ? n + "" : n, t), t);
13
- var g = (a, n, t) => new Promise((i, o) => {
14
- var e = (p) => {
12
+ var f = (a, p, t) => (S(a, typeof p != "symbol" ? p + "" : p, t), t);
13
+ var g = (a, p, t) => new Promise((i, o) => {
14
+ var e = (n) => {
15
15
  try {
16
- l(t.next(p));
16
+ l(t.next(n));
17
17
  } catch (h) {
18
18
  o(h);
19
19
  }
20
- }, s = (p) => {
20
+ }, s = (n) => {
21
21
  try {
22
- l(t.throw(p));
22
+ l(t.throw(n));
23
23
  } catch (h) {
24
24
  o(h);
25
25
  }
26
- }, l = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(e, s);
27
- l((t = t.apply(a, n)).next());
26
+ }, l = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(e, s);
27
+ l((t = t.apply(a, p)).next());
28
28
  });
29
29
  import { BaseTag as z } from "./BaseTag.js";
30
30
  import * as r from "three";
@@ -187,6 +187,7 @@ import "../../../PanoMeasurePlugin/utils/isIntersecting.js";
187
187
  import "../../../Sculpt/utils/three/ColoredMesh.js";
188
188
  import "../../../shared-utils/three/geometryUtil.js";
189
189
  import "../../../Sculpt/Objects/Polygon/Editor.js";
190
+ import "../../../Sculpt/utils/isIntersecting.js";
190
191
  import "../../../Sculpt/Objects/Prism/index.js";
191
192
  import "../../../Sculpt/Meshes/Prism.js";
192
193
  import "../../../shared-utils/three/core/PrismGeometry.js";
@@ -261,8 +262,8 @@ class ne extends z {
261
262
  const t = this.position;
262
263
  if (!(t != null && t.start) || !(t != null && t.end))
263
264
  return [0, 0, 0];
264
- const i = t.end.map((h) => Number(h)), o = t.start.map((h) => Number(h)), e = i[0] / 2 + o[0] / 2, s = i[1] / 2 + o[1] / 2, l = i[2] / 2 + o[2] / 2, p = new r.Vector3(e, s, l);
265
- return x(p, this.workUtil.transform).toArray();
265
+ const i = t.end.map((h) => Number(h)), o = t.start.map((h) => Number(h)), e = i[0] / 2 + o[0] / 2, s = i[1] / 2 + o[1] / 2, l = i[2] / 2 + o[2] / 2, n = new r.Vector3(e, s, l);
266
+ return x(n, this.workUtil.transform).toArray();
266
267
  }
267
268
  /**
268
269
  * 获取盒子的8个角点坐标
@@ -394,15 +395,15 @@ class ne extends z {
394
395
  * 将 BoxPosition 转换为 Sculpt 需要的数据格式
395
396
  */
396
397
  boxPositionToSculptData(t) {
397
- const i = u(t.start), o = u(t.end), e = new r.Euler().fromArray(t.rotation), s = new r.Vector3((i.x + o.x) / 2, (i.y + o.y) / 2, (i.z + o.z) / 2), l = new r.Vector3(Math.abs(o.x - i.x) / 2, Math.abs(o.y - i.y) / 2, Math.abs(o.z - i.z) / 2), p = new r.Matrix4().makeRotationFromEuler(e), h = [
398
+ const i = u(t.start), o = u(t.end), e = new r.Euler().fromArray(t.rotation), s = new r.Vector3((i.x + o.x) / 2, (i.y + o.y) / 2, (i.z + o.z) / 2), l = new r.Vector3(Math.abs(o.x - i.x) / 2, Math.abs(o.y - i.y) / 2, Math.abs(o.z - i.z) / 2), n = new r.Matrix4().makeRotationFromEuler(e), h = [
398
399
  new r.Vector3(-0.5, -0.5, -0.5),
399
400
  new r.Vector3(0.5, -0.5, -0.5),
400
401
  new r.Vector3(0.5, -0.5, 0.5),
401
402
  new r.Vector3(-0.5, -0.5, 0.5)
402
403
  ], d = new r.Vector3(-0.5, 0.5, -0.5), c = l.clone().multiplyScalar(2), m = this.workUtil.transform, v = h.map((V) => {
403
- const C = V.clone().multiply(c).applyMatrix4(p).add(s);
404
+ const C = V.clone().multiply(c).applyMatrix4(n).add(s);
404
405
  return x(C, m);
405
- }), w = d.clone().multiply(c).applyMatrix4(p).add(s), k = x(w, m);
406
+ }), w = d.clone().multiply(c).applyMatrix4(n).add(s), k = x(w, m);
406
407
  return { bottomPoints: v, heightPoint: k };
407
408
  }
408
409
  /**
@@ -466,9 +467,9 @@ class ne extends z {
466
467
  new r.Vector3(e.x, o.y, e.z),
467
468
  new r.Vector3(o.x, e.y, e.z),
468
469
  new r.Vector3(e.x, e.y, e.z)
469
- ], p = new r.Vector3().addVectors(o, e).multiplyScalar(0.5), h = this.workUtil.transform;
470
+ ], n = new r.Vector3().addVectors(o, e).multiplyScalar(0.5), h = this.workUtil.transform;
470
471
  l.forEach((m) => {
471
- m.sub(p).applyEuler(s).add(p), m.copy(x(m, h));
472
+ m.sub(n).applyEuler(s).add(n), m.copy(x(m, h));
472
473
  });
473
474
  let d = l[0];
474
475
  l.forEach((m) => {
@@ -4,7 +4,6 @@ import { BaseTag } from './BaseTag';
4
4
  import type { PartialObjectDeep } from '../../../typings/typings';
5
5
  import type { Vector3 } from 'three';
6
6
  import { Rectangle } from '../../../Sculpt/Objects/Rectangle';
7
- export type PlaneTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
8
7
  export declare class PlaneTag<C extends TagContentType = TagContentType> extends BaseTag<C, 'Plane'> {
9
8
  rectanglePlane?: Rectangle;
10
9
  private _floorIndex?;
@@ -28,8 +27,15 @@ export declare class PlaneTag<C extends TagContentType = TagContentType> extends
28
27
  private initialSculpt;
29
28
  editorEnable(): void;
30
29
  editorDisable(position?: Vector3[]): void;
30
+ private getRectangleHelper;
31
+ /**
32
+ * 标签因为 visiblePanoIndex 等可见性规则被隐藏时,同时隐藏编辑辅助元素。
33
+ * 当标签重新可见且仍处于编辑态时,再恢复辅助元素显示。
34
+ */
35
+ private syncEditorAuxiliaryVisibility;
31
36
  private renderVideoPlane;
32
37
  private renderImagePlane;
33
38
  private renderEmptyPlane;
34
39
  computeNormal(): Vector3;
35
40
  }
41
+ export type PlaneTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;