@realsee/dnalogel 3.47.3 → 3.47.5

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 (130) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Polygon.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  4. package/dist/Sculpt/utils/Meshes/getLengthHTML.d.ts +1 -0
  5. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +2 -2
  6. package/dist/index.cjs.js +79 -55
  7. package/dist/index.js +5073 -5050
  8. package/dist/index.umd.js +74 -50
  9. package/dist/shared-utils/five/vector3ToScreen.d.ts +4 -4
  10. package/dist/shared-utils/tag.d.ts +1 -3
  11. package/dist/shared-utils/three/Magnifier.d.ts +1 -0
  12. package/dist/shared-utils/three/index.d.ts +0 -2
  13. package/dist/shared-utils/three/raycaster.d.ts +2 -0
  14. package/libs/AreaMakerPlugin/Controller.js +16 -14
  15. package/libs/AreaMakerPlugin/index.js +18 -16
  16. package/libs/AreaMakerPlugin/utils/Item.js +55 -53
  17. package/libs/CSS3DRenderPlugin/Controller.js +14 -12
  18. package/libs/CSS3DRenderPlugin/index.js +21 -19
  19. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +15 -13
  20. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +16 -14
  21. package/libs/CruisePlugin/BaseController.js +29 -27
  22. package/libs/CruisePlugin/Move.js +21 -19
  23. package/libs/CruisePlugin/Work.js +16 -14
  24. package/libs/CruisePlugin/index.js +22 -20
  25. package/libs/CurrentPanoImagePlugin/Controller.js +25 -23
  26. package/libs/CurrentPanoImagePlugin/index.js +19 -17
  27. package/libs/GuideLinePlugin/Controller.js +18 -16
  28. package/libs/GuideLinePlugin/GuideLineItem.js +18 -16
  29. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -4
  30. package/libs/GuideLinePlugin/GuideLineModeItem.js +18 -16
  31. package/libs/GuideLinePlugin/index.js +22 -20
  32. package/libs/ModelMakerPlugin/Controller.js +22 -20
  33. package/libs/ModelMakerPlugin/index.js +18 -16
  34. package/libs/ModelMakerPlugin/item/baseItem.js +14 -13
  35. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  36. package/libs/ModelMakerPlugin/item/polygonItem.js +6 -5
  37. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  38. package/libs/ModelTVVideoPlugin/Plugin.js +17 -15
  39. package/libs/ModelTVVideoPlugin/index.js +16 -14
  40. package/libs/Object3DHelperPlugin/Controller.js +17 -15
  41. package/libs/Object3DHelperPlugin/index.js +21 -19
  42. package/libs/PanoCompassPlugin/Controller.js +18 -16
  43. package/libs/PanoCompassPlugin/index.js +19 -17
  44. package/libs/PanoDoorLabelPlugin/BaseController.js +18 -16
  45. package/libs/PanoDoorLabelPlugin/Controller.js +38 -36
  46. package/libs/PanoDoorLabelPlugin/index.js +19 -17
  47. package/libs/PanoMeasurePlugin/Components/Controller0.js +15 -13
  48. package/libs/PanoMeasurePlugin/Components/Controller1.js +15 -13
  49. package/libs/PanoMeasurePlugin/Controller/EditController.js +14 -12
  50. package/libs/PanoMeasurePlugin/Controller/WatchController.js +15 -13
  51. package/libs/PanoMeasurePlugin/Controller/index.js +13 -11
  52. package/libs/PanoMeasurePlugin/Model/area.js +15 -13
  53. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +15 -13
  54. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +15 -13
  55. package/libs/PanoMeasurePlugin/index.js +24 -22
  56. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +15 -13
  57. package/libs/PanoSpatialTagPlugin/Plugin.js +17 -15
  58. package/libs/PanoSpatialTagPlugin/index.js +14 -12
  59. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +17 -15
  60. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +16 -14
  61. package/libs/PanoTagPlugin/Components/Tag/index.js +16 -14
  62. package/libs/PanoTagPlugin/Components/TagContainer.js +16 -14
  63. package/libs/PanoTagPlugin/Components/TagItem.js +16 -14
  64. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +60 -60
  65. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +16 -14
  66. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +16 -14
  67. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +18 -16
  68. package/libs/PanoTagPlugin/controller/TagRender.js +15 -13
  69. package/libs/PanoTagPlugin/controller/TagUtil.js +16 -14
  70. package/libs/PanoTagPlugin/controller/index.js +18 -16
  71. package/libs/PanoTagPlugin/index.js +24 -22
  72. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +17 -15
  73. package/libs/PanoVideoPlugin/Controller.js +18 -16
  74. package/libs/PanoVideoPlugin/VideoMeshController.js +18 -16
  75. package/libs/PanoVideoPlugin/index.js +21 -19
  76. package/libs/PipelinePlugin/Controller.js +17 -15
  77. package/libs/PipelinePlugin/index.js +19 -17
  78. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +18 -16
  79. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +18 -16
  80. package/libs/PipelinePlugin/utils/Objects/Pipe.js +35 -33
  81. package/libs/Sculpt/Meshes/Box.js +6 -7
  82. package/libs/Sculpt/Meshes/Cylinder.js +15 -16
  83. package/libs/Sculpt/Meshes/Line.js +61 -55
  84. package/libs/Sculpt/Meshes/Point.js +6 -7
  85. package/libs/Sculpt/Meshes/Polygon.d.ts +1 -1
  86. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  87. package/libs/Sculpt/Meshes/Polyline.js +5 -6
  88. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  89. package/libs/Sculpt/Objects/Line/Editor.js +15 -16
  90. package/libs/Sculpt/Objects/Line/index.js +35 -35
  91. package/libs/Sculpt/Objects/Polygon/index.js +55 -61
  92. package/libs/Sculpt/Objects/Polyline/index.js +45 -45
  93. package/libs/Sculpt/index.js +1 -1
  94. package/libs/Sculpt/utils/Meshes/getLengthHTML.d.ts +1 -0
  95. package/libs/Sculpt/utils/Meshes/getLengthHTML.js +34 -0
  96. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +2 -2
  97. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  98. package/libs/base/BasePlugin.js +14 -15
  99. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +15 -13
  100. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -17
  101. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +15 -13
  102. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -17
  103. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +18 -16
  104. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +19 -17
  105. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +15 -13
  106. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -17
  107. package/libs/floorplan/index.js +1 -2
  108. package/libs/index.js +15 -15
  109. package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +7 -7
  110. package/libs/shared-utils/five/index.js +3 -4
  111. package/libs/shared-utils/five/lookObject.js +3 -4
  112. package/libs/shared-utils/five/vector3ToScreen.d.ts +4 -4
  113. package/libs/shared-utils/five/vector3ToScreen.js +9 -4
  114. package/libs/shared-utils/index.js +45 -49
  115. package/libs/shared-utils/logger.js +1 -1
  116. package/libs/shared-utils/tag.d.ts +1 -3
  117. package/libs/shared-utils/tag.js +37 -29
  118. package/libs/shared-utils/three/Magnifier.d.ts +1 -0
  119. package/libs/shared-utils/three/Magnifier.js +23 -24
  120. package/libs/shared-utils/three/index.d.ts +0 -2
  121. package/libs/shared-utils/three/index.js +1 -2
  122. package/libs/shared-utils/three/raycaster.d.ts +2 -0
  123. package/libs/shared-utils/three/raycaster.js +6 -0
  124. package/package.json +2 -2
  125. package/dist/shared-utils/three/getIntersect.d.ts +0 -21
  126. package/dist/shared-utils/three/getRaycaster.d.ts +0 -6
  127. package/libs/shared-utils/three/getIntersect.d.ts +0 -21
  128. package/libs/shared-utils/three/getIntersect.js +0 -24
  129. package/libs/shared-utils/three/getRaycaster.d.ts +0 -6
  130. package/libs/shared-utils/three/getRaycaster.js +0 -12
