@realsee/dnalogel 2.3.9-alpha.8 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  2. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  3. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  4. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  5. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  6. package/dist/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  7. package/dist/PanoMeasurePlugin/Model/index.d.ts +17 -17
  8. package/dist/PanoMeasurePlugin/Model/line.d.ts +6 -4
  9. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -4
  10. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  11. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  12. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  13. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  14. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  15. package/dist/PanoMeasurePlugin/index.d.ts +6 -2
  16. package/dist/PanoMeasurePlugin/typings/data.d.ts +6 -16
  17. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  18. package/dist/PanoMeasurePlugin/typings/index.d.ts +4 -2
  19. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  20. package/dist/index.cjs.js +102 -102
  21. package/dist/index.js +3715 -3594
  22. package/dist/index.umd.js +91 -91
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/CSS3DRender.html +31 -31
  25. package/docs/classes/CruisePluginController.html +24 -24
  26. package/docs/classes/Magnifier.html +90 -40
  27. package/docs/classes/ModelRoomLabelController.html +11 -11
  28. package/docs/classes/Object3DHelperController.html +24 -24
  29. package/docs/classes/PaintBrush.html +15 -15
  30. package/docs/classes/PanoMeasurePluginLine.html +318 -0
  31. package/docs/classes/PanoMeasurePluginModel.html +275 -0
  32. package/docs/classes/PanoMeasurePluginPoint.html +160 -0
  33. package/docs/classes/PanoMeasurePluginPolyline.html +306 -0
  34. package/docs/classes/PanoTagPluginController.html +41 -41
  35. package/docs/classes/Util.BetterTween.html +8 -8
  36. package/docs/classes/Util.FivePointSelector.html +12 -12
  37. package/docs/classes/Util.Interval.html +12 -12
  38. package/docs/classes/Util.Magnifier.html +17 -17
  39. package/docs/classes/Util.PointDomHelper.html +11 -11
  40. package/docs/classes/Util.PointHelper.html +11 -11
  41. package/docs/classes/Util.Rectangle.html +13 -13
  42. package/docs/enums/CameraMovementEffect.html +7 -7
  43. package/docs/enums/ContentType.html +16 -16
  44. package/docs/enums/DIRECTION.html +9 -9
  45. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  46. package/docs/enums/DimensionType.html +7 -7
  47. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  48. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  49. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  50. package/docs/enums/PointType.html +7 -7
  51. package/docs/enums/Rotation.html +8 -8
  52. package/docs/functions/CSS3DRenderPlugin.html +12 -7
  53. package/docs/functions/CameraMovementPlugin.html +12 -7
  54. package/docs/functions/CruisePlugin.html +12 -7
  55. package/docs/functions/GuideLinePlugin.html +13 -8
  56. package/docs/functions/ItemLabelPlugin.html +12 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +12 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +12 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +12 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +12 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +12 -7
  62. package/docs/functions/ModelRoomLabelPlugin.html +12 -7
  63. package/docs/functions/ModelTVVideoPlugin.html +12 -7
  64. package/docs/functions/ModelViewPlugin.html +12 -7
  65. package/docs/functions/Object3DHelperPlugin.html +12 -7
  66. package/docs/functions/PanoCompassPlugin.html +12 -7
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +12 -7
  68. package/docs/functions/PanoDoorLabelPlugin.html +12 -7
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +12 -7
  70. package/docs/functions/PanoMeasurePlugin.html +12 -7
  71. package/docs/functions/PanoRulerPlugin.html +12 -7
  72. package/docs/functions/PanoRulerProPlugin.html +12 -7
  73. package/docs/functions/PanoSpatialTagPlugin.html +12 -7
  74. package/docs/functions/PanoTagPlugin.html +12 -7
  75. package/docs/functions/TopviewFloorplanPlugin.html +12 -7
  76. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  77. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  78. package/docs/functions/Util.getFrameTime.html +5 -5
  79. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  80. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  81. package/docs/functions/Util.isNil.html +5 -5
  82. package/docs/functions/Util.nextFrame.html +5 -5
  83. package/docs/functions/Util.notNil.html +5 -5
  84. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  85. package/docs/functions/Util.tweenProgress.html +5 -5
  86. package/docs/functions/pluginFlag.html +13 -8
  87. package/docs/index.html +12 -7
  88. package/docs/interfaces/AddTagConfig.html +6 -6
  89. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  90. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  91. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  92. package/docs/interfaces/EventMap.html +15 -15
  93. package/docs/interfaces/FloorplanBounding.html +8 -8
  94. package/docs/interfaces/FloorplanData.html +10 -10
  95. package/docs/interfaces/FloorplanEntrance.html +11 -11
  96. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  97. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  98. package/docs/interfaces/FloorplanFloorData.html +9 -9
  99. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  100. package/docs/interfaces/FloorplanObserver.html +9 -9
  101. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  102. package/docs/interfaces/FloorplanPosition.html +7 -7
  103. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  104. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  105. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  106. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  107. package/docs/interfaces/FloorplanServerData.html +7 -7
  108. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  109. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  110. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  111. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  112. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  113. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  114. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  115. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  116. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  117. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  118. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  119. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  120. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  121. package/docs/interfaces/MinMax.html +7 -7
  122. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  123. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  124. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  125. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  126. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  127. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  128. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  129. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  130. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  131. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  132. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  133. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  134. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  135. package/docs/interfaces/Object3DHelperState.html +8 -8
  136. package/docs/interfaces/PaintBrushAction.html +12 -12
  137. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  138. package/docs/interfaces/PaintBrushState.html +10 -10
  139. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  140. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +13 -8
  141. package/docs/interfaces/PanoMeasureParameterType.html +24 -14
  142. package/docs/interfaces/{PointJson.html → PanoMeasurePluginLineJson.html} +24 -24
  143. package/docs/interfaces/{OpenParameter.html → PanoMeasurePluginOpenParameter.html} +15 -15
  144. package/docs/interfaces/{LineJson.html → PanoMeasurePluginPointJson.html} +18 -18
  145. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +80 -0
  146. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  147. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  148. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  149. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  150. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  151. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  152. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  153. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +13 -8
  154. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +13 -8
  155. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  156. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  157. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  158. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  159. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  160. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  161. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  162. package/docs/interfaces/Point.html +8 -8
  163. package/docs/interfaces/Room.html +9 -9
  164. package/docs/interfaces/RoomInfo.html +7 -7
  165. package/docs/interfaces/RoomLabel.html +14 -14
  166. package/docs/interfaces/RoomRules.html +13 -8
  167. package/docs/interfaces/Rooms.html +13 -8
  168. package/docs/interfaces/Scissor.html +9 -9
  169. package/docs/interfaces/State.html +8 -8
  170. package/docs/interfaces/TagCache.html +10 -10
  171. package/docs/interfaces/TagConfig.html +10 -10
  172. package/docs/interfaces/TagIconUrl.html +9 -9
  173. package/docs/interfaces/Tags.html +9 -9
  174. package/docs/interfaces/TemporaryState.html +6 -6
  175. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  176. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  177. package/docs/modules/Util.html +5 -5
  178. package/docs/modules.html +20 -10
  179. package/docs/types/ArrayPosition.html +13 -8
  180. package/docs/types/AudioAppearance.html +13 -8
  181. package/docs/types/AudioTagTypeConfigKey.html +13 -8
  182. package/docs/types/CSS3DRenderExportType.html +13 -8
  183. package/docs/types/CSS3DRenderPluginExportType.html +13 -8
  184. package/docs/types/CSS3DRenderPluginParameterType.html +13 -8
  185. package/docs/types/Color.html +13 -8
  186. package/docs/types/ContentTypeConfigKey.html +13 -8
  187. package/docs/types/ContentTypeConfigKeySplit.html +13 -8
  188. package/docs/types/ContentTypeMap.html +13 -8
  189. package/docs/types/Create3DDomContainerReturnType.html +13 -8
  190. package/docs/types/Create3DElementReturnType.html +13 -8
  191. package/docs/types/CruisePluginExportType.html +13 -8
  192. package/docs/types/Direction-1.html +13 -8
  193. package/docs/types/Direction4.html +13 -8
  194. package/docs/types/FloorplanRuleLabels.html +13 -8
  195. package/docs/types/FloorplanServerRuleLabels.html +13 -8
  196. package/docs/types/GuideLinePluginExportType.html +13 -8
  197. package/docs/types/HelperEventMap.html +13 -8
  198. package/docs/types/LoadTagConfig.html +13 -8
  199. package/docs/types/MapviewFloorplanPluginParameterType.html +13 -8
  200. package/docs/types/MapviewFloorplanPluginReturnType.html +13 -8
  201. package/docs/types/MediaData.html +13 -8
  202. package/docs/types/MediaStore.html +13 -8
  203. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +13 -8
  204. package/docs/types/ModelFloorplanPluginParameterType.html +13 -8
  205. package/docs/types/ModelFloorplanPluginReturnType.html +13 -8
  206. package/docs/types/ModelRoomLabelPluginParameters.html +13 -8
  207. package/docs/types/ModelRoomLabelPluginReturnType.html +13 -8
  208. package/docs/types/MoveArgs.html +13 -8
  209. package/docs/types/MoveOpts.html +13 -8
  210. package/docs/types/Object3DHelperEventMap.html +13 -8
  211. package/docs/types/ObjectFit.html +13 -8
  212. package/docs/types/PaintBrushEventMap.html +13 -8
  213. package/docs/types/PanoCompassPluginData.html +13 -8
  214. package/docs/types/PanoCompassPluginExportType.html +13 -8
  215. package/docs/types/PanoCompassPluginParameterType.html +13 -8
  216. package/docs/types/PanoFloorplanRadarPluginParameterType.html +13 -8
  217. package/docs/types/PanoFloorplanRadarPluginReturnType.html +13 -8
  218. package/docs/types/PanoIndex.html +13 -8
  219. package/docs/types/PanoMeasurePluginEvent.html +13 -8
  220. package/docs/types/PanoMeasureReturnType.html +13 -8
  221. package/docs/types/PanoSpatialTagPluginId.html +13 -8
  222. package/docs/types/PanoTagPluginExportInterface.html +13 -8
  223. package/docs/types/PanoTagPluginParamsInterface.html +13 -8
  224. package/docs/types/PlaneTag.html +13 -8
  225. package/docs/types/PlaneTagElement.html +13 -8
  226. package/docs/types/Point2DElement.html +13 -8
  227. package/docs/types/Point2DTag.html +13 -8
  228. package/docs/types/Point3DElement.html +13 -8
  229. package/docs/types/Point3DTag.html +13 -8
  230. package/docs/types/PointTag.html +13 -8
  231. package/docs/types/PointTagElement.html +13 -8
  232. package/docs/types/Position.html +13 -8
  233. package/docs/types/RotateArgs.html +13 -8
  234. package/docs/types/RotateOpts.html +13 -8
  235. package/docs/types/RuleLabelsKey.html +13 -8
  236. package/docs/types/RuleLabelsValue.html +13 -8
  237. package/docs/types/StickType.html +13 -8
  238. package/docs/types/Tag.html +13 -8
  239. package/docs/types/Tag2D.html +13 -8
  240. package/docs/types/Tag3D.html +13 -8
  241. package/docs/types/TagContentType.html +13 -8
  242. package/docs/types/TagDimensionType.html +13 -8
  243. package/docs/types/TagElement.html +13 -8
  244. package/docs/types/TagEvents.html +13 -8
  245. package/docs/types/TagHooks.html +13 -8
  246. package/docs/types/TagIconSize.html +13 -8
  247. package/docs/types/TagId.html +13 -8
  248. package/docs/types/TagPointType.html +13 -8
  249. package/docs/types/TopviewFloorplanPluginParameterType.html +13 -8
  250. package/docs/types/TopviewFloorplanPluginReturnType.html +13 -8
  251. package/docs/types/WorkCode.html +13 -8
  252. package/docs/variables/FLOOR_TYPE_MAP.html +13 -8
  253. package/docs/variables/PLUGIN.html +13 -8
  254. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +13 -8
  255. package/docs/variables/ROOM_TYPE_MAP.html +13 -8
  256. package/docs/variables/VERSION.html +13 -8
  257. package/docs/variables/itemLabelPluginServerParams.html +13 -8
  258. package/docs/variables/modelItemLabelPluginServerParams.html +13 -8
  259. package/docs/variables/modelRoomLabelPluginServerParams.html +13 -8
  260. package/libs/PanoCompassPlugin/Controller.js +3 -8
  261. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  262. package/libs/PanoMeasurePlugin/Controller/BaseController.js +17 -18
  263. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  264. package/libs/PanoMeasurePlugin/Controller/EditController.js +59 -61
  265. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  266. package/libs/PanoMeasurePlugin/Controller/MixedController.js +54 -46
  267. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  268. package/libs/PanoMeasurePlugin/Controller/ViewController.js +47 -80
  269. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  270. package/libs/PanoMeasurePlugin/Controller/WatchController.js +48 -54
  271. package/libs/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  272. package/libs/PanoMeasurePlugin/Controller/index.js +126 -102
  273. package/libs/PanoMeasurePlugin/Model/index.d.ts +17 -17
  274. package/libs/PanoMeasurePlugin/Model/index.js +49 -72
  275. package/libs/PanoMeasurePlugin/Model/line.d.ts +6 -4
  276. package/libs/PanoMeasurePlugin/Model/line.js +28 -25
  277. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -4
  278. package/libs/PanoMeasurePlugin/Model/point.js +6 -6
  279. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  280. package/libs/PanoMeasurePlugin/Model/polyline.js +97 -37
  281. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +1 -1
  282. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  283. package/libs/PanoMeasurePlugin/Modules/GuideController.js +16 -11
  284. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  285. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +113 -62
  286. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +1 -1
  287. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +5 -4
  288. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  289. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +21 -21
  290. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  291. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +15 -14
  292. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  293. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +5 -4
  294. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +5 -5
  295. package/libs/PanoMeasurePlugin/index.d.ts +6 -2
  296. package/libs/PanoMeasurePlugin/index.js +28 -24
  297. package/libs/PanoMeasurePlugin/typings/data.d.ts +6 -16
  298. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  299. package/libs/PanoMeasurePlugin/typings/event.type.js +4 -1
  300. package/libs/PanoMeasurePlugin/typings/index.d.ts +4 -2
  301. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  302. package/libs/PanoMeasurePlugin/utils/distanceDom.js +65 -41
  303. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +83 -55
  304. package/libs/index.js +108 -104
  305. package/package.json +1 -1
