@realsee/dnalogel 3.48.7 → 3.49.1

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 (140) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/dist/Sculpt/Meshes/Line.d.ts +2 -1
  3. package/dist/Sculpt/Meshes/Prism.d.ts +1 -0
  4. package/dist/index.cjs.js +3008 -87
  5. package/dist/index.js +39484 -20079
  6. package/dist/index.umd.js +3001 -80
  7. package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  8. package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
  9. package/dist/shared-utils/three/PointSelector/index.d.ts +2 -1
  10. package/dist/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
  11. package/dist/shared-utils/three/index.d.ts +1 -1
  12. package/libs/AreaMakerPlugin/Controller.js +7 -4
  13. package/libs/AreaMakerPlugin/index.js +7 -4
  14. package/libs/AreaMakerPlugin/utils/Item.js +7 -4
  15. package/libs/CSS3DRenderPlugin/Controller.js +12 -9
  16. package/libs/CSS3DRenderPlugin/index.js +9 -6
  17. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
  18. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
  19. package/libs/CruisePlugin/BaseController.js +12 -9
  20. package/libs/CruisePlugin/Move.js +7 -4
  21. package/libs/CruisePlugin/Work.js +7 -4
  22. package/libs/CruisePlugin/index.js +11 -8
  23. package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
  24. package/libs/CurrentPanoImagePlugin/index.js +7 -4
  25. package/libs/GuideLinePlugin/Controller.js +9 -6
  26. package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
  27. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
  28. package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
  29. package/libs/GuideLinePlugin/index.js +11 -8
  30. package/libs/ModelMakerPlugin/Controller.js +7 -4
  31. package/libs/ModelMakerPlugin/index.js +7 -4
  32. package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
  33. package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
  34. package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
  35. package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
  36. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
  37. package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
  38. package/libs/ModelTVVideoPlugin/index.js +6 -3
  39. package/libs/Object3DHelperPlugin/Controller.js +6 -3
  40. package/libs/Object3DHelperPlugin/index.js +9 -6
  41. package/libs/PanoCompassPlugin/Controller.js +6 -3
  42. package/libs/PanoCompassPlugin/index.js +7 -4
  43. package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
  44. package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
  45. package/libs/PanoDoorLabelPlugin/index.js +7 -4
  46. package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
  47. package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
  48. package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
  49. package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
  50. package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
  51. package/libs/PanoMeasurePlugin/Model/area.js +6 -3
  52. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
  53. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
  54. package/libs/PanoMeasurePlugin/index.js +17 -14
  55. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
  56. package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
  57. package/libs/PanoSpatialTagPlugin/index.js +4 -1
  58. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
  59. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
  60. package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
  61. package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
  62. package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
  63. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
  64. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
  65. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
  66. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
  67. package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
  68. package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
  69. package/libs/PanoTagPlugin/controller/index.js +10 -7
  70. package/libs/PanoTagPlugin/index.js +16 -13
  71. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
  72. package/libs/PanoVideoPlugin/Controller.js +9 -6
  73. package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
  74. package/libs/PanoVideoPlugin/index.js +9 -6
  75. package/libs/PipelinePlugin/Controller.js +13 -10
  76. package/libs/PipelinePlugin/index.js +7 -4
  77. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
  78. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
  79. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
  80. package/libs/Sculpt/Meshes/Box.js +7 -6
  81. package/libs/Sculpt/Meshes/Cylinder.js +4 -3
  82. package/libs/Sculpt/Meshes/Line.d.ts +2 -1
  83. package/libs/Sculpt/Meshes/Line.js +11 -10
  84. package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
  85. package/libs/Sculpt/Meshes/Point.js +11 -10
  86. package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
  87. package/libs/Sculpt/Meshes/Polyline.js +31 -31
  88. package/libs/Sculpt/Meshes/Prism.d.ts +1 -0
  89. package/libs/Sculpt/Meshes/Prism.js +48 -38
  90. package/libs/Sculpt/Meshes/Rectangle.js +5 -4
  91. package/libs/Sculpt/Objects/Line/Editor.js +4 -3
  92. package/libs/Sculpt/index.js +4 -3
  93. package/libs/Sculpt/utils/Modules/Global.js +1 -1
  94. package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
  95. package/libs/base/BasePlugin.js +5 -4
  96. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
  97. package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
  98. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
  99. package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
  100. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
  101. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
  102. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
  103. package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
  104. package/libs/floorplan/index.js +2 -1
  105. package/libs/index.js +131 -128
  106. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +57 -57
  107. package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
  108. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +91 -97
  109. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
  110. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +34 -31
  111. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  112. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  113. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  114. package/libs/shared-utils/five/FiveDomEvents.js +1 -1
  115. package/libs/shared-utils/five/FiveLine.js +6 -18
  116. package/libs/shared-utils/five/index.js +4 -3
  117. package/libs/shared-utils/five/lookObject.js +18 -17
  118. package/libs/shared-utils/index.js +1 -1
  119. package/libs/shared-utils/logger.js +1 -1
  120. package/libs/shared-utils/three/PointSelector/index.d.ts +2 -1
  121. package/libs/shared-utils/three/PointSelector/index.js +24 -22
  122. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
  123. package/libs/shared-utils/three/boundingBox.js +1 -1
  124. package/libs/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
  125. package/libs/shared-utils/three/generatePolygonGeometry.js +8 -10
  126. package/libs/shared-utils/three/index.d.ts +1 -1
  127. package/libs/shared-utils/three/index.js +2 -1
  128. package/libs/vendor/three/build/three.module.js +19336 -0
  129. package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
  130. package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
  131. package/package.json +1 -1
  132. /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  133. /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  134. /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  135. /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
  136. /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
  137. /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
  138. /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
  139. /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
  140. /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
