@realsee/dnalogel 3.77.2-alpha.0 → 3.77.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 (136) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +4 -0
  3. package/dist/Sculpt/Objects/Base/Editor.d.ts +20 -1
  4. package/dist/Sculpt/Objects/Box/index.d.ts +5 -2
  5. package/dist/Sculpt/Objects/Rectangle/index.d.ts +7 -4
  6. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +21 -0
  7. package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +16 -0
  8. package/dist/floorplan/typings/index.d.ts +3 -0
  9. package/dist/index.cjs.js +79 -79
  10. package/dist/index.js +6181 -6031
  11. package/dist/index.umd.js +71 -71
  12. package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -3
  13. package/dist/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  14. package/dist/shared-utils/three/PointSelector/index.d.ts +1 -1
  15. package/libs/AreaMakerPlugin/Controller.js +3 -2
  16. package/libs/AreaMakerPlugin/index.js +3 -2
  17. package/libs/AreaMakerPlugin/utils/Item.js +3 -2
  18. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  19. package/libs/CSS3DRenderPlugin/index.js +6 -5
  20. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
  21. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
  22. package/libs/CruisePlugin/BaseController.js +5 -4
  23. package/libs/CruisePlugin/Move.js +3 -2
  24. package/libs/CruisePlugin/Work.js +3 -2
  25. package/libs/CruisePlugin/index.js +7 -6
  26. package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
  27. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  28. package/libs/GuideLinePlugin/Controller.js +5 -4
  29. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  30. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  31. package/libs/GuideLinePlugin/index.js +7 -6
  32. package/libs/MeasurePlugin/Controller.js +11 -10
  33. package/libs/MeasurePlugin/index.js +5 -4
  34. package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
  35. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  36. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  37. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  38. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  39. package/libs/ModelMakerPlugin/Controller.js +3 -2
  40. package/libs/ModelMakerPlugin/index.js +3 -2
  41. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  42. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  43. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  44. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  45. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  46. package/libs/ModelTVVideoPlugin/index.js +3 -2
  47. package/libs/ModelViewPlugin/Plugin.js +20 -19
  48. package/libs/ModelViewPlugin/index.js +1 -0
  49. package/libs/Object3DHelperPlugin/Controller.js +3 -2
  50. package/libs/Object3DHelperPlugin/index.js +6 -5
  51. package/libs/PanoCompassPlugin/Controller.js +3 -2
  52. package/libs/PanoCompassPlugin/index.js +4 -3
  53. package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
  54. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  55. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  56. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  57. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  58. package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +7 -10
  59. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  60. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  61. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  62. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  63. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
  64. package/libs/PanoMeasurePlugin/index.js +14 -13
  65. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  66. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  67. package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
  68. package/libs/PanoRulerProPlugin/index.js +4 -3
  69. package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
  70. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  71. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  72. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  73. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  74. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  75. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  76. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  77. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  78. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  79. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  80. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  81. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  82. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  83. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  84. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  85. package/libs/PanoTagPlugin/controller/index.js +6 -5
  86. package/libs/PanoTagPlugin/index.js +12 -11
  87. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  88. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  89. package/libs/PanoVideoPlugin/Controller.js +9 -8
  90. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  91. package/libs/PanoVideoPlugin/index.js +6 -5
  92. package/libs/PipelinePlugin/Controller.js +3 -2
  93. package/libs/PipelinePlugin/index.js +4 -3
  94. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  95. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  96. package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
  97. package/libs/Sculpt/Meshes/Line.d.ts +4 -0
  98. package/libs/Sculpt/Meshes/Line.js +85 -76
  99. package/libs/Sculpt/Meshes/Point.js +28 -28
  100. package/libs/Sculpt/Meshes/Polygon.js +43 -43
  101. package/libs/Sculpt/Objects/Base/Editor.d.ts +20 -1
  102. package/libs/Sculpt/Objects/Base/Editor.js +91 -35
  103. package/libs/Sculpt/Objects/Box/index.d.ts +5 -2
  104. package/libs/Sculpt/Objects/Box/index.js +61 -55
  105. package/libs/Sculpt/Objects/Prism/index.js +48 -47
  106. package/libs/Sculpt/Objects/Rectangle/index.d.ts +7 -4
  107. package/libs/Sculpt/Objects/Rectangle/index.js +119 -117
  108. package/libs/Sculpt/index.js +1 -1
  109. package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
  110. package/libs/Sculpt/utils/Modules/Global.js +24 -24
  111. package/libs/base/BasePlugin.js +1 -1
  112. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  113. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  114. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +21 -0
  115. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +134 -92
  116. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  117. package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +16 -0
  118. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +133 -104
  119. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -4
  120. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  121. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  122. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  123. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  124. package/libs/floorplan/index.js +1 -1
  125. package/libs/floorplan/typings/index.d.ts +3 -0
  126. package/libs/index.js +151 -150
  127. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  128. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +18 -18
  129. package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -1
  130. package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +4 -3
  131. package/libs/shared-utils/five/getFiveFromParentChain.d.ts +7 -0
  132. package/libs/shared-utils/five/getFiveFromParentChain.js +15 -0
  133. package/libs/shared-utils/logger.js +1 -1
  134. package/libs/shared-utils/three/PointSelector/index.d.ts +1 -1
  135. package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
  136. package/package.json +1 -1
