@realsee/dnalogel 3.47.6 → 3.47.8
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/PanoTagPlugin/controller/Tag/PointTag.d.ts +0 -1
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +916 -917
- package/dist/index.umd.js +23 -23
- package/dist/shared-utils/tag.d.ts +1 -0
- 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.d.ts +0 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +59 -59
- 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/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 +1 -0
- package/libs/shared-utils/tag.js +31 -28
- package/package.json +1 -1
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.8",
|
|
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",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var g = (h, t, e) => t in h ? u(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
|
|
3
3
|
var o = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { anyPositionToVector3 as
|
|
4
|
+
import { anyPositionToVector3 as d } from "./positionToVector3.js";
|
|
5
5
|
import * as b from "three";
|
|
6
|
-
import { vector3ToScreen as
|
|
6
|
+
import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
|
|
7
7
|
import { getFiveModel as x } from "./five/getFiveModel.js";
|
|
8
8
|
import { _raycaster as m } from "./three/raycaster.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { FiveUtil as U } from "./Utils/FiveUtil.js";
|
|
10
|
+
const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
|
|
11
|
+
class E {
|
|
12
|
+
constructor(t, e, s) {
|
|
12
13
|
o(this, "container");
|
|
13
14
|
o(this, "visible", !1);
|
|
14
15
|
o(this, "enabled", !1);
|
|
@@ -20,22 +21,24 @@ class w {
|
|
|
20
21
|
o(this, "transformedPosition");
|
|
21
22
|
o(this, "disposer");
|
|
22
23
|
o(this, "config");
|
|
24
|
+
o(this, "fiveUtil");
|
|
23
25
|
o(this, "onCameraUpdate", () => {
|
|
24
26
|
this.visible !== !1 && this.updateScreenPosition();
|
|
25
27
|
});
|
|
26
28
|
o(this, "onFiveEveryReady", () => {
|
|
27
29
|
var t;
|
|
28
30
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
let e = 0.01;
|
|
32
|
+
this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
33
|
+
const s = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
|
|
34
|
+
(s == null ? void 0 : s.distance) + e > 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");
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
|
-
var r, a;
|
|
35
|
-
this.five = t, this.originPosition = e ?
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
})(), this.config =
|
|
37
|
+
var n, r, a;
|
|
38
|
+
this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new U(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = s == null ? void 0 : s.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
|
|
39
|
+
const i = document.createElement("div");
|
|
40
|
+
return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
|
|
41
|
+
})(), this.config = s != null ? s : {}, this.enable(), this.show();
|
|
39
42
|
}
|
|
40
43
|
show() {
|
|
41
44
|
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.onCameraUpdate();
|
|
@@ -44,12 +47,12 @@ class w {
|
|
|
44
47
|
this.visible = !1, this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
45
48
|
}
|
|
46
49
|
enable() {
|
|
47
|
-
var
|
|
50
|
+
var s, n, r, a;
|
|
48
51
|
if (this.enabled)
|
|
49
52
|
return;
|
|
50
|
-
this.enabled = !0, this.wrapper = (
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
+
this.enabled = !0, this.wrapper = (r = (n = this.config.wrapper) != null ? n : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (a = document.getElementById(v)) != null ? a : (() => {
|
|
54
|
+
const i = document.createElement("div");
|
|
55
|
+
return i.id = v, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", i;
|
|
53
56
|
})(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
|
|
54
57
|
let t = !1;
|
|
55
58
|
const e = () => {
|
|
@@ -80,27 +83,27 @@ class w {
|
|
|
80
83
|
this.container.style.left = "-100%", this.container.style.top = "-100%";
|
|
81
84
|
return;
|
|
82
85
|
}
|
|
83
|
-
const t = this.five.renderer.getSize(
|
|
86
|
+
const t = this.five.renderer.getSize(w), e = l(this.five.camera, this.transformedPosition, t);
|
|
84
87
|
if (!e) {
|
|
85
88
|
this.container.style.left = "-100%", this.container.style.top = "-100%";
|
|
86
89
|
return;
|
|
87
90
|
}
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
return Math.max(Math.min(1 -
|
|
91
|
-
})(),
|
|
91
|
+
const s = (() => {
|
|
92
|
+
const r = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), a = this.transformedPosition.distanceTo(this.five.camera.position);
|
|
93
|
+
return Math.max(Math.min(1 - r * a / 40, 1), 0.5);
|
|
94
|
+
})(), n = (() => {
|
|
92
95
|
if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
|
|
93
96
|
return 0;
|
|
94
|
-
const [
|
|
97
|
+
const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t), p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
|
|
95
98
|
return Math.atan2(P, y) * (180 / Math.PI);
|
|
96
99
|
})();
|
|
97
|
-
this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${
|
|
100
|
+
this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${s})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
|
-
function
|
|
101
|
-
return new
|
|
103
|
+
function S(h, t, e) {
|
|
104
|
+
return new E(h, t, e);
|
|
102
105
|
}
|
|
103
106
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
E as LightTag,
|
|
108
|
+
S as tag
|
|
106
109
|
};
|