@realsee/dnalogel 2.22.0 → 2.23.1-dev.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 (455) hide show
  1. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
  2. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  3. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
  6. package/dist/index.cjs.js +62 -66
  7. package/dist/index.js +5869 -5598
  8. package/dist/index.umd.js +55 -59
  9. package/docs/classes/CSS3DRender.html +30 -30
  10. package/docs/classes/CruisePluginController.html +25 -25
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  13. package/docs/classes/Magnifier.html +19 -19
  14. package/docs/classes/ModelRoomLabelController.html +10 -10
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +14 -14
  17. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  18. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  19. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +48 -48
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.Interval.html +11 -11
  24. package/docs/classes/Util.Magnifier.html +19 -19
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +19 -19
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/PointType.html +6 -6
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  40. package/docs/functions/CameraMovementPlugin.html +3 -3
  41. package/docs/functions/CruisePlugin.html +3 -3
  42. package/docs/functions/GuideLinePlugin.html +4 -4
  43. package/docs/functions/ItemLabelPlugin.html +3 -3
  44. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  47. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  48. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  49. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  50. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  51. package/docs/functions/ModelViewPlugin.html +3 -3
  52. package/docs/functions/Object3DHelperPlugin.html +3 -3
  53. package/docs/functions/PanoCompassPlugin.html +3 -3
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  55. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  57. package/docs/functions/PanoMeasurePlugin.html +3 -3
  58. package/docs/functions/PanoRulerPlugin.html +3 -3
  59. package/docs/functions/PanoRulerProPlugin.html +3 -3
  60. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  61. package/docs/functions/PanoTagPlugin.html +3 -3
  62. package/docs/functions/PanoVideoPlugin.html +3 -3
  63. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  64. package/docs/functions/Util.absoluteUrl.html +4 -4
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +14 -14
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -8
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +12 -12
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +8 -8
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/interfaces/Util.PointIntersection.html +7 -7
  208. package/docs/modules/CruisePluginTypes.html +4 -4
  209. package/docs/modules/GuideLineItem.html +4 -4
  210. package/docs/modules/GuideLineModeItem.html +4 -4
  211. package/docs/modules/GuideLinePluginType.html +4 -4
  212. package/docs/modules/PanoVideoPluginType.html +4 -4
  213. package/docs/modules/Util.html +4 -4
  214. package/docs/modules.html +4 -4
  215. package/docs/types/ArrayPosition.html +4 -4
  216. package/docs/types/AudioAppearance.html +4 -4
  217. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  218. package/docs/types/CSS3DRenderExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  220. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  221. package/docs/types/ClassFunctionParameters.html +4 -4
  222. package/docs/types/Color.html +4 -4
  223. package/docs/types/ContentTypeConfigKey.html +4 -4
  224. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  225. package/docs/types/ContentTypeMap.html +4 -4
  226. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  227. package/docs/types/Create3DElementReturnType.html +4 -4
  228. package/docs/types/CruisePluginExportType.html +4 -4
  229. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  230. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  231. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  232. package/docs/types/DeprecatedTagProperty.html +4 -4
  233. package/docs/types/Direction-1.html +4 -4
  234. package/docs/types/Direction4.html +4 -4
  235. package/docs/types/ElementRenderer.html +4 -4
  236. package/docs/types/FloorplanRuleLabels.html +4 -4
  237. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  238. package/docs/types/GuideLinePluginExportType.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  242. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  243. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  244. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  245. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  246. package/docs/types/HelperEventMap.html +4 -4
  247. package/docs/types/LoadTagConfig.html +4 -4
  248. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/MediaData.html +4 -4
  251. package/docs/types/MediaStore.html +4 -4
  252. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  253. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  254. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  255. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  256. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  257. package/docs/types/MoveArgs.html +4 -4
  258. package/docs/types/MoveOpts.html +4 -4
  259. package/docs/types/Object3DHelperEventMap.html +4 -4
  260. package/docs/types/ObjectFit.html +4 -4
  261. package/docs/types/PaintBrushEventMap.html +4 -4
  262. package/docs/types/PanoCompassPluginData.html +4 -4
  263. package/docs/types/PanoCompassPluginExportType.html +4 -4
  264. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  265. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  266. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  267. package/docs/types/PanoIndex.html +4 -4
  268. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  269. package/docs/types/PanoMeasureReturnType.html +4 -4
  270. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  271. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  272. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  273. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  274. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  275. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  276. package/docs/types/PlaneTag.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagInstance.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagId.html +4 -4
  297. package/docs/types/TagInstance.html +4 -4
  298. package/docs/types/TagPointType.html +4 -4
  299. package/docs/types/TagRendererMap.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  302. package/docs/types/WorkCode.html +4 -4
  303. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  304. package/docs/variables/PLUGIN.html +4 -4
  305. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  306. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  307. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  310. package/libs/CruisePlugin/Controller.js +103 -90
  311. package/libs/CruisePlugin/index.js +22 -9
  312. package/libs/GuideLinePlugin/Components/Tag.js +58 -48
  313. package/libs/GuideLinePlugin/Controller.js +38 -25
  314. package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
  315. package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
  316. package/libs/GuideLinePlugin/index.js +24 -11
  317. package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
  318. package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
  319. package/libs/ItemLabelPlugin/Plugin.js +37 -26
  320. package/libs/ItemLabelPlugin/index.js +16 -5
  321. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
  322. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
  323. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
  324. package/libs/ModelItemLabelPlugin/index.js +16 -5
  325. package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
  326. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
  327. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
  328. package/libs/ModelRoomLabelPlugin/index.js +17 -5
  329. package/libs/PanoDoorLabelPlugin/Controller.js +65 -55
  330. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
  331. package/libs/PanoDoorLabelPlugin/index.js +14 -4
  332. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
  333. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
  334. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
  335. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
  336. package/libs/PanoMeasurePlugin/Components/Controller0.js +168 -112
  337. package/libs/PanoMeasurePlugin/Components/Controller1.js +244 -181
  338. package/libs/PanoMeasurePlugin/Components/Tip.js +83 -72
  339. package/libs/PanoMeasurePlugin/Controller/index.js +87 -71
  340. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
  341. package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -15
  342. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  343. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +36 -25
  344. package/libs/PanoMeasurePlugin/index.js +27 -16
  345. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  346. package/libs/PanoRulerProPlugin/RulerItem.js +91 -78
  347. package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
  348. package/libs/PanoRulerProPlugin/index.js +15 -4
  349. package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
  350. package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
  351. package/libs/PanoSpatialTagPlugin/Plugin.js +116 -105
  352. package/libs/PanoSpatialTagPlugin/index.js +13 -2
  353. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  354. package/libs/PanoSpatialTagPlugin/store.js +2 -2
  355. package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
  356. package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
  357. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +139 -128
  358. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +53 -43
  359. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
  360. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
  361. package/libs/PanoTagPlugin/Components/Common/Media.js +182 -168
  362. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
  363. package/libs/PanoTagPlugin/Components/Common/Shadow.js +40 -30
  364. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
  365. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
  366. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +88 -75
  367. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +103 -95
  368. package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
  369. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +106 -95
  370. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
  371. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
  372. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
  373. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
  374. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
  375. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +118 -103
  376. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
  377. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +131 -108
  378. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +101 -90
  379. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
  380. package/libs/PanoTagPlugin/Components/Tag/index.js +151 -138
  381. package/libs/PanoTagPlugin/Components/TagContainer.js +72 -57
  382. package/libs/PanoTagPlugin/Components/TagItem.js +60 -47
  383. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
  384. package/libs/PanoTagPlugin/controller/TagRender.js +19 -6
  385. package/libs/PanoTagPlugin/controller/TagUtil.js +2 -2
  386. package/libs/PanoTagPlugin/controller/index.js +95 -82
  387. package/libs/PanoTagPlugin/index.js +26 -13
  388. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  389. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
  390. package/libs/base/BasePlugin.js +1 -1
  391. package/libs/floorplan/Components/BaseImage.js +43 -39
  392. package/libs/floorplan/Components/Camera.js +16 -13
  393. package/libs/floorplan/Components/Compass.js +27 -24
  394. package/libs/floorplan/Components/CurrentFloor.js +25 -20
  395. package/libs/floorplan/Components/Main.js +58 -49
  396. package/libs/floorplan/Components/Normalmage.js +25 -22
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +50 -47
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +69 -61
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
  407. package/libs/floorplan/Components/SvgImage.js +30 -27
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +41 -29
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +35 -23
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +52 -42
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +71 -59
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +66 -53
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +69 -57
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +67 -55
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +46 -34
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
  420. package/libs/floorplan/index.js +1 -0
  421. package/libs/index.js +126 -112
  422. package/libs/shared-utils/logger.js +1 -1
  423. package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
  424. package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
  425. package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
  426. package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
  427. package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
  428. package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
  429. package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
  430. package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
  431. package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
  432. package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
  433. package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
  434. package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
  435. package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
  436. package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
  437. package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
  438. package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
  439. package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
  440. package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
  441. package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
  442. package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
  443. package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
  444. package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
  445. package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
  446. package/libs/vendor/svelte/src/shared/version.js +4 -0
  447. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +27 -23
  448. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
  449. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
  450. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
  451. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
  452. package/package.json +1 -1
  453. package/libs/vendor/svelte/internal/index.js +0 -749
  454. /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
  455. /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
