@realsee/dnalogel 2.2.3 → 2.2.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  2. package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
  3. package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
  4. package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  5. package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  6. package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  7. package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  8. package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  9. package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  11. package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  12. package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  13. package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  14. package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  15. package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
  16. package/dist/index.cjs.js +63 -58
  17. package/dist/index.js +5827 -5094
  18. package/dist/index.umd.js +51 -46
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/search.js +1 -1
  22. package/docs/classes/CSS3DRender.html +533 -0
  23. package/docs/classes/CruisePluginController.html +24 -24
  24. package/docs/classes/Magnifier.html +16 -16
  25. package/docs/classes/ModelRoomLabelController.html +11 -11
  26. package/docs/classes/Object3DHelperController.html +24 -24
  27. package/docs/classes/PaintBrush.html +15 -15
  28. package/docs/classes/PanoTagPluginController.html +39 -39
  29. package/docs/classes/Util.BetterTween.html +8 -8
  30. package/docs/classes/Util.FivePointSelector.html +12 -12
  31. package/docs/classes/Util.Interval.html +12 -12
  32. package/docs/classes/Util.Magnifier.html +17 -17
  33. package/docs/classes/Util.PointDomHelper.html +11 -11
  34. package/docs/classes/Util.PointHelper.html +11 -11
  35. package/docs/classes/Util.Rectangle.html +13 -13
  36. package/docs/enums/CameraMovementEffect.html +7 -7
  37. package/docs/enums/ContentType.html +12 -12
  38. package/docs/enums/DIRECTION.html +9 -9
  39. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  40. package/docs/enums/DimensionType.html +7 -7
  41. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  42. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  43. package/docs/enums/LinkType.html +7 -7
  44. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  45. package/docs/enums/PointType.html +7 -7
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  48. package/docs/functions/CameraMovementPlugin.html +6 -5
  49. package/docs/functions/CruisePlugin.html +6 -5
  50. package/docs/functions/GuideLinePlugin.html +7 -6
  51. package/docs/functions/ItemLabelPlugin.html +6 -5
  52. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  53. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  55. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  56. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  57. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  58. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  59. package/docs/functions/ModelViewPlugin.html +6 -5
  60. package/docs/functions/Object3DHelperPlugin.html +6 -5
  61. package/docs/functions/PanoCompassPlugin.html +6 -5
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  63. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  65. package/docs/functions/PanoMeasurePlugin.html +6 -5
  66. package/docs/functions/PanoRulerPlugin.html +6 -5
  67. package/docs/functions/PanoRulerProPlugin.html +6 -5
  68. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  69. package/docs/functions/PanoTagPlugin.html +6 -5
  70. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  71. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  72. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  73. package/docs/functions/Util.getFrameTime.html +5 -5
  74. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  75. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  76. package/docs/functions/Util.isNil.html +5 -5
  77. package/docs/functions/Util.nextFrame.html +5 -5
  78. package/docs/functions/Util.notNil.html +5 -5
  79. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  80. package/docs/functions/Util.tweenProgress.html +5 -5
  81. package/docs/functions/pluginFlag.html +7 -6
  82. package/docs/index.html +6 -5
  83. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  84. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  85. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  86. package/docs/interfaces/ContentTypeMap.html +12 -12
  87. package/docs/interfaces/FloorplanBounding.html +8 -8
  88. package/docs/interfaces/FloorplanData.html +10 -10
  89. package/docs/interfaces/FloorplanEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  91. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  92. package/docs/interfaces/FloorplanFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanObserver.html +9 -9
  95. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanPosition.html +7 -7
  97. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  98. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  99. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  100. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  101. package/docs/interfaces/FloorplanServerData.html +7 -7
  102. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  103. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  104. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  105. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  106. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  107. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  108. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  109. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  110. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  111. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  112. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  115. package/docs/interfaces/LineJson.html +7 -7
  116. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  119. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  120. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  121. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  122. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  123. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  124. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  125. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  126. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  127. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  128. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  129. package/docs/interfaces/Object3DHelperState.html +8 -8
  130. package/docs/interfaces/OpenParameter.html +7 -7
  131. package/docs/interfaces/PaintBrushAction.html +12 -12
  132. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  133. package/docs/interfaces/PaintBrushState.html +10 -10
  134. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  136. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  137. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  138. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  139. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  140. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  141. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  142. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  144. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  145. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  148. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  149. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  150. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  151. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  152. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  153. package/docs/interfaces/Point.html +8 -8
  154. package/docs/interfaces/PointJson.html +8 -8
  155. package/docs/interfaces/Room.html +9 -9
  156. package/docs/interfaces/RoomInfo.html +7 -7
  157. package/docs/interfaces/RoomLabel.html +14 -14
  158. package/docs/interfaces/RoomRules.html +7 -6
  159. package/docs/interfaces/Rooms.html +7 -6
  160. package/docs/interfaces/Scissor.html +9 -9
  161. package/docs/interfaces/TagConfig.html +10 -10
  162. package/docs/interfaces/Tags.html +9 -9
  163. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  164. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  165. package/docs/modules/Util.html +5 -5
  166. package/docs/modules.html +7 -5
  167. package/docs/types/ArrayPosition.html +7 -6
  168. package/docs/types/CSS3DRenderExportType.html +8 -7
  169. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  170. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  171. package/docs/types/Color.html +7 -6
  172. package/docs/types/ContentTypeConfigKey.html +7 -6
  173. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  174. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  175. package/docs/types/Create3DElementReturnType.html +8 -7
  176. package/docs/types/CruisePluginExportType.html +7 -6
  177. package/docs/types/Direction-1.html +7 -6
  178. package/docs/types/Direction4.html +7 -6
  179. package/docs/types/FloorplanRuleLabels.html +7 -6
  180. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  181. package/docs/types/GuideLinePluginExportType.html +7 -6
  182. package/docs/types/HelperEventMap.html +7 -6
  183. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  185. package/docs/types/MediaData.html +7 -6
  186. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  187. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  189. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  191. package/docs/types/MoveArgs.html +7 -6
  192. package/docs/types/MoveOpts.html +7 -6
  193. package/docs/types/Object3DHelperEventMap.html +7 -6
  194. package/docs/types/ObjectFit.html +7 -6
  195. package/docs/types/PaintBrushEventMap.html +7 -6
  196. package/docs/types/PanoCompassPluginData.html +7 -6
  197. package/docs/types/PanoCompassPluginExportType.html +7 -6
  198. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  199. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  201. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  202. package/docs/types/PanoMeasureReturnType.html +7 -6
  203. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  204. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  205. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  206. package/docs/types/PlaneTag.html +7 -6
  207. package/docs/types/PointTag.html +7 -6
  208. package/docs/types/Position.html +7 -6
  209. package/docs/types/RotateArgs.html +7 -6
  210. package/docs/types/RotateOpts.html +7 -6
  211. package/docs/types/RuleLabelsKey.html +7 -6
  212. package/docs/types/RuleLabelsValue.html +7 -6
  213. package/docs/types/Tag.html +7 -6
  214. package/docs/types/Tag2D.html +7 -6
  215. package/docs/types/Tag3D.html +7 -6
  216. package/docs/types/TagId.html +7 -6
  217. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  219. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  220. package/docs/variables/PLUGIN.html +7 -6
  221. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  222. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  223. package/docs/variables/VERSION.html +7 -6
  224. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  225. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  227. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
  229. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  230. package/libs/CSS3DRenderPlugin/Controller.js +48 -57
  231. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  232. package/libs/CSS3DRenderPlugin/index.js +3 -2
  233. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  235. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  237. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  239. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  241. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  242. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
  244. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
  245. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -0
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  252. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  254. package/libs/CruisePlugin/Controller.js +16 -16
  255. package/libs/ItemLabelPlugin/ItemLabelComponent.js +13 -14
  256. package/libs/ItemLabelPlugin/ItemLabelItem.js +12 -12
  257. package/libs/ItemLabelPlugin/index.js +3 -4
  258. package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +11 -12
  259. package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
  260. package/libs/ModelItemLabelPlugin/index.js +3 -4
  261. package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
  262. package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +17 -18
  263. package/libs/ModelTVVideoPlugin/index.js +2 -1
  264. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  265. package/libs/Object3DHelperPlugin/Controller.js +89 -74
  266. package/libs/PanoDoorLabelPlugin/Controller.js +72 -73
  267. package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
  268. package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
  269. package/libs/PanoRulerProPlugin/RulerItems.js +18 -19
  270. package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -41
  271. package/libs/PanoSpatialTagPlugin/Components/tag.js +8 -9
  272. package/libs/PanoSpatialTagPlugin/index.js +3 -4
  273. package/libs/PanoSpatialTagPlugin/store.js +1 -1
  274. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  275. package/libs/PanoTagPlugin/Components/Common/Audio.js +25 -26
  276. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +8 -8
  277. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +30 -29
  278. package/libs/PanoTagPlugin/Components/Common/Media.js +75 -76
  279. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  280. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +18 -19
  281. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +11 -11
  282. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +15 -15
  283. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +9 -9
  284. package/libs/PanoTagPlugin/Components/Common/Shadow.js +14 -13
  285. package/libs/PanoTagPlugin/Components/Common/Text.js +15 -16
  286. package/libs/PanoTagPlugin/Components/Common/TextItem.js +10 -10
  287. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +18 -19
  288. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +27 -28
  289. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +9 -10
  290. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +7 -6
  291. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +52 -81
  292. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +10 -11
  293. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +32 -33
  294. package/libs/PanoTagPlugin/Components/Tag/index.js +39 -40
  295. package/libs/PanoTagPlugin/Components/TagContainer.js +12 -13
  296. package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -10
  297. package/libs/PanoTagPlugin/controller/index.js +1 -1
  298. package/libs/floorplan/Components/BaseImage.js +4 -4
  299. package/libs/floorplan/Components/Camera.js +23 -23
  300. package/libs/floorplan/Components/Compass.js +2 -2
  301. package/libs/floorplan/Components/CurrentFloor.js +9 -10
  302. package/libs/floorplan/Components/Main.js +24 -25
  303. package/libs/floorplan/Components/Normalmage.js +1 -1
  304. package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
  305. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +7 -7
  306. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +37 -38
  307. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +39 -40
  308. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +7 -7
  309. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
  310. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
  311. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
  312. package/libs/floorplan/Components/RuleLabels/RuleItem.js +53 -53
  313. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +8 -8
  314. package/libs/floorplan/Components/SvgImage.js +4 -4
  315. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -6
  316. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -3
  317. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +27 -27
  318. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +34 -35
  319. package/libs/floorplan/index.js +1 -5
  320. package/libs/index.js +110 -102
  321. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  322. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  323. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  324. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  325. package/libs/shared-utils/three/index.js +2 -1
  326. package/libs/vendor/svelte/easing/index.js +12 -0
  327. package/libs/vendor/svelte/index.js +1 -0
  328. package/libs/vendor/svelte/internal/index.js +641 -0
  329. package/libs/vendor/svelte/store/index.js +31 -0
  330. package/libs/vendor/svelte/transition/index.js +37 -0
  331. package/libs/vendor/swiper/svelte/swiper-slide.js +10 -11
  332. package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -2
  333. package/libs/vendor/swiper/svelte/swiper.js +9 -10
  334. package/package.json +15 -15
  335. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  336. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  337. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  338. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
