@realsee/dnalogel 2.21.0-dev.6 → 2.21.0-dev.7

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 (417) hide show
  1. package/components/index.js +329 -329
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
  3. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +2 -13
  4. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -0
  5. package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -0
  6. package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
  7. package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -0
  8. package/dist/PanoMeasurePlugin/Model/polygon.d.ts +3 -0
  9. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  10. package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  11. package/dist/PanoMeasurePlugin/typings/data.d.ts +2 -1
  12. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  13. package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  14. package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  15. package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  16. package/dist/base/BasePlugin.d.ts +4 -1
  17. package/dist/components/PaintBrush/style.d.ts +1 -1
  18. package/dist/index.cjs.js +62 -62
  19. package/dist/index.js +6430 -6189
  20. package/dist/index.umd.js +55 -55
  21. package/dist/shared-utils/absoluteUrl.d.ts +5 -0
  22. package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  23. package/dist/shared-utils/index.d.ts +1 -1
  24. package/dist/shared-utils/three/PointSelector.d.ts +37 -3
  25. package/docs/assets/search.js +1 -1
  26. package/docs/classes/CSS3DRender.html +32 -31
  27. package/docs/classes/CruisePluginController.html +46 -43
  28. package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
  29. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +36 -35
  30. package/docs/classes/Magnifier.html +21 -20
  31. package/docs/classes/ModelRoomLabelController.html +12 -11
  32. package/docs/classes/Object3DHelperController.html +45 -42
  33. package/docs/classes/PaintBrush.html +16 -15
  34. package/docs/classes/PanoMeasurePluginLine.html +46 -25
  35. package/docs/classes/PanoMeasurePluginModel.html +42 -26
  36. package/docs/classes/PanoMeasurePluginPoint.html +15 -14
  37. package/docs/classes/PanoMeasurePluginPolyline.html +28 -27
  38. package/docs/classes/PanoTagPluginController.html +67 -64
  39. package/docs/classes/Util.BetterTween.html +10 -9
  40. package/docs/classes/Util.Interval.html +13 -12
  41. package/docs/classes/Util.Magnifier.html +19 -18
  42. package/docs/classes/Util.PointDomHelper.html +12 -11
  43. package/docs/classes/Util.PointHelper.html +12 -11
  44. package/docs/classes/Util.PointSelectorHelper.html +18 -17
  45. package/docs/classes/Util.Rectangle.html +14 -13
  46. package/docs/enums/CameraMovementEffect.html +8 -7
  47. package/docs/enums/ContentType.html +21 -20
  48. package/docs/enums/DIRECTION.html +10 -9
  49. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
  50. package/docs/enums/DimensionType.html +8 -7
  51. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
  52. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
  53. package/docs/enums/PaintBrushTypeEnum.html +9 -8
  54. package/docs/enums/PointType.html +8 -7
  55. package/docs/enums/Rotation.html +9 -8
  56. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  57. package/docs/functions/CameraMovementPlugin.html +5 -4
  58. package/docs/functions/CruisePlugin.html +5 -4
  59. package/docs/functions/GuideLinePlugin.html +6 -5
  60. package/docs/functions/ItemLabelPlugin.html +5 -4
  61. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  62. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  63. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  64. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  65. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  66. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  67. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  68. package/docs/functions/ModelViewPlugin.html +5 -4
  69. package/docs/functions/Object3DHelperPlugin.html +5 -4
  70. package/docs/functions/PanoCompassPlugin.html +5 -4
  71. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  72. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  73. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  74. package/docs/functions/PanoMeasurePlugin.html +5 -4
  75. package/docs/functions/PanoRulerPlugin.html +5 -4
  76. package/docs/functions/PanoRulerProPlugin.html +5 -4
  77. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  78. package/docs/functions/PanoTagPlugin.html +5 -4
  79. package/docs/functions/PanoVideoPlugin.html +5 -4
  80. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  81. package/docs/functions/Util.absoluteUrl.html +370 -0
  82. package/docs/functions/Util.getCoordsFromClient.html +6 -5
  83. package/docs/functions/Util.getCoordsFromElement.html +6 -5
  84. package/docs/functions/Util.getFrameTime.html +6 -5
  85. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
  86. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
  87. package/docs/functions/Util.isAbsoluteURL.html +6 -5
  88. package/docs/functions/Util.isModelLike.html +6 -5
  89. package/docs/functions/Util.isNil.html +6 -5
  90. package/docs/functions/Util.isPanoramaLike.html +6 -5
  91. package/docs/functions/Util.nextFrame.html +6 -5
  92. package/docs/functions/Util.notNil.html +6 -5
  93. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
  94. package/docs/functions/Util.tweenProgress.html +6 -5
  95. package/docs/functions/Util.uuid.html +6 -5
  96. package/docs/functions/pluginFlag.html +6 -5
  97. package/docs/index.html +6 -5
  98. package/docs/interfaces/AddTagConfig.html +7 -6
  99. package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
  100. package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
  101. package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
  102. package/docs/interfaces/CruisePluginTypes.Config.html +9 -8
  103. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +13 -12
  104. package/docs/interfaces/CruisePluginTypes.EventMap.html +21 -20
  105. package/docs/interfaces/CruisePluginTypes.MoveAction.html +13 -12
  106. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +15 -14
  107. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +15 -14
  108. package/docs/interfaces/CruisePluginTypes.PluginData.html +10 -9
  109. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -7
  110. package/docs/interfaces/CruisePluginTypes.PluginState.html +12 -11
  111. package/docs/interfaces/EventMap.html +16 -15
  112. package/docs/interfaces/FloorplanBounding.html +9 -8
  113. package/docs/interfaces/FloorplanData.html +11 -10
  114. package/docs/interfaces/FloorplanEntrance.html +12 -11
  115. package/docs/interfaces/FloorplanExtraObject.html +11 -10
  116. package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
  117. package/docs/interfaces/FloorplanFloorData.html +10 -9
  118. package/docs/interfaces/FloorplanImagePosition.html +8 -7
  119. package/docs/interfaces/FloorplanObserver.html +10 -9
  120. package/docs/interfaces/FloorplanOutlineItem.html +10 -9
  121. package/docs/interfaces/FloorplanPosition.html +8 -7
  122. package/docs/interfaces/FloorplanRoomItem.html +14 -13
  123. package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
  124. package/docs/interfaces/FloorplanServerBounding.html +9 -8
  125. package/docs/interfaces/FloorplanServerComputedData.html +11 -10
  126. package/docs/interfaces/FloorplanServerData.html +8 -7
  127. package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
  128. package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
  129. package/docs/interfaces/FloorplanServerEntrance.html +12 -11
  130. package/docs/interfaces/FloorplanServerFloorData.html +10 -9
  131. package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
  132. package/docs/interfaces/FloorplanServerObserver.html +10 -9
  133. package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
  134. package/docs/interfaces/FloorplanServerPosition.html +8 -7
  135. package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
  136. package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
  137. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +9 -8
  138. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +11 -10
  139. package/docs/interfaces/GuideLinePluginType.EventMap.html +14 -13
  140. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +9 -8
  141. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +7 -6
  142. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -13
  143. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +9 -8
  144. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +19 -18
  145. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +8 -7
  146. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -18
  147. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +6 -5
  148. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -7
  149. package/docs/interfaces/GuideLinePluginType.PluginState.html +9 -8
  150. package/docs/interfaces/GuideLinePluginType.Route.html +12 -11
  151. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +10 -9
  152. package/docs/interfaces/HelperOffset.html +9 -8
  153. package/docs/interfaces/ImagePlaneGroup.html +7 -6
  154. package/docs/interfaces/ItemLabelPluginData.html +7 -6
  155. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
  156. package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
  157. package/docs/interfaces/MinMax.html +8 -7
  158. package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
  159. package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
  160. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
  161. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
  162. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
  163. package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
  164. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
  165. package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
  166. package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
  167. package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
  168. package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
  169. package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
  170. package/docs/interfaces/ModelViewPluginExportType.html +12 -11
  171. package/docs/interfaces/Object3DHelperState.html +9 -8
  172. package/docs/interfaces/ObjectHelperControllers.html +10 -9
  173. package/docs/interfaces/PaintBrushAction.html +13 -12
  174. package/docs/interfaces/PaintBrushConfigs.html +13 -12
  175. package/docs/interfaces/PaintBrushState.html +11 -10
  176. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
  177. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  178. package/docs/interfaces/PanoMeasureParameterType.html +16 -15
  179. package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
  180. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
  181. package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
  182. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
  183. package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
  184. package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
  185. package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
  186. package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
  187. package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
  188. package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
  189. package/docs/interfaces/PanoRulerProPluginState.html +9 -8
  190. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  191. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  192. package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
  193. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
  194. package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
  195. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
  196. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
  197. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
  198. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
  199. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
  200. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
  201. package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
  202. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +10 -9
  203. package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
  204. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
  205. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
  206. package/docs/interfaces/Point.html +9 -8
  207. package/docs/interfaces/Room.html +10 -9
  208. package/docs/interfaces/RoomInfo.html +8 -7
  209. package/docs/interfaces/RoomLabel.html +15 -14
  210. package/docs/interfaces/RoomRules.html +6 -5
  211. package/docs/interfaces/Rooms.html +6 -5
  212. package/docs/interfaces/Scissor.html +10 -9
  213. package/docs/interfaces/State.html +9 -8
  214. package/docs/interfaces/TagCacheInterface.html +13 -12
  215. package/docs/interfaces/TagConfig.html +14 -13
  216. package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
  217. package/docs/interfaces/TagIconUrl.html +13 -12
  218. package/docs/interfaces/TagObjectGroup.html +7 -6
  219. package/docs/interfaces/TagStyle.html +7 -6
  220. package/docs/interfaces/Tags.html +10 -9
  221. package/docs/interfaces/TemporaryState.html +7 -6
  222. package/docs/interfaces/Util.MagnifierParameter.html +12 -11
  223. package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
  224. package/docs/interfaces/Util.PointIntersection.html +9 -8
  225. package/docs/modules/CruisePluginTypes.html +6 -5
  226. package/docs/modules/GuideLineItem.html +6 -5
  227. package/docs/modules/GuideLineModeItem.html +6 -5
  228. package/docs/modules/GuideLinePluginType.html +6 -5
  229. package/docs/modules/PanoVideoPluginType.html +6 -5
  230. package/docs/modules/Util.html +7 -5
  231. package/docs/modules.html +5 -4
  232. package/docs/types/ArrayPosition.html +6 -5
  233. package/docs/types/AudioAppearance.html +6 -5
  234. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  235. package/docs/types/CSS3DRenderExportType.html +6 -5
  236. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  237. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  238. package/docs/types/ClassFunctionParameters.html +6 -5
  239. package/docs/types/Color.html +6 -5
  240. package/docs/types/ContentTypeConfigKey.html +6 -5
  241. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  242. package/docs/types/ContentTypeMap.html +6 -5
  243. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  244. package/docs/types/Create3DElementReturnType.html +6 -5
  245. package/docs/types/CruisePluginExportType.html +6 -5
  246. package/docs/types/CruisePluginTypes.CruiseData.html +6 -5
  247. package/docs/types/CruisePluginTypes.MoveEffect.html +6 -5
  248. package/docs/types/DeprecatedMediaPlaneProperty.html +6 -5
  249. package/docs/types/DeprecatedTagProperty.html +6 -5
  250. package/docs/types/Direction-1.html +6 -5
  251. package/docs/types/Direction4.html +6 -5
  252. package/docs/types/ElementRenderer.html +6 -5
  253. package/docs/types/FloorplanRuleLabels.html +6 -5
  254. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  255. package/docs/types/GuideLinePluginExportType.html +6 -5
  256. package/docs/types/GuideLinePluginType.GuideLineItem.html +6 -5
  257. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +6 -5
  258. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +6 -5
  259. package/docs/types/GuideLinePluginType.GuideLineStyle.html +6 -5
  260. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +6 -5
  261. package/docs/types/GuideLinePluginType.PathItem.html +6 -5
  262. package/docs/types/GuideLinePluginType.PluginData.html +6 -5
  263. package/docs/types/HelperEventMap.html +6 -5
  264. package/docs/types/LoadTagConfig.html +6 -5
  265. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  266. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  267. package/docs/types/MediaData.html +6 -5
  268. package/docs/types/MediaStore.html +6 -5
  269. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  270. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  271. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  272. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  273. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  274. package/docs/types/MoveArgs.html +6 -5
  275. package/docs/types/MoveOpts.html +6 -5
  276. package/docs/types/Object3DHelperEventMap.html +6 -5
  277. package/docs/types/ObjectFit.html +6 -5
  278. package/docs/types/PaintBrushEventMap.html +6 -5
  279. package/docs/types/PanoCompassPluginData.html +6 -5
  280. package/docs/types/PanoCompassPluginExportType.html +6 -5
  281. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  282. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  283. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  284. package/docs/types/PanoIndex.html +6 -5
  285. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  286. package/docs/types/PanoMeasureReturnType.html +6 -5
  287. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  288. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  289. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  290. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  291. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  292. package/docs/types/PartialObjectDeep.html +6 -5
  293. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
  294. package/docs/types/PlaneTag.html +6 -5
  295. package/docs/types/Point2DTag.html +6 -5
  296. package/docs/types/Point3DTag.html +6 -5
  297. package/docs/types/PointTag.html +6 -5
  298. package/docs/types/PointTagInstance.html +6 -5
  299. package/docs/types/Position.html +6 -5
  300. package/docs/types/RotateArgs.html +6 -5
  301. package/docs/types/RotateOpts.html +6 -5
  302. package/docs/types/RuleLabelsKey.html +6 -5
  303. package/docs/types/RuleLabelsValue.html +6 -5
  304. package/docs/types/StickType.html +6 -5
  305. package/docs/types/Tag.html +6 -5
  306. package/docs/types/Tag2D.html +6 -5
  307. package/docs/types/Tag3D.html +6 -5
  308. package/docs/types/TagContentType.html +6 -5
  309. package/docs/types/TagDimensionType.html +6 -5
  310. package/docs/types/TagElement.html +6 -5
  311. package/docs/types/TagEvents.html +6 -5
  312. package/docs/types/TagGLTFObject.html +6 -5
  313. package/docs/types/TagHooks.html +6 -5
  314. package/docs/types/TagId.html +6 -5
  315. package/docs/types/TagInstance.html +6 -5
  316. package/docs/types/TagPointType.html +6 -5
  317. package/docs/types/TagRendererMap.html +6 -5
  318. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  319. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  320. package/docs/types/WorkCode.html +6 -5
  321. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  322. package/docs/variables/PLUGIN.html +6 -5
  323. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  324. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  325. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  326. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  327. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  328. package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
  329. package/libs/CSS3DRenderPlugin/Controller.js +31 -28
  330. package/libs/CSS3DRenderPlugin/index.js +1 -1
  331. package/libs/CruisePlugin/Controller.js +1 -1
  332. package/libs/CruisePlugin/index.js +1 -1
  333. package/libs/GuideLinePlugin/Components/Tag.js +68 -68
  334. package/libs/GuideLinePlugin/Controller.js +1 -1
  335. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  336. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  337. package/libs/GuideLinePlugin/index.js +1 -1
  338. package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
  339. package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
  340. package/libs/ModelTVVideoPlugin/index.js +4 -3
  341. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  342. package/libs/Object3DHelperPlugin/index.js +1 -1
  343. package/libs/PanoCompassPlugin/Controller.js +20 -20
  344. package/libs/PanoCompassPlugin/index.js +1 -1
  345. package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
  346. package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
  347. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
  348. package/libs/PanoDoorLabelPlugin/index.js +1 -1
  349. package/libs/PanoMeasurePlugin/Components/Controller1.js +225 -155
  350. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +2 -13
  351. package/libs/PanoMeasurePlugin/Controller/EditController.js +142 -110
  352. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  353. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -0
  354. package/libs/PanoMeasurePlugin/Controller/index.js +63 -66
  355. package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -0
  356. package/libs/PanoMeasurePlugin/Model/area.js +10 -5
  357. package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
  358. package/libs/PanoMeasurePlugin/Model/index.js +47 -39
  359. package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -0
  360. package/libs/PanoMeasurePlugin/Model/line.js +6 -0
  361. package/libs/PanoMeasurePlugin/Model/polygon.d.ts +3 -0
  362. package/libs/PanoMeasurePlugin/Model/polygon.js +17 -14
  363. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  364. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -14
  365. package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
  366. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
  367. package/libs/PanoMeasurePlugin/index.js +19 -17
  368. package/libs/PanoMeasurePlugin/typings/data.d.ts +2 -1
  369. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +3 -0
  370. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +36 -15
  371. package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
  372. package/libs/PanoMeasurePlugin/utils/dom/base.js +37 -31
  373. package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +38 -23
  374. package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
  375. package/libs/PanoMeasurePlugin/utils/geometryUtil.js +15 -13
  376. package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
  377. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  378. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  379. package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
  380. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  381. package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
  382. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  383. package/libs/PanoTagPlugin/controller/index.js +1 -1
  384. package/libs/PanoTagPlugin/index.js +1 -1
  385. package/libs/PanoVideoPlugin/Controller.js +1 -1
  386. package/libs/PanoVideoPlugin/index.js +1 -1
  387. package/libs/base/BasePlugin.d.ts +4 -1
  388. package/libs/base/BasePlugin.js +14 -11
  389. package/libs/components/PaintBrush/style.d.ts +1 -1
  390. package/libs/components/PaintBrush/style.js +4 -4
  391. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
  392. package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
  393. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
  394. package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
  395. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  396. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
  397. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
  398. package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
  399. package/libs/index.js +4 -4
  400. package/libs/shared-utils/absoluteUrl.d.ts +5 -0
  401. package/libs/shared-utils/absoluteUrl.js +10 -0
  402. package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
  403. package/libs/shared-utils/index.d.ts +1 -1
  404. package/libs/shared-utils/index.js +17 -16
  405. package/libs/shared-utils/logger.js +1 -1
  406. package/libs/shared-utils/three/Magnifier.js +6 -5
  407. package/libs/shared-utils/three/PointSelector.d.ts +37 -3
  408. package/libs/shared-utils/three/PointSelector.js +84 -36
  409. package/libs/vendor/svelte/internal/index.js +392 -345
  410. package/package.json +1 -1
  411. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  412. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  413. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  414. /package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
  415. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +0 -0
  416. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
  417. /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
