@realsee/dnalogel 3.45.0 → 3.46.1
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 +6 -1
- package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29600 -29557
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +151 -78
- package/libs/AreaMakerPlugin/index.js +77 -4
- package/libs/AreaMakerPlugin/utils/Item.js +191 -111
- package/libs/CSS3DRenderPlugin/Controller.js +90 -29
- package/libs/CSS3DRenderPlugin/index.js +76 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
- package/libs/CruisePlugin/BaseController.js +122 -49
- package/libs/CruisePlugin/Move.js +74 -21
- package/libs/CruisePlugin/Work.js +99 -46
- package/libs/CruisePlugin/index.js +80 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
- package/libs/CurrentPanoImagePlugin/index.js +77 -4
- package/libs/GuideLinePlugin/Controller.js +79 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
- package/libs/GuideLinePlugin/index.js +80 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -82
- package/libs/ModelMakerPlugin/index.js +76 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
- package/libs/ModelTVVideoPlugin/index.js +69 -8
- package/libs/Object3DHelperPlugin/Controller.js +67 -43
- package/libs/Object3DHelperPlugin/index.js +36 -13
- package/libs/PanoCompassPlugin/Controller.js +98 -42
- package/libs/PanoCompassPlugin/index.js +72 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
- package/libs/PanoDoorLabelPlugin/index.js +77 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
- package/libs/PanoMeasurePlugin/Model/area.js +115 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
- package/libs/PanoMeasurePlugin/index.js +77 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
- package/libs/PanoSpatialTagPlugin/index.js +67 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
- package/libs/PanoTagPlugin/controller/index.js +114 -61
- package/libs/PanoTagPlugin/index.js +90 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
- package/libs/PanoVideoPlugin/Controller.js +138 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
- package/libs/PanoVideoPlugin/index.js +83 -10
- package/libs/PipelinePlugin/Controller.js +200 -128
- package/libs/PipelinePlugin/index.js +77 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +80 -57
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Base/index.js +20 -17
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
- package/libs/Sculpt/utils/removeAllTag.js +10 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +193 -192
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var p = (
|
|
3
|
-
var i = (
|
|
4
|
-
import { anyPositionToVector3 as
|
|
5
|
-
import * as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var p = (n, t, e) => t in n ? c(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var i = (n, t, e) => (p(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { anyPositionToVector3 as d } from "./positionToVector3.js";
|
|
5
|
+
import * as f from "three";
|
|
6
6
|
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
7
|
import { getFiveModel as m } from "./five/getFiveModel.js";
|
|
8
|
-
const
|
|
8
|
+
const l = "LightTagContainer_shgjakdhwakjdhsja";
|
|
9
9
|
class v {
|
|
10
|
-
constructor(t, e,
|
|
10
|
+
constructor(t, e, s) {
|
|
11
11
|
i(this, "container");
|
|
12
12
|
i(this, "visible", !1);
|
|
13
13
|
i(this, "enabled", !1);
|
|
14
14
|
i(this, "wrapper");
|
|
15
|
+
i(this, "tagWrapper");
|
|
15
16
|
i(this, "five");
|
|
16
17
|
i(this, "originPosition");
|
|
17
18
|
i(this, "transformedPosition");
|
|
@@ -23,16 +24,17 @@ class v {
|
|
|
23
24
|
i(this, "onFiveEveryReady", () => {
|
|
24
25
|
var t;
|
|
25
26
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
26
|
-
const e = new
|
|
27
|
+
const e = new f.Raycaster();
|
|
27
28
|
e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
28
|
-
const
|
|
29
|
-
(
|
|
29
|
+
const s = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
|
|
30
|
+
(s == null ? void 0 : s.distance) > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var a;
|
|
34
|
+
this.five = t, this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.container = (() => {
|
|
35
|
+
const r = document.createElement("div");
|
|
36
|
+
return r.style.width = "0", r.style.height = "0", r.style.position = "absolute", r;
|
|
37
|
+
})(), this.config = s != null ? s : {}, this.enable(), this.show();
|
|
36
38
|
}
|
|
37
39
|
show() {
|
|
38
40
|
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
@@ -41,13 +43,13 @@ class v {
|
|
|
41
43
|
this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
42
44
|
}
|
|
43
45
|
enable() {
|
|
44
|
-
var
|
|
46
|
+
var s, a, r, h;
|
|
45
47
|
if (this.enabled)
|
|
46
48
|
return;
|
|
47
|
-
this.enabled = !0, this.wrapper
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
})(),
|
|
49
|
+
this.enabled = !0, this.wrapper = (r = (a = this.config.wrapper) != null ? a : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (h = document.getElementById(l)) != null ? h : (() => {
|
|
50
|
+
const o = document.createElement("div");
|
|
51
|
+
return o.id = l, o.style.position = "absolute", o.style.top = "0", o.style.left = "0", o.style.width = "100%", o.style.height = "100%", o.style.pointerEvents = "none", o;
|
|
52
|
+
})(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
|
|
51
53
|
let t = !1;
|
|
52
54
|
const e = () => {
|
|
53
55
|
t || (t = !0, this.five.ready().then(() => {
|
|
@@ -60,19 +62,31 @@ class v {
|
|
|
60
62
|
}
|
|
61
63
|
disable() {
|
|
62
64
|
var t;
|
|
63
|
-
this.enabled && (this.enabled = !1, this.
|
|
65
|
+
this.enabled && (this.enabled = !1, this.tagWrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
|
|
66
|
+
}
|
|
67
|
+
destroy() {
|
|
68
|
+
this.disable(), this.container.remove();
|
|
64
69
|
}
|
|
65
70
|
setTransformMatrix(t) {
|
|
66
|
-
|
|
71
|
+
var e;
|
|
72
|
+
this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
|
|
73
|
+
}
|
|
74
|
+
setPosition(t) {
|
|
75
|
+
this.transformedPosition = t, this.onCameraUpdate();
|
|
67
76
|
}
|
|
68
77
|
updateScreenPosition() {
|
|
78
|
+
if (!this.transformedPosition) {
|
|
79
|
+
this.container.style.left = "-100%", this.container.style.top = "-100%";
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
69
82
|
const t = y(this.five.camera, this.transformedPosition);
|
|
70
83
|
t ? (this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
|
-
function
|
|
74
|
-
return new v(
|
|
86
|
+
function w(n, t, e) {
|
|
87
|
+
return new v(n, t, e);
|
|
75
88
|
}
|
|
76
89
|
export {
|
|
77
|
-
|
|
90
|
+
v as LightTag,
|
|
91
|
+
w as tag
|
|
78
92
|
};
|
|
@@ -2,6 +2,7 @@ import "hammerjs";
|
|
|
2
2
|
import "three";
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
5
6
|
import "./THREESphere.js";
|
|
6
7
|
import "animejs";
|
|
7
8
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|