@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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.
Files changed (107) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +2 -2
  4. package/dist/index.cjs.js +255 -255
  5. package/dist/index.js +2733 -2732
  6. package/dist/index.umd.js +251 -251
  7. package/dist/shared-utils/tag.d.ts +1 -1
  8. package/dist/shared-utils/three/index.d.ts +1 -0
  9. package/libs/AreaMakerPlugin/Controller.js +104 -74
  10. package/libs/AreaMakerPlugin/index.js +33 -3
  11. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  12. package/libs/CSS3DRenderPlugin/Controller.js +35 -15
  13. package/libs/CSS3DRenderPlugin/index.js +34 -14
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  16. package/libs/CruisePlugin/BaseController.js +59 -29
  17. package/libs/CruisePlugin/Move.js +32 -13
  18. package/libs/CruisePlugin/Work.js +65 -46
  19. package/libs/CruisePlugin/index.js +37 -18
  20. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  21. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  22. package/libs/GuideLinePlugin/Controller.js +59 -40
  23. package/libs/GuideLinePlugin/GuideLineItem.js +33 -14
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +33 -14
  26. package/libs/GuideLinePlugin/index.js +37 -18
  27. package/libs/ModelMakerPlugin/Controller.js +50 -32
  28. package/libs/ModelMakerPlugin/index.js +33 -15
  29. package/libs/ModelTVVideoPlugin/Plugin.js +47 -27
  30. package/libs/ModelTVVideoPlugin/index.js +23 -3
  31. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  32. package/libs/Object3DHelperPlugin/index.js +36 -17
  33. package/libs/PanoCompassPlugin/Controller.js +33 -13
  34. package/libs/PanoCompassPlugin/index.js +34 -14
  35. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  36. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  37. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  38. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  39. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  41. package/libs/PanoMeasurePlugin/Controller/index.js +15 -15
  42. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  45. package/libs/PanoMeasurePlugin/index.js +3 -3
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  47. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  48. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  49. package/libs/PanoRulerProPlugin/index.js +33 -3
  50. package/libs/PanoSpatialTagPlugin/Plugin.js +53 -33
  51. package/libs/PanoSpatialTagPlugin/index.js +21 -1
  52. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  53. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  54. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  55. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  56. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  57. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  58. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  59. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  60. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  61. package/libs/PanoTagPlugin/controller/TagRender.js +47 -28
  62. package/libs/PanoTagPlugin/controller/TagUtil.js +32 -13
  63. package/libs/PanoTagPlugin/controller/index.js +45 -26
  64. package/libs/PanoTagPlugin/index.js +40 -21
  65. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  66. package/libs/PanoVideoPlugin/Controller.js +91 -61
  67. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  68. package/libs/PanoVideoPlugin/index.js +36 -6
  69. package/libs/PipelinePlugin/Controller.js +80 -51
  70. package/libs/PipelinePlugin/index.js +34 -5
  71. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  72. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  73. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  74. package/libs/Sculpt/Meshes/Box.js +3 -2
  75. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  76. package/libs/Sculpt/Meshes/Line.js +9 -8
  77. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  78. package/libs/Sculpt/Meshes/Point.js +3 -2
  79. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  80. package/libs/Sculpt/Meshes/Prism.js +8 -7
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  82. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  83. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  84. package/libs/Sculpt/index.d.ts +2 -2
  85. package/libs/Sculpt/index.js +3 -2
  86. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  87. package/libs/base/BasePlugin.js +4 -3
  88. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +88 -59
  89. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  90. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  91. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  94. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  95. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  96. package/libs/floorplan/index.js +1 -0
  97. package/libs/index.js +28 -28
  98. package/libs/shared-utils/five/index.js +3 -2
  99. package/libs/shared-utils/five/lookObject.js +3 -2
  100. package/libs/shared-utils/index.js +44 -42
  101. package/libs/shared-utils/logger.js +1 -1
  102. package/libs/shared-utils/tag.d.ts +1 -1
  103. package/libs/shared-utils/tag.js +41 -41
  104. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  105. package/libs/shared-utils/three/index.d.ts +1 -0
  106. package/libs/shared-utils/three/index.js +1 -0
  107. package/package.json +1 -1