@@ -1,10 +1,10 @@
1
- import { SvelteComponent as F, init as G, safe_not_equal as H, append_styles as I, element as v, create_component as P, space as T, attr as C, toggle_class as K, insert as $, mount_component as A, append as h, transition_in as z, transition_out as w, check_outros as J, detach as S, destroy_component as E, onMount as L, onDestroy as N, listen as D, noop as W, group_outros as O } from "../../vendor/svelte/internal/index.js";
2
- import Q from "./Common/Switcher1.js";
3
- import R from "./Common/CircleButton.js";
4
- import U from "../Controller/EditController.js";
5
- import V from "./Common/Exit.js";
1
+ import { SvelteComponent as U, init as V, safe_not_equal as W, append_styles as X, element as _, create_component as q, space as E, attr as k, toggle_class as $, insert as B, mount_component as z, append as b, transition_in as c, transition_out as h, check_outros as K, detach as D, destroy_component as L, onMount as Y, onDestroy as Z, add_render_callback as R, create_bidirectional_transition as S, listen as J, group_outros as j } from "../../vendor/svelte/internal/index.js";
2
+ import x from "./Common/Switcher1.js";
3
+ import ee from "./Common/CircleButton.js";
4
+ import F from "../Controller/EditController.js";
5
+ import te from "./Common/Exit.js";
6
+ import { fade as A } from "../../vendor/svelte/transition/index.js";
6
7
  import "../Modules/UIController/mobileHTML.js";