@@ -1,40 +1,47 @@
1
1
  import t from "./Controller/index.js";
2
- import { default as pr } from "./Modules/Magnifier.js";
2
+ import { default as ro } from "./Modules/Magnifier.js";
3
+ import { Model as io } from "./Model/index.js";
4
+ import { default as po } from "./Model/point.js";
5
+ import { default as ao } from "./Model/line.js";
6
+ import { Polyline as uo } from "./Model/polyline.js";
3
7
  import "./Modules/FiveHelper.js";
4
8
  import "three";
5
9
  import "./Controller/EditController.js";
6
10
  import "hammerjs";
7
- import "./Model/index.js";
8
- import "./Model/line.js";
11
+ import "../shared-utils/throttle.js";
12
+ import "./Controller/BaseController.js";
13
+ import "./utils/ironbox.js";
9
14
  import "../shared-utils/uuid.js";
10
- import "./Model/polyline.js";
15
+ import "@realsee/five";
11
16
  import "./utils/line.js";
12
17
  import "@realsee/five/line";
13
18
  import "./utils/constants.js";
14
- import "@realsee/five";
15
19
  import "./utils/distanceDom.js";
16
20
  import "./utils/isNDCPointInScreen.js";
17
- import "./Model/point.js";
18
21
  import "../shared-utils/removeArrayItem.js";