@@ -1,61 +1,66 @@
1
- var E = Object.defineProperty;
2
- var S = Object.getOwnPropertySymbols;
3
- var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var b = (i, s, e) => s in i ? E(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
1
+ var O = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
4
+ var m = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, b = (i, s) => {
5
5
  for (var e in s || (s = {}))
6
- M.call(s, e) && b(i, e, s[e]);
7
- if (S)
8
- for (var e of S(s))
9
- O.call(s, e) && b(i, e, s[e]);
6
+ M.call(s, e) && m(i, e, s[e]);
7
+ if (w)
8
+ for (var e of w(s))
9
+ E.call(s, e) && m(i, e, s[e]);
10
10
  return i;
11
11
  };
12
- var h = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
13
- var u = (i, s, e) => new Promise((t, r) => {
14
- var l = (o) => {
12
+ var d = (i, s, e) => (m(i, typeof s != "symbol" ? s + "" : s, e), e);
13
+ var u = (i, s, e) => new Promise((r, t) => {
14
+ var l = (n) => {
15
15
  try {
16
- a(e.next(o));
17
- } catch (p) {
18
- r(p);
16
+ p(e.next(n));
17
+ } catch (h) {
18
+ t(h);
19
19
  }
20
- }, c = (o) => {
20
+ }, c = (n) => {
21
21
  try {
22
- a(e.throw(o));
23
- } catch (p) {
24
- r(p);
22
+ p(e.throw(n));
23
+ } catch (h) {
24
+ t(h);
25
25
  }
26
- }, a = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(l, c);
27
- a((e = e.apply(i, s)).next());
26
+ }, p = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
27
+ p((e = e.apply(i, s)).next());
28
28
  });
29
- import { Controller as D } from "../base/BasePlugin.js";
29
+ import { Controller as R } from "../base/BasePlugin.js";
30
30
  import "three";
31
- import { MoveHelper as y } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
- import { RotateHelper as I } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
- import { RectangleScaleHelper as k } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
31
+ import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
32
+ import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
33
+ import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
34
34
  import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
35
35
  import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
36
- import { ControllerWrapper as m } from "./FiveControllerWrapper.js";
37
- import { Object3DHelper as P } from "../shared-utils/Object3DHelper/index.js";
38
- import { RotateController as $ } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
- import { CSS3DScaleController as j } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
- const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, L = () => {
41
- console.error(`${H} is disposed`);
42
- }, _ = () => {
43
- console.warn(`${H} is disabled`);
44
- }, B = () => {
45
- console.error(`${H} is disabled`);
36
+ import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
37
+ import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
38
+ import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
39
+ import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
40
+ import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
41
+ import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
42
+ import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
43
+ const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
44
+ console.error(`${C} is disposed`);
45
+ }, G = () => {
46
+ console.warn(`${C} is disabled`);
47
+ }, N = () => {
48
+ console.error(`${C} is disabled`);
46
49
  };
47
- class K extends D {
50
+ class re extends R {
48
51
  constructor(e) {
49
52
  super(e);
50
- h(this, "version", g);
51
- h(this, "name", v);
52
- h(this, "state", {
53
+ d(this, "version", g);
54
+ d(this, "name", H);
55
+ d(this, "state", {
53
56
  visible: !0,
54
57
  enabled: !0,
55
58
  disposed: !1
56
59
  });
57
- h(this, "objectHelperMap", /* @__PURE__ */ new Map());
58
- this.five = e, console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${v.toUpperCase()}_DEBUG__`]: this });
60
+ d(this, "objectHelperMap", /* @__PURE__ */ new Map());
61
+ d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
62
+ d(this, "css3DRender");
63
+ this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
59
64
  }
60
65
  show(e) {
61
66
  return u(this, null, function* () {
@@ -76,70 +81,80 @@ class K extends D {
76
81
  dispose() {
77
82
  this.setState({ disposed: !0 });
78
83
  }
79
- setState(e, t) {
84
+ setState(e, r) {
80
85
  if (this.state.disposed)
81
- return L();
86
+ return _();
82
87
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
83
- return B();
84
- const r = f({}, this.state);
85
- this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
88
+ return N();
89
+ const t = b({}, this.state);
90
+ this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
86
91
  }
87
92
  getObject3DHelper(e) {
88
93
  return this.objectHelperMap.get(e);
89
94
  }
90
- addObject3DHelper(e, t = {}) {
91
- var C;
95
+ addObject3DHelper(e, r = {}) {
96
+ var S;
92
97
  if (!e)
93
98
  return console.error("Object3D is undefined");
94
99
  if (this.objectHelperMap.has(e)) {
95
100
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
96
101
  return;
97
102
  }
98
- const r = new P();
99
- this.objectHelperMap.set(e, r);
100
- const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, c = this.five.camera, { moveHelper: a = !0, rotateHelper: o = !0, scaleHelper: p = !0 } = t;
101
- if (a) {
102
- const n = new y(e), d = new m(this.five, F, e, n);
103
- r.addControllers({ moveController: d.helperController });
103
+ const t = new I();
104
+ this.objectHelperMap.set(e, t);
105
+ const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: p = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
106
+ if (p) {
107
+ const o = new j(e), a = new v(this.five, F, e, o);
108
+ t.addControllers({ moveController: a.helperController });
104
109
  }
105
- if (o) {
106
- let n;
107
- l && c && (n = { container: l });
108
- const d = new I(e, n), w = new m(this.five, $, e, d);
109
- r.addControllers({ rotateController: w.helperController });
110
+ if (n) {
111
+ let o;
112
+ l && c && (o = { container: l });
113
+ const a = new P(e, o), f = new v(this.five, k, e, a);
114
+ t.addControllers({ rotateController: f.helperController });
110
115
  }
111
- if (p && l) {
112
- const n = new k(e, l, c, this.five.scene), d = new m(this.five, j, e, n);
113
- r.addControllers({ scaleController: d.helperController });
116
+ if (h && l) {
117
+ const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
118
+ t.addControllers({ scaleController: a.helperController });
114
119
  }
115
- e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
120
+ e.isCSS3DObjectPlus && $(this.five).then(() => {
121
+ var f, D;
122
+ const o = e, a = (f = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? f : W(this.five);
123
+ a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
124
+ });
116
125
  }
117
126
  removeObject3DHelper(e) {
118
- const t = this.objectHelperMap.get(e);
119
- !t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
127
+ const r = this.objectHelperMap.get(e);
128
+ if (!!r) {
129
+ if (e.isCSS3DObjectPlus) {
130
+ const t = e, l = this.css3DObjectParentMap.get(t);
131
+ l == null || l.add(t), this.css3DRender.render(this.five.camera);
132
+ }
133
+ this.objectHelperMap.delete(e), r.dispose();
134
+ }
120
135
  }
121
- handleEnable(e, t = !0) {
122
- e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
136
+ handleEnable(e, r = !0) {
137
+ e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
123
138
  }
124
- handleVisible(e, t = !0) {
125
- e ? (this.everyHelperDo((r) => r.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : (this.everyHelperDo((r) => r.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
139
+ handleVisible(e, r = !0) {
140
+ e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
126
141
  }
127
142
  handleDispose() {
128
143
  this.everyHelperDo((e) => e.dispose());
129
144
  }
130
145
  everyHelperDo(e) {
131
- this.objectHelperMap.forEach((t) => {
132
- t && e(t);
146
+ this.objectHelperMap.forEach((r) => {
147
+ r && e(r);
133
148
  });
134
149
  }
135
- actionIfStateIsEnabled(e, t) {
150
+ actionIfStateIsEnabled(e, r) {
136
151
  if (this.state.enabled)
137
152
  return e();
138
- t != null && t.warnLog && _();
153
+ r != null && r.warnLog && G();
139
154
  }
140
155
  }
141
156
  export {
142
- K as Object3DHelperController,
143
- H as PLUGIN,
157
+ re as Object3DHelperController,
158
+ C as PLUGIN,
144
159
  g as VERSION
145
160
  };
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
2
2
  var U = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
4
  var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
- var E = (b, a, e) => a in b ? $(b, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : b[a] = e, H = (b, a) => {
5
+ var T = (v, a, e) => a in v ? $(v, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[a] = e, H = (v, a) => {
6
6
  for (var e in a || (a = {}))
7
- G.call(a, e) && E(b, e, a[e]);
7
+ G.call(a, e) && T(v, e, a[e]);
8
8
  if (C)
9
9
  for (var e of C(a))
10
- N.call(a, e) && E(b, e, a[e]);
11
- return b;
12
- }, W = (b, a) => B(b, U(a));
13
- var r = (b, a, e) => (E(b, typeof a != "symbol" ? a + "" : a, e), e);
10
+ N.call(a, e) && T(v, e, a[e]);
11
+ return v;
12
+ }, W = (v, a) => B(v, U(a));
13
+ var r = (v, a, e) => (T(v, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
15
15
  import { BasePanoPluginController as q } from "./BaseController.js";
16
16
  import X from "./DoorLabelItem.js";
@@ -30,23 +30,23 @@ class re extends q {
30
30
  r(this, "doorLabels");
31
31
  r(this, "roomObservers");
32
32
  r(this, "loadData", (e, n) => {
33
- n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((f) => {
34
- f.$destroy();
35
- }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, this.five.once("panoArrived", () => {
36
- console.log("doorplugin", "panoArrived"), this.initData();
33
+ n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((d) => {
34
+ d.$destroy();
35
+ }), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, typeof this.five.ready == "function" ? this.five.ready().then(() => this.initData()) : this.five.once("panoArrived", () => {
36
+ this.initData();
37
37
  });
38
38
  });
39
39
  r(this, "initRoomObservers", () => {
40
40
  var l, h;
41
- const e = this.floorplanServerData.computed_data.floor_datas || [], f = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
42
- const i = o.panoIndex, d = o.floorIndex, s = e == null ? void 0 : e.find((t) => t.floor_index === d);
43
- if (s) {
44
- const t = s.rooms.find((c) => c.observer_indexs.includes(i));
41
+ const e = this.floorplanServerData.computed_data.floor_datas || [], d = (((h = (l = this.five) == null ? void 0 : l.work) == null ? void 0 : h.observers) || []).map((o) => {
42
+ const s = o.panoIndex, f = o.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === f);
43
+ if (i) {
44
+ const t = i.rooms.find((c) => c.observer_indexs.includes(s));
45
45
  if (t)
46
- return { panoIndex: i, floorIndex: d, name: t.name };
46
+ return { panoIndex: s, floorIndex: f, name: t.name };
47
47
  }
48
48
  }).filter(Boolean);
49
- this.roomObservers = f;
49
+ this.roomObservers = d;
50
50
  });
51
51
  r(this, "hideAllLabels", () => {
52
52
  this.labelItems.forEach((e) => {
@@ -63,106 +63,105 @@ class re extends q {
63
63
  return this.visibleLabelMap.get(e);
64
64
  {
65
65
  const o = [];
66
- return this.doorLabels.forEach((i, d) => {
67
- if (i.roomName === n.name)
66
+ return this.doorLabels.forEach((s, f) => {
67
+ if (s.roomName === n.name)
68
68
  return;
69
- const s = i.position.clone(), t = s.distanceTo(l);
69
+ const i = s.position.clone(), t = i.distanceTo(l);
70
70
  if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
71
71
  return;
72
- const c = new Q(), v = s.clone().sub(l).normalize();
73
- c.set(l, v);
72
+ const c = new Q(), b = i.clone().sub(l).normalize();
73
+ c.set(l, b);
74
74
  const [p] = this.five.model.intersectRaycaster(c);
75
- p && p.distance + 0.1 < t || o.push(d);
75
+ p && p.distance + 0.1 < t || o.push(f);
76
76
  }), this.visibleLabelMap.set(e, o), o;
77
77
  }
78
78
  })();
79
- this.labelItems.forEach((o, i) => {
80
- o.visible = h.includes(i);
79
+ this.labelItems.forEach((o, s) => {
80
+ o.visible = h.includes(s);
81
81
  }), this.fixDoorPosition();
82
82
  });
83
83
  r(this, "fixDoorPosition", () => {
84
- var s, t, c, v, p, A, I, w, L, O, _, S;
84
+ var i, t, c, b, p, y, g, w, L, E, _, S;
85
85
  const { panoIndex: e, camera: n } = this.five;
86
86
  if (e === null)
87
87
  return;
88
88
  if (this.five.currentMode !== "Panorama")
89
89
  return this.hideAllLabels();
90
- const f = this.five.getElement(), l = f.clientWidth, h = f.clientHeight, o = n.getWorldDirection(new V()), i = [], d = [...this.labelItems];
91
- if (d.forEach((m, u) => {
90
+ const d = this.five.getElement(), l = d.clientWidth, h = d.clientHeight, o = n.getWorldDirection(new V()), s = [], f = [...this.labelItems];
91
+ if (f.forEach((m, u) => {
92
92
  if (m.visible) {
93
- const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)), T = M.clone().sub(n.position).normalize().angleTo(o), y = M.clone().project(n), P = (y.x + 1) / 2.2 * 100, g = (-y.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && g >= 0 && g <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
94
- m.left = P, m.top = g, m.inSight = D && T < Math.PI / 2, m.cameraToward = Y(this.five), D ? i.push({ disFromCameraToLabel: x, left: P, top: g, index: u }) : m.transform = "translate(-50%, -50%)";
93
+ const x = n.position.distanceTo(m.position), M = m.position.clone().add(new V(0, this.OffsetHeight, 0)), A = M.clone().sub(n.position).normalize().angleTo(o), O = M.clone().project(n), P = (O.x + 1) / 2.2 * 100, I = (-O.y + 1) / 2.2 * 100, D = P >= 0 && P <= 100 && I >= 0 && I <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
94
+ m.left = P, m.top = I, m.inSight = D && A < Math.PI / 2, m.cameraToward = Y(this.five), D ? s.push({ disFromCameraToLabel: x, left: P, top: I, index: u }) : m.transform = "translate(-50%, -50%)";
95
95
  } else
96
96
  m.inSight = !1;
97
- }), i.length > 1) {
97
+ }), s.length > 1) {
98
98
  let m = 0;
99
- i.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
100
- for (let u = 1; u < i.length; u++) {
101
- const { index: x, left: M, top: k } = i[u - 1], { index: T, left: y, top: P } = i[u], g = this.container.children[x], D = this.container.children[T];
102
- if (!g || !D)
99
+ s.sort((u, x) => x.disFromCameraToLabel - u.disFromCameraToLabel);
100
+ for (let u = 1; u < s.length; u++) {
101
+ const { index: x, left: M, top: k } = s[u - 1], { index: A, left: O, top: P } = s[u], I = this.container.children[x], D = this.container.children[A];
102
+ if (!I || !D)
103
103
  return;
104
104
  const R = {
105
105
  left: l * M / 100,
106
106
  top: h * k / 100,
107
- width: (c = (t = (s = g.children) == null ? void 0 : s[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
108
- height: (A = (p = (v = g.children) == null ? void 0 : v[0]) == null ? void 0 : p.clientHeight) != null ? A : 0
107
+ width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
108
+ height: (y = (p = (b = I.children) == null ? void 0 : b[0]) == null ? void 0 : p.clientHeight) != null ? y : 0
109
109
  }, F = {
110
- left: l * y / 100,
110
+ left: l * O / 100,
111
111
  top: h * P / 100,
112
- width: (L = (w = (I = D.children) == null ? void 0 : I[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
113
- height: (S = (_ = (O = D.children) == null ? void 0 : O[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
112
+ width: (L = (w = (g = D.children) == null ? void 0 : g[0]) == null ? void 0 : w.clientWidth) != null ? L : 0,
113
+ height: (S = (_ = (E = D.children) == null ? void 0 : E[0]) == null ? void 0 : _.clientHeight) != null ? S : 0
114
114
  };
115
- Z(R, F) && (m++, d[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, d[T].transform = `translate(-50%, ${m * 100 - 50}%)`);
115
+ Z(R, F) && (m++, f[x].transform = `translate(-50%, ${(m - 1) * 100 - 50}%)`, f[A].transform = `translate(-50%, ${m * 100 - 50}%)`);
116
116
  }
117
117
  }
118
- this.labelItems = d, this.render();
118
+ this.labelItems = f, this.render();
119
119
  });
120
120
  r(this, "onClick", (e, n) => {
121
121
  if (!this.roomObservers)
122
122
  return;
123
- const { work: f } = this.five;
123
+ const { work: d } = this.five;
124
124
  let l, h, o = 1 / 0;
125
- for (let i = 0; i < f.observers.length; i++) {
126
- if (this.roomObservers[i].name !== e)
127
- continue;
128
- const s = f.observers[i].standingPosition, t = n.distanceTo(s);
129
- t < o && (l = i, h = s.clone().sub(n).normalize(), o = t);
130
- }
125
+ for (const s of d.observers)
126
+ if (this.roomObservers.find((i) => i.panoIndex === s.panoIndex && i.name === e)) {
127
+ const i = s.standingPosition, t = n.distanceTo(i);
128
+ t < o && (l = s.panoIndex, h = i.clone().sub(n).normalize(), o = t);
129
+ }
131
130
  if (h !== null && l !== null) {
132
- const i = {};
131
+ const s = {};
133
132
  if (o > 0) {
134
- const s = new V(0, 0, -1), t = h.clone(), c = new j();
135
- c.setFromUnitVectors(s, t);
136
- const v = new z();
137
- v.setFromQuaternion(c, "YXZ"), i.longitude = v.y;
133
+ const i = new V(0, 0, -1), t = h.clone(), c = new j();
134
+ c.setFromUnitVectors(i, t);
135
+ const b = new z();
136
+ b.setFromQuaternion(c, "YXZ"), s.longitude = b.y;
138
137
  }
139
- this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: i.longitude });
138
+ this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
140
139
  }
141
140
  });
142
141
  r(this, "initData", () => {
143
142
  var l;
144
143
  this.doorLabels = [];
145
- const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, f = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
146
- this.rooms = f, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
147
- var d;
148
- const o = (d = this.floorplanServerData.computed_data.doors) == null ? void 0 : d.filter((s) => !!(s && s.name === h.name)), i = this.five.work.observers.filter((s, t) => !!h.observer_indexs.find((c) => c === t));
149
- o && o.forEach((s) => {
150
- const t = s.position;
151
- let c = 1 / 0, v;
152
- i.forEach((A) => {
153
- const I = A.standingPosition, w = {
154
- x: I.x,
155
- y: I.y,
156
- z: I.z
144
+ const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, d = n !== void 0 && ((l = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : l.rooms);
145
+ this.rooms = d, this.rooms && this.rooms.length > 0 && this.rooms.forEach((h) => {
146
+ var f;
147
+ const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
148
+ o && o.forEach((i) => {
149
+ const t = i.position;
150
+ let c = 1 / 0, b;
151
+ s.forEach((y) => {
152
+ const g = y.standingPosition, w = {
153
+ x: g.x,
154
+ y: g.y,
155
+ z: g.z
157
156
  }, L = J(t, w);
158
- L < c && (c = L, v = w);
159
- }), v && (t.y = v.y + 0.01);
157
+ L < c && (c = L, b = w);
158
+ }), b && (t.y = b.y + 0.01);
160
159
  const p = new V(t.x, t.y, t.z);
161
- p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, s.rad, 0))), this.doorLabels.push({
160
+ p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
162
161
  roomName: h.name,
163
- name: s.name,
162
+ name: i.name,
164
163
  position: p,
165
- toward: K(s.rad)
164
+ toward: K(i.rad)
166
165
  });
167
166
  });
168
167
  }), this.labelItems = this.doorLabels.map((h) => W(H({}, h), {
@@ -177,12 +176,12 @@ class re extends q {
177
176
  }
178
177
  stateChangedCallback(e, n) {
179
178
  if (this.hooks.hasListener("stateChange")) {
180
- const f = {
179
+ const d = {
181
180
  state: this.state,
182
181
  prevState: e,
183
182
  userAction: n ? n.userAction : ee.userAction
184
183
  };
185
- this.hooks.emit("stateChange", f);
184
+ this.hooks.emit("stateChange", d);
186
185
  }
187
186
  }
188
187
  render() {
@@ -1,4 +1,4 @@
1
- import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "svelte/internal";
1
+ import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "../vendor/svelte/internal/index.js";
2
2
  import y from "classnames";
3
3
  function W(e) {
4
4
  I(e, "svelte-wpy7pz", '.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}');