@realsee/dnalogel 2.1.0-alpha.26 → 2.1.0-alpha.28

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.
Files changed (122) hide show
  1. package/dist/index.cjs.js +556 -0
  2. package/dist/index.es.js +21392 -0
  3. package/dist/index.js +5104 -4997
  4. package/dist/index.umd.js +556 -0
  5. package/docs/classes/CruisePluginController.html +14 -14
  6. package/docs/classes/Magnifier.html +4 -4
  7. package/docs/classes/ModelRoomLabelController.html +4 -4
  8. package/docs/classes/Object3DHelperController.html +9 -9
  9. package/docs/classes/PaintBrush.html +3 -3
  10. package/docs/classes/PanoTagPluginController.html +23 -23
  11. package/docs/enums/CameraMovementEffect.html +2 -2
  12. package/docs/enums/ContentType.html +7 -7
  13. package/docs/enums/DIRECTION.html +1 -1
  14. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  15. package/docs/enums/DimensionType.html +1 -1
  16. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  17. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  18. package/docs/enums/LinkType.html +1 -1
  19. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  20. package/docs/enums/PointType.html +1 -1
  21. package/docs/enums/Rotation.html +2 -2
  22. package/docs/index.html +1 -1
  23. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  24. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  25. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  26. package/docs/interfaces/ContentTypeMap.html +3 -3
  27. package/docs/interfaces/FloorplanBounding.html +4 -4
  28. package/docs/interfaces/FloorplanData.html +2 -2
  29. package/docs/interfaces/FloorplanEntrance.html +7 -7
  30. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  31. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  32. package/docs/interfaces/FloorplanFloorData.html +2 -2
  33. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  34. package/docs/interfaces/FloorplanObserver.html +2 -2
  35. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  36. package/docs/interfaces/FloorplanPosition.html +2 -2
  37. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  38. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  39. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  40. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  41. package/docs/interfaces/FloorplanServerData.html +2 -2
  42. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  43. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  44. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  45. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  46. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  47. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  48. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  49. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  50. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  51. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  52. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  54. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  55. package/docs/interfaces/LineJson.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  58. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  60. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  63. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  64. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  67. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  68. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  69. package/docs/interfaces/Object3DHelperState.html +1 -1
  70. package/docs/interfaces/OpenParameter.html +2 -2
  71. package/docs/interfaces/PaintBrushAction.html +7 -7
  72. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  73. package/docs/interfaces/PaintBrushState.html +1 -1
  74. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  75. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  76. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  77. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  79. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  92. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  93. package/docs/interfaces/Point.html +1 -1
  94. package/docs/interfaces/PointJson.html +1 -1
  95. package/docs/interfaces/Room.html +1 -1
  96. package/docs/interfaces/RoomInfo.html +1 -1
  97. package/docs/interfaces/RoomLabel.html +7 -7
  98. package/docs/interfaces/RoomRules.html +1 -1
  99. package/docs/interfaces/Rooms.html +1 -1
  100. package/docs/interfaces/Scissor.html +5 -5
  101. package/docs/interfaces/TagConfig.html +3 -3
  102. package/docs/interfaces/Tags.html +3 -3
  103. package/docs/modules.html +21 -21
  104. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +15 -4
  105. package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -143
  106. package/libs/CSS3DRenderPlugin/Controller.d.ts +2 -0
  107. package/libs/CSS3DRenderPlugin/Controller.js +47 -26
  108. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +22 -4
  109. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +56 -37
  110. package/libs/Object3DHelperPlugin/Controller.js +24 -23
  111. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +81 -81
  112. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +69 -68
  113. package/libs/PanoTagPlugin/controller/index.js +1 -1
  114. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +63 -53
  115. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +12 -13
  116. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +43 -45
  117. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +16 -10
  118. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -1
  119. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +43 -43
  120. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -2
  121. package/libs/shared-utils/Object3DHelper/index.js +12 -12
  122. package/package.json +2 -2
