@realsee/dnalogel 3.78.0-alpha.3 → 3.78.0
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 +40 -10
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +101 -88
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14196 -12441
- package/dist/index.umd.js +83 -70
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- 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/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +131 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +50 -49
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +69 -65
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/libs/PanoTagPlugin/utils/index.js +31 -30
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +34 -32
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +5 -5
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.d.ts +1 -0
- package/libs/index.js +162 -150
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/package.json +3 -3
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var j = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var S = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var O = Object.getOwnPropertySymbols;
|
|
4
|
+
var g = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (i, e, t) => e in i ? j(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, s = (i, e) => {
|
|
5
6
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
};
|
|
12
|
-
var
|
|
13
|
-
import { Sculpt as
|
|
14
|
-
import { IObject3D as
|
|
15
|
-
import { Subscribe as
|
|
16
|
-
class
|
|
7
|
+
g.call(e, t) && h(i, t, e[t]);
|
|
8
|
+
if (O)
|
|
9
|
+
for (var t of O(e))
|
|
10
|
+
k.call(e, t) && h(i, t, e[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, n = (i, e) => m(i, S(e));
|
|
13
|
+
var r = (i, e, t) => (h(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import { Sculpt as a } from "../../index.js";
|
|
15
|
+
import { IObject3D as v } from "../../../shared-utils/three/IObject3D.js";
|
|
16
|
+
import { Subscribe as E } from "../../../shared-utils/Subscribe.js";
|
|
17
|
+
class H extends v {
|
|
17
18
|
constructor(t) {
|
|
18
19
|
super();
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
r(this, "hooks", new E());
|
|
21
|
+
r(this, "originObject");
|
|
21
22
|
this.originObject = t;
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
@@ -33,85 +34,93 @@ class f extends u {
|
|
|
33
34
|
this.originObject.remove(this);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
class
|
|
37
|
-
constructor(t,
|
|
37
|
+
class U extends H {
|
|
38
|
+
constructor(t, o) {
|
|
38
39
|
super(t);
|
|
39
|
-
|
|
40
|
+
r(this, "objectHelperConfig");
|
|
40
41
|
// 记录当前操作的类型、开始时间和轴向
|
|
41
|
-
|
|
42
|
+
r(this, "currentOperation", null);
|
|
42
43
|
// 记录移动操作开始
|
|
43
|
-
|
|
44
|
+
r(this, "onMoveStart", (t) => {
|
|
44
45
|
this.currentOperation = {
|
|
45
46
|
type: "move",
|
|
46
|
-
|
|
47
|
+
start_timestamp: Date.now(),
|
|
47
48
|
axis: t
|
|
48
49
|
};
|
|
49
50
|
});
|
|
50
51
|
// 记录旋转操作开始
|
|
51
|
-
|
|
52
|
+
r(this, "onRotateStart", (t) => {
|
|
52
53
|
this.currentOperation = {
|
|
53
54
|
type: "rotate",
|
|
54
|
-
|
|
55
|
+
start_timestamp: Date.now(),
|
|
55
56
|
axis: t
|
|
56
57
|
};
|
|
57
58
|
});
|
|
58
59
|
// 记录缩放操作开始
|
|
59
|
-
|
|
60
|
+
r(this, "onScaleStart", (t) => {
|
|
60
61
|
this.currentOperation = {
|
|
61
62
|
type: "scale",
|
|
62
|
-
|
|
63
|
+
start_timestamp: Date.now(),
|
|
63
64
|
axis: t
|
|
64
65
|
};
|
|
65
66
|
});
|
|
66
|
-
//
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
// 移动中的处理
|
|
68
|
+
r(this, "onMove", () => {
|
|
69
|
+
this.currentOperation && (this.currentOperation = n(s({}, this.currentOperation), {
|
|
70
|
+
status: "moving"
|
|
71
|
+
}), this.onObjectUpdate(!1));
|
|
72
|
+
});
|
|
73
|
+
// 旋转中的处理
|
|
74
|
+
r(this, "onRotate", () => {
|
|
75
|
+
this.currentOperation && (this.currentOperation = n(s({}, this.currentOperation), {
|
|
76
|
+
status: "rotating"
|
|
77
|
+
}), this.onObjectUpdate(!1));
|
|
78
|
+
});
|
|
79
|
+
// 缩放中的处理
|
|
80
|
+
r(this, "onScale", () => {
|
|
81
|
+
this.currentOperation && (this.currentOperation = n(s({}, this.currentOperation), {
|
|
82
|
+
status: "scaling"
|
|
83
|
+
}), this.onObjectUpdate(!1));
|
|
78
84
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.onObjectUpdate();
|
|
85
|
+
r(this, "onMoveEnd", () => {
|
|
86
|
+
this.onObjectUpdate(!0);
|
|
82
87
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
r(this, "onRotateEnd", () => {
|
|
89
|
+
this.onObjectUpdate(!0);
|
|
90
|
+
});
|
|
91
|
+
r(this, "onScaleEnd", () => {
|
|
92
|
+
this.onObjectUpdate(!0);
|
|
86
93
|
});
|
|
87
94
|
// 统一的触发 objectUpdate 方法
|
|
88
|
-
|
|
89
|
-
|
|
95
|
+
// @param isHandleEnd 是否为操作结束,true 表示松手,false 表示拖动中
|
|
96
|
+
r(this, "onObjectUpdate", (t = !0) => {
|
|
97
|
+
if (!this.currentOperation) {
|
|
98
|
+
this.hooks.emit("objectUpdate");
|
|
90
99
|
return;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
this.hooks.emit("objectUpdate",
|
|
100
|
+
}
|
|
101
|
+
const o = n(s({}, this.currentOperation), {
|
|
102
|
+
end_timestamp: t ? Date.now() : void 0,
|
|
103
|
+
// 只在松手时设置结束时间
|
|
104
|
+
is_handle_end: t
|
|
105
|
+
});
|
|
106
|
+
this.hooks.emit("objectUpdate", o), t && (this.currentOperation = null);
|
|
98
107
|
});
|
|
99
|
-
this.objectHelperConfig =
|
|
108
|
+
this.objectHelperConfig = o;
|
|
100
109
|
}
|
|
101
110
|
get helper() {
|
|
102
111
|
var t;
|
|
103
|
-
return (t =
|
|
112
|
+
return (t = a.modules.object3DHelper.getObject3DHelper(this.originObject)) == null ? void 0 : t.helper;
|
|
104
113
|
}
|
|
105
114
|
enable() {
|
|
106
115
|
super.enable();
|
|
107
116
|
const t = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
117
|
+
a.modules.object3DHelper.addObject3DHelper(this.originObject, s({ positionFrom: "boundingBox" }, t));
|
|
118
|
+
const o = a.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
|
|
119
|
+
o.hooks.on("moveStart", this.onMoveStart), o.hooks.on("rotateStart", this.onRotateStart), o.hooks.on("scaleStart", this.onScaleStart), o.hooks.on("move", this.onMove), o.hooks.on("rotate", this.onRotate), o.hooks.on("scale", this.onScale), o.hooks.on("moveEnd", this.onMoveEnd), o.hooks.on("rotateEnd", this.onRotateEnd), o.hooks.on("scaleEnd", this.onScaleEnd);
|
|
111
120
|
}
|
|
112
121
|
disable() {
|
|
113
|
-
var t,
|
|
114
|
-
super.disable(), (t = this.helper) == null || t.hooks.off("moveStart", this.onMoveStart), (
|
|
122
|
+
var t, o, c, p, l, b, u, d, f;
|
|
123
|
+
super.disable(), (t = this.helper) == null || t.hooks.off("moveStart", this.onMoveStart), (o = this.helper) == null || o.hooks.off("rotateStart", this.onRotateStart), (c = this.helper) == null || c.hooks.off("scaleStart", this.onScaleStart), (p = this.helper) == null || p.hooks.off("move", this.onMove), (l = this.helper) == null || l.hooks.off("rotate", this.onRotate), (b = this.helper) == null || b.hooks.off("scale", this.onScale), (u = this.helper) == null || u.hooks.off("moveEnd", this.onMoveEnd), (d = this.helper) == null || d.hooks.off("rotateEnd", this.onRotateEnd), (f = this.helper) == null || f.hooks.off("scaleEnd", this.onScaleEnd), a.modules.object3DHelper.removeObject3DHelper(this.originObject);
|
|
115
124
|
}
|
|
116
125
|
initialHelperMatrix() {
|
|
117
126
|
var t;
|
|
@@ -119,6 +128,6 @@ class k extends f {
|
|
|
119
128
|
}
|
|
120
129
|
}
|
|
121
130
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
131
|
+
H as BaseEditor,
|
|
132
|
+
U as BaseEditorWithObjectHelper
|
|
124
133
|
};
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -90,7 +90,7 @@ const d = class extends E {
|
|
|
90
90
|
});
|
|
91
91
|
this.five = e, this.theme = t, this.config = g({
|
|
92
92
|
magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
|
|
93
|
-
}, i), this.group = new z(), this.group.name = "Sculpt", this.group.__sculpt__ = this, e.scene.add(this.group), d.modules.init(e, this.config), x("ctrl+z, command+z", this.undo), x("ctrl+shift+z, command+shift+z", this.redo), d.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: c, origDomEvent: s }) => {
|
|
93
|
+
}, i), this.group = new z(), this.group.name = "Sculpt", this.group.__sculpt__ = this, this.group.__five__ = this.five, e.scene.add(this.group), d.modules.init(e, this.config), x("ctrl+z, command+z", this.undo), x("ctrl+shift+z, command+shift+z", this.redo), d.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: c, origDomEvent: s }) => {
|
|
94
94
|
var o;
|
|
95
95
|
const r = F((o = c == null ? void 0 : c[0]) == null ? void 0 : o.object, (h) => h.isSculptObject);
|
|
96
96
|
return r && !r.editing ? this.emit("click", s, r) : !1;
|
|
@@ -2,8 +2,8 @@ var l = Object.defineProperty;
|
|
|
2
2
|
var u = (n, e, o) => e in n ? l(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
|
|
3
3
|
var r = (n, e, o) => (u(n, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import { DeleteButtonBgBorder as a } from "./DeleteButtonBgBorder.js";
|
|
5
|
-
import { DeleteIconSVG as
|
|
6
|
-
const
|
|
5
|
+
import { DeleteIconSVG as d } from "./DeleteIconSVG.js";
|
|
6
|
+
const p = {
|
|
7
7
|
auto: "",
|
|
8
8
|
pen: "",
|
|
9
9
|
"pen-forbidden": "",
|
|
@@ -13,7 +13,7 @@ const d = {
|
|
|
13
13
|
"crosshair-rectangle": "",
|
|
14
14
|
"crosshair-circle": ""
|
|
15
15
|
}, h = {
|
|
16
|
-
position: "
|
|
16
|
+
position: "fixed",
|
|
17
17
|
width: "34px",
|
|
18
18
|
height: "34px",
|
|
19
19
|
transform: "translate(-50%, -40px)",
|
|
@@ -30,10 +30,10 @@ const d = {
|
|
|
30
30
|
backgroundRepeat: "no-repeat"
|
|
31
31
|
}, m = `
|
|
32
32
|
<div style="width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center;">
|
|
33
|
-
${
|
|
33
|
+
${d}
|
|
34
34
|
</div>
|
|
35
35
|
`;
|
|
36
|
-
class
|
|
36
|
+
class f {
|
|
37
37
|
constructor(e) {
|
|
38
38
|
r(this, "container");
|
|
39
39
|
r(this, "deleteButton");
|
|
@@ -43,7 +43,7 @@ class B {
|
|
|
43
43
|
* @param type - The type of the cursor.
|
|
44
44
|
*/
|
|
45
45
|
setType(e) {
|
|
46
|
-
const o =
|
|
46
|
+
const o = p[e];
|
|
47
47
|
o ? this.container.style.cursor = `url(${o}), auto` : this.container.style.cursor = e;
|
|
48
48
|
}
|
|
49
49
|
showDeleteButton(e) {
|
|
@@ -66,5 +66,5 @@ class B {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
f as Cursor
|
|
70
70
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e = Object.defineProperty;
|
|
2
2
|
var s = (o, t, i) => t in o ? e(o, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[t] = i;
|
|
3
3
|
var r = (o, t, i) => (s(o, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
-
import { Subscribe as
|
|
4
|
+
import { Subscribe as m } from "../shared-utils/Subscribe.js";
|
|
5
5
|
import "../shared-utils/tag.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "../vendor/hammerjs/hammer.js";
|
|
@@ -15,7 +15,7 @@ import "../shared-utils/three/blink.js";
|
|
|
15
15
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
16
16
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
17
17
|
import "../vendor/earcut/src/earcut.js";
|
|
18
|
-
import { FiveUtil as
|
|
18
|
+
import { FiveUtil as l } from "../shared-utils/Utils/FiveUtil.js";
|
|
19
19
|
import { DEFAULT_STATIC_PREFIX as p } from "../shared-utils/url/defaultUrls.js";
|
|
20
20
|
import "../shared-utils/five/FivePuppet.js";
|
|
21
21
|
let I = class {
|
|
@@ -23,7 +23,7 @@ let I = class {
|
|
|
23
23
|
/**
|
|
24
24
|
* @realsee/dnalogel 版本号
|
|
25
25
|
*/
|
|
26
|
-
r(this, "VERSION", "3.78.0
|
|
26
|
+
r(this, "VERSION", "3.78.0");
|
|
27
27
|
r(this, "NAME");
|
|
28
28
|
r(this, "five");
|
|
29
29
|
r(this, "workUtil");
|
|
@@ -31,9 +31,9 @@ let I = class {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description: 插件事件钩子
|
|
33
33
|
*/
|
|
34
|
-
r(this, "hooks", new
|
|
34
|
+
r(this, "hooks", new m());
|
|
35
35
|
r(this, "staticPrefix", p);
|
|
36
|
-
this.five = t, this.fiveUtil = new
|
|
36
|
+
this.five = t, this.fiveUtil = new l(t), this.workUtil = this.fiveUtil.workUtil, i != null && i.staticPrefix && (this.staticPrefix = i.staticPrefix);
|
|
37
37
|
}
|
|
38
38
|
set workCode(t) {
|
|
39
39
|
this.workUtil.workCode = t, this.onWorkCodeChange();
|
|
@@ -102,6 +102,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
102
102
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
103
103
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
104
104
|
import "../../shared-utils/util.js";
|
|
105
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
105
106
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
106
107
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
107
108
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -123,7 +124,7 @@ import "../../shared-utils/url/absoluteUrl.js";
|
|
|
123
124
|
import "../../shared-utils/isTruelyObject.js";
|
|
124
125
|
import "../../base/BasePlugin.js";
|
|
125
126
|
import "../Assets/floorplanExtraObject.js";
|
|
126
|
-
class
|
|
127
|
+
class Fi extends k {
|
|
127
128
|
constructor(t, i) {
|
|
128
129
|
var o, s;
|
|
129
130
|
super(t);
|
|
@@ -345,5 +346,5 @@ class Si extends k {
|
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
export {
|
|
348
|
-
|
|
349
|
+
Fi as Controller
|
|
349
350
|
};
|
|
@@ -71,6 +71,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
71
71
|
import "../../shared-utils/three/IObject3D.js";
|
|
72
72
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
73
73
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
74
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
74
75
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
75
76
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
76
77
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -95,8 +96,8 @@ import "../../base/BasePluginWithData.js";
|
|
|
95
96
|
import "../../base/BasePlugin.js";
|
|
96
97
|
import "../utils/formatData.js";
|
|
97
98
|
import "../Assets/floorplanExtraObject.js";
|
|
98
|
-
const
|
|
99
|
+
const Wo = (o, r) => new t(o, r);
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
Wo as FloorplanGuidePlugin,
|
|
102
|
+
Wo as default
|
|
102
103
|
};
|
|
@@ -129,6 +129,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
129
129
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
130
130
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
131
131
|
import "../../shared-utils/util.js";
|
|
132
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
132
133
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
133
134
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
134
135
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -156,7 +157,7 @@ function Q(l) {
|
|
|
156
157
|
const { latitude: h, longitude: t } = l, e = Math.abs(h - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
157
158
|
return e && i;
|
|
158
159
|
}
|
|
159
|
-
class
|
|
160
|
+
class ci extends j {
|
|
160
161
|
constructor(t, e) {
|
|
161
162
|
var a, m;
|
|
162
163
|
super(t);
|
|
@@ -555,5 +556,5 @@ class pi extends j {
|
|
|
555
556
|
}
|
|
556
557
|
}
|
|
557
558
|
export {
|
|
558
|
-
|
|
559
|
+
ci as Controller
|
|
559
560
|
};
|
|
@@ -94,6 +94,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
94
94
|
import "../../shared-utils/three/IObject3D.js";
|
|
95
95
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
96
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
97
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
97
98
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
98
99
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
99
100
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -119,8 +120,8 @@ import "../../shared-utils/translateMode/getDistanceFromModel.js";
|
|
|
119
120
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
120
121
|
import "../../shared-utils/url/replace-static-prefix.js";
|
|
121
122
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
122
|
-
const
|
|
123
|
+
const xr = (o, r) => new t(o, r);
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
xr as MapviewFloorplanPlugin,
|
|
126
|
+
xr as default
|
|
126
127
|
};
|
|
@@ -128,6 +128,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
128
128
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
129
129
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
130
130
|
import "../../shared-utils/util.js";
|
|
131
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
131
132
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
132
133
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
133
134
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -154,7 +155,7 @@ function B(l) {
|
|
|
154
155
|
const { latitude: a, longitude: t } = l, e = Math.abs(a - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
155
156
|
return e && i;
|
|
156
157
|
}
|
|
157
|
-
class
|
|
158
|
+
class oi extends k {
|
|
158
159
|
constructor(t, e) {
|
|
159
160
|
var n, m, c;
|
|
160
161
|
super(t);
|
|
@@ -516,5 +517,5 @@ class ii extends k {
|
|
|
516
517
|
}
|
|
517
518
|
}
|
|
518
519
|
export {
|
|
519
|
-
|
|
520
|
+
oi as Controller
|
|
520
521
|
};
|
|
@@ -94,6 +94,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
94
94
|
import "../../shared-utils/three/IObject3D.js";
|
|
95
95
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
96
96
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
97
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
97
98
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
98
99
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
99
100
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -118,8 +119,8 @@ import "../../shared-utils/translateMode/getDistanceFromModel.js";
|
|
|
118
119
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
119
120
|
import "../../shared-utils/url/replace-static-prefix.js";
|
|
120
121
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
121
|
-
const
|
|
122
|
+
const xr = (o, r) => new t(o, r);
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
xr as ModelFloorplanPlugin,
|
|
125
|
+
xr as default
|
|
125
126
|
};
|
|
@@ -98,6 +98,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
98
98
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
99
99
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
100
100
|
import "../../shared-utils/util.js";
|
|
101
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
101
102
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
102
103
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
103
104
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -116,7 +117,7 @@ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
116
117
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
117
118
|
import "@realsee/five";
|
|
118
119
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
119
|
-
class
|
|
120
|
+
class li extends O {
|
|
120
121
|
constructor(t, i) {
|
|
121
122
|
super(t);
|
|
122
123
|
// =============== public properties =================
|
|
@@ -259,5 +260,5 @@ class di extends O {
|
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
262
|
export {
|
|
262
|
-
|
|
263
|
+
li as Controller
|
|
263
264
|
};
|
|
@@ -68,6 +68,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
68
68
|
import "../../shared-utils/three/IObject3D.js";
|
|
69
69
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
70
70
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
71
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
71
72
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
72
73
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
73
74
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -88,8 +89,8 @@ import "../utils/formatData.js";
|
|
|
88
89
|
import "../Assets/floorplanExtraObject.js";
|
|
89
90
|
import "../../shared-utils/url/replace-static-prefix.js";
|
|
90
91
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
91
|
-
const
|
|
92
|
+
const No = (o, r) => new t(o, r);
|
|
92
93
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
No as PanoFloorplanRadarPlugin,
|
|
95
|
+
No as default
|
|
95
96
|
};
|
|
@@ -125,6 +125,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
125
125
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
126
126
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
127
127
|
import "../../shared-utils/util.js";
|
|
128
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
128
129
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
129
130
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
130
131
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -143,7 +144,7 @@ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
|
143
144
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
144
145
|
import "@realsee/five";
|
|
145
146
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
146
|
-
class
|
|
147
|
+
class Ji extends M {
|
|
147
148
|
constructor(t, i) {
|
|
148
149
|
var h, l;
|
|
149
150
|
super(t);
|
|
@@ -417,5 +418,5 @@ class qi extends M {
|
|
|
417
418
|
}
|
|
418
419
|
}
|
|
419
420
|
export {
|
|
420
|
-
|
|
421
|
+
Ji as Controller
|
|
421
422
|
};
|
|
@@ -92,6 +92,7 @@ import "../../Sculpt/typings/style.js";
|
|
|
92
92
|
import "../../shared-utils/three/IObject3D.js";
|
|
93
93
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
94
94
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
95
|
+
import "../../shared-utils/five/getFiveFromParentChain.js";
|
|
95
96
|
import "../../shared-utils/three/core/LineGeometry.js";
|
|
96
97
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
97
98
|
import "../../shared-utils/three/core/Line2.js";
|
|
@@ -115,8 +116,8 @@ import "../../shared-utils/getPxmm.js";
|
|
|
115
116
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
116
117
|
import "../../shared-utils/url/replace-static-prefix.js";
|
|
117
118
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
118
|
-
const
|
|
119
|
+
const cr = (o, r) => new t(o, r);
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
cr as TopviewFloorplanPlugin,
|
|
122
|
+
cr as default
|
|
122
123
|
};
|
package/libs/index.d.ts
CHANGED