@realsee/dnalogel 3.49.0 → 3.49.2

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.
Files changed (126) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/Sculpt/Meshes/Line.d.ts +2 -1
  3. package/dist/index.cjs.js +3008 -87
  4. package/dist/index.js +39458 -20049
  5. package/dist/index.umd.js +3001 -80
  6. package/dist/shared-utils/three/index.d.ts +1 -1
  7. package/libs/AreaMakerPlugin/Controller.js +7 -4
  8. package/libs/AreaMakerPlugin/index.js +7 -4
  9. package/libs/AreaMakerPlugin/utils/Item.js +7 -4
  10. package/libs/CSS3DRenderPlugin/Controller.js +12 -9
  11. package/libs/CSS3DRenderPlugin/index.js +9 -6
  12. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
  14. package/libs/CruisePlugin/BaseController.js +12 -9
  15. package/libs/CruisePlugin/Move.js +7 -4
  16. package/libs/CruisePlugin/Work.js +7 -4
  17. package/libs/CruisePlugin/index.js +11 -8
  18. package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
  19. package/libs/CurrentPanoImagePlugin/index.js +7 -4
  20. package/libs/GuideLinePlugin/Controller.js +9 -6
  21. package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
  22. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
  23. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
  24. package/libs/GuideLinePlugin/index.js +11 -8
  25. package/libs/ModelMakerPlugin/Controller.js +7 -4
  26. package/libs/ModelMakerPlugin/index.js +7 -4
  27. package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
  28. package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
  29. package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
  30. package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
  31. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
  32. package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
  33. package/libs/ModelTVVideoPlugin/index.js +6 -3
  34. package/libs/Object3DHelperPlugin/Controller.js +6 -3
  35. package/libs/Object3DHelperPlugin/index.js +9 -6
  36. package/libs/PanoCompassPlugin/Controller.js +6 -3
  37. package/libs/PanoCompassPlugin/index.js +7 -4
  38. package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
  39. package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
  40. package/libs/PanoDoorLabelPlugin/index.js +7 -4
  41. package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
  42. package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
  43. package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
  44. package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
  45. package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
  46. package/libs/PanoMeasurePlugin/Model/area.js +6 -3
  47. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
  48. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
  49. package/libs/PanoMeasurePlugin/index.js +17 -14
  50. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
  52. package/libs/PanoSpatialTagPlugin/index.js +4 -1
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
  57. package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
  62. package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
  64. package/libs/PanoTagPlugin/controller/index.js +10 -7
  65. package/libs/PanoTagPlugin/index.js +16 -13
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
  67. package/libs/PanoVideoPlugin/Controller.js +9 -6
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
  69. package/libs/PanoVideoPlugin/index.js +9 -6
  70. package/libs/PipelinePlugin/Controller.js +13 -10
  71. package/libs/PipelinePlugin/index.js +7 -4
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
  75. package/libs/Sculpt/Meshes/Box.js +7 -6
  76. package/libs/Sculpt/Meshes/Cylinder.js +4 -3
  77. package/libs/Sculpt/Meshes/Line.d.ts +2 -1
  78. package/libs/Sculpt/Meshes/Line.js +11 -10
  79. package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
  80. package/libs/Sculpt/Meshes/Point.js +11 -10
  81. package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
  82. package/libs/Sculpt/Meshes/Polyline.js +31 -31
  83. package/libs/Sculpt/Meshes/Prism.js +2 -2
  84. package/libs/Sculpt/Meshes/Rectangle.js +5 -4
  85. package/libs/Sculpt/Objects/Line/Editor.js +4 -3
  86. package/libs/Sculpt/index.js +4 -3
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
  88. package/libs/base/BasePlugin.js +5 -4
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
  97. package/libs/floorplan/index.js +2 -1
  98. package/libs/index.js +131 -128
  99. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  100. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  101. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  102. package/libs/shared-utils/five/FiveDomEvents.js +1 -1
  103. package/libs/shared-utils/five/FiveLine.js +6 -18
  104. package/libs/shared-utils/five/index.js +4 -3
  105. package/libs/shared-utils/five/lookObject.js +18 -17
  106. package/libs/shared-utils/index.js +1 -1
  107. package/libs/shared-utils/logger.js +1 -1
  108. package/libs/shared-utils/tag.js +5 -5
  109. package/libs/shared-utils/three/PointSelector/index.js +24 -22
  110. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
  111. package/libs/shared-utils/three/boundingBox.js +1 -1
  112. package/libs/shared-utils/three/index.d.ts +1 -1
  113. package/libs/shared-utils/three/index.js +2 -1
  114. package/libs/vendor/three/build/three.module.js +19336 -0
  115. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
  116. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
  117. package/package.json +1 -1
  118. /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  119. /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  120. /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  121. /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  122. /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
  123. /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  124. /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
  125. /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  126. /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
