@realsee/dnalogel 2.22.0-dev.1 → 2.22.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 (312) hide show
  1. package/dist/index.cjs.js +5 -5
  2. package/dist/index.js +13 -9
  3. package/dist/index.umd.js +5 -5
  4. package/dist/shared-utils/three/PointSelector.d.ts +1 -0
  5. package/docs/classes/CSS3DRender.html +3 -3
  6. package/docs/classes/CruisePluginController.html +3 -3
  7. package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
  8. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
  9. package/docs/classes/Magnifier.html +3 -3
  10. package/docs/classes/ModelRoomLabelController.html +3 -3
  11. package/docs/classes/Object3DHelperController.html +3 -3
  12. package/docs/classes/PaintBrush.html +3 -3
  13. package/docs/classes/PanoMeasurePluginLine.html +3 -3
  14. package/docs/classes/PanoMeasurePluginModel.html +3 -3
  15. package/docs/classes/PanoMeasurePluginPoint.html +3 -3
  16. package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
  17. package/docs/classes/PanoTagPluginController.html +3 -3
  18. package/docs/classes/Util.BetterTween.html +3 -3
  19. package/docs/classes/Util.Interval.html +3 -3
  20. package/docs/classes/Util.Magnifier.html +3 -3
  21. package/docs/classes/Util.PointDomHelper.html +3 -3
  22. package/docs/classes/Util.PointHelper.html +3 -3
  23. package/docs/classes/Util.PointSelectorHelper.html +3 -3
  24. package/docs/classes/Util.Rectangle.html +3 -3
  25. package/docs/enums/CameraMovementEffect.html +3 -3
  26. package/docs/enums/ContentType.html +3 -3
  27. package/docs/enums/DIRECTION.html +3 -3
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
  29. package/docs/enums/DimensionType.html +3 -3
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
  32. package/docs/enums/PaintBrushTypeEnum.html +3 -3
  33. package/docs/enums/PointType.html +3 -3
  34. package/docs/enums/Rotation.html +3 -3
  35. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  36. package/docs/functions/CameraMovementPlugin.html +3 -3
  37. package/docs/functions/CruisePlugin.html +3 -3
  38. package/docs/functions/GuideLinePlugin.html +3 -3
  39. package/docs/functions/ItemLabelPlugin.html +3 -3
  40. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  41. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  42. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  43. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  44. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  45. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  46. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  47. package/docs/functions/ModelViewPlugin.html +3 -3
  48. package/docs/functions/Object3DHelperPlugin.html +3 -3
  49. package/docs/functions/PanoCompassPlugin.html +3 -3
  50. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  51. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  52. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  53. package/docs/functions/PanoMeasurePlugin.html +3 -3
  54. package/docs/functions/PanoRulerPlugin.html +3 -3
  55. package/docs/functions/PanoRulerProPlugin.html +3 -3
  56. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  57. package/docs/functions/PanoTagPlugin.html +3 -3
  58. package/docs/functions/PanoVideoPlugin.html +3 -3
  59. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  60. package/docs/functions/Util.absoluteUrl.html +3 -3
  61. package/docs/functions/Util.getCoordsFromClient.html +3 -3
  62. package/docs/functions/Util.getCoordsFromElement.html +3 -3
  63. package/docs/functions/Util.getFrameTime.html +3 -3
  64. package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
  65. package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
  66. package/docs/functions/Util.isAbsoluteURL.html +3 -3
  67. package/docs/functions/Util.isModelLike.html +3 -3
  68. package/docs/functions/Util.isNil.html +3 -3
  69. package/docs/functions/Util.isPanoramaLike.html +3 -3
  70. package/docs/functions/Util.nextFrame.html +3 -3
  71. package/docs/functions/Util.notNil.html +3 -3
  72. package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
  73. package/docs/functions/Util.tweenProgress.html +3 -3
  74. package/docs/functions/Util.uuid.html +3 -3
  75. package/docs/functions/pluginFlag.html +3 -3
  76. package/docs/index.html +4 -4
  77. package/docs/interfaces/AddTagConfig.html +3 -3
  78. package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
  79. package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
  80. package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
  81. package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
  82. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
  83. package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
  84. package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
  85. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
  86. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
  87. package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
  88. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
  89. package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
  90. package/docs/interfaces/EventMap.html +3 -3
  91. package/docs/interfaces/FloorplanBounding.html +3 -3
  92. package/docs/interfaces/FloorplanData.html +3 -3
  93. package/docs/interfaces/FloorplanEntrance.html +3 -3
  94. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  95. package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
  96. package/docs/interfaces/FloorplanFloorData.html +3 -3
  97. package/docs/interfaces/FloorplanImagePosition.html +3 -3
  98. package/docs/interfaces/FloorplanObserver.html +3 -3
  99. package/docs/interfaces/FloorplanOutlineItem.html +3 -3
  100. package/docs/interfaces/FloorplanPosition.html +3 -3
  101. package/docs/interfaces/FloorplanRoomItem.html +3 -3
  102. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  103. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  104. package/docs/interfaces/FloorplanServerComputedData.html +3 -3
  105. package/docs/interfaces/FloorplanServerData.html +3 -3
  106. package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
  107. package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
  108. package/docs/interfaces/FloorplanServerEntrance.html +3 -3
  109. package/docs/interfaces/FloorplanServerFloorData.html +3 -3
  110. package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
  111. package/docs/interfaces/FloorplanServerObserver.html +3 -3
  112. package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
  113. package/docs/interfaces/FloorplanServerPosition.html +3 -3
  114. package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
  115. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  116. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
  117. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
  118. package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
  119. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
  120. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
  121. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
  122. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
  123. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
  124. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
  125. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
  126. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
  127. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
  128. package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
  129. package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
  130. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
  131. package/docs/interfaces/HelperOffset.html +3 -3
  132. package/docs/interfaces/ImagePlaneGroup.html +3 -3
  133. package/docs/interfaces/ItemLabelPluginData.html +3 -3
  134. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
  135. package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
  136. package/docs/interfaces/MinMax.html +3 -3
  137. package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
  138. package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
  139. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
  140. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
  141. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
  142. package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
  143. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
  144. package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
  145. package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
  146. package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
  147. package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
  148. package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
  149. package/docs/interfaces/ModelViewPluginExportType.html +3 -3
  150. package/docs/interfaces/Object3DHelperState.html +3 -3
  151. package/docs/interfaces/ObjectHelperControllers.html +3 -3
  152. package/docs/interfaces/PaintBrushAction.html +3 -3
  153. package/docs/interfaces/PaintBrushConfigs.html +3 -3
  154. package/docs/interfaces/PaintBrushState.html +3 -3
  155. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
  156. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
  157. package/docs/interfaces/PanoMeasureParameterType.html +3 -3
  158. package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
  159. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
  160. package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
  161. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
  162. package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
  163. package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
  164. package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
  165. package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
  166. package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
  167. package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
  168. package/docs/interfaces/PanoRulerProPluginState.html +3 -3
  169. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
  170. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
  171. package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
  172. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
  173. package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
  174. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
  175. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
  176. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
  177. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
  178. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
  179. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
  180. package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
  181. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
  182. package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
  183. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
  184. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
  185. package/docs/interfaces/Point.html +3 -3
  186. package/docs/interfaces/Room.html +3 -3
  187. package/docs/interfaces/RoomInfo.html +3 -3
  188. package/docs/interfaces/RoomLabel.html +3 -3
  189. package/docs/interfaces/RoomRules.html +3 -3
  190. package/docs/interfaces/Rooms.html +3 -3
  191. package/docs/interfaces/Scissor.html +3 -3
  192. package/docs/interfaces/State.html +3 -3
  193. package/docs/interfaces/TagCacheInterface.html +3 -3
  194. package/docs/interfaces/TagConfig.html +3 -3
  195. package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
  196. package/docs/interfaces/TagIconUrl.html +3 -3
  197. package/docs/interfaces/TagObjectGroup.html +3 -3
  198. package/docs/interfaces/TagStyle.html +3 -3
  199. package/docs/interfaces/Tags.html +3 -3
  200. package/docs/interfaces/TemporaryState.html +3 -3
  201. package/docs/interfaces/Util.MagnifierParameter.html +3 -3
  202. package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
  203. package/docs/interfaces/Util.PointIntersection.html +3 -3
  204. package/docs/modules/CruisePluginTypes.html +3 -3
  205. package/docs/modules/GuideLineItem.html +3 -3
  206. package/docs/modules/GuideLineModeItem.html +3 -3
  207. package/docs/modules/GuideLinePluginType.html +3 -3
  208. package/docs/modules/PanoVideoPluginType.html +3 -3
  209. package/docs/modules/Util.html +3 -3
  210. package/docs/modules.html +4 -4
  211. package/docs/types/ArrayPosition.html +3 -3
  212. package/docs/types/AudioAppearance.html +3 -3
  213. package/docs/types/AudioTagTypeConfigKey.html +3 -3
  214. package/docs/types/CSS3DRenderExportType.html +3 -3
  215. package/docs/types/CSS3DRenderPluginExportType.html +3 -3
  216. package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
  217. package/docs/types/ClassFunctionParameters.html +3 -3
  218. package/docs/types/Color.html +3 -3
  219. package/docs/types/ContentTypeConfigKey.html +3 -3
  220. package/docs/types/ContentTypeConfigKeySplit.html +3 -3
  221. package/docs/types/ContentTypeMap.html +3 -3
  222. package/docs/types/Create3DDomContainerReturnType.html +3 -3
  223. package/docs/types/Create3DElementReturnType.html +3 -3
  224. package/docs/types/CruisePluginExportType.html +3 -3
  225. package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
  226. package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
  227. package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
  228. package/docs/types/DeprecatedTagProperty.html +3 -3
  229. package/docs/types/Direction-1.html +3 -3
  230. package/docs/types/Direction4.html +3 -3
  231. package/docs/types/ElementRenderer.html +3 -3
  232. package/docs/types/FloorplanRuleLabels.html +3 -3
  233. package/docs/types/FloorplanServerRuleLabels.html +3 -3
  234. package/docs/types/GuideLinePluginExportType.html +3 -3
  235. package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
  236. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
  237. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
  238. package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
  239. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
  240. package/docs/types/GuideLinePluginType.PathItem.html +3 -3
  241. package/docs/types/GuideLinePluginType.PluginData.html +3 -3
  242. package/docs/types/HelperEventMap.html +3 -3
  243. package/docs/types/LoadTagConfig.html +3 -3
  244. package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
  245. package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
  246. package/docs/types/MediaData.html +3 -3
  247. package/docs/types/MediaStore.html +3 -3
  248. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
  249. package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
  250. package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
  251. package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
  252. package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
  253. package/docs/types/MoveArgs.html +3 -3
  254. package/docs/types/MoveOpts.html +3 -3
  255. package/docs/types/Object3DHelperEventMap.html +3 -3
  256. package/docs/types/ObjectFit.html +3 -3
  257. package/docs/types/PaintBrushEventMap.html +3 -3
  258. package/docs/types/PanoCompassPluginData.html +3 -3
  259. package/docs/types/PanoCompassPluginExportType.html +3 -3
  260. package/docs/types/PanoCompassPluginParameterType.html +3 -3
  261. package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
  262. package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
  263. package/docs/types/PanoIndex.html +3 -3
  264. package/docs/types/PanoMeasurePluginEvent.html +3 -3
  265. package/docs/types/PanoMeasureReturnType.html +3 -3
  266. package/docs/types/PanoSpatialTagPluginId.html +3 -3
  267. package/docs/types/PanoTagPluginExportInterface.html +3 -3
  268. package/docs/types/PanoTagPluginParamsInterface.html +3 -3
  269. package/docs/types/PanoVideoPluginParameterType.html +3 -3
  270. package/docs/types/PanoVideoPluginReturnType.html +3 -3
  271. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
  272. package/docs/types/PlaneTag.html +3 -3
  273. package/docs/types/Point2DTag.html +3 -3
  274. package/docs/types/Point3DTag.html +3 -3
  275. package/docs/types/PointTag.html +3 -3
  276. package/docs/types/PointTagInstance.html +3 -3
  277. package/docs/types/Position.html +3 -3
  278. package/docs/types/RotateArgs.html +3 -3
  279. package/docs/types/RotateOpts.html +3 -3
  280. package/docs/types/RuleLabelsKey.html +3 -3
  281. package/docs/types/RuleLabelsValue.html +3 -3
  282. package/docs/types/StickType.html +3 -3
  283. package/docs/types/Tag.html +3 -3
  284. package/docs/types/Tag2D.html +3 -3
  285. package/docs/types/Tag3D.html +3 -3
  286. package/docs/types/TagContentType.html +3 -3
  287. package/docs/types/TagDimensionType.html +3 -3
  288. package/docs/types/TagElement.html +3 -3
  289. package/docs/types/TagEvents.html +3 -3
  290. package/docs/types/TagGLTFObject.html +3 -3
  291. package/docs/types/TagHooks.html +3 -3
  292. package/docs/types/TagId.html +3 -3
  293. package/docs/types/TagInstance.html +3 -3
  294. package/docs/types/TagPointType.html +3 -3
  295. package/docs/types/TagRendererMap.html +3 -3
  296. package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
  297. package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
  298. package/docs/types/WorkCode.html +3 -3
  299. package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
  300. package/docs/variables/PLUGIN.html +3 -3
  301. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
  302. package/docs/variables/ROOM_TYPE_MAP.html +3 -3
  303. package/docs/variables/itemLabelPluginServerParams.html +3 -3
  304. package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
  305. package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
  306. package/libs/PanoMeasurePlugin/Components/Tip.js +48 -48
  307. package/libs/PanoMeasurePlugin/Controller/EditController.js +70 -67
  308. package/libs/base/BasePlugin.js +1 -1
  309. package/libs/shared-utils/logger.js +1 -1
  310. package/libs/shared-utils/three/PointSelector.d.ts +1 -0
  311. package/libs/shared-utils/three/PointSelector.js +16 -15
  312. package/package.json +1 -1
