@realsee/dnalogel 2.28.0-dev.1 → 2.28.1-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 (421) hide show
  1. package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
  2. package/dist/AreaMakerPlugin/index.d.ts +4 -0
  3. package/dist/AreaMakerPlugin/typing.d.ts +148 -0
  4. package/dist/AreaMakerPlugin/utils/Item.d.ts +115 -0
  5. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  6. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  7. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  8. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  9. package/dist/base/BasePluginWithData.d.ts +1 -1
  10. package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  11. package/dist/floorplan/index.d.ts +0 -1
  12. package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
  13. package/dist/index.cjs.js +67 -67
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +6901 -7187
  16. package/dist/index.umd.js +60 -60
  17. package/dist/shared-utils/index.d.ts +1 -0
  18. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  19. package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
  20. package/dist/shared-utils/three/index.d.ts +2 -0
  21. package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
  22. package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
  25. package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
  26. package/docs/classes/CSS3DRender.html +33 -34
  27. package/docs/classes/CruisePluginController.html +29 -30
  28. package/docs/classes/GuideLineItem.GuideLineItem.html +22 -23
  29. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -38
  30. package/docs/classes/Magnifier.html +22 -23
  31. package/docs/classes/ModelRoomLabelController.html +13 -14
  32. package/docs/classes/Object3DHelperController.html +27 -28
  33. package/docs/classes/PaintBrush.html +17 -18
  34. package/docs/classes/PanoMeasurePluginLine.html +29 -30
  35. package/docs/classes/PanoMeasurePluginModel.html +29 -30
  36. package/docs/classes/PanoMeasurePluginPoint.html +13 -14
  37. package/docs/classes/PanoMeasurePluginPolyline.html +29 -30
  38. package/docs/classes/PanoTagPluginController.html +52 -53
  39. package/docs/classes/Util.BetterTween.html +13 -11
  40. package/docs/classes/Util.Interval.html +16 -14
  41. package/docs/classes/Util.LineSegments.html +379 -0
  42. package/docs/classes/Util.Magnifier.html +24 -22
  43. package/docs/classes/Util.Object3D.html +401 -0
  44. package/docs/classes/Util.PointDomHelper.html +15 -13
  45. package/docs/classes/Util.PointHelper.html +15 -13
  46. package/docs/classes/Util.PointSelectorHelper.html +20 -18
  47. package/docs/classes/Util.Rectangle.html +17 -15
  48. package/docs/enums/CameraMovementEffect.html +9 -10
  49. package/docs/enums/ContentType.html +22 -23
  50. package/docs/enums/DIRECTION.html +11 -12
  51. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -12
  52. package/docs/enums/DimensionType.html +9 -10
  53. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -11
  54. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -12
  55. package/docs/enums/PaintBrushTypeEnum.html +10 -11
  56. package/docs/enums/PointType.html +9 -10
  57. package/docs/enums/Rotation.html +10 -11
  58. package/docs/functions/{FloorplanRoomsPlugin.html → AreaMakerPluginPlugin.html} +12 -13
  59. package/docs/functions/CSS3DRenderPlugin.html +6 -7
  60. package/docs/functions/CameraMovementPlugin.html +6 -7
  61. package/docs/functions/CruisePlugin.html +7 -8
  62. package/docs/functions/GuideLinePlugin.html +7 -8
  63. package/docs/functions/ItemLabelPlugin.html +6 -7
  64. package/docs/functions/MapviewFloorplanPlugin.html +6 -7
  65. package/docs/functions/ModelChassisCompassPlugin.html +6 -7
  66. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -7
  67. package/docs/functions/ModelFloorplanPlugin.html +6 -7
  68. package/docs/functions/ModelItemLabelPlugin.html +6 -7
  69. package/docs/functions/ModelRoomLabelPlugin.html +6 -7
  70. package/docs/functions/ModelTVVideoPlugin.html +6 -7
  71. package/docs/functions/ModelViewPlugin.html +6 -7
  72. package/docs/functions/Object3DHelperPlugin.html +6 -7
  73. package/docs/functions/PanoCompassPlugin.html +6 -7
  74. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -7
  75. package/docs/functions/PanoDoorLabelPlugin.html +6 -7
  76. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -7
  77. package/docs/functions/PanoMeasurePlugin.html +6 -7
  78. package/docs/functions/PanoRulerPlugin.html +6 -7
  79. package/docs/functions/PanoRulerProPlugin.html +6 -7
  80. package/docs/functions/PanoSpatialTagPlugin.html +6 -7
  81. package/docs/functions/PanoTagPlugin.html +6 -7
  82. package/docs/functions/PanoVideoPlugin.html +6 -7
  83. package/docs/functions/PipelinePlugin.html +6 -7
  84. package/docs/functions/TopviewFloorplanPlugin.html +6 -7
  85. package/docs/functions/Util.absoluteUrl.html +9 -7
  86. package/docs/functions/Util.equal.html +333 -0
  87. package/docs/functions/Util.getCoordsFromClient.html +9 -7
  88. package/docs/functions/Util.getCoordsFromElement.html +9 -7
  89. package/docs/functions/Util.getFrameTime.html +9 -7
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -7
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -7
  92. package/docs/functions/Util.isAbsoluteURL.html +9 -7
  93. package/docs/functions/Util.isModelLike.html +9 -7
  94. package/docs/functions/Util.isNil.html +9 -7
  95. package/docs/functions/Util.isPanoramaLike.html +9 -7
  96. package/docs/functions/Util.nextFrame.html +9 -7
  97. package/docs/functions/Util.notNil.html +9 -7
  98. package/docs/functions/Util.requestAnimationFrameInterval.html +9 -7
  99. package/docs/functions/Util.tweenProgress.html +9 -7
  100. package/docs/functions/Util.uuid.html +9 -7
  101. package/docs/functions/pluginFlag.html +7 -8
  102. package/docs/index.html +7 -8
  103. package/docs/interfaces/AddTagConfig.html +8 -9
  104. package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
  105. package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
  106. package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
  107. package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
  108. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
  109. package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
  110. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
  111. package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
  112. package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
  113. package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
  114. package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -14
  115. package/docs/interfaces/CSS3DRenderPluginState.html +10 -11
  116. package/docs/interfaces/CameraMovementPluginExportType.html +9 -10
  117. package/docs/interfaces/CruisePluginTypes.Config.html +10 -11
  118. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -15
  119. package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -23
  120. package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -15
  121. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -17
  122. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -17
  123. package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -12
  124. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -9
  125. package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -14
  126. package/docs/interfaces/EventMap.html +17 -18
  127. package/docs/interfaces/FloorplanBounding.html +10 -11
  128. package/docs/interfaces/FloorplanData.html +12 -13
  129. package/docs/interfaces/FloorplanEntrance.html +13 -14
  130. package/docs/interfaces/FloorplanExtraObject.html +12 -13
  131. package/docs/interfaces/FloorplanExtraObject3D.html +10 -11
  132. package/docs/interfaces/FloorplanFloorData.html +11 -12
  133. package/docs/interfaces/FloorplanImagePosition.html +9 -10
  134. package/docs/interfaces/FloorplanObserver.html +11 -12
  135. package/docs/interfaces/FloorplanOutlineItem.html +11 -12
  136. package/docs/interfaces/FloorplanPosition.html +9 -10
  137. package/docs/interfaces/FloorplanRoomItem.html +15 -16
  138. package/docs/interfaces/FloorplanRoomLabelItem.html +9 -10
  139. package/docs/interfaces/FloorplanServerBounding.html +10 -11
  140. package/docs/interfaces/FloorplanServerComputedData.html +12 -13
  141. package/docs/interfaces/FloorplanServerData.html +9 -10
  142. package/docs/interfaces/FloorplanServerDoorItem.html +12 -13
  143. package/docs/interfaces/FloorplanServerDoorPosition.html +10 -11
  144. package/docs/interfaces/FloorplanServerEntrance.html +13 -14
  145. package/docs/interfaces/FloorplanServerFloorData.html +11 -12
  146. package/docs/interfaces/FloorplanServerImagePosition.html +9 -10
  147. package/docs/interfaces/FloorplanServerObserver.html +11 -12
  148. package/docs/interfaces/FloorplanServerOutlineItem.html +11 -12
  149. package/docs/interfaces/FloorplanServerPosition.html +9 -10
  150. package/docs/interfaces/FloorplanServerRoomItem.html +16 -17
  151. package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -10
  152. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -11
  153. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -13
  154. package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -16
  155. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -11
  156. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -9
  157. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -16
  158. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -11
  159. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -21
  160. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -10
  161. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -21
  162. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -8
  163. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -9
  164. package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -11
  165. package/docs/interfaces/GuideLinePluginType.Route.html +13 -14
  166. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -12
  167. package/docs/interfaces/HelperOffset.html +10 -11
  168. package/docs/interfaces/ImagePlaneGroup.html +8 -9
  169. package/docs/interfaces/ItemLabelPluginData.html +8 -9
  170. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -14
  171. package/docs/interfaces/ItemLabelPluginParametersType.html +11 -12
  172. package/docs/interfaces/MinMax.html +9 -10
  173. package/docs/interfaces/ModelChassisCompassPluginData.html +9 -10
  174. package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -11
  175. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -10
  176. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -11
  177. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -11
  178. package/docs/interfaces/ModelItemLabelPluginData.html +8 -9
  179. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -14
  180. package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -10
  181. package/docs/interfaces/ModelRoomLabelPluginData.html +8 -9
  182. package/docs/interfaces/ModelTVVideoPluginData.html +11 -12
  183. package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -11
  184. package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -9
  185. package/docs/interfaces/ModelViewPluginExportType.html +13 -14
  186. package/docs/interfaces/Object3DHelperState.html +10 -11
  187. package/docs/interfaces/ObjectHelperControllers.html +11 -12
  188. package/docs/interfaces/PaintBrushAction.html +14 -15
  189. package/docs/interfaces/PaintBrushConfigs.html +14 -15
  190. package/docs/interfaces/PaintBrushState.html +12 -13
  191. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -13
  192. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -8
  193. package/docs/interfaces/PanoMeasureParameterType.html +18 -19
  194. package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -11
  195. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -10
  196. package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -10
  197. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -11
  198. package/docs/interfaces/PanoRulerPluginExportType.html +12 -13
  199. package/docs/interfaces/PanoRulerPluginOptions.html +9 -10
  200. package/docs/interfaces/PanoRulerPluginParameterType.html +10 -11
  201. package/docs/interfaces/PanoRulerProPluginExportType.html +11 -12
  202. package/docs/interfaces/PanoRulerProPluginOptions.html +9 -10
  203. package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -10
  204. package/docs/interfaces/PanoRulerProPluginState.html +10 -11
  205. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -8
  206. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -8
  207. package/docs/interfaces/PanoSpatialTagPluginData.html +13 -14
  208. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -13
  209. package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -16
  210. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -13
  211. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -16
  212. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -14
  213. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -13
  214. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -9
  215. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -11
  216. package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -9
  217. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -12
  218. package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -9
  219. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -11
  220. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -13
  221. package/docs/interfaces/Point.html +10 -11
  222. package/docs/interfaces/Room.html +11 -12
  223. package/docs/interfaces/RoomInfo.html +9 -10
  224. package/docs/interfaces/RoomLabel.html +16 -17
  225. package/docs/interfaces/RoomRules.html +7 -8
  226. package/docs/interfaces/Rooms.html +7 -8
  227. package/docs/interfaces/Scissor.html +11 -12
  228. package/docs/interfaces/State.html +10 -11
  229. package/docs/interfaces/TagCacheInterface.html +14 -15
  230. package/docs/interfaces/TagConfig.html +17 -18
  231. package/docs/interfaces/TagGLTFObjectGroup.html +8 -9
  232. package/docs/interfaces/TagIconUrl.html +14 -15
  233. package/docs/interfaces/TagObjectGroup.html +8 -9
  234. package/docs/interfaces/TagStyle.html +8 -9
  235. package/docs/interfaces/Tags.html +11 -12
  236. package/docs/interfaces/TemporaryState.html +8 -9
  237. package/docs/interfaces/Util.MagnifierParameter.html +15 -13
  238. package/docs/interfaces/Util.MouseGroupParameter.html +12 -10
  239. package/docs/interfaces/Util.PointIntersection.html +12 -10
  240. package/docs/modules/AreaMakerPluginPluginType.html +319 -0
  241. package/docs/modules/CruisePluginTypes.html +7 -8
  242. package/docs/modules/GuideLineItem.html +7 -8
  243. package/docs/modules/GuideLineModeItem.html +7 -8
  244. package/docs/modules/GuideLinePluginType.html +7 -8
  245. package/docs/modules/PanoVideoPluginType.html +7 -8
  246. package/docs/modules/Util.html +12 -7
  247. package/docs/modules.html +10 -12
  248. package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
  249. package/docs/types/{FloorplanRoomsPluginReturnType.html → AreaMakerPluginPluginType.PluginData.html} +35 -14
  250. package/docs/types/{FloorplanRoomsPluginParameterType.html → AreaMakerPluginPluginType.ServerData.html} +35 -14
  251. package/docs/types/ArrayPosition.html +7 -8
  252. package/docs/types/AudioAppearance.html +7 -8
  253. package/docs/types/AudioTagTypeConfigKey.html +7 -8
  254. package/docs/types/CSS3DRenderExportType.html +7 -8
  255. package/docs/types/CSS3DRenderPluginExportType.html +7 -8
  256. package/docs/types/CSS3DRenderPluginParameterType.html +7 -8
  257. package/docs/types/ClassFunctionParameters.html +7 -8
  258. package/docs/types/Color.html +7 -8
  259. package/docs/types/ContentTypeConfigKey.html +7 -8
  260. package/docs/types/ContentTypeConfigKeySplit.html +7 -8
  261. package/docs/types/ContentTypeMap.html +7 -8
  262. package/docs/types/Create3DDomContainerReturnType.html +7 -8
  263. package/docs/types/Create3DElementReturnType.html +7 -8
  264. package/docs/types/CruisePluginExportType.html +7 -8
  265. package/docs/types/CruisePluginTypes.CruiseData.html +7 -8
  266. package/docs/types/CruisePluginTypes.MoveEffect.html +7 -8
  267. package/docs/types/DeprecatedMediaPlaneProperty.html +7 -8
  268. package/docs/types/DeprecatedTagProperty.html +7 -8
  269. package/docs/types/Direction-1.html +7 -8
  270. package/docs/types/Direction4.html +7 -8
  271. package/docs/types/ElementRenderer.html +7 -8
  272. package/docs/types/FloorplanRuleLabels.html +7 -8
  273. package/docs/types/FloorplanServerRuleLabels.html +7 -8
  274. package/docs/types/GuideLinePluginExportType.html +7 -8
  275. package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -8
  276. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -8
  277. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -8
  278. package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -8
  279. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -8
  280. package/docs/types/GuideLinePluginType.PathItem.html +7 -8
  281. package/docs/types/GuideLinePluginType.PluginData.html +7 -8
  282. package/docs/types/HelperEventMap.html +7 -8
  283. package/docs/types/LoadTagConfig.html +7 -8
  284. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -8
  285. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -8
  286. package/docs/types/MediaData.html +7 -8
  287. package/docs/types/MediaStore.html +7 -8
  288. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
  289. package/docs/types/ModelFloorplanPluginParameterType.html +7 -8
  290. package/docs/types/ModelFloorplanPluginReturnType.html +7 -8
  291. package/docs/types/ModelRoomLabelPluginParameters.html +7 -8
  292. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -8
  293. package/docs/types/MoveArgs.html +7 -8
  294. package/docs/types/MoveOpts.html +7 -8
  295. package/docs/types/Object3DHelperEventMap.html +7 -8
  296. package/docs/types/ObjectFit.html +7 -8
  297. package/docs/types/PaintBrushEventMap.html +7 -8
  298. package/docs/types/PanoCompassPluginData.html +7 -8
  299. package/docs/types/PanoCompassPluginExportType.html +7 -8
  300. package/docs/types/PanoCompassPluginParameterType.html +7 -8
  301. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -8
  302. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -8
  303. package/docs/types/PanoIndex.html +7 -8
  304. package/docs/types/PanoMeasurePluginEvent.html +7 -8
  305. package/docs/types/PanoMeasureReturnType.html +7 -8
  306. package/docs/types/PanoSpatialTagPluginId.html +7 -8
  307. package/docs/types/PanoTagPluginExportInterface.html +7 -8
  308. package/docs/types/PanoTagPluginParamsInterface.html +7 -8
  309. package/docs/types/PanoVideoPluginParameterType.html +7 -8
  310. package/docs/types/PanoVideoPluginReturnType.html +7 -8
  311. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -8
  312. package/docs/types/PipelinePluginParameterType.html +7 -8
  313. package/docs/types/PipelinePluginReturnType.html +7 -8
  314. package/docs/types/PlaneTag.html +7 -8
  315. package/docs/types/Point2DTag.html +7 -8
  316. package/docs/types/Point3DTag.html +7 -8
  317. package/docs/types/PointTag.html +7 -8
  318. package/docs/types/PointTagInstance.html +7 -8
  319. package/docs/types/Position.html +7 -8
  320. package/docs/types/RotateArgs.html +7 -8
  321. package/docs/types/RotateOpts.html +7 -8
  322. package/docs/types/RuleLabelsKey.html +7 -8
  323. package/docs/types/RuleLabelsValue.html +7 -8
  324. package/docs/types/StickType.html +7 -8
  325. package/docs/types/Tag.html +9 -10
  326. package/docs/types/Tag2D.html +7 -8
  327. package/docs/types/Tag3D.html +7 -8
  328. package/docs/types/TagConfigByKey.html +7 -8
  329. package/docs/types/TagContentType.html +7 -8
  330. package/docs/types/TagDimensionType.html +7 -8
  331. package/docs/types/TagElement.html +7 -8
  332. package/docs/types/TagEvents.html +7 -8
  333. package/docs/types/TagGLTFObject.html +7 -8
  334. package/docs/types/TagHooks.html +7 -8
  335. package/docs/types/TagId.html +7 -8
  336. package/docs/types/TagInstance.html +7 -8
  337. package/docs/types/TagPointType.html +7 -8
  338. package/docs/types/TagRendererMap.html +7 -8
  339. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -8
  340. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -8
  341. package/docs/types/WorkCode.html +7 -8
  342. package/docs/variables/FLOOR_TYPE_MAP.html +7 -8
  343. package/docs/variables/PLUGIN.html +7 -8
  344. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -8
  345. package/docs/variables/ROOM_TYPE_MAP.html +7 -8
  346. package/docs/variables/defaultGlobalConfig.html +8 -9
  347. package/docs/variables/itemLabelPluginServerParams.html +7 -8
  348. package/docs/variables/modelItemLabelPluginServerParams.html +7 -8
  349. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -8
  350. package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
  351. package/libs/AreaMakerPlugin/Controller.js +336 -0
  352. package/libs/AreaMakerPlugin/index.d.ts +4 -0
  353. package/libs/AreaMakerPlugin/index.js +37 -0
  354. package/libs/AreaMakerPlugin/typing.d.ts +148 -0
  355. package/libs/AreaMakerPlugin/utils/Item.d.ts +115 -0
  356. package/libs/AreaMakerPlugin/utils/Item.js +266 -0
  357. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
  358. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
  359. package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
  360. package/libs/PanoTagPlugin/controller/TagRender.js +19 -18
  361. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
  362. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
  363. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
  364. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
  365. package/libs/base/BasePlugin.js +1 -1
  366. package/libs/base/BasePluginWithData.d.ts +1 -1
  367. package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
  368. package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
  369. package/libs/components/AreaLabel/LabelItem.js +125 -0
  370. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
  371. package/libs/floorplan/index.d.ts +0 -1
  372. package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
  373. package/libs/floorplan/utils/correctFiveState.js +28 -28
  374. package/libs/index.d.ts +1 -0
  375. package/libs/index.js +120 -122
  376. package/libs/shared-utils/device.js +0 -1
  377. package/libs/shared-utils/five/changeMode.js +32 -29
  378. package/libs/shared-utils/index.d.ts +1 -0
  379. package/libs/shared-utils/index.js +27 -21
  380. package/libs/shared-utils/logger.js +1 -1
  381. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  382. package/libs/shared-utils/math/planimetry.js +36 -29
  383. package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
  384. package/libs/shared-utils/three/core/Object3D.js +22 -0
  385. package/libs/shared-utils/three/index.d.ts +2 -0
  386. package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
  387. package/libs/shared-utils/three/loadVideoTexture.js +6 -6
  388. package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
  389. package/libs/shared-utils/three/objects/LineSegments.js +9 -0
  390. package/libs/vendor/svelte/internal/index.js +79 -85
  391. package/package.json +2 -2
  392. package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  393. package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  394. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  395. package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  396. package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  397. package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  398. package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  399. package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  400. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
  401. package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +0 -51
  402. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
  403. package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +0 -25
  404. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +0 -188
  405. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +0 -1
  406. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +0 -94
  407. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +0 -1
  408. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +0 -111
  409. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
  410. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +0 -191
  411. package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
  412. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +0 -237
  413. package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
  414. package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
  415. package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +0 -207
  416. package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
  417. package/libs/floorplan/FloorplanRoomsPlugin/index.js +0 -43
  418. package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
  419. /package/dist/{floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts → components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
  420. /package/libs/{floorplan/FloorplanRoomsPlugin → AreaMakerPlugin}/typing.js +0 -0
  421. /package/{dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts → libs/components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
@@ -1,114 +0,0 @@
1
- import { Subscribe } from '../../shared-utils/Subscribe';
2
- /**
3
- * 基本属性字段
4
- */
5
- interface State {
6
- /**
7
- * 插件是否启用
8
- */
9
- enabled: boolean;
10
- /**
11
- * 插件UI是否展示
12
- */
13
- visible?: boolean;
14
- /**
15
- * 插件的配置项
16
- */
17
- config?: unknown;
18
- }
19
- interface BaseOptions {
20
- /** 是否是用户行为 */
21
- userAction?: boolean;
22
- }
23
- interface Config {
24
- /** 静态资源前缀 */
25
- staticPrefix?: string;
26
- /** 国际化转换函数 */
27
- i18n?: (key: string) => string;
28
- }
29
- /**
30
- * 插件基本事件
31
- */
32
- type EventMap<PluginState> = {
33
- /**
34
- * 插件被销毁
35
- */
36
- dispose: () => void;
37
- /**
38
- * 插件状态变化
39
- * @param params.state 最新的State
40
- * @param params.prevState 上一个State
41
- * @param params.userAction 是否是用户触发
42
- */
43
- stateChange: (params: {
44
- state: PluginState;
45
- prevState?: PluginState;
46
- userAction: boolean;
47
- }) => void;
48
- };
49
- /**
50
- * plugin 的基本控制器
51
- */
52
- declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState>> {
53
- /**
54
- * @realsee/dnalogel 版本号
55
- */
56
- readonly VERSION: string;
57
- /**
58
- * 插件事件钩子
59
- */
60
- hooks: Subscribe<PluginEventMap>;
61
- readonly staticPrefix: string;
62
- /**
63
- * 当前状态
64
- * @description
65
- * ```text
66
- * 可以通过 plugin.state 和 plugin.setState 来获取和设置。
67
- * 通过 state 设置后,plugin 会通过合适的动画运动来达到设置的效果。
68
- * 来迎合一些通过数据驱动的场景。
69
- * ```
70
- */
71
- abstract state: PluginState;
72
- constructor(config?: Config);
73
- /**
74
- * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
75
- */
76
- getCurrentState(): PluginState;
77
- /**
78
- * 插件自身DOM添加到父容器
79
- * @param wrapper
80
- */
81
- appendTo?(wrapper: Element): void;
82
- /**
83
- * 展示UI
84
- */
85
- show?(options?: BaseOptions): Promise<void>;
86
- /**
87
- * 隐藏UI
88
- */
89
- hide?(options?: BaseOptions): Promise<void>;
90
- /**
91
- * 设置state
92
- * @param state 插件的目标状态
93
- * @param options 配置项
94
- */
95
- setState?(state: Partial<PluginState>, options?: BaseOptions): void;
96
- /**
97
- * @description: 获取静态资源的url
98
- */
99
- absoluteUrl(url: string): string;
100
- /**
101
- * 启用插件,让插件能够响应交互
102
- */
103
- abstract enable(options?: BaseOptions): void;
104
- /**
105
- * 禁用插件,让插件停止响应交互
106
- */
107
- abstract disable(options?: BaseOptions): void;
108
- /**
109
- * 插件进行销毁
110
- */
111
- abstract dispose(): void;
112
- }
113
- export type { State, Config, EventMap, BaseOptions };
114
- export { Controller };
@@ -1,51 +0,0 @@
1
- var e = Object.defineProperty;
2
- var m = (r, t, i) => t in r ? e(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i;
3
- var o = (r, t, i) => (m(r, typeof t != "symbol" ? t + "" : t, i), i);
4
- import { Subscribe as p } from "../../shared-utils/Subscribe.js";
5
- import "hammerjs";
6
- import "three";
7
- import "@realsee/five";
8
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
9
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
11
- import { absoluteUrl as s } from "../../shared-utils/absoluteUrl.js";
12
- import "../../shared-utils/positionToVector3.js";
13
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
14
- import "three/examples/jsm/renderers/CSS3DRenderer";
15
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
16
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
17
- import "../../CSS3DRenderPlugin/utils/even.js";
18
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
19
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
20
- import "../../shared-utils/three/centerPoint.js";
21
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
22
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
23
- let O = class {
24
- constructor(t) {
25
- /**
26
- * @realsee/dnalogel 版本号
27
- */
28
- o(this, "VERSION", "2.28.0-dev.1");
29
- /**
30
- * 插件事件钩子
31
- */
32
- o(this, "hooks", new p());
33
- o(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
34
- t != null && t.staticPrefix && (this.staticPrefix = t.staticPrefix);
35
- }
36
- /**
37
- * 获取当前的插件状态,如果当初插件内存在需要通过动画变更的 state 值,则通过此方法可以得到中间状态
38
- */
39
- getCurrentState() {
40
- return this.state;
41
- }
42
- /**
43
- * @description: 获取静态资源的url
44
- */
45
- absoluteUrl(t) {
46
- return s(this.staticPrefix, t);
47
- }
48
- };
49
- export {
50
- O as Controller
51
- };
@@ -1,23 +0,0 @@
1
- import * as BasePlugin from './BasePlugin';
2
- type State = BasePlugin.State;
3
- type Config = BasePlugin.Config;
4
- interface EventMap<PluginState, PluginData> extends BasePlugin.EventMap<PluginState> {
5
- /** 数据变更 */
6
- dataChange: (data: PluginData, prevData?: PluginData) => void;
7
- /** 数据加载完成 */
8
- dataLoaded: (data: PluginData) => void;
9
- }
10
- declare abstract class Controller<PluginState extends State, PluginEventMap extends EventMap<PluginState, PluginData>, PluginServerData, PluginData> extends BasePlugin.Controller<PluginState, PluginEventMap> {
11
- protected abstract data?: PluginData;
12
- /**
13
- * 加载插件依赖数据
14
- * @param serverData 插件数据
15
- * @param state 插件 State
16
- */
17
- abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
18
- /** 把原始数据转化为插件数据 */
19
- protected abstract formatData?(serverData: PluginServerData): Promise<PluginData>;
20
- }
21
- export type { State, EventMap, Config };
22
- export type { BaseOptions } from './BasePlugin';
23
- export { Controller };
@@ -1,25 +0,0 @@
1
- import { Controller as o } from "./BasePlugin.js";
2
- import "../../shared-utils/Subscribe.js";
3
- import "hammerjs";
4
- import "three";
5
- import "@realsee/five";
6
- import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
8
- import "../../shared-utils/positionToVector3.js";
9
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
10
- import "three/examples/jsm/renderers/CSS3DRenderer";
11
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
12
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
13
- import "../../CSS3DRenderPlugin/utils/even.js";
14
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
15
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
16
- import "../../shared-utils/three/centerPoint.js";
17
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
18
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
19
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
20
- import "../../shared-utils/absoluteUrl.js";
21
- let q = class extends o {
22
- };
23
- export {
24
- q as Controller
25
- };
@@ -1,188 +0,0 @@
1
- import { SvelteComponent as O, init as k, safe_not_equal as w, assign as S, create_component as c, space as d, empty as x, mount_component as D, insert as _, get_spread_update as p, transition_in as s, transition_out as u, check_outros as C, destroy_component as E, detach as b, group_outros as F } from "../../../../vendor/svelte/internal/index.js";
2
- import q from "./ExtraObjects.js";
3
- import { BaseImage as B } from "../../../Components/BaseImage.js";
4
- import H from "./RoomHighlight/RoomHighlight.js";
5
- import "../../../Components/Normalmage.js";
6
- import "../../../Components/SvgImage.js";
7
- import "./RoomHighlight/Room.js";
8
- import "../../../utils/formatPosition.js";
9
- function j(h) {
10
- let i, o;
11
- const r = [
12
- {
13
- floorIndex: (
14
- /*floorIndex*/
15
- h[0]
16
- ),
17
- floorplanData: (
18
- /*floorplanData*/
19
- h[2]
20
- ),
21
- highlightEnable: (
22
- /*highlightEnable*/
23
- h[5]
24
- ),
25
- highlightData: (
26
- /*highlightData*/
27
- h[3]
28
- ),
29
- highlightStyle: (
30
- /*highlightStyle*/
31
- h[4]
32
- )
33
- }
34
- ];
35
- let a = {};
36
- for (let l = 0; l < r.length; l += 1)
37
- a = S(a, r[l]);
38
- return i = new H({ props: a }), {
39
- c() {
40
- c(i.$$.fragment);
41
- },
42
- m(l, f) {
43
- D(i, l, f), o = !0;
44
- },
45
- p(l, f) {
46
- const g = f & /*floorIndex, floorplanData, highlightEnable, highlightData, highlightStyle*/
47
- 61 ? p(r, [
48
- {
49
- floorIndex: (
50
- /*floorIndex*/
51
- l[0]
52
- ),
53
- floorplanData: (
54
- /*floorplanData*/
55
- l[2]
56
- ),
57
- highlightEnable: (
58
- /*highlightEnable*/
59
- l[5]
60
- ),
61
- highlightData: (
62
- /*highlightData*/
63
- l[3]
64
- ),
65
- highlightStyle: (
66
- /*highlightStyle*/
67
- l[4]
68
- )
69
- }
70
- ]) : {};
71
- i.$set(g);
72
- },
73
- i(l) {
74
- o || (s(i.$$.fragment, l), o = !0);
75
- },
76
- o(l) {
77
- u(i.$$.fragment, l), o = !1;
78
- },
79
- d(l) {
80
- E(i, l);
81
- }
82
- };
83
- }
84
- function N(h) {
85
- let i, o, r, a, l, f;
86
- const g = [
87
- {
88
- floorIndex: (
89
- /*floorIndex*/
90
- h[0]
91
- ),
92
- floorplanData: (
93
- /*floorplanData*/
94
- h[2]
95
- )
96
- }
97
- ];
98
- let m = {};
99
- for (let e = 0; e < g.length; e += 1)
100
- m = S(m, g[e]);
101
- i = new B({ props: m }), r = new q({
102
- props: {
103
- extraObjects: (
104
- /*currentFloorExtraObjects*/
105
- h[6]
106
- )
107
- }
108
- });
109
- let n = (
110
- /*hoverEnable*/
111
- h[1] && j(h)
112
- );
113
- return {
114
- c() {
115
- c(i.$$.fragment), o = d(), c(r.$$.fragment), a = d(), n && n.c(), l = x();
116
- },
117
- m(e, t) {
118
- D(i, e, t), _(e, o, t), D(r, e, t), _(e, a, t), n && n.m(e, t), _(e, l, t), f = !0;
119
- },
120
- p(e, [t]) {
121
- const y = t & /*floorIndex, floorplanData*/
122
- 5 ? p(g, [
123
- {
124
- floorIndex: (
125
- /*floorIndex*/
126
- e[0]
127
- ),
128
- floorplanData: (
129
- /*floorplanData*/
130
- e[2]
131
- )
132
- }
133
- ]) : {};
134
- i.$set(y);
135
- const I = {};
136
- t & /*currentFloorExtraObjects*/
137
- 64 && (I.extraObjects = /*currentFloorExtraObjects*/
138
- e[6]), r.$set(I), /*hoverEnable*/
139
- e[1] ? n ? (n.p(e, t), t & /*hoverEnable*/
140
- 2 && s(n, 1)) : (n = j(e), n.c(), s(n, 1), n.m(l.parentNode, l)) : n && (F(), u(n, 1, 1, () => {
141
- n = null;
142
- }), C());
143
- },
144
- i(e) {
145
- f || (s(i.$$.fragment, e), s(r.$$.fragment, e), s(n), f = !0);
146
- },
147
- o(e) {
148
- u(i.$$.fragment, e), u(r.$$.fragment, e), u(n), f = !1;
149
- },
150
- d(e) {
151
- E(i, e), e && b(o), E(r, e), e && b(a), n && n.d(e), e && b(l);
152
- }
153
- };
154
- }
155
- function R(h, i, o) {
156
- let r, { floorIndex: a } = i, { hoverEnable: l } = i, { floorplanData: f } = i, { extraObjects: g = [] } = i, { highlightData: m } = i, { highlightStyle: n } = i, { highlightEnable: e } = i;
157
- return h.$$set = (t) => {
158
- "floorIndex" in t && o(0, a = t.floorIndex), "hoverEnable" in t && o(1, l = t.hoverEnable), "floorplanData" in t && o(2, f = t.floorplanData), "extraObjects" in t && o(7, g = t.extraObjects), "highlightData" in t && o(3, m = t.highlightData), "highlightStyle" in t && o(4, n = t.highlightStyle), "highlightEnable" in t && o(5, e = t.highlightEnable);
159
- }, h.$$.update = () => {
160
- h.$$.dirty & /*extraObjects, floorIndex*/
161
- 129 && o(6, r = g == null ? void 0 : g.filter((t) => t.floorIndex === a));
162
- }, [
163
- a,
164
- l,
165
- f,
166
- m,
167
- n,
168
- e,
169
- r,
170
- g
171
- ];
172
- }
173
- class P extends O {
174
- constructor(i) {
175
- super(), k(this, i, R, N, w, {
176
- floorIndex: 0,
177
- hoverEnable: 1,
178
- floorplanData: 2,
179
- extraObjects: 7,
180
- highlightData: 3,
181
- highlightStyle: 4,
182
- highlightEnable: 5
183
- });
184
- }
185
- }
186
- export {
187
- P as default
188
- };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,94 +0,0 @@
1
- import { SvelteComponent as k, init as y, safe_not_equal as x, append_styles as I, element as _, attr as h, insert as v, update_keyed_each as $, noop as g, detach as j, space as w, set_style as r, append as d, destroy_block as z } from "../../../../vendor/svelte/internal/index.js";
2
- function O(s) {
3
- I(s, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
4
- }
5
- function m(s, t, e) {
6
- const l = s.slice();
7
- return l[1] = t[e], l;
8
- }
9
- function b(s, t) {
10
- let e, l, a = `${/*extraObject*/
11
- t[1].icon.width / 16}rem`, p = `${/*extraObject*/
12
- t[1].icon.height / 16}rem`, i, n = `${/*extraObject*/
13
- t[1].positionInImage.y * 100}%`, o = `${/*extraObject*/
14
- t[1].positionInImage.x * 100}%`;
15
- return {
16
- key: s,
17
- first: null,
18
- c() {
19
- e = _("div"), l = _("div"), i = w(), h(l, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), r(l, "background-image", `url(${/*extraObject*/
20
- t[1].icon.url})`), r(l, "width", a), r(l, "height", p), h(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), r(e, "top", n), r(e, "left", o), this.first = e;
21
- },
22
- m(f, c) {
23
- v(f, e, c), d(e, l), d(e, i);
24
- },
25
- p(f, c) {
26
- t = f, c & /*extraObjects*/
27
- 1 && r(l, "background-image", `url(${/*extraObject*/
28
- t[1].icon.url})`);
29
- const u = c & /*extraObjects*/
30
- 1;
31
- u && r(l, "width", a), u && r(l, "height", p), c & /*extraObjects*/
32
- 1 && n !== (n = `${/*extraObject*/
33
- t[1].positionInImage.y * 100}%`) && r(e, "top", n), c & /*extraObjects*/
34
- 1 && o !== (o = `${/*extraObject*/
35
- t[1].positionInImage.x * 100}%`) && r(e, "left", o);
36
- },
37
- d(f) {
38
- f && j(e);
39
- }
40
- };
41
- }
42
- function q(s) {
43
- let t, e = [], l = /* @__PURE__ */ new Map(), a = (
44
- /*extraObjects*/
45
- s[0]
46
- );
47
- const p = (i) => (
48
- /*extraObject*/
49
- i[1].id
50
- );
51
- for (let i = 0; i < a.length; i += 1) {
52
- let n = m(s, a, i), o = p(n);
53
- l.set(o, e[i] = b(o, n));
54
- }
55
- return {
56
- c() {
57
- t = _("div");
58
- for (let i = 0; i < e.length; i += 1)
59
- e[i].c();
60
- h(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
61
- },
62
- m(i, n) {
63
- v(i, t, n);
64
- for (let o = 0; o < e.length; o += 1)
65
- e[o] && e[o].m(t, null);
66
- },
67
- p(i, [n]) {
68
- n & /*extraObjects*/
69
- 1 && (a = /*extraObjects*/
70
- i[0], e = $(e, n, p, 1, i, a, l, t, z, b, null, m));
71
- },
72
- i: g,
73
- o: g,
74
- d(i) {
75
- i && j(t);
76
- for (let n = 0; n < e.length; n += 1)
77
- e[n].d();
78
- }
79
- };
80
- }
81
- function C(s, t, e) {
82
- let { extraObjects: l = [] } = t;
83
- return s.$$set = (a) => {
84
- "extraObjects" in a && e(0, l = a.extraObjects);
85
- }, [l];
86
- }
87
- class M extends k {
88
- constructor(t) {
89
- super(), y(this, t, C, q, x, { extraObjects: 0 }, O);
90
- }
91
- }
92
- export {
93
- M as default
94
- };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';
@@ -1,111 +0,0 @@
1
- import { SvelteComponent as I, init as p, safe_not_equal as E, append_styles as k, svg_element as v, attr as f, insert as C, listen as y, noop as m, detach as q, run_all as F, prevent_default as K } from "../../../../../vendor/svelte/internal/index.js";
2
- import { pathD as P, formatFloorplanPoint as R } from "../../../../utils/formatPosition.js";
3
- function Z(l) {
4
- k(l, "svelte-aeuumr", "path.svelte-aeuumr{--opacity:0;opacity:var(--opacity)}");
5
- }
6
- function j(l) {
7
- let t, i, a, r;
8
- return {
9
- c() {
10
- t = v("path"), f(
11
- t,
12
- "d",
13
- /*_pathD*/
14
- l[4]
15
- ), f(t, "fill", "#fff"), f(
16
- t,
17
- "style",
18
- /*style*/
19
- l[2]
20
- ), f(t, "id", i = `${/*floorIndex*/
21
- l[1]}_${/*room*/
22
- l[0].id}`), f(t, "class", "svelte-aeuumr");
23
- },
24
- m(n, h) {
25
- C(n, t, h), a || (r = [
26
- y(
27
- t,
28
- "touchstart",
29
- /*handleClick*/
30
- l[3]
31
- ),
32
- y(t, "keyup", K(w))
33
- ], a = !0);
34
- },
35
- p(n, [h]) {
36
- h & /*style*/
37
- 4 && f(
38
- t,
39
- "style",
40
- /*style*/
41
- n[2]
42
- ), h & /*floorIndex, room*/
43
- 3 && i !== (i = `${/*floorIndex*/
44
- n[1]}_${/*room*/
45
- n[0].id}`) && f(t, "id", i);
46
- },
47
- i: m,
48
- o: m,
49
- d(n) {
50
- n && q(t), a = !1, F(r);
51
- }
52
- };
53
- }
54
- function w(l) {
55
- l.preventDefault();
56
- }
57
- function x(l, t, i) {
58
- let a, r, { room: n } = t, { floorIndex: h } = t, { floorplanData: g } = t, { highlightData: o } = t, { highlightStyle: c } = t, { highlightEnable: d } = t;
59
- const s = { color: "#ff0000", opacity: 0.5 }, _ = { color: "#ff0000", opacity: 0 };
60
- function D(e) {
61
- if (e.preventDefault(), !d)
62
- return;
63
- const u = `${h}_${n.id}`;
64
- o != null && o[u] ? (i(5, o[u] = _, o), delete o[u]) : i(5, o[u] = c || s, o);
65
- }
66
- const { bounding: S } = g, b = P(n.path, {
67
- needZ: !0,
68
- format: (e) => R(e, S)
69
- });
70
- return l.$$set = (e) => {
71
- "room" in e && i(0, n = e.room), "floorIndex" in e && i(1, h = e.floorIndex), "floorplanData" in e && i(6, g = e.floorplanData), "highlightData" in e && i(5, o = e.highlightData), "highlightStyle" in e && i(7, c = e.highlightStyle), "highlightEnable" in e && i(8, d = e.highlightEnable);
72
- }, l.$$.update = () => {
73
- l.$$.dirty & /*highlightData, floorIndex, room*/
74
- 35 && i(9, a = o[`${h}_${n.id}`]), l.$$.dirty & /*highlight*/
75
- 512 && i(2, r = a ? `fill: ${a.color}; --opacity: ${a.opacity}; pointer-events: ${a.disabled ? "none" : "auto"}` : null);
76
- }, [
77
- n,
78
- h,
79
- r,
80
- D,
81
- b,
82
- o,
83
- g,
84
- c,
85
- d,
86
- a
87
- ];
88
- }
89
- class B extends I {
90
- constructor(t) {
91
- super(), p(
92
- this,
93
- t,
94
- x,
95
- j,
96
- E,
97
- {
98
- room: 0,
99
- floorIndex: 1,
100
- floorplanData: 6,
101
- highlightData: 5,
102
- highlightStyle: 7,
103
- highlightEnable: 8
104
- },
105
- Z
106
- );
107
- }
108
- }
109
- export {
110
- B as default
111
- };
@@ -1 +0,0 @@
1
- export { SvelteComponentTyped as default } from 'svelte/internal';