@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.2

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 (354) hide show
  1. package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  2. package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
  3. package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
  4. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  5. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
  6. package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  7. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  8. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
  9. package/dist/PanoMeasurePlugin/typings/data.d.ts +7 -2
  10. package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  11. package/dist/index.cjs.js +58 -58
  12. package/dist/index.js +6221 -5669
  13. package/dist/index.umd.js +45 -45
  14. package/dist/shared-utils/isTouchDevice.d.ts +1 -0
  15. package/dist/shared-utils/three/PointSelector.d.ts +32 -0
  16. package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  17. package/dist/shared-utils/three/index.d.ts +1 -1
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/CSS3DRender.html +5 -4
  20. package/docs/classes/CruisePluginController.html +5 -4
  21. package/docs/classes/GuideLineItem.GuideLineItem.html +5 -4
  22. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -4
  23. package/docs/classes/Magnifier.html +5 -4
  24. package/docs/classes/ModelRoomLabelController.html +5 -4
  25. package/docs/classes/Object3DHelperController.html +5 -4
  26. package/docs/classes/PaintBrush.html +5 -4
  27. package/docs/classes/PanoMeasurePluginLine.html +5 -4
  28. package/docs/classes/PanoMeasurePluginModel.html +5 -4
  29. package/docs/classes/PanoMeasurePluginPoint.html +9 -8
  30. package/docs/classes/PanoMeasurePluginPolyline.html +14 -13
  31. package/docs/classes/PanoTagPluginController.html +5 -4
  32. package/docs/classes/Util.BetterTween.html +5 -4
  33. package/docs/classes/Util.Interval.html +5 -4
  34. package/docs/classes/Util.Magnifier.html +5 -4
  35. package/docs/classes/Util.PointDomHelper.html +5 -4
  36. package/docs/classes/Util.PointHelper.html +5 -4
  37. package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +96 -26
  38. package/docs/classes/Util.Rectangle.html +5 -4
  39. package/docs/enums/CameraMovementEffect.html +5 -4
  40. package/docs/enums/ContentType.html +5 -4
  41. package/docs/enums/DIRECTION.html +5 -4
  42. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -4
  43. package/docs/enums/DimensionType.html +5 -4
  44. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -4
  45. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -4
  46. package/docs/enums/PaintBrushTypeEnum.html +5 -4
  47. package/docs/enums/PointType.html +5 -4
  48. package/docs/enums/Rotation.html +5 -4
  49. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  50. package/docs/functions/CameraMovementPlugin.html +5 -4
  51. package/docs/functions/CruisePlugin.html +5 -4
  52. package/docs/functions/GuideLinePlugin.html +5 -4
  53. package/docs/functions/ItemLabelPlugin.html +5 -4
  54. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  55. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  56. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  57. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  58. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  59. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  60. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  61. package/docs/functions/ModelViewPlugin.html +5 -4
  62. package/docs/functions/Object3DHelperPlugin.html +5 -4
  63. package/docs/functions/PanoCompassPlugin.html +5 -4
  64. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  65. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  66. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  67. package/docs/functions/PanoMeasurePlugin.html +5 -4
  68. package/docs/functions/PanoRulerPlugin.html +5 -4
  69. package/docs/functions/PanoRulerProPlugin.html +5 -4
  70. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  71. package/docs/functions/PanoTagPlugin.html +5 -4
  72. package/docs/functions/PanoVideoPlugin.html +5 -4
  73. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  74. package/docs/functions/Util.getCoordsFromClient.html +5 -4
  75. package/docs/functions/Util.getCoordsFromElement.html +5 -4
  76. package/docs/functions/Util.getFrameTime.html +5 -4
  77. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -4
  78. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -4
  79. package/docs/functions/Util.isAbsoluteURL.html +5 -4
  80. package/docs/functions/Util.isModelLike.html +5 -4
  81. package/docs/functions/Util.isNil.html +5 -4
  82. package/docs/functions/Util.isPanoramaLike.html +5 -4
  83. package/docs/functions/Util.nextFrame.html +5 -4
  84. package/docs/functions/Util.notNil.html +5 -4
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
  86. package/docs/functions/Util.tweenProgress.html +5 -4
  87. package/docs/functions/Util.uuid.html +5 -4
  88. package/docs/functions/pluginFlag.html +5 -4
  89. package/docs/index.html +6 -5
  90. package/docs/interfaces/AddTagConfig.html +5 -4
  91. package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -4
  92. package/docs/interfaces/CSS3DRenderPluginState.html +5 -4
  93. package/docs/interfaces/CameraMovementPluginExportType.html +5 -4
  94. package/docs/interfaces/CruisePluginTypes.Config.html +5 -4
  95. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -4
  96. package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -4
  97. package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -4
  98. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -4
  99. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -4
  100. package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -4
  101. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -4
  102. package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -4
  103. package/docs/interfaces/EventMap.html +5 -4
  104. package/docs/interfaces/FloorplanBounding.html +5 -4
  105. package/docs/interfaces/FloorplanData.html +5 -4
  106. package/docs/interfaces/FloorplanEntrance.html +5 -4
  107. package/docs/interfaces/FloorplanExtraObject.html +5 -4
  108. package/docs/interfaces/FloorplanExtraObject3D.html +5 -4
  109. package/docs/interfaces/FloorplanFloorData.html +5 -4
  110. package/docs/interfaces/FloorplanImagePosition.html +5 -4
  111. package/docs/interfaces/FloorplanObserver.html +5 -4
  112. package/docs/interfaces/FloorplanOutlineItem.html +5 -4
  113. package/docs/interfaces/FloorplanPosition.html +5 -4
  114. package/docs/interfaces/FloorplanRoomItem.html +5 -4
  115. package/docs/interfaces/FloorplanRoomLabelItem.html +5 -4
  116. package/docs/interfaces/FloorplanServerBounding.html +5 -4
  117. package/docs/interfaces/FloorplanServerComputedData.html +5 -4
  118. package/docs/interfaces/FloorplanServerData.html +5 -4
  119. package/docs/interfaces/FloorplanServerDoorItem.html +5 -4
  120. package/docs/interfaces/FloorplanServerDoorPosition.html +5 -4
  121. package/docs/interfaces/FloorplanServerEntrance.html +5 -4
  122. package/docs/interfaces/FloorplanServerFloorData.html +5 -4
  123. package/docs/interfaces/FloorplanServerImagePosition.html +5 -4
  124. package/docs/interfaces/FloorplanServerObserver.html +5 -4
  125. package/docs/interfaces/FloorplanServerOutlineItem.html +5 -4
  126. package/docs/interfaces/FloorplanServerPosition.html +5 -4
  127. package/docs/interfaces/FloorplanServerRoomItem.html +5 -4
  128. package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -4
  129. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -4
  130. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -4
  131. package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -4
  132. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -4
  133. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -4
  134. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -4
  135. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -4
  136. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -4
  137. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -4
  138. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -4
  139. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -4
  140. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -4
  141. package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -4
  142. package/docs/interfaces/GuideLinePluginType.Route.html +5 -4
  143. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -4
  144. package/docs/interfaces/HelperOffset.html +5 -4
  145. package/docs/interfaces/ImagePlaneGroup.html +5 -4
  146. package/docs/interfaces/ItemLabelPluginData.html +5 -4
  147. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -4
  148. package/docs/interfaces/ItemLabelPluginParametersType.html +5 -4
  149. package/docs/interfaces/MinMax.html +5 -4
  150. package/docs/interfaces/ModelChassisCompassPluginData.html +5 -4
  151. package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -4
  152. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -4
  153. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -4
  154. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -4
  155. package/docs/interfaces/ModelItemLabelPluginData.html +5 -4
  156. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -4
  157. package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -4
  158. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -4
  159. package/docs/interfaces/ModelTVVideoPluginData.html +5 -4
  160. package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -4
  161. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -4
  162. package/docs/interfaces/ModelViewPluginExportType.html +5 -4
  163. package/docs/interfaces/Object3DHelperState.html +5 -4
  164. package/docs/interfaces/ObjectHelperControllers.html +5 -4
  165. package/docs/interfaces/PaintBrushAction.html +5 -4
  166. package/docs/interfaces/PaintBrushConfigs.html +5 -4
  167. package/docs/interfaces/PaintBrushState.html +5 -4
  168. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -4
  169. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -4
  170. package/docs/interfaces/PanoMeasureParameterType.html +5 -4
  171. package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -4
  172. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -4
  173. package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -4
  174. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -4
  175. package/docs/interfaces/PanoRulerPluginExportType.html +5 -4
  176. package/docs/interfaces/PanoRulerPluginOptions.html +5 -4
  177. package/docs/interfaces/PanoRulerPluginParameterType.html +5 -4
  178. package/docs/interfaces/PanoRulerProPluginExportType.html +5 -4
  179. package/docs/interfaces/PanoRulerProPluginOptions.html +5 -4
  180. package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -4
  181. package/docs/interfaces/PanoRulerProPluginState.html +5 -4
  182. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -4
  183. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -4
  184. package/docs/interfaces/PanoSpatialTagPluginData.html +5 -4
  185. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -4
  186. package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -4
  187. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -4
  188. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -4
  189. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -4
  190. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -4
  191. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -4
  192. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -4
  193. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -4
  194. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -4
  195. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -4
  196. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -4
  197. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -4
  198. package/docs/interfaces/Point.html +5 -4
  199. package/docs/interfaces/Room.html +5 -4
  200. package/docs/interfaces/RoomInfo.html +5 -4
  201. package/docs/interfaces/RoomLabel.html +5 -4
  202. package/docs/interfaces/RoomRules.html +5 -4
  203. package/docs/interfaces/Rooms.html +5 -4
  204. package/docs/interfaces/Scissor.html +5 -4
  205. package/docs/interfaces/State.html +5 -4
  206. package/docs/interfaces/TagCacheInterface.html +5 -4
  207. package/docs/interfaces/TagConfig.html +5 -4
  208. package/docs/interfaces/TagGLTFObjectGroup.html +5 -4
  209. package/docs/interfaces/TagIconUrl.html +5 -4
  210. package/docs/interfaces/TagObjectGroup.html +5 -4
  211. package/docs/interfaces/TagStyle.html +5 -4
  212. package/docs/interfaces/Tags.html +5 -4
  213. package/docs/interfaces/TemporaryState.html +5 -4
  214. package/docs/interfaces/Util.MagnifierParameter.html +5 -4
  215. package/docs/interfaces/Util.MouseGroupParameter.html +5 -4
  216. package/docs/interfaces/Util.PointIntersection.html +407 -0
  217. package/docs/modules/CruisePluginTypes.html +5 -4
  218. package/docs/modules/GuideLineItem.html +5 -4
  219. package/docs/modules/GuideLineModeItem.html +5 -4
  220. package/docs/modules/GuideLinePluginType.html +5 -4
  221. package/docs/modules/PanoVideoPluginType.html +5 -4
  222. package/docs/modules/Util.html +7 -5
  223. package/docs/modules.html +6 -5
  224. package/docs/types/ArrayPosition.html +5 -4
  225. package/docs/types/AudioAppearance.html +5 -4
  226. package/docs/types/AudioTagTypeConfigKey.html +5 -4
  227. package/docs/types/CSS3DRenderExportType.html +5 -4
  228. package/docs/types/CSS3DRenderPluginExportType.html +5 -4
  229. package/docs/types/CSS3DRenderPluginParameterType.html +5 -4
  230. package/docs/types/ClassFunctionParameters.html +5 -4
  231. package/docs/types/Color.html +5 -4
  232. package/docs/types/ContentTypeConfigKey.html +5 -4
  233. package/docs/types/ContentTypeConfigKeySplit.html +5 -4
  234. package/docs/types/ContentTypeMap.html +5 -4
  235. package/docs/types/Create3DDomContainerReturnType.html +5 -4
  236. package/docs/types/Create3DElementReturnType.html +5 -4
  237. package/docs/types/CruisePluginExportType.html +5 -4
  238. package/docs/types/CruisePluginTypes.CruiseData.html +5 -4
  239. package/docs/types/CruisePluginTypes.MoveEffect.html +5 -4
  240. package/docs/types/DeprecatedMediaPlaneProperty.html +5 -4
  241. package/docs/types/DeprecatedTagProperty.html +5 -4
  242. package/docs/types/Direction-1.html +5 -4
  243. package/docs/types/Direction4.html +5 -4
  244. package/docs/types/ElementRenderer.html +5 -4
  245. package/docs/types/FloorplanRuleLabels.html +5 -4
  246. package/docs/types/FloorplanServerRuleLabels.html +5 -4
  247. package/docs/types/GuideLinePluginExportType.html +5 -4
  248. package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -4
  249. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -4
  250. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -4
  251. package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -4
  252. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -4
  253. package/docs/types/GuideLinePluginType.PathItem.html +5 -4
  254. package/docs/types/GuideLinePluginType.PluginData.html +5 -4
  255. package/docs/types/HelperEventMap.html +5 -4
  256. package/docs/types/LoadTagConfig.html +5 -4
  257. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -4
  258. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -4
  259. package/docs/types/MediaData.html +5 -4
  260. package/docs/types/MediaStore.html +5 -4
  261. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -4
  262. package/docs/types/ModelFloorplanPluginParameterType.html +5 -4
  263. package/docs/types/ModelFloorplanPluginReturnType.html +5 -4
  264. package/docs/types/ModelRoomLabelPluginParameters.html +5 -4
  265. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -4
  266. package/docs/types/MoveArgs.html +5 -4
  267. package/docs/types/MoveOpts.html +5 -4
  268. package/docs/types/Object3DHelperEventMap.html +5 -4
  269. package/docs/types/ObjectFit.html +5 -4
  270. package/docs/types/PaintBrushEventMap.html +5 -4
  271. package/docs/types/PanoCompassPluginData.html +5 -4
  272. package/docs/types/PanoCompassPluginExportType.html +5 -4
  273. package/docs/types/PanoCompassPluginParameterType.html +5 -4
  274. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -4
  275. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -4
  276. package/docs/types/PanoIndex.html +5 -4
  277. package/docs/types/PanoMeasurePluginEvent.html +5 -4
  278. package/docs/types/PanoMeasureReturnType.html +5 -4
  279. package/docs/types/PanoSpatialTagPluginId.html +5 -4
  280. package/docs/types/PanoTagPluginExportInterface.html +5 -4
  281. package/docs/types/PanoTagPluginParamsInterface.html +5 -4
  282. package/docs/types/PanoVideoPluginParameterType.html +5 -4
  283. package/docs/types/PanoVideoPluginReturnType.html +5 -4
  284. package/docs/types/PartialObjectDeep.html +5 -4
  285. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -4
  286. package/docs/types/PlaneTag.html +5 -4
  287. package/docs/types/Point2DTag.html +5 -4
  288. package/docs/types/Point3DTag.html +5 -4
  289. package/docs/types/PointTag.html +5 -4
  290. package/docs/types/PointTagInstance.html +5 -4
  291. package/docs/types/Position.html +5 -4
  292. package/docs/types/RotateArgs.html +5 -4
  293. package/docs/types/RotateOpts.html +5 -4
  294. package/docs/types/RuleLabelsKey.html +5 -4
  295. package/docs/types/RuleLabelsValue.html +5 -4
  296. package/docs/types/StickType.html +5 -4
  297. package/docs/types/Tag.html +5 -4
  298. package/docs/types/Tag2D.html +5 -4
  299. package/docs/types/Tag3D.html +5 -4
  300. package/docs/types/TagContentType.html +5 -4
  301. package/docs/types/TagDimensionType.html +5 -4
  302. package/docs/types/TagElement.html +5 -4
  303. package/docs/types/TagEvents.html +5 -4
  304. package/docs/types/TagGLTFObject.html +5 -4
  305. package/docs/types/TagHooks.html +5 -4
  306. package/docs/types/TagId.html +5 -4
  307. package/docs/types/TagInstance.html +5 -4
  308. package/docs/types/TagPointType.html +5 -4
  309. package/docs/types/TagRendererMap.html +5 -4
  310. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -4
  311. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -4
  312. package/docs/types/WorkCode.html +5 -4
  313. package/docs/variables/FLOOR_TYPE_MAP.html +5 -4
  314. package/docs/variables/PLUGIN.html +5 -4
  315. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -4
  316. package/docs/variables/ROOM_TYPE_MAP.html +5 -4
  317. package/docs/variables/itemLabelPluginServerParams.html +5 -4
  318. package/docs/variables/modelItemLabelPluginServerParams.html +5 -4
  319. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -4
  320. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
  321. package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
  322. package/libs/PanoMeasurePlugin/Components/Controller0.js +81 -68
  323. package/libs/PanoMeasurePlugin/Components/Controller1.js +195 -97
  324. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
  325. package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
  326. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
  327. package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -95
  328. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  329. package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
  330. package/libs/PanoMeasurePlugin/Controller/index.js +65 -49
  331. package/libs/PanoMeasurePlugin/Model/point.js +17 -12
  332. package/libs/PanoMeasurePlugin/Model/polygon.js +11 -10
  333. package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
  334. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
  335. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
  336. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +99 -31
  337. package/libs/PanoMeasurePlugin/index.js +46 -31
  338. package/libs/PanoMeasurePlugin/typings/data.d.ts +7 -2
  339. package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
  340. package/libs/base/BasePlugin.js +1 -1
  341. package/libs/index.js +120 -115
  342. package/libs/shared-utils/index.js +6 -6
  343. package/libs/shared-utils/isTouchDevice.d.ts +1 -0
  344. package/libs/shared-utils/isTouchDevice.js +4 -0
  345. package/libs/shared-utils/logger.js +1 -1
  346. package/libs/shared-utils/three/PointSelector.d.ts +32 -0
  347. package/libs/shared-utils/three/PointSelector.js +68 -0
  348. package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
  349. package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
  350. package/libs/shared-utils/three/index.d.ts +1 -1
  351. package/package.json +1 -1
  352. package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
  353. package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
  354. package/libs/shared-utils/three/FivePointSelector.js +0 -49