@@ -40,38 +40,44 @@ import "../../base/BasePlugin.js";
40
40
  import "../../shared-utils/Subscribe.js";
41
41
  import "hammerjs";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
+ import "../../Sculpt/Meshes/Line.js";
44
+ import "../../Sculpt/typings/style.js";
45
+ import "../../shared-utils/five/FiveLine.js";
43
46
  import "@realsee/five/line";
47
+ import "../../shared-utils/positionToVector3.js";
48
+ import "../../shared-utils/three/IObject3D.js";
49
+ import "../../shared-utils/three/centerPoint.js";
50
+ import "../../shared-utils/three/THREESphere.js";
51
+ import "animejs";
52
+ import "../../shared-utils/isNil.js";
53
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
54
+ import "../../shared-utils/tag.js";
55
+ import "../../shared-utils/five/vector3ToScreen.js";
56
+ import "../../shared-utils/five/getFiveModel.js";
57
+ import "../../shared-utils/three/raycaster.js";
44
58
  import "../../Sculpt/utils/Modules/Global.js";
45
59
  import "../../Sculpt/utils/Modules/Cursor.js";
46
60
  import "../../Object3DHelperPlugin/Controller.js";
47
- import "../../shared-utils/three/THREESphere.js";
48
61
  import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
49
62
  import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
50
63
  import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
51
- import "../../shared-utils/three/IObject3D.js";
52
64
  import "../../shared-utils/three/boundingBox.js";
53
65
  import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
54
66
  import "../../shared-utils/Object3DHelper/utils/direction.js";
