@realsee/dnalogel 3.49.4 → 3.49.6
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 +7 -1
- package/dist/Sculpt/Objects/Base/index.d.ts +4 -0
- package/dist/Sculpt/index.d.ts +3 -1
- package/dist/Sculpt/typings/index.d.ts +10 -11
- package/dist/Sculpt/utils/Modules/Cursor.d.ts +8 -0
- package/dist/index.cjs.js +153 -153
- package/dist/index.js +3258 -3232
- package/dist/index.umd.js +161 -161
- package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +6 -5
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/Sculpt/Objects/Base/index.d.ts +4 -0
- package/libs/Sculpt/Objects/Base/index.js +28 -20
- package/libs/Sculpt/index.d.ts +3 -1
- package/libs/Sculpt/index.js +74 -74
- package/libs/Sculpt/typings/index.d.ts +10 -11
- package/libs/Sculpt/utils/Modules/Cursor.d.ts +8 -0
- package/libs/Sculpt/utils/Modules/Cursor.js +24 -13
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -0
- package/libs/shared-utils/five/FiveDomEvents.js +73 -65
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ export declare class FiveDomEvents {
|
|
|
93
93
|
private config;
|
|
94
94
|
private get model();
|
|
95
95
|
private lastMouseDownEvent;
|
|
96
|
+
private lastTouchEvent;
|
|
96
97
|
constructor(five: Five, config?: EventHandlerConfig);
|
|
97
98
|
/**
|
|
98
99
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
@@ -119,6 +120,7 @@ export declare class FiveDomEvents {
|
|
|
119
120
|
private handleDomEvent;
|
|
120
121
|
private handleMouseEvent;
|
|
121
122
|
private handleMousedown;
|
|
123
|
+
private handleTouchStart;
|
|
122
124
|
private handleMouseup;
|
|
123
125
|
private handleMousemove;
|
|
124
126
|
private onDomEvent;
|
|
@@ -204,6 +204,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
204
204
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
205
205
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
206
206
|
import "../shared-utils/three/core/Raycaster.js";
|
|
207
|
+
import "../shared-utils/isTouchDevice.js";
|
|
207
208
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
208
209
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
209
210
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -224,7 +225,7 @@ import "./utils/coordinatesToVector.js";
|
|
|
224
225
|
import "./utils/safeCall.js";
|
|
225
226
|
import "./utils/sleep.js";
|
|
226
227
|
import "../shared-utils/five/fiveLoaded.js";
|
|
227
|
-
class
|
|
228
|
+
class So extends z {
|
|
228
229
|
constructor(t, r) {
|
|
229
230
|
var h;
|
|
230
231
|
super(t, r);
|
|
@@ -332,5 +333,5 @@ class yo extends z {
|
|
|
332
333
|
}
|
|
333
334
|
}
|
|
334
335
|
export {
|
|
335
|
-
|
|
336
|
+
So as default
|
|
336
337
|
};
|
|
@@ -206,6 +206,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
206
206
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
207
207
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
208
208
|
import "../shared-utils/three/core/Raycaster.js";
|
|
209
|
+
import "../shared-utils/isTouchDevice.js";
|
|
209
210
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
210
211
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
211
212
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -224,7 +225,7 @@ import "./utils/getFiveStateOnCurve.js";
|
|
|
224
225
|
import "../shared-utils/formatRad.js";
|
|
225
226
|
import "./Work.js";
|
|
226
227
|
import "./utils/coordinatesToVector.js";
|
|
227
|
-
class
|
|
228
|
+
class Ir extends G {
|
|
228
229
|
constructor(t, e) {
|
|
229
230
|
super(t, e);
|
|
230
231
|
k(this, "state", {
|
|
@@ -612,5 +613,5 @@ class Sr extends G {
|
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
615
|
export {
|
|
615
|
-
|
|
616
|
+
Ir as default
|
|
616
617
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as Rt } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -176,6 +176,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
176
176
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
177
177
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
178
178
|
import "../shared-utils/three/core/Raycaster.js";
|
|
179
|
+
import "../shared-utils/isTouchDevice.js";
|
|
179
180
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
180
181
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
181
182
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -196,13 +197,13 @@ import "./utils/sleep.js";
|
|
|
196
197
|
import "../shared-utils/five/fiveLoaded.js";
|
|
197
198
|
import "./BaseController.js";
|
|
198
199
|
import "./utils/getFiveStateOnCurve.js";
|
|
199
|
-
const
|
|
200
|
+
const Lt = (o, r) => new t(o, r), Nt = (o, r) => new i(o, r);
|
|
200
201
|
export {
|
|
201
|
-
|
|
202
|
+
Lt as CruisePlugin,
|
|
202
203
|
t as CruisePluginController,
|
|
203
|
-
|
|
204
|
+
Rt as CruisePluginTypes,
|
|
204
205
|
i as MoveController,
|
|
205
|
-
|
|
206
|
+
Nt as MovePlugin,
|
|
206
207
|
t as WalkController,
|
|
207
|
-
|
|
208
|
+
Lt as default
|
|
208
209
|
};
|
|
@@ -200,6 +200,7 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
200
200
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
201
201
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
202
202
|
import "../shared-utils/three/core/Raycaster.js";
|
|
203
|
+
import "../shared-utils/isTouchDevice.js";
|
|
203
204
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
204
205
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
205
206
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -223,8 +224,8 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
223
224
|
import "../CruisePlugin/utils/safeCall.js";
|
|
224
225
|
import "../CruisePlugin/utils/sleep.js";
|
|
225
226
|
import "../shared-utils/five/fiveLoaded.js";
|
|
226
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
227
|
-
class
|
|
227
|
+
const b = "GuideLinePlugin", g = `${b}`, De = (s) => `${g}--${s}`;
|
|
228
|
+
class ye extends N {
|
|
228
229
|
constructor(t, i) {
|
|
229
230
|
super(t, i);
|
|
230
231
|
h(this, "name", b);
|
|
@@ -366,6 +367,6 @@ class De extends N {
|
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
369
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
370
|
+
ye as default,
|
|
371
|
+
De as pluginFlag
|
|
371
372
|
};
|
|
@@ -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
|
|
8
|
+
import { GuideLineItem as Mo } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -171,6 +171,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
171
171
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
172
172
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
173
173
|
import "../shared-utils/three/core/Raycaster.js";
|
|
174
|
+
import "../shared-utils/isTouchDevice.js";
|
|
174
175
|
import "../base/BasePlugin.js";
|
|
175
176
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
176
177
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
@@ -196,5 +197,5 @@ import "../CruisePlugin/utils/safeCall.js";
|
|
|
196
197
|
import "../CruisePlugin/utils/sleep.js";
|
|
197
198
|
import "../shared-utils/five/fiveLoaded.js";
|
|
198
199
|
export {
|
|
199
|
-
|
|
200
|
+
Mo as GuideLineItem
|
|
200
201
|
};
|
|
@@ -16,7 +16,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
16
16
|
import "./Components/Tag.js";
|
|
17
17
|
import "./utils/index.js";
|
|
18
18
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
19
|
-
import { GuideLineModeItem as
|
|
19
|
+
import { GuideLineModeItem as hm } from "./GuideLineModeItem/index.js";
|
|
20
20
|
import "../vendor/polyline-normals/index.js";
|
|
21
21
|
import "../vendor/polyline-miter-util/index.js";
|
|
22
22
|
import "../vendor/gl-vec2/add.js";
|
|
@@ -168,6 +168,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
168
168
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
169
169
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
170
170
|
import "../shared-utils/three/core/Raycaster.js";
|
|
171
|
+
import "../shared-utils/isTouchDevice.js";
|
|
171
172
|
import "../base/BasePlugin.js";
|
|
172
173
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
173
174
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
@@ -178,5 +179,5 @@ import "../PanoTagPlugin/Components/TagContainer.js";
|
|
|
178
179
|
import "../PanoTagPlugin/Components/TagItem.js";
|
|
179
180
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
hm as GuideLineModeItem
|
|
182
183
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as Ot } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as Rt } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -180,6 +180,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
180
180
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
181
181
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
182
182
|
import "../shared-utils/three/core/Raycaster.js";
|
|
183
|
+
import "../shared-utils/isTouchDevice.js";
|
|
183
184
|
import "../PanoTagPlugin/utils/DebugUtil.js";
|
|
184
185
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
185
186
|
import "../PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -195,10 +196,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
195
196
|
import "../shared-utils/nearlyEqual.js";
|
|
196
197
|
import "../CruisePlugin/Move.js";
|
|
197
198
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
198
|
-
const r = (i, o) => new t(i, o),
|
|
199
|
+
const r = (i, o) => new t(i, o), Jt = r;
|
|
199
200
|
export {
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
Ot as GuideLineItem,
|
|
202
|
+
Rt as GuideLineModeItem,
|
|
202
203
|
r as GuideLinePlugin,
|
|
203
|
-
|
|
204
|
+
Jt as default
|
|
204
205
|
};
|
|
@@ -90,7 +90,8 @@ import "../shared-utils/three/addIfNotExists.js";
|
|
|
90
90
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
91
91
|
import "../shared-utils/three/getObjectVisible.js";
|
|
92
92
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
93
|
-
|
|
93
|
+
import "../shared-utils/isTouchDevice.js";
|
|
94
|
+
class nt extends z {
|
|
94
95
|
constructor(e, t) {
|
|
95
96
|
var r, p;
|
|
96
97
|
super(e);
|
|
@@ -251,5 +252,5 @@ class rt extends z {
|
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
export {
|
|
254
|
-
|
|
255
|
+
nt as Controller
|
|
255
256
|
};
|
|
@@ -32,6 +32,7 @@ import "../shared-utils/five/FiveDomEvents.js";
|
|
|
32
32
|
import "../shared-utils/three/getObjectVisible.js";
|
|
33
33
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
34
34
|
import "../shared-utils/three/core/Raycaster.js";
|
|
35
|
+
import "../shared-utils/isTouchDevice.js";
|
|
35
36
|
import "../Sculpt/Meshes/Prism.js";
|
|
36
37
|
import "../shared-utils/three/IObject3D.js";
|
|
37
38
|
import "../Sculpt/Meshes/Line.js";
|
|
@@ -63,7 +64,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
63
64
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
64
65
|
import "./item/prismItem.js";
|
|
65
66
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
66
|
-
const
|
|
67
|
+
const ko = (...o) => new r(...o);
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
ko as ModelMakerPlugin
|
|
69
70
|
};
|
|
@@ -3,8 +3,8 @@ var n = (o, e, t) => e in o ? m(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (o, e, t) => (n(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import * as d from "three";
|
|
5
5
|
import { addIfNotExists as l } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import { tag as
|
|
6
|
+
import { Subscribe as p } from "../../shared-utils/Subscribe.js";
|
|
7
|
+
import { tag as a } from "../../shared-utils/tag.js";
|
|
8
8
|
import { boundingBox as v } from "../../shared-utils/three/boundingBox.js";
|
|
9
9
|
import { getFiveDomEvent as c } from "../utils/getFiveDomEvent.js";
|
|
10
10
|
import "../../shared-utils/positionToVector3.js";
|
|
@@ -20,7 +20,8 @@ import "../../shared-utils/five/FiveDomEvents.js";
|
|
|
20
20
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
21
21
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
22
22
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
23
|
-
|
|
23
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
24
|
+
class N extends p {
|
|
24
25
|
constructor(t) {
|
|
25
26
|
var s, r;
|
|
26
27
|
super();
|
|
@@ -33,7 +34,7 @@ class H extends a {
|
|
|
33
34
|
i(this, "fiveDomEvents");
|
|
34
35
|
this.five = t.five, this.model = t.model, this.group = t.group, this.type = t.type, this.rawData = t.rawData, this.fiveDomEvents = c(this.five);
|
|
35
36
|
const h = (r = (s = t.position) != null ? s : this.model.center) != null ? r : v(this.model).getCenter(new d.Vector3());
|
|
36
|
-
this.tag =
|
|
37
|
+
this.tag = a(this.five, h, { wrapper: t.tagWrapper });
|
|
37
38
|
}
|
|
38
39
|
get container() {
|
|
39
40
|
return this.tag.container;
|
|
@@ -63,5 +64,5 @@ class H extends a {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
N as ModelMakerBaseItem
|
|
67
68
|
};
|
|
@@ -19,11 +19,12 @@ import "../../shared-utils/five/FiveDomEvents.js";
|
|
|
19
19
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
20
20
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
21
21
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
22
|
-
|
|
22
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
23
|
+
class j extends r {
|
|
23
24
|
constructor(...o) {
|
|
24
25
|
super(...o);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
j as ModelMakerBoxItem
|
|
29
30
|
};
|
|
@@ -21,7 +21,8 @@ import "../../shared-utils/five/FiveDomEvents.js";
|
|
|
21
21
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
22
22
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
23
23
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
24
|
-
|
|
24
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
25
|
+
class P extends h {
|
|
25
26
|
constructor(...i) {
|
|
26
27
|
super(...i);
|
|
27
28
|
o(this, "hideTag", () => {
|
|
@@ -43,5 +44,5 @@ class B extends h {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
P as ModelMakerPolygonItem
|
|
47
48
|
};
|
|
@@ -30,12 +30,13 @@ import "../../shared-utils/five/FiveDomEvents.js";
|
|
|
30
30
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
31
31
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
32
32
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
33
|
-
|
|
33
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
34
|
+
class G extends f {
|
|
34
35
|
constructor(...o) {
|
|
35
36
|
const r = o[0], m = M(r.model), a = new u.Vector3().lerpVectors(n(m, 0), n(m, 5), 0.5);
|
|
36
37
|
super(s(e({}, r), { position: a })), this.enable();
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
G as ModelMakerPrismItem
|
|
41
42
|
};
|
|
@@ -4,11 +4,12 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
4
4
|
import "three";
|
|
5
5
|
import "../../shared-utils/five/getFiveModel.js";
|
|
6
6
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
7
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
7
8
|
let t;
|
|
8
|
-
const
|
|
9
|
+
const E = (e) => ((!t || e !== t.five) && (t = {
|
|
9
10
|
instance: new n(e, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }),
|
|
10
11
|
five: e
|
|
11
12
|
}), t.instance);
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
E as getFiveDomEvent
|
|
14
15
|
};
|
|
@@ -176,8 +176,9 @@ import "../../shared-utils/five/fiveModelLoad.js";
|
|
|
176
176
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
177
177
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
178
178
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
179
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
179
180
|
import "../../base/BasePlugin.js";
|
|
180
|
-
class
|
|
181
|
+
class xe extends U {
|
|
181
182
|
constructor(t) {
|
|
182
183
|
super(t);
|
|
183
184
|
d(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -328,5 +329,5 @@ class ke extends U {
|
|
|
328
329
|
}
|
|
329
330
|
}
|
|
330
331
|
export {
|
|
331
|
-
|
|
332
|
+
xe as TagRender
|
|
332
333
|
};
|
|
@@ -60,7 +60,8 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
|
60
60
|
import "../../shared-utils/three/getNormal.js";
|
|
61
61
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
62
62
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
63
|
-
|
|
63
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
64
|
+
class Qe extends E {
|
|
64
65
|
constructor(e) {
|
|
65
66
|
super(e);
|
|
66
67
|
r(this, "tags", []);
|
|
@@ -190,5 +191,5 @@ class Ie extends E {
|
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
193
|
export {
|
|
193
|
-
|
|
194
|
+
Qe as TagUtil
|
|
194
195
|
};
|
|
@@ -187,13 +187,14 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
187
187
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
188
188
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
189
189
|
import "../../shared-utils/three/core/Raycaster.js";
|
|
190
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
190
191
|
import "../../base/BasePlugin.js";
|
|
191
192
|
import "../utils/addDebugPoints.js";
|
|
192
193
|
import "../utils/requestIdleCallback.js";
|
|
193
194
|
import "../Components/TagItem.js";
|
|
194
195
|
import "../Components/Common/TagPoint.js";
|
|
195
|
-
const S = "Dnalogel-PanoTagPlugin",
|
|
196
|
-
class
|
|
196
|
+
const S = "Dnalogel-PanoTagPlugin", Zi = (d) => `${S}--${d}`;
|
|
197
|
+
class Yi extends O {
|
|
197
198
|
constructor(e, t) {
|
|
198
199
|
super(e);
|
|
199
200
|
/** state */
|
|
@@ -603,7 +604,7 @@ class Zi extends O {
|
|
|
603
604
|
}
|
|
604
605
|
}
|
|
605
606
|
export {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
Yi as PanoTagPluginController,
|
|
608
|
+
Yi as default,
|
|
609
|
+
Zi as pluginFlag
|
|
609
610
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
2
|
+
import { pluginFlag as gr } from "./controller/index.js";
|
|
3
|
+
import { defaultGlobalConfig as Pr } from "./typings/tag/TagConfig.js";
|
|
4
|
+
import { ContentType as xr, DimensionType as sr, PointType as yr } from "./Archive/deprecated.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
7
|
import "../shared-utils/positionToVector3.js";
|
|
@@ -155,6 +155,7 @@ import "../shared-utils/five/fiveModelLoad.js";
|
|
|
155
155
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
156
156
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
157
157
|
import "../shared-utils/three/core/Raycaster.js";
|
|
158
|
+
import "../shared-utils/isTouchDevice.js";
|
|
158
159
|
import "../base/BasePlugin.js";
|
|
159
160
|
import "../shared-utils/animationFrame/index.js";
|
|
160
161
|
import "./utils/DebugUtil.js";
|
|
@@ -166,14 +167,14 @@ import "./Components/TagContainer.js";
|
|
|
166
167
|
import "./Components/TagItem.js";
|
|
167
168
|
import "./Components/Common/TagPoint.js";
|
|
168
169
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
169
|
-
const
|
|
170
|
+
const lr = (o, t) => new r(o, t);
|
|
170
171
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
xr as ContentType,
|
|
173
|
+
sr as DimensionType,
|
|
174
|
+
lr as PanoTagPlugin,
|
|
174
175
|
r as PanoTagPluginController,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
yr as PointType,
|
|
177
|
+
lr as default,
|
|
178
|
+
Pr as defaultGlobalConfig,
|
|
179
|
+
gr as pluginFlag
|
|
179
180
|
};
|
|
@@ -96,6 +96,10 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
|
96
96
|
* @description 取消高亮当前物体
|
|
97
97
|
*/
|
|
98
98
|
unhighlight(): void;
|
|
99
|
+
/**
|
|
100
|
+
* @description 显示删除按钮
|
|
101
|
+
*/
|
|
102
|
+
showDeleteButton(clientX: number, clientY: number): void;
|
|
99
103
|
protected applyObjectMatrixWorld<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
100
104
|
protected applyObjectQuaternion<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
101
105
|
abstract create(...args: any): Promise<void>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var l = (o, t, e) => t in o ?
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var d = Object.getOwnPropertySymbols;
|
|
3
|
+
var a = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (o, t, e) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, u = (o, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
a.call(t, e) && l(o, e, t[e]);
|
|
7
|
+
if (d)
|
|
8
|
+
for (var e of d(t))
|
|
9
|
+
f.call(t, e) && l(o, e, t[e]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
12
|
var r = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
13
|
import { hotkeys as c } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
14
14
|
import { Sculpt as n } from "../../index.js";
|
|
15
|
-
import { IObject3D as
|
|
16
|
-
import { applyObjectMatrixWorld as
|
|
17
|
-
import { removeAllTag as
|
|
18
|
-
const
|
|
19
|
-
class
|
|
15
|
+
import { IObject3D as g } from "../../../shared-utils/three/IObject3D.js";
|
|
16
|
+
import { applyObjectMatrixWorld as b } from "../../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
17
|
+
import { removeAllTag as y } from "../../utils/removeAllTag.js";
|
|
18
|
+
const p = /* @__PURE__ */ new Map();
|
|
19
|
+
class S extends g {
|
|
20
20
|
constructor(e, s) {
|
|
21
21
|
super();
|
|
22
22
|
r(this, "name", "Sculpt");
|
|
@@ -33,18 +33,18 @@ class x extends b {
|
|
|
33
33
|
r(this, "editor");
|
|
34
34
|
r(this, "on", (e, s, i) => n.modules.fiveDomEvents.addEventListener(this, e, s, i));
|
|
35
35
|
r(this, "off", (...e) => n.modules.fiveDomEvents.removeEventListener(this, ...e));
|
|
36
|
-
e != null && e.id && (this.uuid = e.id), this.config =
|
|
37
|
-
|
|
36
|
+
e != null && e.id && (this.uuid = e.id), this.config = u({ canEdit: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, s), e != null && e.style && (e.style.occlusionVisibility = this.config.occlusionVisibility, e.style.occlusionMode = this.config.occlusionMode), this.addEventListener("removed", () => {
|
|
37
|
+
y(this);
|
|
38
38
|
}), c("esc", () => {
|
|
39
39
|
this.stopCreating();
|
|
40
40
|
}), this.config.canEdit && (c("backspace, delete", () => {
|
|
41
41
|
this.selected && this.delete();
|
|
42
42
|
}), this.on("click", () => {
|
|
43
|
-
var h
|
|
43
|
+
var h;
|
|
44
44
|
if (this.pointSelector.enabled)
|
|
45
45
|
return;
|
|
46
|
-
let i =
|
|
47
|
-
i && (i.selected = !1, i.unhighlight(), (h = i.editor) == null || h.disable()),
|
|
46
|
+
let i = p.get(this.parent.uuid);
|
|
47
|
+
i && (i.selected = !1, i.unhighlight(), (h = i.editor) == null || h.disable()), p.set(this.parent.uuid, this), this.selected = !0, this.highlight();
|
|
48
48
|
}), c("esc", () => {
|
|
49
49
|
var i;
|
|
50
50
|
this.selected = !1, this.unhighlight(), !this.pointSelector.enabled && ((i = this.editor) == null || i.disable());
|
|
@@ -106,8 +106,16 @@ class x extends b {
|
|
|
106
106
|
*/
|
|
107
107
|
unhighlight() {
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @description 显示删除按钮
|
|
111
|
+
*/
|
|
112
|
+
showDeleteButton(e, s) {
|
|
113
|
+
n.modules.cursor.showDeleteButton({ clientX: e, clientY: s, container: document.body, onClick: () => this.delete() }), n.modules.five.once("cameraUpdate", () => {
|
|
114
|
+
n.modules.cursor.removeDeleteButton();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
109
117
|
applyObjectMatrixWorld(e) {
|
|
110
|
-
return this.updateMatrixWorld(),
|
|
118
|
+
return this.updateMatrixWorld(), b(this, e);
|
|
111
119
|
}
|
|
112
120
|
applyObjectQuaternion(e) {
|
|
113
121
|
const s = this.quaternion.clone();
|
|
@@ -115,5 +123,5 @@ class x extends b {
|
|
|
115
123
|
}
|
|
116
124
|
}
|
|
117
125
|
export {
|
|
118
|
-
|
|
126
|
+
S as BaseObject
|
|
119
127
|
};
|
package/libs/Sculpt/index.d.ts
CHANGED
|
@@ -20,10 +20,11 @@ interface Data {
|
|
|
20
20
|
type Event = {
|
|
21
21
|
/**
|
|
22
22
|
* @description: 点击事件
|
|
23
|
+
* @param {MouseEvent} e 鼠标事件
|
|
23
24
|
* @param {BuiltInItem} item 点击的物体
|
|
24
25
|
* 返回 false 来禁用 Five 默认行为
|
|
25
26
|
*/
|
|
26
|
-
click: (item: BuiltInItem) => void | false;
|
|
27
|
+
click: (e: MouseEvent, item: BuiltInItem) => void | false;
|
|
27
28
|
};
|
|
28
29
|
export declare class Sculpt extends Subscribe<Event> {
|
|
29
30
|
static modules: {
|
|
@@ -69,6 +70,7 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
69
70
|
} | {
|
|
70
71
|
readonly points: [number, number, number][]; /**
|
|
71
72
|
* @description: 点击事件
|
|
73
|
+
* @param {MouseEvent} e 鼠标事件
|
|
72
74
|
* @param {BuiltInItem} item 点击的物体
|
|
73
75
|
* 返回 false 来禁用 Five 默认行为
|
|
74
76
|
*/
|