@@ -1,117 +1,130 @@
1
- import { SvelteComponent as k, init as M, safe_not_equal as I, append_styles as x, binding_callbacks as S, bind as z, element as f, space as b, create_component as E, attr as m, insert as C, append as v, mount_component as q, add_flush_callback as A, transition_in as D, transition_out as T, detach as w, destroy_component as W, onMount as $, onDestroy as j, listen as y, noop as B, run_all as F } from "../../vendor/svelte/internal/index.js";
2
- import G from "./Common/Switcher0.js";
3
- function H(i) {
4
- x(i, "svelte-y31iee", ".Measure-Controller.svelte-y31iee.svelte-y31iee{pointer-events:none}.Measure-Controller.svelte-y31iee .mode-switcher.svelte-y31iee{margin-top:2.25rem}.Measure-Controller.svelte-y31iee .bottom.svelte-y31iee{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-y31iee .bottom .center.svelte-y31iee{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-y31iee .buttons.svelte-y31iee{pointer-events:all;cursor:pointer;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-y31iee .buttons .button.svelte-y31iee{font-size:0.875rem;padding:0rem 1rem}");
1
+ import { SvelteComponent as q, init as A, safe_not_equal as D, append_styles as T, binding_callbacks as W, bind as j, element as f, create_component as C, space as _, attr as m, insert as E, mount_component as k, append as u, add_flush_callback as B, transition_in as w, transition_out as M, detach as S, destroy_component as $, onMount as F, onDestroy as G, listen as x, noop as H, run_all as J } from "../../vendor/svelte/internal/index.js";
2
+ import K from "./Common/Switcher0.js";
3
+ import L from "./Common/Exit.js";
4
+ function N(l) {
5
+ T(l, "svelte-y31iee", ".Measure-Controller.svelte-y31iee.svelte-y31iee{pointer-events:none}.Measure-Controller.svelte-y31iee .mode-switcher.svelte-y31iee{margin-top:2.25rem}.Measure-Controller.svelte-y31iee .bottom.svelte-y31iee{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-y31iee .bottom .center.svelte-y31iee{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-y31iee .buttons.svelte-y31iee{pointer-events:all;cursor:pointer;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-y31iee .buttons .button.svelte-y31iee{font-size:0.875rem;padding:0rem 1rem}");
5
6
  }
6
- function g(i) {
7
- let t, o, e, r, a, l;
7
+ function I(l) {
8
+ let t, n, i, s, r, c;
8
9
  return {
9
10
  c() {
10
- t = f("div"), o = f("div"), o.textContent = "撤销", e = b(), r = f("div"), r.textContent = "结束", m(o, "class", "button svelte-y31iee"), m(r, "class", "button svelte-y31iee"), m(t, "class", "buttons svelte-y31iee");
11
+ t = f("div"), n = f("div"), n.textContent = "撤销", i = _(), s = f("div"), s.textContent = "结束", m(n, "class", "button svelte-y31iee"), m(s, "class", "button svelte-y31iee"), m(t, "class", "buttons svelte-y31iee");
11
12
  },
12
- m(d, u) {
13
- C(d, t, u), v(t, o), v(t, e), v(t, r), a || (l = [
14
- y(
15
- o,
13
+ m(d, a) {
14
+ E(d, t, a), u(t, n), u(t, i), u(t, s), r || (c = [
15
+ x(
16
+ n,
16
17
  "click",
17
18
  /*click_handler*/
18
- i[3]
19
+ l[3]
19
20
  ),
20
- y(
21
- r,
21
+ x(
22
+ s,
22
23
  "click",
23
24
  /*click_handler_1*/
24
- i[4]
25
+ l[4]
25
26
  )
26
- ], a = !0);
27
+ ], r = !0);
27
28
  },
28
- p: B,
29
+ p: H,
29
30
  d(d) {
30
- d && w(t), a = !1, F(l);
31
+ d && S(t), r = !1, J(c);
31
32
  }
32
33
  };
33
34
  }
34
- function J(i) {
35
- let t, o, e, r, a, l, d, u, n = (
35
+ function O(l) {
36
+ let t, n, i, s, r, c, d, a, p, v;
37
+ n = new L({
38
+ props: {
39
+ onClick: (
40
+ /*measureController*/
41
+ l[0].disable
42
+ )
43
+ }
44
+ });
45
+ let e = (
36
46
  /*showController*/
37
- i[2] && g(i)
47
+ l[2] && I(l)
38
48
  );
39
- function p(s) {
40
- i[6](s);
49
+ function z(o) {
50
+ l[6](o);
41
51
  }
42
- let c = {
52
+ let b = {
43
53
  options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
44
54
  onChange: (
45
55
  /*func*/
46
- i[5]
56
+ l[5]
47
57
  )
48
58
  };
49
59
  return (
50
60
  /*setSwitcherActiveIndex*/
51
- i[1] !== void 0 && (c.setIndex = /*setSwitcherActiveIndex*/
52
- i[1]), l = new G({ props: c }), S.push(() => z(l, "setIndex", p)), {
61
+ l[1] !== void 0 && (b.setIndex = /*setSwitcherActiveIndex*/
62
+ l[1]), a = new K({ props: b }), W.push(() => j(a, "setIndex", z)), {
53
63
  c() {
54
- t = f("div"), o = f("div"), e = f("div"), n && n.c(), r = b(), a = f("div"), E(l.$$.fragment), m(a, "class", "mode-switcher svelte-y31iee"), m(e, "class", "center svelte-y31iee"), m(o, "class", "bottom svelte-y31iee"), m(t, "class", "Measure-Controller svelte-y31iee");
64
+ t = f("div"), C(n.$$.fragment), i = _(), s = f("div"), r = f("div"), e && e.c(), c = _(), d = f("div"), C(a.$$.fragment), m(d, "class", "mode-switcher svelte-y31iee"), m(r, "class", "center svelte-y31iee"), m(s, "class", "bottom svelte-y31iee"), m(t, "class", "Measure-Controller svelte-y31iee");
55
65
  },
56
- m(s, h) {
57
- C(s, t, h), v(t, o), v(o, e), n && n.m(e, null), v(e, r), v(e, a), q(l, a, null), u = !0;
66
+ m(o, h) {
67
+ E(o, t, h), k(n, t, null), u(t, i), u(t, s), u(s, r), e && e.m(r, null), u(r, c), u(r, d), k(a, d, null), v = !0;
58
68
  },
59
- p(s, [h]) {
60
- /*showController*/
61
- s[2] ? n ? n.p(s, h) : (n = g(s), n.c(), n.m(e, r)) : n && (n.d(1), n = null);
62
- const _ = {};
69
+ p(o, [h]) {
70
+ const y = {};
71
+ h & /*measureController*/
72
+ 1 && (y.onClick = /*measureController*/
73
+ o[0].disable), n.$set(y), /*showController*/
74
+ o[2] ? e ? e.p(o, h) : (e = I(o), e.c(), e.m(r, c)) : e && (e.d(1), e = null);
75
+ const g = {};
63
76
  h & /*measureController*/
64
- 1 && (_.onChange = /*func*/
65
- s[5]), !d && h & /*setSwitcherActiveIndex*/
66
- 2 && (d = !0, _.setIndex = /*setSwitcherActiveIndex*/
67
- s[1], A(() => d = !1)), l.$set(_);
77
+ 1 && (g.onChange = /*func*/
78
+ o[5]), !p && h & /*setSwitcherActiveIndex*/
79
+ 2 && (p = !0, g.setIndex = /*setSwitcherActiveIndex*/
80
+ o[1], B(() => p = !1)), a.$set(g);
68
81
  },
69
- i(s) {
70
- u || (D(l.$$.fragment, s), u = !0);
82
+ i(o) {
83
+ v || (w(n.$$.fragment, o), w(a.$$.fragment, o), v = !0);
71
84
  },
72
- o(s) {
73
- T(l.$$.fragment, s), u = !1;
85
+ o(o) {
86
+ M(n.$$.fragment, o), M(a.$$.fragment, o), v = !1;
74
87
  },
75
- d(s) {
76
- s && w(t), n && n.d(), W(l);
88
+ d(o) {
89
+ o && S(t), $(n), e && e.d(), $(a);
77
90
  }
78
91
  }
79
92
  );
80
93
  }
81
- function K(i, t, o) {
82
- let { measureController: e } = t, r;
83
- function a(c) {
84
- c === "Edit" ? o(2, l = !0) : (r(null), o(2, l = !1));
94
+ function P(l, t, n) {
95
+ let { measureController: i } = t, s;
96
+ function r(e) {
97
+ e === "Edit" ? n(2, c = !0) : (s(null), n(2, c = !1));
85
98
  }
86
- $(() => {
87
- e.hook.on("modeChange", a);
88
- }), j(() => {
89
- e.hook.off("modeChange", a);
99
+ F(() => {
100
+ i.hook.on("modeChange", r);
101
+ }), G(() => {
102
+ i.hook.off("modeChange", r);
90
103
  });
91
- let l = !1;
92
- const d = () => e.revoke(), u = () => e.save({ mode: "Watch" }), n = (c) => {
93
- e.save().changeMode("Edit"), e.changeMeasureType(c);
104
+ let c = !1;
105
+ const d = () => i.revoke(), a = () => i.save({ mode: "Watch" }), p = (e) => {
106
+ i.save().changeMode("Edit"), i.changeMeasureType(e);
94
107
  };
95
- function p(c) {
96
- r = c, o(1, r);
108
+ function v(e) {
109
+ s = e, n(1, s);
97
110
  }
98
- return i.$$set = (c) => {
99
- "measureController" in c && o(0, e = c.measureController);
111
+ return l.$$set = (e) => {
112
+ "measureController" in e && n(0, i = e.measureController);
100
113
  }, [
101
- e,
102
- r,
103
- l,
114
+ i,
115
+ s,
116
+ c,
104
117
  d,
105
- u,
106
- n,
107
- p
118
+ a,
119
+ p,
120
+ v
108
121
  ];
109
122
  }
110
- class O extends k {
123
+ class V extends q {
111
124
  constructor(t) {
112
- super(), M(this, t, K, J, I, { measureController: 0 }, H);
125
+ super(), A(this, t, P, O, D, { measureController: 0 }, N);
113
126
  }
114
127
  }
115
128
  export {
116
- O as default
129
+ V as default
117
130
  };
@@ -1,157 +1,255 @@
1
- import { SvelteComponent as $, init as j, safe_not_equal as q, append_styles as B, element as p, create_component as y, space as w, attr as v, toggle_class as S, insert as D, append as i, mount_component as A, listen as P, transition_in as T, transition_out as E, detach as W, destroy_component as K, run_all as F, onMount as G, onDestroy as H } from "../../vendor/svelte/internal/index.js";
2
- import I from "./Common/Switcher1.js";
3
- import J from "./Common/CircleButton.js";
1
+ import { SvelteComponent as D, init as W, safe_not_equal as F, append_styles as G, element as k, create_component as P, space as $, attr as v, toggle_class as E, insert as q, mount_component as S, append as c, listen as K, transition_in as b, transition_out as w, check_outros as H, detach as B, destroy_component as T, run_all as I, onMount as J, onDestroy as L, group_outros as N } from "../../vendor/svelte/internal/index.js";
2
+ import O from "./Common/Switcher1.js";
3
+ import Q from "./Common/CircleButton.js";
4
+ import R from "../Controller/EditController.js";
5
+ import U from "./Common/Exit.js";
4
6
  import "../Modules/UIController/mobileHTML.js";
5
- function L(o) {
6
- B(o, "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}");
7
+ import "hammerjs";
8
+ import "../Model/line.js";
9
+ import "../../shared-utils/uuid.js";
10
+ import "../utils/line.js";
11
+ import "@realsee/five/line";
12
+ import "../utils/constants.js";
13
+ import "three";
14
+ import "@realsee/five";
15
+ import "../utils/dom/distanceItem.js";
16
+ import "../utils/dom/base.js";
17
+ import "../utils/isNDCPointInScreen.js";
18
+ import "../Model/point.js";
19
+ import "../../shared-utils/removeArrayItem.js";
20
+ import "../../shared-utils/throttle.js";
21
+ import "../Controller/BaseController.js";
22
+ import "../utils/ironbox.js";
23
+ import "../utils/getIntersectionFromEvent.js";
24
+ import "../utils/getPointFromHammerEvent.js";
25
+ import "../Model/polyline.js";
26
+ import "../Model/area.js";
27
+ import "../Model/polygon.js";
28
+ import "../../shared-utils/three/IObject3D.js";
29
+ import "../utils/generatePolygonGeometry.js";
30
+ import "earcut";
31
+ import "../utils/dom/areaDom.js";
32
+ import "../utils/geometryUtil.js";
33
+ import "../../shared-utils/three/centerPoint.js";
34
+ import "../utils/isIntersecting.js";
35
+ import "../../shared-utils/three/PointSelector.js";
36
+ import "../../shared-utils/three/PointSelectorHelper.js";
37
+ import "../../shared-utils/three/Magnifier.js";
38
+ import "../../shared-utils/three/getIntersect.js";
39
+ import "../../shared-utils/three/PointHelper.js";
40
+ import "../../shared-utils/three/Assets/index.js";
41
+ import "../../shared-utils/three/PointDomHelper.js";
42
+ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
43
+ import "../Modules/rangePiece/html.js";
44
+ import "../../CSS3DRenderPlugin/index.js";
45
+ import "../../CSS3DRenderPlugin/Controller.js";
46
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
48
+ import "three/examples/jsm/renderers/CSS3DRenderer";
49
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
50
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
51
+ import "../../CSS3DRenderPlugin/utils/even.js";
52
+ import "../../shared-utils/Subscribe.js";
53
+ import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
54
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
55
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
56
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
57
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
58
+ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
59
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
60
+ import "../../shared-utils/isAbsoluteURL.js";
61
+ import "../../shared-utils/animationFrame/BetterTween.js";
62
+ import "../../shared-utils/animationFrame/index.js";
63
+ import "../../shared-utils/isTouchDevice.js";
64
+ function V(l) {
65
+ G(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}");
7
66
  }
8
- function N(o) {
9
- let d, n, e, k, u, z, r, a, h, c, g, M, m, f, C, _;
10
- return u = new I({
67
+ function j(l) {
68
+ let n, o, t;
69
+ return o = new O({
11
70
  props: {
12
71
  options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
13
72
  defaultKey: (
14
73
  /*measureController*/
15
- o[0].currentMeasureType
74
+ l[0].currentMeasureType
16
75
  ),
17
76
  onChange: (
18
77
  /*func*/
19
- o[10]
78
+ l[8]
20
79
  )
21
80
  }
22
- }), g = new J({
81
+ }), {
82
+ c() {
83
+ n = k("div"), P(o.$$.fragment), v(n, "class", "mode-switcher svelte-12klgza");
84
+ },
85
+ m(i, a) {
86
+ q(i, n, a), S(o, n, null), t = !0;
87
+ },
88
+ p(i, a) {
89
+ const m = {};
90
+ a & /*measureController*/
91
+ 1 && (m.defaultKey = /*measureController*/
92
+ i[0].currentMeasureType), a & /*measureController*/
93
+ 1 && (m.onChange = /*func*/
94
+ i[8]), o.$set(m);
95
+ },
96
+ i(i) {
97
+ t || (b(o.$$.fragment, i), t = !0);
98
+ },
99
+ o(i) {
100
+ w(o.$$.fragment, i), t = !1;
101
+ },
102
+ d(i) {
103
+ i && B(n), T(o);
104
+ }
105
+ };
106
+ }
107
+ function X(l) {
108
+ let n, o, t, i, a, m, s, f, h, u, p, z, g, C, _, M;
109
+ o = new U({
110
+ props: {
111
+ onClick: (
112
+ /*measureController*/
113
+ l[0].disable
114
+ )
115
+ }
116
+ });
117
+ let r = (
118
+ /*measureController*/
119
+ l[0].allowMeasureType.length >= 2 && j(l)
120
+ );
121
+ return p = new Q({
23
122
  props: {
24
123
  onClick: (
25
124
  /*func_1*/
26
- o[12]
125
+ l[10]
27
126
  ),
28
127
  text: (
29
128
  /*buttonTextMap*/
30
- o[3][
129
+ l[3][
31
130
  /*buttonState*/
32
- o[2]
131
+ l[2]
33
132
  ]
34
133
  ),
35
134
  color: (
36
135
  /*buttonColorMap*/
37
- o[4][
136
+ l[4][
38
137
  /*buttonState*/
39
- o[2]
138
+ l[2]
40
139
  ]
41
140
  )
42
141
  }
43
142
  }), {
44
143
  c() {
45
- d = p("div"), n = p("div"), e = p("div"), k = p("div"), y(u.$$.fragment), z = w(), r = p("div"), a = p("div"), a.textContent = "撤销", h = w(), c = p("div"), y(g.$$.fragment), M = w(), m = p("div"), m.textContent = "结束", v(k, "class", "mode-switcher svelte-12klgza"), v(a, "class", "button svelte-12klgza"), v(c, "class", "main-button svelte-12klgza"), S(c, "forbid", !/*allowAddPoint*/
46
- o[1]), v(m, "class", "button svelte-12klgza"), v(r, "class", "controller svelte-12klgza"), v(e, "class", "center svelte-12klgza"), v(n, "class", "bottom svelte-12klgza"), v(d, "class", "Measure-Controller svelte-12klgza");
144
+ n = k("div"), P(o.$$.fragment), t = $(), i = k("div"), a = k("div"), r && r.c(), m = $(), s = k("div"), f = k("div"), f.textContent = "撤销", h = $(), u = k("div"), P(p.$$.fragment), z = $(), g = k("div"), g.textContent = "结束", v(f, "class", "button svelte-12klgza"), v(u, "class", "main-button svelte-12klgza"), E(u, "forbid", !/*allowAddPoint*/
145
+ l[1]), v(g, "class", "button svelte-12klgza"), v(s, "class", "controller svelte-12klgza"), v(a, "class", "center svelte-12klgza"), v(i, "class", "bottom svelte-12klgza"), v(n, "class", "Measure-Controller svelte-12klgza");
47
146
  },
48
- m(t, s) {
49
- D(t, d, s), i(d, n), i(n, e), i(e, k), A(u, k, null), i(e, z), i(e, r), i(r, a), i(r, h), i(r, c), A(g, c, null), i(r, M), i(r, m), f = !0, C || (_ = [
50
- P(
51
- a,
147
+ m(e, d) {
148
+ q(e, n, d), S(o, n, null), c(n, t), c(n, i), c(i, a), r && r.m(a, null), c(a, m), c(a, s), c(s, f), c(s, h), c(s, u), S(p, u, null), c(s, z), c(s, g), C = !0, _ || (M = [
149
+ K(
150
+ f,
52
151
  "click",
53
152
  /*click_handler*/
54
- o[11]
153
+ l[9]
55
154
  ),
56
- P(
57
- m,
155
+ K(
156
+ g,
58
157
  "click",
59
158
  /*click_handler_1*/
60
- o[13]
159
+ l[11]
61
160
  )
62
- ], C = !0);
161
+ ], _ = !0);
63
162
  },
64
- p(t, [s]) {
65
- const b = {};
66
- s & /*measureController*/
67
- 1 && (b.defaultKey = /*measureController*/
68
- t[0].currentMeasureType), s & /*measureController*/
69
- 1 && (b.onChange = /*func*/
70
- t[10]), u.$set(b);
71
- const l = {};
72
- s & /*buttonState*/
73
- 4 && (l.onClick = /*func_1*/
74
- t[12]), s & /*buttonState*/
75
- 4 && (l.text = /*buttonTextMap*/
76
- t[3][
163
+ p(e, [d]) {
164
+ const A = {};
165
+ d & /*measureController*/
166
+ 1 && (A.onClick = /*measureController*/
167
+ e[0].disable), o.$set(A), /*measureController*/
168
+ e[0].allowMeasureType.length >= 2 ? r ? (r.p(e, d), d & /*measureController*/
169
+ 1 && b(r, 1)) : (r = j(e), r.c(), b(r, 1), r.m(a, m)) : r && (N(), w(r, 1, 1, () => {
170
+ r = null;
171
+ }), H());
172
+ const y = {};
173
+ d & /*buttonState*/
174
+ 4 && (y.onClick = /*func_1*/
175
+ e[10]), d & /*buttonState*/
176
+ 4 && (y.text = /*buttonTextMap*/
177
+ e[3][
77
178
  /*buttonState*/
78
- t[2]
79
- ]), s & /*buttonState*/
80
- 4 && (l.color = /*buttonColorMap*/
81
- t[4][
179
+ e[2]
180
+ ]), d & /*buttonState*/
181
+ 4 && (y.color = /*buttonColorMap*/
182
+ e[4][
82
183
  /*buttonState*/
83
- t[2]
84
- ]), g.$set(l), (!f || s & /*allowAddPoint*/
85
- 2) && S(c, "forbid", !/*allowAddPoint*/
86
- t[1]);
184
+ e[2]
185
+ ]), p.$set(y), (!C || d & /*allowAddPoint*/
186
+ 2) && E(u, "forbid", !/*allowAddPoint*/
187
+ e[1]);
87
188
  },
88
- i(t) {
89
- f || (T(u.$$.fragment, t), T(g.$$.fragment, t), f = !0);
189
+ i(e) {
190
+ C || (b(o.$$.fragment, e), b(r), b(p.$$.fragment, e), C = !0);
90
191
  },
91
- o(t) {
92
- E(u.$$.fragment, t), E(g.$$.fragment, t), f = !1;
192
+ o(e) {
193
+ w(o.$$.fragment, e), w(r), w(p.$$.fragment, e), C = !1;
93
194
  },
94
- d(t) {
95
- t && W(d), K(u), K(g), C = !1, F(_);
195
+ d(e) {
196
+ e && B(n), T(o), r && r.d(), T(p), _ = !1, I(M);
96
197
  }
97
198
  };
98
199
  }
99
- function O(o, d, n) {
100
- let { measureController: e } = d;
101
- const k = { start: "开始", add: "添加", end: "结束" }, u = {
200
+ function Y(l, n, o) {
201
+ let { measureController: t } = n;
202
+ const i = { start: "开始", add: "添加", end: "结束" }, a = {
102
203
  start: "white",
103
204
  add: "white",
104
205
  end: "blue"
105
206
  };
106
- let z = !0, r = !1, a = "editing", h = "start";
107
- const c = () => {
108
- n(8, r = !0), e.getCurrentMode() !== "Edit" && e.changeMode("Edit");
109
- }, g = () => {
110
- }, M = () => {
111
- }, m = (l) => {
112
- l === "Edit" ? n(9, a = "editing") : n(9, a = null);
113
- }, f = () => {
114
- n(9, a = "readyComplete");
115
- }, C = (l) => {
116
- n(1, z = l === "allow");
207
+ let m = !0, s = "start";
208
+ const f = () => {
209
+ t.getCurrentMode() !== "Edit" ? t.changeMode("Edit") : (o(2, s = "add"), h());
210
+ }, h = () => {
211
+ t.controller instanceof R && t.controller.selectPoint();
212
+ }, u = () => {
213
+ h();
214
+ }, p = () => {
215
+ o(2, s = "end");
216
+ }, z = () => {
217
+ o(2, s = "start");
218
+ }, g = (e) => {
219
+ o(1, m = e === "allow");
117
220
  };
118
- G(() => {
119
- e.hook.on("modeChange", m), e.hook.on("allowAddPointStateChange", C), e.hook.on("readyComplete", f);
120
- }), H(() => {
121
- e.hook.off("modeChange", m), e.hook.off("allowAddPointStateChange", C), e.hook.off("readyComplete", f);
221
+ J(() => {
222
+ t.hook.on("allowAddPointStateChange", g), t.hook.on("readyComplete", p), t.hook.on("complete", z);
223
+ }), L(() => {
224
+ t.hook.off("allowAddPointStateChange", g), t.hook.off("readyComplete", p), t.hook.off("complete", z);
122
225
  });
123
- const _ = (l) => {
124
- e.changeMeasureType(l);
125
- }, t = () => e.revoke(), s = () => {
126
- h === "start" && c();
127
- }, b = () => e.save({ mode: "Watch" });
128
- return o.$$set = (l) => {
129
- "measureController" in l && n(0, e = l.measureController);
130
- }, o.$$.update = () => {
131
- o.$$.dirty & /*started, state*/
132
- 768 && n(2, h = (() => r ? a === "editing" ? "add" : a === "readyComplete" ? "end" : "start" : "start")());
226
+ const C = (e) => {
227
+ t.changeMeasureType(e);
228
+ }, _ = () => t.revoke(), M = () => {
229
+ s === "start" ? f() : s === "add" ? h() : s === "end" && u();
230
+ }, r = () => t.save({ mode: "Watch" });
231
+ return l.$$set = (e) => {
232
+ "measureController" in e && o(0, t = e.measureController);
133
233
  }, [
134
- e,
135
- z,
234
+ t,
235
+ m,
236
+ s,
237
+ i,
238
+ a,
239
+ f,
136
240
  h,
137
- k,
138
241
  u,
139
- c,
140
- g,
141
- M,
142
- r,
143
- a,
242
+ C,
144
243
  _,
145
- t,
146
- s,
147
- b
244
+ M,
245
+ r
148
246
  ];
149
247
  }
150
- class X extends $ {
151
- constructor(d) {
152
- super(), j(this, d, O, N, q, { measureController: 0 }, L);
248
+ class st extends D {
249
+ constructor(n) {
250
+ super(), W(this, n, Y, X, F, { measureController: 0 }, V);
153
251
  }
154
252
  }
155
253
  export {
156
- X as default
254
+ st as default
157
255
  };
@@ -19,6 +19,7 @@ export interface ControllerParams {
19
19
  fiveHelper: FiveHelper;
20
20
  openParams: OpenParameter;
21
21
  editParams: EditParameter;
22
+ magnifierParams: ConstructorParameters<typeof Magnifier>[1];
22
23
  getMeasureType: () => MeasureType;
23
24
  hook: Subscribe<PanoMeasurePluginEvent>;
24
25
  userDistanceItemCreator?: () => UserDistanceItem;
@@ -36,6 +37,7 @@ export default class BaseController {
36
37
  protected container: Element;
37
38
  protected fiveHelper: FiveHelper;
38
39
  protected editParams: EditParameter;
40
+ protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
39
41
  protected hook: ControllerParams['hook'];
40
42
  protected magnifier: ControllerParams['magnifier'];
41
43
  protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
@@ -1,7 +1,7 @@
1
1
  var m = Object.defineProperty;
2
- var l = (s, e, i) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
3
- var t = (s, e, i) => (l(s, typeof e != "symbol" ? e + "" : e, i), i);
4
- import { Color as u } from "three";
2
+ var u = (s, e, i) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
3
+ var t = (s, e, i) => (u(s, typeof e != "symbol" ? e + "" : e, i), i);
4
+ import { Color as l } from "three";
5
5
  import h from "../Model/line.js";
6
6
  import r from "../Model/point.js";
7
7
  import { preventDefault as n } from "../utils/ironbox.js";
@@ -14,7 +14,7 @@ import "../utils/dom/distanceItem.js";
14
14
  import "../utils/dom/base.js";
15
15
  import "../utils/isNDCPointInScreen.js";
16
16
  import "../../shared-utils/removeArrayItem.js";
17
- class P {
17
+ class k {
18
18
  constructor(e) {
19
19
  t(this, "model");
20
20
  t(this, "five");
@@ -28,6 +28,7 @@ class P {
28
28
  t(this, "container");
29
29
  t(this, "fiveHelper");
30
30
  t(this, "editParams");
31
+ t(this, "magnifierParams");
31
32
  t(this, "hook");
32
33
  t(this, "magnifier");
33
34
  t(this, "userDistanceItemCreator");
@@ -36,7 +37,7 @@ class P {
36
37
  this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
37
38
  });
38
39
  var a, o;
39
- this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.editParams = e.editParams, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", console.log(this.dashed), this.perpendicularDashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new u(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
40
+ this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifierParams = e.magnifierParams, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.editParams = e.editParams, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new l(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
40
41
  const i = this.five.getElement();
41
42
  i && (i.addEventListener("touchstart", n), i.addEventListener("contextmenu", n));
42
43
  }
@@ -64,5 +65,5 @@ class P {
64
65
  }
65
66
  }
66
67
  export {
67
- P as default
68
+ k as default
68
69
  };