@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.10

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 (494) hide show
  1. package/README.md +3 -12
  2. package/dist/CSS3DRenderPlugin/index..js +88 -0
  3. package/dist/CSS3DRenderPlugin/index.cjs.js +1 -0
  4. package/dist/CameraMovementPlugin/index..js +11 -0
  5. package/dist/CameraMovementPlugin/index.cjs.js +1 -0
  6. package/dist/CruisePlugin/index..js +527 -0
  7. package/dist/CruisePlugin/index.cjs.js +1 -0
  8. package/dist/GuideLinePlugin/index..js +214 -0
  9. package/dist/GuideLinePlugin/index.cjs.js +1 -0
  10. package/dist/ItemLabelPlugin/index..js +508 -0
  11. package/dist/ItemLabelPlugin/index.cjs.js +10 -0
  12. package/dist/ModelChassisCompassPlugin/index..js +9 -0
  13. package/dist/ModelChassisCompassPlugin/index.cjs.js +1 -0
  14. package/dist/ModelEntryDoorGuidePlugin/index..js +9 -0
  15. package/dist/ModelEntryDoorGuidePlugin/index.cjs.js +1 -0
  16. package/dist/ModelItemLabelPlugin/index..js +334 -0
  17. package/dist/ModelItemLabelPlugin/index.cjs.js +10 -0
  18. package/dist/ModelRoomLabelPlugin/index..js +274 -0
  19. package/dist/ModelRoomLabelPlugin/index.cjs.js +1 -0
  20. package/dist/ModelTVVideoPlugin/index..js +12 -0
  21. package/dist/ModelTVVideoPlugin/index.cjs.js +1 -0
  22. package/dist/ModelViewPlugin/index..js +8 -0
  23. package/dist/ModelViewPlugin/index.cjs.js +1 -0
  24. package/dist/Object3DHelperPlugin/index..js +1414 -0
  25. package/dist/Object3DHelperPlugin/index.cjs.js +1 -0
  26. package/dist/PanoCompassPlugin/index..js +258 -0
  27. package/dist/PanoCompassPlugin/index.cjs.js +1 -0
  28. package/dist/PanoCursorRaycasterPlugin/index..js +63 -0
  29. package/dist/PanoCursorRaycasterPlugin/index.cjs.js +1 -0
  30. package/dist/PanoDoorLabelPlugin/index..js +340 -0
  31. package/dist/PanoDoorLabelPlugin/index.cjs.js +1 -0
  32. package/dist/PanoMeasurePlugin/index..js +15 -0
  33. package/dist/PanoMeasurePlugin/index.cjs.js +1 -0
  34. package/dist/PanoRulerPlugin/index..js +9 -0
  35. package/dist/PanoRulerPlugin/index.cjs.js +1 -0
  36. package/dist/PanoRulerProPlugin/index..js +395 -0
  37. package/dist/PanoRulerProPlugin/index.cjs.js +1 -0
  38. package/dist/PanoSpatialTagPlugin/index..js +15 -0
  39. package/dist/PanoSpatialTagPlugin/index.cjs.js +1 -0
  40. package/dist/PanoTagPlugin/index..js +4522 -0
  41. package/dist/PanoTagPlugin/index.cjs.js +17 -0
  42. package/dist/chunks/cjs/BasePlugin.57e5204f.cjs.js +1 -0
  43. package/dist/chunks/cjs/BasePluginWithData.0a28882d.cjs.js +1 -0
  44. package/dist/chunks/cjs/CSS3DRender.15349564.cjs.js +1 -0
  45. package/dist/chunks/cjs/CameraMovementPlugin.2b342576.cjs.js +1 -0
  46. package/dist/chunks/cjs/Plugin.5f616fb3.cjs.js +1 -0
  47. package/dist/chunks/cjs/Plugin.609da4aa.cjs.js +94 -0
  48. package/dist/chunks/cjs/Plugin.67936d0e.cjs.js +16 -0
  49. package/dist/chunks/cjs/Plugin.8a110c53.cjs.js +1 -0
  50. package/dist/chunks/cjs/Plugin.9971108a.cjs.js +1 -0
  51. package/dist/chunks/cjs/Plugin.fd42bf8a.cjs.js +1 -0
  52. package/dist/chunks/cjs/Subscribe.5398d5c6.cjs.js +1 -0
  53. package/dist/chunks/cjs/changeModelCanvasOpacity.8d84f111.cjs.js +1 -0
  54. package/dist/chunks/cjs/correctFiveState.4c8472bd.cjs.js +1 -0
  55. package/dist/chunks/cjs/debounce.93dfb637.cjs.js +1 -0
  56. package/dist/chunks/cjs/equal.e9fcbd4e.cjs.js +1 -0
  57. package/dist/chunks/cjs/filter.cf9ebbb3.cjs.js +1 -0
  58. package/dist/chunks/cjs/formatData.81e95011.cjs.js +10 -0
  59. package/dist/chunks/cjs/index.30b7baeb.cjs.js +101 -0
  60. package/dist/chunks/cjs/index.686e84d1.cjs.js +290 -0
  61. package/dist/chunks/cjs/index.7d2010ce.cjs.js +1 -0
  62. package/dist/chunks/cjs/isNil.b3a58990.cjs.js +1 -0
  63. package/dist/chunks/cjs/planimetry.7fce816a.cjs.js +1 -0
  64. package/dist/chunks/cjs/throttle.86c209eb.cjs.js +1 -0
  65. package/dist/chunks/cjs/transfromToMeshBasicMaterial.9db6d46a.cjs.js +1 -0
  66. package/dist/chunks/cjs/uuid.29ed9c88.cjs.js +1 -0
  67. package/dist/chunks/es/BasePlugin.813e25f7.es.js +18 -0
  68. package/dist/chunks/es/BasePluginWithData.4bf4e649.es.js +6 -0
  69. package/dist/chunks/es/CSS3DRender.5652510e.es.js +393 -0
  70. package/dist/chunks/es/CameraMovementPlugin.4a7c3e46.es.js +120 -0
  71. package/dist/chunks/es/Plugin.26c2df05.es.js +106 -0
  72. package/dist/chunks/es/Plugin.435485ed.es.js +584 -0
  73. package/dist/chunks/es/Plugin.a98418f0.es.js +82 -0
  74. package/dist/chunks/es/Plugin.ae4ee6f8.es.js +82 -0
  75. package/dist/chunks/es/Plugin.dd11e0ad.es.js +180 -0
  76. package/dist/chunks/es/Plugin.f4cf895f.es.js +355 -0
  77. package/dist/chunks/es/Subscribe.c73e0f91.es.js +50 -0
  78. package/dist/chunks/es/changeModelCanvasOpacity.45ef9fd6.es.js +1551 -0
  79. package/dist/chunks/es/correctFiveState.e7feab9f.es.js +66 -0
  80. package/dist/chunks/es/debounce.ef83f417.es.js +11 -0
  81. package/dist/chunks/es/equal.7db4a6f7.es.js +56 -0
  82. package/dist/chunks/es/filter.97ec06c4.es.js +12 -0
  83. package/dist/chunks/es/formatData.a2b39ef9.es.js +483 -0
  84. package/dist/chunks/es/index.a273f06e.es.js +532 -0
  85. package/dist/chunks/es/index.b8fdb59b.es.js +50 -0
  86. package/dist/chunks/es/index.f74f4851.es.js +1787 -0
  87. package/dist/chunks/es/isNil.212842d9.es.js +10 -0
  88. package/dist/chunks/es/planimetry.b0b4a28d.es.js +43 -0
  89. package/dist/chunks/es/throttle.db66bac3.es.js +11 -0
  90. package/dist/chunks/es/transfromToMeshBasicMaterial.849ee069.es.js +24 -0
  91. package/dist/chunks/es/uuid.676cb2c8.es.js +9 -0
  92. package/dist/components/PaintBrush/index..js +6 -0
  93. package/dist/components/PaintBrush/index.cjs.js +1 -0
  94. package/dist/components/index..js +7 -0
  95. package/dist/components/index.cjs.js +1 -0
  96. package/dist/floorplan/MapviewFloorplanPlugin/index..js +324 -0
  97. package/dist/floorplan/MapviewFloorplanPlugin/index.cjs.js +1 -0
  98. package/dist/floorplan/ModelFloorplanPlugin/index..js +320 -0
  99. package/dist/floorplan/ModelFloorplanPlugin/index.cjs.js +1 -0
  100. package/dist/floorplan/PanoFloorplanRadarPlugin/index..js +613 -0
  101. package/dist/floorplan/PanoFloorplanRadarPlugin/index.cjs.js +1 -0
  102. package/dist/floorplan/TopviewFloorplanPlugin/index..js +277 -0
  103. package/dist/floorplan/TopviewFloorplanPlugin/index.cjs.js +1 -0
  104. package/dist/index..js +530 -0
  105. package/dist/index.cjs.js +3 -543
  106. package/docs/classes/CruisePluginController.html +24 -24
  107. package/docs/classes/Magnifier.html +16 -16
  108. package/docs/classes/ModelRoomLabelController.html +11 -11
  109. package/docs/classes/Object3DHelperController.html +24 -24
  110. package/docs/classes/PaintBrush.html +15 -15
  111. package/docs/classes/PanoTagPluginController.html +39 -39
  112. package/docs/classes/Util.BetterTween.html +8 -8
  113. package/docs/classes/Util.FivePointSelector.html +12 -12
  114. package/docs/classes/Util.Interval.html +12 -12
  115. package/docs/classes/Util.Magnifier.html +17 -17
  116. package/docs/classes/Util.PointDomHelper.html +11 -11
  117. package/docs/classes/Util.PointHelper.html +11 -11
  118. package/docs/classes/Util.Rectangle.html +13 -13
  119. package/docs/enums/CameraMovementEffect.html +7 -7
  120. package/docs/enums/ContentType.html +12 -12
  121. package/docs/enums/DIRECTION.html +9 -9
  122. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  123. package/docs/enums/DimensionType.html +7 -7
  124. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  125. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  126. package/docs/enums/LinkType.html +7 -7
  127. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  128. package/docs/enums/PointType.html +7 -7
  129. package/docs/enums/Rotation.html +8 -8
  130. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  131. package/docs/functions/CameraMovementPlugin.html +4 -4
  132. package/docs/functions/CruisePlugin.html +4 -4
  133. package/docs/functions/GuideLinePlugin.html +5 -5
  134. package/docs/functions/ItemLabelPlugin.html +4 -4
  135. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  136. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  137. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  138. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  139. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  140. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  141. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  142. package/docs/functions/ModelViewPlugin.html +4 -4
  143. package/docs/functions/Object3DHelperPlugin.html +4 -4
  144. package/docs/functions/PanoCompassPlugin.html +4 -4
  145. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  146. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  147. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  148. package/docs/functions/PanoMeasurePlugin.html +4 -4
  149. package/docs/functions/PanoRulerPlugin.html +4 -4
  150. package/docs/functions/PanoRulerProPlugin.html +4 -4
  151. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  152. package/docs/functions/PanoTagPlugin.html +4 -4
  153. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  154. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  155. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  156. package/docs/functions/Util.getFrameTime.html +5 -5
  157. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  158. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  159. package/docs/functions/Util.isNil.html +5 -5
  160. package/docs/functions/Util.nextFrame.html +5 -5
  161. package/docs/functions/Util.notNil.html +5 -5
  162. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  163. package/docs/functions/Util.tweenProgress.html +5 -5
  164. package/docs/functions/pluginFlag.html +5 -5
  165. package/docs/index.html +6 -11
  166. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  167. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  168. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  169. package/docs/interfaces/ContentTypeMap.html +12 -12
  170. package/docs/interfaces/FloorplanBounding.html +8 -8
  171. package/docs/interfaces/FloorplanData.html +10 -10
  172. package/docs/interfaces/FloorplanEntrance.html +11 -11
  173. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  174. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  175. package/docs/interfaces/FloorplanFloorData.html +9 -9
  176. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  177. package/docs/interfaces/FloorplanObserver.html +9 -9
  178. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  179. package/docs/interfaces/FloorplanPosition.html +7 -7
  180. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  181. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  182. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  183. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  184. package/docs/interfaces/FloorplanServerData.html +7 -7
  185. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  186. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  187. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  188. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  189. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  190. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  191. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  192. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  193. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  194. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  195. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  196. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  197. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  198. package/docs/interfaces/LineJson.html +7 -7
  199. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  200. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  201. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  202. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  203. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  204. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  205. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  206. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  207. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  208. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  209. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  210. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  211. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  212. package/docs/interfaces/Object3DHelperState.html +8 -8
  213. package/docs/interfaces/OpenParameter.html +7 -7
  214. package/docs/interfaces/PaintBrushAction.html +12 -12
  215. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  216. package/docs/interfaces/PaintBrushState.html +10 -10
  217. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  218. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  219. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  220. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  221. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  222. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  223. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  224. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  225. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  226. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  227. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  228. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  229. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  230. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  231. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  232. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  233. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  234. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  235. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  236. package/docs/interfaces/Point.html +8 -8
  237. package/docs/interfaces/PointJson.html +8 -8
  238. package/docs/interfaces/Room.html +9 -9
  239. package/docs/interfaces/RoomInfo.html +7 -7
  240. package/docs/interfaces/RoomLabel.html +14 -14
  241. package/docs/interfaces/RoomRules.html +5 -5
  242. package/docs/interfaces/Rooms.html +5 -5
  243. package/docs/interfaces/Scissor.html +9 -9
  244. package/docs/interfaces/TagConfig.html +10 -10
  245. package/docs/interfaces/Tags.html +9 -9
  246. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  247. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  248. package/docs/modules/Util.html +5 -5
  249. package/docs/modules.html +4 -4
  250. package/docs/types/ArrayPosition.html +5 -5
  251. package/docs/types/CSS3DRenderExportType.html +5 -5
  252. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  253. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  254. package/docs/types/Color.html +5 -5
  255. package/docs/types/ContentTypeConfigKey.html +5 -5
  256. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  257. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  258. package/docs/types/Create3DElementReturnType.html +5 -5
  259. package/docs/types/CruisePluginExportType.html +5 -5
  260. package/docs/types/Direction-1.html +5 -5
  261. package/docs/types/Direction4.html +5 -5
  262. package/docs/types/FloorplanRuleLabels.html +5 -5
  263. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  264. package/docs/types/GuideLinePluginExportType.html +5 -5
  265. package/docs/types/HelperEventMap.html +5 -5
  266. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  267. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  268. package/docs/types/MediaData.html +5 -5
  269. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  270. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  271. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  272. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  273. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  274. package/docs/types/MoveArgs.html +5 -5
  275. package/docs/types/MoveOpts.html +5 -5
  276. package/docs/types/Object3DHelperEventMap.html +5 -5
  277. package/docs/types/ObjectFit.html +5 -5
  278. package/docs/types/PaintBrushEventMap.html +5 -5
  279. package/docs/types/PanoCompassPluginData.html +5 -5
  280. package/docs/types/PanoCompassPluginExportType.html +5 -5
  281. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  282. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  283. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  284. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  285. package/docs/types/PanoMeasureReturnType.html +5 -5
  286. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  287. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  288. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  289. package/docs/types/PlaneTag.html +5 -5
  290. package/docs/types/PointTag.html +5 -5
  291. package/docs/types/Position.html +5 -5
  292. package/docs/types/RotateArgs.html +5 -5
  293. package/docs/types/RotateOpts.html +5 -5
  294. package/docs/types/RuleLabelsKey.html +5 -5
  295. package/docs/types/RuleLabelsValue.html +5 -5
  296. package/docs/types/Tag.html +5 -5
  297. package/docs/types/Tag2D.html +5 -5
  298. package/docs/types/Tag3D.html +5 -5
  299. package/docs/types/TagId.html +5 -5
  300. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  301. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  302. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  303. package/docs/variables/PLUGIN.html +5 -5
  304. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  305. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  306. package/docs/variables/VERSION.html +5 -5
  307. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  308. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  309. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  310. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -5
  311. package/libs/CSS3DRenderPlugin/Controller.js +6 -7
  312. package/libs/CSS3DRenderPlugin/index.js +3 -4
  313. package/libs/CSS3DRenderPlugin/typing.js +1 -0
  314. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -3
  315. package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
  316. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -2
  317. package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
  318. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +16 -17
  319. package/libs/CameraMovementPlugin/index.js +3 -0
  320. package/libs/CruisePlugin/Controller.js +4 -4
  321. package/libs/CruisePlugin/index.js +3 -6
  322. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  323. package/libs/GuideLinePlugin/Controller.js +3 -4
  324. package/libs/GuideLinePlugin/index.js +3 -4
  325. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  326. package/libs/ItemLabelPlugin/ItemLabelComponent.js +34 -32
  327. package/libs/ItemLabelPlugin/Plugin.js +5 -6
  328. package/libs/ModelChassisCompassPlugin/Plugin.js +3 -4
  329. package/libs/ModelChassisCompassPlugin/index.js +2 -0
  330. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +22 -23
  331. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -0
  332. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +4 -3
  333. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +5 -6
  334. package/libs/ModelItemLabelPlugin/events.type.js +1 -0
  335. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +11 -10
  336. package/libs/ModelRoomLabelPlugin/index.js +0 -1
  337. package/libs/ModelTVVideoPlugin/Plugin.js +1 -2
  338. package/libs/ModelTVVideoPlugin/index.js +2 -0
  339. package/libs/ModelViewPlugin/Plugin.js +1 -2
  340. package/libs/ModelViewPlugin/index.js +2 -0
  341. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +6 -7
  342. package/libs/Object3DHelperPlugin/index.js +1 -6
  343. package/libs/PanoCompassPlugin/index.js +3 -4
  344. package/libs/PanoCursorRaycasterPlugin/index.js +7 -8
  345. package/libs/PanoDoorLabelPlugin/index.js +1 -2
  346. package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -3
  347. package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
  348. package/libs/PanoMeasurePlugin/Controller/MixedController.js +17 -17
  349. package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
  350. package/libs/PanoMeasurePlugin/Controller/WatchController.js +9 -9
  351. package/libs/PanoMeasurePlugin/Controller/index.js +8 -8
  352. package/libs/PanoMeasurePlugin/Model/index.js +3 -3
  353. package/libs/PanoMeasurePlugin/Model/line.js +11 -11
  354. package/libs/PanoMeasurePlugin/Model/point.js +7 -7
  355. package/libs/PanoMeasurePlugin/Model/polyline.js +1 -1
  356. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  357. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  358. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  359. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
  360. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  361. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
  362. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
  363. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
  364. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
  365. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
  366. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  367. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -5
  368. package/libs/PanoMeasurePlugin/index.js +3 -4
  369. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  370. package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
  371. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +2 -2
  372. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  373. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  374. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  375. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  376. package/libs/PanoRulerPlugin/Plugin.js +2 -3
  377. package/libs/PanoRulerPlugin/index.js +2 -0
  378. package/libs/PanoRulerPlugin/style.js +1 -1
  379. package/libs/PanoRulerProPlugin/Controller.js +15 -15
  380. package/libs/PanoRulerProPlugin/RulerItems.js +7 -4
  381. package/libs/PanoRulerProPlugin/index.js +3 -4
  382. package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
  383. package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
  384. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -3
  385. package/libs/PanoSpatialTagPlugin/index.js +6 -0
  386. package/libs/PanoSpatialTagPlugin/typings.js +1 -0
  387. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -1
  388. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -1
  389. package/libs/PanoTagPlugin/Components/Common/Media.js +43 -36
  390. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +88 -78
  391. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -4
  392. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +3 -2
  393. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +30 -27
  394. package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
  395. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +20 -14
  396. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +114 -92
  397. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +3 -2
  398. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  399. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +71 -52
  400. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +62 -50
  401. package/libs/PanoTagPlugin/Components/Tag/index.js +92 -63
  402. package/libs/PanoTagPlugin/Components/TagContainer.js +108 -64
  403. package/libs/PanoTagPlugin/Components/TagWrapper.js +113 -75
  404. package/libs/PanoTagPlugin/controller/index.js +0 -1
  405. package/libs/PanoTagPlugin/index.js +3 -7
  406. package/libs/PanoTagPlugin/tag.config.js +1 -2
  407. package/libs/PanoTagPlugin/typings/controller.js +1 -0
  408. package/libs/PanoTagPlugin/typings/index.js +1 -0
  409. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  410. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  411. package/libs/PanoTagPlugin/utils/index.js +1 -0
  412. package/libs/components/PaintBrush/Controller.js +3 -3
  413. package/libs/components/PaintBrush/style.js +1 -1
  414. package/libs/components/PaintBrush/tween.js +4 -4
  415. package/libs/components/index.js +2 -0
  416. package/libs/floorplan/Components/Camera.js +1 -1
  417. package/libs/floorplan/Components/CurrentFloor.js +51 -41
  418. package/libs/floorplan/Components/Main.js +41 -22
  419. package/libs/floorplan/Components/RoomHighlight/Room.js +3 -3
  420. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
  421. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +37 -36
  422. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -1
  423. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +7 -7
  424. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
  425. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +7 -7
  426. package/libs/floorplan/ModelFloorplanPlugin/index.js +2 -3
  427. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  428. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -2
  429. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -65
  430. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -2
  431. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +2 -3
  432. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -5
  433. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
  434. package/libs/floorplan/index.js +6 -0
  435. package/libs/floorplan/typings/floorplanData.js +1 -0
  436. package/libs/floorplan/utils/correctFiveState.js +19 -19
  437. package/libs/floorplan/utils/formatData.js +16 -16
  438. package/libs/floorplan/utils/formatPosition.js +7 -7
  439. package/libs/index.js +344 -90
  440. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +2 -3
  441. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -3
  442. package/libs/shared-utils/Object3DHelper/Constants/color.js +0 -1
  443. package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -2
  444. package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -0
  445. package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
  446. package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
  447. package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
  448. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
  449. package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
  450. package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
  451. package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
  452. package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
  453. package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
  454. package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -1
  455. package/libs/shared-utils/animationFrame/index.js +13 -16
  456. package/libs/shared-utils/animationFrame/tween.js +0 -2
  457. package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
  458. package/libs/shared-utils/createCanvasTextTexture.js +6 -6
  459. package/libs/shared-utils/createLine/index.js +3 -3
  460. package/libs/shared-utils/debounce.js +5 -5
  461. package/libs/shared-utils/equal.js +16 -16
  462. package/libs/shared-utils/filter.js +1 -1
  463. package/libs/shared-utils/five/changeMode.js +14 -14
  464. package/libs/shared-utils/getPxmm.js +7 -8
  465. package/libs/shared-utils/index.js +33 -29
  466. package/libs/shared-utils/isTruelyObject.js +1 -1
  467. package/libs/shared-utils/math/index.js +1 -0
  468. package/libs/shared-utils/math/planimetry.js +1 -6
  469. package/libs/shared-utils/math/rad2Deg.js +3 -3
  470. package/libs/shared-utils/nearlyEqual.js +3 -3
  471. package/libs/shared-utils/noop.js +1 -1
  472. package/libs/shared-utils/object3d2LocalMatrix.js +6 -7
  473. package/libs/shared-utils/removeArrayItem.js +5 -5
  474. package/libs/shared-utils/tap.js +3 -3
  475. package/libs/shared-utils/three/index.js +6 -0
  476. package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
  477. package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +12 -12
  478. package/libs/shared-utils/throttle.js +2 -2
  479. package/libs/shared-utils/tinyEJSrender.js +7 -7
  480. package/libs/shared-utils/to.js +14 -15
  481. package/libs/shared-utils/uuid.js +0 -1
  482. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-changed-params.js +0 -0
  483. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/get-params.js +0 -0
  484. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/mount-swiper.js +0 -0
  485. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/params-list.js +0 -0
  486. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/update-swiper.js +0 -0
  487. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/components-shared/utils.js +0 -0
  488. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper-slide.js +1 -1
  489. package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -0
  490. package/libs/{node_modules/.pnpm/swiper@8.4.4/node_modules → vendor}/swiper/svelte/swiper.js +1 -1
  491. package/package.json +19 -17
  492. package/dist/index.es.js +0 -16650
  493. package/dist/index.js +0 -16650
  494. package/dist/index.umd.js +0 -556
