@realsee/dnalogel 3.67.2 → 3.67.3

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 (492) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/AreaMakerPlugin/utils/Item.d.ts +9 -0
  3. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +8 -0
  4. package/dist/index.cjs.js +82 -82
  5. package/dist/index.js +8333 -7902
  6. package/dist/index.umd.js +75 -75
  7. package/dist/shared-utils/fontSize.d.ts +185 -0
  8. package/dist/shared-utils/px2rem.d.ts +1 -0
  9. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  10. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
  11. package/docs/classes/CSS3DRender.html +2 -2
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
  14. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  15. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  16. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  17. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  18. package/docs/classes/ModelRoomLabelController.html +2 -2
  19. package/docs/classes/MoveController.html +2 -2
  20. package/docs/classes/Object3DHelperController.html +2 -2
  21. package/docs/classes/PaintBrush.html +2 -2
  22. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  23. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  24. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  25. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  26. package/docs/classes/PanoTagPluginController.html +2 -2
  27. package/docs/classes/Sculpt.html +2 -2
  28. package/docs/classes/Util.BetterTween.html +2 -2
  29. package/docs/classes/Util.FiveDomEvents.html +2 -2
  30. package/docs/classes/Util.FivePuppet.html +2 -2
  31. package/docs/classes/Util.Interval.html +2 -2
  32. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  33. package/docs/classes/Util.LightTag.html +2 -2
  34. package/docs/classes/Util.LineSegments.html +2 -2
  35. package/docs/classes/Util.Magnifier.html +2 -2
  36. package/docs/classes/Util.Object3D.html +2 -2
  37. package/docs/classes/Util.PointDomHelper.html +2 -2
  38. package/docs/classes/Util.PointHelper.html +2 -2
  39. package/docs/classes/Util.PointSelector.html +2 -2
  40. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  41. package/docs/classes/Util.Rectangle.html +2 -2
  42. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  43. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  44. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  45. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  47. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  49. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  50. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  51. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  52. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  53. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  54. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  55. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  56. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  57. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  58. package/docs/classes/WalkController.html +2 -2
  59. package/docs/enums/CameraMovementEffect.html +2 -2
  60. package/docs/enums/ContentType.html +2 -2
  61. package/docs/enums/DIRECTION.html +2 -2
  62. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  63. package/docs/enums/DimensionType.html +2 -2
  64. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  65. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  66. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  67. package/docs/enums/PointType.html +2 -2
  68. package/docs/enums/Rotation.html +2 -2
  69. package/docs/functions/AreaMakerPlugin.html +1 -1
  70. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  71. package/docs/functions/CameraMovementPlugin.html +2 -2
  72. package/docs/functions/CruisePlugin.html +1 -1
  73. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  74. package/docs/functions/GuideLinePlugin.html +1 -1
  75. package/docs/functions/ItemLabelPlugin.html +1 -1
  76. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  77. package/docs/functions/MeasurePlugin.html +1 -1
  78. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  79. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  80. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  81. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  82. package/docs/functions/ModelMakerPlugin.html +1 -1
  83. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  84. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  85. package/docs/functions/ModelViewPlugin.html +2 -2
  86. package/docs/functions/MovePlugin.html +1 -1
  87. package/docs/functions/Object3DHelperPlugin.html +1 -1
  88. package/docs/functions/PanoCompassPlugin.html +1 -1
  89. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  90. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  91. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  92. package/docs/functions/PanoMeasurePlugin.html +1 -1
  93. package/docs/functions/PanoRulerPlugin.html +2 -2
  94. package/docs/functions/PanoRulerProPlugin.html +2 -2
  95. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  96. package/docs/functions/PanoTagPlugin.html +1 -1
  97. package/docs/functions/PanoVideoPlugin.html +2 -2
  98. package/docs/functions/PipelinePlugin.html +1 -1
  99. package/docs/functions/SculptPlugin.html +2 -2
  100. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  101. package/docs/functions/Util.absoluteUrl.html +2 -2
  102. package/docs/functions/Util.awaitNextFrame.html +1 -1
  103. package/docs/functions/Util.blink.html +2 -2
  104. package/docs/functions/Util.bounding.html +1 -1
  105. package/docs/functions/Util.boundingBox.html +1 -1
  106. package/docs/functions/Util.boundingSphere.html +1 -1
  107. package/docs/functions/Util.boxVertex.html +2 -2
  108. package/docs/functions/Util.boxVertexes.html +1 -1
  109. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  110. package/docs/functions/Util.convexHull.html +2 -2
  111. package/docs/functions/Util.equal.html +2 -2
  112. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  113. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  114. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  115. package/docs/functions/Util.getFrameTime.html +2 -2
  116. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  117. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  118. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  119. package/docs/functions/Util.inside.html +1 -1
  120. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  121. package/docs/functions/Util.isModelLike.html +1 -1
  122. package/docs/functions/Util.isNil.html +2 -2
  123. package/docs/functions/Util.isPanoramaLike.html +1 -1
  124. package/docs/functions/Util.lookObject.html +2 -2
  125. package/docs/functions/Util.lookPoint.html +2 -2
  126. package/docs/functions/Util.nextFrame.html +1 -1
  127. package/docs/functions/Util.notNil.html +2 -2
  128. package/docs/functions/Util.reblink.html +2 -2
  129. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  130. package/docs/functions/Util.sculpt.createBox.html +1 -1
  131. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  132. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  133. package/docs/functions/Util.sculpt.createLine.html +2 -2
  134. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  135. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  136. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  137. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  138. package/docs/functions/Util.tag.html +1 -1
  139. package/docs/functions/Util.tweenProgress.html +1 -1
  140. package/docs/functions/Util.uuid.html +2 -2
  141. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  142. package/docs/functions/Util.worldBounding.html +1 -1
  143. package/docs/functions/Util.worldBoundingBox.html +1 -1
  144. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  145. package/docs/functions/createPolyline.html +2 -2
  146. package/docs/functions/pluginFlag.html +1 -1
  147. package/docs/hierarchy.html +1 -1
  148. package/docs/index.html +2 -2
  149. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  151. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  152. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  153. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  154. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  155. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  156. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  157. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  158. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  159. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  160. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  161. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  162. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  163. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  165. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  166. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  167. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  168. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  169. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  170. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  171. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  172. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  173. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  174. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  175. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  176. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  177. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  178. package/docs/interfaces/FloorplanBounding.html +2 -2
  179. package/docs/interfaces/FloorplanData.html +2 -2
  180. package/docs/interfaces/FloorplanEntrance.html +2 -2
  181. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  182. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  183. package/docs/interfaces/FloorplanFloorData.html +2 -2
  184. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  185. package/docs/interfaces/FloorplanObserver.html +2 -2
  186. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  187. package/docs/interfaces/FloorplanPosition.html +2 -2
  188. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  189. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  190. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  191. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  192. package/docs/interfaces/FloorplanServerData.html +2 -2
  193. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  194. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  195. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  196. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  197. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  198. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  199. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  200. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  201. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  202. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  203. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  207. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  209. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  212. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  214. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  215. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  216. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  217. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  218. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  219. package/docs/interfaces/HelperOffset.html +2 -2
  220. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  221. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  222. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  224. package/docs/interfaces/MinMax.html +2 -2
  225. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  226. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  228. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  229. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  230. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  231. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  233. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  234. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  235. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  236. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  237. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  238. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  240. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  241. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  242. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  243. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  244. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  245. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  246. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  247. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  248. package/docs/interfaces/Object3DHelperState.html +2 -2
  249. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  250. package/docs/interfaces/PaintBrushAction.html +2 -2
  251. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  252. package/docs/interfaces/PaintBrushState.html +2 -2
  253. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  254. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  255. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  256. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  257. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  258. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  259. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  260. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  261. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  262. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  264. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  265. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  266. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  267. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  268. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  269. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  274. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  275. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  276. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  277. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  279. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  280. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  281. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  282. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  283. package/docs/interfaces/PluginEventMap.html +2 -2
  284. package/docs/interfaces/Point.html +2 -2
  285. package/docs/interfaces/Room.html +2 -2
  286. package/docs/interfaces/RoomInfo.html +2 -2
  287. package/docs/interfaces/RoomLabel.html +2 -2
  288. package/docs/interfaces/RoomRules.html +1 -1
  289. package/docs/interfaces/Rooms.html +1 -1
  290. package/docs/interfaces/Scissor.html +2 -2
  291. package/docs/interfaces/State.html +2 -2
  292. package/docs/interfaces/TagCacheInterface.html +2 -2
  293. package/docs/interfaces/TagConfig.html +2 -2
  294. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  295. package/docs/interfaces/TagIconUrl.html +2 -2
  296. package/docs/interfaces/TagObjectGroup.html +2 -2
  297. package/docs/interfaces/TagState.html +2 -2
  298. package/docs/interfaces/TagStyle.html +2 -2
  299. package/docs/interfaces/Tags.html +2 -2
  300. package/docs/interfaces/TemporaryState.html +2 -2
  301. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  302. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  303. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  304. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  305. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  306. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  307. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  308. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  309. package/docs/interfaces/Util.PointIntersection.html +2 -2
  310. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  311. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  312. package/docs/modules/AreaMakerPluginType.html +2 -2
  313. package/docs/modules/CruisePluginTypes.html +2 -2
  314. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  315. package/docs/modules/GuideLineItem.html +2 -2
  316. package/docs/modules/GuideLineModeItem.html +2 -2
  317. package/docs/modules/GuideLinePluginType.html +2 -2
  318. package/docs/modules/ModelMakerPluginType.html +2 -2
  319. package/docs/modules/PanoVideoPluginType.html +2 -2
  320. package/docs/modules/SculptData.html +2 -2
  321. package/docs/modules/SculptType.html +2 -2
  322. package/docs/modules/Util.html +2 -2
  323. package/docs/modules/Util.sculpt.html +2 -2
  324. package/docs/modules.html +2 -2
  325. package/docs/types/AddObject3DHelperConfig.html +2 -2
  326. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  327. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  328. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  329. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  330. package/docs/types/ArrayPosition.html +1 -1
  331. package/docs/types/AudioAppearance.html +1 -1
  332. package/docs/types/CSS3DRenderExportType.html +1 -1
  333. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  334. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  335. package/docs/types/ClassFunctionParameters.html +1 -1
  336. package/docs/types/Color.html +1 -1
  337. package/docs/types/ContentTypeConfigKey.html +1 -1
  338. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  339. package/docs/types/ContentTypeMap.html +1 -1
  340. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  341. package/docs/types/Create3DElementReturnType.html +1 -1
  342. package/docs/types/CruisePluginExportType.html +1 -1
  343. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  344. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  345. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  346. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  347. package/docs/types/DeprecatedTagProperty.html +2 -2
  348. package/docs/types/Direction-1.html +1 -1
  349. package/docs/types/Direction4.html +1 -1
  350. package/docs/types/ElementRenderer.html +2 -2
  351. package/docs/types/FloorplanRuleLabels.html +2 -2
  352. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  353. package/docs/types/GuideLinePluginExportType.html +1 -1
  354. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  355. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  356. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  357. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  358. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  359. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  360. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  361. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  362. package/docs/types/HelperEventMap.html +1 -1
  363. package/docs/types/InternalHelperEventMap.html +1 -1
  364. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  365. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  366. package/docs/types/MeasurePluginConfig.html +1 -1
  367. package/docs/types/MediaData.html +2 -2
  368. package/docs/types/MediaStore.html +1 -1
  369. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  370. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  371. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  372. package/docs/types/ModelId.html +1 -1
  373. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  374. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  375. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  376. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  377. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  378. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  379. package/docs/types/MoveArgs.html +2 -2
  380. package/docs/types/MoveOpts.html +2 -2
  381. package/docs/types/Object3DHelperEventMap.html +1 -1
  382. package/docs/types/ObjectFit.html +1 -1
  383. package/docs/types/PaintBrushEventMap.html +1 -1
  384. package/docs/types/PanoCompassPluginData.html +1 -1
  385. package/docs/types/PanoCompassPluginExportType.html +1 -1
  386. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  387. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  388. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  389. package/docs/types/PanoIndex.html +1 -1
  390. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  391. package/docs/types/PanoMeasureReturnType.html +1 -1
  392. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  393. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  394. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  395. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  396. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  397. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  398. package/docs/types/PipelinePluginParameterType.html +1 -1
  399. package/docs/types/PipelinePluginReturnType.html +1 -1
  400. package/docs/types/PlaneTag.html +2 -2
  401. package/docs/types/Point2DTag.html +2 -2
  402. package/docs/types/Point3DTag.html +2 -2
  403. package/docs/types/PointTagInstance.html +1 -1
  404. package/docs/types/Position.html +1 -1
  405. package/docs/types/PositionFrom.html +1 -1
  406. package/docs/types/RotateArgs.html +2 -2
  407. package/docs/types/RotateOpts.html +2 -2
  408. package/docs/types/RuleLabelsKey.html +1 -1
  409. package/docs/types/RuleLabelsValue.html +1 -1
  410. package/docs/types/ScaleCallback.html +1 -1
  411. package/docs/types/ScalePosition.html +2 -2
  412. package/docs/types/SculptData.BoxData.html +1 -1
  413. package/docs/types/SculptData.CircleData.html +1 -1
  414. package/docs/types/SculptData.CylinderData.html +1 -1
  415. package/docs/types/SculptData.PointData.html +1 -1
  416. package/docs/types/SculptData.PolygonData.html +1 -1
  417. package/docs/types/SculptData.PolylineData.html +1 -1
  418. package/docs/types/SculptData.PrismData.html +1 -1
  419. package/docs/types/SculptData.RectangleData.html +1 -1
  420. package/docs/types/SculptType.Theme.html +2 -2
  421. package/docs/types/StickType.html +1 -1
  422. package/docs/types/Tag.html +2 -2
  423. package/docs/types/Tag2D.html +2 -2
  424. package/docs/types/Tag3D.html +2 -2
  425. package/docs/types/TagClickParams.html +1 -1
  426. package/docs/types/TagConfigByKey.html +1 -1
  427. package/docs/types/TagContentType.html +1 -1
  428. package/docs/types/TagContentTypeMapping.html +1 -1
  429. package/docs/types/TagDimensionType.html +1 -1
  430. package/docs/types/TagElement.html +2 -2
  431. package/docs/types/TagEvents.html +1 -1
  432. package/docs/types/TagGLTFObject.html +1 -1
  433. package/docs/types/TagHooks.html +1 -1
  434. package/docs/types/TagId.html +1 -1
  435. package/docs/types/TagInstance.html +1 -1
  436. package/docs/types/TagPlacement.html +2 -2
  437. package/docs/types/TagPointType.html +2 -2
  438. package/docs/types/TagRendererMap.html +1 -1
  439. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  440. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  441. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  442. package/docs/types/Util.AdherePoint.html +2 -2
  443. package/docs/types/Util.PointSelectorConfig.html +1 -1
  444. package/docs/types/WorkCode.html +1 -1
  445. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  446. package/docs/variables/PLUGIN.html +1 -1
  447. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  448. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  449. package/docs/variables/Util.animeMap.html +1 -1
  450. package/docs/variables/defaultGlobalConfig.html +1 -1
  451. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  452. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  453. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  454. package/libs/AreaMakerPlugin/Controller.js +4 -2
  455. package/libs/AreaMakerPlugin/index.js +4 -2
  456. package/libs/AreaMakerPlugin/utils/Item.d.ts +9 -0
  457. package/libs/AreaMakerPlugin/utils/Item.js +52 -36
  458. package/libs/CruisePlugin/Move.js +4 -2
  459. package/libs/CruisePlugin/Work.js +4 -2
  460. package/libs/CruisePlugin/index.js +8 -6
  461. package/libs/GuideLinePlugin/Components/Tag.js +227 -97
  462. package/libs/GuideLinePlugin/Controller.js +6 -4
  463. package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
  464. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +69 -55
  465. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +8 -0
  466. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
  467. package/libs/GuideLinePlugin/index.js +8 -6
  468. package/libs/ModelMakerPlugin/Controller.js +4 -2
  469. package/libs/ModelMakerPlugin/index.js +4 -2
  470. package/libs/ModelMakerPlugin/utils/tagRenderer.js +27 -19
  471. package/libs/ModelRoomLabelPlugin/Controller.js +8 -6
  472. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +93 -38
  473. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +127 -113
  474. package/libs/ModelRoomLabelPlugin/index.js +6 -4
  475. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +384 -384
  476. package/libs/base/BasePlugin.js +1 -1
  477. package/libs/components/AreaLabel/LabelItem.js +157 -100
  478. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +248 -209
  479. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +116 -101
  480. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  481. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  482. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  483. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  484. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  485. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  486. package/libs/index.js +147 -145
  487. package/libs/shared-utils/fontSize.d.ts +185 -0
  488. package/libs/shared-utils/fontSize.js +105 -0
  489. package/libs/shared-utils/logger.js +1 -1
  490. package/libs/shared-utils/px2rem.d.ts +1 -0
  491. package/libs/shared-utils/px2rem.js +6 -0
  492. package/package.json +1 -1
