@realsee/dnalogel 3.44.5 → 3.46.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 +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- 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/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -19,27 +19,28 @@ class v extends m {
|
|
|
19
19
|
return n.set(r, o), o;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* @description
|
|
22
|
+
* @description 设置插件当前的 workCode
|
|
23
23
|
*/
|
|
24
24
|
set workCode(r) {
|
|
25
25
|
this._workCode = r;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description 获取插件当前的 workCode
|
|
29
29
|
*/
|
|
30
30
|
get workCode() {
|
|
31
31
|
var r;
|
|
32
32
|
return (r = this._workCode) != null ? r : this.five.state.workCode;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* @description
|
|
35
|
+
* @description 获取当前的 work
|
|
36
36
|
*/
|
|
37
37
|
get work() {
|
|
38
38
|
var r, o;
|
|
39
39
|
return (o = (r = this.five.works) == null ? void 0 : r.find((t) => t.workCode === this.workCode)) != null ? o : this.five.work;
|
|
40
40
|
}
|
|
41
41
|
get observers() {
|
|
42
|
-
|
|
42
|
+
var r;
|
|
43
|
+
return (r = this.work) == null ? void 0 : r.observers;
|
|
43
44
|
}
|
|
44
45
|
get transform() {
|
|
45
46
|
var o, t, i, w;
|
|
@@ -47,7 +48,7 @@ class v extends m {
|
|
|
47
48
|
return r ? r.clone() : new d.Matrix4();
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
|
-
* @description
|
|
51
|
+
* @description 获取全景点坐标
|
|
51
52
|
*/
|
|
52
53
|
getObserverPosition(r) {
|
|
53
54
|
var t;
|
|
@@ -56,7 +57,7 @@ class v extends m {
|
|
|
56
57
|
return a(o, this.transform);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* @description
|
|
60
|
+
* @description 获取全景点位和模型的地面坐标
|
|
60
61
|
*/
|
|
61
62
|
getObserverStandingPosition(r) {
|
|
62
63
|
var t;
|
|
@@ -65,7 +66,7 @@ class v extends m {
|
|
|
65
66
|
return a(o, this.transform);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
|
-
* @description
|
|
69
|
+
* @description 获取observer
|
|
69
70
|
*/
|
|
70
71
|
getObserver(r) {
|
|
71
72
|
var o;
|
|
@@ -3,11 +3,12 @@ import "hammerjs";
|
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
5
5
|
import "@realsee/five/line";
|
|
6
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
6
7
|
import "../three/THREESphere.js";
|
|
7
8
|
import "animejs";
|
|
8
|
-
function
|
|
9
|
+
function f(e) {
|
|
9
10
|
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 不存在" };
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
f as checkFiveModelLoaded
|
|
13
14
|
};
|
|
@@ -33,9 +33,10 @@ 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
35
|
import "@realsee/five/line";
|
|
36
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
36
37
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
37
38
|
import "animejs";
|
|
38
|
-
function
|
|
39
|
+
function tt(e, o, t) {
|
|
39
40
|
return g(this, null, function* () {
|
|
40
41
|
var P, x, z;
|
|
41
42
|
if (!o)
|
|
@@ -78,5 +79,5 @@ function $(e, o, t) {
|
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
tt as lookObject
|
|
82
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.46.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",
|
|
@@ -6,12 +6,13 @@ export declare class LightTag {
|
|
|
6
6
|
visible: boolean;
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
wrapper: HTMLElement;
|
|
9
|
+
private tagWrapper;
|
|
9
10
|
private five;
|
|
10
|
-
private originPosition
|
|
11
|
-
private transformedPosition
|
|
11
|
+
private originPosition?;
|
|
12
|
+
private transformedPosition?;
|
|
12
13
|
private disposer;
|
|
13
14
|
private config;
|
|
14
|
-
constructor(five: Five, position
|
|
15
|
+
constructor(five: Five, position?: AnyPosition, config?: {
|
|
15
16
|
wrapper?: HTMLElement;
|
|
16
17
|
});
|
|
17
18
|
show(): void;
|
|
@@ -20,7 +21,9 @@ export declare class LightTag {
|
|
|
20
21
|
}): void;
|
|
21
22
|
enable(): void;
|
|
22
23
|
disable(): void;
|
|
24
|
+
destroy(): void;
|
|
23
25
|
setTransformMatrix(matrix: THREE.Matrix4): void;
|
|
26
|
+
setPosition(position: THREE.Vector3): void;
|
|
24
27
|
updateScreenPosition(): void;
|
|
25
28
|
private onCameraUpdate;
|
|
26
29
|
private onFiveEveryReady;
|
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
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (a, i, e) => (
|
|
4
|
-
import * as
|
|
5
|
-
import { Magnifier as
|
|
6
|
-
import { PointHelper as
|
|
7
|
-
import { Subscribe as
|
|
8
|
-
import { PointHelper2 as
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var m = (a, i, e) => i in a ? f(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e;
|
|
3
|
+
var t = (a, i, e) => (m(a, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import * as p from "three";
|
|
5
|
+
import { Magnifier as u } from "../../Magnifier.js";
|
|
6
|
+
import { PointHelper as b } from "./PointHelper.js";
|
|
7
|
+
import { Subscribe as g } from "../../../Subscribe.js";
|
|
8
|
+
import { PointHelper2 as o } from "./PointHelper2.js";
|
|
9
9
|
import "../../THREESphere.js";
|
|
10
10
|
import "animejs";
|
|
11
|
-
class
|
|
11
|
+
class P {
|
|
12
12
|
constructor(i, e) {
|
|
13
13
|
t(this, "five");
|
|
14
|
-
t(this, "hooks", new
|
|
14
|
+
t(this, "hooks", new g());
|
|
15
15
|
t(this, "position");
|
|
16
16
|
t(this, "magnifier", null);
|
|
17
17
|
t(this, "pointHelper", null);
|
|
18
18
|
t(this, "state", { enabled: !1, visible: !0 });
|
|
19
|
-
t(this, "group", new
|
|
19
|
+
t(this, "group", new p.Group());
|
|
20
20
|
t(this, "show", () => {
|
|
21
21
|
var i, e;
|
|
22
22
|
this.state.visible || (this.state.visible = !0, (i = this.pointHelper) == null || i.show(), (e = this.magnifier) == null || e.enable(), this.five.needsRender = !0);
|
|
@@ -38,10 +38,10 @@ class M {
|
|
|
38
38
|
});
|
|
39
39
|
t(this, "abortUpdateMagnifier", () => {
|
|
40
40
|
});
|
|
41
|
-
var s, n, h, l;
|
|
42
|
-
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new
|
|
41
|
+
var s, n, h, l, d;
|
|
42
|
+
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new u(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 });
|
|
43
43
|
let r;
|
|
44
|
-
(e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new
|
|
44
|
+
(e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? r = new b(i) : (e == null ? void 0 : e.pointHelper) === "highlight" ? r = new o(i) : r = e.pointHelper, this.pointHelper = r, this.group.name = "five-point-selector", this.five.scene.add(this.group), (d = this.magnifier) == null || d.appendTo((l = (h = e.container) != null ? h : (n = i.getElement()) == null ? void 0 : n.parentElement) != null ? l : document.body);
|
|
45
45
|
}
|
|
46
46
|
enable() {
|
|
47
47
|
var i;
|
|
@@ -56,5 +56,5 @@ class M {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
P as PointSelectorHelper
|
|
60
60
|
};
|
|
@@ -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";
|
package/package.json
CHANGED
|
File without changes
|