@realsee/dnalogel 2.22.0 → 2.23.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
  2. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  3. package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
  4. package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
  6. package/dist/index.cjs.js +62 -66
  7. package/dist/index.js +5869 -5598
  8. package/dist/index.umd.js +55 -59
  9. package/docs/classes/CSS3DRender.html +30 -30
  10. package/docs/classes/CruisePluginController.html +25 -25
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
  13. package/docs/classes/Magnifier.html +19 -19
  14. package/docs/classes/ModelRoomLabelController.html +10 -10
  15. package/docs/classes/Object3DHelperController.html +24 -24
  16. package/docs/classes/PaintBrush.html +14 -14
  17. package/docs/classes/PanoMeasurePluginLine.html +26 -26
  18. package/docs/classes/PanoMeasurePluginModel.html +26 -26
  19. package/docs/classes/PanoMeasurePluginPoint.html +13 -13
  20. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  21. package/docs/classes/PanoTagPluginController.html +48 -48
  22. package/docs/classes/Util.BetterTween.html +8 -8
  23. package/docs/classes/Util.Interval.html +11 -11
  24. package/docs/classes/Util.Magnifier.html +19 -19
  25. package/docs/classes/Util.PointDomHelper.html +10 -10
  26. package/docs/classes/Util.PointHelper.html +10 -10
  27. package/docs/classes/Util.PointSelectorHelper.html +15 -15
  28. package/docs/classes/Util.Rectangle.html +12 -12
  29. package/docs/enums/CameraMovementEffect.html +6 -6
  30. package/docs/enums/ContentType.html +19 -19
  31. package/docs/enums/DIRECTION.html +8 -8
  32. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
  33. package/docs/enums/DimensionType.html +6 -6
  34. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
  35. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
  36. package/docs/enums/PaintBrushTypeEnum.html +7 -7
  37. package/docs/enums/PointType.html +6 -6
  38. package/docs/enums/Rotation.html +7 -7
  39. package/docs/functions/CSS3DRenderPlugin.html +3 -3
  40. package/docs/functions/CameraMovementPlugin.html +3 -3
  41. package/docs/functions/CruisePlugin.html +3 -3
  42. package/docs/functions/GuideLinePlugin.html +4 -4
  43. package/docs/functions/ItemLabelPlugin.html +3 -3
  44. package/docs/functions/MapviewFloorplanPlugin.html +3 -3
  45. package/docs/functions/ModelChassisCompassPlugin.html +3 -3
  46. package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
  47. package/docs/functions/ModelFloorplanPlugin.html +3 -3
  48. package/docs/functions/ModelItemLabelPlugin.html +3 -3
  49. package/docs/functions/ModelRoomLabelPlugin.html +3 -3
  50. package/docs/functions/ModelTVVideoPlugin.html +3 -3
  51. package/docs/functions/ModelViewPlugin.html +3 -3
  52. package/docs/functions/Object3DHelperPlugin.html +3 -3
  53. package/docs/functions/PanoCompassPlugin.html +3 -3
  54. package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
  55. package/docs/functions/PanoDoorLabelPlugin.html +3 -3
  56. package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
  57. package/docs/functions/PanoMeasurePlugin.html +3 -3
  58. package/docs/functions/PanoRulerPlugin.html +3 -3
  59. package/docs/functions/PanoRulerProPlugin.html +3 -3
  60. package/docs/functions/PanoSpatialTagPlugin.html +3 -3
  61. package/docs/functions/PanoTagPlugin.html +3 -3
  62. package/docs/functions/PanoVideoPlugin.html +3 -3
  63. package/docs/functions/TopviewFloorplanPlugin.html +3 -3
  64. package/docs/functions/Util.absoluteUrl.html +4 -4
  65. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  66. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  67. package/docs/functions/Util.getFrameTime.html +4 -4
  68. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  69. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  70. package/docs/functions/Util.isAbsoluteURL.html +4 -4
  71. package/docs/functions/Util.isModelLike.html +4 -4
  72. package/docs/functions/Util.isNil.html +4 -4
  73. package/docs/functions/Util.isPanoramaLike.html +4 -4
  74. package/docs/functions/Util.nextFrame.html +4 -4
  75. package/docs/functions/Util.notNil.html +4 -4
  76. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  77. package/docs/functions/Util.tweenProgress.html +4 -4
  78. package/docs/functions/Util.uuid.html +4 -4
  79. package/docs/functions/pluginFlag.html +4 -4
  80. package/docs/index.html +4 -4
  81. package/docs/interfaces/AddTagConfig.html +5 -5
  82. package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
  83. package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
  84. package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
  85. package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
  86. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
  87. package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
  88. package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
  89. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
  90. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
  91. package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
  92. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
  93. package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
  94. package/docs/interfaces/EventMap.html +14 -14
  95. package/docs/interfaces/FloorplanBounding.html +7 -7
  96. package/docs/interfaces/FloorplanData.html +9 -9
  97. package/docs/interfaces/FloorplanEntrance.html +10 -10
  98. package/docs/interfaces/FloorplanExtraObject.html +9 -9
  99. package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
  100. package/docs/interfaces/FloorplanFloorData.html +8 -8
  101. package/docs/interfaces/FloorplanImagePosition.html +6 -6
  102. package/docs/interfaces/FloorplanObserver.html +8 -8
  103. package/docs/interfaces/FloorplanOutlineItem.html +8 -8
  104. package/docs/interfaces/FloorplanPosition.html +6 -6
  105. package/docs/interfaces/FloorplanRoomItem.html +12 -12
  106. package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
  107. package/docs/interfaces/FloorplanServerBounding.html +7 -7
  108. package/docs/interfaces/FloorplanServerComputedData.html +9 -9
  109. package/docs/interfaces/FloorplanServerData.html +6 -6
  110. package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerEntrance.html +10 -10
  113. package/docs/interfaces/FloorplanServerFloorData.html +8 -8
  114. package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
  115. package/docs/interfaces/FloorplanServerObserver.html +8 -8
  116. package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
  117. package/docs/interfaces/FloorplanServerPosition.html +6 -6
  118. package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
  119. package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
  120. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -8
  121. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
  122. package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
  123. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
  124. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
  125. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
  126. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
  127. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
  128. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
  129. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
  130. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
  131. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
  132. package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
  133. package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
  134. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
  135. package/docs/interfaces/HelperOffset.html +7 -7
  136. package/docs/interfaces/ImagePlaneGroup.html +5 -5
  137. package/docs/interfaces/ItemLabelPluginData.html +5 -5
  138. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
  139. package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
  140. package/docs/interfaces/MinMax.html +6 -6
  141. package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
  142. package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
  143. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
  144. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
  145. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
  146. package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
  147. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
  148. package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
  149. package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
  150. package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
  151. package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
  152. package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
  153. package/docs/interfaces/ModelViewPluginExportType.html +10 -10
  154. package/docs/interfaces/Object3DHelperState.html +7 -7
  155. package/docs/interfaces/ObjectHelperControllers.html +8 -8
  156. package/docs/interfaces/PaintBrushAction.html +11 -11
  157. package/docs/interfaces/PaintBrushConfigs.html +11 -11
  158. package/docs/interfaces/PaintBrushState.html +9 -9
  159. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
  160. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  161. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  162. package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
  163. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
  164. package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
  165. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
  166. package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
  167. package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
  168. package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
  169. package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
  170. package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
  171. package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
  172. package/docs/interfaces/PanoRulerProPluginState.html +7 -7
  173. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  174. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  175. package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
  176. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
  177. package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
  178. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
  179. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
  180. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
  181. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
  182. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
  183. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
  184. package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
  185. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
  186. package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
  187. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
  188. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
  189. package/docs/interfaces/Point.html +7 -7
  190. package/docs/interfaces/Room.html +8 -8
  191. package/docs/interfaces/RoomInfo.html +6 -6
  192. package/docs/interfaces/RoomLabel.html +13 -13
  193. package/docs/interfaces/RoomRules.html +4 -4
  194. package/docs/interfaces/Rooms.html +4 -4
  195. package/docs/interfaces/Scissor.html +8 -8
  196. package/docs/interfaces/State.html +7 -7
  197. package/docs/interfaces/TagCacheInterface.html +11 -11
  198. package/docs/interfaces/TagConfig.html +12 -12
  199. package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
  200. package/docs/interfaces/TagIconUrl.html +11 -11
  201. package/docs/interfaces/TagObjectGroup.html +5 -5
  202. package/docs/interfaces/TagStyle.html +5 -5
  203. package/docs/interfaces/Tags.html +8 -8
  204. package/docs/interfaces/TemporaryState.html +5 -5
  205. package/docs/interfaces/Util.MagnifierParameter.html +10 -10
  206. package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
  207. package/docs/interfaces/Util.PointIntersection.html +7 -7
  208. package/docs/modules/CruisePluginTypes.html +4 -4
  209. package/docs/modules/GuideLineItem.html +4 -4
  210. package/docs/modules/GuideLineModeItem.html +4 -4
  211. package/docs/modules/GuideLinePluginType.html +4 -4
  212. package/docs/modules/PanoVideoPluginType.html +4 -4
  213. package/docs/modules/Util.html +4 -4
  214. package/docs/modules.html +4 -4
  215. package/docs/types/ArrayPosition.html +4 -4
  216. package/docs/types/AudioAppearance.html +4 -4
  217. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  218. package/docs/types/CSS3DRenderExportType.html +4 -4
  219. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  220. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  221. package/docs/types/ClassFunctionParameters.html +4 -4
  222. package/docs/types/Color.html +4 -4
  223. package/docs/types/ContentTypeConfigKey.html +4 -4
  224. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  225. package/docs/types/ContentTypeMap.html +4 -4
  226. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  227. package/docs/types/Create3DElementReturnType.html +4 -4
  228. package/docs/types/CruisePluginExportType.html +4 -4
  229. package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
  230. package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
  231. package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
  232. package/docs/types/DeprecatedTagProperty.html +4 -4
  233. package/docs/types/Direction-1.html +4 -4
  234. package/docs/types/Direction4.html +4 -4
  235. package/docs/types/ElementRenderer.html +4 -4
  236. package/docs/types/FloorplanRuleLabels.html +4 -4
  237. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  238. package/docs/types/GuideLinePluginExportType.html +4 -4
  239. package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
  240. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
  241. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
  242. package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
  243. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
  244. package/docs/types/GuideLinePluginType.PathItem.html +4 -4
  245. package/docs/types/GuideLinePluginType.PluginData.html +4 -4
  246. package/docs/types/HelperEventMap.html +4 -4
  247. package/docs/types/LoadTagConfig.html +4 -4
  248. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/MediaData.html +4 -4
  251. package/docs/types/MediaStore.html +4 -4
  252. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  253. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  254. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  255. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  256. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  257. package/docs/types/MoveArgs.html +4 -4
  258. package/docs/types/MoveOpts.html +4 -4
  259. package/docs/types/Object3DHelperEventMap.html +4 -4
  260. package/docs/types/ObjectFit.html +4 -4
  261. package/docs/types/PaintBrushEventMap.html +4 -4
  262. package/docs/types/PanoCompassPluginData.html +4 -4
  263. package/docs/types/PanoCompassPluginExportType.html +4 -4
  264. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  265. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  266. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  267. package/docs/types/PanoIndex.html +4 -4
  268. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  269. package/docs/types/PanoMeasureReturnType.html +4 -4
  270. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  271. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  272. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  273. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  274. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  275. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
  276. package/docs/types/PlaneTag.html +4 -4
  277. package/docs/types/Point2DTag.html +4 -4
  278. package/docs/types/Point3DTag.html +4 -4
  279. package/docs/types/PointTag.html +4 -4
  280. package/docs/types/PointTagInstance.html +4 -4
  281. package/docs/types/Position.html +4 -4
  282. package/docs/types/RotateArgs.html +4 -4
  283. package/docs/types/RotateOpts.html +4 -4
  284. package/docs/types/RuleLabelsKey.html +4 -4
  285. package/docs/types/RuleLabelsValue.html +4 -4
  286. package/docs/types/StickType.html +4 -4
  287. package/docs/types/Tag.html +4 -4
  288. package/docs/types/Tag2D.html +4 -4
  289. package/docs/types/Tag3D.html +4 -4
  290. package/docs/types/TagContentType.html +4 -4
  291. package/docs/types/TagDimensionType.html +4 -4
  292. package/docs/types/TagElement.html +4 -4
  293. package/docs/types/TagEvents.html +4 -4
  294. package/docs/types/TagGLTFObject.html +4 -4
  295. package/docs/types/TagHooks.html +4 -4
  296. package/docs/types/TagId.html +4 -4
  297. package/docs/types/TagInstance.html +4 -4
  298. package/docs/types/TagPointType.html +4 -4
  299. package/docs/types/TagRendererMap.html +4 -4
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  302. package/docs/types/WorkCode.html +4 -4
  303. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  304. package/docs/variables/PLUGIN.html +4 -4
  305. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  306. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  307. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  308. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  310. package/libs/CruisePlugin/Controller.js +103 -90
  311. package/libs/CruisePlugin/index.js +22 -9
  312. package/libs/GuideLinePlugin/Components/Tag.js +58 -48
  313. package/libs/GuideLinePlugin/Controller.js +38 -25
  314. package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
  315. package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
  316. package/libs/GuideLinePlugin/index.js +24 -11
  317. package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
  318. package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
  319. package/libs/ItemLabelPlugin/Plugin.js +37 -26
  320. package/libs/ItemLabelPlugin/index.js +16 -5
  321. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
  322. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
  323. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
  324. package/libs/ModelItemLabelPlugin/index.js +16 -5
  325. package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
  326. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
  327. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
  328. package/libs/ModelRoomLabelPlugin/index.js +17 -5
  329. package/libs/PanoDoorLabelPlugin/Controller.js +65 -55
  330. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
  331. package/libs/PanoDoorLabelPlugin/index.js +14 -4
  332. package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
  333. package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
  334. package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
  335. package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
  336. package/libs/PanoMeasurePlugin/Components/Controller0.js +168 -112
  337. package/libs/PanoMeasurePlugin/Components/Controller1.js +244 -181
  338. package/libs/PanoMeasurePlugin/Components/Tip.js +83 -72
  339. package/libs/PanoMeasurePlugin/Controller/index.js +87 -71
  340. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
  341. package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -15
  342. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
  343. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +36 -25
  344. package/libs/PanoMeasurePlugin/index.js +27 -16
  345. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  346. package/libs/PanoRulerProPlugin/RulerItem.js +91 -78
  347. package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
  348. package/libs/PanoRulerProPlugin/index.js +15 -4
  349. package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
  350. package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
  351. package/libs/PanoSpatialTagPlugin/Plugin.js +116 -105
  352. package/libs/PanoSpatialTagPlugin/index.js +13 -2
  353. package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
  354. package/libs/PanoSpatialTagPlugin/store.js +2 -2
  355. package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
  356. package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
  357. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +139 -128
  358. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +53 -43
  359. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
  360. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
  361. package/libs/PanoTagPlugin/Components/Common/Media.js +182 -168
  362. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
  363. package/libs/PanoTagPlugin/Components/Common/Shadow.js +40 -30
  364. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
  365. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
  366. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +88 -75
  367. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +103 -95
  368. package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
  369. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +106 -95
  370. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
  371. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
  372. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
  373. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
  374. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
  375. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +118 -103
  376. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
  377. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +131 -108
  378. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +101 -90
  379. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
  380. package/libs/PanoTagPlugin/Components/Tag/index.js +151 -138
  381. package/libs/PanoTagPlugin/Components/TagContainer.js +72 -57
  382. package/libs/PanoTagPlugin/Components/TagItem.js +60 -47
  383. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
  384. package/libs/PanoTagPlugin/controller/TagRender.js +19 -6
  385. package/libs/PanoTagPlugin/controller/TagUtil.js +2 -2
  386. package/libs/PanoTagPlugin/controller/index.js +95 -82
  387. package/libs/PanoTagPlugin/index.js +26 -13
  388. package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
  389. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
  390. package/libs/base/BasePlugin.js +1 -1
  391. package/libs/floorplan/Components/BaseImage.js +43 -39
  392. package/libs/floorplan/Components/Camera.js +16 -13
  393. package/libs/floorplan/Components/Compass.js +27 -24
  394. package/libs/floorplan/Components/CurrentFloor.js +25 -20
  395. package/libs/floorplan/Components/Main.js +58 -49
  396. package/libs/floorplan/Components/Normalmage.js +25 -22
  397. package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
  398. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
  399. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +50 -47
  400. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +69 -61
  401. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
  402. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
  403. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
  404. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
  405. package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
  406. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
  407. package/libs/floorplan/Components/SvgImage.js +30 -27
  408. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +41 -29
  409. package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
  410. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +35 -23
  411. package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
  412. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +52 -42
  413. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +71 -59
  414. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +66 -53
  415. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +69 -57
  416. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +67 -55
  417. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
  418. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +46 -34
  419. package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
  420. package/libs/floorplan/index.js +1 -0
  421. package/libs/index.js +126 -112
  422. package/libs/shared-utils/logger.js +1 -1
  423. package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
  424. package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
  425. package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
  426. package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
  427. package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
  428. package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
  429. package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
  430. package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
  431. package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
  432. package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
  433. package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
  434. package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
  435. package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
  436. package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
  437. package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
  438. package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
  439. package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
  440. package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
  441. package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
  442. package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
  443. package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
  444. package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
  445. package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
  446. package/libs/vendor/svelte/src/shared/version.js +4 -0
  447. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +27 -23
  448. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
  449. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
  450. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
  451. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
  452. package/package.json +1 -1
  453. package/libs/vendor/svelte/internal/index.js +0 -749
  454. /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
  455. /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