@@ -0,0 +1,334 @@
1
+ var ce = Object.defineProperty, de = Object.defineProperties;
2
+ var me = Object.getOwnPropertyDescriptors;
3
+ var U = Object.getOwnPropertySymbols;
4
+ var ue = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
5
+ var V = (n, t, e) => t in n ? ce(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, M = (n, t) => {
6
+ for (var e in t || (t = {}))
7
+ ue.call(t, e) && V(n, e, t[e]);
8
+ if (U)
9
+ for (var e of U(t))
10
+ be.call(t, e) && V(n, e, t[e]);
11
+ return n;
12
+ }, O = (n, t) => de(n, me(t));
13
+ import { Subscribe as fe, Five as W } from "@realsee/five";
14
+ import { SvelteComponent as N, init as B, safe_not_equal as J, append_styles as K, element as z, text as pe, space as he, attr as w, set_style as y, null_to_empty as D, insert as x, append as I, listen as ge, set_data as _e, noop as j, detach as R, add_render_callback as ye, add_resize_listener as Le, group_outros as ve, update_keyed_each as ke, outro_and_destroy_block as we, check_outros as Ee, transition_in as Q, transition_out as Z, empty as Me, create_component as Ie, mount_component as ze, destroy_component as Ce } from "svelte/internal";
15
+ import { beforeUpdate as Oe, onMount as Fe, onDestroy as Pe } from "svelte";
16
+ import * as xe from "three";
17
+ import X from "classnames";
18
+ import { debounce as Re } from "../chunks/es/debounce.ef83f417.es.js";
19
+ var E = /* @__PURE__ */ ((n) => (n.SMALL = "small", n.MIDLLE = "middle", n.LARGE = "large", n.EXTRA_LARGE = "x-large", n))(E || {});
20
+ function Ae(n) {
21
+ K(n, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
22
+ }to{opacity:1
23
+ }}`);
24
+ }
25
+ function Se(n) {
26
+ let t, e, s, m = (n[0].name.length > 6 ? `${n[0].name.slice(0, 6)}...` : n[0].name) + "", l, a, d, o, r, f;
27
+ return {
28
+ c() {
29
+ t = z("div"), e = z("div"), s = z("span"), l = pe(m), a = he(), d = z("div"), w(s, "class", "item-label-item__text svelte-1ir3cyd"), w(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), y(e, "top", `-${n[0].strokeLength + 26}px`), w(d, "class", "item-label-item__bar svelte-1ir3cyd"), y(d, "height", `${n[0].strokeLength}px`), w(t, "class", o = D(X("item-label-item", { visible: n[0].visible })) + " svelte-1ir3cyd"), y(t, "z-index", n[0].zIndex, !1), y(t, "transform", n[0].transform, !1);
30
+ },
31
+ m(u, p) {
32
+ x(u, t, p), I(t, e), I(e, s), I(s, l), I(t, a), I(t, d), r || (f = ge(s, "click", n[1]), r = !0);
33
+ },
34
+ p(u, [p]) {
35
+ p & 1 && m !== (m = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && _e(l, m), p & 1 && y(e, "top", `-${u[0].strokeLength + 26}px`), p & 1 && y(d, "height", `${u[0].strokeLength}px`), p & 1 && o !== (o = D(X("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && w(t, "class", o), p & 1 && y(t, "z-index", u[0].zIndex, !1), p & 1 && y(t, "transform", u[0].transform, !1);
36
+ },
37
+ i: j,
38
+ o: j,
39
+ d(u) {
40
+ u && R(t), r = !1, f();
41
+ }
42
+ };
43
+ }
44
+ function Te(n, t, e) {
45
+ let { itemLabel: s } = t, { hooks: m } = t;
46
+ function l() {
47
+ console.log("__onclick___: ", s), m.emit("onLabelClick", s);
48
+ }
49
+ return n.$$set = (a) => {
50
+ "itemLabel" in a && e(0, s = a.itemLabel), "hooks" in a && e(2, m = a.hooks);
51
+ }, [s, l, m];
52
+ }
53
+ class Ue extends N {
54
+ constructor(t) {
55
+ super(), B(this, t, Te, Se, J, { itemLabel: 0, hooks: 2 }, Ae);
56
+ }
57
+ }
58
+ function Ve(n) {
59
+ K(n, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
60
+ }
61
+ function q(n, t, e) {
62
+ const s = n.slice();
63
+ return s[26] = t[e], s;
64
+ }
65
+ function G(n, t) {
66
+ let e, s, m;
67
+ return s = new Ue({
68
+ props: {
69
+ itemLabel: t[26],
70
+ hooks: t[0]
71
+ }
72
+ }), {
73
+ key: n,
74
+ first: null,
75
+ c() {
76
+ e = Me(), Ie(s.$$.fragment), this.first = e;
77
+ },
78
+ m(l, a) {
79
+ x(l, e, a), ze(s, l, a), m = !0;
80
+ },
81
+ p(l, a) {
82
+ t = l;
83
+ const d = {};
84
+ a & 2 && (d.itemLabel = t[26]), a & 1 && (d.hooks = t[0]), s.$set(d);
85
+ },
86
+ i(l) {
87
+ m || (Q(s.$$.fragment, l), m = !0);
88
+ },
89
+ o(l) {
90
+ Z(s.$$.fragment, l), m = !1;
91
+ },
92
+ d(l) {
93
+ l && R(e), Ce(s, l);
94
+ }
95
+ };
96
+ }
97
+ function We(n) {
98
+ let t, e = [], s = /* @__PURE__ */ new Map(), m, l, a = n[1];
99
+ const d = (o) => o[26].id;
100
+ for (let o = 0; o < a.length; o += 1) {
101
+ let r = q(n, a, o), f = d(r);
102
+ s.set(f, e[o] = G(f, r));
103
+ }
104
+ return {
105
+ c() {
106
+ t = z("div");
107
+ for (let o = 0; o < e.length; o += 1)
108
+ e[o].c();
109
+ w(t, "class", "item-labels-container svelte-gk8s47"), ye(() => n[9].call(t)), y(t, "opacity", n[4] ? 1 : 0, !1);
110
+ },
111
+ m(o, r) {
112
+ x(o, t, r);
113
+ for (let f = 0; f < e.length; f += 1)
114
+ e[f].m(t, null);
115
+ m = Le(t, n[9].bind(t)), l = !0;
116
+ },
117
+ p(o, [r]) {
118
+ r & 3 && (a = o[1], ve(), e = ke(e, r, d, 1, o, a, s, t, we, G, null, q), Ee()), r & 16 && y(t, "opacity", o[4] ? 1 : 0, !1);
119
+ },
120
+ i(o) {
121
+ if (!l) {
122
+ for (let r = 0; r < a.length; r += 1)
123
+ Q(e[r]);
124
+ l = !0;
125
+ }
126
+ },
127
+ o(o) {
128
+ for (let r = 0; r < e.length; r += 1)
129
+ Z(e[r]);
130
+ l = !1;
131
+ },
132
+ d(o) {
133
+ o && R(t);
134
+ for (let r = 0; r < e.length; r += 1)
135
+ e[r].d();
136
+ m();
137
+ }
138
+ };
139
+ }
140
+ let H = 26, De = 11;
141
+ function je(n, t, e) {
142
+ const { Raycaster: s, Vector3: m } = xe;
143
+ let { five: l } = t, { modelOcclusionEnable: a } = t, { itemLabels: d } = t, { hooks: o } = t, { displayStrategyType: r } = t, f = null, u = null, p, v, h = [], F = !0;
144
+ const Y = (i, _) => {
145
+ const L = new s(), b = i.camera.position.clone(), c = new m().fromArray(_.modelPosition), g = c.distanceTo(b);
146
+ L.set(b.clone(), c.clone().sub(b).normalize());
147
+ const [k] = i.model.intersectRaycaster(L);
148
+ return !(k && k.distance + 1 < g);
149
+ }, $ = (i, _) => {
150
+ const L = new m(_.modelPosition[0], _.modelPosition[1], _.modelPosition[2]), b = i.project2d(L), c = b == null ? void 0 : b.x, g = b == null ? void 0 : b.y;
151
+ return [c, g];
152
+ }, ee = (i) => `translate(${i[0]}px, ${i[1]}px)`, te = (i, _) => h.length === 0 ? !1 : !!h.find((b) => i[0] >= b[0] - _ && i[0] <= b[0] + _ || i[1] >= b[1] - H && i[1] <= b[1] + H);
153
+ function ne(i, _) {
154
+ switch (_) {
155
+ case E.SMALL:
156
+ return Math.ceil(-27.78 * i + 85);
157
+ case E.MIDLLE:
158
+ return Math.ceil(-38.9 * i + 130);
159
+ case E.LARGE:
160
+ return Math.ceil(-44.44 * i + 140);
161
+ case E.EXTRA_LARGE:
162
+ return Math.ceil(-92.59 * i + 300);
163
+ }
164
+ }
165
+ const oe = (i, _) => {
166
+ const L = _.map((c) => {
167
+ const g = $(i, c), k = c.name.length * De, T = ne(c.modelPosition[1], r), P = (a ? Y(i, c) : !0) && !te([g[0], g[1] + T], k);
168
+ if (!P)
169
+ return O(M({}, c), { visible: P });
170
+ h.push(g);
171
+ const ae = ee(g);
172
+ return O(M({}, c), {
173
+ visible: P,
174
+ transform: ae,
175
+ strokeLength: T
176
+ });
177
+ }), b = L.filter(({ visible: c }) => c).map((c) => ({
178
+ itemLabelItem: c,
179
+ distance: new m(c.modelPosition[0], c.modelPosition[1], c.modelPosition[2]).clone().distanceTo(i.camera.position)
180
+ })).sort((c, g) => c.distance - g.distance);
181
+ return L.map((c) => {
182
+ const g = b.findIndex((k) => k.itemLabelItem.id === c.id);
183
+ return g !== void 0 ? O(M({}, c), { zIndex: g * 10 }) : c;
184
+ });
185
+ }, C = () => {
186
+ h = [], e(1, u = oe(l, u));
187
+ };
188
+ Oe(() => {
189
+ re();
190
+ });
191
+ const A = () => {
192
+ e(4, F = !1), ie();
193
+ };
194
+ Fe(() => {
195
+ e(1, u = d), f = d, C(), le(), l.on("cameraUpdate", A);
196
+ });
197
+ const ie = Re(
198
+ () => {
199
+ e(4, F = !0), C();
200
+ },
201
+ 300
202
+ ), le = () => {
203
+ window.addEventListener("resize", S, !1);
204
+ }, re = () => {
205
+ f !== d && (e(1, u = d), f = d, C());
206
+ }, S = () => {
207
+ l.once("renderFrame", C);
208
+ };
209
+ Pe(() => {
210
+ l.off("cameraUpdate", A), window.removeEventListener("resize", S, !1);
211
+ });
212
+ function se() {
213
+ p = this.clientWidth, v = this.clientHeight, e(2, p), e(3, v);
214
+ }
215
+ return n.$$set = (i) => {
216
+ "five" in i && e(5, l = i.five), "modelOcclusionEnable" in i && e(6, a = i.modelOcclusionEnable), "itemLabels" in i && e(7, d = i.itemLabels), "hooks" in i && e(0, o = i.hooks), "displayStrategyType" in i && e(8, r = i.displayStrategyType);
217
+ }, [
218
+ o,
219
+ u,
220
+ p,
221
+ v,
222
+ F,
223
+ l,
224
+ a,
225
+ d,
226
+ r,
227
+ se
228
+ ];
229
+ }
230
+ class Xe extends N {
231
+ constructor(t) {
232
+ super(), B(
233
+ this,
234
+ t,
235
+ je,
236
+ We,
237
+ J,
238
+ {
239
+ five: 5,
240
+ modelOcclusionEnable: 6,
241
+ itemLabels: 7,
242
+ hooks: 0,
243
+ displayStrategyType: 8
244
+ },
245
+ Ve
246
+ );
247
+ }
248
+ }
249
+ function qe(n) {
250
+ return n.model_item_labels.map((t) => M({
251
+ modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
252
+ }, t));
253
+ }
254
+ const Ze = (n, t) => {
255
+ var p, v;
256
+ const e = {
257
+ container: document.createElement("div"),
258
+ data: null,
259
+ enabled: !0,
260
+ fiveModeEnabled: void 0,
261
+ itemLabels: [],
262
+ wrapper: null,
263
+ app: void 0,
264
+ hooks: new fe(),
265
+ modelOcclusionEnable: (p = t == null ? void 0 : t.modelOcclusionEnable) != null ? p : !0,
266
+ displayStrategyType: (v = t == null ? void 0 : t.displayStrategyType) != null ? v : E.SMALL
267
+ };
268
+ e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
269
+ position: absolute;
270
+ left: 0;
271
+ top: 0;
272
+ width: 100%;
273
+ height: 100%;
274
+ z-index: 5;
275
+ `, e.container.style.pointerEvents = "none";
276
+ const s = (h) => (e.wrapper = h, h.appendChild(e.container), o(), !0), m = (h) => {
277
+ e.itemLabels = qe(h), o();
278
+ }, l = () => (e.enabled || (e.enabled = !0, o()), !0), a = () => (e.enabled && (e.enabled = !1, o()), !0), d = () => {
279
+ f(), e.container.remove();
280
+ }, o = () => {
281
+ var h;
282
+ if (!!e.wrapper) {
283
+ if (!e.enabled || !e.fiveModeEnabled) {
284
+ (h = e.app) == null || h.$destroy(), e.app = void 0;
285
+ return;
286
+ }
287
+ e.app ? e.app.$set({
288
+ five: n,
289
+ itemLabels: e.itemLabels
290
+ }) : e.app = new Xe({
291
+ target: e.container,
292
+ props: {
293
+ five: n,
294
+ modelOcclusionEnable: e.modelOcclusionEnable,
295
+ itemLabels: e.itemLabels,
296
+ wrapper: e.wrapper,
297
+ hooks: e.hooks,
298
+ displayStrategyType: e.displayStrategyType
299
+ }
300
+ });
301
+ }
302
+ }, r = () => {
303
+ n.on("modeChange", u), n.once("dispose", d);
304
+ }, f = () => {
305
+ n.off("modeChange", u);
306
+ }, u = (h) => {
307
+ if (!!e.enabled) {
308
+ if (h !== W.Mode.Floorplan) {
309
+ e.fiveModeEnabled = !1, o();
310
+ return;
311
+ }
312
+ n.once("initAnimationEnded", () => {
313
+ e.fiveModeEnabled = n.currentMode === W.Mode.Floorplan, o();
314
+ });
315
+ }
316
+ };
317
+ return r(), {
318
+ appendTo: s,
319
+ load: m,
320
+ enable: l,
321
+ disable: a,
322
+ dispose: d,
323
+ hooks: e.hooks
324
+ };
325
+ }, Ye = {
326
+ name: "ModelItemLabelPlugin",
327
+ version: 0
328
+ };
329
+ export {
330
+ E as DISPLAY_STRATEGY_TYPE,
331
+ Ze as ModelItemLabelPlugin,
332
+ Ze as default,
333
+ Ye as modelItemLabelPluginServerParams
334
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";var Y=Object.defineProperty,$=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var R=(n,t,e)=>t in n?Y(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,M=(n,t)=>{for(var e in t||(t={}))te.call(t,e)&&R(n,e,t[e]);if(F)for(var e of F(t))ne.call(t,e)&&R(n,e,t[e]);return n},I=(n,t)=>$(n,ee(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const O=require("@realsee/five"),o=require("svelte/internal"),S=require("svelte"),oe=require("three"),ie=require("classnames"),le=require("../chunks/cjs/debounce.93dfb637.cjs.js"),se=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function re(n){if(n&&n.__esModule)return n;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const ae=re(oe),A=se(ie);var L=(n=>(n.SMALL="small",n.MIDLLE="middle",n.LARGE="large",n.EXTRA_LARGE="x-large",n))(L||{});function ce(n){o.append_styles(n,"svelte-1ir3cyd",`.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
2
+ }to{opacity:1
3
+ }}`)}function de(n){let t,e,s,u=(n[0].name.length>6?`${n[0].name.slice(0,6)}...`:n[0].name)+"",r,c,m,i,a,p;return{c(){t=o.element("div"),e=o.element("div"),s=o.element("span"),r=o.text(u),c=o.space(),m=o.element("div"),o.attr(s,"class","item-label-item__text svelte-1ir3cyd"),o.attr(e,"class","item-label-item__text-wrap svelte-1ir3cyd"),o.set_style(e,"top",`-${n[0].strokeLength+26}px`),o.attr(m,"class","item-label-item__bar svelte-1ir3cyd"),o.set_style(m,"height",`${n[0].strokeLength}px`),o.attr(t,"class",i=o.null_to_empty(A.default("item-label-item",{visible:n[0].visible}))+" svelte-1ir3cyd"),o.set_style(t,"z-index",n[0].zIndex,!1),o.set_style(t,"transform",n[0].transform,!1)},m(f,g){o.insert(f,t,g),o.append(t,e),o.append(e,s),o.append(s,r),o.append(t,c),o.append(t,m),a||(p=o.listen(s,"click",n[1]),a=!0)},p(f,[g]){g&1&&u!==(u=(f[0].name.length>6?`${f[0].name.slice(0,6)}...`:f[0].name)+"")&&o.set_data(r,u),g&1&&o.set_style(e,"top",`-${f[0].strokeLength+26}px`),g&1&&o.set_style(m,"height",`${f[0].strokeLength}px`),g&1&&i!==(i=o.null_to_empty(A.default("item-label-item",{visible:f[0].visible}))+" svelte-1ir3cyd")&&o.attr(t,"class",i),g&1&&o.set_style(t,"z-index",f[0].zIndex,!1),g&1&&o.set_style(t,"transform",f[0].transform,!1)},i:o.noop,o:o.noop,d(f){f&&o.detach(t),a=!1,p()}}}function me(n,t,e){let{itemLabel:s}=t,{hooks:u}=t;function r(){console.log("__onclick___: ",s),u.emit("onLabelClick",s)}return n.$$set=c=>{"itemLabel"in c&&e(0,s=c.itemLabel),"hooks"in c&&e(2,u=c.hooks)},[s,r,u]}class ue extends o.SvelteComponent{constructor(t){super(),o.init(this,t,me,de,o.safe_not_equal,{itemLabel:0,hooks:2},ce)}}function fe(n){o.append_styles(n,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function q(n,t,e){const s=n.slice();return s[26]=t[e],s}function x(n,t){let e,s,u;return s=new ue({props:{itemLabel:t[26],hooks:t[0]}}),{key:n,first:null,c(){e=o.empty(),o.create_component(s.$$.fragment),this.first=e},m(r,c){o.insert(r,e,c),o.mount_component(s,r,c),u=!0},p(r,c){t=r;const m={};c&2&&(m.itemLabel=t[26]),c&1&&(m.hooks=t[0]),s.$set(m)},i(r){u||(o.transition_in(s.$$.fragment,r),u=!0)},o(r){o.transition_out(s.$$.fragment,r),u=!1},d(r){r&&o.detach(e),o.destroy_component(s,r)}}}function be(n){let t,e=[],s=new Map,u,r,c=n[1];const m=i=>i[26].id;for(let i=0;i<c.length;i+=1){let a=q(n,c,i),p=m(a);s.set(p,e[i]=x(p,a))}return{c(){t=o.element("div");for(let i=0;i<e.length;i+=1)e[i].c();o.attr(t,"class","item-labels-container svelte-gk8s47"),o.add_render_callback(()=>n[9].call(t)),o.set_style(t,"opacity",n[4]?1:0,!1)},m(i,a){o.insert(i,t,a);for(let p=0;p<e.length;p+=1)e[p].m(t,null);u=o.add_resize_listener(t,n[9].bind(t)),r=!0},p(i,[a]){a&3&&(c=i[1],o.group_outros(),e=o.update_keyed_each(e,a,m,1,i,c,s,t,o.outro_and_destroy_block,x,null,q),o.check_outros()),a&16&&o.set_style(t,"opacity",i[4]?1:0,!1)},i(i){if(!r){for(let a=0;a<c.length;a+=1)o.transition_in(e[a]);r=!0}},o(i){for(let a=0;a<e.length;a+=1)o.transition_out(e[a]);r=!1},d(i){i&&o.detach(t);for(let a=0;a<e.length;a+=1)e[a].d();u()}}}let U=26,pe=11;function ge(n,t,e){const{Raycaster:s,Vector3:u}=ae;let{five:r}=t,{modelOcclusionEnable:c}=t,{itemLabels:m}=t,{hooks:i}=t,{displayStrategyType:a}=t,p=null,f=null,g,k,_=[],z=!0;const V=(l,y)=>{const v=new s,b=l.camera.position.clone(),d=new u().fromArray(y.modelPosition),h=d.distanceTo(b);v.set(b.clone(),d.clone().sub(b).normalize());const[w]=l.model.intersectRaycaster(v);return!(w&&w.distance+1<h)},W=(l,y)=>{const v=new u(y.modelPosition[0],y.modelPosition[1],y.modelPosition[2]),b=l.project2d(v),d=b==null?void 0:b.x,h=b==null?void 0:b.y;return[d,h]},N=l=>`translate(${l[0]}px, ${l[1]}px)`,G=(l,y)=>_.length===0?!1:!!_.find(b=>l[0]>=b[0]-y&&l[0]<=b[0]+y||l[1]>=b[1]-U&&l[1]<=b[1]+U);function H(l,y){switch(y){case L.SMALL:return Math.ceil(-27.78*l+85);case L.MIDLLE:return Math.ceil(-38.9*l+130);case L.LARGE:return Math.ceil(-44.44*l+140);case L.EXTRA_LARGE:return Math.ceil(-92.59*l+300)}}const X=(l,y)=>{const v=y.map(d=>{const h=W(l,d),w=d.name.length*pe,j=H(d.modelPosition[1],a),P=(c?V(l,d):!0)&&!G([h[0],h[1]+j],w);if(!P)return I(M({},d),{visible:P});_.push(h);const Z=N(h);return I(M({},d),{visible:P,transform:Z,strokeLength:j})}),b=v.filter(({visible:d})=>d).map(d=>({itemLabelItem:d,distance:new u(d.modelPosition[0],d.modelPosition[1],d.modelPosition[2]).clone().distanceTo(l.camera.position)})).sort((d,h)=>d.distance-h.distance);return v.map(d=>{const h=b.findIndex(w=>w.itemLabelItem.id===d.id);return h!==void 0?I(M({},d),{zIndex:h*10}):d})},E=()=>{_=[],e(1,f=X(r,f))};S.beforeUpdate(()=>{K()});const C=()=>{e(4,z=!1),B()};S.onMount(()=>{e(1,f=m),p=m,E(),J(),r.on("cameraUpdate",C)});const B=le.debounce(()=>{e(4,z=!0),E()},300),J=()=>{window.addEventListener("resize",T,!1)},K=()=>{p!==m&&(e(1,f=m),p=m,E())},T=()=>{r.once("renderFrame",E)};S.onDestroy(()=>{r.off("cameraUpdate",C),window.removeEventListener("resize",T,!1)});function Q(){g=this.clientWidth,k=this.clientHeight,e(2,g),e(3,k)}return n.$$set=l=>{"five"in l&&e(5,r=l.five),"modelOcclusionEnable"in l&&e(6,c=l.modelOcclusionEnable),"itemLabels"in l&&e(7,m=l.itemLabels),"hooks"in l&&e(0,i=l.hooks),"displayStrategyType"in l&&e(8,a=l.displayStrategyType)},[i,f,g,k,z,r,c,m,a,Q]}class _e extends o.SvelteComponent{constructor(t){super(),o.init(this,t,ge,be,o.safe_not_equal,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},fe)}}function he(n){return n.model_item_labels.map(t=>M({modelPosition:[t.position[0],t.position[1]+t.size[1],t.position[2]]},t))}const D=(n,t)=>{var g,k;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new O.Subscribe,modelOcclusionEnable:(g=t==null?void 0:t.modelOcclusionEnable)!=null?g:!0,displayStrategyType:(k=t==null?void 0:t.displayStrategyType)!=null?k:L.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
4
+ position: absolute;
5
+ left: 0;
6
+ top: 0;
7
+ width: 100%;
8
+ height: 100%;
9
+ z-index: 5;
10
+ `,e.container.style.pointerEvents="none";const s=_=>(e.wrapper=_,_.appendChild(e.container),i(),!0),u=_=>{e.itemLabels=he(_),i()},r=()=>(e.enabled||(e.enabled=!0,i()),!0),c=()=>(e.enabled&&(e.enabled=!1,i()),!0),m=()=>{p(),e.container.remove()},i=()=>{var _;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(_=e.app)==null||_.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:n,itemLabels:e.itemLabels}):e.app=new _e({target:e.container,props:{five:n,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},a=()=>{n.on("modeChange",f),n.once("dispose",m)},p=()=>{n.off("modeChange",f)},f=_=>{if(!!e.enabled){if(_!==O.Five.Mode.Floorplan){e.fiveModeEnabled=!1,i();return}n.once("initAnimationEnded",()=>{e.fiveModeEnabled=n.currentMode===O.Five.Mode.Floorplan,i()})}};return a(),{appendTo:s,load:u,enable:r,disable:c,dispose:m,hooks:e.hooks}},ye={name:"ModelItemLabelPlugin",version:0};exports.DISPLAY_STRATEGY_TYPE=L;exports.ModelItemLabelPlugin=D;exports.default=D;exports.modelItemLabelPluginServerParams=ye;
@@ -0,0 +1,274 @@
1
+ var q = Object.defineProperty, _ = Object.defineProperties;
2
+ var $ = Object.getOwnPropertyDescriptors;
3
+ var O = Object.getOwnPropertySymbols;
4
+ var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
5
+ var C = (o, e, t) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, N = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ ee.call(e, t) && C(o, t, e[t]);
8
+ if (O)
9
+ for (var t of O(e))
10
+ te.call(e, t) && C(o, t, e[t]);
11
+ return o;
12
+ }, B = (o, e) => _(o, $(e));
13
+ var h = (o, e, t) => (C(o, typeof e != "symbol" ? e + "" : e, t), t);
14
+ import { SvelteComponent as T, init as Y, safe_not_equal as S, append_styles as V, element as F, text as oe, space as ne, attr as I, set_style as b, toggle_class as G, insert as k, append as x, listen as ie, set_data as se, noop as R, detach as y, add_render_callback as re, add_resize_listener as ae, group_outros as le, update_keyed_each as fe, outro_and_destroy_block as ce, check_outros as de, transition_in as Z, transition_out as W, globals as ue, empty as me, create_component as he, mount_component as ve, destroy_component as be } from "svelte/internal";
15
+ import { onDestroy as Ae } from "svelte";
16
+ import { Raycaster as ge, Vector3 as P } from "three";
17
+ const pe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6LID6cDQWYo8mabGMxOr+e/ye3y7989p3/9jfvHnz2q1bt25oMb549913/3Lwzjvv/Mu3337775988smdzz///AcVQ+IecsAOp8OOHRpkiJniWQnrBJmwc7EF8atxBA2ihx/obf7Qqa+un+aDI0f7k08nU+PLj3PBR+qpcvFdd3BNP7YgI7mnHqHzBRndv1hH33///QNtlAcvvfTSq999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pr0ZqRrGt30C1tk4FnyQYccray31B3s9UQviG104IUGmZ8mH5v+3qF2w51nn332TzHCsI7KJzEVm6akEVuPhLWGhUeM0CAjvkHmxCM+uCYPD2R0f2Ilt7lB4tMGZ3i7qPqfe+65P6j3X1y5du3aZ3rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+0P9jOJ/f/jhh7dfeeWVN1C4c+cOv5zoxsQgKD7O/OgIT3OLgrrkLAMR9EuQYsXLlWO5ePNMJ25s7Fhv8EIraduDDOJI7kfh6FT98M6Ka/GrLbE0/131X79+/YVXX331+tNPP32b3nt1tGhXP/rooz/ruf9N/YzWQ/2e2c8Cfg7Wz8RC9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";
18
+ function we(o) {
19
+ V(o, "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}");
20
+ }
21
+ function ze(o) {
22
+ let e, t, r = o[0].name + "", i, s, l, d, a;
23
+ return {
24
+ c() {
25
+ e = F("div"), t = F("span"), i = oe(r), s = ne(), l = F("div"), I(t, "class", "room-label-item__text svelte-1d7uzh5"), b(t, "background-image", "url(" + pe + ")"), G(t, "wide", o[0].name.length > 3), I(l, "class", "room-label-item__bar svelte-1d7uzh5"), I(e, "class", "room-label-item svelte-1d7uzh5"), b(e, "z-index", o[0].zIndex, !1), b(e, "transform", o[0].transform, !1), b(e, "opacity", o[0].visible ? 1 : 0, !1);
26
+ },
27
+ m(n, c) {
28
+ k(n, e, c), x(e, t), x(t, i), x(e, s), x(e, l), d || (a = ie(t, "click", o[1]), d = !0);
29
+ },
30
+ p(n, [c]) {
31
+ c & 1 && r !== (r = n[0].name + "") && se(i, r), c & 1 && G(t, "wide", n[0].name.length > 3), c & 1 && b(e, "z-index", n[0].zIndex, !1), c & 1 && b(e, "transform", n[0].transform, !1), c & 1 && b(e, "opacity", n[0].visible ? 1 : 0, !1);
32
+ },
33
+ i: R,
34
+ o: R,
35
+ d(n) {
36
+ n && y(e), d = !1, a();
37
+ }
38
+ };
39
+ }
40
+ function xe(o, e, t) {
41
+ let { five: r } = e, { roomLabel: i } = e;
42
+ function s() {
43
+ r.setState({
44
+ panoIndex: i.panoIndex,
45
+ mode: "Panorama",
46
+ longitude: i.longitude
47
+ });
48
+ }
49
+ return o.$$set = (l) => {
50
+ "five" in l && t(2, r = l.five), "roomLabel" in l && t(0, i = l.roomLabel);
51
+ }, [i, s, r];
52
+ }
53
+ class Fe extends T {
54
+ constructor(e) {
55
+ super(), Y(this, e, xe, ze, S, { five: 2, roomLabel: 0 }, we);
56
+ }
57
+ }
58
+ const { Map: Ie } = ue;
59
+ function Le(o) {
60
+ V(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
61
+ }
62
+ function X(o, e, t) {
63
+ const r = o.slice();
64
+ return r[12] = e[t], r;
65
+ }
66
+ function K(o, e) {
67
+ let t, r, i;
68
+ return r = new Fe({
69
+ props: {
70
+ roomLabel: e[12],
71
+ five: e[1]
72
+ }
73
+ }), {
74
+ key: o,
75
+ first: null,
76
+ c() {
77
+ t = me(), he(r.$$.fragment), this.first = t;
78
+ },
79
+ m(s, l) {
80
+ k(s, t, l), ve(r, s, l), i = !0;
81
+ },
82
+ p(s, l) {
83
+ e = s;
84
+ const d = {};
85
+ l & 1 && (d.roomLabel = e[12]), l & 2 && (d.five = e[1]), r.$set(d);
86
+ },
87
+ i(s) {
88
+ i || (Z(r.$$.fragment, s), i = !0);
89
+ },
90
+ o(s) {
91
+ W(r.$$.fragment, s), i = !1;
92
+ },
93
+ d(s) {
94
+ s && y(t), be(r, s);
95
+ }
96
+ };
97
+ }
98
+ function je(o) {
99
+ let e, t = [], r = new Ie(), i, s, l = o[0];
100
+ const d = (a) => a[12].id;
101
+ for (let a = 0; a < l.length; a += 1) {
102
+ let n = X(o, l, a), c = d(n);
103
+ r.set(c, t[a] = K(c, n));
104
+ }
105
+ return {
106
+ c() {
107
+ e = F("div");
108
+ for (let a = 0; a < t.length; a += 1)
109
+ t[a].c();
110
+ I(e, "class", "room-labels-container svelte-9eg4zi"), re(() => o[6].call(e));
111
+ },
112
+ m(a, n) {
113
+ k(a, e, n);
114
+ for (let c = 0; c < t.length; c += 1)
115
+ t[c].m(e, null);
116
+ i = ae(e, o[6].bind(e)), s = !0;
117
+ },
118
+ p(a, [n]) {
119
+ n & 3 && (l = a[0], le(), t = fe(t, n, d, 1, a, l, r, e, ce, K, null, X), de());
120
+ },
121
+ i(a) {
122
+ if (!s) {
123
+ for (let n = 0; n < l.length; n += 1)
124
+ Z(t[n]);
125
+ s = !0;
126
+ }
127
+ },
128
+ o(a) {
129
+ for (let n = 0; n < t.length; n += 1)
130
+ W(t[n]);
131
+ s = !1;
132
+ },
133
+ d(a) {
134
+ a && y(e);
135
+ for (let n = 0; n < t.length; n += 1)
136
+ t[n].d();
137
+ i();
138
+ }
139
+ };
140
+ }
141
+ function Ce(o, e, t) {
142
+ var M;
143
+ let r, { five: i } = e, { roomLabels: s } = e, l, d, a = (M = i.model.shownFloor) != null ? M : null;
144
+ function n(f) {
145
+ if (!(a === null || f.floorIndex === a))
146
+ return !1;
147
+ const p = new ge(), m = i.camera.position.clone(), v = new P(f.position.x, f.position.y, f.position.z), w = v.distanceTo(m);
148
+ p.set(m.clone(), v.clone().sub(m).normalize());
149
+ const [u] = i.model.intersectRaycaster(p);
150
+ return !(u && u.distance + 1 < w);
151
+ }
152
+ function c(f, A) {
153
+ const m = new P(f.position.x, f.position.y, f.position.z).clone().project(i.camera), v = Math.ceil((m.x + 1) / 2 * A.x), w = Math.ceil((-m.y + 1) / 2 * A.y);
154
+ return `translate(${v}px, ${w}px)`;
155
+ }
156
+ function E(f) {
157
+ const { rendererSize: A, shownFloor: p } = f, m = /* @__PURE__ */ new Map();
158
+ function v(u) {
159
+ const g = m.get(u.id);
160
+ if (g)
161
+ return g;
162
+ const { x: L, y: j, z: J } = u.position, z = new P(L, j, J).clone().distanceTo(i.camera.position);
163
+ return m.set(u.id, z), z;
164
+ }
165
+ return s.map((u) => {
166
+ const g = n(u), L = g ? c(u, A) : u.transform, j = v(u), z = s.filter((D) => D.visible && v(D) < j).length * 10;
167
+ return B(N({}, u), { visible: g, transform: L, zIndex: z });
168
+ });
169
+ }
170
+ function Q() {
171
+ t(0, s = E({ rendererSize: r, shownFloor: a }));
172
+ }
173
+ function H(f) {
174
+ t(4, a = f);
175
+ }
176
+ i.on("cameraUpdate", Q), i.on("modelShownFloorChange", H), Ae(() => {
177
+ i.off("cameraUpdate", Q), i.off("modelShownFloorChange", H);
178
+ });
179
+ function U() {
180
+ l = this.clientWidth, d = this.clientHeight, t(2, l), t(3, d);
181
+ }
182
+ return o.$$set = (f) => {
183
+ "five" in f && t(1, i = f.five), "roomLabels" in f && t(0, s = f.roomLabels);
184
+ }, o.$$.update = () => {
185
+ o.$$.dirty & 12 && t(5, r = { x: l, y: d }), o.$$.dirty & 48 && t(0, s = E({ rendererSize: r, shownFloor: a }));
186
+ }, [
187
+ s,
188
+ i,
189
+ l,
190
+ d,
191
+ a,
192
+ r,
193
+ U
194
+ ];
195
+ }
196
+ class Pe extends T {
197
+ constructor(e) {
198
+ super(), Y(this, e, Ce, je, S, { five: 1, roomLabels: 0 }, Le);
199
+ }
200
+ }
201
+ function ke(o) {
202
+ return o.model_room_labels.map(({ id: e, pano_index: t, floor_index: r, name: i, position: s, longitude: l }) => ({
203
+ id: e,
204
+ name: i,
205
+ position: s,
206
+ longitude: l,
207
+ panoIndex: t,
208
+ floorIndex: r,
209
+ zIndex: 0,
210
+ visible: !1,
211
+ transform: ""
212
+ }));
213
+ }
214
+ class ye {
215
+ constructor(e) {
216
+ h(this, "five");
217
+ h(this, "enabled", !0);
218
+ h(this, "fiveModeEnabled");
219
+ h(this, "app");
220
+ h(this, "wrapper");
221
+ h(this, "roomLabels", []);
222
+ h(this, "container", document.createElement("div"));
223
+ h(this, "onFiveModeChange", (e) => {
224
+ if (e !== "Floorplan") {
225
+ this.fiveModeEnabled = !1, this.render();
226
+ return;
227
+ }
228
+ this.five.once("initAnimationEnded", () => {
229
+ this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.render();
230
+ });
231
+ });
232
+ this.five = e, this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.container.classList.add("model-room-label-plugin-container"), this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.position = "absolute", this.container.style.pointerEvents = "none", this.container.style.left = "0", this.container.style.top = "0", this.container.style.zIndex = "5", this.five.once("dispose", () => this.dispose()), this.five.on("modeChange", this.onFiveModeChange), this.render();
233
+ }
234
+ dispose() {
235
+ this.five.off("modeChange", this.onFiveModeChange), this.container.remove();
236
+ }
237
+ load(e) {
238
+ this.roomLabels = ke(e), this.render();
239
+ }
240
+ appendTo(e) {
241
+ return this.wrapper = e, e.appendChild(this.container), this.render(), this;
242
+ }
243
+ disable() {
244
+ return this.enabled = !1, this.render(), this;
245
+ }
246
+ enable() {
247
+ return this.enabled = !0, this.render(), this;
248
+ }
249
+ render() {
250
+ var e;
251
+ if (!!this.wrapper) {
252
+ if (!this.enabled || !this.fiveModeEnabled) {
253
+ (e = this.app) == null || e.$destroy(), this.app = void 0;
254
+ return;
255
+ }
256
+ this.app ? this.app.$set({ five: this.five, roomLabels: this.roomLabels }) : this.app = new Pe({
257
+ target: this.container,
258
+ props: {
259
+ five: this.five,
260
+ roomLabels: this.roomLabels
261
+ }
262
+ });
263
+ }
264
+ }
265
+ }
266
+ const Je = (o) => new ye(o), De = {
267
+ name: "ModelRoomLabelPlugin",
268
+ version: 0
269
+ };
270
+ export {
271
+ Je as ModelRoomLabelPlugin,
272
+ Je as default,
273
+ De as modelRoomLabelPluginServerParams
274
+ };