package/libs/index.js CHANGED
@@ -1,62 +1,62 @@
1
1
  import { consoleVersion as o } from "./shared-utils/logger.js";
2
2
  import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
3
- import { PaintBrush as Rl } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Ol } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as Al } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Gl } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as vl } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as Yl, modelRoomLabelPluginServerParams as cl } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Nl } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as kl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as Bl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Ul } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as $l } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FLOOR_TYPE_MAP as ql, ROOM_FETILE_TYPE_MAP as zl, ROOM_TYPE_MAP as Jl } from "./floorplan/typings/floorplanServerData.js";
15
- import { ModelChassisCompassPlugin as Ql } from "./ModelChassisCompassPlugin/Plugin.js";
16
- import { ModelEntryDoorGuidePlugin as Zl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
- import { CameraMovementPlugin as rn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
- import { CameraMovementEffect as mn, Rotation as pn } from "./CameraMovementPlugin/typing.js";
19
- import { PanoRulerPlugin as ln } from "./PanoRulerPlugin/Plugin.js";
20
- import { PanoRulerProPlugin as an } from "./PanoRulerProPlugin/index.js";
21
- import { PanoCompassPlugin as un } from "./PanoCompassPlugin/index.js";
22
- import { PanoMeasurePlugin as xn } from "./PanoMeasurePlugin/index.js";
23
- import { PanoSpatialTagPlugin as sn } from "./PanoSpatialTagPlugin/Plugin.js";
24
- import { modelItemLabelPluginServerParams as Mn } from "./ModelItemLabelPlugin/index.js";
25
- import { ModelTVVideoPlugin as Ln } from "./ModelTVVideoPlugin/Plugin.js";
26
- import { DIRECTION as _n } from "./ModelTVVideoPlugin/typings.js";
27
- import { itemLabelPluginServerParams as In } from "./ItemLabelPlugin/index.js";
28
- import { PanoDoorLabelPlugin as Sn } from "./PanoDoorLabelPlugin/index.js";
29
- import { GuideLinePlugin as yn } from "./GuideLinePlugin/index.js";
30
- import { CruisePlugin as Dn, MovePlugin as Gn } from "./CruisePlugin/index.js";
31
- import { PanoTagPlugin as vn } from "./PanoTagPlugin/index.js";
32
- import { Object3DHelperPlugin as Yn } from "./Object3DHelperPlugin/index.js";
33
- import { PanoVideoPlugin as Vn } from "./PanoVideoPlugin/index.js";
34
- import { PipelinePlugin as hn } from "./PipelinePlugin/index.js";
35
- import { AreaMakerPlugin as wn } from "./AreaMakerPlugin/index.js";
36
- import { CurrentPanoImagePlugin as Hn } from "./CurrentPanoImagePlugin/index.js";
37
- import { Sculpt as jn, SculptPlugin as $n } from "./Sculpt/index.js";
38
- import { ModelMakerPlugin as qn } from "./ModelMakerPlugin/index.js";
39
- import { index as Jn } from "./shared-utils/index.js";
40
- import { CSS3DRender as Qn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
- import { Model as Zn } from "./PanoMeasurePlugin/Model/index.js";
42
- import { default as ra } from "./PanoMeasurePlugin/Model/point.js";
43
- import { default as ia } from "./PanoMeasurePlugin/Model/line.js";
44
- import { Polyline as pa } from "./PanoMeasurePlugin/Model/polyline.js";
45
- import { Magnifier as la } from "./shared-utils/three/Magnifier.js";
46
- import { DISPLAY_STRATEGY_TYPE as aa } from "./ModelItemLabelPlugin/typings.js";
47
- import { ModelItemLabelPlugin as ua } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as xa } from "./ItemLabelPlugin/typings.js";
49
- import { Plugin as sa } from "./ItemLabelPlugin/Plugin.js";
50
- import { GuideLineItem$1 as Ma } from "./GuideLinePlugin/GuideLineItem/index.js";
51
- import { GuideLineModeItem$1 as La } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
- import { default as _a, default as Ea } from "./CruisePlugin/Work.js";
53
- import { default as Ra } from "./CruisePlugin/Move.js";
54
- import { typing as Oa } from "./CruisePlugin/typing/index.js";
55
- import { default as Aa, pluginFlag as Da } from "./PanoTagPlugin/controller/index.js";
56
- import { defaultGlobalConfig as ba } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
- import { ContentType as Fa, DimensionType as Ya, PointType as ca } from "./PanoTagPlugin/Archive/deprecated.js";
58
- import { Object3DHelperController as Na, PLUGIN as ha } from "./Object3DHelperPlugin/Controller.js";
59
- import { typings as wa } from "./PanoVideoPlugin/typings/index.js";
3
+ import { PaintBrush as yl } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Dl } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as bl } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Fl } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as cl } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Nl, modelRoomLabelPluginServerParams as hl } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as wl } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Hl } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as jl } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Wl } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as zl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FLOOR_TYPE_MAP as Kl, ROOM_FETILE_TYPE_MAP as Ql, ROOM_TYPE_MAP as Xl } from "./floorplan/typings/floorplanServerData.js";
15
+ import { ModelChassisCompassPlugin as on } from "./ModelChassisCompassPlugin/Plugin.js";
16
+ import { ModelEntryDoorGuidePlugin as tn } from "./ModelEntryDoorGuidePlugin/Plugin.js";
17
+ import { CameraMovementPlugin as pn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
18
+ import { CameraMovementEffect as ln, Rotation as nn } from "./CameraMovementPlugin/typing.js";
19
+ import { PanoRulerPlugin as Pn } from "./PanoRulerPlugin/Plugin.js";
20
+ import { PanoRulerProPlugin as fn } from "./PanoRulerProPlugin/index.js";
21
+ import { PanoCompassPlugin as gn } from "./PanoCompassPlugin/index.js";
22
+ import { PanoMeasurePlugin as dn } from "./PanoMeasurePlugin/index.js";
23
+ import { PanoSpatialTagPlugin as Tn } from "./PanoSpatialTagPlugin/Plugin.js";
24
+ import { modelItemLabelPluginServerParams as Cn } from "./ModelItemLabelPlugin/index.js";
25
+ import { ModelTVVideoPlugin as En } from "./ModelTVVideoPlugin/Plugin.js";
26
+ import { DIRECTION as Rn } from "./ModelTVVideoPlugin/typings.js";
27
+ import { itemLabelPluginServerParams as On } from "./ItemLabelPlugin/index.js";
28
+ import { PanoDoorLabelPlugin as An } from "./PanoDoorLabelPlugin/index.js";
29
+ import { GuideLinePlugin as Gn } from "./GuideLinePlugin/index.js";
30
+ import { CruisePlugin as vn, MovePlugin as Fn } from "./CruisePlugin/index.js";
31
+ import { PanoTagPlugin as cn } from "./PanoTagPlugin/index.js";
32
+ import { Object3DHelperPlugin as Nn } from "./Object3DHelperPlugin/index.js";
33
+ import { PanoVideoPlugin as kn } from "./PanoVideoPlugin/index.js";
34
+ import { PipelinePlugin as Bn } from "./PipelinePlugin/index.js";
35
+ import { AreaMakerPlugin as Un } from "./AreaMakerPlugin/index.js";
36
+ import { CurrentPanoImagePlugin as $n } from "./CurrentPanoImagePlugin/index.js";
37
+ import { Sculpt as qn, SculptPlugin as zn } from "./Sculpt/index.js";
38
+ import { ModelMakerPlugin as Kn } from "./ModelMakerPlugin/index.js";
39
+ import { index as Xn } from "./shared-utils/index.js";
40
+ import { CSS3DRender as oa } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
+ import { Model as ta } from "./PanoMeasurePlugin/Model/index.js";
42
+ import { default as ma } from "./PanoMeasurePlugin/Model/point.js";
43
+ import { default as ea } from "./PanoMeasurePlugin/Model/line.js";
44
+ import { Polyline as na } from "./PanoMeasurePlugin/Model/polyline.js";
45
+ import { Magnifier as Pa } from "./shared-utils/three/Magnifier.js";
46
+ import { DISPLAY_STRATEGY_TYPE as fa } from "./ModelItemLabelPlugin/typings.js";
47
+ import { ModelItemLabelPlugin as ga } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
48
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as da } from "./ItemLabelPlugin/typings.js";
49
+ import { Plugin as Ta } from "./ItemLabelPlugin/Plugin.js";
50
+ import { GuideLineItem$1 as Ca } from "./GuideLinePlugin/GuideLineItem/index.js";
51
+ import { GuideLineModeItem$1 as Ea } from "./GuideLinePlugin/GuideLineModeItem/index.js";
52
+ import { default as Ra, default as Sa } from "./CruisePlugin/Work.js";
53
+ import { default as ya } from "./CruisePlugin/Move.js";
54
+ import { typing as Da } from "./CruisePlugin/typing/index.js";
55
+ import { default as ba, pluginFlag as va } from "./PanoTagPlugin/controller/index.js";
56
+ import { defaultGlobalConfig as Ya } from "./PanoTagPlugin/typings/tag/TagConfig.js";
57
+ import { ContentType as Va, DimensionType as Na, PointType as ha } from "./PanoTagPlugin/Archive/deprecated.js";
58
+ import { Object3DHelperController as wa, PLUGIN as Ba } from "./Object3DHelperPlugin/Controller.js";
59
+ import { typings as Ua } from "./PanoVideoPlugin/typings/index.js";
60
60
  import "./components/PaintBrush/Controller.js";
