@realsee/dnalogel 3.47.9 → 3.47.11
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/Meshes/Line.d.ts +1 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/dist/index.cjs.js +57 -57
- package/dist/index.js +3236 -3222
- package/dist/index.umd.js +50 -50
- package/libs/AreaMakerPlugin/Controller.js +14 -13
- package/libs/AreaMakerPlugin/index.js +15 -14
- package/libs/AreaMakerPlugin/utils/Item.js +15 -14
- package/libs/CSS3DRenderPlugin/Controller.js +12 -11
- package/libs/CSS3DRenderPlugin/index.js +18 -17
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +12 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +26 -25
- package/libs/CruisePlugin/BaseController.js +17 -16
- package/libs/CruisePlugin/Move.js +20 -19
- package/libs/CruisePlugin/Work.js +15 -14
- package/libs/CruisePlugin/index.js +19 -18
- package/libs/CurrentPanoImagePlugin/Controller.js +14 -13
- package/libs/CurrentPanoImagePlugin/index.js +16 -15
- package/libs/GuideLinePlugin/Controller.js +17 -16
- package/libs/GuideLinePlugin/GuideLineItem.js +15 -14
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +5 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -14
- package/libs/GuideLinePlugin/index.js +19 -18
- package/libs/ModelMakerPlugin/Controller.js +13 -12
- package/libs/ModelMakerPlugin/index.js +15 -14
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -36
- package/libs/ModelTVVideoPlugin/index.js +13 -12
- package/libs/Object3DHelperPlugin/Controller.js +14 -13
- package/libs/Object3DHelperPlugin/index.js +18 -17
- package/libs/PanoCompassPlugin/Controller.js +15 -14
- package/libs/PanoCompassPlugin/index.js +16 -15
- package/libs/PanoDoorLabelPlugin/BaseController.js +15 -14
- package/libs/PanoDoorLabelPlugin/Controller.js +15 -14
- package/libs/PanoDoorLabelPlugin/index.js +16 -15
- package/libs/PanoMeasurePlugin/Components/Controller0.js +12 -11
- package/libs/PanoMeasurePlugin/Components/Controller1.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/EditController.js +12 -11
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +13 -12
- package/libs/PanoMeasurePlugin/Controller/index.js +10 -9
- package/libs/PanoMeasurePlugin/Model/area.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +12 -11
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -11
- package/libs/PanoMeasurePlugin/index.js +21 -20
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +12 -11
- package/libs/PanoSpatialTagPlugin/Plugin.js +14 -13
- package/libs/PanoSpatialTagPlugin/index.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +14 -13
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +13 -12
- package/libs/PanoTagPlugin/Components/Tag/index.js +13 -12
- package/libs/PanoTagPlugin/Components/TagContainer.js +13 -12
- package/libs/PanoTagPlugin/Components/TagItem.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +34 -33
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +13 -12
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +15 -14
- package/libs/PanoTagPlugin/controller/TagRender.js +12 -11
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -12
- package/libs/PanoTagPlugin/controller/index.js +22 -16
- package/libs/PanoTagPlugin/index.js +21 -20
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +14 -13
- package/libs/PanoVideoPlugin/Controller.js +15 -14
- package/libs/PanoVideoPlugin/VideoMeshController.js +30 -29
- package/libs/PanoVideoPlugin/index.js +18 -17
- package/libs/PipelinePlugin/Controller.js +14 -13
- package/libs/PipelinePlugin/index.js +16 -15
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +21 -20
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +15 -14
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +13 -12
- package/libs/Sculpt/Meshes/Box.js +11 -9
- package/libs/Sculpt/Meshes/Cylinder.js +17 -15
- package/libs/Sculpt/Meshes/Line.d.ts +1 -0
- package/libs/Sculpt/Meshes/Line.js +84 -78
- package/libs/Sculpt/Meshes/Point.js +14 -12
- package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polyline.js +69 -74
- package/libs/Sculpt/Meshes/Rectangle.js +6 -4
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +1 -0
- package/libs/Sculpt/Objects/Base/index.js +5 -5
- package/libs/Sculpt/Objects/Line/Editor.js +17 -15
- package/libs/Sculpt/Objects/Polygon/index.js +22 -22
- package/libs/Sculpt/Objects/Rectangle/Editor.js +2 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +79 -69
- package/libs/Sculpt/index.js +15 -14
- package/libs/Sculpt/utils/three/ColoredMesh.js +6 -4
- package/libs/base/BasePlugin.js +16 -14
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/ModelFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +15 -14
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -15
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +13 -12
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +16 -15
- package/libs/floorplan/index.js +3 -1
- package/libs/index.js +12 -12
- package/libs/shared-utils/five/index.js +5 -3
- package/libs/shared-utils/five/lookObject.js +20 -18
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +4 -1
- package/libs/shared-utils/three/applyObjectMatrixWorld.js +4 -6
- package/libs/shared-utils/three/index.js +3 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
2
|
var b = Object.getOwnPropertySymbols;
|
|
3
3
|
var k = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var g = (s, o, e) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, u = (s, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
k.call(o, e) &&
|
|
6
|
+
k.call(o, e) && g(s, e, o[e]);
|
|
7
7
|
if (b)
|
|
8
8
|
for (var e of b(o))
|
|
9
|
-
S.call(o, e) &&
|
|
9
|
+
S.call(o, e) && g(s, e, o[e]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
import * as
|
|
14
|
-
import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as
|
|
15
|
-
import { LineGeometry as
|
|
12
|
+
var l = (s, o, e) => (g(s, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
import * as a from "three";
|
|
14
|
+
import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as p, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
|
|
15
|
+
import { LineGeometry as f, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
|
|
16
16
|
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
17
17
|
import { IObject3D as I } from "../../shared-utils/three/IObject3D.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
|
-
import { centerPoint as
|
|
20
|
+
import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
|
|
21
|
+
import { LightTag as R } from "../../shared-utils/tag.js";
|
|
22
|
+
import { globalModules as W } from "../utils/Modules/Global.js";
|
|
23
|
+
import { removeAllTag as O } from "../utils/removeAllTag.js";
|
|
24
|
+
import { getLengthHTML as P } from "../utils/Meshes/getLengthHTML.js";
|
|
25
|
+
import { applyObjectMatrixWorld as E } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
21
26
|
import "../../shared-utils/three/THREESphere.js";
|
|
22
27
|
import "animejs";
|
|
23
28
|
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
24
29
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
|
-
|
|
26
|
-
import { globalModules as x } from "../utils/Modules/Global.js";
|
|
27
|
-
import { removeAllTag as P } from "../utils/removeAllTag.js";
|
|
28
|
-
import { getLengthHTML as V } from "../utils/Meshes/getLengthHTML.js";
|
|
29
|
-
new d.Vector2();
|
|
30
|
-
class E extends w {
|
|
30
|
+
class T extends w {
|
|
31
31
|
constructor(e) {
|
|
32
|
-
var
|
|
32
|
+
var t, i;
|
|
33
33
|
super(e);
|
|
34
|
-
|
|
35
|
-
c(e == null ? void 0 : e.color) && (this.three_color = (
|
|
36
|
-
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(
|
|
37
|
-
}), this.setDashed((
|
|
34
|
+
l(this, "_three_color");
|
|
35
|
+
c(e == null ? void 0 : e.color) && (this.three_color = (t = e == null ? void 0 : e.color) != null ? t : 16777215), Object.keys(e).forEach((n) => {
|
|
36
|
+
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(n) || n in this && (this[n] = e[n]);
|
|
37
|
+
}), this.setDashed((i = e == null ? void 0 : e.dashed) != null ? i : !1);
|
|
38
38
|
}
|
|
39
39
|
get three_color() {
|
|
40
40
|
return this._three_color;
|
|
@@ -46,44 +46,44 @@ class E extends w {
|
|
|
46
46
|
this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
50
|
-
constructor(e,
|
|
51
|
-
super(e,
|
|
52
|
-
|
|
49
|
+
class _ extends H {
|
|
50
|
+
constructor(e, t) {
|
|
51
|
+
super(e, t);
|
|
52
|
+
l(this, "name", "Line3");
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
class
|
|
55
|
+
class $ extends I {
|
|
56
56
|
constructor(e) {
|
|
57
|
-
var
|
|
57
|
+
var r, h, d, y, L;
|
|
58
58
|
super();
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
l(this, "name", "LineMesh");
|
|
60
|
+
l(this, "points");
|
|
61
|
+
l(this, "lengthDoms", []);
|
|
62
|
+
l(this, "highlighted", !1);
|
|
63
|
+
l(this, "line");
|
|
64
|
+
l(this, "backLine");
|
|
65
|
+
l(this, "opacityBeforeHighlight");
|
|
66
|
+
l(this, "paramsStyle", {});
|
|
67
67
|
this.paramsStyle = e != null ? e : {};
|
|
68
|
-
const
|
|
69
|
-
color: new
|
|
70
|
-
linewidth: (
|
|
68
|
+
const t = new f(), i = new T({
|
|
69
|
+
color: new a.Color((r = e == null ? void 0 : e.lineColor) != null ? r : m),
|
|
70
|
+
linewidth: (h = e == null ? void 0 : e.lineWidth) != null ? h : p,
|
|
71
71
|
dashScale: 40,
|
|
72
|
-
opacity: (
|
|
72
|
+
opacity: (d = e == null ? void 0 : e.opacity) != null ? d : 1,
|
|
73
73
|
transparent: !0,
|
|
74
|
-
dashed: (
|
|
75
|
-
}),
|
|
76
|
-
color: new
|
|
77
|
-
linewidth:
|
|
78
|
-
dashScale:
|
|
79
|
-
opacity:
|
|
74
|
+
dashed: (y = e == null ? void 0 : e.dashed) != null ? y : !1
|
|
75
|
+
}), n = new T({
|
|
76
|
+
color: new a.Color((L = e == null ? void 0 : e.lineColor) != null ? L : m),
|
|
77
|
+
linewidth: i.linewidth * 0.9,
|
|
78
|
+
dashScale: i.dashScale,
|
|
79
|
+
opacity: i.opacity * 0.8,
|
|
80
80
|
depthTest: !1,
|
|
81
81
|
depthWrite: !1,
|
|
82
82
|
transparent: !0,
|
|
83
|
-
resolution:
|
|
83
|
+
resolution: i.resolution
|
|
84
84
|
});
|
|
85
|
-
this.line = new
|
|
86
|
-
|
|
85
|
+
this.line = new _(t, i), this.backLine = new _(t, n), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
|
|
86
|
+
O(this);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
get style() {
|
|
@@ -100,7 +100,7 @@ class X extends I {
|
|
|
100
100
|
return this.line.material.linewidth;
|
|
101
101
|
}
|
|
102
102
|
get color() {
|
|
103
|
-
return new
|
|
103
|
+
return new a.Color(this.line.material.three_color);
|
|
104
104
|
}
|
|
105
105
|
get dashed() {
|
|
106
106
|
return this.line.material.dashed;
|
|
@@ -111,27 +111,30 @@ class X extends I {
|
|
|
111
111
|
get occlusionMode() {
|
|
112
112
|
return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
|
|
113
113
|
}
|
|
114
|
+
updateMatrixWorld(e) {
|
|
115
|
+
super.updateMatrixWorld(e), this.updateLengthItems();
|
|
116
|
+
}
|
|
114
117
|
setPoints(e) {
|
|
115
|
-
const
|
|
116
|
-
if (this.points =
|
|
117
|
-
this.line.geometry = new
|
|
118
|
+
const t = e.map(C).filter(c);
|
|
119
|
+
if (this.points = t, t.length < 2) {
|
|
120
|
+
this.line.geometry = new f(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
|
|
118
121
|
return;
|
|
119
122
|
}
|
|
120
123
|
this.addIfNotExists(this.line, this.backLine);
|
|
121
|
-
const
|
|
122
|
-
|
|
124
|
+
const i = t.flatMap((n) => [n.x, n.y, n.z]);
|
|
125
|
+
i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new f(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
|
|
123
126
|
}
|
|
124
|
-
setResolution(e,
|
|
125
|
-
const
|
|
126
|
-
(
|
|
127
|
-
const
|
|
128
|
-
(
|
|
127
|
+
setResolution(e, t) {
|
|
128
|
+
const i = this.line.material.resolution;
|
|
129
|
+
(i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
|
|
130
|
+
const n = this.backLine.material.resolution;
|
|
131
|
+
(n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
|
|
129
132
|
}
|
|
130
133
|
setStyle(e) {
|
|
131
|
-
var
|
|
132
|
-
this.paramsStyle =
|
|
133
|
-
const
|
|
134
|
-
|
|
134
|
+
var n, r, h;
|
|
135
|
+
this.paramsStyle = u(u({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new a.Color(e.lineColor), this.backLine.material.three_color = new a.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.2), this.updateLengthItems();
|
|
136
|
+
const t = (n = e.occlusionVisibility) != null ? n : this.paramsStyle.occlusionVisibility, i = (h = (r = e.occlusionMode) != null ? r : this.paramsStyle.occlusionMode) != null ? h : "translucence";
|
|
137
|
+
t ? i === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : i === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
|
|
135
138
|
}
|
|
136
139
|
highlight() {
|
|
137
140
|
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * D, this.backLine.material.opacity = this.backLine.material.opacity * D, this.needsRender = !0);
|
|
@@ -140,24 +143,27 @@ class X extends I {
|
|
|
140
143
|
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
|
|
141
144
|
}
|
|
142
145
|
updateLengthItems() {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
146
|
+
if (!this.points || this.points.length < 2) {
|
|
147
|
+
this.lengthDoms.forEach((e) => e.destroy()), this.lengthDoms = [];
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
if (this.paramsStyle.lengthEnable) {
|
|
151
|
+
const e = E(this, this.points).map((t, i) => {
|
|
152
|
+
if (i !== 0)
|
|
153
|
+
return [E(this, this.points[i - 1]), t];
|
|
154
|
+
}).filter(c);
|
|
155
|
+
e.forEach(([t, i], n) => {
|
|
156
|
+
var h;
|
|
157
|
+
const r = x(t, i);
|
|
158
|
+
this.lengthDoms[n] = (h = this.lengthDoms[n]) != null ? h : (() => {
|
|
159
|
+
const d = new R(W.five);
|
|
160
|
+
return d.intersectCheck = !1, d;
|
|
161
|
+
})(), this.lengthDoms[n].setPosition(r, [t, i]), this.lengthDoms[n].container.innerHTML = P(t.distanceTo(i).toFixed(2) + "m");
|
|
162
|
+
}), this.lengthDoms.length > e.length && (this.lengthDoms.slice(e.length).forEach((t) => t.destroy()), this.lengthDoms.length = e.length);
|
|
157
163
|
} else
|
|
158
|
-
this.lengthDoms.forEach((
|
|
164
|
+
this.lengthDoms.forEach((e) => e.destroy()), this.lengthDoms = [];
|
|
159
165
|
}
|
|
160
166
|
}
|
|
161
167
|
export {
|
|
162
|
-
|
|
168
|
+
$ as LineMesh
|
|
163
169
|
};
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
var C = Object.defineProperty, N = Object.defineProperties;
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var M = Object.getOwnPropertySymbols;
|
|
4
|
-
var k = Object.prototype.hasOwnProperty,
|
|
4
|
+
var k = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var n = (i, e, t) => e in i ? C(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
k.call(e, t) && n(i, t, e[t]);
|
|
8
8
|
if (M)
|
|
9
9
|
for (var t of M(e))
|
|
10
|
-
|
|
10
|
+
m.call(e, t) && n(i, t, e[t]);
|
|
11
11
|
return i;
|
|
12
12
|
}, g = (i, e) => N(i, P(e));
|
|
13
13
|
var A = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as o from "three";
|
|
15
|
-
import { DEFAULT_HIGHLIGHT_OPACITY as
|
|
16
|
-
import { IObject3D as
|
|
17
|
-
import { anyPositionToVector3 as
|
|
15
|
+
import { DEFAULT_HIGHLIGHT_OPACITY as B } from "../typings/style.js";
|
|
16
|
+
import { IObject3D as b } from "../../shared-utils/three/IObject3D.js";
|
|
17
|
+
import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
20
|
-
import "
|
|
20
|
+
import "@realsee/five/line";
|
|
21
|
+
import "../../shared-utils/tag.js";
|
|
22
|
+
import "../utils/Modules/Global.js";
|
|
21
23
|
import "../../shared-utils/three/THREESphere.js";
|
|
22
24
|
import "animejs";
|
|
23
25
|
import { notNil as u } from "../../shared-utils/isNil.js";
|
|
24
26
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
|
-
const
|
|
27
|
+
const p = "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==";
|
|
26
28
|
let w = null;
|
|
27
|
-
class
|
|
29
|
+
class Q extends b {
|
|
28
30
|
constructor(t) {
|
|
29
31
|
var f, a;
|
|
30
32
|
super();
|
|
@@ -39,7 +41,7 @@ class O extends E {
|
|
|
39
41
|
transparent: !0,
|
|
40
42
|
side: o.DoubleSide,
|
|
41
43
|
size: (f = t == null ? void 0 : t.size) != null ? f : 8,
|
|
42
|
-
map: w || (w = new o.TextureLoader().load(
|
|
44
|
+
map: w || (w = new o.TextureLoader().load(p)),
|
|
43
45
|
sizeAttenuation: !1
|
|
44
46
|
}, r = new o.PointsMaterial(g(c({}, d), {
|
|
45
47
|
color: (a = t == null ? void 0 : t.color) != null ? a : 16777215,
|
|
@@ -52,7 +54,7 @@ class O extends E {
|
|
|
52
54
|
depthTest: !1,
|
|
53
55
|
opacity: 0.5
|
|
54
56
|
})), s = new o.Points(l, r), h = new o.Points(l, V);
|
|
55
|
-
this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(
|
|
57
|
+
this.fontMesh = s, this.backgroundMesh = h, s.name = "FontMesh", h.name = "BackgroundMesh", s.renderOrder = 10, h.renderOrder = 0, this.add(s, h), t != null && t.point && this.position.copy(E(t.point)), t && this.setStyle(t);
|
|
56
58
|
}
|
|
57
59
|
get color() {
|
|
58
60
|
return this.fontMesh.material.color;
|
|
@@ -64,12 +66,12 @@ class O extends E {
|
|
|
64
66
|
u(t.color) && (this.fontMesh.material.setValues({ color: t.color }), this.backgroundMesh.material.setValues({ color: t.color })), u(t.size) && (this.fontMesh.material.setValues({ side: t.size }), this.backgroundMesh.material.setValues({ side: t.size })), u(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));
|
|
65
67
|
}
|
|
66
68
|
highlight() {
|
|
67
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight *
|
|
69
|
+
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.fontMesh.material.opacity, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight * B }));
|
|
68
70
|
}
|
|
69
71
|
unhighlight() {
|
|
70
72
|
this.highlighted && (this.highlighted = !1, this.fontMesh.material.setValues({ opacity: this.opacityBeforeHighlight }));
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
export {
|
|
74
|
-
|
|
76
|
+
Q as PointMesh
|
|
75
77
|
};
|
|
@@ -1,124 +1,119 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var P = Object.defineProperty, S = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
|
+
var y = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (s, e, t) => e in s ? P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, h = (s, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
y.call(e, t) && m(s, t, e[t]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var t of a(e))
|
|
10
|
+
d.call(e, t) && m(s, t, e[t]);
|
|
11
11
|
return s;
|
|
12
|
-
}, c = (s, e) =>
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (s != null &&
|
|
18
|
-
for (var
|
|
19
|
-
e.indexOf(
|
|
20
|
-
return
|
|
12
|
+
}, c = (s, e) => S(s, M(e));
|
|
13
|
+
var f = (s, e) => {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var i in s)
|
|
16
|
+
y.call(s, i) && e.indexOf(i) < 0 && (t[i] = s[i]);
|
|
17
|
+
if (s != null && a)
|
|
18
|
+
for (var i of a(s))
|
|
19
|
+
e.indexOf(i) < 0 && d.call(s, i) && (t[i] = s[i]);
|
|
20
|
+
return t;
|
|
21
21
|
};
|
|
22
|
-
var l = (s, e,
|
|
23
|
-
import { anyPositionToVector3 as
|
|
24
|
-
import { IObject3D as
|
|
25
|
-
import * as
|
|
22
|
+
var l = (s, e, t) => (m(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
23
|
+
import { anyPositionToVector3 as b } from "../../shared-utils/positionToVector3.js";
|
|
24
|
+
import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
|
|
25
|
+
import * as E from "three";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
28
|
-
import "
|
|
28
|
+
import "@realsee/five/line";
|
|
29
|
+
import "../../shared-utils/tag.js";
|
|
30
|
+
import "../utils/Modules/Global.js";
|
|
29
31
|
import "../../shared-utils/three/THREESphere.js";
|
|
30
32
|
import "animejs";
|
|
31
|
-
import { notNil as
|
|
33
|
+
import { notNil as V } from "../../shared-utils/isNil.js";
|
|
32
34
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
33
|
-
import { LineWithDotsMesh as
|
|
34
|
-
import { closeVectors as
|
|
35
|
-
class
|
|
36
|
-
constructor(
|
|
35
|
+
import { LineWithDotsMesh as W } from "./LineWithDots.js";
|
|
36
|
+
import { closeVectors as w } from "../../shared-utils/three/closeVectors.js";
|
|
37
|
+
class g extends D {
|
|
38
|
+
constructor(t) {
|
|
37
39
|
super();
|
|
38
40
|
l(this, "name", "PolylineBaseMesh");
|
|
39
41
|
l(this, "lines", []);
|
|
40
42
|
l(this, "withDots");
|
|
41
43
|
l(this, "paramsStyle");
|
|
42
|
-
const
|
|
43
|
-
this.withDots =
|
|
44
|
+
const r = t, { withDots: i, points: o } = r, n = f(r, ["withDots", "points"]);
|
|
45
|
+
this.withDots = i != null ? i : !0, o && this.setPoints(o), n && this.setStyle(n);
|
|
44
46
|
}
|
|
45
47
|
get style() {
|
|
48
|
+
var t;
|
|
46
49
|
return {
|
|
47
50
|
lineColor: this.lineColor,
|
|
48
51
|
lineWidth: this.lineWidth,
|
|
49
52
|
dashed: this.dashed,
|
|
50
53
|
occlusionVisibility: this.occlusionVisibility,
|
|
51
|
-
occlusionMode: this.occlusionMode
|
|
54
|
+
occlusionMode: this.occlusionMode,
|
|
55
|
+
lengthEnable: (t = this.paramsStyle) == null ? void 0 : t.lengthEnable
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
get lineColor() {
|
|
55
|
-
var
|
|
56
|
-
return (o = (
|
|
59
|
+
var t, i, o;
|
|
60
|
+
return (o = (t = this.lines[0]) == null ? void 0 : t.color) != null ? o : (i = this.paramsStyle) != null && i.lineColor ? new E.Color(this.paramsStyle.lineColor) : void 0;
|
|
57
61
|
}
|
|
58
62
|
get lineWidth() {
|
|
59
|
-
var
|
|
60
|
-
return (o = (
|
|
63
|
+
var t, i, o;
|
|
64
|
+
return (o = (t = this.lines[0]) == null ? void 0 : t.lineWidth) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.lineWidth;
|
|
61
65
|
}
|
|
62
66
|
get dashed() {
|
|
63
|
-
var
|
|
64
|
-
return (o = (
|
|
67
|
+
var t, i, o;
|
|
68
|
+
return (o = (t = this.lines[0]) == null ? void 0 : t.dashed) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.dashed;
|
|
65
69
|
}
|
|
66
70
|
get occlusionVisibility() {
|
|
67
|
-
var
|
|
68
|
-
return (o = (
|
|
71
|
+
var t, i, o;
|
|
72
|
+
return (o = (t = this.lines[0]) == null ? void 0 : t.occlusionVisibility) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.occlusionVisibility;
|
|
69
73
|
}
|
|
70
74
|
get occlusionMode() {
|
|
71
|
-
var
|
|
72
|
-
return (o = (
|
|
75
|
+
var t, i, o;
|
|
76
|
+
return (o = (t = this.lines[0]) == null ? void 0 : t.occlusionMode) != null ? o : (i = this.paramsStyle) == null ? void 0 : i.occlusionMode;
|
|
73
77
|
}
|
|
74
78
|
get points() {
|
|
75
|
-
var
|
|
76
|
-
return this.lines.map((
|
|
79
|
+
var t;
|
|
80
|
+
return this.lines.map((i) => i.points[0]).concat((t = this.lines.at(-1)) == null ? void 0 : t.points[1]).filter(Boolean);
|
|
77
81
|
}
|
|
78
|
-
setPoints(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
lineWidth: (u = (n = this.paramsStyle) == null ? void 0 : n.lineWidth) != null ? u : this.lineWidth,
|
|
84
|
-
lineColor: (f = (y = this.paramsStyle) == null ? void 0 : y.lineColor) != null ? f : this.lineColor,
|
|
85
|
-
dashed: (S = (g = this.paramsStyle) == null ? void 0 : g.dashed) != null ? S : this.dashed,
|
|
86
|
-
occlusionVisibility: (P = (M = this.paramsStyle) == null ? void 0 : M.occlusionVisibility) != null ? P : this.occlusionVisibility,
|
|
87
|
-
occlusionMode: (W = (V = this.paramsStyle) == null ? void 0 : V.occlusionMode) != null ? W : this.occlusionMode
|
|
88
|
-
};
|
|
89
|
-
this.lines.length && this.lines.forEach((d) => d.removeFromParent()), this.lines = o.map((d, m) => {
|
|
90
|
-
const b = o[m + 1];
|
|
91
|
-
if (m !== 0 && b === void 0)
|
|
82
|
+
setPoints(t, i = { closed: !1 }) {
|
|
83
|
+
let o = t.map(b);
|
|
84
|
+
i.closed && (o = w(o)), this.lines.length && this.lines.forEach((n) => n.removeFromParent()), this.lines = o.map((n, r) => {
|
|
85
|
+
const p = o[r + 1];
|
|
86
|
+
if (r !== 0 && p === void 0)
|
|
92
87
|
return null;
|
|
93
|
-
const
|
|
94
|
-
pointVisibility: this.withDots ? { startPoint:
|
|
88
|
+
const u = new W(c(h({}, this.style), {
|
|
89
|
+
pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
|
|
95
90
|
}));
|
|
96
|
-
return
|
|
97
|
-
}).filter(
|
|
91
|
+
return u.setPoints([n, p]), u;
|
|
92
|
+
}).filter(V), this.add(...this.lines);
|
|
98
93
|
}
|
|
99
|
-
setStyle(
|
|
100
|
-
this.paramsStyle =
|
|
94
|
+
setStyle(t) {
|
|
95
|
+
this.paramsStyle = h(h({}, this.paramsStyle), t), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
|
|
101
96
|
}
|
|
102
97
|
highlight() {
|
|
103
|
-
this.lines.forEach((
|
|
98
|
+
this.lines.forEach((t) => t.highlight());
|
|
104
99
|
}
|
|
105
100
|
unhighlight() {
|
|
106
|
-
this.lines.forEach((
|
|
101
|
+
this.lines.forEach((t) => t.unhighlight());
|
|
107
102
|
}
|
|
108
103
|
}
|
|
109
|
-
class
|
|
110
|
-
constructor(...
|
|
111
|
-
super(c(
|
|
104
|
+
class q extends g {
|
|
105
|
+
constructor(...t) {
|
|
106
|
+
super(c(h({}, t[0]), { withDots: !1 }));
|
|
112
107
|
l(this, "name", "PolylineMesh");
|
|
113
108
|
}
|
|
114
109
|
}
|
|
115
|
-
class
|
|
116
|
-
constructor(...
|
|
117
|
-
super(c(
|
|
110
|
+
class z extends g {
|
|
111
|
+
constructor(...t) {
|
|
112
|
+
super(c(h({}, t[0]), { withDots: !0 }));
|
|
118
113
|
l(this, "name", "PolylineWithDotsMesh");
|
|
119
114
|
}
|
|
120
115
|
}
|
|
121
116
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
q as PolylineMesh,
|
|
118
|
+
z as PolylineWithDotsMesh
|
|
124
119
|
};
|
|
@@ -5,7 +5,9 @@ import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.
|
|
|
5
5
|
import "three";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
|
-
import "
|
|
8
|
+
import "@realsee/five/line";
|
|
9
|
+
import "../../shared-utils/tag.js";
|
|
10
|
+
import "../utils/Modules/Global.js";
|
|
9
11
|
import "../../shared-utils/three/THREESphere.js";
|
|
10
12
|
import "animejs";
|
|
11
13
|
import { notNil as h } from "../../shared-utils/isNil.js";
|
|
@@ -14,7 +16,7 @@ import { PolygonMesh as u } from "./Polygon.js";
|
|
|
14
16
|
import { RectangleGeometry as g } from "../utils/three/RectangleGeometry.js";
|
|
15
17
|
import { getBetterNormal as f } from "../utils/getBetterNormal.js";
|
|
16
18
|
import { Sculpt as d } from "../index.js";
|
|
17
|
-
class
|
|
19
|
+
class U extends u {
|
|
18
20
|
constructor(t) {
|
|
19
21
|
super(t);
|
|
20
22
|
i(this, "name", "RectangleMesh");
|
|
@@ -36,12 +38,12 @@ class S extends u {
|
|
|
36
38
|
return;
|
|
37
39
|
}
|
|
38
40
|
if (t.length === 3) {
|
|
39
|
-
const [
|
|
41
|
+
const [m, s, n] = o, p = m.clone().add(n).sub(s);
|
|
40
42
|
o.push(p);
|
|
41
43
|
}
|
|
42
44
|
this.up.copy(f(o, d.modules.five.camera.position)), this.points = o, this.geometry = new g(o), this.planeHelperNeedUpdate = !0;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
export {
|
|
46
|
-
|
|
48
|
+
U as RectangleMesh
|
|
47
49
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
2
|
var u = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var n = (s, t, e) => t in s ?
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (s, t, e) => t in s ? a(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
m.call(t, e) && n(s, e, t[e]);
|
|
7
7
|
if (u)
|
|
8
8
|
for (var e of u(t))
|
|
9
9
|
g.call(t, e) && n(s, e, t[e]);
|
|
@@ -81,7 +81,7 @@ class D extends b {
|
|
|
81
81
|
unhighlight() {
|
|
82
82
|
}
|
|
83
83
|
applyObjectMatrixWorld(e) {
|
|
84
|
-
return y(this, e);
|
|
84
|
+
return this.updateMatrixWorld(), y(this, e);
|
|
85
85
|
}
|
|
86
86
|
applyObjectQuaternion(e) {
|
|
87
87
|
const r = this.quaternion.clone();
|