@realsee/dnalogel 3.47.5 → 3.47.7
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/index.cjs.js +47 -47
- package/dist/index.js +3909 -3904
- package/dist/index.umd.js +38 -38
- package/dist/shared-utils/tag.d.ts +4 -1
- package/libs/AreaMakerPlugin/index.js +4 -4
- package/libs/AreaMakerPlugin/utils/Item.js +4 -4
- package/libs/CSS3DRenderPlugin/Controller.js +4 -4
- package/libs/CSS3DRenderPlugin/index.js +5 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -4
- package/libs/CruisePlugin/BaseController.js +4 -4
- package/libs/CruisePlugin/index.js +4 -4
- package/libs/CurrentPanoImagePlugin/index.js +4 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -5
- package/libs/GuideLinePlugin/index.js +4 -4
- package/libs/ModelMakerPlugin/index.js +4 -4
- package/libs/ModelMakerPlugin/item/baseItem.js +10 -6
- package/libs/ModelMakerPlugin/item/boxItem.js +6 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +6 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +13 -9
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -4
- package/libs/ModelTVVideoPlugin/index.js +4 -4
- package/libs/Object3DHelperPlugin/Controller.js +4 -4
- package/libs/Object3DHelperPlugin/index.js +4 -4
- package/libs/PanoCompassPlugin/Controller.js +4 -4
- package/libs/PanoCompassPlugin/index.js +4 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +4 -4
- package/libs/PanoDoorLabelPlugin/Controller.js +4 -4
- package/libs/PanoDoorLabelPlugin/index.js +4 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -5
- package/libs/PanoMeasurePlugin/Components/Controller1.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/index.js +4 -4
- package/libs/PanoMeasurePlugin/Model/area.js +5 -5
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +5 -5
- package/libs/PanoMeasurePlugin/index.js +5 -5
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -5
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -4
- package/libs/PanoSpatialTagPlugin/index.js +4 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +5 -5
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -5
- package/libs/PanoTagPlugin/Components/Tag/index.js +5 -5
- package/libs/PanoTagPlugin/Components/TagContainer.js +5 -5
- package/libs/PanoTagPlugin/Components/TagItem.js +5 -5
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +4 -4
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +4 -4
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +5 -5
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -4
- package/libs/PanoTagPlugin/controller/index.js +5 -5
- package/libs/PanoTagPlugin/index.js +5 -5
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +5 -5
- package/libs/PanoVideoPlugin/Controller.js +5 -5
- package/libs/PanoVideoPlugin/VideoMeshController.js +5 -5
- package/libs/PanoVideoPlugin/index.js +5 -5
- package/libs/PipelinePlugin/Controller.js +4 -4
- package/libs/PipelinePlugin/index.js +4 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +5 -5
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +5 -5
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +5 -5
- package/libs/Sculpt/Meshes/Line.js +53 -57
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -4
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -4
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -4
- package/libs/index.js +5 -5
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +4 -1
- package/libs/shared-utils/tag.js +54 -45
- package/package.json +1 -1
|
@@ -32,6 +32,11 @@ import "../shared-utils/tag.js";
|
|
|
32
32
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
33
33
|
import "../shared-utils/five/getFiveModel.js";
|
|
34
34
|
import "../shared-utils/three/raycaster.js";
|
|
35
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
36
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
37
|
+
import "../shared-utils/Subscribe.js";
|
|
38
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
39
|
+
import "../shared-utils/five/transformPosition.js";
|
|
35
40
|
import "../Sculpt/utils/Modules/Global.js";
|
|
36
41
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
37
42
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -48,14 +53,9 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
|
48
53
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
49
54
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
50
55
|
import "../CSS3DRenderPlugin/utils/even.js";
|
|
51
|
-
import "../shared-utils/Subscribe.js";
|
|
52
56
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
53
57
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
54
58
|
import "../shared-utils/three/getObjectVisible.js";
|
|
55
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
56
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
57
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
58
|
-
import "../shared-utils/five/transformPosition.js";
|
|
59
59
|
import "../shared-utils/url/absoluteUrl.js";
|
|
60
60
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
61
61
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -22,15 +22,15 @@ import "../shared-utils/tag.js";
|
|
|
22
22
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
23
23
|
import "../shared-utils/five/getFiveModel.js";
|
|
24
24
|
import "../shared-utils/three/raycaster.js";
|
|
25
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
26
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
27
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
28
|
-
import "../base/BasePlugin.js";
|
|
29
|
-
import "../shared-utils/Subscribe.js";
|
|
30
25
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
31
26
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
27
|
+
import "../shared-utils/Subscribe.js";
|
|
32
28
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
33
29
|
import "../shared-utils/five/transformPosition.js";
|
|
30
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
31
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
32
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
33
|
+
import "../base/BasePlugin.js";
|
|
34
34
|
import "../shared-utils/url/absoluteUrl.js";
|
|
35
35
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
36
36
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -20,15 +20,15 @@ import "../shared-utils/tag.js";
|
|
|
20
20
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
21
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
22
|
import "../shared-utils/three/raycaster.js";
|
|
23
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
24
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
25
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
26
|
-
import "../base/BasePlugin.js";
|
|
27
|
-
import "../shared-utils/Subscribe.js";
|
|
28
23
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
29
24
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
25
|
+
import "../shared-utils/Subscribe.js";
|
|
30
26
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
31
27
|
import "../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../Sculpt/utils/Modules/Global.js";
|
|
29
|
+
import "../Sculpt/utils/Modules/Cursor.js";
|
|
30
|
+
import "../Object3DHelperPlugin/Controller.js";
|
|
31
|
+
import "../base/BasePlugin.js";
|
|
32
32
|
import "../shared-utils/url/absoluteUrl.js";
|
|
33
33
|
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -51,6 +51,10 @@ import "../shared-utils/tag.js";
|
|
|
51
51
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
52
52
|
import "../shared-utils/five/getFiveModel.js";
|
|
53
53
|
import "../shared-utils/three/raycaster.js";
|
|
54
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
55
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
56
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
57
|
+
import "../shared-utils/five/transformPosition.js";
|
|
54
58
|
import "../Sculpt/utils/Modules/Global.js";
|
|
55
59
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
56
60
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -70,10 +74,6 @@ import "../CSS3DRenderPlugin/utils/even.js";
|
|
|
70
74
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
71
75
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
72
76
|
import "../shared-utils/three/getObjectVisible.js";
|
|
73
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
74
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
75
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
76
|
-
import "../shared-utils/five/transformPosition.js";
|
|
77
77
|
import "../shared-utils/url/absoluteUrl.js";
|
|
78
78
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
79
79
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -20,6 +20,10 @@ import "../shared-utils/tag.js";
|
|
|
20
20
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
21
21
|
import "../shared-utils/five/getFiveModel.js";
|
|
22
22
|
import "../shared-utils/three/raycaster.js";
|
|
23
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
24
|
+
import "../shared-utils/Utils/BaseUtil.js";
|
|
25
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
26
|
+
import "../shared-utils/five/transformPosition.js";
|
|
23
27
|
import "../Sculpt/utils/Modules/Global.js";
|
|
24
28
|
import "../Sculpt/utils/Modules/Cursor.js";
|
|
25
29
|
import "../Object3DHelperPlugin/Controller.js";
|
|
@@ -39,10 +43,6 @@ import "../CSS3DRenderPlugin/utils/even.js";
|
|
|
39
43
|
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
40
44
|
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
41
45
|
import "../shared-utils/three/getObjectVisible.js";
|
|
42
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
43
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
44
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
45
|
-
import "../shared-utils/five/transformPosition.js";
|
|
46
46
|
import "../shared-utils/url/absoluteUrl.js";
|
|
47
47
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
48
48
|
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -21,15 +21,15 @@ import "../../../shared-utils/tag.js";
|
|
|
21
21
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
22
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
23
|
import "../../../shared-utils/three/raycaster.js";
|
|
24
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
25
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
26
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
27
|
-
import "../../../base/BasePlugin.js";
|
|
28
|
-
import "../../../shared-utils/Subscribe.js";
|
|
29
24
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
30
25
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
|
+
import "../../../shared-utils/Subscribe.js";
|
|
31
27
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
32
28
|
import "../../../shared-utils/five/transformPosition.js";
|
|
29
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
32
|
+
import "../../../base/BasePlugin.js";
|
|
33
33
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
34
34
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
35
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -21,15 +21,15 @@ import "../../../shared-utils/tag.js";
|
|
|
21
21
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
22
22
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
23
23
|
import "../../../shared-utils/three/raycaster.js";
|
|
24
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
25
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
26
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
27
|
-
import "../../../base/BasePlugin.js";
|
|
28
|
-
import "../../../shared-utils/Subscribe.js";
|
|
29
24
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
30
25
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
|
+
import "../../../shared-utils/Subscribe.js";
|
|
31
27
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
32
28
|
import "../../../shared-utils/five/transformPosition.js";
|
|
29
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
30
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
31
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
32
|
+
import "../../../base/BasePlugin.js";
|
|
33
33
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
34
34
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
35
35
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -46,15 +46,15 @@ import "../../../shared-utils/tag.js";
|
|
|
46
46
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
47
47
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
48
48
|
import "../../../shared-utils/three/raycaster.js";
|
|
49
|
-
import "../../../Sculpt/utils/Modules/Global.js";
|
|
50
|
-
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
51
|
-
import "../../../Object3DHelperPlugin/Controller.js";
|
|
52
|
-
import "../../../base/BasePlugin.js";
|
|
53
|
-
import "../../../shared-utils/Subscribe.js";
|
|
54
49
|
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
55
50
|
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
51
|
+
import "../../../shared-utils/Subscribe.js";
|
|
56
52
|
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
57
53
|
import "../../../shared-utils/five/transformPosition.js";
|
|
54
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
55
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
56
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
57
|
+
import "../../../base/BasePlugin.js";
|
|
58
58
|
import "../../../shared-utils/url/absoluteUrl.js";
|
|
59
59
|
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
60
60
|
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var b = Object.getOwnPropertySymbols;
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var u = (s, o, e) => o in s ? _(s, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[o] = e, f = (s, o) => {
|
|
5
5
|
for (var e in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
S.call(o, e) && u(s, e, o[e]);
|
|
7
|
+
if (b)
|
|
8
|
+
for (var e of b(o))
|
|
9
|
+
k.call(o, e) && u(s, e, o[e]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var h = (s, o, e) => (u(s, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
13
|
import * as d from "three";
|
|
14
|
-
import { DEFAULT_LINE_COLOR as
|
|
15
|
-
import { LineGeometry as
|
|
16
|
-
import { anyPositionToVector3 as
|
|
17
|
-
import { IObject3D as
|
|
14
|
+
import { DEFAULT_LINE_COLOR as m, DEFAULT_LINE_WIDTH as M, DEFAULT_HIGHLIGHT_OPACITY as D } from "../typings/style.js";
|
|
15
|
+
import { LineGeometry as y, LineMaterial as w, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
|
|
16
|
+
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
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 R } from "../../shared-utils/three/centerPoint.js";
|
|
21
21
|
import "../../shared-utils/three/THREESphere.js";
|
|
22
22
|
import "animejs";
|
|
23
23
|
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
24
24
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
|
-
import { LightTag as
|
|
26
|
-
import { globalModules as
|
|
27
|
-
import { removeAllTag as
|
|
28
|
-
import { getLengthHTML as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class x extends V {
|
|
25
|
+
import { LightTag as p } from "../../shared-utils/tag.js";
|
|
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 {
|
|
32
31
|
constructor(e) {
|
|
33
32
|
var n, t;
|
|
34
33
|
super(e);
|
|
35
|
-
|
|
34
|
+
h(this, "_three_color");
|
|
36
35
|
c(e == null ? void 0 : e.color) && (this.three_color = (n = e == null ? void 0 : e.color) != null ? n : 16777215), Object.keys(e).forEach((i) => {
|
|
37
36
|
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(i) || i in this && (this[i] = e[i]);
|
|
38
37
|
}), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
|
|
@@ -47,34 +46,34 @@ class x extends V {
|
|
|
47
46
|
this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
class
|
|
49
|
+
class T extends H {
|
|
51
50
|
constructor(e, n) {
|
|
52
51
|
super(e, n);
|
|
53
|
-
|
|
52
|
+
h(this, "name", "Line3");
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
class
|
|
55
|
+
class X extends I {
|
|
57
56
|
constructor(e) {
|
|
58
|
-
var l,
|
|
57
|
+
var l, r, g, a, L;
|
|
59
58
|
super();
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
h(this, "name", "LineMesh");
|
|
60
|
+
h(this, "points");
|
|
61
|
+
h(this, "lengthDoms", []);
|
|
62
|
+
h(this, "highlighted", !1);
|
|
63
|
+
h(this, "line");
|
|
64
|
+
h(this, "backLine");
|
|
65
|
+
h(this, "opacityBeforeHighlight");
|
|
66
|
+
h(this, "paramsStyle", {});
|
|
68
67
|
this.paramsStyle = e != null ? e : {};
|
|
69
|
-
const n = new
|
|
70
|
-
color: new d.Color((l = e == null ? void 0 : e.lineColor) != null ? l :
|
|
71
|
-
linewidth: (
|
|
68
|
+
const n = new y(), t = new E({
|
|
69
|
+
color: new d.Color((l = e == null ? void 0 : e.lineColor) != null ? l : m),
|
|
70
|
+
linewidth: (r = e == null ? void 0 : e.lineWidth) != null ? r : M,
|
|
72
71
|
dashScale: 40,
|
|
73
|
-
opacity: (
|
|
72
|
+
opacity: (g = e == null ? void 0 : e.opacity) != null ? g : 1,
|
|
74
73
|
transparent: !0,
|
|
75
|
-
dashed: (
|
|
76
|
-
}), i = new
|
|
77
|
-
color: new d.Color((
|
|
74
|
+
dashed: (a = e == null ? void 0 : e.dashed) != null ? a : !1
|
|
75
|
+
}), i = new E({
|
|
76
|
+
color: new d.Color((L = e == null ? void 0 : e.lineColor) != null ? L : m),
|
|
78
77
|
linewidth: t.linewidth * 0.9,
|
|
79
78
|
dashScale: t.dashScale,
|
|
80
79
|
opacity: t.opacity * 0.8,
|
|
@@ -83,8 +82,8 @@ class he extends O {
|
|
|
83
82
|
transparent: !0,
|
|
84
83
|
resolution: t.resolution
|
|
85
84
|
});
|
|
86
|
-
this.line = new
|
|
87
|
-
|
|
85
|
+
this.line = new T(n, t), this.backLine = new T(n, i), 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
|
+
P(this);
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
89
|
get style() {
|
|
@@ -113,14 +112,14 @@ class he extends O {
|
|
|
113
112
|
return this.line.material.depthTest === !1 ? "depthTest" : "translucence";
|
|
114
113
|
}
|
|
115
114
|
setPoints(e) {
|
|
116
|
-
const n = e.map(
|
|
115
|
+
const n = e.map(C).filter(c);
|
|
117
116
|
if (this.points = n, n.length < 2) {
|
|
118
|
-
this.line.geometry = new
|
|
117
|
+
this.line.geometry = new y(), this.backLine.geometry = this.line.geometry, this.updateLengthItems();
|
|
119
118
|
return;
|
|
120
119
|
}
|
|
121
120
|
this.addIfNotExists(this.line, this.backLine);
|
|
122
121
|
const t = n.flatMap((i) => [i.x, i.y, i.z]);
|
|
123
|
-
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new
|
|
122
|
+
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new y(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateLengthItems(), this.needsRender = !0;
|
|
124
123
|
}
|
|
125
124
|
setResolution(e, n) {
|
|
126
125
|
const t = this.line.material.resolution;
|
|
@@ -129,13 +128,13 @@ class he extends O {
|
|
|
129
128
|
(i.x !== e || i.y !== n) && (i.set(e, n), this.needsRender = !0);
|
|
130
129
|
}
|
|
131
130
|
setStyle(e) {
|
|
132
|
-
var i, l,
|
|
133
|
-
this.paramsStyle =
|
|
134
|
-
const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (
|
|
131
|
+
var i, l, r;
|
|
132
|
+
this.paramsStyle = f(f({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new d.Color(e.lineColor), this.backLine.material.three_color = new d.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();
|
|
133
|
+
const n = (i = e.occlusionVisibility) != null ? i : this.paramsStyle.occlusionVisibility, t = (r = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? r : "translucence";
|
|
135
134
|
n ? t === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : t === "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;
|
|
136
135
|
}
|
|
137
136
|
highlight() {
|
|
138
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight *
|
|
137
|
+
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);
|
|
139
138
|
}
|
|
140
139
|
unhighlight() {
|
|
141
140
|
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.2, this.needsRender = !0);
|
|
@@ -147,18 +146,15 @@ class he extends O {
|
|
|
147
146
|
if (l !== 0)
|
|
148
147
|
return [this.points[l - 1], i];
|
|
149
148
|
}).filter(c)) != null ? n : [];
|
|
150
|
-
t.forEach(([i, l],
|
|
149
|
+
t.forEach(([i, l], r) => {
|
|
151
150
|
var a;
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
return Math.atan2(p, H) * (180 / Math.PI);
|
|
155
|
-
})();
|
|
156
|
-
this.lengthDoms[h] = (a = this.lengthDoms[h]) != null ? a : new F(L.five), this.lengthDoms[h].setPosition(f), this.lengthDoms[h].container.style.rotate = g + "deg", this.lengthDoms[h].container.innerHTML = z(i.distanceTo(l).toFixed(2) + "m");
|
|
151
|
+
const g = R(i, l);
|
|
152
|
+
this.lengthDoms[r] = (a = this.lengthDoms[r]) != null ? a : new p(x.five), this.lengthDoms[r].setPosition(g, [i, l]), this.lengthDoms[r].container.innerHTML = V(i.distanceTo(l).toFixed(2) + "m");
|
|
157
153
|
}), this.lengthDoms.length > t.length && (this.lengthDoms.slice(t.length).forEach((i) => i.destroy()), this.lengthDoms.length = t.length);
|
|
158
154
|
} else
|
|
159
155
|
this.lengthDoms.forEach((t) => t.destroy()), this.lengthDoms = [];
|
|
160
156
|
}
|
|
161
157
|
}
|
|
162
158
|
export {
|
|
163
|
-
|
|
159
|
+
X as LineMesh
|
|
164
160
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -56,6 +56,10 @@ import "../../shared-utils/tag.js";
|
|
|
56
56
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
57
57
|
import "../../shared-utils/five/getFiveModel.js";
|
|
58
58
|
import "../../shared-utils/three/raycaster.js";
|
|
59
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
60
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
61
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
62
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
59
63
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
60
64
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
61
65
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -75,10 +79,6 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
75
79
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
76
80
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
77
81
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
78
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
79
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
80
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
81
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
82
82
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
83
83
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
84
84
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -57,6 +57,10 @@ import "../../shared-utils/tag.js";
|
|
|
57
57
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
58
58
|
import "../../shared-utils/five/getFiveModel.js";
|
|
59
59
|
import "../../shared-utils/three/raycaster.js";
|
|
60
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
61
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
62
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
63
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
60
64
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
61
65
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
62
66
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -76,10 +80,6 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
76
80
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
77
81
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
78
82
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
79
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
80
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
81
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
82
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
83
83
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
84
84
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
85
85
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -66,6 +66,10 @@ import "../../shared-utils/tag.js";
|
|
|
66
66
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
67
67
|
import "../../shared-utils/five/getFiveModel.js";
|
|
68
68
|
import "../../shared-utils/three/raycaster.js";
|
|
69
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
70
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
71
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
72
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
69
73
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
70
74
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
71
75
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -85,10 +89,6 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
85
89
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
86
90
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
87
91
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
88
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
89
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
90
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
91
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
92
92
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
93
93
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
94
94
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -37,6 +37,10 @@ import "../../shared-utils/tag.js";
|
|
|
37
37
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
38
38
|
import "../../shared-utils/five/getFiveModel.js";
|
|
39
39
|
import "../../shared-utils/three/raycaster.js";
|
|
40
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
41
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
42
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
43
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
40
44
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
41
45
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
42
46
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -56,10 +60,6 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
56
60
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
57
61
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
62
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
59
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
60
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
61
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
62
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
63
63
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
64
64
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
65
65
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -55,6 +55,10 @@ import "../../shared-utils/tag.js";
|
|
|
55
55
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
56
56
|
import "../../shared-utils/five/getFiveModel.js";
|
|
57
57
|
import "../../shared-utils/three/raycaster.js";
|
|
58
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
59
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
60
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
61
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
58
62
|
import "../../Sculpt/utils/Modules/Global.js";
|
|
59
63
|
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
60
64
|
import "../../Object3DHelperPlugin/Controller.js";
|
|
@@ -74,10 +78,6 @@ import "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
74
78
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
75
79
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
76
80
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
77
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
78
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
79
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
80
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
81
81
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
82
82
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
83
83
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
package/libs/index.js
CHANGED
|
@@ -84,6 +84,11 @@ import "./shared-utils/tag.js";
|
|
|
84
84
|
import "./shared-utils/five/vector3ToScreen.js";
|
|
85
85
|
import "./shared-utils/five/getFiveModel.js";
|
|
86
86
|
import "./shared-utils/three/raycaster.js";
|
|
87
|
+
import "./shared-utils/Utils/FiveUtil.js";
|
|
88
|
+
import "./shared-utils/Utils/BaseUtil.js";
|
|
89
|
+
import "./shared-utils/Subscribe.js";
|
|
90
|
+
import "./shared-utils/Utils/WorkUtil.js";
|
|
91
|
+
import "./shared-utils/five/transformPosition.js";
|
|
87
92
|
import "./Sculpt/utils/Modules/Global.js";
|
|
88
93
|
import "./Sculpt/utils/Modules/Cursor.js";
|
|
89
94
|
import "./shared-utils/five/FiveDomEvents.js";
|
|
@@ -96,13 +101,8 @@ import "./shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
|
96
101
|
import "./shared-utils/three/Assets/index.js";
|
|
97
102
|
import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
98
103
|
import "./CSS3DRenderPlugin/utils/even.js";
|
|
99
|
-
import "./shared-utils/Subscribe.js";
|
|
100
104
|
import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
101
105
|
import "./base/BasePlugin.js";
|
|
102
|
-
import "./shared-utils/Utils/FiveUtil.js";
|
|
103
|
-
import "./shared-utils/Utils/BaseUtil.js";
|
|
104
|
-
import "./shared-utils/Utils/WorkUtil.js";
|
|
105
|
-
import "./shared-utils/five/transformPosition.js";
|
|
106
106
|
import "./shared-utils/url/absoluteUrl.js";
|
|
107
107
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
108
108
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.47.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.47.7",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -6,14 +6,17 @@ export declare class LightTag {
|
|
|
6
6
|
visible: boolean;
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
wrapper: HTMLElement;
|
|
9
|
+
positionsForRotate?: THREE.Vector3[];
|
|
9
10
|
private tagWrapper;
|
|
10
11
|
private five;
|
|
11
12
|
private originPosition?;
|
|
12
13
|
private transformedPosition?;
|
|
13
14
|
private disposer;
|
|
14
15
|
private config;
|
|
16
|
+
private fiveUtil;
|
|
15
17
|
constructor(five: Five, position?: AnyPosition, config?: {
|
|
16
18
|
wrapper?: HTMLElement;
|
|
19
|
+
positionsForRotate?: AnyPosition[];
|
|
17
20
|
});
|
|
18
21
|
show(): void;
|
|
19
22
|
hide(): void;
|
|
@@ -21,7 +24,7 @@ export declare class LightTag {
|
|
|
21
24
|
disable(): void;
|
|
22
25
|
destroy(): void;
|
|
23
26
|
setTransformMatrix(matrix: THREE.Matrix4): void;
|
|
24
|
-
setPosition(position: THREE.Vector3): void;
|
|
27
|
+
setPosition(position: THREE.Vector3, positionsForRotate?: THREE.Vector3[]): void;
|
|
25
28
|
updateScreenPosition(): void;
|
|
26
29
|
private onCameraUpdate;
|
|
27
30
|
private onFiveEveryReady;
|