61
61
  import "./components/PaintBrush/utils.js";
62
62
  import "./components/PaintBrush/tween.js";
@@ -71,6 +71,9 @@ import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
71
71
  import "hammerjs";
72
72
  import "three/examples/jsm/renderers/CSS3DRenderer";
73
73
  import "@realsee/five/line";
74
+ import "./vendor/three/examples/jsm/lines/LineGeometry.js";
75
+ import "./vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
76
+ import "./vendor/three/build/three.module.js";
74
77
  import "./shared-utils/tag.js";
75
78
  import "./shared-utils/positionToVector3.js";
76
79
  import "./shared-utils/five/vector3ToScreen.js";
@@ -81,7 +84,7 @@ import "./shared-utils/Subscribe.js";
81
84
  import "./shared-utils/Utils/WorkUtil.js";
82
85
  import "./shared-utils/five/transformPosition.js";
83
86
  import "./shared-utils/three/temp.js";
84
- import "./shared-utils/three/THREESphere.js";
87
+ import "./shared-utils/three/core/Sphere.js";
85
88
  import "animejs";
86
89
  import "./shared-utils/url/absoluteUrl.js";
87
90
  import "./shared-utils/five/fiveModelLoad.js";
@@ -379,7 +382,7 @@ import "./PanoTagPlugin/controller/TagUtil.js";
379
382
  import "./PanoTagPlugin/tag.config.js";