@@ -1,12 +1,23 @@
1
- import { SvelteComponent as Z, init as x, safe_not_equal as ee, append_styles as te, element as C, space as $, create_component as I, attr as _, toggle_class as R, insert as B, append as v, mount_component as K, transition_in as h, transition_out as k, check_outros as z, detach as D, destroy_component as q, onMount as oe, onDestroy as re, add_render_callback as O, create_bidirectional_transition as E, text as N, set_style as Q, listen as V, group_outros as A } from "../../vendor/svelte/internal/index.js";
2
- import ie from "./Common/Switcher1.js";
3
- import le from "./Common/CircleButton.js";
4
- import F from "../Controller/EditController.js";
5
- import ne from "./Common/Exit.js";
6
- import { fade as S } from "../../vendor/svelte/transition/index.js";
7
- import { IconUndo as se, IconOk as ae } from "./Common/icons/index.js";
1
+ import { safe_not_equal as ee } from "../../vendor/svelte/src/runtime/internal/utils.js";
2
+ import { append_styles as te, element as j, space as T, attr as w, toggle_class as D, insert as I, append as g, detach as K, text as V, set_style as W, listen as X, set_data as Y } from "../../vendor/svelte/src/runtime/internal/dom.js";
3
+ import { transition_in as k, transition_out as _, check_outros as R, create_bidirectional_transition as E, group_outros as B } from "../../vendor/svelte/src/runtime/internal/transitions.js";
4
+ import { add_render_callback as q } from "../../vendor/svelte/src/runtime/internal/scheduler.js";
5
+ import { onMount as oe, onDestroy as re } from "../../vendor/svelte/src/runtime/internal/lifecycle.js";
6
+ import { SvelteComponent as ie, init as le, create_component as O, mount_component as U, destroy_component as F } from "../../vendor/svelte/src/runtime/internal/Component.js";
7
+ import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
8
+ import ne from "./Common/Switcher1.js";
9
+ import se from "./Common/CircleButton.js";
10
+ import H from "../Controller/EditController.js";
11
+ import ae from "./Common/Exit.js";
12
+ import { fade as S } from "../../vendor/svelte/src/runtime/transition/index.js";
13
+ import { IconUndo as me, IconOk as pe } from "./Common/icons/index.js";
14
+ import "../../vendor/svelte/src/runtime/internal/environment.js";
15
+ import "../../vendor/svelte/src/runtime/internal/loop.js";
16
+ import "../../vendor/svelte/src/runtime/internal/style_manager.js";
17
+ import "../../vendor/svelte/src/shared/version.js";
18
+ import "../../vendor/svelte/src/runtime/internal/each.js";
8
19
  import "../Modules/UIController/mobileHTML.js";