55
67
  import "../../shared-utils/Object3DHelper/Constants/color.js";
56
68
  import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
57
69
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
58
- import "../../shared-utils/positionToVector3.js";
59
70
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
60
71
  import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
61
72
  import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
62
73
  import "../../CSS3DRenderPlugin/utils/even.js";
63
74
  import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
64
75
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
65
- import "../../shared-utils/three/centerPoint.js";
66
76
  import "../../shared-utils/three/getObjectVisible.js";
67
- import "animejs";
68
- import "../../shared-utils/isNil.js";
69
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
70
77
  import "../../shared-utils/Utils/FiveUtil.js";
71
78
  import "../../shared-utils/Utils/BaseUtil.js";
72
79
  import "../../shared-utils/Utils/WorkUtil.js";
73
80
  import "../../shared-utils/five/transformPosition.js";
74
- import "../../shared-utils/five/getFiveModel.js";
75
81
  import "../../shared-utils/url/absoluteUrl.js";
76
82
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
77
83
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -112,23 +118,19 @@ import "../../shared-utils/three/Assets/index.js";
112
118
  import "../../shared-utils/three/PointSelector/utils/html.js";
113
119
  import "../../shared-utils/five/initialCSS3DRender.js";
114
120
  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/tag.js";
119
- import "../../shared-utils/five/vector3ToScreen.js";
120
- import "../../Sculpt/utils/removeAllTag.js";
121
121
  import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
122
122
  import "../../shared-utils/isTouchDevice.js";
123
123
  import "../../shared-utils/five/getPosition.js";
124
124
  import "../../shared-utils/five/getRaycasterByNdcPosition.js";
125
+ import "../../Sculpt/utils/removeAllTag.js";
126
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
125
127
  import "../../shared-utils/five/changeMode.js";
126
128
  import "../../shared-utils/nearlyEqual.js";
127
129
  import "../../shared-utils/to.js";
128
130
  import "../../shared-utils/getPxmm.js";
129
131
  import "../../shared-utils/changeModelCanvasOpacity.js";
130
- const jr = (o, r) => new t(o, r);
132
+ const qr = (o, r) => new t(o, r);
131
133
  export {
132
- jr as TopviewFloorplanPlugin,
133
- jr as default
134
+ qr as TopviewFloorplanPlugin,
135
+ qr as default
134
136
  };
@@ -2,8 +2,7 @@ import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
2
  import "three";
3
3
  import "hammerjs";
4
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
- import "@realsee/five/line";
6
- import "../Sculpt/utils/Modules/Global.js";
5
+ import "../Sculpt/Meshes/Line.js";
7
6
  import "../shared-utils/three/THREESphere.js";
8
7
  import "animejs";
9
8
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
package/libs/index.js CHANGED
@@ -70,13 +70,25 @@ import "./CSS3DRenderPlugin/Controller.js";
70
70
  import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
71
71
  import "hammerjs";
72
72
  import "three/examples/jsm/renderers/CSS3DRenderer";
73
+ import "./Sculpt/Meshes/Line.js";
74
+ import "./Sculpt/typings/style.js";
75
+ import "./shared-utils/five/FiveLine.js";
73
76
  import "@realsee/five/line";
77
+ import "./shared-utils/positionToVector3.js";
78
+ import "./shared-utils/three/IObject3D.js";
79
+ import "./shared-utils/three/centerPoint.js";
80
+ import "./shared-utils/three/THREESphere.js";
81
+ import "animejs";
82
+ import "./shared-utils/isNil.js";
83
+ import "./shared-utils/tag.js";
84
+ import "./shared-utils/five/vector3ToScreen.js";
85
+ import "./shared-utils/five/getFiveModel.js";
86
+ import "./shared-utils/three/raycaster.js";
74
87
  import "./Sculpt/utils/Modules/Global.js";
75
88
  import "./Sculpt/utils/Modules/Cursor.js";
76
89
  import "./shared-utils/five/FiveDomEvents.js";
77
90
  import "./shared-utils/three/getObjectVisible.js";
78
91
  import "./shared-utils/five/calculateThreeMouse.js";
79
- import "./shared-utils/five/getFiveModel.js";
80
92
  import "./shared-utils/three/THREERaycaster.js";
81
93
  import "./shared-utils/three/PointSelector/index.js";
82
94
  import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
@@ -86,10 +98,6 @@ import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
86
98
  import "./CSS3DRenderPlugin/utils/even.js";
87
99
  import "./shared-utils/Subscribe.js";
88
100
  import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
89
- import "./shared-utils/three/centerPoint.js";
90
- import "./shared-utils/three/THREESphere.js";
91
- import "animejs";
92
- import "./shared-utils/isNil.js";
93
101
  import "./base/BasePlugin.js";