380
383
  import "./PanoTagPlugin/utils/normalPositionToPositions.js";
381
384
  import "./shared-utils/five/FiveDomEvents.js";
382
- import "./shared-utils/three/THREERaycaster.js";
385
+ import "./shared-utils/three/core/Raycaster.js";
383
386
  import "./PanoTagPlugin/utils/DebugUtil.js";
384
387
  import "./PanoTagPlugin/utils/addDebugPoints.js";
385
388
  import "./PanoTagPlugin/controller/Tag/PointTag.js";
@@ -441,7 +444,7 @@ import "./shared-utils/three/Extras/Core/Interpolations2.js";
441
444
  import "./AreaMakerPlugin/Controller.js";
442
445
  import "./AreaMakerPlugin/utils/Item.js";
443
446
  import "./shared-utils/three/core/Object3D.js";
444
- import "./shared-utils/three/objects/LineSegments.js";
447
+ import "./shared-utils/three/core/LineSegments.js";
445
448
  import "./components/AreaLabel/LabelItem.js";
446
449
  import "./components/AreaLabel/Assets/roomLabelBg.js";
447
450
  import "./CurrentPanoImagePlugin/Controller.js";
@@ -509,72 +512,72 @@ import "./shared-utils/five/lookObject.js";
509
512
  r();