package/libs/index.js CHANGED
@@ -1,74 +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 bn } from "./ModelViewPlugin/Plugin.js";
6
- import { CSS3DRenderPlugin as Vn } from "./CSS3DRenderPlugin/index.js";
7
- import { PanoCursorRaycasterPlugin as Nn } from "./PanoCursorRaycasterPlugin/index.js";
8
- import { ModelRoomLabelPlugin as kn, modelRoomLabelPluginServerParams as wn } from "./ModelRoomLabelPlugin/index.js";
9
- import { FLOOR_PLAN_ATTACHED_TO as Un } from "./floorplan/constant.js";
10
- import { ModelFloorplanPlugin as $n } from "./floorplan/ModelFloorplanPlugin/index.js";
11
- import { MapviewFloorplanPlugin as qn } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
- import { TopviewFloorplanPlugin as Jn } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
- import { PanoFloorplanRadarPlugin as Qn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
- import { FloorplanGuidePlugin as Zn } from "./floorplan/FloorplanGuidePlugin/index.js";
15
- import { FLOOR_TYPE_MAP as ra, ROOM_FETILE_TYPE_MAP as ta, ROOM_TYPE_MAP as ia } from "./floorplan/typings/floorplanServerData.js";
16
- import { ModelChassisCompassPlugin as pa } from "./ModelChassisCompassPlugin/Plugin.js";
17
- import { ModelEntryDoorGuidePlugin as la } from "./ModelEntryDoorGuidePlugin/Plugin.js";
18
- import { CameraMovementPlugin as aa } from "./CameraMovementPlugin/CameraMovementPlugin.js";
19
- import { CameraMovementEffect as fa, Rotation as ua } from "./CameraMovementPlugin/typing.js";
20
- import { PanoRulerPlugin as ga } from "./PanoRulerPlugin/Plugin.js";
21
- import { PanoRulerProPlugin as da } from "./PanoRulerProPlugin/index.js";
22
- import { PanoCompassPlugin as Ta } from "./PanoCompassPlugin/index.js";
23
- import { PanoMeasurePlugin as La } from "./PanoMeasurePlugin/index.js";
24
- import { MeasurePlugin as Ra } from "./MeasurePlugin/index.js";
25
- import { PanoSpatialTagPlugin as ya } from "./PanoSpatialTagPlugin/Plugin.js";
26
- import { modelItemLabelPluginServerParams as Ia } from "./ModelItemLabelPlugin/index.js";
27
- import { ModelTVVideoPlugin as Oa } 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 ba } from "./PanoDoorLabelPlugin/index.js";
31
- import { GuideLinePlugin as Va } from "./GuideLinePlugin/index.js";
32
- import { CruisePlugin as Na, MovePlugin as ha } from "./CruisePlugin/index.js";
33
- import { PanoTagPlugin as wa } from "./PanoTagPlugin/index.js";
34
- import { Object3DHelperPlugin as Ua } from "./Object3DHelperPlugin/index.js";
35
- import { PanoVideoPlugin as $a } from "./PanoVideoPlugin/index.js";
36
- import { PipelinePlugin as qa } from "./PipelinePlugin/index.js";
37
- import { AreaMakerPlugin as Ja } from "./AreaMakerPlugin/index.js";
38
- import { CurrentPanoImagePlugin as Qa } from "./CurrentPanoImagePlugin/index.js";
39
- import { Sculpt as Za, SculptPlugin as oP, SculptPluginForFive as rP } from "./Sculpt/index.js";
40
- import { ModelMakerPlugin as iP } from "./ModelMakerPlugin/index.js";
41
- import { exports as pP } from "./shared-utils/exports.js";
42
- import { CSS3DRender as lP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
- import { Model as aP } from "./PanoMeasurePlugin/Model/index.js";
44
- import { default as fP } from "./PanoMeasurePlugin/Model/point.js";
45
- import { default as xP } from "./PanoMeasurePlugin/Model/line.js";
46
- import { Polyline as sP } from "./PanoMeasurePlugin/Model/polyline.js";
47
- import { Magnifier as MP } from "./shared-utils/three/Magnifier.js";
48
- import { validatePolygon as CP } from "./MeasurePlugin/utils/validatePolygon.js";
49
- import { DISPLAY_STRATEGY_TYPE as cP } from "./ModelItemLabelPlugin/typings.js";
50
- import { ModelItemLabelPlugin as _P } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
51
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as EP } from "./ItemLabelPlugin/typings.js";
52
- import { Plugin as SP } from "./ItemLabelPlugin/Plugin.js";
53
- import { GuideLineItem$1 as vP } from "./GuideLinePlugin/GuideLineItem/index.js";
54
- import { GuideLineModeItem$1 as FP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
55
- import { default as DP, default as bP } from "./CruisePlugin/Work.js";
56
- import { default as VP } from "./CruisePlugin/Move.js";
57
- import { typing as NP } from "./CruisePlugin/typing/index.js";
58
- import { default as kP, pluginFlag as wP } from "./PanoTagPlugin/controller/index.js";
59
- import { defaultGlobalConfig as UP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
60
- import { ContentType as $P, DimensionType as WP, PointType as qP } from "./PanoTagPlugin/Archive/deprecated.js";
61
- import { Object3DHelperController as JP, PLUGIN as KP } from "./Object3DHelperPlugin/Controller.js";
62
- import { typings as XP } from "./PanoVideoPlugin/typings/index.js";
63
- import { createPoint as of } from "./Sculpt/Objects/Point/index.js";
64
- import { createLine as tf } from "./Sculpt/Objects/Line/index.js";
65
- import { createPolyline as pf } from "./Sculpt/Objects/Polyline/index.js";
66
- import { createPolygon as lf } from "./Sculpt/Objects/Polygon/index.js";
67
- import { createPrism as af } from "./Sculpt/Objects/Prism/index.js";
68
- import { createRectangle as ff } from "./Sculpt/Objects/Rectangle/index.js";
69
- import { createCircle as xf } from "./Sculpt/Objects/Circle/index.js";
70
- import { createCylinder as sf } from "./Sculpt/Objects/Cylinder/index.js";
71
- import { createBox as Mf } from "./Sculpt/Objects/Box/index.js";
3
+ import { PaintBrush as Fn } from "./components/PaintBrush/index.js";
4
+ import { PaintBrushTypeEnum as Dn } from "./components/PaintBrush/typings.js";
5
+ import { ModelViewPlugin as Yn } from "./ModelViewPlugin/Plugin.js";
6
+ import { CSS3DRenderPlugin as Bn } from "./CSS3DRenderPlugin/index.js";
7
+ import { PanoCursorRaycasterPlugin as hn } from "./PanoCursorRaycasterPlugin/index.js";
8
+ import { ModelRoomLabelPlugin as wn, modelRoomLabelPluginServerParams as Hn } from "./ModelRoomLabelPlugin/index.js";
9
+ import { FLOOR_PLAN_ATTACHED_TO as jn } from "./floorplan/constant.js";
10
+ import { ModelFloorplanPlugin as Wn } from "./floorplan/ModelFloorplanPlugin/index.js";
11
+ import { MapviewFloorplanPlugin as zn } from "./floorplan/MapviewFloorplanPlugin/index.js";
12
+ import { TopviewFloorplanPlugin as Kn } from "./floorplan/TopviewFloorplanPlugin/index.js";
13
+ import { PanoFloorplanRadarPlugin as Xn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
14
+ import { FloorplanGuidePlugin as oa } from "./floorplan/FloorplanGuidePlugin/index.js";
15
+ import { FLOOR_TYPE_MAP as ta, ROOM_FETILE_TYPE_MAP as ia, ROOM_TYPE_MAP as ma } from "./floorplan/typings/floorplanServerData.js";
16
+ import { ModelChassisCompassPlugin as ea } from "./ModelChassisCompassPlugin/Plugin.js";
17
+ import { ModelEntryDoorGuidePlugin as na } from "./ModelEntryDoorGuidePlugin/Plugin.js";
18
+ import { CameraMovementPlugin as Pa } from "./CameraMovementPlugin/CameraMovementPlugin.js";
19
+ import { CameraMovementEffect as ua, Rotation as xa } from "./CameraMovementPlugin/typing.js";
20
+ import { PanoRulerPlugin as sa } from "./PanoRulerPlugin/Plugin.js";
21
+ import { PanoRulerProPlugin as Ma } from "./PanoRulerProPlugin/index.js";
22
+ import { PanoCompassPlugin as Ca } from "./PanoCompassPlugin/index.js";
23
+ import { PanoMeasurePlugin as ca } from "./PanoMeasurePlugin/index.js";
24
+ import { MeasurePlugin as _a } from "./MeasurePlugin/index.js";
25
+ import { PanoSpatialTagPlugin as Ea } from "./PanoSpatialTagPlugin/Plugin.js";
26
+ import { modelItemLabelPluginServerParams as Sa } from "./ModelItemLabelPlugin/index.js";
27
+ import { ModelTVVideoPlugin as va } from "./ModelTVVideoPlugin/Plugin.js";
28
+ import { DIRECTION as Fa } from "./ModelTVVideoPlugin/typings.js";
29
+ import { itemLabelPluginServerParams as Da } from "./ItemLabelPlugin/index.js";
30
+ import { PanoDoorLabelPlugin as Ya } from "./PanoDoorLabelPlugin/index.js";
31
+ import { GuideLinePlugin as Ba } from "./GuideLinePlugin/index.js";
32
+ import { CruisePlugin as ha, MovePlugin as ka } from "./CruisePlugin/index.js";
33
+ import { PanoTagPlugin as Ha } from "./PanoTagPlugin/index.js";
34
+ import { Object3DHelperPlugin as ja } from "./Object3DHelperPlugin/index.js";
35
+ import { PanoVideoPlugin as Wa } from "./PanoVideoPlugin/index.js";
36
+ import { PipelinePlugin as za } from "./PipelinePlugin/index.js";
37
+ import { AreaMakerPlugin as Ka } from "./AreaMakerPlugin/index.js";
38
+ import { CurrentPanoImagePlugin as Xa } from "./CurrentPanoImagePlugin/index.js";
39
+ import { Sculpt as oP, SculptPlugin as rP, SculptPluginForFive as tP } from "./Sculpt/index.js";
40
+ import { ModelMakerPlugin as mP } from "./ModelMakerPlugin/index.js";
41
+ import { exports as eP } from "./shared-utils/exports.js";
42
+ import { CSS3DRender as nP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
43
+ import { Model as PP } from "./PanoMeasurePlugin/Model/index.js";
44
+ import { default as uP } from "./PanoMeasurePlugin/Model/point.js";
45
+ import { default as gP } from "./PanoMeasurePlugin/Model/line.js";
46
+ import { Polyline as dP } from "./PanoMeasurePlugin/Model/polyline.js";
47
+ import { Magnifier as TP } from "./shared-utils/three/Magnifier.js";
48
+ import { validatePolygon as LP } from "./MeasurePlugin/utils/validatePolygon.js";
49
+ import { DISPLAY_STRATEGY_TYPE as RP } from "./ModelItemLabelPlugin/typings.js";
50
+ import { ModelItemLabelPlugin as yP } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
51
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as IP } from "./ItemLabelPlugin/typings.js";
52
+ import { Plugin as OP } from "./ItemLabelPlugin/Plugin.js";
53
+ import { GuideLineItem$1 as AP } from "./GuideLinePlugin/GuideLineItem/index.js";
54
+ import { GuideLineModeItem$1 as GP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
55
+ import { default as bP, default as YP } from "./CruisePlugin/Work.js";
56
+ import { default as BP } from "./CruisePlugin/Move.js";
57
+ import { typing as hP } from "./CruisePlugin/typing/index.js";
58
+ import { default as wP, pluginFlag as HP } from "./PanoTagPlugin/controller/index.js";
59
+ import { defaultGlobalConfig as jP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
60
+ import { ContentType as WP, DimensionType as qP, PointType as zP } from "./PanoTagPlugin/Archive/deprecated.js";
61
+ import { Object3DHelperController as KP, PLUGIN as QP } from "./Object3DHelperPlugin/Controller.js";
62
+ import { typings as ZP } from "./PanoVideoPlugin/typings/index.js";
63
+ import { createPoint as rf } from "./Sculpt/Objects/Point/index.js";
64
+ import { createLine as mf } from "./Sculpt/Objects/Line/index.js";
65
+ import { createPolyline as ef } from "./Sculpt/Objects/Polyline/index.js";
66
+ import { createPolygon as nf } from "./Sculpt/Objects/Polygon/index.js";
67
+ import { createPrism as Pf } from "./Sculpt/Objects/Prism/index.js";
68
+ import { createRectangle as uf } from "./Sculpt/Objects/Rectangle/index.js";
69
+ import { createCircle as gf } from "./Sculpt/Objects/Circle/index.js";
70
+ import { createCylinder as df } from "./Sculpt/Objects/Cylinder/index.js";
71
+ import { createBox as Tf } from "./Sculpt/Objects/Box/index.js";
72
72
  import "./components/PaintBrush/Controller.js";
73
73
  import "./components/PaintBrush/utils.js";
74
74
  import "./components/PaintBrush/tween.js";
@@ -124,6 +124,7 @@ import "./Sculpt/typings/style.js";
124
124
  import "./shared-utils/three/IObject3D.js";
125
125
  import "./Sculpt/utils/Meshes/getLengthHTML.js";
126
126
  import "./shared-utils/three/applyObjectMatrixWorld.js";
127
+ import "./shared-utils/five/getFiveFromParentChain.js";
127
128
  import "./shared-utils/three/core/LineGeometry.js";
128
129
  import "./shared-utils/three/core/LineMaterial.js";
129
130
  import "./shared-utils/three/core/Line2.js";
@@ -580,85 +581,85 @@ import "./shared-utils/five/lookObject.js";
580
581
  r();
581
582
  o();
582
583
  export {
583
- Ja as AreaMakerPlugin,
584
- lP as CSS3DRender,
585
- Vn as CSS3DRenderPlugin,
586
- fa as CameraMovementEffect,
587
- aa as CameraMovementPlugin,
588
- $P as ContentType,
589
- Na as CruisePlugin,
590
- DP as CruisePluginController,
591
- NP as CruisePluginTypes,
592
- Qa as CurrentPanoImagePlugin,
593
- Aa as DIRECTION,
594
- cP as DISPLAY_STRATEGY_TYPE,
595
- WP as DimensionType,
596
- Un as FLOOR_PLAN_ATTACHED_TO,
597
- ra as FLOOR_TYPE_MAP,
598
- Zn as FloorplanGuidePlugin,
599
- vP as GuideLineItem,
600
- FP as GuideLineModeItem,
601
- Va as GuideLinePlugin,
602
- EP as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
603
- SP as ItemLabelPlugin,
604
- MP as Magnifier,
605
- qn as MapviewFloorplanPlugin,
606
- Ra as MeasurePlugin,
607
- pa as ModelChassisCompassPlugin,
608
- la as ModelEntryDoorGuidePlugin,
609
- $n as ModelFloorplanPlugin,
610
- _P as ModelItemLabelPlugin,
611
- iP as ModelMakerPlugin,
612
- kn as ModelRoomLabelPlugin,
613
- Oa as ModelTVVideoPlugin,
614
- bn as ModelViewPlugin,
615
- VP as MoveController,
616
- ha as MovePlugin,
617
- JP as Object3DHelperController,
618
- Ua as Object3DHelperPlugin,
619
- KP as PLUGIN,
620
- An as PaintBrush,
621
- Gn as PaintBrushTypeEnum,
622
- Ta as PanoCompassPlugin,
623
- Nn as PanoCursorRaycasterPlugin,
624
- ba as PanoDoorLabelPlugin,
625
- Qn as PanoFloorplanRadarPlugin,
626
- La as PanoMeasurePlugin,
627
- xP as PanoMeasurePluginLine,
628
- aP as PanoMeasurePluginModel,
629
- fP as PanoMeasurePluginPoint,
630
- sP as PanoMeasurePluginPolyline,
631
- ga as PanoRulerPlugin,
632
- da as PanoRulerProPlugin,
633
- ya as PanoSpatialTagPlugin,
634
- wa as PanoTagPlugin,
635
- kP as PanoTagPluginController,
636
- $a as PanoVideoPlugin,
637
- XP as PanoVideoPluginType,
638
- qa as PipelinePlugin,
639
- qP as PointType,
640
- ta as ROOM_FETILE_TYPE_MAP,
641
- ia as ROOM_TYPE_MAP,
642
- ua as Rotation,
643
- Za as Sculpt,
644
- oP as SculptPlugin,
645
- rP as SculptPluginForFive,
646
- Jn as TopviewFloorplanPlugin,
647
- pP as Util,
648
- bP as WalkController,
649
- Mf as createBox,
650
- xf as createCircle,
651
- sf as createCylinder,
652
- tf as createLine,
653
- of as createPoint,
654
- lf as createPolygon,
655
- pf as createPolyline,
656
- af as createPrism,
657
- ff as createRectangle,
658
- UP as defaultGlobalConfig,
659
- Ga as itemLabelPluginServerParams,
660
- Ia as modelItemLabelPluginServerParams,
661
- wn as modelRoomLabelPluginServerParams,
662
- wP as pluginFlag,
663
- CP as validatePolygon
584
+ Ka as AreaMakerPlugin,
585
+ nP as CSS3DRender,
586
+ Bn as CSS3DRenderPlugin,
587
+ ua as CameraMovementEffect,
588
+ Pa as CameraMovementPlugin,
589
+ WP as ContentType,
590
+ ha as CruisePlugin,
591
+ bP as CruisePluginController,
592
+ hP as CruisePluginTypes,
593
+ Xa as CurrentPanoImagePlugin,
594
+ Fa as DIRECTION,
595
+ RP as DISPLAY_STRATEGY_TYPE,
596
+ qP as DimensionType,
597
+ jn as FLOOR_PLAN_ATTACHED_TO,
598
+ ta as FLOOR_TYPE_MAP,
599
+ oa as FloorplanGuidePlugin,
600
+ AP as GuideLineItem,
601
+ GP as GuideLineModeItem,
602
+ Ba as GuideLinePlugin,
603
+ IP as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
604
+ OP as ItemLabelPlugin,
605
+ TP as Magnifier,
606
+ zn as MapviewFloorplanPlugin,
607
+ _a as MeasurePlugin,
608
+ ea as ModelChassisCompassPlugin,
609
+ na as ModelEntryDoorGuidePlugin,
610
+ Wn as ModelFloorplanPlugin,
611
+ yP as ModelItemLabelPlugin,
612
+ mP as ModelMakerPlugin,
613
+ wn as ModelRoomLabelPlugin,
614
+ va as ModelTVVideoPlugin,
615
+ Yn as ModelViewPlugin,
616
+ BP as MoveController,
617
+ ka as MovePlugin,
618
+ KP as Object3DHelperController,
619
+ ja as Object3DHelperPlugin,
620
+ QP as PLUGIN,
621
+ Fn as PaintBrush,
622
+ Dn as PaintBrushTypeEnum,
623
+ Ca as PanoCompassPlugin,
624
+ hn as PanoCursorRaycasterPlugin,
625
+ Ya as PanoDoorLabelPlugin,
626
+ Xn as PanoFloorplanRadarPlugin,
627
+ ca as PanoMeasurePlugin,
628
+ gP as PanoMeasurePluginLine,
629
+ PP as PanoMeasurePluginModel,
630
+ uP as PanoMeasurePluginPoint,
631
+ dP as PanoMeasurePluginPolyline,
632
+ sa as PanoRulerPlugin,
633
+ Ma as PanoRulerProPlugin,
634
+ Ea as PanoSpatialTagPlugin,
635
+ Ha as PanoTagPlugin,
636
+ wP as PanoTagPluginController,
637
+ Wa as PanoVideoPlugin,
638
+ ZP as PanoVideoPluginType,
639
+ za as PipelinePlugin,
640
+ zP as PointType,
641
+ ia as ROOM_FETILE_TYPE_MAP,
642
+ ma as ROOM_TYPE_MAP,
643
+ xa as Rotation,
644
+ oP as Sculpt,
645
+ rP as SculptPlugin,
646
+ tP as SculptPluginForFive,
647
+ Kn as TopviewFloorplanPlugin,
648
+ eP as Util,
649
+ YP as WalkController,
650
+ Tf as createBox,
651
+ gf as createCircle,
652
+ df as createCylinder,
653
+ mf as createLine,
654
+ rf as createPoint,
655
+ nf as createPolygon,
656
+ ef as createPolyline,
657
+ Pf as createPrism,
658
+ uf as createRectangle,
659
+ jP as defaultGlobalConfig,
660
+ Da as itemLabelPluginServerParams,
661
+ Sa as modelItemLabelPluginServerParams,
662
+ Hn as modelRoomLabelPluginServerParams,
663
+ HP as pluginFlag,
664
+ LP as validatePolygon
664
665
  };
@@ -68,7 +68,7 @@ class z extends B {
68
68
  }
69
69
  }
70
70
  const m = o === "plane" ? [] : [o];
71
- this.helperObject3D.showDraggingHelper(m), this.hooks.emit("moveStart"), this.isDragging = !0;
71
+ this.helperObject3D.showDraggingHelper(m), this.hooks.emit("moveStart", o), this.isDragging = !0;
72
72
  });
73
73
  h(this, "dragging", (e) => {
74
74
  if (!this.isDragging || !this.startInfo)
@@ -31,31 +31,31 @@ class _ extends Y {
31
31
  this.helperObject3D.applyHelperScaleMatrix4(t.matrix, t.origin);
32
32
  }
33
33
  getDragPlane() {
34
- const t = new D.Plane(), s = this.helperObject3D.cornerPositions;
35
- if (s.length !== 0)
36
- return s.length < 3 ? t.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new o()), s[0]) : t.setFromCoplanarPoints(s[0], s[1], s[2]), t;
34
+ const t = new D.Plane(), e = this.helperObject3D.cornerPositions;
35
+ if (e.length !== 0)
36
+ return e.length < 3 ? t.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new o()), e[0]) : t.setFromCoplanarPoints(e[0], e[1], e[2]), t;
37
37
  }