@@ -5,7 +5,7 @@ import { CSS3DRender as f } from "../../../CSS3DRenderPlugin/utils/three/CSS3DRe
5
5
  import * as p from "three";
6
6
  import { RectangleScaleHelperAbstract as u } from "../Base/BaseHelper.js";
7
7
  import { rectangleScaleDom as y } from "./HTML/rectangleScaleDom.js";
8
- import "../../three/THREESphere.js";
8
+ import "../../three/core/Sphere.js";
9
9
  class v extends u {
10
10
  // eslint-disable-next-line max-params
11
11
  constructor(e, t, s, l) {
@@ -7,7 +7,7 @@ import { AXES_THREE_COLOR as w } from "../Constants/color.js";
7
7
  import { calculateScaleByCamera as a } from "../utils/calculateScaleByCamera.js";
8
8
  import "three";
9
9
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
- import "../../three/THREESphere.js";
10
+ import "../../three/core/Sphere.js";
11
11
  class z extends h {
12
12
  constructor(r, s) {
13
13
  super(r, s);
@@ -1,3 +1,3 @@
1
1
  import "three";
2
- import "../../three/THREESphere.js";
2
+ import "../../three/core/Sphere.js";
3
3
  import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
@@ -13,7 +13,7 @@ var o = (u, e, t) => (M(u, typeof e != "symbol" ? e + "" : e, t), t);
13
13
  import { getObjectVisible as $ } from "../three/getObjectVisible.js";
14
14
  import { calculateThreeMouse as W } from "./calculateThreeMouse.js";
15
15
  import { getFiveModel as j } from "./getFiveModel.js";
16
- import { THREERaycaster as L } from "../three/THREERaycaster.js";
16
+ import { THREERaycaster as L } from "../three/core/Raycaster.js";
17
17
  class B {
18
18
  // 事件由five触发时,用来补充 originEvent 属性
19
19
  constructor(e, t) {
@@ -1,5 +1,5 @@
1
- import { Line as r, LineGeometry as i, THREE_Line2 as s, LineMaterial as n } from "@realsee/five/line";
2
- class a extends r {
1
+ import { Line as r, THREE_Line2 as i, LineMaterial as s } from "@realsee/five/line";
2
+ class o extends r {
3
3
  constructor(...e) {
4
4
  super(...e);
5
5
  }
@@ -10,7 +10,7 @@ class a extends r {
10
10
  };
11
11
  }
12
12
  }
13
- class u extends s {
13
+ class a extends i {
14
14
  constructor(...e) {
15
15
  super(...e);
16
16
  }
@@ -21,18 +21,7 @@ class u extends s {
21
21
  };
22
22
  }
23
23
  }
24
- class L extends i {
25
- constructor(...e) {
26
- super(...e);
27
- }
28
- toJSON() {
29
- return {
30
- type: "FiveLineGeometry",
31
- attributes: this.attributes
32
- };
33
- }
34
- }
35
- class c extends n {
24
+ class c extends s {
36
25
  constructor(...e) {
37
26
  super(...e);
38
27
  }
@@ -44,8 +33,7 @@ class c extends n {
44
33
  }
45
34
  }
46
35
  export {
47
- a as FiveLine,
48
- L as LineGeometry,
36
+ o as FiveLine,
49
37
  c as LineMaterial,
50
- u as THREE_Line2
38
+ a as THREE_Line2
51
39
  };
@@ -3,12 +3,13 @@ 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 "../../vendor/three/examples/jsm/lines/LineGeometry.js";
6
7
  import "../tag.js";
7
- import "../three/THREESphere.js";
8
+ import "../three/core/Sphere.js";
8
9
  import "animejs";
9
- function f(e) {
10
+ function u(e) {
10
11
  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 不存在" };
11
12
  }
12
13
  export {
13
- f as checkFiveModelLoaded
14
+ u as checkFiveModelLoaded
14
15
  };
@@ -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 = (e, o, t) => o in e ? B(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, T = (e, o) => {
5
- for (var t in o || (o = {}))
6
- F.call(o, t) && V(e, t, o[t]);
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(o))
9
- H.call(o, t) && V(e, t, o[t]);
10
- return e;
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 = (e, o, t) => new Promise((r, m) => {
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(e, o)).next());
26
+ l((t = t.apply(o, e)).next());
27
27
  });
28
28
  import * as n from "three";
29
29
  import "hammerjs";
@@ -33,18 +33,19 @@ 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 "../../vendor/three/examples/jsm/lines/LineGeometry.js";
36
37
  import "../tag.js";
37
38
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
38
39
  import "animejs";
39
- function tt(e, o, t) {
40
+ function ot(o, e, t) {
40
41
  return g(this, null, function* () {
41
42
  var P, x, z;
42
- if (!o)
43
+ if (!e)
43
44
  return;
44
- const r = j(o);
45
+ const r = j(e);
45
46
  if (!r)
46
47
  return;
47
- const m = new O(e), u = (P = t == null ? void 0 : t.scale) != null ? P : 1.4, s = r.center, l = e.camera.position.clone().sub(s).setY(0).normalize(), a = e.state.mode === "Mapview" ? e.state.fov : 60, C = Math.max(1.5, r.radius * u), k = C * (1 / Math.tan(n.MathUtils.degToRad(a / 2)));
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)));
48
49
  let p = 0;
49
50
  const w = [], M = (c) => {
50
51
  const i = n.MathUtils.degToRad(c);
@@ -63,21 +64,21 @@ function tt(e, o, t) {
63
64
  p += 30;
64
65
  }
65
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());
66
- if (e.state.mode === "Mapview")
67
- return e.updateCamera(
67
+ if (o.state.mode === "Mapview")
68
+ return o.updateCamera(
68
69
  T({
69
70
  offset: s,
70
71
  distance: v
71
72
  }, b),
72
73
  800
73
74
  );
74
- e.setState(T({
75
+ o.setState(T({
75
76
  mode: "Mapview",
76
77
  offset: s,
77
78
  distance: v
78
- }, b)), yield e.ready();
79
+ }, b)), yield o.ready();
79
80
  });
80
81
  }
81
82
  export {
82
- tt as lookObject
83
+ ot as lookObject
83
84
  };
@@ -8,7 +8,7 @@ import { getCoordsFromClient as n, getCoordsFromElement as l } from "./three/get
8
8
  import { PointHelper as p } from "./three/PointSelector/utils/PointHelper.js";
9
9
  import { PointSelectorHelper as f } from "./three/PointSelector/utils/PointSelectorHelper.js";
10
10
  import { Object3D as a } from "./three/core/Object3D.js";
11
- import { LineSegments as d } from "./three/objects/LineSegments.js";
11
+ import { LineSegments as d } from "./three/core/LineSegments.js";
12
12
  import { bounding as g, boundingBox as u, boundingSphere as s, boxVertex as b, boxVertexes as x, worldBounding as c, worldBoundingBox as k, worldBoundingSphere as F } from "./three/boundingBox.js";
13
13
  import { animeMap as P, blink as w, reblink as B } from "./three/blink.js";
14
14
  import { isNil as S, notNil as v } from "./isNil.js";
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.49.0",
3
+ "%c %c@realsee/dnalogel %cv3.49.2",
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",
@@ -4,8 +4,8 @@ var s = (h, t, e) => (g(h, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  import { anyPositionToVector3 as d } from "./positionToVector3.js";
5
5
  import * as b from "three";
6
6
  import { vector3ToScreen as l } from "./five/vector3ToScreen.js";
7
- import { getFiveModel as U } from "./five/getFiveModel.js";
8
- import { FiveUtil as x } from "./Utils/FiveUtil.js";
7
+ import { getFiveModel as x } from "./five/getFiveModel.js";
8
+ import { FiveUtil as U } from "./Utils/FiveUtil.js";
9
9
  import { _raycaster as m } from "./three/temp.js";
10
10
  const v = "LightTagContainer_shgjakdhwakjdhsja", w = new b.Vector2();
11
11
  class E {
@@ -35,12 +35,12 @@ class E {
35
35
  if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
36
36
  let e = 0.01;
37
37
  this.fiveUtil.workUtil.fromType === "poincare" && (e = 0.05), m.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
38
- const o = (t = U(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
38
+ const o = (t = x(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
39
39
  (o == null ? void 0 : o.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");
40
40
  }
41
41
  });
42
42
  var n, r, a;
43
- this.five = t, this.fiveUtil = (n = t.__fiveUtil__) != null ? n : t.__fiveUtil__ = new x(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (r = this.originPosition) == null ? void 0 : r.clone(), this.positionsForRotate = (a = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
43
+ 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 = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : a.map((i) => d(i).clone()), this.container = (() => {
44
44
  const i = document.createElement("div");
45
45
  return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i.style.transition = "opacity 0.2s linear", i;
46
46
  })(), this.config = o != null ? o : {}, this.enable(), this.show();
@@ -57,7 +57,7 @@ class E {
57
57
  return;
58
58
  this.enabled = !0, this.wrapper = (r = (n = this.config.wrapper) != null ? n : (o = this.five.getElement()) == null ? void 0 : o.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (a = document.getElementById(v)) != null ? a : (() => {
59
59
  const i = document.createElement("div");
60
- 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;
60
+ 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.style.zIndex = "1", i;
61
61
  })(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
62
62
  let t = !1;
63
63
  const e = () => {
@@ -1,25 +1,25 @@
1
- var S = Object.defineProperty, b = Object.defineProperties;
2
- var y = Object.getOwnPropertyDescriptors;
1
+ var b = Object.defineProperty, y = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
3
  var p = Object.getOwnPropertySymbols;
4
- var E = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var f = (n, s, e) => s in n ? S(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, l = (n, s) => {
4
+ var I = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
+ var f = (n, s, e) => s in n ? b(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, l = (n, s) => {
6
6
  for (var e in s || (s = {}))
7
- E.call(s, e) && f(n, e, s[e]);
7
+ I.call(s, e) && f(n, e, s[e]);
8
8
  if (p)
9
9
  for (var e of p(s))
10
- I.call(s, e) && f(n, e, s[e]);
10
+ w.call(s, e) && f(n, e, s[e]);
11
11
  return n;
12
- }, m = (n, s) => b(n, y(s));
12
+ }, m = (n, s) => y(n, E(s));
13
13
  var i = (n, s, e) => (f(n, typeof s != "symbol" ? s + "" : s, e), e);
14
- import { PointSelectorHelper as w } from "./utils/PointSelectorHelper.js";
15
- import { isTouchDevice as H } from "../../isTouchDevice.js";
14
+ import { PointSelectorHelper as H } from "./utils/PointSelectorHelper.js";
15
+ import { isTouchDevice as v } from "../../isTouchDevice.js";
16
16
  import M from "hammerjs";
17
17
  import * as d from "three";
18
18
  import { Subscribe as N } from "../../Subscribe.js";
19
19
  import { getIntersectByRaycaster as F, getVirtualIntersectByRaycaster as U } from "../../five/getPosition.js";
20
- import { getRaycasterByNdcPosition as L } from "../../five/getRaycasterByNdcPosition.js";
21
- import { CURSOR_NOT_ALLOW_URL as v } from "./utils/contents.js";
22
- const T = new d.Vector3(), u = () => !1;
20
+ import { getRaycasterByNdcPosition as T } from "../../five/getRaycasterByNdcPosition.js";
21
+ import { CURSOR_NOT_ALLOW_URL as P } from "./utils/contents.js";
22
+ const L = new d.Vector3(), u = () => !1;
23
23
  class G extends N {
24
24
  constructor(e, t) {
25
25
  var a, o, c;
@@ -105,7 +105,9 @@ class G extends N {
105
105
  * @description: 手指抬起后,重置pressDown状态
106
106
  */
107
107
  i(this, "onPanEnd", () => {
108
- this.pressDown && (this.pressDown = !1, this.select());
108
+ this.pressDown && (setTimeout(() => {
109
+ this.pressDown = !1;
110
+ }, 100), this.select());
109
111
  });
110
112
  i(this, "updateByMousePosition", (e) => {
111
113
  this.five.getElement() && (e && (this.mousePosition = e), this.updateByNdcPosition(this.mouseNdcPosition));
@@ -115,11 +117,11 @@ class G extends N {
115
117
  */
116
118
  i(this, "updateByNdcPosition", (e) => {
117
119
  var h, a;
118
- const t = L(this.five, e), r = F(this.five, t);
120
+ const t = T(this.five, e), r = F(this.five, t);
119
121
  if (r)
120
122
  return this.updatePointSelectorHelperIntersect(r), this.lastIntersection = r, !0;
121
123
  if (this.plane) {
122
- const o = t.ray.intersectPlane(this.plane, T);
124
+ const o = t.ray.intersectPlane(this.plane, L);
123
125
  if (o) {
124
126
  const c = {
125
127
  distance: this.five.camera.position.distanceTo(o),
@@ -145,7 +147,7 @@ class G extends N {
145
147
  */
146
148
  i(this, "updatePointSelectorHelperIntersect", (e) => {
147
149
  if (!e) {
148
- this.onLeave(), this.five.getElement().style.cursor = v;
150
+ this.onLeave(), this.five.getElement().style.cursor = P;
149
151
  return;
150
152
  }
151
153
  this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
@@ -164,10 +166,10 @@ class G extends N {
164
166
  const t = this.five.getElement();
165
167
  if (!t)
166
168
  return null;
167
- const { top: r, left: h, width: a, height: o } = t.getBoundingClientRect(), { clientX: c, clientY: P } = e;
169
+ const { top: r, left: h, width: a, height: o } = t.getBoundingClientRect(), { clientX: c, clientY: S } = e;
168
170
  return {
169
171
  x: (c - h) / a,
170
- y: 1 - (P - r) / o
172
+ y: 1 - (S - r) / o
171
173
  };
172
174
  });
173
175
  i(this, "onFiveWantsPanGesture", () => {
@@ -182,12 +184,12 @@ class G extends N {
182
184
  });
183
185
  this.five = e, this.config = l(l({}, this.config), t), this.actionIfNoModelUnderMouse = (a = t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
184
186
  const r = (o = t == null ? void 0 : t.mode) != null ? o : "auto";
185
- r === "auto" ? this.mode = H ? "fixed" : "cursor" : this.mode = r;
187
+ r === "auto" ? this.mode = v ? "fixed" : "cursor" : this.mode = r;
186
188
  const h = {
187
189
  autoFixPCPosition: this.mode === "cursor",
188
190
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
189
191
  };
190
- this.pointSelectorHelper = new w(this.five, m(l({}, t == null ? void 0 : t.helper), {
192
+ this.pointSelectorHelper = new H(this.five, m(l({}, t == null ? void 0 : t.helper), {
191
193
  magnifierParams: l(l({}, h), (c = t == null ? void 0 : t.helper) == null ? void 0 : c.magnifierParams)
192
194
  })), this.pointSelectorHelper.hide();
193
195
  }
@@ -207,7 +209,7 @@ class G extends N {
207
209
  return this._cursorError;
208
210
  }
209
211
  set cursorError(e) {
210
- this._cursorError = e, this.five.getElement().style.cursor = e ? v : "", e ? this.pointSelectorHelper.hide() : this.pointSelectorHelper.show();
212
+ this._cursorError = e, this.five.getElement().style.cursor = e ? P : "", e ? this.pointSelectorHelper.hide() : this.pointSelectorHelper.show();
211
213
  }
212
214
  set outOfFive(e) {
213
215
  this._outOfFive = e;
@@ -225,7 +227,7 @@ class G extends N {
225
227
  const e = this.five.getElement();
226
228
  if (!e)
227
229
  throw new Error("five element not found");
228
- this.hammer || (this.hammer = new M(e)), this.mode === "cursor" ? (this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", u), this.five.on("wantsChangeMode", u), this.five.on("wantsTapGesture", u), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("wheel", this.onMouseWheel), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
230
+ this.hammer || (this.hammer = new M(e)), this.mode === "cursor" ? (this.five.on("wantsMoveToPano", u), this.five.on("wantsChangeMode", u), this.five.on("wantsTapGesture", u), e.addEventListener("mousemove", this.updateByMousePosition), v || e.addEventListener("wheel", this.onMouseWheel), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
229
231
  }
230
232
  disable() {
231
233
  if (!this.enabled)
@@ -6,7 +6,7 @@ import { Magnifier as u } from "../../Magnifier.js";
6
6
  import { PointHelper as b } from "./PointHelper.js";
7
7
  import { Subscribe as g } from "../../../Subscribe.js";
8
8
  import { PointHelper2 as o } from "./PointHelper2.js";
9
- import "../../THREESphere.js";
9
+ import "../../core/Sphere.js";
10
10
  import "animejs";
11
11
  class P {
12
12
  constructor(i, e) {
@@ -1,5 +1,5 @@
1
1
  import * as z from "three";
2
- import { THREESphere as S } from "./THREESphere.js";
2
+ import { THREESphere as S } from "./core/Sphere.js";
3
3
  function O(u) {
4
4
  const { max: t, min: n } = u;
5
5
  return [
@@ -3,6 +3,6 @@ export * from './getCoords';
3
3
  export * from './PointSelector/utils/PointHelper';
4
4
  export * from './PointSelector/utils/PointSelectorHelper';
5
5
  export * from './core/Object3D';
6
- export * from './objects/LineSegments';
6
+ export * from './core/LineSegments';
7
7
  export * from './boundingBox';
8
8
  export * from './blink';
@@ -2,7 +2,8 @@ import "hammerjs";
2
2
  import "three";
3
3
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
4
  import "@realsee/five/line";
5
+ import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
5
6
  import "../tag.js";
6
- import "./THREESphere.js";
7
+ import "./core/Sphere.js";
7
8
  import "animejs";
8
9
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";