510
513
  o();
511
514
  export {
512
- wn as AreaMakerPlugin,
513
- Qn as CSS3DRender,
514
- Gl as CSS3DRenderPlugin,
515
- mn as CameraMovementEffect,
516
- rn as CameraMovementPlugin,
517
- Fa as ContentType,
518
- Dn as CruisePlugin,
519
- _a as CruisePluginController,
520
- Oa as CruisePluginTypes,
521
- Hn as CurrentPanoImagePlugin,
522
- _n as DIRECTION,
523
- aa as DISPLAY_STRATEGY_TYPE,
524
- Ya as DimensionType,
525
- Nl as FLOOR_PLAN_ATTACHED_TO,
526
- ql as FLOOR_TYPE_MAP,
527
- Ma as GuideLineItem,
528
- La as GuideLineModeItem,
529
- yn as GuideLinePlugin,
530
- xa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
531
- sa as ItemLabelPlugin,
532
- la as Magnifier,
533
- Bl as MapviewFloorplanPlugin,
534
- Ql as ModelChassisCompassPlugin,
535
- Zl as ModelEntryDoorGuidePlugin,
536
- kl as ModelFloorplanPlugin,
537
- ua as ModelItemLabelPlugin,
538
- qn as ModelMakerPlugin,
539
- Yl as ModelRoomLabelPlugin,
540
- Ln as ModelTVVideoPlugin,
541
- Al as ModelViewPlugin,
542
- Ra as MoveController,
543
- Gn as MovePlugin,
544
- Na as Object3DHelperController,
545
- Yn as Object3DHelperPlugin,
546
- ha as PLUGIN,
547
- Rl as PaintBrush,
548
- Ol as PaintBrushTypeEnum,
549
- un as PanoCompassPlugin,
550
- vl as PanoCursorRaycasterPlugin,
551
- Sn as PanoDoorLabelPlugin,
552
- $l as PanoFloorplanRadarPlugin,
553
- xn as PanoMeasurePlugin,
554
- ia as PanoMeasurePluginLine,
555
- Zn as PanoMeasurePluginModel,
556
- ra as PanoMeasurePluginPoint,
557
- pa as PanoMeasurePluginPolyline,
558
- ln as PanoRulerPlugin,
559
- an as PanoRulerProPlugin,
560
- sn as PanoSpatialTagPlugin,
561
- vn as PanoTagPlugin,
562
- Aa as PanoTagPluginController,
563
- Vn as PanoVideoPlugin,
564
- wa as PanoVideoPluginType,
565
- hn as PipelinePlugin,
566
- ca as PointType,
567
- zl as ROOM_FETILE_TYPE_MAP,
568
- Jl as ROOM_TYPE_MAP,
569
- pn as Rotation,
570
- jn as Sculpt,
571
- $n as SculptPlugin,
572
- Ul as TopviewFloorplanPlugin,
573
- Jn as Util,
574
- Ea as WalkController,
575
- ba as defaultGlobalConfig,
576
- In as itemLabelPluginServerParams,
577
- Mn as modelItemLabelPluginServerParams,
578
- cl as modelRoomLabelPluginServerParams,
579
- Da as pluginFlag
515
+ Un as AreaMakerPlugin,
516
+ oa as CSS3DRender,
517
+ Fl as CSS3DRenderPlugin,
518
+ ln as CameraMovementEffect,
519
+ pn as CameraMovementPlugin,
520
+ Va as ContentType,
521
+ vn as CruisePlugin,
522
+ Ra as CruisePluginController,
523
+ Da as CruisePluginTypes,
524
+ $n as CurrentPanoImagePlugin,
525
+ Rn as DIRECTION,
526
+ fa as DISPLAY_STRATEGY_TYPE,
527
+ Na as DimensionType,
528
+ wl as FLOOR_PLAN_ATTACHED_TO,
529
+ Kl as FLOOR_TYPE_MAP,
530
+ Ca as GuideLineItem,
531
+ Ea as GuideLineModeItem,
532
+ Gn as GuideLinePlugin,
533
+ da as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
534
+ Ta as ItemLabelPlugin,
535
+ Pa as Magnifier,
536
+ jl as MapviewFloorplanPlugin,
537
+ on as ModelChassisCompassPlugin,
538
+ tn as ModelEntryDoorGuidePlugin,
539
+ Hl as ModelFloorplanPlugin,
540
+ ga as ModelItemLabelPlugin,
541
+ Kn as ModelMakerPlugin,
542
+ Nl as ModelRoomLabelPlugin,
543
+ En as ModelTVVideoPlugin,
544
+ bl as ModelViewPlugin,
545
+ ya as MoveController,
546
+ Fn as MovePlugin,
547
+ wa as Object3DHelperController,
548
+ Nn as Object3DHelperPlugin,
549
+ Ba as PLUGIN,
550
+ yl as PaintBrush,
551
+ Dl as PaintBrushTypeEnum,
552
+ gn as PanoCompassPlugin,
553
+ cl as PanoCursorRaycasterPlugin,
554
+ An as PanoDoorLabelPlugin,
555
+ zl as PanoFloorplanRadarPlugin,
556
+ dn as PanoMeasurePlugin,
557
+ ea as PanoMeasurePluginLine,
558
+ ta as PanoMeasurePluginModel,
559
+ ma as PanoMeasurePluginPoint,
560
+ na as PanoMeasurePluginPolyline,
561
+ Pn as PanoRulerPlugin,
562
+ fn as PanoRulerProPlugin,
563
+ Tn as PanoSpatialTagPlugin,
564
+ cn as PanoTagPlugin,
565
+ ba as PanoTagPluginController,
566
+ kn as PanoVideoPlugin,
567
+ Ua as PanoVideoPluginType,
568
+ Bn as PipelinePlugin,
569
+ ha as PointType,
570
+ Ql as ROOM_FETILE_TYPE_MAP,
571
+ Xl as ROOM_TYPE_MAP,
572
+ nn as Rotation,
573
+ qn as Sculpt,
574
+ zn as SculptPlugin,
575
+ Wl as TopviewFloorplanPlugin,
576
+ Xn as Util,
577
+ Sa as WalkController,
578
+ Ya as defaultGlobalConfig,
579
+ On as itemLabelPluginServerParams,
580
+ Cn as modelItemLabelPluginServerParams,
581
+ hl as modelRoomLabelPluginServerParams,
582
+ va as pluginFlag
580
583
  };
