@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.
- package/dist/index.cjs.js +556 -0
- package/dist/index.es.js +21392 -0
- package/dist/index.js +5104 -4997
- package/dist/index.umd.js +556 -0
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PaintBrushTypeEnum.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +1 -1
- package/docs/interfaces/PaintBrushState.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +15 -4
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -143
- package/libs/CSS3DRenderPlugin/Controller.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/Controller.js +47 -26
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +22 -4
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +56 -37
- package/libs/Object3DHelperPlugin/Controller.js +24 -23
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +81 -81
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +69 -68
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +63 -53
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +12 -13
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +43 -45
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +16 -10
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +43 -43
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -2
- package/libs/shared-utils/Object3DHelper/index.js +12 -12
- package/package.json +2 -2
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
|
-
var g = (r,
|
|
3
|
-
var i = (r,
|
|
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
|
|
7
|
-
constructor(
|
|
6
|
+
class G extends f {
|
|
7
|
+
constructor(e) {
|
|
8
8
|
var c;
|
|
9
|
-
super(
|
|
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 =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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 = (
|
|
3
|
-
var
|
|
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
|
|
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
|
|
17
|
-
constructor(e, t, s,
|
|
16
|
+
class x extends y {
|
|
17
|
+
constructor(e, t, s, l) {
|
|
18
18
|
super(e);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this.camera = s, this.scene =
|
|
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
|
|
38
|
-
|
|
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
|
|
46
|
-
(
|
|
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
|
|
52
|
-
(s = this.
|
|
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
|
|
62
|
-
const s = (
|
|
61
|
+
var l;
|
|
62
|
+
const s = (l = this.css3DInstance) == null ? void 0 : l.css3DObject;
|
|
63
63
|
if (s) {
|
|
64
|
-
const
|
|
65
|
-
s.position.copy(
|
|
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
|
|
69
|
-
this.plane.position.copy(
|
|
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((
|
|
72
|
-
const r = new
|
|
73
|
-
|
|
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
|
|
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:
|
|
106
|
-
this.points =
|
|
107
|
-
direction:
|
|
108
|
-
point:
|
|
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(
|
|
111
|
-
const r = new
|
|
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:
|
|
116
|
-
}),
|
|
117
|
-
this.scene.add(
|
|
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
|
|
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
|
-
|
|
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
|
|
2
|
-
var
|
|
3
|
-
var n = (d, e, s) => (
|
|
4
|
-
import { Subscribe as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
9
|
+
}, C = () => {
|
|
10
10
|
console.error(`${p} is disabled`);
|
|
11
11
|
};
|
|
12
|
-
class
|
|
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
|
|
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
|
|
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()
|
|
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()
|
|
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
|
-
|
|
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.
|
|
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",
|