@realsee/dnalogel 3.73.1 → 3.73.3-alpha.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 (127) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/MeasurePlugin/Controller.d.ts +3 -4
  3. package/dist/MeasurePlugin/index.d.ts +2 -1
  4. package/dist/Sculpt/utils/export.d.ts +1 -0
  5. package/dist/index.cjs.js +70 -70
  6. package/dist/index.js +4451 -4432
  7. package/dist/index.umd.js +63 -63
  8. package/dist/shared-utils/three/index.d.ts +2 -0
  9. package/libs/AreaMakerPlugin/Controller.js +3 -2
  10. package/libs/AreaMakerPlugin/index.js +3 -2
  11. package/libs/AreaMakerPlugin/utils/Item.js +80 -79
  12. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  13. package/libs/CSS3DRenderPlugin/index.js +6 -5
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
  16. package/libs/CruisePlugin/BaseController.js +5 -4
  17. package/libs/CruisePlugin/Move.js +1 -1
  18. package/libs/CruisePlugin/Work.js +1 -1
  19. package/libs/CruisePlugin/index.js +1 -1
  20. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  21. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  22. package/libs/GuideLinePlugin/Controller.js +1 -1
  23. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  26. package/libs/GuideLinePlugin/index.js +1 -1
  27. package/libs/MeasurePlugin/Controller.d.ts +3 -4
  28. package/libs/MeasurePlugin/Controller.js +29 -29
  29. package/libs/MeasurePlugin/index.d.ts +2 -1
  30. package/libs/MeasurePlugin/index.js +6 -5
  31. package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
  32. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  33. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  34. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  35. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  36. package/libs/ModelMakerPlugin/Controller.js +1 -1
  37. package/libs/ModelMakerPlugin/index.js +1 -1
  38. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  39. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  40. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  41. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  42. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  43. package/libs/ModelTVVideoPlugin/index.js +3 -2
  44. package/libs/ModelViewPlugin/Plugin.js +4 -3
  45. package/libs/ModelViewPlugin/index.js +1 -0
  46. package/libs/Object3DHelperPlugin/Controller.js +18 -17
  47. package/libs/Object3DHelperPlugin/index.js +6 -5
  48. package/libs/PanoCompassPlugin/Controller.js +3 -2
  49. package/libs/PanoCompassPlugin/index.js +4 -3
  50. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  51. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  53. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  54. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  55. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  56. package/libs/PanoMeasurePlugin/index.js +1 -1
  57. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  58. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  59. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  60. package/libs/PanoRulerProPlugin/index.js +4 -3
  61. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  62. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  63. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  64. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  65. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  66. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  67. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  68. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  69. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  70. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  71. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  72. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
  73. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
  74. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  75. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  76. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  77. package/libs/PanoTagPlugin/controller/index.js +1 -1
  78. package/libs/PanoTagPlugin/index.js +1 -1
  79. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  80. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  81. package/libs/PanoVideoPlugin/Controller.js +3 -2
  82. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  83. package/libs/PanoVideoPlugin/index.js +6 -5
  84. package/libs/PipelinePlugin/Controller.js +95 -94
  85. package/libs/PipelinePlugin/index.js +4 -3
  86. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  87. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  88. package/libs/PipelinePlugin/utils/Objects/Pipe.js +22 -21
  89. package/libs/Sculpt/Meshes/Circle.js +3 -2
  90. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  91. package/libs/Sculpt/Meshes/Line.js +3 -2
  92. package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
  93. package/libs/Sculpt/Meshes/Point.js +3 -2
  94. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  95. package/libs/Sculpt/Objects/Base/index.js +1 -0
  96. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  97. package/libs/Sculpt/index.js +19 -18
  98. package/libs/Sculpt/utils/export.d.ts +1 -0
  99. package/libs/Sculpt/utils/export.js +23 -20
  100. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  101. package/libs/base/BasePlugin.js +4 -3
  102. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  103. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  104. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  105. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  106. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  107. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  108. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  109. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  110. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  111. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  112. package/libs/floorplan/index.js +1 -0
  113. package/libs/index.js +146 -145
  114. package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
  115. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
  116. package/libs/shared-utils/exports.js +62 -55
  117. package/libs/shared-utils/five/index.js +4 -3
  118. package/libs/shared-utils/five/lookObject.js +3 -2
  119. package/libs/shared-utils/index.js +1 -0
  120. package/libs/shared-utils/logger.js +1 -1
  121. package/libs/shared-utils/tag.js +3 -2
  122. package/libs/shared-utils/three/PointDomHelper.js +3 -2
  123. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  124. package/libs/shared-utils/three/geometryUtil.js +12 -8
  125. package/libs/shared-utils/three/index.d.ts +2 -0
  126. package/libs/shared-utils/three/index.js +1 -0
  127. package/package.json +1 -1