@@ -49,23 +49,52 @@ import "../../shared-utils/five/transformPosition.js";
49
49
  import "../../shared-utils/three/temp.js";
50
50
  import "../../shared-utils/dom/resizeObserver.js";
51
51
  import "hammerjs";
52
+ import "../../shared-utils/three/PointSelector/index.js";
53
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
54
+ import "../../shared-utils/three/Magnifier.js";
55
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
56
+ import "../../shared-utils/three/Assets/index.js";
57
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
52
58
  import "three/examples/jsm/renderers/CSS3DRenderer";
59
+ import "../../CSS3DRenderPlugin/utils/even.js";
60
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
61
+ import "../../shared-utils/three/centerPoint.js";
62
+ import "../../shared-utils/three/getObjectVisible.js";
53
63
  import "@realsee/five/line";
54
64
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
55
65
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
56
66
  import "../../vendor/three/build/three.module.js";
57
67
  import "../../shared-utils/three/core/Sphere.js";
58
68
  import "animejs";
59
- import "../../shared-utils/url/absoluteUrl.js";
69
+ import "../../shared-utils/isNil.js";
60
70
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
71
+ import "../../shared-utils/three/PointSelector/utils/html.js";
72
+ import "../../shared-utils/five/initialCSS3DRender.js";
73
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
74
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
75
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
76
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
77
+ import "../../Sculpt/Meshes/Line.js";
78
+ import "../../Sculpt/typings/style.js";
79
+ import "../../shared-utils/five/FiveLine.js";
80
+ import "../../shared-utils/three/IObject3D.js";
81
+ import "../../Sculpt/utils/removeAllTag.js";
82
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
83
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
84
+ import "../../shared-utils/util.js";
85
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
86
+ import "../../shared-utils/isTouchDevice.js";
87
+ import "../../shared-utils/five/getPosition.js";
88
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
89
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
90
+ import "../../shared-utils/url/absoluteUrl.js";
61
91
  import "../../shared-utils/five/changeMode.js";
62
92
  import "../../shared-utils/nearlyEqual.js";
63
93
  import "../../shared-utils/to.js";
64
94
  import "../../shared-utils/getPxmm.js";
65
95
  import "../../shared-utils/changeModelCanvasOpacity.js";
66
- import "../../shared-utils/isNil.js";
67
- const go = (o, r) => new t(o, r);
96
+ const So = (o, r) => new t(o, r);
68
97
  export {
69
- go as TopviewFloorplanPlugin,
70
- go as default
98
+ So as TopviewFloorplanPlugin,
99
+ So as default
71
100
  };
@@ -2,6 +2,7 @@ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
2
  import "three";
3
3
  import "../shared-utils/tag.js";
4
4
  import "hammerjs";
5
+ import "../shared-utils/three/PointSelector/index.js";
5
6
  import "three/examples/jsm/renderers/CSS3DRenderer";
6
7
  import "@realsee/five/line";
7
8
  import "../vendor/three/examples/jsm/lines/LineGeometry.js";
package/libs/index.js CHANGED
@@ -89,30 +89,48 @@ import "./shared-utils/five/transformPosition.js";
89
89
  import "./shared-utils/three/temp.js";
90
90
  import "./shared-utils/dom/resizeObserver.js";
91
91
  import "hammerjs";
92
+ import "./shared-utils/three/PointSelector/index.js";
93
+ import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
94
+ import "./shared-utils/three/PointSelector/utils/PointHelper.js";
95
+ import "./shared-utils/three/Assets/index.js";
96
+ import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
92
97
  import "three/examples/jsm/renderers/CSS3DRenderer";
98
+ import "./CSS3DRenderPlugin/utils/even.js";
99
+ import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
100
+ import "./shared-utils/three/centerPoint.js";
101
+ import "./shared-utils/three/getObjectVisible.js";
93
102
  import "@realsee/five/line";