38
- dragStart(t, s) {
38
+ dragStart(t, e) {
39
39
  var p, n;
40
40
  (n = (p = this.helperObject3D).updatePoints) == null || n.call(p);
41
41
  const f = this.getDragPlane();
42
42
  if (!f)
43
43
  return this.dragEnd();
44
- this.startInfo = { startPoint: { position: s.position.clone(), direction: s.direction }, plane: f }, this.hooks.emit("scaleStart"), this.render(), this.isDragging = !0;
44
+ this.startInfo = { startPoint: { position: e.position.clone(), direction: e.direction }, plane: f }, this.hooks.emit("scaleStart", e.direction), this.render(), this.isDragging = !0;
45
45
  }
46
46
  dragging(t) {
47
47
  if (!this.isDragging)
48
48
  return;
49
- const s = T(this.camera, t, this.container);
50
- if (!s)
49
+ const e = T(this.camera, t, this.container);
50
+ if (!e)
51
51
  return this.dragEnd();
52
- this.scale(s);
52
+ this.scale(e);
53
53
  }
54
54
  scale(t) {
55
55
  var C, E;
56
56
  if (!this.startInfo)
57
57
  return;
58
- const s = this.originObject3D, { startPoint: f, plane: p } = this.startInfo, n = this.helperObject3D.cornerPositions;
58
+ const e = this.originObject3D, { startPoint: f, plane: p } = this.startInfo, n = this.helperObject3D.cornerPositions;
59
59
  if (n.length < 4)
60
60
  return this.dragEnd();
61
61
  const g = t.ray.intersectPlane(p, new o());
@@ -65,30 +65,30 @@ class _ extends Y {
65
65
  const i = new o(0, 0, 0);
66
66
  if (!this.startInfo)
67
67
  return i;
68
- const e = (r === "ew" ? I : y).clone(), c = k.clone().projectOnVector(e), b = g.clone().projectOnVector(e), M = m.clone().projectOnVector(e);
68
+ const s = (r === "ew" ? I : y).clone(), c = k.clone().projectOnVector(s), b = g.clone().projectOnVector(s), M = m.clone().projectOnVector(s);
69
69
  if (b.equals(c))
70
70
  return i;
71
71
  if (r === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
72
- const l = new o().subVectors(b, M), O = l.x < 0 && e.x >= 0, P = l.y < 0 && e.y >= 0, j = l.z < 0 && e.z >= 0;
72
+ const l = new o().subVectors(b, M), O = l.x < 0 && s.x >= 0, P = l.y < 0 && s.y >= 0, j = l.z < 0 && s.z >= 0;
73
73
  this.startInfo.dragPointInCenterBottom = O || P || j;
74
74
  }
75
75
  if (r === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
76
- const l = new o().subVectors(b, M), O = l.x < 0 && e.x >= 0, P = l.y < 0 && e.y >= 0, j = l.z < 0 && e.z >= 0;
76
+ const l = new o().subVectors(b, M), O = l.x < 0 && s.x >= 0, P = l.y < 0 && s.y >= 0, j = l.z < 0 && s.z >= 0;
77
77
  this.startInfo.dragPointInCenterLeft = O || P || j;
78
78
  }
79
79
  const v = new o().subVectors(b, c), N = v.length();
80
80
  return N > 0.3 ? (console.warn("offset.length() > 0.3, skipped", N), i) : v;
81
81
  }, A = S("ew"), B = S("ns"), V = () => {
82
82
  const r = A;
83
- this.helperObject3D.cornerPositions.forEach((i, e) => {
83
+ this.helperObject3D.cornerPositions.forEach((i, s) => {
84
84
  var c;
85
- (c = this.startInfo) != null && c.dragPointInCenterLeft ? (e === 0 || e === 3) && i.add(r) : (e === 1 || e === 2) && i.add(r);
85
+ (c = this.startInfo) != null && c.dragPointInCenterLeft ? (s === 0 || s === 3) && i.add(r) : (s === 1 || s === 2) && i.add(r);
86
86
  });
87
87
  }, x = () => {
88
88
  const r = B;
89
- this.helperObject3D.cornerPositions.forEach((i, e) => {
89
+ this.helperObject3D.cornerPositions.forEach((i, s) => {
90
90
  var c;
91
- (c = this.startInfo) != null && c.dragPointInCenterBottom ? (e === 0 || e === 1) && i.add(r) : (e === 2 || e === 3) && i.add(r);
91
+ (c = this.startInfo) != null && c.dragPointInCenterBottom ? (s === 0 || s === 1) && i.add(r) : (s === 2 || s === 3) && i.add(r);
92
92
  });
93
93
  };
94
94
  switch (z) {
@@ -103,9 +103,9 @@ class _ extends Y {
103
103
  V(), x();
104
104
  }
105
105
  const H = new o().subVectors(n[1], n[0]).length() / I.length(), L = new o().subVectors(n[3], n[0]).length() / y.length(), R = new o(H, L, 1), u = new D.Matrix4().scale(R);
106
- s.isCSS3DObjectPlus && s.applyScaleMatrix4 ? s.applyScaleMatrix4(u) : s.scale.applyMatrix4(u), f.position.copy(g);
106
+ e.isCSS3DObjectPlus && e.applyScaleMatrix4 ? e.applyScaleMatrix4(u) : e.scale.applyMatrix4(u), f.position.copy(g);
107
107
  const q = new o().addVectors(n[0], n[2]).divideScalar(2), F = new o().subVectors(q, m), d = new D.Matrix4().setPosition(F);
108
- s.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.internalHooks.emit("applyObjectScale", { matrix: u }), this.internalHooks.emit("applyObjectPosition", { matrix: d }), this.render();
108
+ e.applyMatrix4(d), (C = this.helperObject3D.css3DInstance) == null || C.css3DObject.applyMatrix4(d), (E = this.helperObject3D.plane) == null || E.applyMatrix4(d), this.internalHooks.emit("applyObjectScale", { matrix: u }), this.internalHooks.emit("applyObjectPosition", { matrix: d }), this.render();
109
109
  }
110
110
  dragEnd() {
111
111
  this.isDragging && (this.startInfo = void 0, this.isDragging = !1, "onScaleEnd" in this.helperObject3D && typeof this.helperObject3D.onScaleEnd == "function" && this.helperObject3D.onScaleEnd(), this.hooks.emit("scaleEnd"), this.render());
@@ -92,7 +92,7 @@ class I extends Q {
92
92
  angleHelper: s,
93
93
  angle: 0,
94
94
  helperQuaternion: a.clone()
95
- }, w = new o.Quaternion(), this.helperObject3D.showDraggingHelper([n]), this.hooks.emit("rotateStart"), this.isDragging = !0;
95
+ }, w = new o.Quaternion(), this.helperObject3D.showDraggingHelper([n]), this.hooks.emit("rotateStart", n), this.isDragging = !0;
96
96
  }
97
97
  getMatrix() {
98
98
  var e, n;
@@ -1,4 +1,5 @@
1
1
  import type * as THREE from 'three';
2
+ import type { Direction, Direction4 } from './Direction';
2
3
  export type HelperEventMap = {
3
4
  wantToMove: (position: THREE.Vector3) => void;
4
5
  moveBefore: (position: THREE.Vector3) => THREE.Vector3 | null | undefined;
@@ -7,9 +8,9 @@ export type HelperEventMap = {
7
8
  move: (position: THREE.Vector3) => void;
8
9
  rotate: (quaternion: THREE.Quaternion) => void;
9
10
  scale: (scale: THREE.Vector3) => void;
10
- moveStart: () => void;
11
- rotateStart: () => void;
12
- scaleStart: () => void;
11
+ moveStart: (direction?: Direction) => void;
12
+ rotateStart: (direction?: Direction) => void;
13
+ scaleStart: (direction?: Direction | Direction4) => void;
13
14
  moveEnd: () => void;
14
15
  rotateEnd: () => void;
15
16
  scaleEnd: () => void;
@@ -0,0 +1,7 @@
1
+ import type { Five } from '@realsee/five';
2
+ import type { Object3D } from 'three';
3
+ /**
4
+ * 从 Object3D 的父级链向上遍历,查找 __five__ 或 __sculpt__.five
5
+ * 用于在场景树中正确获取渲染该对象的 Five 实例
6
+ */
7
+ export declare function getFiveFromParentChain(object: Object3D): Five | undefined;
@@ -0,0 +1,15 @@
1
+ function n(i) {
2
+ let e = i;
3
+ for (; e; ) {
4
+ const t = e.__five__;
5
+ if (t)
6
+ return t;
7
+ const r = e.__sculpt__;
8
+ if (r != null && r.five)
9
+ return r.five;
10
+ e = e.parent;
11
+ }
12
+ }
13
+ export {
14
+ n as getFiveFromParentChain
15
+ };
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.77.2-alpha.0",
3
+ "%c %c@realsee/dnalogel %cv3.77.3-alpha.1",
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",
@@ -42,7 +42,7 @@ interface Config {
42
42
  /**
43
43
  * five 6.7.0 特性,可配置是否自定义拾取点过滤函数
44
44
  */
45
- hitFilter: (intersect: Intersection) => boolean;
45
+ hitFilter?: (intersect: Intersection) => boolean;
46
46
  }
47
47
  export type PointSelectorConfig = Partial<Config>;
48
48
  type EventMap = {
@@ -130,6 +130,7 @@ class E extends e.Object3D {
130
130
  o(this, "lineMesh");
131
131
  o(this, "ballMesh");
132
132
  o(this, "cssBallMesh");
133
+ this.__five__ = r;
133
134
  const i = 0.18;
134
135
  this.planeMesh = P(), this.ringMesh = C(), this.crossline = b(), this.lineMesh = V(i), this.ballMesh = x(), this.cssBallMesh = S(), this.ballMesh.position.setZ(i), this.cssBallMesh.position.setZ(i), this.planeMesh.renderOrder = 0, this.ringMesh.renderOrder = 1, this.crossline.renderOrder = 2, this.lineMesh.renderOrder = 3, this.ballMesh.renderOrder = 4, this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.ringMesh, this.cssBallMesh), A(r);
135
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.77.2-alpha.0",
3
+ "version": "3.77.3-alpha.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",