19
- import "../shared-utils/throttle.js";
20
- import "./Controller/BaseController.js";
21
- import "./utils/ironbox.js";
22
22
  import "./utils/getIntersectionFromEvent.js";
23
23
  import "./utils/getPointFromHammerEvent.js";
24
24
  import "./Controller/ViewController.js";
25
- import "./utils/math.js";
26
- import "./utils/findAssociatedLines.js";
27
25
  import "./Controller/WatchController.js";
28
26
  import "./Modules/DeleteDom/index.js";
29
27
  import "./Modules/DeleteDom/_Assets/delete.svg.js";
30
28
  import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
31
29
  import "./Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
30
+ import "./utils/math.js";
32
31
  import "./utils/findClosestPoint.js";
33
32
  import "./utils/ndc2Screen.js";
33
+ import "./utils/findAssociatedLines.js";
34
34
  import "./Controller/MixedController.js";
35
+ import "./Modules/rangePiece/index.js";
36
+ import "@tweenjs/tween.js";
37
+ import "./Modules/rangePiece/html.js";
38
+ import "../shared-utils/animationFrame/index.js";
39
+ import "../shared-utils/animationFrame/BetterTween.js";
40
+ import "../shared-utils/noop.js";
41
+ import "./utils/calculateThreeMouse.js";
42
+ import "./utils/mouseGroup.js";
35
43
  import "../shared-utils/filter.js";