94
102
  import "./shared-utils/Utils/FiveUtil.js";
95
103
  import "./shared-utils/Utils/BaseUtil.js";
@@ -99,13 +107,11 @@ import "./shared-utils/url/absoluteUrl.js";
99
107
  import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
100
108
  import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
101
109
  import "./shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
102
- import "./shared-utils/three/IObject3D.js";
103
110
  import "./shared-utils/three/boundingBox.js";
104
111
  import "./shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
105
112
  import "./shared-utils/Object3DHelper/utils/direction.js";
106
113
  import "./shared-utils/Object3DHelper/Constants/color.js";
107
114
  import "./shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
108
- import "./shared-utils/positionToVector3.js";
109
115
  import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
110
116
  import "./CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
111
117
  import "./CSS3DRenderPlugin/utils/createResizeObserver.js";
@@ -140,16 +146,12 @@ import "./shared-utils/five/fiveModelLoad.js";
140
146
  import "./shared-utils/three/PointSelector/utils/html.js";
141
147
  import "./shared-utils/five/initialCSS3DRender.js";
142
148
  import "./shared-utils/three/PointSelector/utils/PointHelper2.js";
143
- import "./Sculpt/Meshes/Line.js";
144
- import "./Sculpt/typings/style.js";
145
- import "./shared-utils/five/FiveLine.js";
146
- import "./shared-utils/tag.js";
147
- import "./shared-utils/five/vector3ToScreen.js";
148
- import "./Sculpt/utils/removeAllTag.js";
149
149
  import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
150
150
  import "./shared-utils/isTouchDevice.js";
151
151
  import "./shared-utils/five/getPosition.js";
152
152
  import "./shared-utils/five/getRaycasterByNdcPosition.js";
153
+ import "./Sculpt/utils/removeAllTag.js";
154
+ import "./Sculpt/utils/Meshes/getLengthHTML.js";
153
155
  import "./shared-utils/createLine/index.js";
154
156
  import "./ModelRoomLabelPlugin/Controller.js";
155
157
  import "./ModelRoomLabelPlugin/RoomLabelItems.js";
@@ -501,8 +503,6 @@ import "./shared-utils/math/convexHull.js";
501
503
  import "./shared-utils/math/inside.js";
502
504
  import "./shared-utils/five/index.js";
503
505
  import "./shared-utils/three/getCoords.js";
504
- import "./shared-utils/three/getRaycaster.js";
505
- import "./shared-utils/three/getIntersect.js";
506
506
  import "./shared-utils/five/lookObject.js";
507
507
  r();
508
508
  o();
