@realsee/dnalogel 3.78.0-alpha.4 → 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/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +95 -82
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14187 -12436
- package/dist/index.umd.js +87 -74
- 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 +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
- 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/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- 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,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var P = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var N = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var f = (e, i, t) => i in e ?
|
|
4
|
+
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (e, i, t) => i in e ? P(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, m = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
v.call(i, t) && f(e, t, i[t]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var t of A(i))
|
|
10
|
-
|
|
10
|
+
b.call(i, t) && f(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, a = (e, i) => E(e, N(i));
|
|
13
13
|
var k = (e, i) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
16
|
+
v.call(e, o) && i.indexOf(o) < 0 && (t[o] = e[o]);
|
|
17
17
|
if (e != null && A)
|
|
18
18
|
for (var o of A(e))
|
|
19
|
-
i.indexOf(o) < 0 &&
|
|
19
|
+
i.indexOf(o) < 0 && b.call(e, o) && (t[o] = e[o]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
var s = (e, i, t) => (f(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
@@ -29,8 +29,9 @@ import "../../vendor/hammerjs/hammer.js";
|
|
|
29
29
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
30
30
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
31
31
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
32
|
-
import { getLengthHTML as
|
|
33
|
-
import { localToWorld as
|
|
32
|
+
import { getLengthHTML as F } from "../utils/Meshes/getLengthHTML.js";
|
|
33
|
+
import { localToWorld as H } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
34
|
+
import { getFiveFromParentChain as S } from "../../shared-utils/five/getFiveFromParentChain.js";
|
|
34
35
|
import "@realsee/five/line";
|
|
35
36
|
import { notNil as g } from "../../shared-utils/isNil.js";
|
|
36
37
|
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
@@ -43,9 +44,9 @@ import "../../vendor/earcut/src/earcut.js";
|
|
|
43
44
|
import "../../shared-utils/five/FivePuppet.js";
|
|
44
45
|
const x = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
45
46
|
let C = null;
|
|
46
|
-
class
|
|
47
|
+
class nt extends T {
|
|
47
48
|
constructor(t) {
|
|
48
|
-
var
|
|
49
|
+
var y, w, V;
|
|
49
50
|
super();
|
|
50
51
|
s(this, "name", "PointMesh");
|
|
51
52
|
s(this, "dom");
|
|
@@ -76,21 +77,21 @@ class st extends T {
|
|
|
76
77
|
const M = {
|
|
77
78
|
transparent: !0,
|
|
78
79
|
side: n.DoubleSide,
|
|
79
|
-
size: (
|
|
80
|
+
size: (y = t == null ? void 0 : t.size) != null ? y : 8,
|
|
80
81
|
map: C || (C = new n.TextureLoader().load(x)),
|
|
81
82
|
sizeAttenuation: !1
|
|
82
|
-
},
|
|
83
|
-
color: (
|
|
83
|
+
}, r = new n.PointsMaterial(a(m({}, M), {
|
|
84
|
+
color: (w = t == null ? void 0 : t.color) != null ? w : 16777215,
|
|
84
85
|
depthTest: !0,
|
|
85
86
|
opacity: (V = t == null ? void 0 : t.opacity) != null ? V : 1
|
|
86
|
-
})), D = new n.PointsMaterial(m(
|
|
87
|
-
size:
|
|
88
|
-
color:
|
|
87
|
+
})), D = new n.PointsMaterial(a(m({}, M), {
|
|
88
|
+
size: r.size,
|
|
89
|
+
color: r.color,
|
|
89
90
|
depthWrite: !1,
|
|
90
91
|
depthTest: !1,
|
|
91
|
-
opacity:
|
|
92
|
-
})),
|
|
93
|
-
this.fontMesh =
|
|
92
|
+
opacity: r.opacity * 0.5
|
|
93
|
+
})), l = new n.Points(u, r), d = new n.Points(u, D);
|
|
94
|
+
this.fontMesh = l, this.backgroundMesh = d, l.name = "FontMesh", d.name = "BackgroundMesh", l.renderOrder = 10, d.renderOrder = 0, this.add(l, d), t != null && t.point && this.position.copy(W(t.point)), t && this.setStyle(t), this.addEventListener("removed", () => {
|
|
94
95
|
c.cacheObject.delete(this), c.checkDom(this);
|
|
95
96
|
}), this.addEventListener("added", () => {
|
|
96
97
|
c.cacheObject.add(this);
|
|
@@ -112,8 +113,7 @@ class st extends T {
|
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
115
|
get five() {
|
|
115
|
-
|
|
116
|
-
return (o = (t = window.globalModules) == null ? void 0 : t.five) != null ? o : window.$five;
|
|
116
|
+
return S(this);
|
|
117
117
|
}
|
|
118
118
|
setStyle(t) {
|
|
119
119
|
g(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), g(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), g(t.occlusionVisibility) && (t.occlusionVisibility ? t.occlusionMode === "depthTest" ? (this.fontMesh.material.depthTest = !1, this.backgroundMesh.visible = !1) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !0) : (this.fontMesh.material.depthTest = !0, this.backgroundMesh.visible = !1));
|
|
@@ -126,14 +126,14 @@ class st extends T {
|
|
|
126
126
|
}
|
|
127
127
|
updateMatrixWorld(t) {
|
|
128
128
|
super.updateMatrixWorld(t);
|
|
129
|
-
const o =
|
|
129
|
+
const o = H(this, this.position).toArray().join(",");
|
|
130
130
|
o !== this.lastRenderDomItem && (this.updateDom(), this.lastRenderDomItem = o);
|
|
131
131
|
}
|
|
132
132
|
updateDom() {
|
|
133
133
|
const t = this.paramsStyle.tip;
|
|
134
|
-
t && !this.dom && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.display = this.visible ? "block" : "none");
|
|
134
|
+
t && !this.dom && this.five && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.display = this.visible ? "block" : "none");
|
|
135
135
|
const o = (h) => {
|
|
136
|
-
this.dom && this.dom.__text !== h && (this.dom.__text = h, h instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(h)) : h ? this.dom.container.innerHTML =
|
|
136
|
+
this.dom && this.dom.__text !== h && (this.dom.__text = h, h instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(h)) : h ? this.dom.container.innerHTML = F(h, {
|
|
137
137
|
style: "",
|
|
138
138
|
offsetY: -20
|
|
139
139
|
// 移动label到点的上方,否则会遮挡鼠标选点
|
|
@@ -143,5 +143,5 @@ class st extends T {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
export {
|
|
146
|
-
|
|
146
|
+
nt as PointMesh
|
|
147
147
|
};
|
|
@@ -2,51 +2,52 @@ var f = Object.defineProperty, g = Object.defineProperties;
|
|
|
2
2
|
var I = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var u = Object.getOwnPropertySymbols;
|
|
4
4
|
var D = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var p = (
|
|
5
|
+
var p = (i, t, e) => t in i ? f(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, h = (i, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
D.call(t, e) && p(
|
|
7
|
+
D.call(t, e) && p(i, e, t[e]);
|
|
8
8
|
if (u)
|
|
9
9
|
for (var e of u(t))
|
|
10
|
-
_.call(t, e) && p(
|
|
11
|
-
return
|
|
12
|
-
}, y = (
|
|
13
|
-
var
|
|
10
|
+
_.call(t, e) && p(i, e, t[e]);
|
|
11
|
+
return i;
|
|
12
|
+
}, y = (i, t) => g(i, I(t));
|
|
13
|
+
var r = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import * as a from "three";
|
|
15
|
-
import { generatePolygonGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
15
|
+
import { generatePolygonGeometry as H } from "../../shared-utils/three/generatePolygonGeometry.js";
|
|
16
|
+
import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import { ColoredMesh as S } from "../utils/three/ColoredMesh.js";
|
|
18
18
|
import { getGeometryInfo as k } from "../../shared-utils/three/geometryUtil.js";
|
|
19
|
-
import { LightTag as
|
|
20
|
-
import { getLengthHTML as
|
|
21
|
-
import { localToWorld as
|
|
22
|
-
import {
|
|
19
|
+
import { LightTag as P } from "../../shared-utils/tag.js";
|
|
20
|
+
import { getLengthHTML as v } from "../utils/Meshes/getLengthHTML.js";
|
|
21
|
+
import { localToWorld as F } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
22
|
+
import { getFiveFromParentChain as A } from "../../shared-utils/five/getFiveFromParentChain.js";
|
|
23
|
+
import { transformUnitSquare as U } from "../utils/unit.js";
|
|
23
24
|
import { RenderDom as m } from "../utils/renderDom.js";
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class
|
|
25
|
+
const c = new a.BufferGeometry();
|
|
26
|
+
c.name = "blankGeometry";
|
|
27
|
+
c.isBlank = !0;
|
|
28
|
+
class G extends S {
|
|
28
29
|
constructor(e) {
|
|
29
30
|
super(e);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
r(this, "name", "PolygonMesh");
|
|
32
|
+
r(this, "points", []);
|
|
33
|
+
r(this, "planeHelperNeedUpdate", !0);
|
|
34
|
+
r(this, "geometryInfoNeedUpdate", !0);
|
|
35
|
+
r(this, "_paramsStyle");
|
|
36
|
+
r(this, "areaDom");
|
|
37
|
+
r(this, "planeHelper", null);
|
|
38
|
+
r(this, "_geometryInfo", null);
|
|
39
|
+
r(this, "lastRenderAreaItem");
|
|
40
|
+
r(this, "_onAdded", () => {
|
|
40
41
|
this.areaDom || this.updateAreaItems();
|
|
41
42
|
});
|
|
42
|
-
|
|
43
|
+
r(this, "_onRemoved", () => {
|
|
43
44
|
var e;
|
|
44
45
|
(e = this.areaDom) == null || e.destroy(), this.areaDom = void 0;
|
|
45
46
|
});
|
|
46
|
-
|
|
47
|
+
r(this, "_onShowed", () => {
|
|
47
48
|
this.areaDom && (this.areaDom.container.style.display = "block");
|
|
48
49
|
});
|
|
49
|
-
|
|
50
|
+
r(this, "_onHidden", () => {
|
|
50
51
|
this.areaDom && (this.areaDom.container.style.display = "none");
|
|
51
52
|
});
|
|
52
53
|
e != null && e.points && this.setPoints(e.points), this._paramsStyle = e != null ? e : {}, this.updateAreaItems(), this.addEventListener("removed", () => {
|
|
@@ -72,25 +73,24 @@ class j extends S {
|
|
|
72
73
|
return this.geometryInfoNeedUpdate && (this.isBlank ? this._geometryInfo = null : this._geometryInfo = k(this.geometry), this.geometryInfoNeedUpdate = !1), this._geometryInfo;
|
|
73
74
|
}
|
|
74
75
|
get five() {
|
|
75
|
-
|
|
76
|
-
return (r = (e = window.globalModules) == null ? void 0 : e.five) != null ? r : window.$five;
|
|
76
|
+
return A(this);
|
|
77
77
|
}
|
|
78
78
|
updateMatrixWorld(e) {
|
|
79
79
|
if (super.updateMatrixWorld(e), this.center) {
|
|
80
|
-
const
|
|
81
|
-
|
|
80
|
+
const s = F(this, this.center).toArray().join(",");
|
|
81
|
+
s !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = s);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
setStyle(e) {
|
|
85
85
|
var n;
|
|
86
86
|
this._paramsStyle = h(h({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
|
|
87
|
-
const
|
|
88
|
-
this.areaDom && (this.areaDom.intersectCheck = !
|
|
87
|
+
const s = (n = this._paramsStyle.occlusionVisibility) != null ? n : !0;
|
|
88
|
+
this.areaDom && (this.areaDom.intersectCheck = !s), this.updateAreaItems();
|
|
89
89
|
}
|
|
90
|
-
setPoints(e,
|
|
90
|
+
setPoints(e, s) {
|
|
91
91
|
var o, l;
|
|
92
|
-
const n = e.map(
|
|
93
|
-
this.points = n, this.geometry = (l =
|
|
92
|
+
const n = e.map(b);
|
|
93
|
+
this.points = n, this.geometry = (l = H(this.points, { checkLinesIntersect: (o = s == null ? void 0 : s.checkLinesIntersect) != null ? o : !0 })) != null ? l : c, this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0, this.updateAreaItems();
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @description: 获取一个点投影在当前平面上的点
|
|
@@ -112,16 +112,16 @@ class j extends S {
|
|
|
112
112
|
if (!this.five)
|
|
113
113
|
return console.error("Five not found");
|
|
114
114
|
this.areaDom = (n = this.areaDom) != null ? n : (() => {
|
|
115
|
-
var
|
|
116
|
-
const o = new
|
|
115
|
+
var d;
|
|
116
|
+
const o = new P(this.five), l = (d = this._paramsStyle.occlusionVisibility) != null ? d : !0;
|
|
117
117
|
return o.intersectCheck = !l, o.simulate3D = !0, o;
|
|
118
118
|
})(), this.areaDom.setPosition(this.center);
|
|
119
|
-
const
|
|
120
|
-
|
|
119
|
+
const s = U(this.geometryInfo.area, this._paramsStyle.lengthUnit);
|
|
120
|
+
s ? this.areaDom.container.innerHTML = v(s, {
|
|
121
121
|
style: "color: #FFFFFF; background: #3366FF"
|
|
122
122
|
}) : this.areaDom.container.innerHTML = "";
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
|
-
|
|
126
|
+
G as PolygonMesh
|
|
127
127
|
};
|
|
@@ -6,13 +6,17 @@ import type { Direction, Direction4 } from '../../../shared-utils/Object3DHelper
|
|
|
6
6
|
export type ObjectUpdateType = 'move' | 'rotate' | 'scale';
|
|
7
7
|
export interface ObjectUpdateParams {
|
|
8
8
|
/** 操作类型:移动、旋转、缩放 */
|
|
9
|
-
type
|
|
9
|
+
type?: ObjectUpdateType;
|
|
10
10
|
/** 开始时间戳 */
|
|
11
|
-
start_timestamp
|
|
11
|
+
start_timestamp?: number;
|
|
12
12
|
/** 结束时间戳 */
|
|
13
13
|
end_timestamp?: number;
|
|
14
14
|
/** 轴向 */
|
|
15
15
|
axis?: Direction | Direction4;
|
|
16
|
+
/** 进行中的状态 */
|
|
17
|
+
status?: 'moving' | 'rotating' | 'scaling';
|
|
18
|
+
/** 是否为操作结束,true 表示松手,false 表示拖动中 */
|
|
19
|
+
is_handle_end?: boolean;
|
|
16
20
|
}
|
|
17
21
|
export declare class BaseEditor<OriginObject extends THREE.Object3D = THREE.Object3D> extends IObject3D {
|
|
18
22
|
hooks: Subscribe<{
|
|
@@ -40,6 +44,9 @@ export declare class BaseEditorWithObjectHelper<OriginObject extends THREE.Objec
|
|
|
40
44
|
private onMoveStart;
|
|
41
45
|
private onRotateStart;
|
|
42
46
|
private onScaleStart;
|
|
47
|
+
private onMove;
|
|
48
|
+
private onRotate;
|
|
49
|
+
private onScale;
|
|
43
50
|
private onMoveEnd;
|
|
44
51
|
private onRotateEnd;
|
|
45
52
|
private onScaleEnd;
|
|
@@ -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
|
};
|