7
- import "hammerjs";
8
8
  import "../Model/line.js";
9
9
  import "../../shared-utils/uuid.js";
10
10
  import "../utils/line.js";
@@ -20,8 +20,6 @@ import "../../shared-utils/removeArrayItem.js";
20
20
  import "../../shared-utils/throttle.js";
21
21
  import "../Controller/BaseController.js";
22
22
  import "../utils/ironbox.js";
23
- import "../utils/getIntersectionFromEvent.js";
24
- import "../utils/getPointFromHammerEvent.js";
25
23
  import "../Model/polyline.js";
26
24
  import "../Model/area.js";
27
25
  import "../Model/polygon.js";
@@ -35,6 +33,7 @@ import "../utils/isIntersecting.js";
35
33
  import "../../shared-utils/three/PointSelector.js";
36
34
  import "../../shared-utils/three/PointSelectorHelper.js";
37
35
  import "../../shared-utils/three/Magnifier.js";
36
+ import "hammerjs";
38
37
  import "../../shared-utils/three/getIntersect.js";
39
38
  import "../../shared-utils/three/PointHelper.js";
40
39
  import "../../shared-utils/three/Assets/index.js";
@@ -57,239 +56,310 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
57
56
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
58
57
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
59
58
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
60
- import "../../shared-utils/isAbsoluteURL.js";
59
+ import "../../shared-utils/absoluteUrl.js";
61
60
  import "../../shared-utils/animationFrame/BetterTween.js";