@@ -1,21 +1,27 @@
1
1
  var y = Object.defineProperty;
2
- var g = (r, e, t) => e in r ? y(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var i = (r, e, t) => (g(r, typeof e != "symbol" ? e + "" : e, t), t);
2
+ var g = (r, t, e) => t in r ? y(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var i = (r, t, e) => (g(r, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import * as o from "three";
5
5
  import { DirectionGroup as f, DirectionMesh as l } from "../../utils/direction.js";
6
- class u extends f {
7
- constructor(t) {
6
+ class G extends f {
7
+ constructor(e) {
8
8
  var c;
9
- super(t.direction);
9
+ super(e.direction);
10
10
  i(this, "line");
11
11
  i(this, "arrow");
12
12
  i(this, "lineHeight", 0.4);
13
13
  i(this, "arrowHeight", 0.1);
14
14
  this.name = "ArrowGroup";
15
- const w = new o.Color((c = t.color) != null ? c : 16214315), n = new o.MeshBasicMaterial({ color: w, depthTest: !1 }), m = new o.ConeGeometry(0.04, 0.1, 32), s = new l(m, n.clone(), t.direction);
16
- s.name = `arrow-${t.direction}`, this.arrow = s;
17
- const h = 4e-3, d = new o.CylinderGeometry(h, h, 0.4, 32), a = new l(d, n.clone(), t.direction);
18
- a.name = `line-${t.direction}`, this.line = a, this.formatArrow(), this.formatLine(), this.add(this.arrow, this.line);
15
+ const w = new o.Color((c = e.color) != null ? c : 16214315), n = new o.MeshBasicMaterial({
16
+ color: w,
17
+ depthTest: !1,
18
+ opacity: 1,
19
+ transparent: !0,
20
+ side: o.DoubleSide
21
+ }), d = new o.ConeGeometry(0.04, 0.1, 32), s = new l(d, n.clone(), e.direction);
22
+ s.name = `arrow-${e.direction}`, this.arrow = s;
23
+ const a = 4e-3, m = new o.CylinderGeometry(a, a, 0.4, 32), h = new l(m, n.clone(), e.direction);
24
+ h.name = `line-${e.direction}`, this.line = h, this.formatArrow(), this.formatLine(), this.add(this.arrow, this.line);
19
25
  }
20
26
  formatArrow() {
21
27
  this.arrow.geometry.translate(0, this.lineHeight + this.arrowHeight / 2, 0), this.direction === "x" ? (this.arrow.geometry.rotateX(Math.PI / 2), this.arrow.geometry.rotateY(Math.PI / 2)) : this.direction === "z" && this.arrow.geometry.rotateX(Math.PI / 2);
@@ -25,5 +31,5 @@ class u extends f {
25
31
  }
26
32
  }
27
33
  export {
28
- u as ArrowGroup
34
+ G as ArrowGroup
29
35
  };
@@ -3,7 +3,7 @@ import { RectangleScaleHelperAbstract } from '.';
3
3
  import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
4
4
  import type { Vector3 } from 'three';
5
5
  import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
6
- import { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/CSS3DObjectPlus';
6
+ import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/CSS3DObjectPlus';
7
7
  declare type NonVoid<T> = T extends void ? never : T;
8
8
  declare type OriginObjectType = CSS3DObject | THREE.Object3D;
9
9
  export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObjectType> extends RectangleScaleHelperAbstract<T, HTMLElement> {
@@ -1,31 +1,31 @@
1
1
  var b = Object.defineProperty;
2
- var m = (l, a, e) => a in l ? b(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e;
3
- var n = (l, a, e) => (m(l, typeof a != "symbol" ? a + "" : a, e), e);
2
+ var m = (o, n, e) => n in o ? b(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
+ var i = (o, n, e) => (m(o, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import { CSS3DRender as f } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
5
- import * as o from "three";
5
+ import * as c from "three";
6
6
  import { RectangleScaleHelperAbstract as y } from "../Base/BaseHelper.js";
7
7
  import "./OutlineHelper.js";
8
8
  import { CSS3DObject as S } from "three/examples/jsm/renderers/CSS3DRenderer";
9
9
  import { rectangleScaleDom as j } from "./HTML/rectangleScaleDom.js";
10
- import { CSS3DObjectPlus as O } from "../../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
11
10
  import "../../Subscribe.js";
12
11
  import "../../../CSS3DRenderPlugin/utils/evenNumber.js";
13
12
  import "../../../CSS3DRenderPlugin/utils/positionToVector3.js";
13
+ import "../../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
14
14
  import "../../../CSS3DRenderPlugin/utils/centerPoint.js";
15
15
  import "./HTML/utils/createElement.js";
16
- class C extends y {
17
- constructor(e, t, s, i) {
16
+ class x extends y {
17
+ constructor(e, t, s, l) {
18
18
  super(e);
19
- n(this, "points", []);
20
- n(this, "cornerPositions", []);
21
- n(this, "css3DInstance");
22
- n(this, "plane");
23
- n(this, "css3DRenderer", new f());
24
- n(this, "camera");
25
- n(this, "scene");
26
- n(this, "container");
27
- n(this, "enabled", !1);
28
- this.camera = s, this.scene = i, this.container = t, this.initRectangleScaleHelper();
19
+ i(this, "points", []);
20
+ i(this, "cornerPositions", []);
21
+ i(this, "css3DInstance");
22
+ i(this, "plane");
23
+ i(this, "css3DRenderer", new f());
24
+ i(this, "camera");
25
+ i(this, "scene");
26
+ i(this, "container");
27
+ i(this, "enabled", !1);
28
+ this.camera = s, this.scene = l, this.container = t, this.initRectangleScaleHelper();
29
29
  }
30
30
  get helperObject() {
31
31
  var e;
@@ -34,22 +34,22 @@ class C extends y {
34
34
  return this.css3DInstance.css3DObject;
35
35
  }
36
36
  updatePosition() {
37
- var e, t;
38
- (e = this.css3DInstance) == null || e.css3DObject.position.copy(this.originObject3D.position), (t = this.plane) == null || t.position.copy(this.originObject3D.position);
37
+ var e;
38
+ this.helperObject.position.copy(this.originObject3D.position), (e = this.plane) == null || e.position.copy(this.originObject3D.position);
39
39
  }
40
40
  updateQuaternion() {
41
41
  var e;
42
42
  (e = this.plane) == null || e.quaternion.copy(this.originObject3D.quaternion);
43
43
  }
44
44
  applyMatrix4(e) {
45
- var t, s;
46
- (t = this.css3DInstance) == null || t.css3DObject.applyMatrix4(e), (s = this.plane) == null || s.applyMatrix4(e), this.cornerPositions.forEach((i) => i.applyMatrix4(e));
45
+ var t;
46
+ super.applyMatrix4(e), this.helperObject.applyMatrix4(e), (t = this.plane) == null || t.applyMatrix4(e), this.cornerPositions.forEach((s) => s.applyMatrix4(e));
47
47
  }
48
48
  showDraggingHelper() {
49
49
  }
50
50
  applyHelperScaleMatrix4(e, t) {
51
- var s, i;
52
- (s = this.css3DInstance) == null || s.css3DObject.scale.applyMatrix4(e), (i = this.plane) == null || i.scale.applyMatrix4(e);
51
+ var s;
52
+ (s = this.plane) == null || s.scale.applyMatrix4(e), this.helperObject.applyScaleMatrix4(e);
53
53
  }
54
54
  updatePoints() {
55
55
  const e = this.calculatePointPosition(this.cornerPositions);
@@ -58,19 +58,19 @@ class C extends y {
58
58
  });
59
59
  }
60
60
  applyHelperQuaternion(e, t) {
61
- var i;
62
- const s = (i = this.css3DInstance) == null ? void 0 : i.css3DObject;
61
+ var l;
62
+ const s = (l = this.css3DInstance) == null ? void 0 : l.css3DObject;
63
63
  if (s) {
64
- const c = new o.Vector3().subVectors(s.position, t).applyQuaternion(e).add(t);
65
- s.position.copy(c), s.applyQuaternion(e);
64
+ const a = new c.Vector3().subVectors(s.position, t).applyQuaternion(e).add(t);
65
+ s.position.copy(a), s.applyQuaternion(e);
66
66
  }
67
67
  if (this.plane) {
68
- const c = new o.Vector3().subVectors(this.plane.position, t).applyQuaternion(e).add(t);
69
- this.plane.position.copy(c), this.plane.applyQuaternion(e);
68
+ const a = new c.Vector3().subVectors(this.plane.position, t).applyQuaternion(e).add(t);
69
+ this.plane.position.copy(a), this.plane.applyQuaternion(e);
70
70
  }
71
- this.cornerPositions.forEach((c) => {
72
- const r = new o.Vector3().subVectors(c, t).applyQuaternion(e).add(t);
73
- c.copy(r);
71
+ this.cornerPositions.forEach((a) => {
72
+ const r = new c.Vector3().subVectors(a, t).applyQuaternion(e).add(t);
73
+ a.copy(r);
74
74
  });
75
75
  }
76
76
  enable() {
@@ -93,7 +93,7 @@ class C extends y {
93
93
  this.disable(), this.css3DRenderer.dispose();
94
94
  }
95
95
  initRectangleScaleHelper() {
96
- var h;
96
+ var p;
97
97
  const e = this.getCornerPositions();
98
98
  if (!e)
99
99
  return;
@@ -102,24 +102,24 @@ class C extends y {
102
102
  if (!t)
103
103
  return;
104
104
  this.css3DInstance = t, t.appendToElement(this.container);
105
- const s = t.css3DObject.container, { container: i, squares: c } = j();
106
- this.points = c.map((d, D) => ({
107
- direction: d.direction,
108
- point: d.element,
105
+ const s = t.css3DObject.container, { container: l, squares: a } = j();
106
+ this.points = a.map((h, D) => ({
107
+ direction: h.direction,
108
+ point: h.element,
109
109
  position: this.calculatePointPosition(e)[D]
110
- })), s.insertBefore(i, (h = s.children[0]) != null ? h : null);
111
- const r = new o.PlaneGeometry(t.css3DObject.width, t.css3DObject.height), u = new o.MeshBasicMaterial({
110
+ })), s.insertBefore(l, (p = s.children[0]) != null ? p : null);
111
+ const r = new c.PlaneGeometry(t.css3DObject.width, t.css3DObject.height), d = new c.MeshBasicMaterial({
112
112
  color: 0,
113
113
  opacity: 0.15,
114
114
  transparent: !0,
115
- side: o.DoubleSide
116
- }), p = new o.Mesh(r, u);
117
- this.scene.add(p), this.plane = p, this.updatePosition();
115
+ side: c.DoubleSide
116
+ }), u = new c.Mesh(r, d);
117
+ this.scene.add(u), this.updatePosition();
118
118
  }
119
119
  getCornerPositions() {
120
120
  const { originObject3D: e } = this;
121
121
  if (e instanceof S) {
122
- if (e instanceof O)
122
+ if (e.isCSS3DObjectPlus)
123
123
  return e.cornerPoints;
124
124
  console.error("\u6682\u65F6\u53EA\u652F\u6301 CSS3DRenderPlugin \u751F\u6210\u7684\u7269\u4F53");
125
125
  } else
@@ -139,5 +139,5 @@ class C extends y {
139
139
  }
140
140
  }
141
141
  export {
142
- C as RectangleScaleHelper
142
+ x as RectangleScaleHelper
143
143
  };
@@ -81,9 +81,9 @@ class h extends r.Mesh {
81
81
  this.material = new r.MeshBasicMaterial({
82
82
  opacity: 0.6,
83
83
  color: (i = e.color) != null ? i : 16777215,
84
- depthTest: !1,
85
84
  transparent: !0,
86
- side: r.DoubleSide
85
+ side: r.DoubleSide,
86
+ depthTest: !1
87
87
  }), this.direction = e.direction, this.geometry.name = `RotateHelperCircleGeometry-${this.direction}`, this.direction === "y" ? this.rotateX(Math.PI / 2) : this.direction === "x" && this.rotateY(-Math.PI / 2);
88
88
  }
89
89
  }
@@ -1,15 +1,15 @@
1
- var f = Object.defineProperty;
2
- var b = (d, e, s) => e in d ? f(d, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[e] = s;
3
- var n = (d, e, s) => (b(d, typeof e != "symbol" ? e + "" : e, s), s);
4
- import { Subscribe as v } from "../Subscribe.js";
5
- const u = "v1.0.1", C = "Object3DHelper", p = `${C}@${u}`, c = 0.4, S = () => {
1
+ var c = Object.defineProperty;
2
+ var f = (d, e, s) => e in d ? c(d, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[e] = s;
3
+ var n = (d, e, s) => (f(d, typeof e != "symbol" ? e + "" : e, s), s);
4
+ import { Subscribe as b } from "../Subscribe.js";
5
+ const v = "v1.0.1", u = "Object3DHelper", p = `${u}@${v}`, S = () => {
6
6
  console.error(`${p} is disposed`);
7
7
  }, k = () => {
8
8
  console.warn(`${p} is disabled`);
9
- }, E = () => {
9
+ }, C = () => {
10
10
  console.error(`${p} is disabled`);
11
11
  };
12
- class O {
12
+ class m {
13
13
  constructor(e, s) {
14
14
  n(this, "controllers", {});
15
15
  n(this, "state", {
@@ -17,7 +17,7 @@ class O {
17
17
  enabled: !0,
18
18
  disposed: !1
19
19
  });
20
- n(this, "hooks", new v());
20
+ n(this, "hooks", new b());
21
21
  n(this, "helpers");
22
22
  n(this, "eventListener", {});
23
23
  n(this, "handlePositionUpdate", (e, ...s) => {
@@ -59,7 +59,7 @@ class O {
59
59
  if (this.state.disposed)
60
60
  return S();
61
61
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
62
- return E();
62
+ return C();
63
63
  const t = { ...this.state };
64
64
  this.state = { ...this.state, ...e }, e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
65
65
  }
@@ -100,14 +100,14 @@ class O {
100
100
  }
101
101
  handleEnable(e, s = !0) {
102
102
  e ? (this.everyControllerDo((t) => {
103
- t.enable(), t.setOpacity(c);
103
+ t.enable();
104
104
  }), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
105
105
  t.disable(), t.restoreOpacity();
106
106
  }), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
107
107
  }
108
108
  handleVisible(e, s = !0) {
109
109
  e ? (this.everyControllerDo((t) => {
110
- t.show(), t.setOpacity(c);
110
+ t.show();
111
111
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
112
112
  t.hide(), t.restoreOpacity();
113
113
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
@@ -136,5 +136,5 @@ class O {
136
136
  }
137
137
  }
138
138
  export {
139
- O as Object3DHelper
139
+ m as Object3DHelper
140
140
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "main": "dist/index.js",
3
+ "main": "dist/index.es.js",
4
4
  "types": "libs/index.d.ts",
5
5
  "author": "REALSEE-DEVELOPER",
6
6
  "repository": "https://github.com/realsee-developer/dnalogel.git",
7
7
  "description": "如视 VR 看房插件合集",
8
8
  "private": false,
9
- "version": "2.1.0-alpha.26",
9
+ "version": "2.1.0-alpha.28",
10
10
  "license": "SEE LICENSE IN TERMS.txt",
11
11
  "scripts": {
12
12
  "build": "sh bin/build-production.sh",