@@ -1,69 +1,104 @@
1
- import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as f, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as j, init as S, safe_not_equal as w, append_styles as k, element as g, text as L, space as y, attr as c, set_style as r, toggle_class as z, insert as I, append as u, listen as O, set_data as P, noop as v, detach as A } from "../vendor/svelte/internal/index.js";
2
2
  import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
3
- function C(t) {
4
- z(t, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
3
+ import { FONT_SIZE_MAP as E } from "../shared-utils/fontSize.js";
4
+ import { px2rem as b } from "../shared-utils/px2rem.js";
5
+ function H(t) {
6
+ k(t, "svelte-ndtj2n", ".room-label-item.svelte-ndtj2n{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-ndtj2n{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;min-width:2rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-ndtj2n{position:absolute;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-ndtj2n{font-size:0.625rem}");
5
7
  }
6
- function O(t) {
7
- let e, n, i = (
8
+ function M(t) {
9
+ let n, e, i = (
8
10
  /*roomLabel*/
9
11
  t[0].name + ""
10
- ), a, m, l, u, c;
12
+ ), f, s, m, d, p;
11
13
  return {
12
14
  c() {
13
- e = f("div"), n = f("span"), a = w(i), m = k(), l = f("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(
14
- n,
15
+ n = g("div"), e = g("span"), f = L(i), s = y(), m = g("div"), c(e, "class", "room-label-item__text svelte-ndtj2n"), r(e, "background-image", "url(" + B + ")"), z(
16
+ e,
15
17
  "wide",
16
18
  /*roomLabel*/
17
19
  t[0].name.length > 3
18
- ), b(l, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(
20
+ ), r(
19
21
  e,
22
+ "font-size",
23
+ /*nameSize*/
24
+ t[3]
25
+ ), r(
26
+ e,
27
+ "padding",
28
+ /*paddingStyle*/
29
+ t[2]
30
+ ), c(m, "class", "room-label-item__bar svelte-ndtj2n"), r(
31
+ m,
32
+ "top",
33
+ /*barTopPosition*/
34
+ t[1]
35
+ ), c(n, "class", "room-label-item svelte-ndtj2n"), r(
36
+ n,
20
37
  "z-index",
21
38
  /*roomLabel*/
22
39
  t[0].zIndex
23
40
  ), r(
24
- e,
41
+ n,
25
42
  "transform",
26
43
  /*roomLabel*/
27
44
  t[0].transform
28
45
  ), r(
29
- e,
46
+ n,
30
47
  "opacity",
31
48
  /*roomLabel*/
32
49
  t[0].visible ? 1 : 0
33
50
  );
34
51
  },
35
- m(o, s) {
36
- L(o, e, s), d(e, n), d(n, a), d(e, m), d(e, l), u || (c = I(
37
- n,
52
+ m(o, a) {
53
+ I(o, n, a), u(n, e), u(e, f), u(n, s), u(n, m), d || (p = O(
54
+ e,
38
55
  "click",
39
56
  /*onClick*/
40
- t[1]
41
- ), u = !0);
57
+ t[4]
58
+ ), d = !0);
42
59
  },
43
- p(o, [s]) {
44
- s & /*roomLabel*/
60
+ p(o, [a]) {
61
+ a & /*roomLabel*/
45
62
  1 && i !== (i = /*roomLabel*/
46
- o[0].name + "") && x(a, i), s & /*roomLabel*/
47
- 1 && p(
48
- n,
63
+ o[0].name + "") && P(f, i), a & /*roomLabel*/
64
+ 1 && z(
65
+ e,
49
66
  "wide",
50
67
  /*roomLabel*/
51
68
  o[0].name.length > 3
52
- ), s & /*roomLabel*/
53
- 1 && r(
69
+ ), a & /*nameSize*/
70
+ 8 && r(
71
+ e,
72
+ "font-size",
73
+ /*nameSize*/
74
+ o[3]
75
+ ), a & /*paddingStyle*/
76
+ 4 && r(
54
77
  e,
78
+ "padding",
79
+ /*paddingStyle*/
80
+ o[2]
81
+ ), a & /*barTopPosition*/
82
+ 2 && r(
83
+ m,
84
+ "top",
85
+ /*barTopPosition*/
86
+ o[1]
87
+ ), a & /*roomLabel*/
88
+ 1 && r(
89
+ n,
55
90
  "z-index",
56
91
  /*roomLabel*/
57
92
  o[0].zIndex
58
- ), s & /*roomLabel*/
93
+ ), a & /*roomLabel*/
59
94
  1 && r(
60
- e,
95
+ n,
61
96
  "transform",
62
97
  /*roomLabel*/
63
98
  o[0].transform
64
- ), s & /*roomLabel*/
99
+ ), a & /*roomLabel*/
65
100
  1 && r(
66
- e,
101
+ n,
67
102
  "opacity",
68
103
  /*roomLabel*/
69
104
  o[0].visible ? 1 : 0
@@ -72,28 +107,48 @@ function O(t) {
72
107
  i: v,
73
108
  o: v,
74
109
  d(o) {
75
- o && y(e), u = !1, c();
110
+ o && A(n), d = !1, p();
76
111
  }
77
112
  };
78
113
  }
79
- function R(t, e, n) {
80
- let { five: i } = e, { roomLabel: a } = e;
81
- function m() {
82
- i.setState({
114
+ function R(t, n, e) {
115
+ let i, f, s, m, d, p, { five: o } = n, { roomLabel: a } = n, { fontSize: _ = "md" } = n;
116
+ function h() {
117
+ o.setState({
83
118
  panoIndex: a.panoIndex,
84
119
  mode: "Panorama",
85
120
  longitude: a.longitude
86
121
  });
87
122
  }
88
123
  return t.$$set = (l) => {
89
- "five" in l && n(2, i = l.five), "roomLabel" in l && n(0, a = l.roomLabel);
90
- }, [a, m, i];
124
+ "five" in l && e(5, o = l.five), "roomLabel" in l && e(0, a = l.roomLabel), "fontSize" in l && e(6, _ = l.fontSize);
125
+ }, t.$$.update = () => {
126
+ var l;
127
+ t.$$.dirty & /*fontSize*/
128
+ 64 && e(9, i = E[_]), t.$$.dirty & /*fontConfig*/
129
+ 512 && e(3, f = b((i == null ? void 0 : i.name) || 12)), t.$$.dirty & /*fontConfig*/
130
+ 512 && e(8, s = ((l = i == null ? void 0 : i.padding) == null ? void 0 : l.room) || [6, 5]), t.$$.dirty & /*padding*/
131
+ 256 && e(2, m = `${b(s[1])} ${b(s[0])}`), t.$$.dirty & /*fontConfig, padding*/
132
+ 768 && e(7, d = ((i == null ? void 0 : i.lineHeight) || 14) + s[1] * 2), t.$$.dirty & /*textHeight*/
133
+ 128 && e(1, p = b(-(64 - d)));
134
+ }, [
135
+ a,
136
+ p,
137
+ m,
138
+ f,
139
+ h,
140
+ o,
141
+ _,
142
+ d,
143
+ s,
144
+ i
145
+ ];
91
146
  }
92
- class q extends g {
93
- constructor(e) {
94
- super(), h(this, e, R, O, _, { five: 2, roomLabel: 0 }, C);
147
+ class N extends j {
148
+ constructor(n) {
149
+ super(), S(this, n, R, M, w, { five: 5, roomLabel: 0, fontSize: 6 }, H);
95
150
  }
96
151
  }
97
152
  export {
98
- q as default
153
+ N as default
99
154
  };
@@ -1,203 +1,217 @@
1
- var P = Object.defineProperty, A = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
3
- var M = Object.getOwnPropertySymbols;
4
- var E = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var R = (o, t, e) => t in o ? P(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, C = (o, t) => {
1
+ var A = Object.defineProperty, B = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
+ var x = (o, t, e) => t in o ? A(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, C = (o, t) => {
6
6
  for (var e in t || (t = {}))
7
- E.call(t, e) && R(o, e, t[e]);
8
- if (M)
9
- for (var e of M(t))
10
- G.call(t, e) && R(o, e, t[e]);
7
+ J.call(t, e) && x(o, e, t[e]);
8
+ if (R)
9
+ for (var e of R(t))
10
+ K.call(t, e) && x(o, e, t[e]);
11
11
  return o;
12
- }, D = (o, t) => A(o, B(t));
13
- import { SvelteComponent as J, init as K, safe_not_equal as N, append_styles as Q, element as X, attr as Y, insert as O, action_destroyer as Z, listen as S, update_keyed_each as $, check_outros as ee, transition_in as T, transition_out as W, detach as V, run_all as te, afterUpdate as oe, onDestroy as ne, globals as re, empty as ie, create_component as se, mount_component as le, destroy_component as ce, group_outros as ae, outro_and_destroy_block as fe } from "../vendor/svelte/internal/index.js";
14
- import { Raycaster as me, Vector3 as w } from "three";
15
- import ue from "./RoomLabelItem.js";
16
- import { svelteResizeObserver as de } from "../shared-utils/svelte/resizeObserver.js";
12
+ }, D = (o, t) => B(o, E(t));
13
+ import { SvelteComponent as N, init as Q, safe_not_equal as X, append_styles as Y, element as Z, attr as $, insert as T, action_destroyer as ee, listen as U, update_keyed_each as te, check_outros as oe, transition_in as W, transition_out as j, detach as V, run_all as ne, afterUpdate as re, onDestroy as ie, globals as se, empty as le, create_component as ce, mount_component as ae, destroy_component as fe, group_outros as me, outro_and_destroy_block as ue } from "../vendor/svelte/internal/index.js";
14
+ import { Raycaster as pe, Vector3 as w } from "three";
15
+ import de from "./RoomLabelItem.js";
16
+ import { svelteResizeObserver as he } from "../shared-utils/svelte/resizeObserver.js";
17
+ import { getGlobalResponsiveFontSize as _e, getCurrentFontSize as be } from "../shared-utils/fontSize.js";
17
18
  import "./Assets/roomLabelBg.js";
19
+ import "../shared-utils/px2rem.js";
18
20
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
19
- const { Map: pe } = re;
20
- function he(o) {
21
- Q(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
21
+ const { Map: ge } = se;
22
+ function ye(o) {
23
+ Y(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
22
24
  }
23
- function U(o, t, e) {
25
+ function H(o, t, e) {
24
26
  const c = o.slice();
25
- return c[13] = t[e], c;
27
+ return c[15] = t[e], c;
26
28
  }
27
- function H(o, t) {
28
- let e, c, r;
29
- return c = new ue({
29
+ function O(o, t) {
30
+ let e, c, l;
31
+ return c = new de({
30
32
  props: {
31
33
  roomLabel: (
32
34
  /*roomLabelItem*/
33
- t[13]
35
+ t[15]
34
36
  ),
35
37
  five: (
36
38
  /*five*/
37
39
  t[1]
40
+ ),
41
+ fontSize: (
42
+ /*fontSize*/
43
+ t[4]
38
44
  )
39
45
  }
40
46
  }), {
41
47
  key: o,
42
48
  first: null,
43
49
  c() {
44
- e = ie(), se(c.$$.fragment), this.first = e;
50
+ e = le(), ce(c.$$.fragment), this.first = e;
45
51
  },
46
- m(n, m) {
47
- O(n, e, m), le(c, n, m), r = !0;
52
+ m(n, f) {
53
+ T(n, e, f), ae(c, n, f), l = !0;
48
54
  },
49
- p(n, m) {
55
+ p(n, f) {
50
56
  t = n;
51
57
  const a = {};
52
- m & /*roomLabels*/
58
+ f & /*roomLabels*/
53
59
  1 && (a.roomLabel = /*roomLabelItem*/
54
- t[13]), m & /*five*/
60
+ t[15]), f & /*five*/
55
61
  2 && (a.five = /*five*/
56
- t[1]), c.$set(a);
62
+ t[1]), f & /*fontSize*/
63
+ 16 && (a.fontSize = /*fontSize*/
64
+ t[4]), c.$set(a);
57
65
  },
58
66
  i(n) {
59
- r || (T(c.$$.fragment, n), r = !0);
67
+ l || (W(c.$$.fragment, n), l = !0);
60
68
  },
61
69
  o(n) {
62
- W(c.$$.fragment, n), r = !1;
70
+ j(c.$$.fragment, n), l = !1;
63
71
  },
64
72
  d(n) {
65
- n && V(e), ce(c, n);
73
+ n && V(e), fe(c, n);
66
74
  }
67
75
  };
68
76
  }
69
- function _e(o) {
70
- let t, e = [], c = new pe(), r, n, m, a = (
77
+ function ze(o) {
78
+ let t, e = [], c = new ge(), l, n, f, a = (
71
79
  /*roomLabels*/
72
80
  o[0]
73
81
  );
74
- const d = (i) => (
82
+ const u = (r) => (
75
83
  /*roomLabelItem*/
76
- i[13].id
84
+ r[15].id
77
85
  );
78
- for (let i = 0; i < a.length; i += 1) {
79
- let s = U(o, a, i), u = d(s);
80
- c.set(u, e[i] = H(u, s));
86
+ for (let r = 0; r < a.length; r += 1) {
87
+ let s = H(o, a, r), p = u(s);
88
+ c.set(p, e[r] = O(p, s));
81
89
  }
82
90
  return {
83
91
  c() {
84
- t = X("div");
85
- for (let i = 0; i < e.length; i += 1)
86
- e[i].c();
87
- Y(t, "class", "room-labels-container svelte-9eg4zi");
92
+ t = Z("div");
93
+ for (let r = 0; r < e.length; r += 1)
94
+ e[r].c();
95
+ $(t, "class", "room-labels-container svelte-9eg4zi");
88
96
  },
89
- m(i, s) {
90
- O(i, t, s);
91
- for (let u = 0; u < e.length; u += 1)
92
- e[u] && e[u].m(t, null);
93
- r = !0, n || (m = [
94
- Z(de.call(null, t)),
95
- S(
97
+ m(r, s) {
98
+ T(r, t, s);
99
+ for (let p = 0; p < e.length; p += 1)
100
+ e[p] && e[p].m(t, null);
101
+ l = !0, n || (f = [
102
+ ee(he.call(null, t)),
103
+ U(
96
104
  t,
97
105
  "clientWidth",
98
106
  /*clientWidth_handler*/
99
- o[6]
107
+ o[7]
100
108
  ),
101
- S(
109
+ U(
102
110
  t,
103
111
  "clientHeight",
104
112
  /*clientHeight_handler*/
105
- o[7]
113
+ o[8]
106
114
  )
107
115
  ], n = !0);
108
116
  },
109
- p(i, [s]) {
110
- s & /*roomLabels, five*/
111
- 3 && (a = /*roomLabels*/
112
- i[0], ae(), e = $(e, s, d, 1, i, a, c, t, fe, H, null, U), ee());
117
+ p(r, [s]) {
118
+ s & /*roomLabels, five, fontSize*/
119
+ 19 && (a = /*roomLabels*/
120
+ r[0], me(), e = te(e, s, u, 1, r, a, c, t, ue, O, null, H), oe());
113
121
  },
114
- i(i) {
115
- if (!r) {
122
+ i(r) {
123
+ if (!l) {
116
124
  for (let s = 0; s < a.length; s += 1)
117
- T(e[s]);
118
- r = !0;
125
+ W(e[s]);
126
+ l = !0;
119
127
  }
120
128
  },
121
- o(i) {
129
+ o(r) {
122
130
  for (let s = 0; s < e.length; s += 1)
123
- W(e[s]);
124
- r = !1;
131
+ j(e[s]);
132
+ l = !1;
125
133
  },
126
- d(i) {
127
- i && V(t);
134
+ d(r) {
135
+ r && V(t);
128
136
  for (let s = 0; s < e.length; s += 1)
129
137
  e[s].d();
130
- n = !1, te(m);
138
+ n = !1, ne(f);
131
139
  }
132
140
  };
133
141
  }
134
- function ge(o, t, e) {
135
- var F;
136
- let c, { five: r } = t, { roomLabels: n } = t, m, a, d = (F = r.model.shownFloor) != null ? F : null;
137
- function i(l) {
138
- if (!(d === null || l.floorIndex === d))
142
+ function Le(o, t, e) {
143
+ var S;
144
+ let c, { five: l } = t, { roomLabels: n } = t, f, a, u = (S = l.model.shownFloor) != null ? S : null;
145
+ const r = _e();
146
+ let s = be();
147
+ typeof r == "object" && "subscribe" in r && r.subscribe((i) => {
148
+ e(4, s = i);
149
+ });
150
+ function p(i) {
151
+ if (!(u === null || i.floorIndex === u))
139
152
  return !1;
140
- const _ = new me(), p = r.camera.position.clone(), b = new w(l.position.x, l.position.y, l.position.z), f = b.distanceTo(p);
141
- _.set(p.clone(), b.clone().sub(p).normalize());
142
- const [h] = r.model.intersectRaycaster(_);
143
- return !(h && h.distance + 1 < f);
153
+ const _ = new pe(), d = l.camera.position.clone(), g = new w(i.position.x, i.position.y, i.position.z), m = g.distanceTo(d);
154
+ _.set(d.clone(), g.clone().sub(d).normalize());
155
+ const [h] = l.model.intersectRaycaster(_);
156
+ return !(h && h.distance + 1 < m);
144
157
  }
145
- function s(l, g) {
146
- const p = new w(l.position.x, l.position.y, l.position.z).clone().project(r.camera), b = Math.ceil((p.x + 1) / 2 * g.x), f = Math.ceil((-p.y + 1) / 2 * g.y);
147
- return `translate(${b}px, ${f}px)`;
158
+ function q(i, b) {
159
+ const d = new w(i.position.x, i.position.y, i.position.z).clone().project(l.camera), g = Math.ceil((d.x + 1) / 2 * b.x), m = Math.ceil((-d.y + 1) / 2 * b.y);
160
+ return `translate(${g}px, ${m}px)`;
148
161
  }
149
- function u(l) {
150
- const { rendererSize: g } = l, _ = /* @__PURE__ */ new Map();
151
- function p(f) {
152
- const h = _.get(f.id);
162
+ function z(i) {
163
+ const { rendererSize: b } = i, _ = /* @__PURE__ */ new Map();
164
+ function d(m) {
165
+ const h = _.get(m.id);
153
166
  if (h)
154
167
  return h;
155
- const { x: L, y: v, z: k } = f.position, y = new w(L, v, k).clone().distanceTo(r.camera.position);
156
- return _.set(f.id, y), y;
168
+ const { x: L, y: v, z: k } = m.position, y = new w(L, v, k).clone().distanceTo(l.camera.position);
169
+ return _.set(m.id, y), y;
157
170
  }
158
- return n.map((f) => {
159
- const h = i(f), L = h ? s(f, g) : f.transform, v = p(f), y = n.filter((x) => x.visible && p(x) < v).length * 10;
160
- return D(C({}, f), { visible: h, transform: L, zIndex: y });
171
+ return n.map((m) => {
172
+ const h = p(m), L = h ? q(m, b) : m.transform, v = d(m), y = n.filter((M) => M.visible && d(M) < v).length * 10;
173
+ return D(C({}, m), { visible: h, transform: L, zIndex: y });
161
174
  });
162
175
  }
163
- function I() {
164
- e(0, n = u({ rendererSize: c, shownFloor: d }));
176
+ function F() {
177
+ e(0, n = z({ rendererSize: c, shownFloor: u }));
165
178
  }
166
- function z(l) {
167
- e(4, d = l);
179
+ function I(i) {
180
+ e(5, u = i);
168
181
  }
169
- r.on("cameraUpdate", I), r.on("modelShownFloorChange", z), oe(() => {
170
- e(0, n = u({ rendererSize: c, shownFloor: d }));
171
- }), ne(() => {
172
- r.off("cameraUpdate", I), r.off("modelShownFloorChange", z);
182
+ l.on("cameraUpdate", F), l.on("modelShownFloorChange", I), re(() => {
183
+ e(0, n = z({ rendererSize: c, shownFloor: u }));
184
+ }), ie(() => {
185
+ l.off("cameraUpdate", F), l.off("modelShownFloorChange", I);
173
186
  });
174
- const j = (l) => {
175
- e(2, m = l.detail);
176
- }, q = (l) => {
177
- e(3, a = l.detail);
187
+ const G = (i) => {
188
+ e(2, f = i.detail);
189
+ }, P = (i) => {
190
+ e(3, a = i.detail);
178
191
  };
179
- return o.$$set = (l) => {
180
- "five" in l && e(1, r = l.five), "roomLabels" in l && e(0, n = l.roomLabels);
192
+ return o.$$set = (i) => {
193
+ "five" in i && e(1, l = i.five), "roomLabels" in i && e(0, n = i.roomLabels);
181
194
  }, o.$$.update = () => {
182
195
  o.$$.dirty & /*containerWidth, containerHeight*/
183
- 12 && e(5, c = { x: m, y: a }), o.$$.dirty & /*rendererSize, shownFloor*/
184
- 48 && e(0, n = u({ rendererSize: c, shownFloor: d }));
196
+ 12 && e(6, c = { x: f, y: a }), o.$$.dirty & /*rendererSize, shownFloor*/
197
+ 96 && e(0, n = z({ rendererSize: c, shownFloor: u }));
185
198
  }, [
186
199
  n,
187
- r,
188
- m,
200
+ l,
201
+ f,
189
202
  a,
190
- d,
203
+ s,
204
+ u,
191
205
  c,
192
- j,
193
- q
206
+ G,
207
+ P
194
208
  ];
195
209
  }
196
- class Fe extends J {
210
+ class Ce extends N {
197
211
  constructor(t) {
198
- super(), K(this, t, ge, _e, N, { five: 1, roomLabels: 0 }, he);
212
+ super(), Q(this, t, Le, ze, X, { five: 1, roomLabels: 0 }, ye);
199
213
  }
200
214
  }
201
215
  export {
202
- Fe as default
216
+ Ce as default
203
217
  };
@@ -4,15 +4,17 @@ import "../vendor/svelte/internal/index.js";
4
4
  import "three";
5
5
  import "./RoomLabelItem.js";
6
6
  import "./Assets/roomLabelBg.js";
7
+ import "../shared-utils/fontSize.js";
8
+ import "../shared-utils/px2rem.js";
7
9
  import "../shared-utils/svelte/resizeObserver.js";
8
10
  import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
9
11
  import "./utils/parseData.js";
10
- const s = (o) => new r(o), u = {
12
+ const b = (o) => new r(o), L = {
11
13
  name: "ModelRoomLabelPlugin",
12
14
  version: 0
13
15
  };
14
16
  export {
15
- s as ModelRoomLabelPlugin,
16
- s as default,
17
- u as modelRoomLabelPluginServerParams
17
+ b as ModelRoomLabelPlugin,
18
+ b as default,
19
+ L as modelRoomLabelPluginServerParams
18
20
  };