62
61
  import "../../shared-utils/animationFrame/index.js";
63
62
  import "../../shared-utils/isTouchDevice.js";
64
- function X(l) {
65
- I(l, "svelte-12klgza", ".Measure-Controller.svelte-12klgza.svelte-12klgza{pointer-events:none;color:white}.Measure-Controller.svelte-12klgza .mode-switcher.svelte-12klgza{margin-top:2.25rem}.Measure-Controller.svelte-12klgza .bottom.svelte-12klgza{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-12klgza .bottom .center.svelte-12klgza{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-12klgza .controller.svelte-12klgza{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-12klgza .controller .button.svelte-12klgza{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-12klgza .controller .main-button.svelte-12klgza{margin-left:1.75rem;margin-right:1.75rem}.Measure-Controller.svelte-12klgza .controller .main-button.forbid.svelte-12klgza{pointer-events:none;opacity:0.5}");
63
+ import "../../shared-utils/getIntersectionFromEvent.js";
64
+ import "../../shared-utils/getPointFromHammerEvent.js";
65
+ import "../../vendor/svelte/easing/index.js";
66
+ function oe(r) {
67
+ X(r, "svelte-oflaon", "*.forbid.svelte-oflaon.svelte-oflaon{pointer-events:none;opacity:0.5}.Measure-Controller.svelte-oflaon.svelte-oflaon{pointer-events:none;color:white}.Measure-Controller.svelte-oflaon .mode-switcher.svelte-oflaon{margin-top:2.25rem}.Measure-Controller.svelte-oflaon .bottom.svelte-oflaon{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-oflaon .bottom .center.svelte-oflaon{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-oflaon .controller.svelte-oflaon{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-oflaon .controller .button.svelte-oflaon{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-oflaon .controller .main-button.svelte-oflaon{margin-left:1.75rem;margin-right:1.75rem}");
66
68
  }
67
- function j(l) {
68
- let t, o, e;
69
- return o = new Q({
69
+ function G(r) {
70
+ let o, t, e, m;
71
+ return t = new x({
70
72
  props: {
71
73
  options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
72
74
  defaultKey: (
73
75
  /*measureController*/
74
- l[0].currentMeasureType
76
+ r[0].currentMeasureType
75
77
  ),
76
78
  onChange: (
77
- /*func*/
78
- l[9]
79
+ /*measureController*/
80
+ r[0].changeMeasureType
79
81
  )
80
82
  }
81
83
  }), {
82
84
  c() {
83
- t = v("div"), P(o.$$.fragment), C(t, "class", "mode-switcher svelte-12klgza");
85
+ o = _("div"), q(t.$$.fragment), k(o, "class", "mode-switcher svelte-oflaon");
84
86
  },
85
- m(n, s) {
86
- $(n, t, s), A(o, t, null), e = !0;
87
+ m(l, i) {
88
+ B(l, o, i), z(t, o, null), m = !0;
87
89
  },
88
- p(n, s) {
89
- const c = {};
90
- s & /*measureController*/
91
- 1 && (c.defaultKey = /*measureController*/
92
- n[0].currentMeasureType), s & /*measureController*/
93
- 1 && (c.onChange = /*func*/
94
- n[9]), o.$set(c);
90
+ p(l, i) {
91
+ r = l;
92
+ const a = {};
93
+ i & /*measureController*/
94
+ 1 && (a.defaultKey = /*measureController*/
95
+ r[0].currentMeasureType), i & /*measureController*/
96
+ 1 && (a.onChange = /*measureController*/
97
+ r[0].changeMeasureType), t.$set(a);
95
98
  },
96
- i(n) {
97
- e || (z(o.$$.fragment, n), e = !0);
99
+ i(l) {
100
+ m || (c(t.$$.fragment, l), l && R(() => {
101
+ m && (e || (e = S(o, A, { duration: P }, !0)), e.run(1));
102
+ }), m = !0);
98
103
  },
99
- o(n) {
100
- w(o.$$.fragment, n), e = !1;
104
+ o(l) {
105
+ h(t.$$.fragment, l), l && (e || (e = S(o, A, { duration: P }, !1)), e.run(0)), m = !1;
101
106
  },
102
- d(n) {
103
- n && S(t), E(o);
107
+ d(l) {
108
+ l && D(o), L(t), l && e && e.end();
104
109
  }
105
110
  };
106
111
  }
107
- function q(l) {
108
- let t, o, e;
112
+ function H(r) {
113
+ let o, t, e, m, l;
109
114
  return {
110
115
  c() {
111
- t = v("div"), t.textContent = "撤销", C(t, "class", "button svelte-12klgza");
116
+ o = _("div"), o.textContent = "撤销", k(o, "class", "button svelte-oflaon"), $(
117
+ o,
118
+ "forbid",
119
+ /*buttonState*/
120
+ r[4] === "start"
121
+ );
112
122
  },
113
- m(n, s) {
114
- $(n, t, s), o || (e = D(
115
- t,
123
+ m(i, a) {
124
+ B(i, o, a), e = !0, m || (l = J(
125
+ o,
116
126
  "click",
117
127
  /*click_handler*/
118
- l[10]
119
- ), o = !0);
128
+ r[13]
129
+ ), m = !0);
120
130
  },
121
- p: W,
122
- d(n) {
123
- n && S(t), o = !1, e();
131
+ p(i, a) {
132
+ r = i, (!e || a & /*buttonState*/
133
+ 16) && $(
134
+ o,
135
+ "forbid",
136
+ /*buttonState*/
137
+ r[4] === "start"
138
+ );
139
+ },
140
+ i(i) {
141
+ e || (i && R(() => {
142
+ e && (t || (t = S(o, A, { duration: P }, !0)), t.run(1));
143
+ }), e = !0);
144
+ },
145
+ o(i) {
146
+ i && (t || (t = S(o, A, { duration: P }, !1)), t.run(0)), e = !1;
147
+ },
148
+ d(i) {
149
+ i && D(o), i && t && t.end(), m = !1, l();
124
150
  }
125
151
  };
126
152
  }
127
- function B(l) {
128
- let t, o, e;
153
+ function I(r) {
154
+ let o, t, e, m, l;
129
155
  return {
130
156
  c() {
131
- t = v("div"), t.textContent = "结束", C(t, "class", "button svelte-12klgza");
157
+ o = _("div"), o.textContent = "结束", k(o, "class", "button svelte-oflaon");
132
158
  },
133
- m(n, s) {
134
- $(n, t, s), o || (e = D(
135
- t,
159
+ m(i, a) {
160
+ B(i, o, a), e = !0, m || (l = J(
161
+ o,
136
162
  "click",
137
- /*click_handler_1*/
138
- l[12]
139
- ), o = !0);
163
+ /*complete*/
164
+ r[10]
165
+ ), m = !0);
140
166
  },
141
- p: W,
142
- d(n) {
143
- n && S(t), o = !1, e();
167
+ p(i, a) {
168
+ r = i;
169
+ },
170
+ i(i) {
171
+ e || (i && R(() => {
172
+ e && (t || (t = S(o, A, { duration: P }, !0)), t.run(1));
173
+ }), e = !0);
174
+ },
175
+ o(i) {
176
+ i && (t || (t = S(o, A, { duration: P }, !1)), t.run(0)), e = !1;
177
+ },
178
+ d(i) {
179
+ i && D(o), i && t && t.end(), m = !1, l();
144
180
  }
145
181
  };
146
182
  }
147
- function Y(l) {
148
- let t, o, e, n, s, c, m, b, d, u, M, g;
149
- o = new V({
183
+ function re(r) {
184
+ let o, t, e, m, l, i, a, y, v, d, T, g;
185
+ t = new te({
150
186
  props: {
151
187
  onClick: (
152
188
  /*measureController*/
153
- l[0].disable
189
+ r[0].disable
154
190
  )
155
191
  }
156
192
  });
157
- let i = (
193
+ let s = (
158
194
  /*measureController*/
159
- l[0].allowMeasureType.length >= 2 && j(l)
160
- ), a = (
161
- /*currentMeasureType*/
162
- l[3] === "area" && q(l)
195
+ r[0].allowMeasureType.length >= 2 && /*buttonState*/
196
+ r[4] === "start" && G(r)
197
+ ), p = (
198
+ /*showButton*/
199
+ r[2] && H(r)
163
200
  );
164
- u = new R({
201
+ d = new ee({
165
202
  props: {
166
203
  onClick: (
167
- /*func_1*/
168
- l[11]
204
+ /*func*/
205
+ r[14]
169
206
  ),
170
207
  text: (
171
- /*buttonTextMap*/
172
- l[4][
173
- /*buttonState*/
174
- l[2]
175
- ]
208
+ /*currentMeasureType*/
209
+ r[1] === "area" ? (
210
+ /*buttonAreaTextMap*/
211
+ r[5][
212
+ /*buttonState*/
213
+ r[4]
214
+ ]
215
+ ) : (
216
+ /*buttonLineTextMap*/
217
+ r[6][
218
+ /*buttonState*/
219
+ r[4]
220
+ ]
221
+ )
176
222
  ),
177
223
  color: (
178
224
  /*buttonColorMap*/
179
- l[5][
225
+ r[7][
180
226
  /*buttonState*/
181
- l[2]
227
+ r[4]
182
228
  ]
183
229
  )
184
230
  }
185
231
  });
186
- let p = (
187
- /*currentMeasureType*/
188
- l[3] === "area" && B(l)
232
+ let f = (
233
+ /*showButton*/
234
+ r[2] && I(r)
189
235
  );
190
236
  return {
191
237
  c() {
192
- t = v("div"), P(o.$$.fragment), e = T(), n = v("div"), s = v("div"), i && i.c(), c = T(), m = v("div"), a && a.c(), b = T(), d = v("div"), P(u.$$.fragment), M = T(), p && p.c(), C(d, "class", "main-button svelte-12klgza"), K(d, "forbid", !/*allowAddPoint*/
193
- l[1]), C(m, "class", "controller svelte-12klgza"), C(s, "class", "center svelte-12klgza"), C(n, "class", "bottom svelte-12klgza"), C(t, "class", "Measure-Controller svelte-12klgza");
238
+ o = _("div"), q(t.$$.fragment), e = E(), m = _("div"), l = _("div"), s && s.c(), i = E(), a = _("div"), p && p.c(), y = E(), v = _("div"), q(d.$$.fragment), T = E(), f && f.c(), k(v, "class", "main-button svelte-oflaon"), $(v, "forbid", !/*allowAddPoint*/
239
+ r[3]), k(a, "class", "controller svelte-oflaon"), k(l, "class", "center svelte-oflaon"), k(m, "class", "bottom svelte-oflaon"), k(o, "class", "Measure-Controller svelte-oflaon");
194
240
  },
195
- m(r, f) {
196
- $(r, t, f), A(o, t, null), h(t, e), h(t, n), h(n, s), i && i.m(s, null), h(s, c), h(s, m), a && a.m(m, null), h(m, b), h(m, d), A(u, d, null), h(m, M), p && p.m(m, null), g = !0;
241
+ m(n, u) {
242
+ B(n, o, u), z(t, o, null), b(o, e), b(o, m), b(m, l), s && s.m(l, null), b(l, i), b(l, a), p && p.m(a, null), b(a, y), b(a, v), z(d, v, null), b(a, T), f && f.m(a, null), g = !0;
197
243
  },
198
- p(r, [f]) {
199
- const y = {};
200
- f & /*measureController*/
201
- 1 && (y.onClick = /*measureController*/
202
- r[0].disable), o.$set(y), /*measureController*/
203
- r[0].allowMeasureType.length >= 2 ? i ? (i.p(r, f), f & /*measureController*/
204
- 1 && z(i, 1)) : (i = j(r), i.c(), z(i, 1), i.m(s, c)) : i && (O(), w(i, 1, 1, () => {
205
- i = null;
206
- }), J()), /*currentMeasureType*/
207
- r[3] === "area" ? a ? a.p(r, f) : (a = q(r), a.c(), a.m(m, b)) : a && (a.d(1), a = null);
208
- const _ = {};
209
- f & /*buttonState*/
210
- 4 && (_.onClick = /*func_1*/
211
- r[11]), f & /*buttonState*/
212
- 4 && (_.text = /*buttonTextMap*/
213
- r[4][
214
- /*buttonState*/
215
- r[2]
216
- ]), f & /*buttonState*/
217
- 4 && (_.color = /*buttonColorMap*/
218
- r[5][
244
+ p(n, [u]) {
245
+ const M = {};
246
+ u & /*measureController*/
247
+ 1 && (M.onClick = /*measureController*/
248
+ n[0].disable), t.$set(M), /*measureController*/
249
+ n[0].allowMeasureType.length >= 2 && /*buttonState*/
250
+ n[4] === "start" ? s ? (s.p(n, u), u & /*measureController, buttonState*/
251
+ 17 && c(s, 1)) : (s = G(n), s.c(), c(s, 1), s.m(l, i)) : s && (j(), h(s, 1, 1, () => {
252
+ s = null;
253
+ }), K()), /*showButton*/
254
+ n[2] ? p ? (p.p(n, u), u & /*showButton*/
255
+ 4 && c(p, 1)) : (p = H(n), p.c(), c(p, 1), p.m(a, y)) : p && (j(), h(p, 1, 1, () => {
256
+ p = null;
257
+ }), K());
258
+ const w = {};
259
+ u & /*buttonState*/
260
+ 16 && (w.onClick = /*func*/
261
+ n[14]), u & /*currentMeasureType, buttonState*/
262
+ 18 && (w.text = /*currentMeasureType*/
263
+ n[1] === "area" ? (
264
+ /*buttonAreaTextMap*/
265
+ n[5][
266
+ /*buttonState*/
267
+ n[4]
268
+ ]
269
+ ) : (
270
+ /*buttonLineTextMap*/
271
+ n[6][
272
+ /*buttonState*/
273
+ n[4]
274
+ ]
275
+ )), u & /*buttonState*/
276
+ 16 && (w.color = /*buttonColorMap*/
277
+ n[7][
219
278
  /*buttonState*/
220
- r[2]
221
- ]), u.$set(_), (!g || f & /*allowAddPoint*/
222
- 2) && K(d, "forbid", !/*allowAddPoint*/
223
- r[1]), /*currentMeasureType*/
224
- r[3] === "area" ? p ? p.p(r, f) : (p = B(r), p.c(), p.m(m, null)) : p && (p.d(1), p = null);
279
+ n[4]
280
+ ]), d.$set(w), (!g || u & /*allowAddPoint*/
281
+ 8) && $(v, "forbid", !/*allowAddPoint*/
282
+ n[3]), /*showButton*/
283
+ n[2] ? f ? (f.p(n, u), u & /*showButton*/
284
+ 4 && c(f, 1)) : (f = I(n), f.c(), c(f, 1), f.m(a, null)) : f && (j(), h(f, 1, 1, () => {
285
+ f = null;
286
+ }), K());
225
287
  },
226
- i(r) {
227
- g || (z(o.$$.fragment, r), z(i), z(u.$$.fragment, r), g = !0);
288
+ i(n) {
289
+ g || (c(t.$$.fragment, n), c(s), c(p), c(d.$$.fragment, n), c(f), g = !0);
228
290
  },
229
- o(r) {
230
- w(o.$$.fragment, r), w(i), w(u.$$.fragment, r), g = !1;
291
+ o(n) {
292
+ h(t.$$.fragment, n), h(s), h(p), h(d.$$.fragment, n), h(f), g = !1;
231
293
  },
232
- d(r) {
233
- r && S(t), E(o), i && i.d(), a && a.d(), E(u), p && p.d();
294
+ d(n) {
295
+ n && D(o), L(t), s && s.d(), p && p.d(), L(d), f && f.d();
234
296
  }
235
297
  };
236
298
  }
237
- function Z(l, t, o) {
238
- let { measureController: e } = t;
239
- const n = { start: "开始", add: "添加", end: "结束" }, s = {
299
+ const P = 100;
300
+ function ne(r, o, t) {
301
+ let { measureController: e } = o;
302
+ const m = { start: "开始", add: "添加", end: "结束" }, l = { start: "开始", add: "添加", end: "完成" }, i = {
240
303
  start: "white",
241
304
  add: "white",
242
305
  end: "blue"
243
306
  };
244
- let c = !0, m = "start", b = e.currentMeasureType;
245
- const d = () => {
246
- e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (o(2, m = "add"), u());
307
+ let a = !1, y = !1, v = !0, d = "start", T = e.currentMeasureType;
308
+ const g = () => {
309
+ t(12, a = !0), e.getCurrentMode() !== "Edit" ? e.changeMode("Edit") : (t(4, d = "add"), s());
310
+ }, s = () => {
311
+ e.controller instanceof F && e.controller.selectPoint();
312
+ }, p = () => {
313
+ e.controller instanceof F && e.controller.complete();
314
+ }, f = () => {
315
+ s(), M("allow");
316
+ }, n = () => {
317
+ t(4, d = "end");
247
318
  }, u = () => {
248
- e.controller instanceof U && e.controller.selectPoint();
249
- }, M = () => {
250
- u(), a("allow");
251
- }, g = () => {
252
- o(2, m = "end");
253
- }, i = () => {
254
- o(2, m = "start"), a("allow");
255
- }, a = (k) => {
256
- o(1, c = k === "allow");
257
- }, p = (k) => {
258
- o(3, b = k);
319
+ t(4, d = "start"), M("allow");
320
+ }, M = (C) => {
321
+ t(3, v = C === "allow");
322
+ }, w = (C) => {
323
+ t(1, T = C);
324
+ }, N = (C) => {
325
+ C.isEmpty && t(4, d = "start");
259
326
  };
260
- L(() => {
261
- e.hook.on("measureTypeChange", p), e.hook.on("modeChange", i), e.hook.on("allowAddPointStateChange", a), e.hook.on("readyComplete", g), e.hook.on("complete", i);
262
- }), N(() => {
263
- e.hook.off("measureTypeChange", p), e.hook.off("modeChange", i), e.hook.off("allowAddPointStateChange", a), e.hook.off("readyComplete", g), e.hook.off("complete", i);
327
+ Y(() => {
328
+ e.hook.on("revoke", N), e.hook.on("measureTypeChange", w), e.hook.on("modeChange", u), e.hook.on("allowAddPointStateChange", M), e.hook.on("readyComplete", n), e.hook.on("complete", u);
329
+ }), Z(() => {
330
+ e.hook.off("measureTypeChange", w), e.hook.off("modeChange", u), e.hook.off("allowAddPointStateChange", M), e.hook.off("readyComplete", n), e.hook.off("complete", u);
264
331
  });
265
- const r = (k) => {
266
- e.changeMeasureType(k);
267
- }, f = () => e.revoke(), y = () => {
268
- m === "start" ? d() : m === "add" ? u() : m === "end" && M();
269
- }, _ = () => e.save({ mode: "Watch" });
270
- return l.$$set = (k) => {
271
- "measureController" in k && o(0, e = k.measureController);
332
+ const O = () => e.revoke(), Q = () => {
333
+ d === "start" ? g() : d === "add" ? s() : d === "end" && f();
334
+ };
335
+ return r.$$set = (C) => {
336
+ "measureController" in C && t(0, e = C.measureController);
337
+ }, r.$$.update = () => {
338
+ r.$$.dirty & /*currentMeasureType, isStarted*/
339
+ 4098 && t(2, y = T === "area" && a);
272
340
  }, [
273
341
  e,
274
- c,
342
+ T,
343
+ y,
344
+ v,
345
+ d,
275
346
  m,
276
- b,
277
- n,
347
+ l,
348
+ i,
349
+ g,
278
350
  s,
279
- d,
280
- u,
281
- M,
282
- r,
351
+ p,
283
352
  f,
284
- y,
285
- _
353
+ a,
354
+ O,
355
+ Q
286
356
  ];
287
357
  }
288
- class st extends F {
289
- constructor(t) {
290
- super(), G(this, t, Z, Y, H, { measureController: 0 }, X);
358
+ class ht extends U {
359
+ constructor(o) {
360
+ super(), V(this, o, ne, re, W, { measureController: 0 }, oe);
291
361
  }
292
362
  }
293
363
  export {
294
- st as default
364
+ ht as default
295
365
  };
@@ -7,13 +7,10 @@ export default class EditController extends BaseController {
7
7
  type: string;
8
8
  polyline: Polyline;
9
9
  area: Area;
10
- /** 拖动的控制点 */
11
- private pressPoint?;
12
10
  private hasAppendDashed;
13
11
  private fiveElement?;
14
12
  /** 上一个端点位置 */
15
13
  private lastPoint;
16
- private hammer?;
17
14
  private pointSelector;
18
15
  /** 根据 intersection 更新放大镜和吸附点 */
19
16
  private onIntersectionUpdate;
@@ -31,24 +28,16 @@ export default class EditController extends BaseController {
31
28
  */
32
29
  revokeLine: (_polyline?: Polyline) => void;
33
30
  selectPoint(): void;
31
+ complete(): void;
34
32
  private onMouseLeave;
35
33
  /** 编辑线条发生改变时通知外部 */
36
34
  private onLineChanged;
37
- private onPress;
38
- /**
39
- * 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
40
- * 2. 如果有长按点,把长按点位置更新为当前位置
41
- */
42
- private onPan;
43
- private onPanEnd;
44
35
  /**
45
36
  * 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
46
37
  * 2. 把上一个点的位置更新为当前点的位置
47
38
  * 3. 清除 pointSelector
48
39
  */
49
- private onTap;
50
- /** 存在长按点时不能移动全景 */
51
- private onWantsPanGesture;
40
+ private onSelect;
52
41
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
53
42
  private onCameraUpdate;
54
43
  /** 更新虚线 */