@@ -1,13 +1,13 @@
1
- import * as s from "three";
2
- import { calculateThreeMouse as c } from "./calculateThreeMouse.js";
3
- function u(t, e, a) {
4
- if (!e || !a || !t)
1
+ import * as o from "three";
2
+ import { calculateThreeMouse as n } from "./calculateThreeMouse.js";
3
+ function u(a, e, s) {
4
+ if (!e || !s || !a)
5
5
  return;
6
- const r = c(e, a);
6
+ const r = n(e, s);
7
7
  if (Math.abs(r.x) === 1 || Math.abs(r.y) === 1)
8
8
  return;
9
- const o = new s.Raycaster();
10
- return o.setFromCamera(r, t), o;
9
+ const t = new o.Raycaster();
10
+ return t.setFromCamera(r, a), t.params.Points.threshold = 0.1, t;
11
11
  }
12
12
  export {
13
13
  u as getMouseRaycaster
@@ -2,13 +2,12 @@ import "three";
2
2
  import "hammerjs";
3
3
  import "three/examples/jsm/renderers/CSS3DRenderer";
4
4
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
5
- import "@realsee/five/line";
6
- import "../../Sculpt/utils/Modules/Global.js";
5
+ import "../../Sculpt/Meshes/Line.js";
7
6
  import "../three/THREESphere.js";
8
7
  import "animejs";
9
- function f(e) {
8
+ function d(e) {
10
9
  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
10
  }
12
11
  export {
13
- f as checkFiveModelLoaded
12
+ d as checkFiveModelLoaded
14
13
  };
@@ -32,11 +32,10 @@ import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
32
32
  import { FiveUtil as O } from "../Utils/FiveUtil.js";
33
33
  import { notNil as Y } from "../isNil.js";
34
34
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
35
- import "@realsee/five/line";
36
- import "../../Sculpt/utils/Modules/Global.js";
35
+ import "../../Sculpt/Meshes/Line.js";
37
36
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
38
37
  import "animejs";
39
- function tt(e, o, t) {
38
+ function $(e, o, t) {
40
39
  return g(this, null, function* () {
41
40
  var P, x, z;
42
41
  if (!o)
@@ -79,5 +78,5 @@ function tt(e, o, t) {
79
78
  });
80
79
  }
81
80
  export {
82
- tt as lookObject
81
+ $ as lookObject
83
82
  };
@@ -1,5 +1,5 @@
1
- import type * as THREE from 'three';
2
- export default function vector3ToScreen(camera: THREE.Camera, vector3: THREE.Vector3): {
3
- leftPercent: number;
4
- topPercent: number;
1
+ import * as THREE from 'three';
2
+ export default function vector3ToScreen(camera: THREE.Camera, vector3: THREE.Vector3, rendererSize: THREE.Vector2): {
3
+ leftPx: number;
4
+ topPx: number;
5
5
  };
@@ -1,7 +1,12 @@
1
- function i(e, n) {
2
- const { x: t, y: o, z: r } = n.clone().project(e);
3
- return r > 1 ? void 0 : { leftPercent: (t + 1) / 2 * 100, topPercent: (-o + 1) / 2 * 100 };
1
+ import * as s from "three";
2
+ new s.Vector2();
3
+ function x(t, n, o) {
4
+ const { x: e, y: c, z: r } = n.clone().project(t);
5
+ return r > 1 ? void 0 : {
6
+ leftPx: (e + 1) / 2 * o.x,
7
+ topPx: (-c + 1) / 2 * o.y
8
+ };
4
9
  }
5
10
  export {
6
- i as vector3ToScreen
11
+ x as vector3ToScreen
7
12
  };
@@ -4,69 +4,65 @@ import { convexHull as t } from "./math/convexHull.js";
4
4
  import { inside as o } from "./math/inside.js";
5
5
  import { checkFiveModelLoaded as i } from "./five/index.js";
6
6
  import { Magnifier as m } from "./three/Magnifier.js";
7
- import { getCoordsFromClient as n, getCoordsFromElement as p } from "./three/getCoords.js";
8
- import { getRaycasterFromFivePointer as l } from "./three/getRaycaster.js";
9
- import { getIntersectFromRelativePosition as f } from "./three/getIntersect.js";
10
- import { PointHelper as a } from "./three/PointSelector/utils/PointHelper.js";
11
- import { PointSelectorHelper as d } from "./three/PointSelector/utils/PointSelectorHelper.js";
12
- import { Object3D as g } from "./three/core/Object3D.js";
13
- import { LineSegments as s } from "./three/objects/LineSegments.js";
14
- import { bounding as u, boundingBox as b, boundingSphere as c, boxVertex as x, boxVertexes as F, worldBounding as P, worldBoundingBox as k, worldBoundingSphere as v } from "./three/boundingBox.js";
15
- import { animeMap as w, blink as B, reblink as S } from "./three/blink.js";
16
- import { isNil as L, notNil as M } from "./isNil.js";
17
- import { uuid as j } from "./uuid.js";
18
- import { absoluteUrl as y, isAbsoluteURL as I } from "./url/absoluteUrl.js";
19
- import { awaitNextFrame as O, getFrameTime as R, nextFrame as _, requestAnimationFrameInterval as h } from "./animationFrame/index.js";
7
+ import { getCoordsFromClient as n, getCoordsFromElement as l } from "./three/getCoords.js";
8
+ import { PointHelper as p } from "./three/PointSelector/utils/PointHelper.js";
9
+ import { PointSelectorHelper as f } from "./three/PointSelector/utils/PointSelectorHelper.js";
10
+ import { Object3D as a } from "./three/core/Object3D.js";
11
+ import { LineSegments as d } from "./three/objects/LineSegments.js";
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
+ import { animeMap as P, blink as w, reblink as B } from "./three/blink.js";
14
+ import { isNil as S, notNil as v } from "./isNil.js";
15
+ import { uuid as L } from "./uuid.js";
16
+ import { absoluteUrl as M, isAbsoluteURL as j } from "./url/absoluteUrl.js";
17
+ import { awaitNextFrame as O, getFrameTime as _, nextFrame as h, requestAnimationFrameInterval as y } from "./animationFrame/index.js";
20
18
  import { equal as C } from "./equal.js";
21
- import { isModelLike as H, isPanoramaLike as N } from "./five/mode.js";
22
- import { lookObject as T } from "./five/lookObject.js";
23
- import { lookPoint as q } from "./five/lookPoint.js";
24
- import { BetterTween as A, tweenProgress as U } from "./animationFrame/BetterTween.js";
25
- const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19
+ import { isModelLike as H, isPanoramaLike as I } from "./five/mode.js";
20
+ import { lookObject as N } from "./five/lookObject.js";
21
+ import { lookPoint as T } from "./five/lookPoint.js";
22
+ import { BetterTween as q, tweenProgress as A } from "./animationFrame/BetterTween.js";
23
+ const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
24
  __proto__: null,
27
- BetterTween: A,
25
+ BetterTween: q,
28
26
  Interval: r,
29
- LineSegments: s,
27
+ LineSegments: d,
30
28
  Magnifier: m,
31
- Object3D: g,
32
- PointHelper: a,
33
- PointSelectorHelper: d,
29
+ Object3D: a,
30
+ PointHelper: p,
31
+ PointSelectorHelper: f,
34
32
  Rectangle: e,
35
- absoluteUrl: y,
36
- animeMap: w,
33
+ absoluteUrl: M,
34
+ animeMap: P,
37
35
  awaitNextFrame: O,
38
- blink: B,
39
- bounding: u,
40
- boundingBox: b,
41
- boundingSphere: c,
42
- boxVertex: x,
43
- boxVertexes: F,
36
+ blink: w,
37
+ bounding: g,
38
+ boundingBox: u,
39
+ boundingSphere: s,
40
+ boxVertex: b,
41
+ boxVertexes: x,
44
42
  checkFiveModelLoaded: i,
45
43
  convexHull: t,
46
44
  equal: C,
47
45
  getCoordsFromClient: n,
48
- getCoordsFromElement: p,
49
- getFrameTime: R,
50
- getIntersectFromRelativePosition: f,
51
- getRaycasterFromFivePointer: l,
46
+ getCoordsFromElement: l,
47
+ getFrameTime: _,
52
48
  inside: o,
53
- isAbsoluteURL: I,
49
+ isAbsoluteURL: j,
54
50
  isModelLike: H,
55
- isNil: L,
56
- isPanoramaLike: N,
57
- lookObject: T,
58
- lookPoint: q,
59
- nextFrame: _,
60
- notNil: M,
51
+ isNil: S,
52
+ isPanoramaLike: I,
53
+ lookObject: N,
54
+ lookPoint: T,
55
+ nextFrame: h,
56
+ notNil: v,
61
57
  pointInPolygon: o,
62
- reblink: S,
63
- requestAnimationFrameInterval: h,
64
- tweenProgress: U,
65
- uuid: j,
66
- worldBounding: P,
58
+ reblink: B,
59
+ requestAnimationFrameInterval: y,
60
+ tweenProgress: A,
61
+ uuid: L,
62
+ worldBounding: c,
67
63
  worldBoundingBox: k,
68
- worldBoundingSphere: v
64
+ worldBoundingSphere: F
69
65
  }, Symbol.toStringTag, { value: "Module" }));
70
66
  export {
71
- go as index
67
+ lo as index
72
68
  };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.47.3",
3
+ "%c %c@realsee/dnalogel %cv3.47.5",
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",
@@ -16,9 +16,7 @@ export declare class LightTag {
16
16
  wrapper?: HTMLElement;
17
17
  });
18
18
  show(): void;
19
- hide(params?: {
20
- withAnimation?: boolean;
21
- }): void;
19
+ hide(): void;
22
20
  enable(): void;
23
21
  disable(): void;
24
22
  destroy(): void;
@@ -1,12 +1,13 @@
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
- import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
7
- import { getFiveModel as m } from "./five/getFiveModel.js";
8
- const l = "LightTagContainer_shgjakdhwakjdhsja";
9
- class v {
1
+ var l = Object.defineProperty;
2
+ var d = (n, t, e) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var i = (n, t, e) => (d(n, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import { anyPositionToVector3 as f } from "./positionToVector3.js";
5
+ import * as m from "three";
6
+ import { vector3ToScreen as v } from "./five/vector3ToScreen.js";
7
+ import { getFiveModel as y } from "./five/getFiveModel.js";
8
+ import { _raycaster as c } from "./three/raycaster.js";
9
+ const p = "LightTagContainer_shgjakdhwakjdhsja", u = new m.Vector2();
10
+ class g {
10
11
  constructor(t, e, s) {
11
12
  i(this, "container");
12
13
  i(this, "visible", !1);
@@ -24,31 +25,30 @@ class v {
24
25
  i(this, "onFiveEveryReady", () => {
25
26
  var t;
26
27
  if (this.visible && this.five.state.mode !== "Panorama") {
27
- const e = new f.Raycaster();
28
- e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
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");
28
+ c.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
29
+ const s = (t = y(this.five).intersectRaycaster(c)) == null ? void 0 : t[0];
30
+ (s == null ? void 0 : s.distance) + 0.01 > 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");
31
31
  }
32
32
  });
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 = (() => {
33
+ var o;
34
+ this.five = t, this.originPosition = e ? f(e).clone() : void 0, this.transformedPosition = (o = this.originPosition) == null ? void 0 : o.clone(), this.container = (() => {
35
35
  const r = document.createElement("div");
36
- return r.style.width = "0", r.style.height = "0", r.style.position = "absolute", r;
36
+ return r.style.width = "0", r.style.height = "0", r.style.position = "absolute", r.style.transition = "opacity 0.2s linear", r;
37
37
  })(), this.config = s != null ? s : {}, this.enable(), this.show();
38
38
  }
39
39
  show() {
40
- this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
40
+ this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.onCameraUpdate();
41
41
  }
42
- hide(t) {
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
+ hide() {
43
+ this.visible = !1, this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
44
44
  }
45
45
  enable() {
46
- var s, a, r, h;
46
+ var s, o, r, h;
47
47
  if (this.enabled)
48
48
  return;
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;
49
+ this.enabled = !0, this.wrapper = (r = (o = this.config.wrapper) != null ? o : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (h = document.getElementById(p)) != null ? h : (() => {
50
+ const a = document.createElement("div");
51
+ return a.id = p, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
52
52
  })(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
53
53
  let t = !1;
54
54
  const e = () => {
@@ -79,14 +79,22 @@ class v {
79
79
  this.container.style.left = "-100%", this.container.style.top = "-100%";
80
80
  return;
81
81
  }
82
- const t = y(this.five.camera, this.transformedPosition);
83
- t ? (this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
82
+ const t = v(this.five.camera, this.transformedPosition, this.five.renderer.getSize(u));
83
+ if (!t) {
84
+ this.container.style.left = "-100%", this.container.style.top = "-100%";
85
+ return;
86
+ }
87
+ const e = (() => {
88
+ const s = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), o = this.transformedPosition.distanceTo(this.five.camera.position);
89
+ return Math.max(Math.min(1 - s * o / 40, 1), 0.5);
90
+ })();
91
+ this.container.style.left = t.leftPx + "px", this.container.style.top = t.topPx + "px", this.container.style.transform = `scale(${e})`;
84
92
  }
85
93
  }
86
- function w(n, t, e) {
87
- return new v(n, t, e);
94
+ function T(n, t, e) {
95
+ return new g(n, t, e);
88
96
  }
89
97
  export {
90
- v as LightTag,
91
- w as tag
98
+ g as LightTag,
99
+ T as tag
92
100
  };
@@ -40,6 +40,7 @@ export declare class Magnifier {
40
40
  private hammer?;
41
41
  private offsetRange?;
42
42
  private isPanning;
43
+ private imageData;
43
44
  constructor(five: Five, options: MagnifierParameter);
44
45
  enable(): this;
45
46
  disable(): this;
@@ -1,15 +1,15 @@
1
- var p = Object.defineProperty;
2
- var b = (r, t, e) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var n = (r, t, e) => (b(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- import C from "hammerjs";
1
+ var P = Object.defineProperty;
2
+ var p = (r, t, e) => t in r ? P(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
+ var n = (r, t, e) => (p(r, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import b from "hammerjs";
5
5
  import * as l from "three";
6
- import { Subscribe as R } from "../Subscribe.js";
7
- class Y {
6
+ import { Subscribe as C } from "../Subscribe.js";
7
+ class E {
8
8
  constructor(t, e) {
9
9
  n(this, "width");
10
10
  n(this, "height");
11
11
  n(this, "containerDom");
12
- n(this, "hooks", new R());
12
+ n(this, "hooks", new C());
13
13
  n(this, "canvas", document.createElement("canvas"));
14
14
  n(this, "config");
15
15
  n(this, "state", { enabled: !1 });
@@ -21,6 +21,7 @@ class Y {
21
21
  n(this, "hammer");
22
22
  n(this, "offsetRange");
23
23
  n(this, "isPanning", !1);
24
+ n(this, "imageData", new ImageData(1, 1));
24
25
  n(this, "onPanstart", () => {
25
26
  this.isPanning = !0, this.canvas.style.boxShadow = "0 2px 30px 0 rgba(0,0,0,0.20)";
26
27
  });
@@ -49,7 +50,7 @@ class Y {
49
50
  const i = this.canvas.getContext("2d");
50
51
  if (!i)
51
52
  throw new Error("CANNOT CREATE CONTEXT2D");
52
- this.context = i, this.config.dragEnabled && (this.hammer = new C(this.canvas), this.hammer.on("pan", this.onPan), this.hammer.on("panstart", this.onPanstart), this.hammer.on("panend", this.onPanend)), this.initStyle();
53
+ this.context = i, this.config.dragEnabled && (this.hammer = new b(this.canvas), this.hammer.on("pan", this.onPan), this.hammer.on("panstart", this.onPanstart), this.hammer.on("panend", this.onPanend)), this.initStyle();
53
54
  }
54
55
  enable() {
55
56
  if (!this.state.enabled)
@@ -100,12 +101,12 @@ class Y {
100
101
  return;
101
102
  const { width: t, height: e } = this, { clientWidth: i, clientHeight: s } = this.containerDom, [h, o, a] = (() => {
102
103
  if (this.renderCenter instanceof l.Vector3) {
103
- const c = this.renderCenter.clone().project(this.five.camera);
104
+ const f = this.renderCenter.clone().project(this.five.camera);
104
105
  return [
105
106
  //
106
- (c.x + 1) / 2 * i,
107
- -(c.x - 1) / 2 * i,
108
- -(c.y - 1) / 2 * s
107
+ (f.x + 1) / 2 * i,
108
+ -(f.x - 1) / 2 * i,
109
+ -(f.y - 1) / 2 * s
109
110
  ];
110
111
  } else
111
112
  return [this.renderCenter.x, i - this.renderCenter.x, this.renderCenter.y];
@@ -117,14 +118,12 @@ class Y {
117
118
  return;
118
119
  const { scale: t, context: e, width: i, height: s } = this, h = this.five.renderer.getSize(new l.Vector2()), [o, a] = (() => {
119
120
  if (this.renderCenter instanceof l.Vector3) {
120
- const y = this.renderCenter.clone().project(this.five.camera);
121
- return [(y.x + 1) / 2 * h.x, (y.y + 1) / 2 * h.y];
121
+ const v = this.renderCenter.clone().project(this.five.camera);
122
+ return [(v.x + 1) / 2 * h.x, (v.y + 1) / 2 * h.y];
122
123
  } else
123
124
  return [this.renderCenter.x, h.y - this.renderCenter.y];
124
- })(), c = 1, f = i / t, x = s / t, P = c * t, g = this.five.getPixels(o - f / 2, a - f / 2, f, x, P), m = Math.floor(i * c), u = Math.floor(s * c);
125
- w(g, m, u);
126
- const v = new ImageData(m, u);
127
- v.data.set(g), e.putImageData(v, 0, 0), this.canvas.style.visibility = "visible";
125
+ })(), f = 1, c = i / t, g = s / t, y = f * t, u = this.five.getPixels(o - c / 2, a - c / 2, c, g, y), x = Math.floor(i * f), m = Math.floor(s * f);
126
+ D(u, x, m), (this.imageData.width !== x || this.imageData.height !== m) && (this.imageData = new ImageData(x, m)), this.imageData.data.set(u), e.putImageData(this.imageData, 0, 0), this.canvas.style.visibility = "visible";
128
127
  }
129
128
  initStyle() {
130
129
  const t = this.canvas;
@@ -136,24 +135,24 @@ class Y {
136
135
  const {
137
136
  min: { x: i, y: s },
138
137
  max: { x: h, y: o }
139
- } = e, a = this.offset.x + t.deltaX, c = this.offset.y + t.deltaY, f = Math.min(Math.max(a, i), h), x = Math.min(Math.max(c, s), o);
140
- return { translateX: f, translateY: x };
138
+ } = e, a = this.offset.x + t.deltaX, f = this.offset.y + t.deltaY, c = Math.min(Math.max(a, i), h), g = Math.min(Math.max(f, s), o);
139
+ return { translateX: c, translateY: g };
141
140
  }
142
141
  }
143
142
  function d(r, t, e) {
144
143
  const i = r[t], s = r[e];
145
144
  i === void 0 || s === void 0 || (r[t] = s, r[e] = i);
146
145
  }
147
- function w(r, t, e) {
146
+ function D(r, t, e) {
148
147
  const i = e / 2;
149
148
  for (let s = 1; s <= i; s++) {
150
149
  const h = e - (s - 1);
151
150
  for (let o = 1; o <= t; o++) {
152
- const a = (s - 1) * t + o - 1, c = (h - 1) * t + o - 1;
153
- d(r, a * 4 + 0, c * 4 + 0), d(r, a * 4 + 1, c * 4 + 1), d(r, a * 4 + 2, c * 4 + 2), d(r, a * 4 + 3, c * 4 + 3);
151
+ const a = (s - 1) * t + o - 1, f = (h - 1) * t + o - 1;
152
+ d(r, a * 4 + 0, f * 4 + 0), d(r, a * 4 + 1, f * 4 + 1), d(r, a * 4 + 2, f * 4 + 2), d(r, a * 4 + 3, f * 4 + 3);
154
153
  }
155
154
  }
156
155
  }
157
156
  export {
158
- Y as Magnifier
157
+ E as Magnifier
159
158
  };
@@ -1,7 +1,5 @@
1
1
  export * from './Magnifier';
2
2
  export * from './getCoords';
3
- export * from './getRaycaster';
4
- export * from './getIntersect';
5
3
  export * from './PointSelector/utils/PointHelper';
6
4
  export * from './PointSelector/utils/PointSelectorHelper';
7
5
  export * from './core/Object3D';