package/libs/index.js CHANGED
@@ -1,73 +1,74 @@
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 An } from "./components/PaintBrush/index.js";
4
- import { PaintBrushTypeEnum as Gn } from "./components/PaintBrush/typings.js";
5
- import { ModelViewPlugin as Dn } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Yn } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Bn } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as hn, modelRoomLabelPluginServerParams as kn } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Hn } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as jn } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as Wn } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as zn } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Kn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FloorplanGuidePlugin as Xn } from "./floorplan/FloorplanGuidePlugin/index.js";
15
- import { FLOOR_TYPE_MAP as oa, ROOM_FETILE_TYPE_MAP as ra, ROOM_TYPE_MAP as ta } from "./floorplan/typings/floorplanServerData.js";
16
- import { ModelChassisCompassPlugin as ma } from "./ModelChassisCompassPlugin/Plugin.js";
17
- import { ModelEntryDoorGuidePlugin as ea } from "./ModelEntryDoorGuidePlugin/Plugin.js";
18
- import { CameraMovementPlugin as na } from "./CameraMovementPlugin/CameraMovementPlugin.js";
19
- import { CameraMovementEffect as Pa, Rotation as fa } from "./CameraMovementPlugin/typing.js";
20
- import { PanoRulerPlugin as xa } from "./PanoRulerPlugin/Plugin.js";
21
- import { PanoRulerProPlugin as sa } from "./PanoRulerProPlugin/index.js";
22
- import { PanoCompassPlugin as Ma } from "./PanoCompassPlugin/index.js";
23
- import { PanoMeasurePlugin as Ca } from "./PanoMeasurePlugin/index.js";
24
- import { MeasurePlugin as ca } from "./MeasurePlugin/index.js";
25
- import { PanoSpatialTagPlugin as _a } from "./PanoSpatialTagPlugin/Plugin.js";
26
- import { modelItemLabelPluginServerParams as Ia } from "./ModelItemLabelPlugin/index.js";
27
- import { ModelTVVideoPlugin as Sa } from "./ModelTVVideoPlugin/Plugin.js";
28
- import { DIRECTION as Aa } from "./ModelTVVideoPlugin/typings.js";
29
- import { itemLabelPluginServerParams as Ga } from "./ItemLabelPlugin/index.js";
30
- import { PanoDoorLabelPlugin as Da } from "./PanoDoorLabelPlugin/index.js";
31
- import { GuideLinePlugin as Ya } from "./GuideLinePlugin/index.js";
32
- import { CruisePlugin as Ba, MovePlugin as Na } from "./CruisePlugin/index.js";
33
- import { PanoTagPlugin as ka } from "./PanoTagPlugin/index.js";
34
- import { Object3DHelperPlugin as Ha } from "./Object3DHelperPlugin/index.js";
35
- import { PanoVideoPlugin as ja } from "./PanoVideoPlugin/index.js";
36
- import { PipelinePlugin as Wa } from "./PipelinePlugin/index.js";
37
- import { AreaMakerPlugin as za } from "./AreaMakerPlugin/index.js";
38
- import { CurrentPanoImagePlugin as Ka } from "./CurrentPanoImagePlugin/index.js";
39
- import { Sculpt as Xa, SculptPlugin as Za, SculptPluginForFive as oP } from "./Sculpt/index.js";
40
- import { ModelMakerPlugin as tP } from "./ModelMakerPlugin/index.js";
41
- import { exports as mP } from "./shared-utils/exports.js";
42
- import { CSS3DRender as eP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
- import { Model as nP } from "./PanoMeasurePlugin/Model/index.js";
44
- import { default as PP } from "./PanoMeasurePlugin/Model/point.js";
45
- import { default as uP } from "./PanoMeasurePlugin/Model/line.js";
46
- import { Polyline as gP } from "./PanoMeasurePlugin/Model/polyline.js";
47
- import { Magnifier as dP } from "./shared-utils/three/Magnifier.js";
48
- import { DISPLAY_STRATEGY_TYPE as TP } from "./ModelItemLabelPlugin/typings.js";
49
- import { ModelItemLabelPlugin as LP } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
50
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as RP } from "./ItemLabelPlugin/typings.js";
3
+ import { PaintBrush as On } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as An } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as Gn } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as bn } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as Vn } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as Nn, modelRoomLabelPluginServerParams as hn } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as wn } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Un } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as $n } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as qn } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as Jn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FloorplanGuidePlugin as Qn } from "./floorplan/FloorplanGuidePlugin/index.js";
15
+ import { FLOOR_TYPE_MAP as Zn, ROOM_FETILE_TYPE_MAP as oa, ROOM_TYPE_MAP as ra } from "./floorplan/typings/floorplanServerData.js";
16
+ import { ModelChassisCompassPlugin as ia } from "./ModelChassisCompassPlugin/Plugin.js";
17
+ import { ModelEntryDoorGuidePlugin as pa } from "./ModelEntryDoorGuidePlugin/Plugin.js";
18
+ import { CameraMovementPlugin as la } from "./CameraMovementPlugin/CameraMovementPlugin.js";
19
+ import { CameraMovementEffect as aa, Rotation as Pa } from "./CameraMovementPlugin/typing.js";
20
+ import { PanoRulerPlugin as ua } from "./PanoRulerPlugin/Plugin.js";
21
+ import { PanoRulerProPlugin as ga } from "./PanoRulerProPlugin/index.js";
22
+ import { PanoCompassPlugin as da } from "./PanoCompassPlugin/index.js";
23
+ import { PanoMeasurePlugin as Ta } from "./PanoMeasurePlugin/index.js";
24
+ import { MeasurePlugin as La } from "./MeasurePlugin/index.js";
25
+ import { PanoSpatialTagPlugin as Ra } from "./PanoSpatialTagPlugin/Plugin.js";
26
+ import { modelItemLabelPluginServerParams as ya } from "./ModelItemLabelPlugin/index.js";
27
+ import { ModelTVVideoPlugin as Ia } from "./ModelTVVideoPlugin/Plugin.js";
28
+ import { DIRECTION as Oa } from "./ModelTVVideoPlugin/typings.js";
29
+ import { itemLabelPluginServerParams as Aa } from "./ItemLabelPlugin/index.js";
30
+ import { PanoDoorLabelPlugin as Ga } from "./PanoDoorLabelPlugin/index.js";
31
+ import { GuideLinePlugin as ba } from "./GuideLinePlugin/index.js";
32
+ import { CruisePlugin as Va, MovePlugin as Ba } from "./CruisePlugin/index.js";
33
+ import { PanoTagPlugin as ha } from "./PanoTagPlugin/index.js";
34
+ import { Object3DHelperPlugin as wa } from "./Object3DHelperPlugin/index.js";
35
+ import { PanoVideoPlugin as Ua } from "./PanoVideoPlugin/index.js";
36
+ import { PipelinePlugin as $a } from "./PipelinePlugin/index.js";
37
+ import { AreaMakerPlugin as qa } from "./AreaMakerPlugin/index.js";
38
+ import { CurrentPanoImagePlugin as Ja } from "./CurrentPanoImagePlugin/index.js";
39
+ import { Sculpt as Qa, SculptPlugin as Xa, SculptPluginForFive as Za } from "./Sculpt/index.js";
40
+ import { ModelMakerPlugin as rP } from "./ModelMakerPlugin/index.js";
41
+ import { exports as iP } from "./shared-utils/exports.js";
42
+ import { CSS3DRender as pP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
+ import { Model as lP } from "./PanoMeasurePlugin/Model/index.js";
44
+ import { default as aP } from "./PanoMeasurePlugin/Model/point.js";
45
+ import { default as fP } from "./PanoMeasurePlugin/Model/line.js";
46
+ import { Polyline as xP } from "./PanoMeasurePlugin/Model/polyline.js";
47
+ import { Magnifier as sP } from "./shared-utils/three/Magnifier.js";
48
+ import { validatePolygon as MP } from "./MeasurePlugin/utils/validatePolygon.js";
49
+ import { DISPLAY_STRATEGY_TYPE as CP } from "./ModelItemLabelPlugin/typings.js";
50
+ import { ModelItemLabelPlugin as cP } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
51
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as _P } from "./ItemLabelPlugin/typings.js";
51
52
  import { Plugin as EP } from "./ItemLabelPlugin/Plugin.js";