36
44
  import "../shared-utils/tap.js";
37
- import "./utils/mouseGroup.js";
38
45
  import "./Modules/UIController/index.js";
39
46
  import "./Modules/UIController/HTML.js";
40
47
  import "./Modules/UIController/mobileHTML.js";
@@ -44,18 +51,15 @@ import "./Modules/UIController/mobileMainBtnController.js";
44
51
  import "./Modules/UIController/Revoke/index.js";
45
52
  import "./Modules/GuideController.js";
46
53
  import "./Controller/ShortcutKeyController.js";
47
- import "./Modules/rangePiece/index.js";
48
- import "@tweenjs/tween.js";
49
- import "./Modules/rangePiece/html.js";
50
- import "../shared-utils/animationFrame/index.js";
51
- import "../shared-utils/animationFrame/BetterTween.js";
52
- import "../shared-utils/noop.js";
53
- import "./utils/calculateThreeMouse.js";
54
- const tr = function(r, o) {
55
- return new t(r, o);
54
+ const _ = function(o, r) {
55
+ return new t(o, r);
56
56
  };
57
57
  export {
58
- pr as Magnifier,
59
- tr as PanoMeasurePlugin,
60
- tr as default
58
+ ro as Magnifier,
59
+ _ as PanoMeasurePlugin,
60
+ ao as PanoMeasurePluginLine,
61
+ io as PanoMeasurePluginModel,
62
+ po as PanoMeasurePluginPoint,
63
+ uo as PanoMeasurePluginPolyline,
64
+ _ as default
61
65
  };
@@ -1,29 +1,19 @@
1
- export interface LineCompletelyJson {
2
- id: string;
3
- points: PointJson[];
4
- }
5
- export interface PolylineCompletelyJson {
1
+ export interface PolylineJson {
6
2
  id: string;
7
- points: PointJson[];
8
- lines: LineCompletelyJson[];
3
+ lines: LineJson[];
4
+ /** 当前折线在哪个点位上可见,字段不存在时,不做限制 */
5
+ visiblePanoIndexes?: number[];
9
6
  }
10
7
  export interface LineJson {
11
8
  id: string;
12
- points: string[];
13
- }
14
- export interface PolylineJson {
15
- id: string;
16
- points: string[];
17
- lines: string[];
9
+ text?: string;
10
+ points: PointJson[];
18
11
  }
19
12
  export interface PointJson {
20
13
  id: string;
21
- lines: string[];
22
14
  position: number[];
23
15
  }
24
16
  export interface PluginData {
25
- lines: LineJson[];
26
- points: PointJson[];
27
17
  polylines: PolylineJson[];
28
18
  }
29
19
  /** 开放可配置参数 */
@@ -1,37 +1,41 @@
1
- import type { SubscribeEventMap } from '@realsee/five';
2
1
  import type { Vector3 } from 'three';
3
2
  import type { Mode } from '../Controller';
4
3
  import type { State } from '../Controller/MixedController';
4
+ import Line from '../Model/line';
5
5
  import type Point from '../Model/point';
6
- import type { LineCompletelyJson } from './data';
7
- interface ControllerEvent extends SubscribeEventMap {
6
+ import { Polyline } from '../Model/polyline';
7
+ declare type ControllerEvent = {
8
+ enable: (userAction: boolean) => void;
9
+ disable: (userAction: boolean) => void;
8
10
  /**
9
11
  * Mode 变更
10
12
  */
11
13
  modeChange: (mode: Mode) => void;
12
- }
13
- interface WatchEvent extends SubscribeEventMap {
14
- selectedChange: (lines: LineCompletelyJson[]) => void;
15
- }
16
- interface EditEvent {
14
+ };
15
+ declare type WatchEvent = {
16
+ selectedChange: (lines: Line[]) => void;
17
+ };
18
+ declare type EditEvent = {
17
19
  /**
18
20
  * 编辑线条变更
19
21
  */
20
- editedLineChange: (lines: LineCompletelyJson[]) => void;
22
+ editedPolylineChange: (polyline: Polyline) => void;
23
+ /** 编辑中的虚线变更 */
24
+ editedDashedLineChange: (line: Line | null) => void;
21
25
  anchorChange: (anchor: Vector3 | null) => void;
22
- }
23
- interface DragEvent extends SubscribeEventMap {
26
+ };
27
+ declare type DragEvent = {
24
28
  wantsDragLine: (event: {
25
29
  point: string;
26
30
  lines: string[];
27
31
  }) => boolean;
28
- }
32
+ };
29
33
  /** 移动端专用事件 */
30
- interface MobileEvent extends SubscribeEventMap {
34
+ declare type MobileEvent = {
31
35
  getStartPoint: (point: Point) => void;
32
36
  getEndPoint: (point: Point) => void;
33
37
  willChangeState: (state: State, newState: State) => void;
34
38
  nowPointChange: (point: Point) => void;
35
- }
39
+ };
36
40
  export declare type PanoMeasurePluginEvent = ControllerEvent & EditEvent & WatchEvent & DragEvent & MobileEvent;
37
41
  export {};
@@ -1 +1,4 @@
1
-
1
+ import "three";
2
+ import "@realsee/five";
3
+ import "@realsee/five/line";
4
+ import "../utils/constants.js";
@@ -1,8 +1,10 @@
1
1
  import type { UserDistanceItem } from '../utils/distanceDom';
2
2
  export interface Config {
3
- userDistanceItemCreator: undefined | (() => UserDistanceItem);
3
+ userDistanceItemCreator?: undefined | (() => UserDistanceItem);
4
4
  /** 展示 distance DOM 时,使用的转换函数
5
5
  * @param distance 单位是 m
6
6
  */
7
- getDistanceText: (distance: number) => string;
7
+ getDistanceText?: (distance: number) => string;
8
+ /** 默认的 distance DOM 文本 */
9
+ defaultText?: string | null;
8
10
  }
@@ -1,15 +1,15 @@
1
1
  import type Line from '../Model/line';
2
2
  import type { Five } from '@realsee/five';
3
- import type { LineCompletelyJson, PolylineCompletelyJson } from '../typings/data';
4
3
  import { Vector3 } from 'three';
4
+ import { Polyline } from '../Model/polyline';
5
5
  export declare type DistanceItem = ReturnType<typeof createDistanceItem>;
6
6
  export interface UserDistanceItem {
7
7
  element: Element;
8
8
  highlight: () => void;
9
9
  unHighlight: () => void;
10
10
  update: (params: {
11
- line: LineCompletelyJson;
12
- polyline: PolylineCompletelyJson;
11
+ line: Line;
12
+ polyline: Polyline;
13
13
  }) => void;
14
14
  }
15
15
  export interface CreateDistanceItemProps {
@@ -25,4 +25,6 @@ export declare function createDistanceItem(props: CreateDistanceItemProps): {
25
25
  remove: () => void;
26
26
  highlight: () => void;
27
27
  unHighlight: () => void;
28
+ getCurrentContent: () => string;
29
+ setItemSelectable: (value: boolean) => void;
28
30
  };
@@ -1,61 +1,85 @@
1
- import { Vector3 as A, Vector2 as E } from "three";
2
- import m from "./isNDCPointInScreen.js";
3
- function M() {
1
+ import { Vector3 as _, Vector2 as D } from "three";
2
+ import x from "./isNDCPointInScreen.js";
3
+ import "@realsee/five/line";
4
+ import "./constants.js";
5
+ import "@realsee/five";
6
+ function j() {
4
7
  const t = document.createElement("div");
5
- return t.setAttribute("style", "backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);"), t.style.padding = "3px 6px", t.style.lineHeight = "1", t.style.textAlign = "center", t.style.transform = "translate(-50%, -50%)", t.style.borderRadius = "100px", t.style.fontSize = "14px", t.style.color = "#fff", t.style.background = "rgba(195,195,195,0.70)", t.style.border = "0.5px solid rgba(255,255,255,0.6)", t.style.pointerEvents = "all", t.style.cursor = "pointer", t;
8
+ return t.setAttribute(
9
+ "style",
10
+ "backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);-webkit-tap-highlight-color: rgba(0,0,0,0);"
11
+ ), t.style.width = "max-content", t.style.padding = "3px 6px", t.style.lineHeight = "1", t.style.textAlign = "center", t.style.transform = "translate(-50%, -50%)", t.style.borderRadius = "100px", t.style.fontSize = "14px", t.style.color = "#fff", t.style.background = "rgba(195,195,195,0.70)", t.style.border = "0.5px solid rgba(255,255,255,0.6)", t.style.cursor = "pointer", t;
6
12
  }
7
- function z(t) {
13
+ function V(t) {
8
14
  const e = document.createElement("div");
9
- return e.id = "distance_" + t.id, e.classList.add("five-plugin-measure__distance"), e.style.opacity = "0", e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.transform = "translate3d(0, 0, 0)", e.style.transformOrigin = "left top", e;
15
+ return e.id = "distance_" + t.id, e.classList.add("five-plugin-measure__distance"), e.style.opacity = "0", e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = "0", e.style.height = "0", e.style.transform = "translate3d(0, 0, 0)", e.style.transformOrigin = "left top", e;
10
16
  }
11
17
  function J(t) {
12
- function e() {
13
- var s;
14
- (s = t.clickCallback) == null || s.call(t, g);
15
- }
18
+ let e = !0;
19
+ const { line: s } = t, C = s.id, r = j(), n = V(s), o = t.userDistanceItem, S = new _(0, 0, 0), E = {
20
+ lineID: C,
21
+ ndcPosition: S,
22
+ update: H,
23
+ appendTo: I,
24
+ remove: T,
25
+ highlight: w,
26
+ unHighlight: F,
27
+ getCurrentContent: P,
28
+ setItemSelectable: A
29
+ };
30
+ n.style.pointerEvents = e ? "all" : "none", o != null && o.element ? n.appendChild(o.element) : n.appendChild(r);
16
31
  function v() {
32
+ var i;
33
+ (i = t.clickCallback) == null || i.call(t, E);
34
+ }
35
+ function w() {
17
36
  if (o)
18
37
  return o.highlight();
19
- i.style.border = "0.5px solid #95AEFF", i.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
38
+ r.style.border = "0.5px solid #95AEFF", r.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
20
39
  }
21
- function k() {
40
+ function F() {
22
41
  if (o)
23
42
  return o.unHighlight();
24
- i.style.border = "0.5px solid rgba(255,255,255,0.6)", i.style.background = "rgba(195,195,195,0.70)";
43
+ r.style.border = "0.5px solid rgba(255,255,255,0.6)", r.style.background = "rgba(195,195,195,0.70)";
25
44
  }
26
- function D(s) {
27
- const a = s.getElement();
28
- if (!a)
45
+ function H(i) {
46
+ if (s.mesh.visible === !1) {
47
+ n.style.opacity = "0", n.style.pointerEvents = "none";
48
+ return;
49
+ }
50
+ const f = i.getElement();
51
+ if (!f)
29
52
  return;
30
- const d = a.clientWidth, u = a.clientHeight;
31
- if (r.points.length < 2)
53
+ const u = f.clientWidth, l = f.clientHeight, p = u / 2, a = l / 2;
54
+ if (s.points.length < 2)
32
55
  return;
33
- const [h, b] = r.points, l = h.position.clone().project(s.camera), c = b.position.clone().project(s.camera), f = l.clone().lerp(c, 0.5), y = new E(l.x * d, l.y * u), p = new E(c.x * d, c.y * u);
34
- if ((() => !(Math.abs(l.z) > 1 || Math.abs(c.z) > 1 || !m(l) && !m(c) || !m(f) || y.distanceTo(p) < 20))() === !1) {
56
+ const [g, d] = s.points, c = g.position.clone().project(i.camera), y = d.position.clone().project(i.camera), m = c.clone().lerp(y, 0.5), h = new D(c.x * p, c.y * a), b = new D(y.x * p, y.y * a), k = h.distanceTo(b);
57
+ if ((() => !(Math.abs(c.z) > 1 || Math.abs(y.z) > 1 || !x(c) && !x(y) || !x(m) || k === 0))() === !1) {
35
58
  n.style.opacity = "0", n.style.pointerEvents = "none";
36
59
  return;
37
60
  }
38
- const H = (f.x + 1) / 2 * d, I = -(f.y - 1) / 2 * u, S = -(Math.atan((y.y - p.y) / (y.x - p.x)) * 180) / Math.PI;
39
- n.style.transform = `translate(${H}px, ${I}px) rotate(${S}deg)`, n.style.opacity = "1", n.style.pointerEvents = "all", o && o.update({ line: r.toCompletelyJson(), polyline: r.getPolyline().toCompletelyJson() });
40
- const w = h.position.clone().distanceTo(b.position), x = t.line.model.params.getDistanceText(w);
41
- i.innerText !== x && (i.innerText = x);
42
- }
43
- function P(s) {
44
- s.appendChild(n), n.addEventListener("click", e);
45
- }
46
- function C() {
47
- i.removeEventListener("click", e), n.remove();
48
- }
49
- const { line: r } = t, F = r.id, i = M(), n = z(r), o = t.userDistanceItem, T = new A(0, 0, 0), g = {
50
- lineID: F,
51
- ndcPosition: T,
52
- update: D,
53
- appendTo: P,
54
- remove: C,
55
- highlight: v,
56
- unHighlight: k
57
- };
58
- return o != null && o.element ? n.appendChild(o.element) : n.appendChild(i), g;
61
+ const L = (m.x + 1) / 2 * u, M = -(m.y - 1) / 2 * l, W = -(Math.atan((h.y - b.y) / (h.x - b.x)) * 180) / Math.PI, $ = n.parentElement && r.clientWidth > k ? -20 : 0;
62
+ n.style.transform = `translate(${L}px, ${M}px) rotate(${W}deg) translateY(${$}px)`, n.style.opacity = "1", n.style.pointerEvents = e ? "all" : "none", o && o.update({ line: s, polyline: s.getPolyline() });
63
+ const z = P();
64
+ r.innerText = z;
65
+ }
66
+ function I(i) {
67
+ i.appendChild(n), n.addEventListener("click", v);
68
+ }
69
+ function T() {
70
+ r.removeEventListener("click", v), n.remove();
71
+ }
72
+ function P() {
73
+ var g, d, c;
74
+ if (s.points.length < 2)
75
+ return "";
76
+ const [i, f] = s.points, u = i.position.clone().distanceTo(f.position), l = (g = t.line.text) != null ? g : t.line.model.config.defaultText, p = (c = (d = t.line.model.config) == null ? void 0 : d.getDistanceText) == null ? void 0 : c.call(d, u), a = l != null ? l : p;
77
+ return a != null ? a : u.toFixed(2) + "m";
78
+ }
79
+ function A(i) {
80
+ e = i;
81
+ }
82
+ return E;
59
83
  }
60
84
  export {
61
85
  J as createDistanceItem
@@ -1,102 +1,130 @@
1
- import { SvelteComponent as j, init as A, safe_not_equal as B, append_styles as E, empty as F, insert as Y, transition_in as u, transition_out as k, check_outros as G, detach as z, create_component as h, space as D, element as _, attr as v, set_style as M, toggle_class as x, mount_component as b, append as g, destroy_component as y, group_outros as H } from "../../../../vendor/svelte/internal/index.js";
2
- import I from "../../Common/Line/Straight.js";
3
- import N from "../../Common/Text/MText.js";
1
+ import { SvelteComponent as A, init as B, safe_not_equal as E, append_styles as F, empty as G, insert as x, transition_in as m, transition_out as c, check_outros as N, detach as w, create_component as h, space as S, element as _, attr as v, set_style as q, toggle_class as k, mount_component as b, append as g, group_outros as P, destroy_component as Y } from "../../../../vendor/svelte/internal/index.js";
2
+ import H from "../../Common/Line/Straight.js";
3
+ import j from "../../Common/Text/MText.js";
4
4
  import "../../../../vendor/svelte/transition/index.js";
5
5
  import "../../../../vendor/svelte/easing/index.js";
6
6
  import "../../../../shared-utils/uuid.js";
7
7
  import "../../../utils/px2rem.js";
8
- function J(n) {
9
- E(n, "svelte-1oxrkr1", ".plane__container.svelte-1oxrkr1.svelte-1oxrkr1{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-1oxrkr1.svelte-1oxrkr1{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.3);border-radius:0.25rem}.unfolded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{opacity:0}.plane.svelte-1oxrkr1.svelte-1oxrkr1{max-width:11.75rem}.title.svelte-1oxrkr1.svelte-1oxrkr1{white-space:pre-wrap;font-weight:bold;font-size:0.75rem;line-height:1.125rem}.description.svelte-1oxrkr1.svelte-1oxrkr1{margin-top:0.25rem;white-space:pre-wrap;font-size:0.6875rem;line-height:1rem}");
8
+ function I(r) {
9
+ F(r, "svelte-1oxrkr1", ".plane__container.svelte-1oxrkr1.svelte-1oxrkr1{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-1oxrkr1.svelte-1oxrkr1{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.3);border-radius:0.25rem}.unfolded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-1oxrkr1 .plane__wrapper.svelte-1oxrkr1{opacity:0}.plane.svelte-1oxrkr1.svelte-1oxrkr1{max-width:11.75rem}.title.svelte-1oxrkr1.svelte-1oxrkr1{white-space:pre-wrap;font-weight:bold;font-size:0.75rem;line-height:1.125rem}.description.svelte-1oxrkr1.svelte-1oxrkr1{margin-top:0.25rem;white-space:pre-wrap;font-size:0.6875rem;line-height:1rem}");
10
10
  }
11
- function P(n) {
12
- var T, C;
13
- let o, a, e, r, i, d, l, c, p, f, m;
14
- return o = new I({
11
+ function D(r) {
12
+ var y, z;
13
+ let o, l, e, i, t, d, s, u, p;
14
+ o = new H({
15
15
  props: {
16
- unfolded: n[1],
16
+ unfolded: r[1],
17
17
  direction: "vertical",
18
18
  length: 15,
19
19
  duration: 500,
20
20
  inDelay: 200,
21
21
  useLinearColor: !0
22
22
  }
23
- }), l = new N({
23
+ }), s = new j({
24
24
  props: {
25
- text: n[2],
26
- edit: (T = n[0].data.edit) == null ? void 0 : T.title
25
+ text: r[2],
26
+ edit: (y = r[0].data.edit) == null ? void 0 : y.title
27
27
  }
28
- }), f = new N({
28
+ });
29
+ let a = (r[0].data.description || ((z = r[0].data.edit) == null ? void 0 : z.description)) && M(r);
30
+ return {
31
+ c() {
32
+ h(o.$$.fragment), l = S(), e = _("div"), i = _("div"), t = _("div"), d = _("div"), h(s.$$.fragment), u = S(), a && a.c(), v(d, "class", "title svelte-1oxrkr1"), v(t, "class", "plane svelte-1oxrkr1"), v(i, "class", "plane__wrapper svelte-1oxrkr1"), q(i, "transform", r[1] ? "translateY(-15px)" : "translateY(0)"), v(e, "class", "plane__container svelte-1oxrkr1"), k(e, "unfolded", r[1]), k(e, "folded", r[3]);
33
+ },
34
+ m(n, f) {
35
+ b(o, n, f), x(n, l, f), x(n, e, f), g(e, i), g(i, t), g(t, d), b(s, d, null), g(t, u), a && a.m(t, null), p = !0;
36
+ },
37
+ p(n, f) {
38
+ var C, L;
39
+ const T = {};
40
+ f & 2 && (T.unfolded = n[1]), o.$set(T);
41
+ const $ = {};
42
+ f & 4 && ($.text = n[2]), f & 1 && ($.edit = (C = n[0].data.edit) == null ? void 0 : C.title), s.$set($), n[0].data.description || ((L = n[0].data.edit) == null ? void 0 : L.description) ? a ? (a.p(n, f), f & 1 && m(a, 1)) : (a = M(n), a.c(), m(a, 1), a.m(t, null)) : a && (P(), c(a, 1, 1, () => {
43
+ a = null;
44
+ }), N()), f & 2 && q(i, "transform", n[1] ? "translateY(-15px)" : "translateY(0)"), (!p || f & 2) && k(e, "unfolded", n[1]), (!p || f & 8) && k(e, "folded", n[3]);
45
+ },
46
+ i(n) {
47
+ p || (m(o.$$.fragment, n), m(s.$$.fragment, n), m(a), p = !0);
48
+ },
49
+ o(n) {
50
+ c(o.$$.fragment, n), c(s.$$.fragment, n), c(a), p = !1;
51
+ },
52
+ d(n) {
53
+ Y(o, n), n && w(l), n && w(e), Y(s), a && a.d();
54
+ }
55
+ };
56
+ }
57
+ function M(r) {
58
+ var i;
59
+ let o, l, e;
60
+ return l = new j({
29
61
  props: {
30
- text: n[0].data.description,
31
- edit: (C = n[0].data.edit) == null ? void 0 : C.description,
62
+ text: r[0].data.description,
63
+ edit: (i = r[0].data.edit) == null ? void 0 : i.description,
32
64
  maxLine: 3
33
65
  }
34
66
  }), {
35
67
  c() {
36
- h(o.$$.fragment), a = D(), e = _("div"), r = _("div"), i = _("div"), d = _("div"), h(l.$$.fragment), c = D(), p = _("div"), h(f.$$.fragment), v(d, "class", "title svelte-1oxrkr1"), v(p, "class", "description svelte-1oxrkr1"), v(i, "class", "plane svelte-1oxrkr1"), v(r, "class", "plane__wrapper svelte-1oxrkr1"), M(r, "transform", n[1] ? "translateY(-15px)" : "translateY(0)"), v(e, "class", "plane__container svelte-1oxrkr1"), x(e, "unfolded", n[1]), x(e, "folded", n[3]);
68
+ o = _("div"), h(l.$$.fragment), v(o, "class", "description svelte-1oxrkr1");
37
69
  },
38
- m(t, s) {
39
- b(o, t, s), Y(t, a, s), Y(t, e, s), g(e, r), g(r, i), g(i, d), b(l, d, null), g(i, c), g(i, p), b(f, p, null), m = !0;
70
+ m(t, d) {
71
+ x(t, o, d), b(l, o, null), e = !0;
40
72
  },
41
- p(t, s) {
42
- var S, q;
43
- const L = {};
44
- s & 2 && (L.unfolded = t[1]), o.$set(L);
45
- const w = {};
46
- s & 4 && (w.text = t[2]), s & 1 && (w.edit = (S = t[0].data.edit) == null ? void 0 : S.title), l.$set(w);
47
- const $ = {};
48
- s & 1 && ($.text = t[0].data.description), s & 1 && ($.edit = (q = t[0].data.edit) == null ? void 0 : q.description), f.$set($), s & 2 && M(r, "transform", t[1] ? "translateY(-15px)" : "translateY(0)"), (!m || s & 2) && x(e, "unfolded", t[1]), (!m || s & 8) && x(e, "folded", t[3]);
73
+ p(t, d) {
74
+ var u;
75
+ const s = {};
76
+ d & 1 && (s.text = t[0].data.description), d & 1 && (s.edit = (u = t[0].data.edit) == null ? void 0 : u.description), l.$set(s);
49
77
  },
50
78
  i(t) {
51
- m || (u(o.$$.fragment, t), u(l.$$.fragment, t), u(f.$$.fragment, t), m = !0);
79
+ e || (m(l.$$.fragment, t), e = !0);
52
80
  },
53
81
  o(t) {
54
- k(o.$$.fragment, t), k(l.$$.fragment, t), k(f.$$.fragment, t), m = !1;
82
+ c(l.$$.fragment, t), e = !1;
55
83
  },
56
84
  d(t) {
57
- y(o, t), t && z(a), t && z(e), y(l), y(f);
85
+ t && w(o), Y(l);
58
86
  }
59
87
  };
60
88
  }
61
- function K(n) {
62
- let o, a, e = n[0].state && P(n);
89
+ function J(r) {
90
+ let o, l, e = r[0].state && D(r);
63
91
  return {
64
92
  c() {
65
- e && e.c(), o = F();
93
+ e && e.c(), o = G();
66
94
  },
67
- m(r, i) {
68
- e && e.m(r, i), Y(r, o, i), a = !0;
95
+ m(i, t) {
96
+ e && e.m(i, t), x(i, o, t), l = !0;
69
97
  },
70
- p(r, [i]) {
71
- r[0].state ? e ? (e.p(r, i), i & 1 && u(e, 1)) : (e = P(r), e.c(), u(e, 1), e.m(o.parentNode, o)) : e && (H(), k(e, 1, 1, () => {
98
+ p(i, [t]) {
99
+ i[0].state ? e ? (e.p(i, t), t & 1 && m(e, 1)) : (e = D(i), e.c(), m(e, 1), e.m(o.parentNode, o)) : e && (P(), c(e, 1, 1, () => {
72
100
  e = null;
73
- }), G());
101
+ }), N());
74
102
  },
75
- i(r) {
76
- a || (u(e), a = !0);
103
+ i(i) {
104
+ l || (m(e), l = !0);
77
105
  },
78
- o(r) {
79
- k(e), a = !1;
106
+ o(i) {
107
+ c(e), l = !1;
80
108
  },
81
- d(r) {
82
- e && e.d(r), r && z(o);
109
+ d(i) {
110
+ e && e.d(i), i && w(o);
83
111
  }
84
112
  };
85
113
  }
86
- function O(n, o, a) {
87
- let e, r, i, { tag: d } = o;
88
- return n.$$set = (l) => {
89
- "tag" in l && a(0, d = l.tag);
90
- }, n.$$.update = () => {
91
- var l, c, p;
92
- n.$$.dirty & 1 && a(1, e = !!((l = d.state) != null && l.unfolded)), n.$$.dirty & 2 && a(3, r = !e), n.$$.dirty & 1 && a(2, i = (p = (c = d.data.title) != null ? c : d.data.text) != null ? p : "");
93
- }, [d, e, i, r];
114
+ function K(r, o, l) {
115
+ let e, i, t, { tag: d } = o;
116
+ return r.$$set = (s) => {
117
+ "tag" in s && l(0, d = s.tag);
118
+ }, r.$$.update = () => {
119
+ var s, u, p;
120
+ r.$$.dirty & 1 && l(1, e = !!((s = d.state) != null && s.unfolded)), r.$$.dirty & 2 && l(3, i = !e), r.$$.dirty & 1 && l(2, t = (p = (u = d.data.title) != null ? u : d.data.text) != null ? p : "");
121
+ }, [d, e, t, i];
94
122
  }
95
- class ee extends j {
123
+ class Z extends A {
96
124
  constructor(o) {
97
- super(), A(this, o, O, K, B, { tag: 0 }, J);
125
+ super(), B(this, o, K, J, E, { tag: 0 }, I);
98
126
  }
99
127
  }
100
128
  export {
101
- ee as default
129
+ Z as default
102
130
  };