@realsee/dnalogel 3.48.0 → 3.48.2
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 +6 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +16 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +12 -1
- package/dist/Sculpt/Objects/Polygon/index.d.ts +12 -1
- package/dist/Sculpt/Objects/Polyline/index.d.ts +12 -1
- package/dist/Sculpt/index.d.ts +10 -3
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +5011 -4885
- package/dist/index.umd.js +50 -50
- package/dist/shared-utils/promise/withResolvers.d.ts +10 -0
- package/dist/shared-utils/three/Magnifier.d.ts +1 -1
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
- package/libs/Sculpt/Meshes/Line.js +15 -15
- package/libs/Sculpt/Meshes/Polygon.js +20 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +16 -0
- package/libs/Sculpt/Objects/Base/index.js +58 -32
- package/libs/Sculpt/Objects/Box/index.js +31 -34
- package/libs/Sculpt/Objects/Circle/index.js +36 -39
- package/libs/Sculpt/Objects/Line/index.d.ts +12 -1
- package/libs/Sculpt/Objects/Line/index.js +104 -75
- package/libs/Sculpt/Objects/Point/index.js +13 -16
- package/libs/Sculpt/Objects/Polygon/index.d.ts +12 -1
- package/libs/Sculpt/Objects/Polygon/index.js +112 -84
- package/libs/Sculpt/Objects/Polyline/index.d.ts +12 -1
- package/libs/Sculpt/Objects/Polyline/index.js +97 -68
- package/libs/Sculpt/Objects/Prism/index.js +20 -23
- package/libs/Sculpt/Objects/Rectangle/index.js +36 -39
- package/libs/Sculpt/index.d.ts +10 -3
- package/libs/Sculpt/index.js +80 -65
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +127 -126
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/promise/withResolvers.d.ts +10 -0
- package/libs/shared-utils/promise/withResolvers.js +13 -0
- package/libs/shared-utils/tag.js +9 -9
- package/libs/shared-utils/three/Magnifier.d.ts +1 -1
- package/libs/shared-utils/three/Magnifier.js +12 -12
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +4 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +9 -9
- package/package.json +1 -1
package/libs/Sculpt/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var U = Object.defineProperty, _ = Object.defineProperties;
|
|
2
|
+
var x = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (m, i, e) => i in m ? U(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e, r = (m, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
E.call(i, e) && f(m, e, i[e]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var e of g(i))
|
|
10
|
+
L.call(i, e) && f(m, e, i[e]);
|
|
11
11
|
return m;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var c = (m, i, e) => new Promise((t,
|
|
12
|
+
}, I = (m, i) => _(m, x(i));
|
|
13
|
+
var h = (m, i, e) => (f(m, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
+
var c = (m, i, e) => new Promise((t, n) => {
|
|
15
15
|
var l = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(e.next(u));
|
|
18
18
|
} catch (y) {
|
|
19
|
-
|
|
19
|
+
n(y);
|
|
20
20
|
}
|
|
21
21
|
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(e.throw(u));
|
|
24
24
|
} catch (y) {
|
|
25
|
-
|
|
25
|
+
n(y);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(l, s);
|
|
28
|
+
o((e = e.apply(m, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import { globalModules as
|
|
30
|
+
import { globalModules as O } from "./utils/Modules/Global.js";
|
|
31
31
|
import { Subscribe as S } from "../shared-utils/Subscribe.js";
|
|
32
|
-
import { IObject3D as
|
|
32
|
+
import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
|
|
33
33
|
import "three";
|
|
34
34
|
import "hammerjs";
|
|
35
35
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -37,30 +37,46 @@ import "@realsee/five/line";
|
|
|
37
37
|
import "../shared-utils/tag.js";
|
|
38
38
|
import "../shared-utils/three/THREESphere.js";
|
|
39
39
|
import "animejs";
|
|
40
|
-
import { notNil as
|
|
40
|
+
import { notNil as k } from "../shared-utils/isNil.js";
|
|
41
41
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
42
|
-
import { recurveFindObject as
|
|
43
|
-
import { Polyline as
|
|
42
|
+
import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
|
|
43
|
+
import { Polyline as w } from "./Objects/Polyline/index.js";
|
|
44
44
|
import { Point as P } from "./Objects/Point/index.js";
|
|
45
|
-
import { Polygon as
|
|
46
|
-
import { Prism as
|
|
47
|
-
import { Rectangle as
|
|
48
|
-
import { Circle as
|
|
45
|
+
import { Polygon as b } from "./Objects/Polygon/index.js";
|
|
46
|
+
import { Prism as v } from "./Objects/Prism/index.js";
|
|
47
|
+
import { Rectangle as C } from "./Objects/Rectangle/index.js";
|
|
48
|
+
import { Circle as R } from "./Objects/Circle/index.js";
|
|
49
49
|
import { Cylinder as D } from "./Objects/Cylinder/index.js";
|
|
50
50
|
import { Box as j } from "./Objects/Box/index.js";
|
|
51
|
-
import { forReverseEach as
|
|
51
|
+
import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
|
|
52
52
|
import { Line as B } from "./Objects/Line/index.js";
|
|
53
|
-
|
|
53
|
+
import { hotkeys as p } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
+
const a = class extends S {
|
|
54
55
|
constructor(e, t) {
|
|
55
56
|
super();
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
h(this, "group");
|
|
58
|
+
h(this, "five");
|
|
59
|
+
h(this, "theme");
|
|
60
|
+
h(this, "creatingItem", null);
|
|
61
|
+
/**
|
|
62
|
+
* @description: 撤销
|
|
63
|
+
*/
|
|
64
|
+
h(this, "undo", () => {
|
|
65
|
+
var e;
|
|
66
|
+
console.log("undo"), (e = this.creatingItem) == null || e.undo(), this.five.needsRender = !0;
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* @description: 重做
|
|
70
|
+
*/
|
|
71
|
+
h(this, "redo", () => {
|
|
72
|
+
var e;
|
|
73
|
+
console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
|
|
74
|
+
});
|
|
75
|
+
this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), a.modules.init(e), p.unbind("ctrl+z", this.undo), p.unbind("ctrl+shift+z", this.redo), p("ctrl+z", this.undo), p("ctrl+shift+z", this.redo), a.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: n }) => {
|
|
60
76
|
var s;
|
|
61
|
-
const l =
|
|
77
|
+
const l = H((s = n == null ? void 0 : n[0]) == null ? void 0 : s.object, (o) => o.isSculptObject);
|
|
62
78
|
return l ? this.emit("click", l) : !1;
|
|
63
|
-
}), window.__SCLUPT_DEBUG__ = this, window.__SCLUPT_MODULES_DEBUG__ =
|
|
79
|
+
}), window.__SCLUPT_DEBUG__ = this, window.__SCLUPT_MODULES_DEBUG__ = a.modules;
|
|
64
80
|
}
|
|
65
81
|
get data() {
|
|
66
82
|
return {
|
|
@@ -70,7 +86,7 @@ const p = class extends S {
|
|
|
70
86
|
} catch (t) {
|
|
71
87
|
return console.error(t), null;
|
|
72
88
|
}
|
|
73
|
-
}).filter(
|
|
89
|
+
}).filter(k)
|
|
74
90
|
};
|
|
75
91
|
}
|
|
76
92
|
get items() {
|
|
@@ -82,14 +98,14 @@ const p = class extends S {
|
|
|
82
98
|
load(e, t) {
|
|
83
99
|
var l;
|
|
84
100
|
this.clear();
|
|
85
|
-
const
|
|
101
|
+
const n = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map((s) => {
|
|
86
102
|
var u;
|
|
87
|
-
const
|
|
103
|
+
const o = I(r({}, s), {
|
|
88
104
|
style: r(r({}, (u = this.theme) == null ? void 0 : u[s.type.toLowerCase()]), s.style)
|
|
89
105
|
});
|
|
90
|
-
return s.type === "Point" ? new P(
|
|
106
|
+
return s.type === "Point" ? new P(o, t) : s.type === "line" ? new B(o, t) : s.type === "Polyline" ? new w(o, t) : s.type === "Polygon" ? new b(o, t) : s.type === "Prism" ? new v(o, t) : s.type === "Rectangle" ? new C(o, t) : s.type === "Circle" ? new R(o, t) : s.type === "Cylinder" ? new D(o, t) : s.type === "Box" ? new j(o, t) : null;
|
|
91
107
|
});
|
|
92
|
-
this.group.add(...
|
|
108
|
+
this.group.add(...n), this.five.needsRender = !0;
|
|
93
109
|
}
|
|
94
110
|
/**
|
|
95
111
|
* @description: 获取物体实例
|
|
@@ -103,8 +119,8 @@ const p = class extends S {
|
|
|
103
119
|
putObject(e) {
|
|
104
120
|
var l;
|
|
105
121
|
this.group.add(e);
|
|
106
|
-
const t =
|
|
107
|
-
return (l =
|
|
122
|
+
const t = a.modules.object3DHelper, n = t.addObject3DHelper(e);
|
|
123
|
+
return (l = n == null ? void 0 : n.moveController) == null || l.moveByMouse(), t;
|
|
108
124
|
}
|
|
109
125
|
/**
|
|
110
126
|
* @description: 开始绘制点
|
|
@@ -130,7 +146,7 @@ const p = class extends S {
|
|
|
130
146
|
createPolyline(e) {
|
|
131
147
|
return c(this, null, function* () {
|
|
132
148
|
var t;
|
|
133
|
-
return this.createItem(
|
|
149
|
+
return this.createItem(w, r(r({}, (t = this.theme) == null ? void 0 : t.polyline), e));
|
|
134
150
|
});
|
|
135
151
|
}
|
|
136
152
|
/**
|
|
@@ -139,7 +155,7 @@ const p = class extends S {
|
|
|
139
155
|
createPolygon(e) {
|
|
140
156
|
return c(this, null, function* () {
|
|
141
157
|
var t;
|
|
142
|
-
return this.createItem(
|
|
158
|
+
return this.createItem(b, r(r({}, (t = this.theme) == null ? void 0 : t.polygon), e));
|
|
143
159
|
});
|
|
144
160
|
}
|
|
145
161
|
/**
|
|
@@ -148,7 +164,7 @@ const p = class extends S {
|
|
|
148
164
|
createPrism(e) {
|
|
149
165
|
return c(this, null, function* () {
|
|
150
166
|
var t;
|
|
151
|
-
return this.createItem(
|
|
167
|
+
return this.createItem(v, r(r({}, (t = this.theme) == null ? void 0 : t.prism), e));
|
|
152
168
|
});
|
|
153
169
|
}
|
|
154
170
|
/**
|
|
@@ -157,7 +173,7 @@ const p = class extends S {
|
|
|
157
173
|
createRectangle(e) {
|
|
158
174
|
return c(this, null, function* () {
|
|
159
175
|
var t;
|
|
160
|
-
return this.createItem(
|
|
176
|
+
return this.createItem(C, r(r({}, (t = this.theme) == null ? void 0 : t.rectangle), e));
|
|
161
177
|
});
|
|
162
178
|
}
|
|
163
179
|
/**
|
|
@@ -166,7 +182,7 @@ const p = class extends S {
|
|
|
166
182
|
createCircle(e) {
|
|
167
183
|
return c(this, null, function* () {
|
|
168
184
|
var t;
|
|
169
|
-
return this.createItem(
|
|
185
|
+
return this.createItem(R, r(r({}, (t = this.theme) == null ? void 0 : t.circle), e));
|
|
170
186
|
});
|
|
171
187
|
}
|
|
172
188
|
/**
|
|
@@ -187,35 +203,34 @@ const p = class extends S {
|
|
|
187
203
|
return this.createItem(j, r(r({}, (t = this.theme) == null ? void 0 : t.box), e));
|
|
188
204
|
});
|
|
189
205
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
undo() {
|
|
206
|
+
canUndo() {
|
|
207
|
+
var e;
|
|
208
|
+
return this.creatingItem ? (e = this.creatingItem) == null ? void 0 : e.canUndo() : !1;
|
|
194
209
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
redo() {
|
|
210
|
+
canRedo() {
|
|
211
|
+
var e;
|
|
212
|
+
return this.creatingItem ? (e = this.creatingItem) == null ? void 0 : e.canRedo() : !1;
|
|
199
213
|
}
|
|
200
214
|
/**
|
|
201
215
|
* @description: 清空数据
|
|
202
216
|
*/
|
|
203
217
|
clear() {
|
|
204
|
-
|
|
218
|
+
M(this.items, (e) => e.delete()), this.five.needsRender = !0;
|
|
205
219
|
}
|
|
206
220
|
createItem(e, ...t) {
|
|
207
221
|
return c(this, null, function* () {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
222
|
+
this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
|
|
223
|
+
const n = new e();
|
|
224
|
+
return this.creatingItem = n, this.group.add(n), yield n.create(...t).then((...l) => (this.creatingItem = null, l)).catch((l) => {
|
|
225
|
+
console.error(l), this.group.remove(n);
|
|
226
|
+
}), n;
|
|
212
227
|
});
|
|
213
228
|
}
|
|
214
229
|
};
|
|
215
|
-
let
|
|
216
|
-
|
|
217
|
-
const
|
|
230
|
+
let d = a;
|
|
231
|
+
h(d, "modules", O);
|
|
232
|
+
const ue = (m) => new d(m);
|
|
218
233
|
export {
|
|
219
|
-
|
|
220
|
-
|
|
234
|
+
d as Sculpt,
|
|
235
|
+
ue as SculptPlugin
|
|
221
236
|
};
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { Sculpt as
|
|
38
|
-
import { ModelMakerPlugin as
|
|
39
|
-
import { index as
|
|
40
|
-
import { CSS3DRender as
|
|
41
|
-
import { Model as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { Polyline as
|
|
45
|
-
import { Magnifier as
|
|
46
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { ModelItemLabelPlugin as
|
|
48
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
49
|
-
import { Plugin as
|
|
50
|
-
import { GuideLineItem$1 as
|
|
51
|
-
import { GuideLineModeItem$1 as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { typing as
|
|
55
|
-
import { default as
|
|
56
|
-
import { defaultGlobalConfig as
|
|
57
|
-
import { ContentType as
|
|
58
|
-
import { Object3DHelperController as
|
|
59
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as Il } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Sl } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as yl } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Dl } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as bl } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Fl, modelRoomLabelPluginServerParams as Yl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as Vl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as hl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as wl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as Hl } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as jl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as Wl, ROOM_FETILE_TYPE_MAP as ql, ROOM_TYPE_MAP as zl } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Kl } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Xl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as on } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as tn, Rotation as mn } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as en } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as nn } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as Pn } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as fn } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as gn } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as dn } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as Tn } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as Cn } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as En } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Rn } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as On } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as An, MovePlugin as Dn } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as bn } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as Fn } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as cn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as Nn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as kn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as Bn } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as Un, SculptPlugin as jn } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as Wn } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { index as zn } from "./shared-utils/index.js";
|
|
40
|
+
import { CSS3DRender as Kn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as Xn } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as oa } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as ta } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as ma } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as ea } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as na } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as Pa } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as fa } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as ga } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as da } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as Ta } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as Ca, default as _a } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as Ia } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as Sa } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as ya, pluginFlag as Aa } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as Ga } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as va, DimensionType as Fa, PointType as Ya } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as Va, PLUGIN as Na } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as ka } from "./PanoVideoPlugin/typings/index.js";
|
|
60
60
|
import "./components/PaintBrush/Controller.js";
|
|
61
61
|
import "./components/PaintBrush/utils.js";
|
|
62
62
|
import "./components/PaintBrush/tween.js";
|
|
@@ -448,16 +448,17 @@ import "./Sculpt/utils/Modules/Global.js";
|
|
|
448
448
|
import "./Sculpt/utils/Modules/Cursor.js";
|
|
449
449
|
import "./shared-utils/three/recurveFindObject.js";
|
|
450
450
|
import "./Sculpt/Objects/Polyline/index.js";
|
|
451
|
-
import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
452
451
|
import "./Sculpt/Meshes/Polyline.js";
|
|
453
452
|
import "./Sculpt/Meshes/LineWithDots.js";
|
|
454
453
|
import "./Sculpt/Meshes/Point.js";
|
|
455
454
|
import "./shared-utils/three/closeVectors.js";
|
|
456
455
|
import "./Sculpt/Objects/Base/index.js";
|
|
456
|
+
import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
457
457
|
import "./Sculpt/Objects/Polyline/Editor.js";
|
|
458
458
|
import "./Sculpt/Objects/Line/Editor.js";
|
|
459
459
|
import "./Sculpt/Objects/Base/Editor.js";
|
|
460
460
|
import "./shared-utils/three/vector3ToArray.js";
|
|
461
|
+
import "./shared-utils/promise/withResolvers.js";
|
|
461
462
|
import "./Sculpt/Objects/Point/index.js";
|
|
462
463
|
import "./Sculpt/Objects/Point/Editor.js";
|
|
463
464
|
import "./Sculpt/Objects/Polygon/index.js";
|
|
@@ -507,72 +508,72 @@ import "./shared-utils/five/lookObject.js";
|
|
|
507
508
|
r();
|
|
508
509
|
o();
|
|
509
510
|
export {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
511
|
+
kn as AreaMakerPlugin,
|
|
512
|
+
Kn as CSS3DRender,
|
|
513
|
+
Dl as CSS3DRenderPlugin,
|
|
514
|
+
tn as CameraMovementEffect,
|
|
515
|
+
on as CameraMovementPlugin,
|
|
516
|
+
va as ContentType,
|
|
517
|
+
An as CruisePlugin,
|
|
518
|
+
Ca as CruisePluginController,
|
|
519
|
+
Sa as CruisePluginTypes,
|
|
520
|
+
Bn as CurrentPanoImagePlugin,
|
|
521
|
+
Cn as DIRECTION,
|
|
522
|
+
na as DISPLAY_STRATEGY_TYPE,
|
|
523
|
+
Fa as DimensionType,
|
|
524
|
+
Vl as FLOOR_PLAN_ATTACHED_TO,
|
|
525
|
+
Wl as FLOOR_TYPE_MAP,
|
|
526
|
+
da as GuideLineItem,
|
|
527
|
+
Ta as GuideLineModeItem,
|
|
528
|
+
On as GuideLinePlugin,
|
|
529
|
+
fa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
530
|
+
ga as ItemLabelPlugin,
|
|
531
|
+
ea as Magnifier,
|
|
532
|
+
wl as MapviewFloorplanPlugin,
|
|
533
|
+
Kl as ModelChassisCompassPlugin,
|
|
534
|
+
Xl as ModelEntryDoorGuidePlugin,
|
|
535
|
+
hl as ModelFloorplanPlugin,
|
|
536
|
+
Pa as ModelItemLabelPlugin,
|
|
537
|
+
Wn as ModelMakerPlugin,
|
|
538
|
+
Fl as ModelRoomLabelPlugin,
|
|
539
|
+
Tn as ModelTVVideoPlugin,
|
|
540
|
+
yl as ModelViewPlugin,
|
|
541
|
+
Ia as MoveController,
|
|
542
|
+
Dn as MovePlugin,
|
|
543
|
+
Va as Object3DHelperController,
|
|
544
|
+
Fn as Object3DHelperPlugin,
|
|
545
|
+
Na as PLUGIN,
|
|
546
|
+
Il as PaintBrush,
|
|
547
|
+
Sl as PaintBrushTypeEnum,
|
|
548
|
+
Pn as PanoCompassPlugin,
|
|
549
|
+
bl as PanoCursorRaycasterPlugin,
|
|
550
|
+
Rn as PanoDoorLabelPlugin,
|
|
551
|
+
jl as PanoFloorplanRadarPlugin,
|
|
552
|
+
fn as PanoMeasurePlugin,
|
|
553
|
+
ta as PanoMeasurePluginLine,
|
|
554
|
+
Xn as PanoMeasurePluginModel,
|
|
555
|
+
oa as PanoMeasurePluginPoint,
|
|
556
|
+
ma as PanoMeasurePluginPolyline,
|
|
557
|
+
en as PanoRulerPlugin,
|
|
558
|
+
nn as PanoRulerProPlugin,
|
|
559
|
+
gn as PanoSpatialTagPlugin,
|
|
560
|
+
bn as PanoTagPlugin,
|
|
561
|
+
ya as PanoTagPluginController,
|
|
562
|
+
cn as PanoVideoPlugin,
|
|
563
|
+
ka as PanoVideoPluginType,
|
|
564
|
+
Nn as PipelinePlugin,
|
|
565
|
+
Ya as PointType,
|
|
566
|
+
ql as ROOM_FETILE_TYPE_MAP,
|
|
567
|
+
zl as ROOM_TYPE_MAP,
|
|
568
|
+
mn as Rotation,
|
|
569
|
+
Un as Sculpt,
|
|
570
|
+
jn as SculptPlugin,
|
|
571
|
+
Hl as TopviewFloorplanPlugin,
|
|
572
|
+
zn as Util,
|
|
573
|
+
_a as WalkController,
|
|
574
|
+
Ga as defaultGlobalConfig,
|
|
575
|
+
En as itemLabelPluginServerParams,
|
|
576
|
+
dn as modelItemLabelPluginServerParams,
|
|
577
|
+
Yl as modelRoomLabelPluginServerParams,
|
|
578
|
+
Aa as pluginFlag
|
|
578
579
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.48.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.48.2",
|
|
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",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface PromiseWithResolvers<T> {
|
|
2
|
+
promise: Promise<T>;
|
|
3
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
4
|
+
reject: (reason?: any) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @description Promise.withResolvers polyfill
|
|
8
|
+
*/
|
|
9
|
+
export declare function withResolvers<T>(): PromiseWithResolvers<T>;
|
|
10
|
+
export {};
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var g = (h, t, e) => t in h ?
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var g = (h, t, e) => t in h ? P(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
3
|
var s = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { anyPositionToVector3 as d } from "./positionToVector3.js";
|
|
5
5
|
import * as b from "three";
|
|
6
6
|
import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
|
|
7
|
-
import { getFiveModel as
|
|
8
|
-
import { FiveUtil as
|
|
7
|
+
import { getFiveModel as U } from "./five/getFiveModel.js";
|
|
8
|
+
import { FiveUtil as x } from "./Utils/FiveUtil.js";
|
|
9
9
|
import { _raycaster as m } from "./three/temp.js";
|
|
10
10
|
const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
|
|
11
11
|
class E {
|
|
@@ -35,12 +35,12 @@ class E {
|
|
|
35
35
|
if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
|
|
36
36
|
let e = 0.01;
|
|
37
37
|
this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
38
|
-
const o = (t =
|
|
38
|
+
const o = (t = U(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
|
|
39
39
|
(o == null ? void 0 : o.distance) + e > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
var n, r, a;
|
|
43
|
-
this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new
|
|
43
|
+
this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new x(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
|
|
44
44
|
const i = document.createElement("div");
|
|
45
45
|
return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
|
|
46
46
|
})(), this.config = o != null ? o : {}, this.enable(), this.show();
|
|
@@ -81,7 +81,7 @@ class E {
|
|
|
81
81
|
this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
|
|
82
82
|
}
|
|
83
83
|
setPosition(t, e) {
|
|
84
|
-
this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate();
|
|
84
|
+
this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate(), setTimeout(() => this.onCameraUpdate(), 0);
|
|
85
85
|
}
|
|
86
86
|
updateScreenPosition() {
|
|
87
87
|
if (!this.transformedPosition) {
|
|
@@ -102,8 +102,8 @@ class E {
|
|
|
102
102
|
const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t);
|
|
103
103
|
if (!i || !c)
|
|
104
104
|
return 0;
|
|
105
|
-
const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx,
|
|
106
|
-
return Math.atan2(
|
|
105
|
+
const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, u = f.topPx - p.topPx;
|
|
106
|
+
return Math.atan2(u, y) * (180 / Math.PI);
|
|
107
107
|
})();
|
|
108
108
|
this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
|
|
109
109
|
}
|