52
- import { GuideLineItem$1 as yP } from "./GuideLinePlugin/GuideLineItem/index.js";
53
- import { GuideLineModeItem$1 as OP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
53
+ import { GuideLineItem$1 as SP } from "./GuideLinePlugin/GuideLineItem/index.js";
54
+ import { GuideLineModeItem$1 as vP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
54
55
  import { default as FP, default as GP } from "./CruisePlugin/Work.js";
55
- import { default as DP } from "./CruisePlugin/Move.js";
56
- import { typing as YP } from "./CruisePlugin/typing/index.js";
57
- import { default as BP, pluginFlag as NP } from "./PanoTagPlugin/controller/index.js";
58
- import { defaultGlobalConfig as kP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
59
- import { ContentType as HP, DimensionType as UP, PointType as jP } from "./PanoTagPlugin/Archive/deprecated.js";
60
- import { Object3DHelperController as WP, PLUGIN as qP } from "./Object3DHelperPlugin/Controller.js";
61
- import { typings as JP } from "./PanoVideoPlugin/typings/index.js";
62
- import { createPoint as QP } from "./Sculpt/Objects/Point/index.js";
63
- import { createLine as ZP } from "./Sculpt/Objects/Line/index.js";
64
- import { createPolyline as rf } from "./Sculpt/Objects/Polyline/index.js";
65
- import { createPolygon as mf } from "./Sculpt/Objects/Polygon/index.js";
66
- import { createPrism as ef } from "./Sculpt/Objects/Prism/index.js";
67
- import { createRectangle as nf } from "./Sculpt/Objects/Rectangle/index.js";
68
- import { createCircle as Pf } from "./Sculpt/Objects/Circle/index.js";
69
- import { createCylinder as uf } from "./Sculpt/Objects/Cylinder/index.js";
70
- import { createBox as gf } from "./Sculpt/Objects/Box/index.js";
56
+ import { default as bP } from "./CruisePlugin/Move.js";
57
+ import { typing as VP } from "./CruisePlugin/typing/index.js";
58
+ import { default as NP, pluginFlag as hP } from "./PanoTagPlugin/controller/index.js";
59
+ import { defaultGlobalConfig as wP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
60
+ import { ContentType as UP, DimensionType as jP, PointType as $P } from "./PanoTagPlugin/Archive/deprecated.js";
61
+ import { Object3DHelperController as qP, PLUGIN as zP } from "./Object3DHelperPlugin/Controller.js";
62
+ import { typings as KP } from "./PanoVideoPlugin/typings/index.js";
63
+ import { createPoint as XP } from "./Sculpt/Objects/Point/index.js";
64
+ import { createLine as of } from "./Sculpt/Objects/Line/index.js";
65
+ import { createPolyline as tf } from "./Sculpt/Objects/Polyline/index.js";
66
+ import { createPolygon as pf } from "./Sculpt/Objects/Polygon/index.js";
67
+ import { createPrism as lf } from "./Sculpt/Objects/Prism/index.js";
68
+ import { createRectangle as af } from "./Sculpt/Objects/Rectangle/index.js";
69
+ import { createCircle as ff } from "./Sculpt/Objects/Circle/index.js";
70
+ import { createCylinder as xf } from "./Sculpt/Objects/Cylinder/index.js";
71
+ import { createBox as sf } from "./Sculpt/Objects/Box/index.js";
71
72
  import "./components/PaintBrush/Controller.js";
72
73
  import "./components/PaintBrush/utils.js";
73
74
  import "./components/PaintBrush/tween.js";
@@ -110,6 +111,7 @@ import "./shared-utils/three/core/Sphere.js";
110
111
  import "./shared-utils/three/blink.js";
111
112
  import "./vendor/animejs/lib/anime.es.js";
112
113
  import "./shared-utils/util.js";
114
+ import "./vendor/earcut/src/earcut.js";
113
115
  import "./shared-utils/five/FivePuppet.js";
114
116
  import "./shared-utils/five/fiveModelLoad.js";
115
117
  import "./shared-utils/three/PointSelector/utils/html.js";
@@ -251,7 +253,6 @@ import "./PanoMeasurePlugin/Model/area.js";
251
253
  import "./PanoMeasurePlugin/Model/polygon.js";
252
254
  import "./shared-utils/three/generatePolygonGeometry.js";
253
255
  import "./shared-utils/three/earcut3D.js";
254
- import "./vendor/earcut/src/earcut.js";
255
256
  import "./shared-utils/three/getNormal.js";
256
257
  import "./PanoMeasurePlugin/utils/isIntersecting.js";
257
258
  import "./PanoMeasurePlugin/utils/dom/areaDom.js";
@@ -297,7 +298,6 @@ import "./Sculpt/Meshes/LineWithDots.js";
297
298
  import "./Sculpt/Meshes/Point.js";
298
299
  import "./Sculpt/Meshes/Polygon.js";
299
300
  import "./Sculpt/utils/three/ColoredMesh.js";
300
- import "./MeasurePlugin/utils/validatePolygon.js";
301
301
  import "./shared-utils/three/vectorIsEqual.js";
302
302
  import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
303
303
  import "./Sculpt/utils/Modules/Cursor.js";
@@ -578,84 +578,85 @@ import "./shared-utils/five/lookObject.js";
578
578
  r();
579
579
  o();
580
580
  export {
581
- za as AreaMakerPlugin,
582
- eP as CSS3DRender,
583
- Yn as CSS3DRenderPlugin,
584
- Pa as CameraMovementEffect,
585
- na as CameraMovementPlugin,
586
- HP as ContentType,
587
- Ba as CruisePlugin,
581
+ qa as AreaMakerPlugin,
582
+ pP as CSS3DRender,
583
+ bn as CSS3DRenderPlugin,
584
+ aa as CameraMovementEffect,
585
+ la as CameraMovementPlugin,
586
+ UP as ContentType,
587
+ Va as CruisePlugin,
588
588
  FP as CruisePluginController,
589
- YP as CruisePluginTypes,
590
- Ka as CurrentPanoImagePlugin,
591
- Aa as DIRECTION,
592
- TP as DISPLAY_STRATEGY_TYPE,
593
- UP as DimensionType,
594
- Hn as FLOOR_PLAN_ATTACHED_TO,
595
- oa as FLOOR_TYPE_MAP,
596
- Xn as FloorplanGuidePlugin,
597
- yP as GuideLineItem,
598
- OP as GuideLineModeItem,
599
- Ya as GuideLinePlugin,
600
- RP as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
589
+ VP as CruisePluginTypes,
590
+ Ja as CurrentPanoImagePlugin,
591
+ Oa as DIRECTION,
592
+ CP as DISPLAY_STRATEGY_TYPE,
593
+ jP as DimensionType,
594
+ wn as FLOOR_PLAN_ATTACHED_TO,
595
+ Zn as FLOOR_TYPE_MAP,
596
+ Qn as FloorplanGuidePlugin,
597
+ SP as GuideLineItem,
598
+ vP as GuideLineModeItem,
599
+ ba as GuideLinePlugin,
600
+ _P as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
601
601
  EP as ItemLabelPlugin,
602
- dP as Magnifier,
603
- Wn as MapviewFloorplanPlugin,
604
- ca as MeasurePlugin,
605
- ma as ModelChassisCompassPlugin,
606
- ea as ModelEntryDoorGuidePlugin,
607
- jn as ModelFloorplanPlugin,
608
- LP as ModelItemLabelPlugin,
609
- tP as ModelMakerPlugin,
610
- hn as ModelRoomLabelPlugin,
611
- Sa as ModelTVVideoPlugin,
612
- Dn as ModelViewPlugin,
613
- DP as MoveController,
614
- Na as MovePlugin,
615
- WP as Object3DHelperController,
616
- Ha as Object3DHelperPlugin,
617
- qP as PLUGIN,
618
- An as PaintBrush,
619
- Gn as PaintBrushTypeEnum,
620
- Ma as PanoCompassPlugin,
621
- Bn as PanoCursorRaycasterPlugin,
622
- Da as PanoDoorLabelPlugin,
623
- Kn as PanoFloorplanRadarPlugin,
624
- Ca as PanoMeasurePlugin,
625
- uP as PanoMeasurePluginLine,
626
- nP as PanoMeasurePluginModel,
627
- PP as PanoMeasurePluginPoint,
628
- gP as PanoMeasurePluginPolyline,
629
- xa as PanoRulerPlugin,
630
- sa as PanoRulerProPlugin,
631
- _a as PanoSpatialTagPlugin,
632
- ka as PanoTagPlugin,
633
- BP as PanoTagPluginController,
634
- ja as PanoVideoPlugin,
635
- JP as PanoVideoPluginType,
636
- Wa as PipelinePlugin,
637
- jP as PointType,
638
- ra as ROOM_FETILE_TYPE_MAP,
639
- ta as ROOM_TYPE_MAP,
640
- fa as Rotation,
641
- Xa as Sculpt,
642
- Za as SculptPlugin,
643
- oP as SculptPluginForFive,
644
- zn as TopviewFloorplanPlugin,
645
- mP as Util,
602
+ sP as Magnifier,
603
+ $n as MapviewFloorplanPlugin,
604
+ La as MeasurePlugin,
605
+ ia as ModelChassisCompassPlugin,
606
+ pa as ModelEntryDoorGuidePlugin,
607
+ Un as ModelFloorplanPlugin,
608
+ cP as ModelItemLabelPlugin,
609
+ rP as ModelMakerPlugin,
610
+ Nn as ModelRoomLabelPlugin,
611
+ Ia as ModelTVVideoPlugin,
612
+ Gn as ModelViewPlugin,
613
+ bP as MoveController,
614
+ Ba as MovePlugin,
615
+ qP as Object3DHelperController,
616
+ wa as Object3DHelperPlugin,
617
+ zP as PLUGIN,
618
+ On as PaintBrush,
619
+ An as PaintBrushTypeEnum,
620
+ da as PanoCompassPlugin,
621
+ Vn as PanoCursorRaycasterPlugin,
622
+ Ga as PanoDoorLabelPlugin,
623
+ Jn as PanoFloorplanRadarPlugin,
624
+ Ta as PanoMeasurePlugin,
625
+ fP as PanoMeasurePluginLine,
626
+ lP as PanoMeasurePluginModel,
627
+ aP as PanoMeasurePluginPoint,
628
+ xP as PanoMeasurePluginPolyline,
629
+ ua as PanoRulerPlugin,
630
+ ga as PanoRulerProPlugin,
631
+ Ra as PanoSpatialTagPlugin,
632
+ ha as PanoTagPlugin,
633
+ NP as PanoTagPluginController,
634
+ Ua as PanoVideoPlugin,
635
+ KP as PanoVideoPluginType,
636
+ $a as PipelinePlugin,
637
+ $P as PointType,
638
+ oa as ROOM_FETILE_TYPE_MAP,
639
+ ra as ROOM_TYPE_MAP,
640
+ Pa as Rotation,
641
+ Qa as Sculpt,
642
+ Xa as SculptPlugin,
643
+ Za as SculptPluginForFive,
644
+ qn as TopviewFloorplanPlugin,
645
+ iP as Util,
646
646
  GP as WalkController,
647
- gf as createBox,
648
- Pf as createCircle,
649
- uf as createCylinder,
650
- ZP as createLine,
651
- QP as createPoint,
652
- mf as createPolygon,
653
- rf as createPolyline,
654
- ef as createPrism,
655
- nf as createRectangle,
656
- kP as defaultGlobalConfig,
657
- Ga as itemLabelPluginServerParams,
658
- Ia as modelItemLabelPluginServerParams,
659
- kn as modelRoomLabelPluginServerParams,
660
- NP as pluginFlag
647
+ sf as createBox,
648
+ ff as createCircle,
649
+ xf as createCylinder,
650
+ of as createLine,
651
+ XP as createPoint,
652
+ pf as createPolygon,
653
+ tf as createPolyline,
654
+ lf as createPrism,
655
+ af as createRectangle,
656
+ wP as defaultGlobalConfig,
657
+ Aa as itemLabelPluginServerParams,
658
+ ya as modelItemLabelPluginServerParams,
659
+ hn as modelRoomLabelPluginServerParams,
660
+ hP as pluginFlag,
661
+ MP as validatePolygon
661
662
  };
@@ -18,9 +18,10 @@ import "../three/blink.js";
18
18
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
19
19
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
20
20
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
21
+ import "../../vendor/earcut/src/earcut.js";
21
22
  import "../five/FivePuppet.js";
22
23
  const $ = 1, V = `CSS3DObject@${$}`, q = 216e-5, I = 3e-3;
23
- class lt extends R {
24
+ class mt extends R {
24
25
  constructor(t) {
25
26
  var g, x, v, S, _;
26
27
  if (O(t.cornerPoints) && O(t.width))
@@ -89,5 +90,5 @@ class lt extends R {
89
90
  }
90
91
  }
91
92
  export {
92
- lt as CSS3DObjectPlus
93
+ mt as CSS3DObjectPlus
93
94
  };
@@ -1,16 +1,16 @@
1
- var S = Object.defineProperty;
2
- var G = (f, m, e) => m in f ? S(f, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : f[m] = e;
3
- var g = (f, m, e) => (G(f, typeof m != "symbol" ? m + "" : m, e), e);
4
- import { BaseController as A } from "../Base/BaseController.js";
5
- import { RENDER_ORDER as L } from "../Constants/RenderOrder.js";
1
+ var C = Object.defineProperty;
2
+ var S = (v, m, e) => m in v ? C(v, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[m] = e;
3
+ var g = (v, m, e) => (S(v, typeof m != "symbol" ? m + "" : m, e), e);
4
+ import { BaseController as G } from "../Base/BaseController.js";
5
+ import { RENDER_ORDER as E } from "../Constants/RenderOrder.js";
6
6
  import * as c from "three";
7
- import { getMouseRaycaster as k } from "../utils/getMouseRaycaster.js";
8
- import { SolidGuideLine as H } from "../utils/solidGuide.js";
9
- import { rayOnLine as w } from "../../../Sculpt/utils/three/rayOnLine.js";
7
+ import { getMouseRaycaster as A } from "../utils/getMouseRaycaster.js";
8
+ import { SolidGuideLine as k } from "../utils/solidGuide.js";
9
+ import { rayOnLine as P } from "../../../Sculpt/utils/three/rayOnLine.js";
10
10
  import { worldBoundingBox as I } from "../../three/boundingBox.js";
11
- import { getNormal as z } from "../../three/getNormal.js";
12
- var F, x;
13
- class Y extends A {
11
+ import { getNormal as H } from "../../three/getNormal.js";
12
+ var L, w;
13
+ class Y extends G {
14
14
  constructor(...e) {
15
15
  super(...e);
16
16
  g(this, "name", "ScaleController");
@@ -18,7 +18,7 @@ class Y extends A {
18
18
  g(this, "dragGuideLine");
19
19
  /** 当前拖拽时显示的面片 */
20
20
  g(this, "currentFacePatch");
21
- g(this, "solidGuide", new H(this.camera, this.container, (x = (F = this.config) == null ? void 0 : F.solidGuide) != null ? x : {}));
21
+ g(this, "solidGuide", new k(this.camera, this.container, (w = (L = this.config) == null ? void 0 : L.solidGuide) != null ? w : {}));
22
22
  g(this, "startInfo");
23
23
  g(this, "dragStart", (e) => {
24
24
  if (this.isDragging)
@@ -30,20 +30,20 @@ class Y extends A {
30
30
  i = i.parent;
31
31
  const n = i, o = n.scalePosition.basePosition.clone(), h = n.scalePosition.handlePosition.clone(), l = h.clone().sub(o).clone(), a = new c.Line3(o, o.clone().add(l.normalize().multiplyScalar(5)));
32
32
  a.applyMatrix4(this.helperObject3D.matrixWorld);
33
- const d = new c.Raycaster(r, t.point.clone().sub(r)), p = w({ raycaster: d, line: a });
33
+ const d = new c.Raycaster(r, t.point.clone().sub(r)), p = P({ raycaster: d, line: a });
34
34
  this.startInfo = { line: a, scaleStartPoint: p, draggingObject: n }, this.helperObject3D.scaleMeshes.forEach((u) => {
35
35
  u.uuid !== n.uuid && (u.visible = !1);
36
36
  }), "hideLineConnections" in this.helperObject3D && typeof this.helperObject3D.hideLineConnections == "function" && this.helperObject3D.hideLineConnections();
37
37
  try {
38
38
  this.originObject3D.updateMatrixWorld(!0), this.helperObject3D.updateMatrixWorld(!0);
39
- const u = this.getObjectWorldCenter(), y = h.clone().applyMatrix4(this.helperObject3D.matrixWorld).clone().sub(u).normalize(), v = u, D = this.solidGuide.createSolidLine(v, y, { color: 16777215, renderOrder: L.DRAG_GUIDE_LINE });
40
- this.isRectangleWithEdgeMesh() || this.scene.add(D), this.dragGuideLine = D, this.addFaceMesh();
39
+ const u = this.getObjectWorldCenter(), M = h.clone().applyMatrix4(this.helperObject3D.matrixWorld).clone().sub(u).normalize(), b = u, y = this.solidGuide.createSolidLine(b, M, { color: 16777215, renderOrder: E.DRAG_GUIDE_LINE });
40
+ this.isRectangleWithEdgeMesh() || this.scene.add(y), this.dragGuideLine = y, this.addFaceMesh();
41
41
  } catch (u) {
42
42
  }
43
43
  n.visible = !0, this.hooks.emit("scaleStart");
44
44
  });
45
45
  g(this, "dragging", (e) => {
46
- const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s = k(this.camera, { x: t, y: r }, this.container), i = this.isMoveControllerDragging();
46
+ const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s = A(this.camera, { x: t, y: r }, this.container), i = this.isMoveControllerDragging();
47
47
  if (!this.isDragging && !i && s) {
48
48
  this.addHoverFaceMesh(s);
49
49
  return;
@@ -61,26 +61,34 @@ class Y extends A {
61
61
  const d = this.originObject3D, u = d.geometry.attributes.position;
62
62
  if (!u)
63
63
  return [];
64
- const b = [], y = u.count;
65
- for (let M = 0; M < y; M++) {
66
- const E = new c.Vector3().fromBufferAttribute(u, M);
67
- d.updateMatrixWorld(!0), E.applyMatrix4(d.matrixWorld), b.push(E);
64
+ const D = [], M = u.count;
65
+ for (let f = 0; f < M; f++) {
66
+ const j = new c.Vector3().fromBufferAttribute(u, f);
67
+ d.updateMatrixWorld(!0), j.applyMatrix4(d.matrixWorld), D.push(j);
68
68
  }
69
- const v = b.slice(0, 4);
70
- if (!v || v.length < 4)
69
+ const b = D.slice(0, 4);
70
+ if (!b || b.length < 4)
71
71
  return;
72
- const D = z(v).normalize(), W = new c.Plane().setFromNormalAndCoplanarPoint(D, v[0]), O = new c.Vector3();
73
- if (e.ray.intersectPlane(W, O), !O)
74
- return;
75
- const P = new c.Matrix4().getInverse(this.helperObject3D.matrixWorld), j = O.clone().applyMatrix4(P), C = r.clone().applyMatrix4(P);
72
+ const y = H(b).normalize(), x = new c.Plane().setFromNormalAndCoplanarPoint(y, b[0]), F = Math.abs(e.ray.direction.dot(y)) < 0.1;
73
+ let O;
74
+ if (F)
75
+ O = P({ raycaster: e, line: t, clampToLine: !1 }).applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone()));
76
+ else {
77
+ const f = new c.Vector3();
78
+ if (e.ray.intersectPlane(x, f), !f)
79
+ return;
80
+ const j = new c.Matrix4().getInverse(this.helperObject3D.matrixWorld);
81
+ O = f.clone().applyMatrix4(j);
82
+ }
83
+ const W = r.clone().applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld));
76
84
  (h = (o = this.config) == null ? void 0 : o.scaleCallback) == null || h.call(o, {
77
- intersectPoint: j,
85
+ intersectPoint: O,
78
86
  scalePosition: i,
79
- offset: j.clone().sub(C)
80
- }), s.position.copy(j), this.hooks.emit("scale", new c.Vector3(1, 1, 1));
87
+ offset: O.clone().sub(W)
88
+ }), s.position.copy(O), this.hooks.emit("scale", new c.Vector3(1, 1, 1));
81
89
  return;
82
90
  }
83
- const n = w({ raycaster: e, line: t, clampToLine: !1 });
91
+ const n = P({ raycaster: e, line: t, clampToLine: !1 });
84
92
  n.applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (a = (l = this.config) == null ? void 0 : l.scaleCallback) == null || a.call(l, {
85
93
  intersectPoint: n,
86
94
  scalePosition: i,
@@ -159,8 +167,8 @@ class Y extends A {
159
167
  if (!d.vertices || d.vertices.length < 3)
160
168
  continue;
161
169
  const p = new c.Vector3();
162
- for (const b of d.vertices)
163
- p.add(b);
170
+ for (const D of d.vertices)
171
+ p.add(D);
164
172
  p.divideScalar(d.vertices.length);
165
173
  const u = n.distanceTo(p);
166
174
  u < a && (a = u, l = d);
@@ -290,7 +298,7 @@ class Y extends A {
290
298
  transparent: !0,
291
299
  opacity: 0.45
292
300
  }), s = new c.Mesh(t, r);
293
- return s.renderOrder = L.DRAG_FACE_PATCH, this.scene.add(s), this.currentFacePatch = s, this.render(), s;
301
+ return s.renderOrder = E.DRAG_FACE_PATCH, this.scene.add(s), this.currentFacePatch = s, this.render(), s;
294
302
  }
295
303
  }
296
304
  export {