@@ -1,46 +1,46 @@
1
- import { SvelteComponent as D, init as q, safe_not_equal as E, append_styles as N, empty as O, insert as M, transition_in as m, transition_out as _, check_outros as P, detach as w, onMount as W, onDestroy as j, element as b, text as A, attr as g, append as v, set_data as B, add_render_callback as F, create_bidirectional_transition as y, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
2
- import { fade as C } from "../../vendor/svelte/transition/index.js";
1
+ import { SvelteComponent as z, init as D, safe_not_equal as E, append_styles as N, empty as O, insert as M, transition_in as m, transition_out as _, check_outros as P, detach as w, onMount as W, onDestroy as j, element as b, 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 T } from "../../vendor/svelte/transition/index.js";
3
3
  import "../../vendor/svelte/easing/index.js";
4
- function I(s) {
5
- N(s, "svelte-1kdvs98", ".Measure-Tips.svelte-1kdvs98.svelte-1kdvs98{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1kdvs98 .text.svelte-1kdvs98{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem}");
4
+ function I(l) {
5
+ N(l, "svelte-1q8gtp4", ".Measure-Tips.svelte-1q8gtp4.svelte-1q8gtp4{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1q8gtp4 .text.svelte-1q8gtp4{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem;font-weight:bold}");
6
6
  }
7
- function T(s) {
7
+ function v(l) {
8
8
  let n, i, e, t, r;
9
9
  return {
10
10
  c() {
11
11
  n = b("div"), i = b("div"), e = A(
12
12
  /*tip*/
13
- s[2]
14
- ), g(i, "class", "text svelte-1kdvs98"), g(n, "class", "Measure-Tips svelte-1kdvs98");
13
+ l[2]
14
+ ), k(i, "class", "text svelte-1q8gtp4"), k(n, "class", "Measure-Tips svelte-1q8gtp4");
15
15
  },
16
- m(l, a) {
17
- M(l, n, a), v(n, i), v(i, e), s[6](i), r = !0;
16
+ m(s, f) {
17
+ M(s, n, f), y(n, i), y(i, e), l[6](i), r = !0;
18
18
  },
19
- p(l, a) {
20
- (!r || a & /*tip*/
19
+ p(s, f) {
20
+ (!r || f & /*tip*/
21
21
  4) && B(
22
22
  e,
23
23
  /*tip*/
24
- l[2]
24
+ s[2]
25
25
  );
26
26
  },
27
- i(l) {
27
+ i(s) {
28
28
  r || (F(() => {
29
- r && (t || (t = y(n, C, {}, !0)), t.run(1));
29
+ r && (t || (t = C(n, T, {}, !0)), t.run(1));
30
30
  }), r = !0);
31
31
  },
32
- o(l) {
33
- t || (t = y(n, C, {}, !1)), t.run(0), r = !1;
32
+ o(s) {
33
+ t || (t = C(n, T, {}, !1)), t.run(0), r = !1;
34
34
  },
35
- d(l) {
36
- l && w(n), s[6](null), l && t && t.end();
35
+ d(s) {
36
+ s && w(n), l[6](null), s && t && t.end();
37
37
  }
38
38
  };
39
39
  }
40
- function J(s) {
40
+ function J(l) {
41
41
  let n, i, e = (
42
42
  /*visible*/
43
- s[0] && T(s)
43
+ l[0] && v(l)
44
44
  );
45
45
  return {
46
46
  c() {
@@ -52,7 +52,7 @@ function J(s) {
52
52
  p(t, [r]) {
53
53
  /*visible*/
54
54
  t[0] ? e ? (e.p(t, r), r & /*visible*/
55
- 1 && m(e, 1)) : (e = T(t), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), _(e, 1, 1, () => {
55
+ 1 && m(e, 1)) : (e = v(t), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), _(e, 1, 1, () => {
56
56
  e = null;
57
57
  }), P());
58
58
  },
@@ -67,47 +67,47 @@ function J(s) {
67
67
  }
68
68
  };
69
69
  }
70
- function K(s, n, i) {
71
- let { measureController: e } = n, { tips: t } = n, { tipStyle: r = {} } = n, { visible: l = !0 } = n, a = null;
72
- const x = (o) => {
73
- const z = e.currentMeasureType;
70
+ function K(l, n, i) {
71
+ let { measureController: e } = n, { tips: t } = n, { tipStyle: r = {} } = n, { visible: s = !0 } = n, f = null;
72
+ const q = (o) => {
73
+ const S = e.currentMeasureType;
74
74
  let u = "";
75
- return u = t[o], u === void 0 && (u = t[z][o]), u;
75
+ return u = t[o], u === void 0 && (u = t[S][o]), u;
76
76
  }, c = (o) => {
77
- i(2, d = x(o));
78
- }, f = () => {
79
- i(2, d = "");
77
+ i(2, p = q(o));
78
+ }, a = () => {
79
+ i(2, p = "");
80
80
  };
81
- let d = "";
82
- const p = (o) => {
83
- o === "Edit" && e.changeMeasureType ? c("start") : f();
81
+ let p = "";
82
+ const d = (o) => {
83
+ o === "Edit" && e.changeMeasureType ? c("start") : a();
84
84
  }, h = () => {
85
- e.getCurrentMode() === "Watch" && f();
86
- }, k = (o) => {
87
- e.currentMeasureType === "area" && (o.length >= 2 ? c("close") : o.length === 0 ? c("start") : f());
85
+ e.getCurrentMode() === "Watch" && a();
86
+ }, g = (o) => {
87
+ e.currentMeasureType === "area" && (o.length >= 2 ? c("close") : o.length === 0 ? c("start") : a());
88
88
  };
89
89
  W(() => {
90
- p(e.getCurrentMode()), e.hook.on("modeChange", p), e.hook.on("complete", h), e.hook.on("pointsChange", k), e.hook.on("measureTypeChange", f);
90
+ d(e.getCurrentMode()), e.hook.on("modeChange", d), e.hook.on("complete", h), e.hook.on("pointsChange", g), e.hook.on("measureTypeChange", a);
91
91
  }), j(() => {
92
- e.hook.off("modeChange", p), e.hook.off("complete", h), e.hook.off("pointsChange", k), e.hook.off("measureTypeChange", f), f();
92
+ e.hook.off("modeChange", d), e.hook.off("complete", h), e.hook.off("pointsChange", g), e.hook.off("measureTypeChange", a), a();
93
93
  });
94
- function S(o) {
94
+ function x(o) {
95
95
  H[o ? "unshift" : "push"](() => {
96
- a = o, i(1, a), i(5, r);
96
+ f = o, i(1, f), i(5, r);
97
97
  });
98
98
  }
99
- return s.$$set = (o) => {
100
- "measureController" in o && i(3, e = o.measureController), "tips" in o && i(4, t = o.tips), "tipStyle" in o && i(5, r = o.tipStyle), "visible" in o && i(0, l = o.visible);
101
- }, s.$$.update = () => {
102
- if (s.$$.dirty & /*textDom, tipStyle*/
103
- 34 && a)
99
+ return l.$$set = (o) => {
100
+ "measureController" in o && i(3, e = o.measureController), "tips" in o && i(4, t = o.tips), "tipStyle" in o && i(5, r = o.tipStyle), "visible" in o && i(0, s = o.visible);
101
+ }, l.$$.update = () => {
102
+ if (l.$$.dirty & /*textDom, tipStyle*/
103
+ 34 && f)
104
104
  for (const o in r)
105
- r.hasOwnProperty(o) && i(1, a.style[o] = r[o], a);
106
- }, [l, a, d, e, t, r, S];
105
+ r.hasOwnProperty(o) && i(1, f.style[o] = r[o], f);
106
+ }, [s, f, p, e, t, r, x];
107
107
  }
108
- class U extends D {
108
+ class U extends z {
109
109
  constructor(n) {
110
- super(), q(
110
+ super(), D(
111
111
  this,
112
112
  n,
113
113
  K,
@@ -1,11 +1,11 @@
1
1
  var R = Object.defineProperty;
2
- var b = (m, c, t) => c in m ? R(m, c, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[c] = t;
3
- var o = (m, c, t) => (b(m, typeof c != "symbol" ? c + "" : c, t), t);
2
+ var b = (m, c, e) => c in m ? R(m, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[c] = e;
3
+ var o = (m, c, e) => (b(m, typeof c != "symbol" ? c + "" : c, e), e);
4
4
  import U from "../Model/line.js";
5
- import S from "../Model/point.js";
5
+ import C from "../Model/point.js";
6
6
  import { throttle as H } from "../../shared-utils/throttle.js";
7
7
  import j from "./BaseController.js";
8
- import { Polyline as k } from "../Model/polyline.js";
8
+ import { Polyline as S } from "../Model/polyline.js";
9
9
  import D from "../Model/area.js";
10
10
  import T from "../utils/isIntersecting.js";
11
11
  import { PointSelector as x } from "../../shared-utils/three/PointSelector.js";
@@ -66,9 +66,9 @@ import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
66
66
  import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
67
67
  const E = () => !1;
68
68
  class Xe extends j {
69
- constructor(t) {
70
- var e;
71
- super(t);
69
+ constructor(e) {
70
+ var t;
71
+ super(e);
72
72
  o(this, "type", "edit");
73
73
  o(this, "polyline");
74
74
  o(this, "area");
@@ -80,8 +80,8 @@ class Xe extends j {
80
80
  o(this, "pointSelector");
81
81
  o(this, "deleteDom");
82
82
  /** 根据 intersection 更新放大镜和吸附点 */
83
- o(this, "onIntersectionUpdate", H((t, e) => {
84
- this.currentMeasureType === "area" && typeof e == "boolean" && (e ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed();
83
+ o(this, "onIntersectionUpdate", H((e, t) => {
84
+ this.currentMeasureType === "area" && typeof t == "boolean" && (t ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed();
85
85
  }, 20));
86
86
  /** 撤销编辑 */
87
87
  o(this, "revoke", () => {
@@ -96,23 +96,23 @@ class Xe extends j {
96
96
  this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
97
97
  return;
98
98
  } else
99
- this.lastPoint = new S(this.area.points[this.area.points.length - 1]), this.updateDashed();
99
+ this.lastPoint = new C(this.area.points[this.area.points.length - 1]), this.updateDashed();
100
100
  this.five.needsRender = !0;
101
101
  }
102
102
  });
103
103
  /**
104
104
  * @description: 测距的撤销功能
105
105
  */
106
- o(this, "revokeLine", (t) => {
107
- const e = t || this.polyline;
108
- if (e.lines.length === 0 && this.lastPoint) {
106
+ o(this, "revokeLine", (e) => {
107
+ const t = e || this.polyline;
108
+ if (t.lines.length === 0 && this.lastPoint) {
109
109
  this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0;
110
110
  return;
111
111
  }
112
- if (e.lines.length === 0 && !this.lastPoint || !this.lastPoint)
112
+ if (t.lines.length === 0 && !this.lastPoint || !this.lastPoint)
113
113
  return;
114
- const i = e.lines[e.lines.length - 1], s = i.findAnotherPoint(this.lastPoint);
115
- s && (this.lastPoint = s, this.hook.emit("anchorChange", s.position), this.group.remove(i.mesh), e.removeLine(i), i.distanceItem.remove(), this.updateDashed(), this.hook.emit("pointsChange", e.lines), this.five.needsRender = !0);
114
+ const i = t.lines[t.lines.length - 1], s = i.findAnotherPoint(this.lastPoint);
115
+ s && (this.lastPoint = s, this.hook.emit("anchorChange", s.position), this.group.remove(i.mesh), t.removeLine(i), i.distanceItem.remove(), this.updateDashed(), this.hook.emit("pointsChange", t.lines), this.five.needsRender = !0);
116
116
  });
117
117
  o(this, "onMouseLeave", () => {
118
118
  this.dashed.hide(), this.perpendicularDashed.hide(), this.area.hideArea();
@@ -123,8 +123,8 @@ class Xe extends j {
123
123
  });
124
124
  o(this, "onWantsSelect", () => {
125
125
  if (this.currentMeasureType === "area") {
126
- const t = this.area.polygon.isBlank || this.area.polygon.visible === !1;
127
- if (this.area.points.length >= 3 && t)
126
+ const e = this.area.polygon.isBlank || this.area.polygon.visible === !1;
127
+ if (this.area.points.length >= 3 && e)
128
128
  return !1;
129
129
  }
130
130
  });
@@ -136,26 +136,26 @@ class Xe extends j {
136
136
  o(this, "onSelect", () => {
137
137
  var s, r, l, d;
138
138
  this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh), this.currentMeasureType === "area" && this.group.add(this.perpendicularDashed.mesh)), this.hasAppendDashed = !0;
139
- const t = (() => {
139
+ const e = (() => {
140
140
  var a, n;
141
141
  if (this.currentMeasureType === "area")
142
142
  return this.area.projectPoint((a = this.pointSelector.position) == null ? void 0 : a.point);
143
143
  if (this.currentMeasureType === "line")
144
144
  return (n = this.pointSelector.position) == null ? void 0 : n.point;
145
145
  })();
146
- if (!t)
146
+ if (!e)
147
147
  return;
148
- const e = new S(t), i = this.lastPoint;
149
- if (!(i != null && i.position && e.position.equals(i == null ? void 0 : i.position))) {
150
- if (this.lastPoint = e, this.currentMeasureType === "line") {
151
- if (e && i) {
152
- const n = new U(i, e, this.model);
148
+ const t = new C(e), i = this.lastPoint;
149
+ if (!(i != null && i.position && t.position.equals(i == null ? void 0 : i.position))) {
150
+ if (this.lastPoint = t, this.currentMeasureType === "line") {
151
+ if (t && i) {
152
+ const n = new U(i, t, this.model);
153
153
  n.distanceItem.setCanSelect(!1), n.distanceItem.appendTo(this.container), this.polyline.addLine(n), this.group.add(n.mesh), n.distanceItem.update(this.five);
154
154
  }
155
155
  const a = (r = (s = this.editParams) == null ? void 0 : s.autoEndConfig) == null ? void 0 : r.line;
156
156
  typeof a == "number" && (this.polyline.getPointLength() >= a ? this.complete() : this.polyline.getPointLength() === a - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.polyline.points);
157
157
  } else if (this.currentMeasureType === "area") {
158
- if (this.area.addPoints(e.position), this.area.isClosed) {
158
+ if (this.area.addPoints(t.position), this.area.isClosed) {
159
159
  this.complete();
160
160
  return;
161
161
  }
@@ -163,7 +163,7 @@ class Xe extends j {
163
163
  const a = (d = (l = this.editParams) == null ? void 0 : l.autoEndConfig) == null ? void 0 : d.area;
164
164
  typeof a == "number" && (this.area.points.length >= a ? this.complete() : this.area.points.length === a - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.area.points);
165
165
  }
166
- this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", e.position);
166
+ this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", t.position);
167
167
  }
168
168
  });
169
169
  /** 移动全景时更新 distanceItem 在屏幕上的位置 */
@@ -175,31 +175,31 @@ class Xe extends j {
175
175
  var i;
176
176
  if (!this.lastPoint)
177
177
  return;
178
- const t = this.lastPoint.position, e = (() => {
178
+ const e = this.lastPoint.position, t = (() => {
179
179
  var s, r;
180
180
  if (this.currentMeasureType === "area")
181
181
  return this.area.projectPoint((s = this.pointSelector.position) == null ? void 0 : s.point);
182
182
  if (this.currentMeasureType === "line")
183
183
  return (r = this.pointSelector.position) == null ? void 0 : r.point;
184
184
  })();
185
- if (!e) {
185
+ if (!t) {
186
186
  this.dashed.hide();
187
187
  return;
188
188
  }
189
- if (this.dashed.show(), this.dashed.setPoints(t, e), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed), this.currentMeasureType === "area")
189
+ if (this.dashed.show(), this.dashed.setPoints(e, t), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed), this.currentMeasureType === "area")
190
190
  if (this.area.areaItem.setCanSelect(!1), this.area.points.length >= 2) {
191
191
  const s = (i = this.pointSelector.position) == null ? void 0 : i.point;
192
192
  if (s) {
193
- const n = s, g = e;
193
+ const n = s, g = t;
194
194
  this.perpendicularDashed.setPoints(n, g), this.perpendicularDashed.show();
195
195
  } else
196
196
  this.perpendicularDashed.hide();
197
- const r = this.area.polyline.lines.map((n) => ({ start: n.points[0].position, end: n.points[1].position })), l = T({ start: t, end: e }, r), d = T({ start: e, end: this.area.points[0] }, r);
197
+ const r = this.area.polyline.lines.map((n) => ({ start: n.points[0].position, end: n.points[1].position })), l = T({ start: e, end: t }, r), d = T({ start: t, end: this.area.points[0] }, r);
198
198
  if (l || d)
199
199
  this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
200
200
  else {
201
201
  this.area.showArea();
202
- const n = [...this.area.points, e];
202
+ const n = [...this.area.points, t];
203
203
  this.area.polygon.updatePoints(n), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
204
204
  }
205
205
  } else
@@ -208,19 +208,19 @@ class Xe extends j {
208
208
  });
209
209
  // ====================================================================================================================================
210
210
  // 下面一堆高亮相关
211
- o(this, "wantsTapGesture", (t) => {
212
- var A, C;
211
+ o(this, "wantsTapGesture", (e) => {
212
+ var A, k;
213
213
  if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
214
214
  return !1;
215
- const e = this.model.areas.map((h) => t.intersectObject(h.polygon, !0)[0]).sort((h, p) => h.distance - p.distance), i = (C = (A = e[0]) == null ? void 0 : A.object) == null ? void 0 : C.parent;
215
+ const t = this.model.areas.map((h) => e.intersectObject(h.polygon, !0)[0]).sort((h, p) => h.distance - p.distance), i = (k = (A = t[0]) == null ? void 0 : A.object) == null ? void 0 : k.parent;
216
216
  if (i != null && i.isPolygonMesh) {
217
217
  const h = this.model.areas.find((p) => p.polygon === i);
218
218
  if (h) {
219
- const { x: p, y: v } = e[0].point.clone().project(this.five.camera), f = `${(p + 1) / 2 * 100}%`, u = `${(-v + 1) / 2 * 100}%`;
219
+ const { x: p, y: v } = t[0].point.clone().project(this.five.camera), f = `${(p + 1) / 2 * 100}%`, u = `${(-v + 1) / 2 * 100}%`;
220
220
  return this.chooseArea(h, { left: f, top: u }), !1;
221
221
  }
222
222
  }
223
- const [s] = this.five.model.intersectRaycaster(t);
223
+ const [s] = this.five.model.intersectRaycaster(e);
224
224
  if (!s)
225
225
  return;
226
226
  const r = this.five.camera, l = s.point.clone().project(r), d = this.container.clientWidth, a = this.container.clientHeight, n = new y(l.x * d, l.y * a), g = this.model.getAllLines().map((h) => {
@@ -242,18 +242,19 @@ class Xe extends j {
242
242
  if (L)
243
243
  return this.chooseLine(L), !1;
244
244
  });
245
- o(this, "chooseLine", (t) => {
246
- const e = B(t);
247
- this.deleteDom.setTarget(e).setLines(e).updatePosition().show(), this.highlightLines(e), this.hook.emit("selectedChange", e);
245
+ o(this, "chooseLine", (e) => {
246
+ console.log(e);
247
+ const t = B(e);
248
+ this.deleteDom.setTarget(t).setLines(t).updatePosition().show(), this.highlightLines(t), this.hook.emit("selectedChange", t);
248
249
  });
249
- o(this, "chooseArea", (t, e) => {
250
- console.log("choose area"), this.deleteDom.setTarget(t).updatePosition(e.left, `calc(${e.top} - 1.5rem)`).show(), this.highlightArea(t);
250
+ o(this, "chooseArea", (e, t) => {
251
+ console.log("choose area"), this.deleteDom.setTarget(e).updatePosition(t.left, `calc(${t.top} - 1.5rem)`).show(), this.highlightArea(e);
251
252
  });
252
- o(this, "deleteArea", (t) => {
253
- this.unHighlightArea(t), t.dispose(), this.deleteDom.hide();
253
+ o(this, "deleteArea", (e) => {
254
+ this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
254
255
  });
255
- o(this, "deleteLine", (t) => {
256
- const e = t[0], i = this.model.getPolylineByLine(e);
256
+ o(this, "deleteLine", (e) => {
257
+ const t = e[0], i = this.model.getPolylineByLine(t);
257
258
  i && (this.model.removePolyline(i), i.lines.forEach((s) => this.removeLine(s)), this.deleteDom.setLines([]).hide());
258
259
  });
259
260
  this.fiveElement = this.five.getElement(), this.deleteDom = new G(this.five, {
@@ -272,24 +273,24 @@ class Xe extends j {
272
273
  }).appendTo(this.container), this.pointSelector = new x(this.five, {
273
274
  mode: this.editParams.pointSelectorMode,
274
275
  pointSelectorHelperParams: { magnifierParams: this.magnifierParams }
275
- }), this.pointSelector.enable(), this.polyline = new k({ model: this.model }), this.area = new D(void 0, {
276
+ }), this.pointSelector.enable(), this.polyline = new S({ model: this.model }), this.area = new D(void 0, {
276
277
  five: this.five,
277
278
  model: this.model,
278
279
  meshContainer: this.group,
279
280
  domContainer: this.container
280
281
  }), this.model.addPolyline(this.polyline), this.model.addArea(this.area), this.model.getAllLines().forEach((i) => {
281
- i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), i.distanceItem.setCanSelect(!0), this.group.add(i.mesh);
282
+ i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), i.distanceItem.setCanSelect(!0), i.hook.on("selected", this.chooseLine), this.group.add(i.mesh);
282
283
  }), this.model.getAllAreas().forEach((i) => {
283
- i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), this.group.add(i.polygon), i.polyline.lines.forEach((s) => {
284
+ i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), i.hook.on("selected", this.chooseArea), this.group.add(i.polygon), i.polyline.lines.forEach((s) => {
284
285
  s.distanceItem.appendTo(this.container), s.distanceItem.update(this.five), this.group.add(s.mesh);
285
286
  });
286
- }), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano", E), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.on("select", this.onSelect), this.pointSelector.hook.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, (e = this.fiveElement) == null || e.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
287
+ }), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano", E), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.on("select", this.onSelect), this.pointSelector.hook.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, (t = this.fiveElement) == null || t.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
287
288
  }
288
289
  dispose() {
289
- var t;
290
- super.dispose(), this.model.areas.forEach((e) => {
291
- (e.points.length < 2 || e.polygon.isBlank) && this.model.removeArea(e);
292
- }), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano", E), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.off("select", this.onSelect), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (t = this.fiveElement) == null || t.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
290
+ var e;
291
+ super.dispose(), this.model.areas.forEach((t) => {
292
+ (t.points.length < 2 || t.polygon.isBlank) && this.model.removeArea(t);
293
+ }), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano", E), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.off("select", this.onSelect), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
293
294
  }
294
295
  getEditingLines() {
295
296
  return this.polyline.lines;
@@ -298,24 +299,26 @@ class Xe extends j {
298
299
  this.onSelect();
299
300
  }
300
301
  complete() {
301
- this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete()), this.area = new D(void 0, { five: this.five, model: this.model, meshContainer: this.group, domContainer: this.container }), this.model.addArea(this.area)) : this.currentMeasureType === "line" && (this.polyline = new k({ model: this.model }), this.model.addPolyline(this.polyline)), this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.lastPoint = void 0;
302
+ this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete(), this.area.hook.on("selected", this.chooseArea)), this.area = new D(void 0, { five: this.five, model: this.model, meshContainer: this.group, domContainer: this.container }), this.model.addArea(this.area)) : this.currentMeasureType === "line" && (this.polyline.lines.forEach((e) => {
303
+ e.hook.on("selected", this.chooseLine), e.distanceItem.setCanSelect(!0);
304
+ }), this.polyline = new S({ model: this.model }), this.model.addPolyline(this.polyline)), this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.lastPoint = void 0;
302
305
  }
303
- highlightArea(t) {
304
- this.highlightLines(t.polyline.lines), this.five.needsRender = !0;
306
+ highlightArea(e) {
307
+ this.highlightLines(e.polyline.lines), this.five.needsRender = !0;
305
308
  }
306
- unHighlightArea(t) {
307
- this.unHighlightLines(t.polyline.lines), this.five.needsRender = !0;
309
+ unHighlightArea(e) {
310
+ this.unHighlightLines(e.polyline.lines), this.five.needsRender = !0;
308
311
  }
309
- highlightLines(t) {
310
- t.forEach((e) => this.highlightLine(e));
312
+ highlightLines(e) {
313
+ e.forEach((t) => this.highlightLine(t));
311
314
  }
312
- unHighlightLines(t) {
313
- t.forEach((e) => {
314
- e.selected = !1, e.distanceItem.unHighlight(), this.group.remove(e.lightMesh), this.five.needsRender = !0;
315
+ unHighlightLines(e) {
316
+ e.forEach((t) => {
317
+ t.selected = !1, t.distanceItem.unHighlight(), this.group.remove(t.lightMesh), this.five.needsRender = !0;
315
318
  });
316
319
  }
317
- highlightLine(t) {
318
- t.selected || (t.selected = !0, this.group.add(t.lightMesh), t.distanceItem.highlight(), this.five.needsRender = !0);
320
+ highlightLine(e) {
321
+ e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
319
322
  }
320
323
  }
321
324
  export {
@@ -14,7 +14,7 @@ let b = class {
14
14
  /**
15
15
  * @realsee/dnalogel 版本号
16
16
  */
17
- i(this, "VERSION", "2.22.0-dev.1");
17
+ i(this, "VERSION", "2.22.0-dev.2");
18
18
  i(this, "five");
19
19
  /**
20
20
  * 插件事件钩子
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv2.22.0-dev.1",
3
+ "%c %c@realsee/dnalogel %cv2.22.0-dev.2",
4
4
  [
5
5
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
6
6
  "background-repeat: no-repeat",
@@ -43,6 +43,7 @@ export declare class PointSelector {
43
43
  private adherePoints;
44
44
  /** 吸附点的半径 */
45
45
  private adherePointsRadius;
46
+ private lastFiveHelperVisible?;
46
47
  constructor(five: Five, config?: Partial<Config>);
47
48
  enable(): void;
48
49
  disable(): void;
@@ -12,12 +12,12 @@ var p = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writab
12
12
  }, c = (s, e) => v(s, P(e));
13
13
  var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import { Subscribe as H } from "@realsee/five";
15
- import { PointSelectorHelper as y } from "./PointSelectorHelper.js";
16
- import { isTouchDevice as b } from "../isTouchDevice.js";
17
- import U from "hammerjs";
15
+ import { PointSelectorHelper as b } from "./PointSelectorHelper.js";
16
+ import { isTouchDevice as y } from "../isTouchDevice.js";
17
+ import F from "hammerjs";
18
18
  import { getIntersectionFromEvent as d } from "../getIntersectionFromEvent.js";
19
- import { Vector3 as E, Object3D as M, Face3 as F, Vector2 as I, Raycaster as O } from "three";
20
- import { getIntersectFromRelativePosition as k } from "./getIntersect.js";
19
+ import { Vector3 as U, Object3D as E, Face3 as M, Vector2 as I, Raycaster as O } from "three";
20
+ import { getIntersectFromRelativePosition as V } from "./getIntersect.js";
21
21
  const l = () => !1;
22
22
  class W {
23
23
  constructor(e, t) {
@@ -37,6 +37,7 @@ class W {
37
37
  i(this, "adherePoints", null);
38
38
  /** 吸附点的半径 */
39
39
  i(this, "adherePointsRadius", 0.1);
40
+ i(this, "lastFiveHelperVisible");
40
41
  /**
41
42
  * @description: 主动触发一次选点
42
43
  * @return: select 是否成功
@@ -102,7 +103,7 @@ class W {
102
103
  * @description: 根据鼠标位置更新helper位置
103
104
  */
104
105
  i(this, "updateByNdcPosition", (e) => {
105
- const t = k(this.five, e), o = (() => t ? c(a({}, t), { isVirtual: !1 }) : c(a({}, x(this.five, e)), { isVirtual: !0 }))();
106
+ const t = V(this.five, e), o = (() => t ? c(a({}, t), { isVirtual: !1 }) : c(a({}, C(this.five, e)), { isVirtual: !0 }))();
106
107
  this.updatePointSelectorHelperIntersect(o);
107
108
  });
108
109
  /**
@@ -134,12 +135,12 @@ class W {
134
135
  var n, h;
135
136
  this.five = e;
136
137
  const o = (n = t == null ? void 0 : t.mode) != null ? n : "auto";
137
- o === "auto" ? this.mode = b ? "fixed" : "cursor" : this.mode = o;
138
+ o === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = o;
138
139
  const r = {
139
140
  autoFixPCPosition: this.mode === "cursor",
140
141
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
141
142
  };
142
- this.pointSelectorHelper = new y(e, c(a({}, t == null ? void 0 : t.pointSelectorHelperParams), {
143
+ this.pointSelectorHelper = new b(e, c(a({}, t == null ? void 0 : t.pointSelectorHelperParams), {
143
144
  magnifierParams: a(a({}, r), (h = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : h.magnifierParams)
144
145
  })), this.pointSelectorHelper.hide();
145
146
  }
@@ -153,14 +154,14 @@ class W {
153
154
  const e = this.five.getElement();
154
155
  if (!e)
155
156
  throw new Error("five element not found");
156
- this.hammer || (this.hammer = new U(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate);
157
+ this.hammer || (this.hammer = new F(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsChangeMode", l), this.five.on("wantsTapGesture", l), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate);
157
158
  }
158
159
  disable() {
159
160
  if (!this.enabled)
160
161
  return;
161
162
  this.enabled = !1, this.pointSelectorHelper.disable();
162
163
  const e = this.five.getElement();
163
- this.five.off("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", l), this.five.off("wantsChangeMode", l), this.five.off("wantsTapGesture", l), e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate);
164
+ this.five.off("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", l), this.five.off("wantsChangeMode", l), this.five.off("wantsTapGesture", l), this.five.helperVisible = this.lastFiveHelperVisible, e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate);
164
165
  }
165
166
  dispose() {
166
167
  this.disable(), this.pointSelectorHelper.dispose();
@@ -169,17 +170,17 @@ class W {
169
170
  e ? this.adherePoints = Array.isArray(e) ? e : [e] : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
170
171
  }
171
172
  }
172
- function C(s, e) {
173
+ function k(s, e) {
173
174
  const { x: t, y: o } = e, r = t * 2 - 1, n = o * 2 - 1, h = new I().fromArray([r, n]), f = new O();
174
175
  return f.setFromCamera(h, s.camera), f;
175
176
  }
176
- function x(s, e) {
177
- const t = C(s, e), o = 3, r = new E().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
177
+ function C(s, e) {
178
+ const t = k(s, e), o = 3, r = new U().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(o)), n = t.ray.direction.clone().negate();
178
179
  return {
179
180
  distance: o,
180
181
  point: r,
181
- object: new M(),
182
- face: new F(0, 0, 0, n)
182
+ object: new E(),
183
+ face: new M(0, 0, 0, n)
183
184
  };
184
185
  }
185
186
  export {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.22.0-dev.1",
10
+ "version": "2.22.0-dev.2",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",