94
103
  import "./vendor/three/examples/jsm/lines/LineGeometry.js";
95
104
  import "./vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
96
105
  import "./vendor/three/build/three.module.js";
97
106
  import "./shared-utils/three/core/Sphere.js";
98
107
  import "animejs";
99
- import "./shared-utils/url/absoluteUrl.js";
100
- import "./shared-utils/five/fiveModelLoad.js";
108
+ import "./shared-utils/isNil.js";
109
+ import "./shared-utils/three/PointSelector/utils/html.js";
110
+ import "./shared-utils/five/initialCSS3DRender.js";
101
111
  import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
102
112
  import "./CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
103
113
  import "./CSS3DRenderPlugin/utils/createResizeObserver.js";
104
- import "./CSS3DRenderPlugin/utils/even.js";
105
- import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
106
- import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
107
- import "./shared-utils/three/centerPoint.js";
108
- import "./shared-utils/three/getObjectVisible.js";
109
- import "./shared-utils/isNil.js";
114
+ import "./shared-utils/three/PointSelector/utils/PointHelper2.js";
115
+ import "./Sculpt/Meshes/Line.js";
116
+ import "./Sculpt/typings/style.js";
117
+ import "./shared-utils/five/FiveLine.js";
118
+ import "./shared-utils/three/IObject3D.js";
119
+ import "./Sculpt/utils/removeAllTag.js";
120
+ import "./Sculpt/utils/Meshes/getLengthHTML.js";
121
+ import "./shared-utils/three/applyObjectMatrixWorld.js";
122
+ import "./shared-utils/util.js";
123
+ import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
124
+ import "./shared-utils/isTouchDevice.js";
125
+ import "./shared-utils/five/getPosition.js";
126
+ import "./shared-utils/five/getRaycasterByNdcPosition.js";
127
+ import "./shared-utils/three/PointSelector/utils/contents.js";
128
+ import "./shared-utils/url/absoluteUrl.js";
129
+ import "./shared-utils/five/fiveModelLoad.js";
110
130
  import "./CSS3DRenderPlugin/utils/three/CSS3DScene.js";
111
131
  import "./CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
112
- import "./shared-utils/util.js";
113
132
  import "./CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
114
133
  import "./shared-utils/createLine/index.js";
115
- import "./shared-utils/five/FiveLine.js";
116
134
  import "./ModelRoomLabelPlugin/Controller.js";
117
135
  import "./ModelRoomLabelPlugin/RoomLabelItems.js";
118
136
  import "./vendor/svelte/internal/index.js";
@@ -201,7 +219,6 @@ import "./PanoMeasurePlugin/utils/dom/base.js";
201
219
  import "./PanoMeasurePlugin/utils/isNDCPointInScreen.js";
202
220
  import "./PanoMeasurePlugin/Model/area.js";
203
221
  import "./PanoMeasurePlugin/Model/polygon.js";
204
- import "./shared-utils/three/IObject3D.js";
205
222
  import "./shared-utils/three/generatePolygonGeometry.js";
206
223
  import "./shared-utils/three/earcut3D.js";
207
224
  import "earcut";
@@ -209,23 +226,6 @@ import "./shared-utils/three/getNormal.js";
209
226
  import "./PanoMeasurePlugin/utils/isIntersecting.js";
210
227
  import "./PanoMeasurePlugin/utils/dom/areaDom.js";
211
228
  import "./shared-utils/three/geometryUtil.js";
