@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,15 +1,15 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
2
|
var U = Object.getOwnPropertySymbols;
|
|
3
3
|
var F = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var V = (
|
|
5
|
-
for (var t in
|
|
6
|
-
F.call(
|
|
4
|
+
var V = (o, e, t) => e in o ? B(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, T = (o, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
F.call(e, t) && V(o, t, e[t]);
|
|
7
7
|
if (U)
|
|
8
|
-
for (var t of U(
|
|
9
|
-
H.call(
|
|
10
|
-
return
|
|
8
|
+
for (var t of U(e))
|
|
9
|
+
H.call(e, t) && V(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
var g = (
|
|
12
|
+
var g = (o, e, t) => new Promise((r, m) => {
|
|
13
13
|
var u = (a) => {
|
|
14
14
|
try {
|
|
15
15
|
l(t.next(a));
|
|
@@ -23,7 +23,7 @@ var g = (e, o, t) => new Promise((r, m) => {
|
|
|
23
23
|
m(d);
|
|
24
24
|
}
|
|
25
25
|
}, l = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(u, s);
|
|
26
|
-
l((t = t.apply(
|
|
26
|
+
l((t = t.apply(o, e)).next());
|
|
27
27
|
});
|
|
28
28
|
import * as n from "three";
|
|
29
29
|
import "hammerjs";
|
|
@@ -32,18 +32,20 @@ import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
|
|
|
32
32
|
import { FiveUtil as O } from "../Utils/FiveUtil.js";
|
|
33
33
|
import { notNil as Y } from "../isNil.js";
|
|
34
34
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
|
-
import "
|
|
35
|
+
import "@realsee/five/line";
|
|
36
|
+
import "../tag.js";
|
|
37
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
36
38
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
37
39
|
import "animejs";
|
|
38
|
-
function
|
|
40
|
+
function ot(o, e, t) {
|
|
39
41
|
return g(this, null, function* () {
|
|
40
42
|
var P, x, z;
|
|
41
|
-
if (!
|
|
43
|
+
if (!e)
|
|
42
44
|
return;
|
|
43
|
-
const r = j(
|
|
45
|
+
const r = j(e);
|
|
44
46
|
if (!r)
|
|
45
47
|
return;
|
|
46
|
-
const m = new O(
|
|
48
|
+
const m = new O(o), u = (P = t == null ? void 0 : t.scale) != null ? P : 1.4, s = r.center, l = o.camera.position.clone().sub(s).setY(0).normalize(), a = o.state.mode === "Mapview" ? o.state.fov : 60, C = Math.max(1.5, r.radius * u), k = C * (1 / Math.tan(n.MathUtils.degToRad(a / 2)));
|
|
47
49
|
let p = 0;
|
|
48
50
|
const w = [], M = (c) => {
|
|
49
51
|
const i = n.MathUtils.degToRad(c);
|
|
@@ -62,21 +64,21 @@ function $(e, o, t) {
|
|
|
62
64
|
p += 30;
|
|
63
65
|
}
|
|
64
66
|
const R = M((z = (x = w[2]) != null ? x : w[1]) != null ? z : 0), v = R.distanceTo(s), b = N(s.clone().sub(R).normalize());
|
|
65
|
-
if (
|
|
66
|
-
return
|
|
67
|
+
if (o.state.mode === "Mapview")
|
|
68
|
+
return o.updateCamera(
|
|
67
69
|
T({
|
|
68
70
|
offset: s,
|
|
69
71
|
distance: v
|
|
70
72
|
}, b),
|
|
71
73
|
800
|
|
72
74
|
);
|
|
73
|
-
|
|
75
|
+
o.setState(T({
|
|
74
76
|
mode: "Mapview",
|
|
75
77
|
offset: s,
|
|
76
78
|
distance: v
|
|
77
|
-
}, b)), yield
|
|
79
|
+
}, b)), yield o.ready();
|
|
78
80
|
});
|
|
79
81
|
}
|
|
80
82
|
export {
|
|
81
|
-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background-repeat: no-repeat",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -99,7 +99,10 @@ class E {
|
|
|
99
99
|
})(), n = (() => {
|
|
100
100
|
if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
|
|
101
101
|
return 0;
|
|
102
|
-
const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t)
|
|
102
|
+
const [r, a] = this.positionsForRotate, i = l(this.five.camera, r, t), c = l(this.five.camera, a, t);
|
|
103
|
+
if (!i || !c)
|
|
104
|
+
return 0;
|
|
105
|
+
const p = i.leftPx > c.leftPx ? c : i, f = i.leftPx > c.leftPx ? i : c, y = f.leftPx - p.leftPx, P = f.topPx - p.topPx;
|
|
103
106
|
return Math.atan2(P, y) * (180 / Math.PI);
|
|
104
107
|
})();
|
|
105
108
|
this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${o})`, n && (this.container.style.transform += ` rotate(${n}deg)`);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { toArray as
|
|
2
|
-
function i(
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const t = a.map((l) => r.localToWorld(l.clone()));
|
|
6
|
-
return Array.isArray(o) ? t : t[0];
|
|
1
|
+
import { toArray as l } from "../util.js";
|
|
2
|
+
function i(t, r) {
|
|
3
|
+
const o = l(r).map((n) => t.localToWorld(n.clone()));
|
|
4
|
+
return Array.isArray(r) ? o : o[0];
|
|
7
5
|
}
|
|
8
6
|
export {
|
|
9
7
|
i as applyObjectMatrixWorld
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import "hammerjs";
|
|
2
2
|
import "three";
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
|
-
import "
|
|
4
|
+
import "@realsee/five/line";
|
|
5
|
+
import "../tag.js";
|
|
6
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
5
7
|
import "./THREESphere.js";
|
|
6
8
|
import "animejs";
|
|
7
9
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|