9
- import "../../vendor/svelte/easing/index.js";
20
+ import "../../vendor/svelte/src/runtime/easing/index.js";
10
21
  import "../Model/line.js";
11
22
  import "../../shared-utils/uuid.js";
12
23
  import "../utils/line.js";
@@ -70,12 +81,12 @@ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
70
81
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
71
82
  import "../utils/findAssociatedLines.js";
72
83
  import "../utils/math.js";
73
- function pe(o) {
84
+ function fe(o) {
74
85
  te(o, "svelte-ldjbp8", "*.forbid.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-ldjbp8.svelte-ldjbp8{pointer-events:none;position:relative;width:100%;height:100%;z-index:2;color:white}.Measure-Controller.svelte-ldjbp8 .mode-switcher.svelte-ldjbp8{margin-top:2.25rem}.Measure-Controller.svelte-ldjbp8 .bottom.svelte-ldjbp8{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-ldjbp8 .bottom .mask.svelte-ldjbp8{position:absolute;bottom:0;width:100%;height:12.5rem;background-size:100%;z-index:-1;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5))}.Measure-Controller.svelte-ldjbp8 .bottom .center.svelte-ldjbp8{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-ldjbp8 .controller.svelte-ldjbp8{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-ldjbp8 .controller .button.svelte-ldjbp8{cursor:pointer;display:flex;align-items:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;color:#fff;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-ldjbp8 .controller .button .icon.svelte-ldjbp8{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin:0 0.25rem}.Measure-Controller.svelte-ldjbp8 .controller .main-button.svelte-ldjbp8{margin-left:1.75rem;margin-right:1.75rem;font-size:0.875rem;font-weight:bold}");
75
86
  }
76
- function G(o) {
77
- let t, l;
78
- return t = new ne({
87
+ function J(o) {
88
+ let t, i;
89
+ return t = new ae({
79
90
  props: {
80
91
  onClick: (
81
92
  /*measureController*/
@@ -84,33 +95,48 @@ function G(o) {
84
95
  }
85
96
  }), {
86
97
  c() {
87
- I(t.$$.fragment);
98
+ O(t.$$.fragment);
88
99
  },
89
- m(e, i) {
90
- K(t, e, i), l = !0;
100
+ m(e, a) {
101
+ U(t, e, a), i = !0;
91
102
  },
92
- p(e, i) {
93
- const n = {};
94
- i & /*measureController*/
95
- 1 && (n.onClick = /*measureController*/
96
- e[0].disable), t.$set(n);
103
+ p(e, a) {
104
+ const l = {};
105
+ a & /*measureController*/
106
+ 1 && (l.onClick = /*measureController*/
107
+ e[0].disable), t.$set(l);
97
108
  },
98
109
  i(e) {
99
- l || (h(t.$$.fragment, e), l = !0);
110
+ i || (k(t.$$.fragment, e), i = !0);
100
111
  },
101
112
  o(e) {
102
- k(t.$$.fragment, e), l = !1;
113
+ _(t.$$.fragment, e), i = !1;
103
114
  },
104
115
  d(e) {
105
- q(t, e);
116
+ F(t, e);
106
117
  }
107
118
  };
108
119
  }
109
- function H(o) {
110
- let t, l, e, i;
111
- return l = new ie({
120
+ function L(o) {
121
+ let t, i, e, a;
122
+ return i = new ne({
112
123
  props: {
113
- options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
124
+ options: [
125
+ {
126
+ key: "line",
127
+ value: (
128
+ /*i18n*/
129
+ o[2]("测距离")
130
+ )
131
+ },
132
+ {
133
+ key: "area",
134
+ value: (
135
+ /*i18n*/
136
+ o[2]("测面积")
137
+ )
138
+ }
139
+ ],
114
140
  defaultKey: (
115
141
  /*measureController*/
116
142
  o[0].currentMeasureType
@@ -122,274 +148,311 @@ function H(o) {
122
148
  }
123
149
  }), {
124
150
  c() {
125
- t = C("div"), I(l.$$.fragment), _(t, "class", "mode-switcher svelte-ldjbp8");
151
+ t = j("div"), O(i.$$.fragment), w(t, "class", "mode-switcher svelte-ldjbp8");
126
152
  },
127
- m(n, p) {
128
- B(n, t, p), K(l, t, null), i = !0;
153
+ m(l, n) {
154
+ I(l, t, n), U(i, t, null), a = !0;
129
155
  },
130
- p(n, p) {
131
- o = n;
132
- const b = {};
133
- p & /*measureController*/
134
- 1 && (b.defaultKey = /*measureController*/
135
- o[0].currentMeasureType), p & /*measureController*/
136
- 1 && (b.onChange = /*measureController*/
137
- o[0].changeMeasureType), l.$set(b);
156
+ p(l, n) {
157
+ o = l;
158
+ const m = {};
159
+ n & /*i18n*/
160
+ 4 && (m.options = [
161
+ {
162
+ key: "line",
163
+ value: (
164
+ /*i18n*/
165
+ o[2]("测距离")
166
+ )
167
+ },
168
+ {
169
+ key: "area",
170
+ value: (
171
+ /*i18n*/
172
+ o[2]("测面积")
173
+ )
174
+ }
175
+ ]), n & /*measureController*/
176
+ 1 && (m.defaultKey = /*measureController*/
177
+ o[0].currentMeasureType), n & /*measureController*/
178
+ 1 && (m.onChange = /*measureController*/
179
+ o[0].changeMeasureType), i.$set(m);
138
180
  },
139
- i(n) {
140
- i || (h(l.$$.fragment, n), n && O(() => {
141
- i && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
142
- }), i = !0);
181
+ i(l) {
182
+ a || (k(i.$$.fragment, l), l && q(() => {
183
+ a && (e || (e = E(t, S, { duration: P }, !0)), e.run(1));
184
+ }), a = !0);
143
185
  },
144
- o(n) {
145
- k(l.$$.fragment, n), n && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), i = !1;
186
+ o(l) {
187
+ _(i.$$.fragment, l), l && (e || (e = E(t, S, { duration: P }, !1)), e.run(0)), a = !1;
146
188
  },
147
- d(n) {
148
- n && D(t), q(l), n && e && e.end();
189
+ d(l) {
190
+ l && K(t), F(i), l && e && e.end();
149
191
  }
150
192
  };
151
193
  }
152
- function J(o) {
153
- let t, l, e, i, n, p, b;
194
+ function N(o) {
195
+ let t, i, e, a = (
196
+ /*i18n*/
197
+ o[2]("撤销") + ""
198
+ ), l, n, m, f, C;
154
199
  return {
155
200
  c() {
156
- t = C("div"), l = C("div"), e = N(`
157
- 撤销`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${se})`), _(t, "class", "button svelte-ldjbp8"), R(
201
+ t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${me})`), w(t, "class", "button svelte-ldjbp8"), D(
158
202
  t,
159
203
  "forbid",
160
204
  /*buttonState*/
161
- o[2] === "start"
205
+ o[3] === "start"
162
206
  );
163
207
  },
164
- m(r, u) {
165
- B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
208
+ m(r, c) {
209
+ I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
166
210
  t,
167
211
  "click",
168
212
  /*click_handler*/
169
- o[12]
170
- ), p = !0);
213
+ o[13]
214
+ ), f = !0);
171
215
  },
172
- p(r, u) {
173
- o = r, (!n || u & /*buttonState*/
174
- 4) && R(
216
+ p(r, c) {
217
+ o = r, (!m || c & /*i18n*/
218
+ 4) && a !== (a = /*i18n*/
219
+ o[2]("撤销") + "") && Y(l, a), (!m || c & /*buttonState*/
220
+ 8) && D(
175
221
  t,
176
222
  "forbid",
177
223
  /*buttonState*/
178
- o[2] === "start"
224
+ o[3] === "start"
179
225
  );
180
226
  },
181
227
  i(r) {
182
- n || (r && O(() => {
183
- n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
184
- }), n = !0);
228
+ m || (r && q(() => {
229
+ m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
230
+ }), m = !0);
185
231
  },
186
232
  o(r) {
187
- r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
233
+ r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
188
234
  },
189
235
  d(r) {
190
- r && D(t), r && i && i.end(), p = !1, b();
236
+ r && K(t), r && n && n.end(), f = !1, C();
191
237
  }
192
238
  };
193
239
  }
194
- function L(o) {
195
- let t, l, e, i, n, p, b;
240
+ function Q(o) {
241
+ let t, i, e, a = (
242
+ /*i18n*/
243
+ o[2]("结束") + ""
244
+ ), l, n, m, f, C;
196
245
  return {
197
246
  c() {
198
- t = C("div"), l = C("div"), e = N(`
199
- 结束`), _(l, "class", "icon svelte-ldjbp8"), Q(l, "background-image", `url(${ae})`), _(t, "class", "button svelte-ldjbp8");
247
+ t = j("div"), i = j("div"), e = T(), l = V(a), w(i, "class", "icon svelte-ldjbp8"), W(i, "background-image", `url(${pe})`), w(t, "class", "button svelte-ldjbp8");
200
248
  },
201
- m(r, u) {
202
- B(r, t, u), v(t, l), v(t, e), n = !0, p || (b = V(
249
+ m(r, c) {
250
+ I(r, t, c), g(t, i), g(t, e), g(t, l), m = !0, f || (C = X(
203
251
  t,
204
252
  "click",
205
253
  /*complete*/
206
- o[9]
207
- ), p = !0);
254
+ o[10]
255
+ ), f = !0);
208
256
  },
209
- p(r, u) {
210
- o = r;
257
+ p(r, c) {
258
+ o = r, (!m || c & /*i18n*/
259
+ 4) && a !== (a = /*i18n*/
260
+ o[2]("结束") + "") && Y(l, a);
211
261
  },
212
262
  i(r) {
213
- n || (r && O(() => {
214
- n && (i || (i = E(t, S, { duration: P }, !0)), i.run(1));
215
- }), n = !0);
263
+ m || (r && q(() => {
264
+ m && (n || (n = E(t, S, { duration: P }, !0)), n.run(1));
265
+ }), m = !0);
216
266
  },
217
267
  o(r) {
218
- r && (i || (i = E(t, S, { duration: P }, !1)), i.run(0)), n = !1;
268
+ r && (n || (n = E(t, S, { duration: P }, !1)), n.run(0)), m = !1;
219
269
  },
220
270
  d(r) {
221
- r && D(t), r && i && i.end(), p = !1, b();
271
+ r && K(t), r && n && n.end(), f = !1, C();
222
272
  }
223
273
  };
224
274
  }
225
- function me(o) {
226
- let t, l, e, i, n, p, b, r, u, j, w, y, T, a = (
275
+ function ue(o) {
276
+ let t, i, e, a, l, n, m, f, C, r, c, z, M, b = (
227
277
  /*showExit*/
228
- o[1] && G(o)
229
- ), m = (
278
+ o[1] && J(o)
279
+ ), p = (
230
280
  /*measureController*/
231
281
  o[0].allowMeasureType.length >= 2 && /*buttonState*/
232
- o[2] === "start" && H(o)
233
- ), f = (
282
+ o[3] === "start" && L(o)
283
+ ), u = (
234
284
  /*showButton*/
235
- o[3] && J(o)
285
+ o[4] && N(o)
236
286
  );
237
- w = new le({
287
+ c = new se({
238
288
  props: {
239
289
  onClick: (
240
290
  /*func*/
241
- o[13]
291
+ o[14]
242
292
  ),
243
293
  text: (
244
294
  /*buttonTextMap*/
245
- o[5][
295
+ o[6][
246
296
  /*buttonState*/
247
- o[2]
297
+ o[3]
248
298
  ]
249
299
  ),
250
300
  color: (
251
301
  /*buttonColorMap*/
252
- o[6][
302
+ o[7][
253
303
  /*buttonState*/
254
- o[2]
304
+ o[3]
255
305
  ]
256
306
  )
257
307
  }
258
308
  });
259
309
  let d = (
260
310
  /*showButton*/
261
- o[3] && L(o)
311
+ o[4] && Q(o)
262
312
  );
263
313
  return {
264
314
  c() {
265
- t = C("div"), a && a.c(), l = $(), e = C("div"), i = C("div"), n = $(), p = C("div"), m && m.c(), b = $(), r = C("div"), f && f.c(), u = $(), j = C("div"), I(w.$$.fragment), y = $(), d && d.c(), _(i, "class", "mask svelte-ldjbp8"), _(j, "class", "main-button svelte-ldjbp8"), R(j, "forbid", !/*allowAddPoint*/
266
- o[4]), _(r, "class", "controller svelte-ldjbp8"), _(p, "class", "center svelte-ldjbp8"), _(e, "class", "bottom svelte-ldjbp8"), _(t, "class", "Measure-Controller svelte-ldjbp8");
315
+ t = j("div"), b && b.c(), i = T(), e = j("div"), a = j("div"), l = T(), n = j("div"), p && p.c(), m = T(), f = j("div"), u && u.c(), C = T(), r = j("div"), O(c.$$.fragment), z = T(), d && d.c(), w(a, "class", "mask svelte-ldjbp8"), w(r, "class", "main-button svelte-ldjbp8"), D(r, "forbid", !/*allowAddPoint*/
316
+ o[5]), w(f, "class", "controller svelte-ldjbp8"), w(n, "class", "center svelte-ldjbp8"), w(e, "class", "bottom svelte-ldjbp8"), w(t, "class", "Measure-Controller svelte-ldjbp8");
267
317
  },
268
- m(s, c) {
269
- B(s, t, c), a && a.m(t, null), v(t, l), v(t, e), v(e, i), v(e, n), v(e, p), m && m.m(p, null), v(p, b), v(p, r), f && f.m(r, null), v(r, u), v(r, j), K(w, j, null), v(r, y), d && d.m(r, null), T = !0;
318
+ m(s, v) {
319
+ I(s, t, v), b && b.m(t, null), g(t, i), g(t, e), g(e, a), g(e, l), g(e, n), p && p.m(n, null), g(n, m), g(n, f), u && u.m(f, null), g(f, C), g(f, r), U(c, r, null), g(f, z), d && d.m(f, null), M = !0;
270
320
  },
271
- p(s, [c]) {
321
+ p(s, [v]) {
272
322
  /*showExit*/
273
- s[1] ? a ? (a.p(s, c), c & /*showExit*/
274
- 2 && h(a, 1)) : (a = G(s), a.c(), h(a, 1), a.m(t, l)) : a && (A(), k(a, 1, 1, () => {
275
- a = null;
276
- }), z()), /*measureController*/
323
+ s[1] ? b ? (b.p(s, v), v & /*showExit*/
324
+ 2 && k(b, 1)) : (b = J(s), b.c(), k(b, 1), b.m(t, i)) : b && (B(), _(b, 1, 1, () => {
325
+ b = null;
326
+ }), R()), /*measureController*/
277
327
  s[0].allowMeasureType.length >= 2 && /*buttonState*/
278
- s[2] === "start" ? m ? (m.p(s, c), c & /*measureController, buttonState*/
279
- 5 && h(m, 1)) : (m = H(s), m.c(), h(m, 1), m.m(p, b)) : m && (A(), k(m, 1, 1, () => {
280
- m = null;
281
- }), z()), /*showButton*/
282
- s[3] ? f ? (f.p(s, c), c & /*showButton*/
283
- 8 && h(f, 1)) : (f = J(s), f.c(), h(f, 1), f.m(r, u)) : f && (A(), k(f, 1, 1, () => {
284
- f = null;
285
- }), z());
286
- const M = {};
287
- c & /*buttonState*/
288
- 4 && (M.onClick = /*func*/
289
- s[13]), c & /*buttonState*/
290
- 4 && (M.text = /*buttonTextMap*/
291
- s[5][
292
- /*buttonState*/
293
- s[2]
294
- ]), c & /*buttonState*/
295
- 4 && (M.color = /*buttonColorMap*/
328
+ s[3] === "start" ? p ? (p.p(s, v), v & /*measureController, buttonState*/
329
+ 9 && k(p, 1)) : (p = L(s), p.c(), k(p, 1), p.m(n, m)) : p && (B(), _(p, 1, 1, () => {
330
+ p = null;
331
+ }), R()), /*showButton*/
332
+ s[4] ? u ? (u.p(s, v), v & /*showButton*/
333
+ 16 && k(u, 1)) : (u = N(s), u.c(), k(u, 1), u.m(f, C)) : u && (B(), _(u, 1, 1, () => {
334
+ u = null;
335
+ }), R());
336
+ const y = {};
337
+ v & /*buttonState*/
338
+ 8 && (y.onClick = /*func*/
339
+ s[14]), v & /*buttonState*/
340
+ 8 && (y.text = /*buttonTextMap*/
296
341
  s[6][
297
342
  /*buttonState*/
298
- s[2]
299
- ]), w.$set(M), (!T || c & /*allowAddPoint*/
300
- 16) && R(j, "forbid", !/*allowAddPoint*/
301
- s[4]), /*showButton*/
302
- s[3] ? d ? (d.p(s, c), c & /*showButton*/
303
- 8 && h(d, 1)) : (d = L(s), d.c(), h(d, 1), d.m(r, null)) : d && (A(), k(d, 1, 1, () => {
343
+ s[3]
344
+ ]), v & /*buttonState*/
345
+ 8 && (y.color = /*buttonColorMap*/
346
+ s[7][
347
+ /*buttonState*/
348
+ s[3]
349
+ ]), c.$set(y), (!M || v & /*allowAddPoint*/
350
+ 32) && D(r, "forbid", !/*allowAddPoint*/
351
+ s[5]), /*showButton*/
352
+ s[4] ? d ? (d.p(s, v), v & /*showButton*/
353
+ 16 && k(d, 1)) : (d = Q(s), d.c(), k(d, 1), d.m(f, null)) : d && (B(), _(d, 1, 1, () => {
304
354
  d = null;
305
- }), z());
355
+ }), R());
306
356
  },
307
357
  i(s) {
308
- T || (h(a), h(m), h(f), h(w.$$.fragment, s), h(d), T = !0);
358
+ M || (k(b), k(p), k(u), k(c.$$.fragment, s), k(d), M = !0);
309
359
  },
310
360
  o(s) {
311
- k(a), k(m), k(f), k(w.$$.fragment, s), k(d), T = !1;
361
+ _(b), _(p), _(u), _(c.$$.fragment, s), _(d), M = !1;
312
362
  },
313
363
  d(s) {
314
- s && D(t), a && a.d(), m && m.d(), f && f.d(), q(w), d && d.d();
364
+ s && K(t), b && b.d(), p && p.d(), u && u.d(), F(c), d && d.d();
315
365
  }
316
366
  };
317
367
  }
318
368
  const P = 100;
319
- function fe(o, t, l) {
320
- let { measureController: e } = t, { showExit: i = !1 } = t;
369
+ function de(o, t, i) {
370
+ let { measureController: e } = t, { showExit: a = !1 } = t, { i18n: l = (h) => h } = t;
321
371
  const n = {
322
- start: "开始",
323
- add: "添加",
324
- end: "结束",
325
- complete: "完成"
326
- }, p = {
372
+ start: l("开始"),
373
+ add: l("添加"),
374
+ end: l("结束"),
375
+ complete: l("完成")
376
+ }, m = {
327
377
  start: "white",
328
378
  add: "white",
329
379
  end: "blue",
330
380
  complete: "blue"
331
381
  };
332
- let b = !1, r = !0, u = "start", j = e.currentMeasureType;
333
- const w = () => {
334
- e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (a("add"), y());
335
- }, y = () => {
336
- e.controller instanceof F && e.controller.selectPoint();
337
- }, T = () => {
338
- e.controller instanceof F && e.controller.complete();
339
- }, a = (g) => {
340
- l(2, u = g);
341
- }, m = () => {
342
- y(), M("allow");
343
- }, f = () => {
344
- a("complete");
382
+ let f = !1, C = !0, r = "start", c = e.currentMeasureType;
383
+ const z = () => {
384
+ e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (p("add"), M());
385
+ }, M = () => {
386
+ e.controller instanceof H && e.controller.selectPoint();
387
+ }, b = () => {
388
+ e.controller instanceof H && e.controller.complete();
389
+ }, p = (h) => {
390
+ i(3, r = h);
391
+ }, u = () => {
392
+ M(), A("allow");
345
393
  }, d = () => {
346
- e.currentMeasureType === "area" && u === "complete" && a("add");
347
- }, s = (g) => {
348
- g.length;
349
- }, c = () => {
350
- a("start"), M("allow");
351
- }, M = (g) => {
352
- l(4, r = g === "allow");
353
- }, U = (g) => {
354
- l(11, j = g);
355
- }, W = (g) => {
356
- g.isEmpty && a("start");
394
+ p("complete");
395
+ }, s = () => {
396
+ e.currentMeasureType === "area" && r === "complete" && p("add");
397
+ }, v = (h) => {
398
+ h.length;
399
+ }, y = () => {
400
+ p("start"), A("allow");
401
+ }, A = (h) => {
402
+ i(5, C = h === "allow");
403
+ }, G = (h) => {
404
+ i(12, c = h);
405
+ }, Z = (h) => {
406
+ h.isEmpty && p("start");
357
407
  };
358
408
  oe(() => {
359
- e.hook.on("revoke", W), e.hook.on("measureTypeChange", U), e.hook.on("modeChange", c), e.hook.on("pointsChange", s), e.hook.on("allowAddPointStateChange", M), e.hook.on("readyComplete", f), e.hook.on("notReadyComplete", d), e.hook.on("complete", c);
409
+ e.hook.on("revoke", Z), e.hook.on("measureTypeChange", G), e.hook.on("modeChange", y), e.hook.on("pointsChange", v), e.hook.on("allowAddPointStateChange", A), e.hook.on("readyComplete", d), e.hook.on("notReadyComplete", s), e.hook.on("complete", y);
360
410
  }), re(() => {
361
- e.hook.off("measureTypeChange", U), e.hook.off("modeChange", c), e.hook.off("allowAddPointStateChange", M), e.hook.off("readyComplete", f), e.hook.off("pointsChange", s), e.hook.off("notReadyComplete", d), e.hook.off("complete", c);
411
+ e.hook.off("measureTypeChange", G), e.hook.off("modeChange", y), e.hook.off("allowAddPointStateChange", A), e.hook.off("readyComplete", d), e.hook.off("pointsChange", v), e.hook.off("notReadyComplete", s), e.hook.off("complete", y);
362
412
  });
363
- const X = () => e.revoke(), Y = () => {
364
- u === "start" ? w() : u === "add" ? y() : (u === "end" || u === "complete") && m();
413
+ const $ = () => e.revoke(), x = () => {
414
+ r === "start" ? z() : r === "add" ? M() : (r === "end" || r === "complete") && u();
365
415
  };
366
- return o.$$set = (g) => {
367
- "measureController" in g && l(0, e = g.measureController), "showExit" in g && l(1, i = g.showExit);
416
+ return o.$$set = (h) => {
417
+ "measureController" in h && i(0, e = h.measureController), "showExit" in h && i(1, a = h.showExit), "i18n" in h && i(2, l = h.i18n);
368
418
  }, o.$$.update = () => {
369
419
  o.$$.dirty & /*currentMeasureType, buttonState*/
370
- 2052 && l(3, b = j === "area" && u !== "start");
420
+ 4104 && i(4, f = c === "area" && r !== "start");
371
421
  }, [
372
422
  e,
373
- i,
374
- u,
375
- b,
423
+ a,
424
+ l,
376
425
  r,
426
+ f,
427
+ C,
377
428
  n,
378
- p,
379
- w,
380
- y,
381
- T,
382
429
  m,
383
- j,
384
- X,
385
- Y
430
+ z,
431
+ M,
432
+ b,
433
+ u,
434
+ c,
435
+ $,
436
+ x
386
437
  ];
387
438
  }
388
- class $t extends Z {
439
+ class Jt extends ie {
389
440
  constructor(t) {
390
- super(), x(this, t, fe, me, ee, { measureController: 0, showExit: 1 }, pe);
441
+ super(), le(
442
+ this,
443
+ t,
444
+ de,
445
+ ue,
446
+ ee,
447
+ {
448
+ measureController: 0,
449
+ showExit: 1,
450
+ i18n: 2
451
+ },
452
+ fe
453
+ );
391
454
  }
392
455
  }
393
456
  export {
394
- $t as default
457
+ Jt as default
395
458
  };