@@ -1,130 +1,141 @@
1
- import { SvelteComponent as D, init as E, safe_not_equal as N, append_styles as O, empty as P, insert as w, transition_in as m, transition_out as b, check_outros as W, detach as q, onMount as j, onDestroy as A, element as k, text as B, attr as C, append as y, set_data as F, add_render_callback as G, create_bidirectional_transition as T, group_outros as H, binding_callbacks as I } from "../../vendor/svelte/internal/index.js";
2
- import { fade as v } from "../../vendor/svelte/transition/index.js";
3
- import "../../vendor/svelte/easing/index.js";
4
- function J(s) {
5
- O(s, "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}");
1
+ import { safe_not_equal as E } from "../../vendor/svelte/src/runtime/internal/utils.js";
2
+ import { append_styles as N, empty as O, insert as q, detach as x, element as k, text as P, attr as C, append as y, set_data as W } from "../../vendor/svelte/src/runtime/internal/dom.js";
3
+ import { transition_in as h, transition_out as T, check_outros as j, create_bidirectional_transition as M, group_outros as A } from "../../vendor/svelte/src/runtime/internal/transitions.js";
4
+ import { add_render_callback as B, binding_callbacks as F } from "../../vendor/svelte/src/runtime/internal/scheduler.js";
5
+ import { onMount as G, onDestroy as H } from "../../vendor/svelte/src/runtime/internal/lifecycle.js";
6
+ import { SvelteComponent as I, init as J } from "../../vendor/svelte/src/runtime/internal/Component.js";
7
+ import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
8
+ import { fade as v } from "../../vendor/svelte/src/runtime/transition/index.js";
9
+ import "../../vendor/svelte/src/runtime/internal/environment.js";
10
+ import "../../vendor/svelte/src/runtime/internal/loop.js";
11
+ import "../../vendor/svelte/src/runtime/internal/style_manager.js";
12
+ import "../../vendor/svelte/src/shared/version.js";
13
+ import "../../vendor/svelte/src/runtime/easing/index.js";
14
+ function K(s) {
15
+ N(s, "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
16
  }
7
- function M(s) {
8
- let n, i, e, t, r;
17
+ function w(s) {
18
+ let i, e, t, r, l;
9
19
  return {
10
20
  c() {
11
- n = k("div"), i = k("div"), e = B(
21
+ i = k("div"), e = k("div"), t = P(
12
22
  /*tip*/
13
23
  s[2]
14
- ), C(i, "class", "text svelte-1q8gtp4"), C(n, "class", "Measure-Tips svelte-1q8gtp4");
24
+ ), C(e, "class", "text svelte-1q8gtp4"), C(i, "class", "Measure-Tips svelte-1q8gtp4");
15
25
  },
16
- m(l, a) {
17
- w(l, n, a), y(n, i), y(i, e), s[6](i), r = !0;
26
+ m(n, f) {
27
+ q(n, i, f), y(i, e), y(e, t), s[7](e), l = !0;
18
28
  },
19
- p(l, a) {
20
- (!r || a & /*tip*/
21
- 4) && F(
22
- e,
29
+ p(n, f) {
30
+ (!l || f & /*tip*/
31
+ 4) && W(
32
+ t,
23
33
  /*tip*/
24
- l[2]
34
+ n[2]
25
35
  );
26
36
  },
27
- i(l) {
28
- r || (G(() => {
29
- r && (t || (t = T(n, v, {}, !0)), t.run(1));
30
- }), r = !0);
37
+ i(n) {
38
+ l || (n && B(() => {
39
+ l && (r || (r = M(i, v, {}, !0)), r.run(1));
40
+ }), l = !0);
31
41
  },
32
- o(l) {
33
- t || (t = T(n, v, {}, !1)), t.run(0), r = !1;
42
+ o(n) {
43
+ n && (r || (r = M(i, v, {}, !1)), r.run(0)), l = !1;
34
44
  },
35
- d(l) {
36
- l && q(n), s[6](null), l && t && t.end();
45
+ d(n) {
46
+ n && x(i), s[7](null), n && r && r.end();
37
47
  }
38
48
  };
39
49
  }
40
- function K(s) {
41
- let n, i, e = (
50
+ function L(s) {
51
+ let i, e = (
42
52
  /*visible*/
43
- s[0] && M(s)
53
+ s[0] && w(s)
44
54
  );
45
55
  return {
46
56
  c() {
47
- e && e.c(), n = P();
57
+ e && e.c(), i = O();
48
58
  },
49
59
  m(t, r) {
50
- e && e.m(t, r), w(t, n, r), i = !0;
60
+ e && e.m(t, r), q(t, i, r);
51
61
  },
52
62
  p(t, [r]) {
53
63
  /*visible*/
54
64
  t[0] ? e ? (e.p(t, r), r & /*visible*/
55
- 1 && m(e, 1)) : (e = M(t), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (H(), b(e, 1, 1, () => {
65
+ 1 && h(e, 1)) : (e = w(t), e.c(), h(e, 1), e.m(i.parentNode, i)) : e && (A(), T(e, 1, 1, () => {
56
66
  e = null;
57
- }), W());
67
+ }), j());
58
68
  },
59
69
  i(t) {
60
- i || (m(e), i = !0);
70
+ h(e);
61
71
  },
62
72
  o(t) {
63
- b(e), i = !1;
73
+ T(e);
64
74
  },
65
75
  d(t) {
66
- e && e.d(t), t && q(n);
76
+ t && x(i), e && e.d(t);
67
77
  }
68
78
  };
69
79
  }
70
- function L(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;
74
- let c = "";
75
- return c = t[o], c === void 0 && (c = t[z][o]), c;
76
- }, u = (o) => {
77
- i(2, p = x(o));
78
- }, f = () => {
79
- i(2, p = "");
80
+ function Q(s, i, e) {
81
+ let { measureController: t } = i, { i18n: r = (o) => o } = i, { tips: l } = i, { tipStyle: n = {} } = i, { visible: f = !0 } = i, a = null;
82
+ const S = (o) => {
83
+ const D = t.currentMeasureType;
84
+ let m = "";
85
+ return m = l[o], m === void 0 && (m = l[D][o]), m;
86
+ }, c = (o) => {
87
+ e(2, p = r(S(o)));
88
+ }, u = () => {
89
+ e(2, p = "");
80
90
  };
81
91
  let p = "";
82
92
  const d = (o) => {
83
- o === "Edit" && e.changeMeasureType ? u("start") : f();
84
- }, h = () => {
85
- e.getCurrentMode() === "Watch" && f();
93
+ o === "Edit" && t.changeMeasureType ? c("start") : u();
86
94
  }, g = () => {
87
- e.getCurrentMode() === "Edit" && u("start");
88
- }, _ = (o) => {
89
- e.currentMeasureType === "area" && (o.length >= 2 ? u("close") : o.length === 0 ? u("start") : f());
95
+ t.getCurrentMode() === "Watch" && u();
96
+ }, _ = () => {
97
+ t.getCurrentMode() === "Edit" && c("start");
98
+ }, b = (o) => {
99
+ t.currentMeasureType === "area" && (o.length >= 2 ? c("close") : o.length === 0 ? c("start") : u());
90
100
  };
91
- j(() => {
92
- d(e.getCurrentMode()), e.hook.on("modeChange", d), e.hook.on("complete", h), e.hook.on("pointsChange", _), e.hook.on("measureTypeChange", g);
93
- }), A(() => {
94
- e.hook.off("modeChange", d), e.hook.off("complete", h), e.hook.off("pointsChange", _), e.hook.off("measureTypeChange", g), f();
101
+ G(() => {
102
+ d(t.getCurrentMode()), t.hook.on("modeChange", d), t.hook.on("complete", g), t.hook.on("pointsChange", b), t.hook.on("measureTypeChange", _);
103
+ }), H(() => {
104
+ t.hook.off("modeChange", d), t.hook.off("complete", g), t.hook.off("pointsChange", b), t.hook.off("measureTypeChange", _), u();
95
105
  });
96
- function S(o) {
97
- I[o ? "unshift" : "push"](() => {
98
- a = o, i(1, a), i(5, r);
106
+ function z(o) {
107
+ F[o ? "unshift" : "push"](() => {
108
+ a = o, e(1, a), e(6, n);
99
109
  });
100
110
  }
101
111
  return s.$$set = (o) => {
102
- "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);
112
+ "measureController" in o && e(3, t = o.measureController), "i18n" in o && e(4, r = o.i18n), "tips" in o && e(5, l = o.tips), "tipStyle" in o && e(6, n = o.tipStyle), "visible" in o && e(0, f = o.visible);
103
113
  }, s.$$.update = () => {
104
114
  if (s.$$.dirty & /*textDom, tipStyle*/
105
- 34 && a)
106
- for (const o in r)
107
- r.hasOwnProperty(o) && i(1, a.style[o] = r[o], a);
108
- }, [l, a, p, e, t, r, S];
115
+ 66 && a)
116
+ for (const o in n)
117
+ n.hasOwnProperty(o) && e(1, a.style[o] = n[o], a);
118
+ }, [f, a, p, t, r, l, n, z];
109
119
  }
110
- class V extends D {
111
- constructor(n) {
112
- super(), E(
120
+ class se extends I {
121
+ constructor(i) {
122
+ super(), J(
113
123
  this,
114
- n,
124
+ i,
125
+ Q,
115
126
  L,
116
- K,
117
- N,
127
+ E,
118
128
  {
119
129
  measureController: 3,
120
- tips: 4,
121
- tipStyle: 5,
130
+ i18n: 4,
131
+ tips: 5,
132
+ tipStyle: 6,
122
133
  visible: 0
123
134
  },
124
- J
135
+ K
125
136
  );
126
137
  }
127
138
  }
128
139
  export {
129
- V as default
140
+ se as default
130
141
  };
@@ -1,16 +1,16 @@
1
1
  var I = Object.defineProperty;
2
2
  var w = Object.getOwnPropertySymbols;
3
3
  var T = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
- var c = (s, e, t) => e in s ? I(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, m = (s, e) => {
5
- for (var t in e || (e = {}))
6
- T.call(e, t) && c(s, t, e[t]);
4
+ var c = (s, t, e) => t in s ? I(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, a = (s, t) => {
5
+ for (var e in t || (t = {}))
6
+ T.call(t, e) && c(s, e, t[e]);
7
7
  if (w)
8
- for (var t of w(e))
9
- E.call(e, t) && c(s, t, e[t]);
8
+ for (var e of w(t))
9
+ E.call(t, e) && c(s, e, t[e]);
10
10
  return s;
11
11
  };
12
- var i = (s, e, t) => (c(s, typeof e != "symbol" ? e + "" : e, t), t);
13
- import a from "./EditController.js";
12
+ var i = (s, t, e) => (c(s, typeof t != "symbol" ? t + "" : t, e), e);
13
+ import m from "./EditController.js";
14
14
  import P from "./ViewController.js";
15
15
  import v from "./WatchController.js";
16
16
  import h from "./MixedController.js";
@@ -97,19 +97,30 @@ import "../Modules/UIController/MainBtnController.js";
97
97
  import "../Modules/UIController/mobileMainBtnController.js";
98
98
  import "../Modules/UIController/Revoke/index.js";
99
99
  import "../Components/Controller0.js";
100
- import "../../vendor/svelte/internal/index.js";
100
+ import "../../vendor/svelte/src/runtime/internal/utils.js";
101
+ import "../../vendor/svelte/src/runtime/internal/dom.js";
102
+ import "../../vendor/svelte/src/runtime/internal/transitions.js";
103
+ import "../../vendor/svelte/src/runtime/internal/environment.js";
104
+ import "../../vendor/svelte/src/runtime/internal/loop.js";
105
+ import "../../vendor/svelte/src/runtime/internal/style_manager.js";
106
+ import "../../vendor/svelte/src/runtime/internal/scheduler.js";
107
+ import "../../vendor/svelte/src/runtime/internal/lifecycle.js";
108
+ import "../../vendor/svelte/src/runtime/internal/Component.js";
109
+ import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
110
+ import "../../vendor/svelte/src/shared/version.js";
101
111
  import "../Components/Common/Switcher0.js";
112
+ import "../../vendor/svelte/src/runtime/internal/each.js";
102
113
  import "../Components/Common/Exit.js";
103
114
  import "../Components/Common/icons/index.js";
104
115
  import "../Components/Controller1.js";
105
116
  import "../Components/Common/Switcher1.js";
106
117
  import "../Components/Common/CircleButton.js";
107
- import "../../vendor/svelte/transition/index.js";
108
- import "../../vendor/svelte/easing/index.js";
118
+ import "../../vendor/svelte/src/runtime/transition/index.js";
119
+ import "../../vendor/svelte/src/runtime/easing/index.js";
109
120
  import "../../vendor/object-assign-deep/objectAssignDeep.js";
110
121
  import "../Components/Tip.js";
111
- class Dt {
112
- constructor(e, t) {
122
+ class Ke {
123
+ constructor(t, e) {
113
124
  i(this, "hasOpen", !1);
114
125
  i(this, "hook", new x());
115
126
  i(this, "magnifier");
@@ -133,110 +144,115 @@ class Dt {
133
144
  * @description 还原点位展示和默认鼠标 UI
134
145
  */
135
146
  i(this, "disable", () => {
136
- var e, t, r, o;
137
- this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
147
+ var t, e, r, o;
148
+ this.hasOpen = !1, this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
138
149
  });
139
- i(this, "getCurrentMode", () => this.controller instanceof a ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof P ? "View" : null);
150
+ i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof P ? "View" : null);
140
151
  /** 变更场景
141
152
  * @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
142
153
  */
143
- i(this, "changeMode", (e) => {
154
+ i(this, "changeMode", (t) => {
144
155
  var o;
145
- if (!this.hasOpen || this.getCurrentMode() === e)
156
+ if (!this.hasOpen || this.getCurrentMode() === t)
146
157
  return;
147
158
  (o = this.controller) == null || o.dispose();
148
- const t = {
159
+ const e = {
149
160
  View: P,
150
161
  Watch: v,
151
- Edit: a,
162
+ Edit: m,
152
163
  Mixed: h
153
164
  };
154
- if (!t[e])
165
+ if (!e[t])
155
166
  throw new Error("不存在的 Mode");
156
167
  const r = this.createControllerParams();
157
- this.controller = new t[e](r), this.hook.emit("modeChange", e);
168
+ this.controller = new e[t](r), this.hook.emit("modeChange", t);
158
169
  });
159
170
  /**
160
171
  * @description: 切换测量的类型
161
172
  */
162
- i(this, "changeMeasureType", (e) => {
163
- this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
173
+ i(this, "changeMeasureType", (t) => {
174
+ this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
164
175
  });
165
176
  var l, n, u, d, f, g, y, M, C;
166
- this.five = e, this.params = t, this.config = k(t, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.isMobile = (n = (l = t == null ? void 0 : t.openParams) == null ? void 0 : l.isMobile) != null ? n : !1, this.magnifier = new B(e, (u = t.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = t.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new D(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
167
- const r = (M = (y = t.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
177
+ this.five = t, this.params = e, this.config = k(e, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.isMobile = (n = (l = e == null ? void 0 : e.openParams) == null ? void 0 : l.isMobile) != null ? n : !1, this.magnifier = new B(t, (u = e.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = e.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new D(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
178
+ const r = (M = (y = e.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
168
179
  if (this.params.useUIController !== !1) {
169
- const p = m({
180
+ const p = a({
170
181
  container: this.container,
171
182
  openParams: o,
183
+ i18n: e.i18n,
172
184
  pointSelectorMode: r,
173
185
  useNewUI: this.allowMeasureType.length > 1
174
186
  }, b(this.params.useUIController));
175
187
  this.useUIController = new S(this, p);
176
188
  }
177
189
  if (this.params.useGuideController !== !1) {
178
- const p = m({ container: this.container, pointSelectorMode: r }, b(this.params.useGuideController));
190
+ const p = a({
191
+ container: this.container,
192
+ pointSelectorMode: r,
193
+ i18n: e.i18n
194
+ }, b(this.params.useGuideController));
179
195
  this.useGuideController = new L(this, p);
180
196
  }
181
197
  }
182
- appendTo(e) {
183
- e.append(this.container);
198
+ appendTo(t) {
199
+ t.append(this.container);
184
200
  }
185
201
  clear() {
186
202
  this.model.clear();
187
203
  }
188
204
  dispose() {
189
- var e, t;
190
- this.disable(), this.clear(), (e = this.useUIController) == null || e.dispose(), (t = this.magnifier) == null || t.dispose(), this.five.needsRender = !0;
205
+ var t, e;
206
+ this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (e = this.magnifier) == null || e.dispose(), this.five.needsRender = !0;
191
207
  }
192
208
  /** 加载数据
193
209
  * @description 数据加载时会覆盖当前已保存的数据
194
210
  * @description 如果当前正在编辑中,会自动退出并保存编辑
195
211
  */
196
- load(e) {
197
- this.model.parse(e), this.save();
212
+ load(t) {
213
+ this.model.parse(t), this.save();
198
214
  }
199
215
  /** 插件功能入口
200
216
  * @description 会隐藏鼠标的默认聚焦环
201
217
  * @description 会隐藏当前 VR 内的点位展示
202
218
  */
203
- enable(e) {
204
- var t;
205
- this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
219
+ enable(t) {
220
+ var e;
221
+ this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (e = this.useUIController) == null || e.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
206
222
  }
207
223
  /** 进入编辑模式 */
208
- edit(e) {
209
- e && this.changeMeasureType(e);
210
- const t = this.isMobile ? "Mixed" : "Edit";
211
- this.changeMode(t);
224
+ edit(t) {
225
+ t && this.changeMeasureType(t);
226
+ const e = this.isMobile ? "Mixed" : "Edit";
227
+ this.changeMode(e);
212
228
  }
213
229
  /** 撤销编辑 */
214
230
  revoke() {
215
- this.controller instanceof a && this.controller.revoke();
231
+ this.controller instanceof m && this.controller.revoke();
216
232
  }
217
- removePolyline(e) {
218
- this.model.removePolyline(e);
233
+ removePolyline(t) {
234
+ this.model.removePolyline(t);
219
235
  }
220
- removeArea(e) {
221
- this.model.removeArea(e);
236
+ removeArea(t) {
237
+ this.model.removeArea(t);
222
238
  }
223
- removePolylineByID(e) {
224
- const t = this.model.getPolylineByID(e);
225
- t && this.model.removePolyline(t);
239
+ removePolylineByID(t) {
240
+ const e = this.model.getPolylineByID(t);
241
+ e && this.model.removePolyline(e);
226
242
  }
227
- getPolylineByID(e) {
228
- return this.model.getPolylineByID(e);
243
+ getPolylineByID(t) {
244
+ return this.model.getPolylineByID(t);
229
245
  }
230
246
  getEditedPolyline() {
231
247
  }
232
248
  /**
233
249
  * 高亮当前线段
234
250
  */
235
- highlightLine(e) {
251
+ highlightLine(t) {
236
252
  if (this.getCurrentMode() !== "Watch")
237
253
  return !1;
238
- const t = this.model.getLineByID(e);
239
- return t ? (this.controller.highlightLine(t), !0) : !1;
254
+ const e = this.model.getLineByID(t);
255
+ return e ? (this.controller.highlightLine(e), !0) : !1;
240
256
  }
241
257
  clearHighlightLines() {
242
258
  return this.getCurrentMode() !== "Watch" ? !1 : (this.controller.clearHighlightLines(), !0);
@@ -244,16 +260,16 @@ class Dt {
244
260
  /** 保存编辑
245
261
  * @description 以下情况可能报错
246
262
  */
247
- save(e) {
263
+ save(t) {
248
264
  var l;
249
- if (!(this.controller instanceof a) && !(this.controller instanceof h))
265
+ if (!(this.controller instanceof m) && !(this.controller instanceof h))
250
266
  return this;
251
- const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
267
+ const e = (l = t == null ? void 0 : t.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
252
268
  return r.forEach((n) => {
253
269
  this.model.addPolyline(n);
254
- }), this.controller instanceof a ? this.controller.complete() : o.forEach((n) => {
270
+ }), this.controller instanceof m ? this.controller.complete() : o.forEach((n) => {
255
271
  n.showArea(), this.model.addArea(n);
256
- }), this.changeMode(t), this;
272
+ }), this.changeMode(e), this;
257
273
  }
258
274
  /** Mixed 模式才有用,添加起点 */
259
275
  addStartPoint() {
@@ -272,24 +288,24 @@ class Dt {
272
288
  * @description 改变插件的模式(pc端模式或移动端模式)
273
289
  * @param isMobile true为移动端模式,false为pc端
274
290
  */
275
- changeIsMobile(e) {
291
+ changeIsMobile(t) {
276
292
  }
277
- changeConfigs(e) {
278
- var t;
279
- Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI();
293
+ changeConfigs(t) {
294
+ var e;
295
+ Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI();
280
296
  }
281
297
  /** 设置线段的文本 */
282
- setCustomText(e, t) {
298
+ setCustomText(t, e) {
283
299
  var o;
284
- const r = this.model.getLineByID(e);
300
+ const r = this.model.getLineByID(t);
285
301
  if (!r)
286
302
  throw new Error("不存在的线段");
287
- r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
303
+ r.setText(e), (o = this.controller) == null || o.updateDistanceUI();
288
304
  }
289
305
  createControllerParams() {
290
306
  var r, o;
291
- const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
292
- return e.isMobile = this.isMobile, {
307
+ const t = (r = this.params.openParams) != null ? r : {}, e = (o = this.params.editParams) != null ? o : {};
308
+ return t.isMobile = this.isMobile, {
293
309
  five: this.five,
294
310
  hook: this.hook,
295
311
  group: this.group,
@@ -297,15 +313,15 @@ class Dt {
297
313
  config: this.config,
298
314
  magnifier: this.magnifier,
299
315
  container: this.container,
300
- openParams: e,
301
- editParams: t,
316
+ openParams: t,
317
+ editParams: e,
302
318
  magnifierParams: this.params.magnifierParams,
303
319
  getMeasureType: () => this.currentMeasureType,
304
- mouseGroup: G(m({}, e.crossHairParameter)),
320
+ mouseGroup: G(a({}, t.crossHairParameter)),
305
321
  userDistanceItemCreator: this.params.userDistanceItemCreator
306
322
  };
307
323
  }
308
324
  }
309
325
  export {
310
- Dt as default
326
+ Ke as default
311
327
  };
@@ -12,6 +12,7 @@ export interface MeasureTip {
12
12
  }
13
13
  export interface GuideControllerParams {
14
14
  container?: Element;
15
+ i18n?: (key: string) => string;
15
16
  tips?: PartialObjectDeep<MeasureTip>;
16
17
  tipStyle?: Partial<CSSStyleDeclaration>;
17
18
  startTip?: string;
@@ -1,12 +1,22 @@
1
- var s = Object.defineProperty;
2
- var r = (i, t, e) => t in i ? s(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var o = (i, t, e) => (r(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
1
+ var r = Object.defineProperty;
2
+ var p = (e, t, i) => t in e ? r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var o = (e, t, i) => (p(e, typeof t != "symbol" ? t + "" : t, i), i);
4
+ import { objectAssignDeepExports as s } from "../../vendor/object-assign-deep/objectAssignDeep.js";
5
5
  import l from "../Components/Tip.js";
6
- import "../../vendor/svelte/internal/index.js";
7
- import "../../vendor/svelte/transition/index.js";
8
- import "../../vendor/svelte/easing/index.js";
9
- const n = {
6
+ import "../../vendor/svelte/src/runtime/internal/utils.js";
7
+ import "../../vendor/svelte/src/runtime/internal/dom.js";
8
+ import "../../vendor/svelte/src/runtime/internal/transitions.js";
9
+ import "../../vendor/svelte/src/runtime/internal/environment.js";
10
+ import "../../vendor/svelte/src/runtime/internal/loop.js";
11
+ import "../../vendor/svelte/src/runtime/internal/style_manager.js";
12
+ import "../../vendor/svelte/src/runtime/internal/scheduler.js";
13
+ import "../../vendor/svelte/src/runtime/internal/lifecycle.js";
14
+ import "../../vendor/svelte/src/runtime/internal/Component.js";
15
+ import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
16
+ import "../../vendor/svelte/src/shared/version.js";
17
+ import "../../vendor/svelte/src/runtime/transition/index.js";
18
+ import "../../vendor/svelte/src/runtime/easing/index.js";
19
+ const m = {
10
20
  line: {
11
21
  start: "选择一个合适的位置开始测量,点击【结束】或【鼠标右键】结束测量"
12
22
  },
@@ -14,7 +24,7 @@ const n = {
14
24
  start: "选择一个合适的位置开始绘制平面",
15
25
  close: "选择3个点后将闭合平面,点击【结束】或【鼠标右键】将自动闭合"
16
26
  }
17
- }, c = {
27
+ }, n = {
18
28
  line: {
19
29
  start: ""
20
30
  },
@@ -23,16 +33,17 @@ const n = {
23
33
  close: "选择3个点后将闭合平面,点击结束自动闭合"
24
34
  }
25
35
  };
26
- class u {
27
- constructor(t, e) {
36
+ class j {
37
+ constructor(t, i) {
28
38
  o(this, "tipSvelteDom");
29
39
  this.tipSvelteDom = new l({
30
- target: e.container,
40
+ target: i.container,
31
41
  props: {
32
42
  measureController: t,
33
- tips: p({}, e.pointSelectorMode === "fixed" ? c : n, e.tips),
43
+ tips: s({}, i.pointSelectorMode === "fixed" ? n : m, i.tips),
44
+ i18n: i.i18n,
34
45
  visible: !0,
35
- tipStyle: e.tipStyle
46
+ tipStyle: i.tipStyle
36
47
  }
37
48
  });
38
49
  }
@@ -50,5 +61,5 @@ class u {
50
61
  }
51
62
  }
52
63
  export {
53
- u as GuideController
64
+ j as GuideController
54
65
  };
@@ -13,6 +13,7 @@ export interface UIControllerParams {
13
13
  endButtonText?: string;
14
14
  revokeButtonText?: string;
15
15
  exitButtonText?: string;
16
+ i18n?: (key: string) => string;
16
17
  }
17
18
  export declare class UIController {
18
19
  private revoke?;