@@ -1,25 +1,61 @@
1
- var f = Object.defineProperty;
2
- var v = (c, a, e) => a in c ? f(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
3
- var u = (c, a, e) => (v(c, typeof a != "symbol" ? a + "" : a, e), e);
4
- import { BaseController as p } from "../Base/BaseController.js";
1
+ var v = Object.defineProperty;
2
+ var f = (c, a, e) => a in c ? v(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
3
+ var r = (c, a, e) => (f(c, typeof a != "symbol" ? a + "" : a, e), e);
4
+ import { BaseController as g } from "../Base/BaseController.js";
5
5
  import * as m from "three";
6
- import { getMouseRaycaster as g } from "../utils/getMouseRaycaster.js";
6
+ import { getMouseRaycaster as p } from "../utils/getMouseRaycaster.js";
7
7
  import { rayOnLine as y } from "../../../Sculpt/utils/three/rayOnLine.js";
8
- class w extends p {
8
+ class w extends g {
9
9
  constructor(...e) {
10
10
  super(...e);
11
- u(this, "name", "MoveController");
12
- u(this, "startInfo");
13
- u(this, "_moveByMouse", {
11
+ r(this, "name", "MoveController");
12
+ r(this, "startInfo");
13
+ r(this, "_moveByMouse", {
14
14
  enabled: !1
15
15
  });
16
- u(this, "mouseInfo");
17
- u(this, "mousedownEventListenerDisposer");
16
+ r(this, "mouseInfo");
17
+ r(this, "mousedownEventListenerDisposer");
18
+ /**
19
+ * @description: 拖动开始,找出拖的Direction
20
+ */
21
+ r(this, "dragStart", (e) => {
22
+ if (this.moveByMouseEnable || this.isDragging)
23
+ return;
24
+ const t = e == null ? void 0 : e.intersect;
25
+ if (!t)
26
+ return this.dragEnd();
27
+ const o = (t == null ? void 0 : t.object).direction;
28
+ if (!o)
29
+ return this.dragEnd();
30
+ const s = new m.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), h = new m.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), u = new m.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), n = (() => {
31
+ switch (o) {
32
+ case "x":
33
+ return s;
34
+ case "y":
35
+ return h;
36
+ case "z":
37
+ return u;
38
+ }
39
+ })(), i = t.point.clone(), d = new m.Line3(
40
+ i.clone().sub(n.normalize()),
41
+ i.clone().add(n.normalize())
42
+ );
43
+ this.startInfo = { startVectorProject: i, line: d }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
44
+ });
45
+ r(this, "dragging", (e) => {
46
+ if (!this.isDragging || !this.startInfo)
47
+ return;
48
+ const t = "touches" in e ? e.touches[0].clientX : e.x, o = "touches" in e ? e.touches[0].clientY : e.y, s = p(this.camera, { x: t, y: o }, this.container);
49
+ return s ? (this.move(s), !1) : this.dragEnd();
50
+ });
51
+ r(this, "dragEnd", () => {
52
+ this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
53
+ });
18
54
  const t = this.helperObject3D;
19
55
  this.hoverListener([t.xArrow, t.yArrow, t.zArrow]);
20
- const o = this.dragStart.bind(this), h = this.dragging.bind(this), i = this.dragEnd.bind(this), n = this.show.bind(this), s = this.hide.bind(this);
21
- this.domEvents.addEventListener(this.helperObject3D, "mousedown", o), document.addEventListener("mousemove", h), document.addEventListener("mouseup", i), this.hooks.on("rotateStart", s), this.hooks.on("rotateEnd", n), this.hooks.on("scaleStart", s), this.hooks.on("scaleEnd", n), this.hooks.on("moveByMouseEnable", s), this.hooks.on("moveByMouseDisable", n), this.disposers.push(() => {
22
- this.domEvents.removeEventListener(this.helperObject3D, "mousedown", o), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", i), this.hooks.off("rotateStart", s), this.hooks.off("rotateEnd", n), this.hooks.off("scaleStart", s), this.hooks.off("scaleEnd", n), this.hooks.off("moveByMouseEnable", s), this.hooks.off("moveByMouseDisable", n);
56
+ const o = this.show.bind(this), s = this.hide.bind(this);
57
+ this.domEvents.addEventListener(this.helperObject3D, "mousedown", this.dragStart), document.addEventListener("mousemove", this.dragging), document.addEventListener("mouseup", this.dragEnd), this.domEvents.addEventListener(this.helperObject3D, "touchstart", this.dragStart), document.addEventListener("touchmove", this.dragging), document.addEventListener("touchend", this.dragEnd), this.hooks.on("rotateStart", s), this.hooks.on("rotateEnd", o), this.hooks.on("scaleStart", s), this.hooks.on("scaleEnd", o), this.hooks.on("moveByMouseEnable", s), this.hooks.on("moveByMouseDisable", o), this.disposers.push(() => {
58
+ this.domEvents.removeEventListener(this.helperObject3D, "mousedown", this.dragStart), document.removeEventListener("mousemove", this.dragging), document.removeEventListener("mouseup", this.dragEnd), this.domEvents.removeEventListener(this.helperObject3D, "touchstart", this.dragStart), document.removeEventListener("touchmove", this.dragging), document.removeEventListener("touchend", this.dragEnd), this.hooks.off("rotateStart", s), this.hooks.off("rotateEnd", o), this.hooks.off("scaleStart", s), this.hooks.off("scaleEnd", o), this.hooks.off("moveByMouseEnable", s), this.hooks.off("moveByMouseDisable", o);
23
59
  }), this.moveByMouseEnable && this.moveByMouse();
24
60
  }
25
61
  get moveByMouseEnable() {
@@ -53,14 +89,14 @@ class w extends p {
53
89
  this._moveByMouse = { enabled: !1 }, this.preventTapDefaultEvent = !1, this.hooks.emit("moveByMouseDisable"), (e = this.mousedownEventListenerDisposer) == null || e.call(this);
54
90
  }
55
91
  onIntersectionOnModelUpdate(e) {
56
- var i, n, s;
92
+ var h, u, n;
57
93
  if (!this.moveByMouseEnable)
58
94
  return;
59
95
  const { point: t, face: o } = e;
60
96
  if (!this.hooks.emit("wantToMove", t)) {
61
97
  if (this.originObject3D.position.copy(t), (this._moveByMouse.useFaceNormal === !0 || typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.enable !== !1) && o != null && o.normal) {
62
- const r = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.alignmentVector ? this._moveByMouse.useFaceNormal.alignmentVector : { x: 0, y: 1, z: 0 })(), l = new m.Vector3((i = r.x) != null ? i : 0, (n = r.y) != null ? n : 0, (s = r.z) != null ? s : 0), d = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.fixedFaceNormal ? this._moveByMouse.useFaceNormal.fixedFaceNormal(o.normal) : o.normal)();
63
- this.originObject3D.quaternion.setFromUnitVectors(l, d), this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion.clone());
98
+ const i = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.alignmentVector ? this._moveByMouse.useFaceNormal.alignmentVector : { x: 0, y: 1, z: 0 })(), d = new m.Vector3((h = i.x) != null ? h : 0, (u = i.y) != null ? u : 0, (n = i.z) != null ? n : 0), l = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.fixedFaceNormal ? this._moveByMouse.useFaceNormal.fixedFaceNormal(o.normal) : o.normal)();
99
+ this.originObject3D.quaternion.setFromUnitVectors(d, l), this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion.clone());
64
100
  }
65
101
  this.internalHooks.emit("setObjectPosition", t), this.hooks.emit("move", t);
66
102
  }
@@ -75,49 +111,13 @@ class w extends p {
75
111
  const { x: t, y: o } = e;
76
112
  this.mouseInfo.x === t && this.mouseInfo.y === o && Date.now() - this.mouseInfo.mouseDownTimestamp < 500 && (this.disableMoveByMouse(), this.mouseInfo = void 0);
77
113
  }
78
- /**
79
- * @description: 拖动开始,找出拖的Direction
80
- */
81
- dragStart(e) {
82
- if (this.moveByMouseEnable || this.isDragging)
83
- return;
84
- const t = e == null ? void 0 : e.intersect;
85
- if (!t)
86
- return this.dragEnd();
87
- const o = (t == null ? void 0 : t.object).direction;
88
- if (!o)
89
- return this.dragEnd();
90
- const h = new m.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), i = new m.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), n = new m.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), s = (() => {
91
- switch (o) {
92
- case "x":
93
- return h;
94
- case "y":
95
- return i;
96
- case "z":
97
- return n;
98
- }
99
- })(), r = t.point.clone(), l = new m.Line3(
100
- r.clone().sub(s.normalize()),
101
- r.clone().add(s.normalize())
102
- );
103
- this.startInfo = { startVectorProject: r, line: l }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
104
- }
105
- dragging(e) {
106
- if (!this.isDragging || !this.startInfo)
107
- return;
108
- const t = g(this.camera, e, this.container);
109
- return t ? (this.move(t), !1) : this.dragEnd();
110
- }
111
114
  move(e) {
112
115
  if (!this.startInfo)
113
116
  return this.dragEnd();
114
- const { line: t, startVectorProject: o } = this.startInfo, h = this.originObject3D, i = y({ raycaster: e, line: t, clampToLine: !1 }), n = i.clone().sub(o), s = new m.Matrix4();
115
- s.setPosition(n);
116
- const r = h.position.clone().applyMatrix4(s);
117
- this.hooks.emit("wantToMove", r) || (h.applyMatrix4(s), o.copy(i), this.internalHooks.emit("applyObjectPosition", { matrix: s }), this.hooks.emit("move", r));
118
- }
119
- dragEnd() {
120
- this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
117
+ const { line: t, startVectorProject: o } = this.startInfo, s = this.originObject3D, h = y({ raycaster: e, line: t, clampToLine: !1 }), u = h.clone().sub(o), n = new m.Matrix4();
118
+ n.setPosition(u);
119
+ const i = s.position.clone().applyMatrix4(n);
120
+ this.hooks.emit("wantToMove", i) || (s.applyMatrix4(n), o.copy(h), this.internalHooks.emit("applyObjectPosition", { matrix: n }), this.hooks.emit("move", i));
121
121
  }
122
122
  }
123
123
  export {
@@ -12,7 +12,6 @@ export declare class RotateController<T extends RotateHelperAbstract = RotateHel
12
12
  y?: number;
13
13
  z?: number;
14
14
  }): void;
15
- dispose(): void;
16
15
  protected onApplyOriginObjectRotate(params: {
17
16
  quaternion: THREE.Quaternion;
18
17
  origin: THREE.Vector3;