@realsee/dnalogel 3.41.2 → 3.41.3
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 +3 -0
- package/dist/CruisePlugin/BaseController.d.ts +0 -2
- package/dist/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/dist/base/BasePlugin.d.ts +2 -0
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +3921 -3904
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/dist/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +6 -4
- package/libs/AreaMakerPlugin/index.js +5 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CruisePlugin/BaseController.d.ts +0 -2
- package/libs/CruisePlugin/BaseController.js +36 -36
- package/libs/CruisePlugin/Move.js +5 -4
- package/libs/CruisePlugin/Work.js +5 -4
- package/libs/CruisePlugin/index.js +9 -8
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +1 -0
- package/libs/CurrentPanoImagePlugin/Controller.js +13 -11
- package/libs/CurrentPanoImagePlugin/index.js +6 -4
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -3
- package/libs/GuideLinePlugin/index.js +9 -8
- package/libs/ModelMakerPlugin/Controller.js +5 -3
- package/libs/ModelMakerPlugin/index.js +5 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -6
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/Object3DHelperPlugin/Controller.js +16 -14
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCompassPlugin/Controller.js +5 -3
- package/libs/PanoCompassPlugin/index.js +6 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
- package/libs/PanoDoorLabelPlugin/index.js +6 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -34
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +50 -49
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +4 -3
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/controller/TagCache.js +11 -9
- package/libs/PanoTagPlugin/controller/TagComputer.js +12 -10
- package/libs/PanoTagPlugin/controller/TagRender.js +5 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +5 -3
- package/libs/PanoTagPlugin/controller/index.js +8 -6
- package/libs/PanoTagPlugin/index.js +14 -12
- package/libs/PanoVideoPlugin/Controller.js +5 -3
- package/libs/PanoVideoPlugin/index.js +8 -6
- package/libs/PipelinePlugin/Controller.js +25 -23
- package/libs/PipelinePlugin/index.js +6 -4
- package/libs/base/BasePlugin.d.ts +2 -0
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +14 -11
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
- package/libs/index.js +128 -127
- package/libs/shared-utils/Utils/FiveUtil.d.ts +1 -0
- package/libs/shared-utils/Utils/FiveUtil.js +11 -7
- package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -0
- package/libs/shared-utils/five/FiveDomEvents.js +46 -42
- package/libs/shared-utils/five/fiveModelLoad.js +26 -17
- package/libs/shared-utils/five/getFiveModel.d.ts +2 -0
- package/libs/shared-utils/five/getFiveModel.js +7 -0
- package/libs/shared-utils/five/getPosition.js +24 -23
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +10 -9
- package/libs/shared-utils/three/getIntersect.js +19 -18
- package/package.json +1 -1
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var u = Object.defineProperty, d = Object.defineProperties;
|
|
2
|
+
var m = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var i = Object.getOwnPropertySymbols;
|
|
4
4
|
var y = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var s = (t, e, n) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, a = (t, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
|
-
y.call(e, n) &&
|
|
7
|
+
y.call(e, n) && s(t, n, e[n]);
|
|
8
8
|
if (i)
|
|
9
9
|
for (var n of i(e))
|
|
10
|
-
f.call(e, n) &&
|
|
10
|
+
f.call(e, n) && s(t, n, e[n]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
import * as
|
|
14
|
-
import { getRaycasterByNdcPosition as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
}, l = (t, e) => d(t, m(e));
|
|
13
|
+
import * as o from "three";
|
|
14
|
+
import { getRaycasterByNdcPosition as g } from "./getRaycasterByNdcPosition.js";
|
|
15
|
+
import { getFiveModel as p } from "./getFiveModel.js";
|
|
16
|
+
function j(t, e) {
|
|
17
|
+
const n = g(t, e);
|
|
18
|
+
return R(t, n);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function R(t, e) {
|
|
20
21
|
var n;
|
|
21
|
-
return (n =
|
|
22
|
+
return (n = B(t, e)) != null ? n : I(e);
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
const n = new
|
|
24
|
+
function I(t) {
|
|
25
|
+
const n = new o.Vector3().addVectors(
|
|
25
26
|
t.ray.origin,
|
|
26
27
|
t.ray.direction.clone().normalize().multiplyScalar(3)
|
|
27
|
-
),
|
|
28
|
+
), r = t.ray.direction.clone().negate();
|
|
28
29
|
return {
|
|
29
30
|
distance: 3,
|
|
30
31
|
point: n,
|
|
31
|
-
object: new
|
|
32
|
-
face: new
|
|
32
|
+
object: new o.Object3D(),
|
|
33
|
+
face: new o.Face3(0, 0, 0, r),
|
|
33
34
|
raycaster: t,
|
|
34
35
|
isVirtual: !0
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
const c = t.
|
|
38
|
+
function B(t, e) {
|
|
39
|
+
const c = p(t).intersectRaycaster(e)[0];
|
|
39
40
|
if (c)
|
|
40
|
-
return a(
|
|
41
|
+
return l(a({}, c), { raycaster: e, isVirtual: !1 });
|
|
41
42
|
}
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
j as getIntersectByNdcPosition,
|
|
45
|
+
R as getIntersectByRaycaster
|
|
45
46
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.41.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.41.3",
|
|
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
|
@@ -4,8 +4,9 @@ var i = (s, t, e) => (p(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
4
4
|
import { anyPositionToVector3 as f } from "./positionToVector3.js";
|
|
5
5
|
import * as d from "three";
|
|
6
6
|
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
|
+
import { getFiveModel as m } from "./five/getFiveModel.js";
|
|
7
8
|
const l = "LightTagContainer_shgjakdhwakjdhsja";
|
|
8
|
-
class
|
|
9
|
+
class v {
|
|
9
10
|
constructor(t, e, n) {
|
|
10
11
|
i(this, "container");
|
|
11
12
|
i(this, "visible", !1);
|
|
@@ -27,7 +28,7 @@ class m {
|
|
|
27
28
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
28
29
|
const e = new d.Raycaster();
|
|
29
30
|
e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
30
|
-
const n = (t = this.five.
|
|
31
|
+
const n = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
|
|
31
32
|
(n == null ? void 0 : n.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");
|
|
32
33
|
}
|
|
33
34
|
});
|
|
@@ -43,13 +44,13 @@ class m {
|
|
|
43
44
|
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";
|
|
44
45
|
}
|
|
45
46
|
enable() {
|
|
46
|
-
var n, o,
|
|
47
|
+
var n, o, a, h;
|
|
47
48
|
if (this.enabled)
|
|
48
49
|
return;
|
|
49
50
|
this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(l)) != null ? o : (() => {
|
|
50
|
-
const
|
|
51
|
-
return
|
|
52
|
-
})(), (
|
|
51
|
+
const r = document.createElement("div");
|
|
52
|
+
return r.id = l, r.style.position = "absolute", r.style.top = "0", r.style.left = "0", r.style.width = "100%", r.style.height = "100%", r.style.pointerEvents = "none", r;
|
|
53
|
+
})(), (a = this.five.getElement()) != null && a.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
|
|
53
54
|
let t = !1;
|
|
54
55
|
const e = () => {
|
|
55
56
|
t || (t = !0, this.five.ready().then(() => {
|
|
@@ -68,9 +69,9 @@ class m {
|
|
|
68
69
|
this.transformedPosition = this.originPosition.clone().applyMatrix4(t), this.onCameraUpdate();
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
return new
|
|
72
|
+
function E(s, t, e) {
|
|
73
|
+
return new v(s, t, e);
|
|
73
74
|
}
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
E as tag
|
|
76
77
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var p = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var u = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var x = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (e, t, s) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, a = (e, t) => {
|
|
6
6
|
for (var s in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (n)
|
|
9
|
-
for (var s of n(t))
|
|
10
|
-
x.call(t, s) && o(e, s, t[s]);
|
|
11
|
-
return e;
|
|
12
|
-
}, i = (e, t) => R(e, p(t));
|
|
13
|
-
import * as E from "three";
|
|
14
|
-
function g(e, t) {
|
|
15
|
-
const { x: s, y: m } = t, l = s * 2 - 1, y = m * 2 - 1, r = new E.Raycaster();
|
|
16
|
-
r.setFromCamera({ x: l, y }, e.camera);
|
|
17
|
-
const c = e.model.intersectRaycaster(r)[0];
|
|
7
|
+
x.call(t, s) && n(e, s, t[s]);
|
|
18
8
|
if (c)
|
|
19
|
-
|
|
9
|
+
for (var s of c(t))
|
|
10
|
+
F.call(t, s) && n(e, s, t[s]);
|
|
11
|
+
return e;
|
|
12
|
+
}, i = (e, t) => R(e, u(t));
|
|
13
|
+
import * as d from "three";
|
|
14
|
+
import { getFiveModel as g } from "../five/getFiveModel.js";
|
|
15
|
+
function C(e, t) {
|
|
16
|
+
const s = g(e), { x: m, y: l } = t, f = m * 2 - 1, y = l * 2 - 1, r = new d.Raycaster();
|
|
17
|
+
r.setFromCamera({ x: f, y }, e.camera);
|
|
18
|
+
const o = s.intersectRaycaster(r)[0];
|
|
19
|
+
if (o)
|
|
20
|
+
return i(a({}, o), { raycaster: r, isVirtual: !1 });
|
|
20
21
|
}
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
C as getIntersectFromRelativePosition
|
|
23
24
|
};
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var t = (o, n, e) => new Promise((u, r) => {
|
|
2
|
-
var c = (d) => {
|
|
3
|
-
try {
|
|
4
|
-
a(e.next(d));
|
|
5
|
-
} catch (l) {
|
|
6
|
-
r(l);
|
|
7
|
-
}
|
|
8
|
-
}, f = (d) => {
|
|
9
|
-
try {
|
|
10
|
-
a(e.throw(d));
|
|
11
|
-
} catch (l) {
|
|
12
|
-
r(l);
|
|
13
|
-
}
|
|
14
|
-
}, a = (d) => d.done ? u(d.value) : Promise.resolve(d.value).then(c, f);
|
|
15
|
-
a((e = e.apply(o, n)).next());
|
|
16
|
-
});
|
|
17
|
-
function m(o) {
|
|
18
|
-
return t(this, null, function* () {
|
|
19
|
-
return new Promise((n) => {
|
|
20
|
-
var e;
|
|
21
|
-
if ((e = o.model) != null && e.loaded) {
|
|
22
|
-
n();
|
|
23
|
-
return;
|
|
24
|
-
} else
|
|
25
|
-
o.once("modelLoaded", () => n());
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
m as default
|
|
31
|
-
};
|