@realsee/dnalogel 3.52.3 → 3.53.0
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/index.cjs.js +40 -40
- package/dist/index.d.ts +1 -79
- package/dist/index.js +1606 -1567
- package/dist/index.umd.js +34 -34
- package/dist/shared-utils/exports.d.ts +2 -0
- package/dist/shared-utils/five/FivePuppet.d.ts +63 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +14 -12
- package/libs/AreaMakerPlugin/index.js +4 -2
- package/libs/AreaMakerPlugin/utils/Item.js +4 -2
- package/libs/CSS3DRenderPlugin/Controller.js +4 -2
- package/libs/CSS3DRenderPlugin/index.js +7 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
- package/libs/CruisePlugin/BaseController.js +6 -4
- package/libs/CruisePlugin/Move.js +4 -3
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +8 -7
- package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
- package/libs/CurrentPanoImagePlugin/index.js +5 -3
- package/libs/GuideLinePlugin/Controller.js +6 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/ModelMakerPlugin/Controller.js +4 -2
- package/libs/ModelMakerPlugin/index.js +4 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
- package/libs/ModelTVVideoPlugin/index.js +4 -2
- package/libs/Object3DHelperPlugin/Controller.js +4 -2
- package/libs/Object3DHelperPlugin/index.js +7 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
- package/libs/PanoRulerProPlugin/Controller.js +11 -10
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -6
- package/libs/PanoTagPlugin/index.js +13 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +4 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
- package/libs/PanoVideoPlugin/index.js +7 -5
- package/libs/PipelinePlugin/Controller.js +4 -2
- package/libs/PipelinePlugin/index.js +5 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
- package/libs/Sculpt/Meshes/Cylinder.js +6 -5
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polygon.js +11 -10
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +18 -17
- package/libs/Sculpt/utils/export.js +5 -5
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +1 -79
- package/libs/index.js +156 -170
- package/libs/shared-utils/exports.d.ts +2 -0
- package/libs/shared-utils/exports.js +82 -0
- package/libs/shared-utils/five/FivePuppet.d.ts +63 -0
- package/libs/shared-utils/five/FivePuppet.js +48 -0
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +10 -78
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var p = (a, e, r) => e in a ? h(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r;
|
|
3
|
+
var t = (a, e, r) => (p(a, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import { InternalWebGLRenderer as l } from "@realsee/five";
|
|
5
|
+
import * as n from "three";
|
|
6
|
+
const f = new n.Vector2();
|
|
7
|
+
class _ {
|
|
8
|
+
constructor(e, r) {
|
|
9
|
+
t(this, "scene", new n.Scene());
|
|
10
|
+
t(this, "five");
|
|
11
|
+
t(this, "renderer");
|
|
12
|
+
t(this, "cancelRequestAnimationFrameId");
|
|
13
|
+
t(this, "camera", new n.Camera());
|
|
14
|
+
t(this, "domInited", !1);
|
|
15
|
+
t(this, "params");
|
|
16
|
+
t(this, "_rendererCache");
|
|
17
|
+
t(this, "_cameraCache");
|
|
18
|
+
t(this, "animate", () => {
|
|
19
|
+
var o, c, m;
|
|
20
|
+
this.cancelRequestAnimationFrameId = requestAnimationFrame(this.animate);
|
|
21
|
+
const e = this.five.renderer.getSize(f), r = e.toArray().join(",");
|
|
22
|
+
r !== this._rendererCache && (this._rendererCache = r, this.renderer.setSize(e.x, e.y));
|
|
23
|
+
const s = this.five.camera.projectionMatrix.toArray().join(",") + this.five.camera.matrixWorld.toArray().join(",");
|
|
24
|
+
if (s !== this._cameraCache && (this._cameraCache = s, this.camera.copy(this.five.camera)), this.renderer.render(this.scene, this.camera), !this.domInited) {
|
|
25
|
+
const d = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
|
|
26
|
+
if (d) {
|
|
27
|
+
const i = document.createElement("div");
|
|
28
|
+
i.classList.add("five-puppet"), i.style.position = "absolute", i.style.pointerEvents = "none", i.style.left = "0", i.style.top = "0", i.style.zIndex = `${(m = (c = this.params) == null ? void 0 : c.zIndex) != null ? m : 1}`, i.appendChild(this.renderer.domElement), d.appendChild(i), this.domInited = !0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
t(this, "stopAnimate", () => {
|
|
33
|
+
this.cancelRequestAnimationFrameId && cancelAnimationFrame(this.cancelRequestAnimationFrameId);
|
|
34
|
+
});
|
|
35
|
+
t(this, "destory", () => {
|
|
36
|
+
this.stopAnimate(), this.renderer.dispose(), this.renderer.domElement.remove();
|
|
37
|
+
});
|
|
38
|
+
this.five = e, this.params = r, this.renderer = new l({
|
|
39
|
+
webgl2: !0,
|
|
40
|
+
pixelRatio: window.devicePixelRatio,
|
|
41
|
+
backgroundAlpha: 0,
|
|
42
|
+
backgroundColor: 0
|
|
43
|
+
}), this.renderer.setSize(1, 1), window.__FIVEPUPPET_DEBUG__ = this, this.animate();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
_ as FivePuppet
|
|
48
|
+
};
|
|
@@ -4,12 +4,13 @@ import "../three/PointSelector/index.js";
|
|
|
4
4
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
5
|
import "../tag.js";
|
|
6
6
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
7
|
+
import "./FivePuppet.js";
|
|
7
8
|
import "@realsee/five/line";
|
|
8
9
|
import "../three/core/Sphere.js";
|
|
9
10
|
import "animejs";
|
|
10
|
-
function
|
|
11
|
+
function p(e) {
|
|
11
12
|
return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
12
13
|
}
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
p as checkFiveModelLoaded
|
|
15
16
|
};
|
|
@@ -34,10 +34,11 @@ import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
|
|
|
34
34
|
import { FiveUtil as O } from "../Utils/FiveUtil.js";
|
|
35
35
|
import { notNil as Y } from "../isNil.js";
|
|
36
36
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
+
import "./FivePuppet.js";
|
|
37
38
|
import "@realsee/five/line";
|
|
38
39
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
39
40
|
import "animejs";
|
|
40
|
-
function
|
|
41
|
+
function et(o, e, t) {
|
|
41
42
|
return g(this, null, function* () {
|
|
42
43
|
var P, x, z;
|
|
43
44
|
if (!e)
|
|
@@ -80,5 +81,5 @@ function ot(o, e, t) {
|
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
et as lookObject
|
|
84
85
|
};
|
|
@@ -1,78 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { PointSelectorHelper as g } from "./three/PointSelector/utils/PointSelectorHelper.js";
|
|
12
|
-
import { Object3D as s } from "./three/core/Object3D.js";
|
|
13
|
-
import { LineSegments as u } from "./three/core/LineSegments.js";
|
|
14
|
-
import { bounding as b, boundingBox as c, boundingSphere as x, boxVertex as v, boxVertexes as F, worldBounding as L, worldBoundingBox as P, worldBoundingSphere as k } from "./three/boundingBox.js";
|
|
15
|
-
import { animeMap as w, blink as M, reblink as S } from "./three/blink.js";
|
|
16
|
-
import { isNil as B, notNil as _ } from "./isNil.js";
|
|
17
|
-
import { uuid as h } from "./uuid.js";
|
|
18
|
-
import { absoluteUrl as j, isAbsoluteURL as I } from "./url/absoluteUrl.js";
|
|
19
|
-
import { awaitNextFrame as O, getFrameTime as T, nextFrame as y, requestAnimationFrameInterval as C } from "./animationFrame/index.js";
|
|
20
|
-
import { equal as H } from "./equal.js";
|
|
21
|
-
import { isModelLike as N, isPanoramaLike as U } from "./five/mode.js";
|
|
22
|
-
import { lookObject as q } from "./five/lookObject.js";
|
|
23
|
-
import { lookPoint as A } from "./five/lookPoint.js";
|
|
24
|
-
import { fiveModelIsLoaded as D, waitFiveModelLoaded as E } from "./five/fiveModelLoad.js";
|
|
25
|
-
import { FiveDomEvents as R } from "./five/FiveDomEvents.js";
|
|
26
|
-
import { BetterTween as V, tweenProgress as z } from "./animationFrame/BetterTween.js";
|
|
27
|
-
const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
|
-
__proto__: null,
|
|
29
|
-
BetterTween: V,
|
|
30
|
-
FiveDomEvents: R,
|
|
31
|
-
Interval: r,
|
|
32
|
-
LightTag: i,
|
|
33
|
-
LineSegments: u,
|
|
34
|
-
Magnifier: l,
|
|
35
|
-
Object3D: s,
|
|
36
|
-
PointHelper: d,
|
|
37
|
-
PointSelector: a,
|
|
38
|
-
PointSelectorHelper: g,
|
|
39
|
-
Rectangle: e,
|
|
40
|
-
absoluteUrl: j,
|
|
41
|
-
animeMap: w,
|
|
42
|
-
awaitNextFrame: O,
|
|
43
|
-
blink: M,
|
|
44
|
-
bounding: b,
|
|
45
|
-
boundingBox: c,
|
|
46
|
-
boundingSphere: x,
|
|
47
|
-
boxVertex: v,
|
|
48
|
-
boxVertexes: F,
|
|
49
|
-
checkFiveModelLoaded: n,
|
|
50
|
-
convexHull: t,
|
|
51
|
-
equal: H,
|
|
52
|
-
fiveModelIsLoaded: D,
|
|
53
|
-
getCoordsFromClient: p,
|
|
54
|
-
getCoordsFromElement: f,
|
|
55
|
-
getFrameTime: T,
|
|
56
|
-
inside: o,
|
|
57
|
-
isAbsoluteURL: I,
|
|
58
|
-
isModelLike: N,
|
|
59
|
-
isNil: B,
|
|
60
|
-
isPanoramaLike: U,
|
|
61
|
-
lookObject: q,
|
|
62
|
-
lookPoint: A,
|
|
63
|
-
nextFrame: y,
|
|
64
|
-
notNil: _,
|
|
65
|
-
pointInPolygon: o,
|
|
66
|
-
reblink: S,
|
|
67
|
-
requestAnimationFrameInterval: C,
|
|
68
|
-
tag: m,
|
|
69
|
-
tweenProgress: z,
|
|
70
|
-
uuid: h,
|
|
71
|
-
waitFiveModelLoaded: E,
|
|
72
|
-
worldBounding: L,
|
|
73
|
-
worldBoundingBox: P,
|
|
74
|
-
worldBoundingSphere: k
|
|
75
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
76
|
-
export {
|
|
77
|
-
vo as _Util
|
|
78
|
-
};
|
|
1
|
+
import "./tag.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "hammerjs";
|
|
4
|
+
import "./three/PointSelector/index.js";
|
|
5
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
6
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
7
|
+
import "./five/FivePuppet.js";
|
|
8
|
+
import "@realsee/five/line";
|
|
9
|
+
import "./three/core/Sphere.js";
|
|
10
|
+
import "animejs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.53.0",
|
|
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",
|
|
@@ -111,6 +111,6 @@ export declare function getCenterPointOfPoints(points: Point[]): {
|
|
|
111
111
|
x: number;
|
|
112
112
|
y: number;
|
|
113
113
|
};
|
|
114
|
-
export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]):
|
|
114
|
+
export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 1 | 0;
|
|
115
115
|
export declare function getAreaSize(points: Point[]): number;
|
|
116
116
|
export declare function getAreaSizeWithoutLine(points: Point[]): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.53.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.22.9",
|
|
45
|
-
"@realsee/five": "6.
|
|
45
|
+
"@realsee/five": "6.2.0",
|
|
46
46
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
47
47
|
"@tsconfig/svelte": "^4.0.1",
|
|
48
48
|
"@tweenjs/tween.js": "^23.1.1",
|