@realsee/dnalogel 2.21.0-dev.10 → 2.21.0-dev.11

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