212
- import "./shared-utils/three/PointSelector/index.js";
213
- import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
214
- import "./shared-utils/three/PointSelector/utils/PointHelper.js";
215
- import "./shared-utils/three/Assets/index.js";
216
- import "./shared-utils/three/PointSelector/utils/html.js";
217
- import "./shared-utils/five/initialCSS3DRender.js";
218
- import "./shared-utils/three/PointSelector/utils/PointHelper2.js";
219
- import "./Sculpt/Meshes/Line.js";
220
- import "./Sculpt/typings/style.js";
221
- import "./Sculpt/utils/removeAllTag.js";
222
- import "./Sculpt/utils/Meshes/getLengthHTML.js";
223
- import "./shared-utils/three/applyObjectMatrixWorld.js";
224
- import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
225
- import "./shared-utils/isTouchDevice.js";
226
- import "./shared-utils/five/getPosition.js";
227
- import "./shared-utils/five/getRaycasterByNdcPosition.js";
228
- import "./shared-utils/three/PointSelector/utils/contents.js";
229
229
  import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
230
230
  import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js";
231
231
  import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js";
@@ -1,5 +1,6 @@
1
1
  import "three";
2
2
  import "hammerjs";
3
+ import "../three/PointSelector/index.js";
3
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
5
  import "../tag.js";
5
6
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -7,9 +8,9 @@ import "@realsee/five/line";
7
8
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
8
9
  import "../three/core/Sphere.js";
9
10
  import "animejs";
10
- function u(e) {
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
- u as checkFiveModelLoaded
15
+ p as checkFiveModelLoaded
15
16
  };
@@ -27,6 +27,7 @@ var g = (o, e, t) => new Promise((r, m) => {
27
27
  });
28
28
  import * as n from "three";
29
29
  import "hammerjs";
30
+ import "../three/PointSelector/index.js";
30
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
31
32
  import "../tag.js";
32
33
  import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
@@ -37,7 +38,7 @@ import "@realsee/five/line";
37
38
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
38
39
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
39
40
  import "animejs";
40
- function ot(o, e, t) {
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
- ot as lookObject
84
+ et as lookObject
84
85
  };
@@ -6,66 +6,68 @@ import { LightTag as i, tag as m } from "./tag.js";
6
6
  import { checkFiveModelLoaded as n } from "./five/index.js";
7
7
  import { Magnifier as p } from "./three/Magnifier.js";
8
8
  import { getCoordsFromClient as l, getCoordsFromElement as f } from "./three/getCoords.js";
9
- import { PointHelper as a } from "./three/PointSelector/utils/PointHelper.js";
10
- import { PointSelectorHelper as d } from "./three/PointSelector/utils/PointSelectorHelper.js";
11
- import { Object3D as g } from "./three/core/Object3D.js";
12
- import { LineSegments as u } from "./three/core/LineSegments.js";
13
- import { bounding as s, boundingBox as b, boundingSphere as x, boxVertex as c, boxVertexes as k, worldBounding as F, worldBoundingBox as P, worldBoundingSphere as w } from "./three/boundingBox.js";
14
- import { animeMap as B, blink as L, reblink as S } from "./three/blink.js";
15
- import { isNil as v, notNil as M } from "./isNil.js";
16
- import { uuid as h } from "./uuid.js";
17
- import { absoluteUrl as j, isAbsoluteURL as O } from "./url/absoluteUrl.js";
18
- import { awaitNextFrame as T, getFrameTime as _, nextFrame as y, requestAnimationFrameInterval as C } from "./animationFrame/index.js";
19
- import { equal as H } from "./equal.js";
20
- import { isModelLike as I, isPanoramaLike as N } from "./five/mode.js";
21
- import { lookObject as q } from "./five/lookObject.js";
22
- import { lookPoint as A } from "./five/lookPoint.js";
23
- import { BetterTween as R, tweenProgress as U } from "./animationFrame/BetterTween.js";
24
- const ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
+ import { PointSelector as a } from "./three/PointSelector/index.js";
10
+ import { PointHelper as d } from "./three/PointSelector/utils/PointHelper.js";
11
+ import { PointSelectorHelper as g } from "./three/PointSelector/utils/PointSelectorHelper.js";
12
+ import { Object3D as u } from "./three/core/Object3D.js";
13
+ import { LineSegments as s } from "./three/core/LineSegments.js";
14
+ import { bounding as b, boundingBox as c, boundingSphere as x, boxVertex as P, boxVertexes as k, worldBounding as F, worldBoundingBox as S, worldBoundingSphere as w } from "./three/boundingBox.js";
15
+ import { animeMap as B, blink as L, reblink as v } from "./three/blink.js";
16
+ import { isNil as M, notNil as h } from "./isNil.js";
17
+ import { uuid as j } from "./uuid.js";
18
+ import { absoluteUrl as O, isAbsoluteURL as T } from "./url/absoluteUrl.js";
19
+ import { awaitNextFrame as _, getFrameTime as y, nextFrame as C, requestAnimationFrameInterval as H } from "./animationFrame/index.js";
20
+ import { equal as I } from "./equal.js";
21
+ import { isModelLike as N, isPanoramaLike as q } from "./five/mode.js";
22
+ import { lookObject as A } from "./five/lookObject.js";
23
+ import { lookPoint as R } from "./five/lookPoint.js";
24
+ import { BetterTween as U, tweenProgress as V } from "./animationFrame/BetterTween.js";
25
+ const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
26
  __proto__: null,
26
- BetterTween: R,
27
+ BetterTween: U,
27
28
  Interval: r,
28
29
  LightTag: i,
29
- LineSegments: u,
30
+ LineSegments: s,
30
31
  Magnifier: p,
31
- Object3D: g,
32
- PointHelper: a,
33
- PointSelectorHelper: d,
32
+ Object3D: u,
33
+ PointHelper: d,
34
+ PointSelector: a,
35
+ PointSelectorHelper: g,
34
36
  Rectangle: e,
35
- absoluteUrl: j,
37
+ absoluteUrl: O,
36
38
  animeMap: B,
37
- awaitNextFrame: T,
39
+ awaitNextFrame: _,
38
40
  blink: L,
39
- bounding: s,
40
- boundingBox: b,
41
+ bounding: b,
42
+ boundingBox: c,
41
43
  boundingSphere: x,
42
- boxVertex: c,
44
+ boxVertex: P,
43
45
  boxVertexes: k,
44
46
  checkFiveModelLoaded: n,
45
47
  convexHull: t,
46
- equal: H,
48
+ equal: I,
47
49
  getCoordsFromClient: l,
48
50
  getCoordsFromElement: f,
49
- getFrameTime: _,
51
+ getFrameTime: y,
50
52
  inside: o,
51
- isAbsoluteURL: O,
52
- isModelLike: I,
53
- isNil: v,
54
- isPanoramaLike: N,
55
- lookObject: q,
56
- lookPoint: A,
57
- nextFrame: y,
58
- notNil: M,
53
+ isAbsoluteURL: T,
54
+ isModelLike: N,
55
+ isNil: M,
56
+ isPanoramaLike: q,
57
+ lookObject: A,
58
+ lookPoint: R,
59
+ nextFrame: C,
60
+ notNil: h,
59
61
  pointInPolygon: o,
60
- reblink: S,
61
- requestAnimationFrameInterval: C,
62
+ reblink: v,
63
+ requestAnimationFrameInterval: H,
62
64
  tag: m,
63
- tweenProgress: U,
64
- uuid: h,
65
+ tweenProgress: V,
66
+ uuid: j,
65
67
  worldBounding: F,
66
- worldBoundingBox: P,
68
+ worldBoundingBox: S,
67
69
  worldBoundingSphere: w
68
70
  }, Symbol.toStringTag, { value: "Module" }));
69
71
  export {
70
- ao as index
72
+ uo as index
71
73
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.50.14",
3
+ "%c %c@realsee/dnalogel %cv3.50.15-alpha.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",
@@ -47,7 +47,7 @@ export declare class LightTag {
47
47
  disable(): void;
48
48
  destroy(): void;
49
49
  setTransformMatrix(matrix: THREE.Matrix4): void;
50
- setPosition(position: THREE.Vector3, positionsForRotate?: THREE.Vector3[]): void;
50
+ setPosition(position: AnyPosition, positionsForRotate?: AnyPosition[]): void;
51
51
  updateScreenPosition(): void;
52
52
  private onCameraUpdate;
53
53
  private onFiveEveryReady;
@@ -1,67 +1,67 @@
1
1
  var u = Object.defineProperty;
2
2
  var P = (l, t, e) => t in l ? u(l, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[t] = e;
3
- var i = (l, t, e) => (P(l, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { anyPositionToVector3 as d } from "./positionToVector3.js";
3
+ var s = (l, t, e) => (P(l, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { anyPositionToVector3 as f } from "./positionToVector3.js";
5
5
  import * as g from "three";
6
- import { vector3ToScreen as f } from "./five/vector3ToScreen.js";
6
+ import { vector3ToScreen as d } from "./five/vector3ToScreen.js";
7
7
  import { getFiveModel as b } from "./five/getFiveModel.js";
8
8
  import { FiveUtil as U } from "./Utils/FiveUtil.js";
9
9
  import { _raycaster as m } from "./three/temp.js";
10
10
  import { resizeObserver as x } from "./dom/resizeObserver.js";
11
11
  const E = new g.Vector2();
12
12
  class w {
13
- constructor(t, e, o) {
13
+ constructor(t, e, i) {
14
14
  /**
15
15
  * @description 单个标签 dom
16
16
  */
17
- i(this, "container");
18
- i(this, "visible", !1);
19
- i(this, "enabled", !1);
17
+ s(this, "container");
18
+ s(this, "visible", !1);
19
+ s(this, "enabled", !1);
20
20
  /**
21
21
  * @description 标签容器的父容器
22
22
  * @default this.five.getElement()?.parentElement
23
23
  */
24
- i(this, "wrapper");
25
- i(this, "positionsForRotate");
24
+ s(this, "wrapper");
25
+ s(this, "positionsForRotate");
26
26
  /**
27
27
  * @description 碰撞检测
28
28
  * @default true
29
29
  */
30
- i(this, "intersectCheck", !0);
30
+ s(this, "intersectCheck", !0);
31
31
  /**
32
32
  * @description 模拟3D
33
33
  * @default true
34
34
  */
35
- i(this, "simulate3D", !1);
35
+ s(this, "simulate3D", !1);
36
36
  /**
37
37
  * @description 标签的容器,根据 namespace 区分
38
38
  */
39
- i(this, "tagWrapper");
40
- i(this, "five");
41
- i(this, "originPosition");
42
- i(this, "transformedPosition");
43
- i(this, "disposer");
44
- i(this, "config");
45
- i(this, "fiveUtil");
46
- i(this, "disposers", []);
47
- i(this, "onCameraUpdate", () => {
39
+ s(this, "tagWrapper");
40
+ s(this, "five");
41
+ s(this, "originPosition");
42
+ s(this, "transformedPosition");
43
+ s(this, "disposer");
44
+ s(this, "config");
45
+ s(this, "fiveUtil");
46
+ s(this, "disposers", []);
47
+ s(this, "onCameraUpdate", () => {
48
48
  this.visible !== !1 && this.updateScreenPosition();
49
49
  });
50
- i(this, "onFiveEveryReady", () => {
50
+ s(this, "onFiveEveryReady", () => {
51
51
  var t;
52
52
  if (this.intersectCheck && this.visible && this.five.state.mode !== "Panorama") {
53
- let e = !1, o = 0.01;
54
- this.fiveUtil.workUtil.fromType === "poincare" && (o = 0.05);
53
+ let e = !1, i = 0.01;
54
+ this.fiveUtil.workUtil.fromType === "poincare" && (i = 0.05);
55
55
  const a = this.transformedPosition.clone().sub(this.five.camera.position).normalize();
56
56
  m.set(this.five.camera.position, a);
57
57
  const n = (t = b(this.five).intersectRaycaster(m)) == null ? void 0 : t[0];
58
- n ? e = (n == null ? void 0 : n.distance) + o > this.transformedPosition.distanceTo(this.five.camera.position) : e = !0, e ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
58
+ n ? e = (n == null ? void 0 : n.distance) + i > this.transformedPosition.distanceTo(this.five.camera.position) : e = !0, e ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
59
59
  }
60
60
  });
61
61
  var a, n, h;
62
- this.five = t, this.fiveUtil = (a = t.__fiveUtil__) != null ? a : t.__fiveUtil__ = new U(t), this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (n = this.originPosition) == null ? void 0 : n.clone(), this.positionsForRotate = (h = o == null ? void 0 : o.positionsForRotate) == null ? void 0 : h.map((s) => d(s).clone()), this.config = o != null ? o : {}, this.container = (() => {
63
- const s = document.createElement("div");
64
- return s.classList.add("light-tag"), s.style.width = "0", s.style.height = "0", s.style.position = "absolute", s.style.transition = "opacity 0.2s linear", s;
62
+ this.five = t, this.fiveUtil = (a = t.__fiveUtil__) != null ? a : t.__fiveUtil__ = new U(t), this.originPosition = e ? f(e).clone() : void 0, this.transformedPosition = (n = this.originPosition) == null ? void 0 : n.clone(), this.positionsForRotate = (h = i == null ? void 0 : i.positionsForRotate) == null ? void 0 : h.map((o) => f(o).clone()), this.config = i != null ? i : {}, this.container = (() => {
63
+ const o = document.createElement("div");
64
+ return o.classList.add("light-tag"), o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o.style.transition = "opacity 0.2s linear", o;
65
65
  })(), this.enable(), this.show(), this.addResizeListener();
66
66
  }
67
67
  show() {
@@ -71,11 +71,11 @@ class w {
71
71
  this.visible = !1, this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
72
72
  }
73
73
  enable() {
74
- var a, n, h, s, c;
74
+ var a, n, h, o, c;
75
75
  if (this.enabled)
76
76
  return;
77
77
  this.enabled = !0, this.wrapper = (h = (n = this.config.wrapper) != null ? n : (a = this.five.getElement()) == null ? void 0 : a.parentElement) != null ? h : document.body;
78
- const t = `light-tag-wrapper-${(c = (s = this.config) == null ? void 0 : s.namespace) != null ? c : "default"}`;
78
+ const t = `light-tag-wrapper-${(c = (o = this.config) == null ? void 0 : o.namespace) != null ? c : "default"}`;
79
79
  if (!this.tagWrapper) {
80
80
  let p = Array.from(this.wrapper.children).find((r) => r.id === t);
81
81
  if (!p) {
@@ -86,13 +86,13 @@ class w {
86
86
  }
87
87
  this.tagWrapper.appendChild(this.container);
88
88
  let e = !1;
89
- const o = () => {
89
+ const i = () => {
90
90
  e || (e = !0, this.five.ready().then(() => {
91
91
  this.onFiveEveryReady(), e = !1;
92
92
  }));
93
93
  };
94
- this.five.on("cameraUpdate", o), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
95
- this.five.off("cameraUpdate", o), this.five.off("cameraUpdate", this.onCameraUpdate);
94
+ this.five.on("cameraUpdate", i), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
95
+ this.five.off("cameraUpdate", i), this.five.off("cameraUpdate", this.onCameraUpdate);
96
96
  };
97
97
  }
98
98
  disable() {
@@ -107,19 +107,19 @@ class w {
107
107
  this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
108
108
  }
109
109
  setPosition(t, e) {
110
- this.transformedPosition = t, this.positionsForRotate = e, this.onCameraUpdate(), setTimeout(() => this.onCameraUpdate(), 0);
110
+ this.transformedPosition = f(t).clone(), this.positionsForRotate = e == null ? void 0 : e.map((i) => f(i).clone()), this.onCameraUpdate(), setTimeout(() => this.onCameraUpdate(), 0);
111
111
  }
112
112
  updateScreenPosition() {
113
113
  if (!this.transformedPosition) {
114
114
  this.container.style.left = "-100%", this.container.style.top = "-100%";
115
115
  return;
116
116
  }
117
- const t = this.five.renderer.getSize(E), e = f(this.five.camera, this.transformedPosition, t);
117
+ const t = this.five.renderer.getSize(E), e = d(this.five.camera, this.transformedPosition, t);
118
118
  if (!e) {
119
119
  this.container.style.left = "-100%", this.container.style.top = "-100%";
120
120
  return;
121
121
  }
122
- const o = (() => {
122
+ const i = (() => {
123
123
  if (!this.simulate3D)
124
124
  return 1;
125
125
  const n = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), h = this.transformedPosition.distanceTo(this.five.camera.position);
@@ -127,19 +127,19 @@ class w {
127
127
  })(), a = (() => {
128
128
  if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
129
129
  return 0;
130
- const [n, h] = this.positionsForRotate, s = f(this.five.camera, n, t), c = f(this.five.camera, h, t);
131
- if (!s || !c)
130
+ const [n, h] = this.positionsForRotate, o = d(this.five.camera, n, t), c = d(this.five.camera, h, t);
131
+ if (!o || !c)
132
132
  return 0;
133
- const p = s.leftPx > c.leftPx ? c : s, r = s.leftPx > c.leftPx ? s : c, v = r.leftPx - p.leftPx, y = r.topPx - p.topPx;
133
+ const p = o.leftPx > c.leftPx ? c : o, r = o.leftPx > c.leftPx ? o : c, v = r.leftPx - p.leftPx, y = r.topPx - p.topPx;
134
134
  return Math.atan2(y, v) * (180 / Math.PI);
135
135
  })();
136
- 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})`, a && (this.container.style.transform += ` rotate(${a}deg)`);
136
+ this.container.style.left = e.leftPx + "px", this.container.style.top = e.topPx + "px", this.container.style.transformOrigin = "center", this.container.style.transform = `scale(${i})`, a && (this.container.style.transform += ` rotate(${a}deg)`);
137
137
  }
138
138
  addResizeListener() {
139
139
  const t = this.five.getElement();
140
140
  if (t) {
141
- const { observe: e, unobserve: o } = x(this.onCameraUpdate, t);
142
- e(), this.disposers.push(o);
141
+ const { observe: e, unobserve: i } = x(this.onCameraUpdate, t);
142
+ e(), this.disposers.push(i);
143
143
  }
144
144
  }
145
145
  }
@@ -3,12 +3,13 @@ var m = (a, i, e) => i in a ? d(a, i, { enumerable: !0, configurable: !0, writab
3
3
  var t = (a, i, e) => (m(a, typeof i != "symbol" ? i + "" : i, e), e);
4
4
  import * as p from "three";
5
5
  import { Magnifier as u } from "../../Magnifier.js";
6
+ import "../index.js";
6
7
  import { PointHelper as b } from "./PointHelper.js";
7
8
  import { Subscribe as g } from "../../../Subscribe.js";
8
9
  import { PointHelper2 as o } from "./PointHelper2.js";
9
10
  import "../../core/Sphere.js";
10
11
  import "animejs";
11
- class P {
12
+ class R {
12
13
  constructor(i, e) {
13
14
  t(this, "five");
14
15
  t(this, "hooks", new g());
@@ -56,5 +57,5 @@ class P {
56
57
  }
57
58
  }
58
59
  export {
59
- P as PointSelectorHelper
60
+ R as PointSelectorHelper
60
61
  };
@@ -1,5 +1,6 @@
1
1
  export * from './Magnifier';
2
2
  export * from './getCoords';
3
+ export * from './PointSelector';
3
4
  export * from './PointSelector/utils/PointHelper';
4
5
  export * from './PointSelector/utils/PointSelectorHelper';
5
6
  export * from './core/Object3D';
@@ -1,5 +1,6 @@
1
1
  import "hammerjs";
2
2
  import "three";
3
+ import "./PointSelector/index.js";
3
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
5
  import "../tag.js";
5
6
  import "@realsee/five/line";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.50.14",
3
+ "version": "3.50.15-alpha.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",