@realsee/dnalogel 2.2.6 → 2.3.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 (377) hide show
  1. package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -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 +25 -0
  10. package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -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 +46 -46
  17. package/dist/index.js +4987 -4817
  18. package/dist/index.umd.js +39 -39
  19. package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  20. package/docs/assets/highlight.css +7 -0
  21. package/docs/assets/main.js +1 -1
  22. package/docs/assets/search.js +1 -1
  23. package/docs/classes/CSS3DRender.html +533 -0
  24. package/docs/classes/CruisePluginController.html +24 -24
  25. package/docs/classes/Magnifier.html +16 -16
  26. package/docs/classes/ModelRoomLabelController.html +11 -11
  27. package/docs/classes/Object3DHelperController.html +24 -24
  28. package/docs/classes/PaintBrush.html +15 -15
  29. package/docs/classes/PanoTagPluginController.html +39 -39
  30. package/docs/classes/Util.BetterTween.html +8 -8
  31. package/docs/classes/Util.FivePointSelector.html +12 -12
  32. package/docs/classes/Util.Interval.html +12 -12
  33. package/docs/classes/Util.Magnifier.html +17 -17
  34. package/docs/classes/Util.PointDomHelper.html +11 -11
  35. package/docs/classes/Util.PointHelper.html +11 -11
  36. package/docs/classes/Util.Rectangle.html +13 -13
  37. package/docs/enums/CameraMovementEffect.html +7 -7
  38. package/docs/enums/ContentType.html +12 -12
  39. package/docs/enums/DIRECTION.html +9 -9
  40. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  41. package/docs/enums/DimensionType.html +7 -7
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  43. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  44. package/docs/enums/LinkType.html +7 -7
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/PointType.html +7 -7
  47. package/docs/enums/Rotation.html +8 -8
  48. package/docs/functions/CSS3DRenderPlugin.html +6 -5
  49. package/docs/functions/CameraMovementPlugin.html +6 -5
  50. package/docs/functions/CruisePlugin.html +6 -5
  51. package/docs/functions/GuideLinePlugin.html +7 -6
  52. package/docs/functions/ItemLabelPlugin.html +6 -5
  53. package/docs/functions/MapviewFloorplanPlugin.html +6 -5
  54. package/docs/functions/ModelChassisCompassPlugin.html +6 -5
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
  56. package/docs/functions/ModelFloorplanPlugin.html +6 -5
  57. package/docs/functions/ModelItemLabelPlugin.html +6 -5
  58. package/docs/functions/ModelRoomLabelPlugin.html +6 -5
  59. package/docs/functions/ModelTVVideoPlugin.html +6 -5
  60. package/docs/functions/ModelViewPlugin.html +6 -5
  61. package/docs/functions/Object3DHelperPlugin.html +6 -5
  62. package/docs/functions/PanoCompassPlugin.html +6 -5
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
  64. package/docs/functions/PanoDoorLabelPlugin.html +6 -5
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
  66. package/docs/functions/PanoMeasurePlugin.html +6 -5
  67. package/docs/functions/PanoRulerPlugin.html +6 -5
  68. package/docs/functions/PanoRulerProPlugin.html +6 -5
  69. package/docs/functions/PanoSpatialTagPlugin.html +6 -5
  70. package/docs/functions/PanoTagPlugin.html +6 -5
  71. package/docs/functions/TopviewFloorplanPlugin.html +6 -5
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +7 -6
  83. package/docs/index.html +6 -5
  84. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  85. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  86. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  87. package/docs/interfaces/ContentTypeMap.html +12 -12
  88. package/docs/interfaces/FloorplanBounding.html +8 -8
  89. package/docs/interfaces/FloorplanData.html +10 -10
  90. package/docs/interfaces/FloorplanEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  92. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  93. package/docs/interfaces/FloorplanFloorData.html +9 -9
  94. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  95. package/docs/interfaces/FloorplanObserver.html +9 -9
  96. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  97. package/docs/interfaces/FloorplanPosition.html +7 -7
  98. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  99. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  100. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  101. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  102. package/docs/interfaces/FloorplanServerData.html +7 -7
  103. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  104. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  105. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  106. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  107. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  108. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  109. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  110. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  111. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  112. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  113. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  116. package/docs/interfaces/LineJson.html +7 -7
  117. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  118. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  120. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  121. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  122. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  123. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  124. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  125. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  127. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  128. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  129. package/docs/interfaces/ModelViewPluginExportType.html +8 -8
  130. package/docs/interfaces/Object3DHelperState.html +8 -8
  131. package/docs/interfaces/OpenParameter.html +7 -7
  132. package/docs/interfaces/PaintBrushAction.html +12 -12
  133. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  134. package/docs/interfaces/PaintBrushState.html +10 -10
  135. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  136. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
  137. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  138. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  141. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  142. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  144. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  145. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
  146. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
  147. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  153. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  154. package/docs/interfaces/Point.html +8 -8
  155. package/docs/interfaces/PointJson.html +8 -8
  156. package/docs/interfaces/Room.html +9 -9
  157. package/docs/interfaces/RoomInfo.html +7 -7
  158. package/docs/interfaces/RoomLabel.html +14 -14
  159. package/docs/interfaces/RoomRules.html +7 -6
  160. package/docs/interfaces/Rooms.html +7 -6
  161. package/docs/interfaces/Scissor.html +9 -9
  162. package/docs/interfaces/TagConfig.html +10 -10
  163. package/docs/interfaces/Tags.html +9 -9
  164. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  165. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  166. package/docs/modules/Util.html +5 -5
  167. package/docs/modules.html +7 -5
  168. package/docs/types/ArrayPosition.html +7 -6
  169. package/docs/types/CSS3DRenderExportType.html +8 -7
  170. package/docs/types/CSS3DRenderPluginExportType.html +7 -6
  171. package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
  172. package/docs/types/Color.html +7 -6
  173. package/docs/types/ContentTypeConfigKey.html +7 -6
  174. package/docs/types/ContentTypeConfigKeyArray.html +7 -6
  175. package/docs/types/Create3DDomContainerReturnType.html +7 -6
  176. package/docs/types/Create3DElementReturnType.html +8 -7
  177. package/docs/types/CruisePluginExportType.html +7 -6
  178. package/docs/types/Direction-1.html +7 -6
  179. package/docs/types/Direction4.html +7 -6
  180. package/docs/types/FloorplanRuleLabels.html +7 -6
  181. package/docs/types/FloorplanServerRuleLabels.html +7 -6
  182. package/docs/types/GuideLinePluginExportType.html +7 -6
  183. package/docs/types/HelperEventMap.html +7 -6
  184. package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
  185. package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
  186. package/docs/types/MediaData.html +7 -6
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
  188. package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
  189. package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
  190. package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
  192. package/docs/types/MoveArgs.html +7 -6
  193. package/docs/types/MoveOpts.html +7 -6
  194. package/docs/types/Object3DHelperEventMap.html +7 -6
  195. package/docs/types/ObjectFit.html +7 -6
  196. package/docs/types/PaintBrushEventMap.html +7 -6
  197. package/docs/types/PanoCompassPluginData.html +7 -6
  198. package/docs/types/PanoCompassPluginExportType.html +7 -6
  199. package/docs/types/PanoCompassPluginParameterType.html +7 -6
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
  202. package/docs/types/PanoMeasurePluginEvent.html +7 -6
  203. package/docs/types/PanoMeasureReturnType.html +7 -6
  204. package/docs/types/PanoSpatialTagPluginId.html +7 -6
  205. package/docs/types/PanoTagPluginExportInterface.html +7 -6
  206. package/docs/types/PanoTagPluginParamsInterface.html +7 -6
  207. package/docs/types/PlaneTag.html +7 -6
  208. package/docs/types/PointTag.html +7 -6
  209. package/docs/types/Position.html +7 -6
  210. package/docs/types/RotateArgs.html +7 -6
  211. package/docs/types/RotateOpts.html +7 -6
  212. package/docs/types/RuleLabelsKey.html +7 -6
  213. package/docs/types/RuleLabelsValue.html +7 -6
  214. package/docs/types/Tag.html +7 -6
  215. package/docs/types/Tag2D.html +7 -6
  216. package/docs/types/Tag3D.html +7 -6
  217. package/docs/types/TagId.html +7 -6
  218. package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
  219. package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
  220. package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
  221. package/docs/variables/PLUGIN.html +7 -6
  222. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
  223. package/docs/variables/ROOM_TYPE_MAP.html +7 -6
  224. package/docs/variables/VERSION.html +7 -6
  225. package/docs/variables/itemLabelPluginServerParams.html +7 -6
  226. package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
  227. package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
  228. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
  229. package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
  230. package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
  231. package/libs/CSS3DRenderPlugin/Controller.js +63 -58
  232. package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
  233. package/libs/CSS3DRenderPlugin/index.js +21 -3
  234. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
  235. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
  236. package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
  237. package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
  238. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
  239. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
  240. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
  241. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
  242. package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
  243. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
  244. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
  245. package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
  246. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
  247. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
  248. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
  249. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
  250. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
  251. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
  252. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
  253. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
  254. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
  255. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
  256. package/libs/CameraMovementPlugin/index.js +13 -0
  257. package/libs/CruisePlugin/Controller.js +65 -54
  258. package/libs/CruisePlugin/index.js +26 -3
  259. package/libs/CruisePlugin/typing.js +1 -0
  260. package/libs/GuideLinePlugin/Controller.js +14 -9
  261. package/libs/GuideLinePlugin/index.js +14 -3
  262. package/libs/GuideLinePlugin/typing.js +1 -0
  263. package/libs/ItemLabelPlugin/Plugin.js +33 -23
  264. package/libs/ItemLabelPlugin/events.type.js +1 -0
  265. package/libs/ItemLabelPlugin/index.js +16 -2
  266. package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
  267. package/libs/ModelChassisCompassPlugin/index.js +8 -0
  268. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
  269. package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
  270. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
  271. package/libs/ModelItemLabelPlugin/index.js +12 -2
  272. package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
  273. package/libs/ModelRoomLabelPlugin/index.js +10 -3
  274. package/libs/ModelRoomLabelPlugin/typings.js +1 -0
  275. package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
  276. package/libs/ModelTVVideoPlugin/index.js +25 -0
  277. package/libs/ModelViewPlugin/Plugin.js +2 -1
  278. package/libs/ModelViewPlugin/index.js +6 -0
  279. package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
  280. package/libs/Object3DHelperPlugin/Controller.js +114 -73
  281. package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
  282. package/libs/Object3DHelperPlugin/index.js +48 -3
  283. package/libs/Object3DHelperPlugin/typings.js +1 -0
  284. package/libs/PanoCompassPlugin/Controller.js +60 -40
  285. package/libs/PanoCompassPlugin/index.js +31 -3
  286. package/libs/PanoCompassPlugin/typings.js +1 -0
  287. package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
  288. package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
  289. package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
  290. package/libs/PanoDoorLabelPlugin/index.js +12 -2
  291. package/libs/PanoDoorLabelPlugin/typings.js +1 -0
  292. package/libs/PanoMeasurePlugin/index.js +56 -5
  293. package/libs/PanoRulerPlugin/Plugin.js +22 -17
  294. package/libs/PanoRulerPlugin/index.js +9 -0
  295. package/libs/PanoRulerPlugin/style.js +1 -1
  296. package/libs/PanoRulerPlugin/typings.js +1 -0
  297. package/libs/PanoRulerProPlugin/Controller.js +38 -27
  298. package/libs/PanoRulerProPlugin/index.js +16 -3
  299. package/libs/PanoRulerProPlugin/typings.js +1 -0
  300. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  301. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  302. package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
  303. package/libs/PanoSpatialTagPlugin/index.js +28 -0
  304. package/libs/PanoSpatialTagPlugin/store.js +1 -0
  305. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  306. package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
  307. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
  308. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
  309. package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
  310. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  311. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
  312. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
  313. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
  314. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
  315. package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
  316. package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
  317. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
  318. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  319. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
  320. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
  321. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
  322. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
  323. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
  324. package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
  325. package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
  326. package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
  327. package/libs/PanoTagPlugin/controller/index.js +2 -2
  328. package/libs/PanoTagPlugin/index.js +90 -3
  329. package/libs/PanoTagPlugin/tag.config.js +2 -1
  330. package/libs/floorplan/Components/BaseImage.js +7 -7
  331. package/libs/floorplan/Components/Camera.js +10 -10
  332. package/libs/floorplan/Components/Compass.js +1 -1
  333. package/libs/floorplan/Components/CurrentFloor.js +47 -56
  334. package/libs/floorplan/Components/Main.js +80 -99
  335. package/libs/floorplan/Components/Normalmage.js +5 -5
  336. package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
  337. package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
  338. package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
  339. package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
  340. package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
  341. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
  342. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
  343. package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
  344. package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
  345. package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
  346. package/libs/floorplan/Components/SvgImage.js +12 -12
  347. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
  348. package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
  349. package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
  350. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
  351. package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
  352. package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
  353. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  354. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
  355. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  356. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  357. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
  358. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
  359. package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
  360. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
  361. package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
  362. package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
  363. package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
  364. package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
  365. package/libs/floorplan/typings/index.js +1 -0
  366. package/libs/index.js +123 -114
  367. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  368. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
  369. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
  370. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
  371. package/libs/shared-utils/three/index.js +2 -1
  372. package/package.json +31 -30
  373. package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  374. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
  375. package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
  376. package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
  377. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
@@ -10,21 +10,21 @@ var u = (h, n, e) => n in h ? D(h, n, { enumerable: !0, configurable: !0, writab
10
10
  return h;
11
11
  };
12
12
  var i = (h, n, e) => (u(h, typeof n != "symbol" ? n + "" : n, e), e);
13
- var d = (h, n, e) => new Promise((t, s) => {
14
- var o = (c) => {
13
+ var d = (h, n, e) => new Promise((t, o) => {
14
+ var s = (m) => {
15
15
  try {
16
- m(e.next(c));
17
- } catch (p) {
18
- s(p);
16
+ p(e.next(m));
17
+ } catch (c) {
18
+ o(c);
19
19
  }
20
- }, r = (c) => {
20
+ }, r = (m) => {
21
21
  try {
22
- m(e.throw(c));
23
- } catch (p) {
24
- s(p);
22
+ p(e.throw(m));
23
+ } catch (c) {
24
+ o(c);
25
25
  }
26
- }, m = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(o, r);
27
- m((e = e.apply(h, n)).next());
26
+ }, p = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(s, r);
27
+ p((e = e.apply(h, n)).next());
28
28
  });
29
29
  import * as a from "three";
30
30
  import { Five as C } from "@realsee/five";
@@ -33,8 +33,28 @@ import { getRoomInfoInstance as _ } from "./getRoomInfoInstance.js";
33
33
  import { loadTexture as M } from "../shared-utils/three/loadTexture.js";
34
34
  import { CSS3DRenderPlugin as F } from "../CSS3DRenderPlugin/index.js";
35
35
  import { tweenProgress as W } from "../shared-utils/animationFrame/BetterTween.js";
36
+ import "../base/BasePlugin.js";
37
+ import "../shared-utils/Subscribe.js";
38
+ import "./Assets/roomInfoIcon.js";
39
+ import "../CSS3DRenderPlugin/Controller.js";
40
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
41
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
42
+ import "three/examples/jsm/renderers/CSS3DRenderer";
43
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
44
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
45
+ import "../CSS3DRenderPlugin/utils/even.js";
46
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
47
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
48
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
49
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
50
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
51
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
52
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
53
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
54
+ import "@tweenjs/tween.js";
55
+ import "../shared-utils/animationFrame/index.js";
36
56
  const v = { userAction: !0 };
37
- class x extends A {
57
+ class se extends A {
38
58
  constructor(e, t) {
39
59
  super(e);
40
60
  i(this, "state", {
@@ -53,8 +73,8 @@ class x extends A {
53
73
  i(this, "compassMesh");
54
74
  i(this, "entryDoorMesh");
55
75
  i(this, "dispose", () => {
56
- var e, t, s, o;
57
- this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (o = (s = this.entryDoorMesh) == null ? void 0 : s.material.map) == null || o.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
76
+ var e, t, o, s;
77
+ this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (s = (o = this.entryDoorMesh) == null ? void 0 : o.material.map) == null || s.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
58
78
  });
59
79
  i(this, "_addEventListener", () => {
60
80
  this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
@@ -80,13 +100,13 @@ class x extends A {
80
100
  this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
81
101
  });
82
102
  i(this, "onFivePanoWillArrive", (e) => {
83
- var t, s;
84
- e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (s = this.compassMesh) == null || s.material.setValues({ opacity: 0 }));
103
+ var t, o;
104
+ e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (o = this.compassMesh) == null || o.material.setValues({ opacity: 0 }));
85
105
  });
86
106
  i(this, "onFivePanoArrived", (e) => {
87
- var s, o, r, m, c, p, I;
88
- const t = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
89
- if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((m = this.compassMeshTween) == null || m.dispose(), this.compassMeshTween = W(1e3).onUpdate(({ progress: y }) => {
107
+ var o, s, r, p, m, c, I;
108
+ const t = (r = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : r.standingPosition;
109
+ if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((p = this.compassMeshTween) == null || p.dispose(), this.compassMeshTween = W(1e3).onUpdate(({ progress: y }) => {
90
110
  var f;
91
111
  (f = this.compassMesh) == null || f.material.setValues({ opacity: y }), this.five.needsRender = !0;
92
112
  }).play())), this.entryDoorMesh) {
@@ -95,7 +115,7 @@ class x extends A {
95
115
  this.data.entrance.position.y,
96
116
  this.data.entrance.position.z
97
117
  ).clone().setY(t.y).sub(t).normalize(), b = t.clone().add(f.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
98
- this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (p = this.entryDoorMesh) == null || p.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
118
+ this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(f), this.entryDoorMesh.position.copy(b), ((m = this.data) == null ? void 0 : m.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
99
119
  }
100
120
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
101
121
  t.clone().setY(t.y + 0.01)
@@ -105,10 +125,10 @@ class x extends A {
105
125
  longitude: e,
106
126
  latitude: t
107
127
  }) => {
108
- var s, o;
109
- !this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (s = this.roomInfoInstance) == null || s.show() : (o = this.roomInfoInstance) == null || o.hide());
128
+ var o, s;
129
+ !this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (o = this.roomInfoInstance) == null || o.show() : (s = this.roomInfoInstance) == null || s.hide());
110
130
  });
111
- i(this, "onFiveModeChange", (e, t, s, o, r) => {
131
+ i(this, "onFiveModeChange", (e, t, o, s, r) => {
112
132
  e !== t && this.setState(
113
133
  {
114
134
  visible: e === C.Mode.Panorama
@@ -157,22 +177,22 @@ class x extends A {
157
177
  ), Promise.resolve();
158
178
  }
159
179
  setState(e, t = { userAction: !0 }) {
160
- var o, r;
161
- const s = JSON.parse(JSON.stringify(this.state));
180
+ var s, r;
181
+ const o = JSON.parse(JSON.stringify(this.state));
162
182
  this.state = {
163
- visible: (o = e.visible) != null ? o : s.visible,
164
- enabled: (r = e.enabled) != null ? r : s.enabled,
165
- config: l(l({}, s.config), e.config || {})
183
+ visible: (s = e.visible) != null ? s : o.visible,
184
+ enabled: (r = e.enabled) != null ? r : o.enabled,
185
+ config: l(l({}, o.config), e.config || {})
166
186
  }, this.hooks.emit("stateChange", {
167
187
  state: this.state,
168
- prevState: s,
188
+ prevState: o,
169
189
  userAction: t.userAction
170
190
  }), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", t)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", t)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", t)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", t)), e.config && this.init();
171
191
  }
172
- load(e, t, s = !0) {
192
+ load(e, t, o = !0) {
173
193
  return d(this, null, function* () {
174
- const o = yield this.formatData(e);
175
- JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = l({}, o), this.init(), t && this.setState(t, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
194
+ const s = yield this.formatData(e);
195
+ JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = l({}, s), this.init(), t && this.setState(t, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
176
196
  });
177
197
  }
178
198
  formatData(e) {
@@ -180,32 +200,32 @@ class x extends A {
180
200
  }
181
201
  init() {
182
202
  return d(this, null, function* () {
183
- var s, o, r, m;
184
- const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
203
+ var o, s, r, p;
204
+ const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
185
205
  this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
186
- const t = (m = (r = this.data) == null ? void 0 : r.entrance) != null ? m : null;
206
+ const t = (p = (r = this.data) == null ? void 0 : r.entrance) != null ? p : null;
187
207
  this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = yield this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = _(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
188
208
  });
189
209
  }
190
210
  loadCompassMesh() {
191
211
  return d(this, null, function* () {
192
- const e = this.state.config.compassImageUrl, t = yield M(e), s = new a.CircleGeometry(0.7, 32), o = new a.MeshBasicMaterial({
212
+ const e = this.state.config.compassImageUrl, t = yield M(e), o = new a.CircleGeometry(0.7, 32), s = new a.MeshBasicMaterial({
193
213
  map: t,
194
214
  transparent: !0,
195
215
  opacity: 0,
196
216
  depthTest: !1
197
- }), r = new a.Mesh(s, o);
217
+ }), r = new a.Mesh(o, s);
198
218
  return r.name = "pano-compass-mesh", r;
199
219
  });
200
220
  }
201
221
  loadEntryDoorMesh() {
202
222
  return d(this, null, function* () {
203
- const e = this.state.config.entryDoorImageUrl, t = yield M(e), s = new a.PlaneGeometry(0.2, 0.16), o = new a.MeshBasicMaterial({
223
+ const e = this.state.config.entryDoorImageUrl, t = yield M(e), o = new a.PlaneGeometry(0.2, 0.16), s = new a.MeshBasicMaterial({
204
224
  map: t,
205
225
  transparent: !0,
206
226
  opacity: 0.8,
207
227
  depthTest: !1
208
- }), r = new a.Mesh(s, o);
228
+ }), r = new a.Mesh(o, s);
209
229
  return r.name = "pano-compass-entry-door", r;
210
230
  });
211
231
  }
@@ -220,5 +240,5 @@ class x extends A {
220
240
  }
221
241
  }
222
242
  export {
223
- x as PanoCompassController
243
+ se as PanoCompassController
224
244
  };
@@ -1,5 +1,33 @@
1
- import { PanoCompassController as r } from "./Controller.js";
2
- const a = (o, n) => new r(o, n);
1
+ import { PanoCompassController as t } from "./Controller.js";
2
+ import "three";
3
+ import "@realsee/five";
4
+ import "../base/BasePluginWithData.js";
5
+ import "../base/BasePlugin.js";
6
+ import "../shared-utils/Subscribe.js";
7
+ import "./getRoomInfoInstance.js";
8
+ import "./Assets/roomInfoIcon.js";
9
+ import "../shared-utils/three/loadTexture.js";
10
+ import "../CSS3DRenderPlugin/index.js";
11
+ import "../CSS3DRenderPlugin/Controller.js";
12
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
13
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
14
+ import "three/examples/jsm/renderers/CSS3DRenderer";
15
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
16
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
17
+ import "../CSS3DRenderPlugin/utils/even.js";
18
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
19
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
20
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
21
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
22
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
23
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
24
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
25
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
26
+ import "../shared-utils/animationFrame/BetterTween.js";
27
+ import "@tweenjs/tween.js";
28
+ import "../shared-utils/animationFrame/index.js";
29
+ const E = (o, r) => new t(o, r);
3
30
  export {
4
- a as PanoCompassPlugin
31
+ E as PanoCompassPlugin,
32
+ E as default
5
33
  };
@@ -0,0 +1 @@
1
+
@@ -1,6 +1,7 @@
1
1
  import { Group as g, Vector3 as r, Raycaster as C } from "three";
2
2
  import { createLine as m } from "../shared-utils/createLine/index.js";
3
- const R = (e) => {
3
+ import "@realsee/five/line";
4
+ const O = (e) => {
4
5
  const a = {
5
6
  intersection: null,
6
7
  disposers: []
@@ -54,5 +55,6 @@ const R = (e) => {
54
55
  return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
55
56
  };
56
57
  export {
57
- R as PanoCursorRaycasterPlugin
58
+ O as PanoCursorRaycasterPlugin,
59
+ O as default
58
60
  };
@@ -2,58 +2,59 @@ var d = Object.defineProperty, u = Object.defineProperties;
2
2
  var b = Object.getOwnPropertyDescriptors;
3
3
  var o = Object.getOwnPropertySymbols;
4
4
  var p = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var n = (s, t, e) => t in s ? d(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, i = (s, t) => {
6
- for (var e in t || (t = {}))
7
- p.call(t, e) && n(s, e, t[e]);
5
+ var n = (s, e, t) => e in s ? d(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, i = (s, e) => {
6
+ for (var t in e || (e = {}))
7
+ p.call(e, t) && n(s, t, e[t]);
8
8
  if (o)
9
- for (var e of o(t))
10
- v.call(t, e) && n(s, e, t[e]);
9
+ for (var t of o(e))
10
+ v.call(e, t) && n(s, t, e[t]);
11
11
  return s;
12
- }, a = (s, t) => u(s, b(t));
13
- var r = (s, t, e) => (n(s, typeof t != "symbol" ? t + "" : t, e), e);
12
+ }, a = (s, e) => u(s, b(e));
13
+ var r = (s, e, t) => (n(s, typeof e != "symbol" ? e + "" : e, t), t);
14
14
  import { Five as c } from "@realsee/five";
15
15
  import { Controller as f } from "../base/BasePlugin.js";
16
- class C extends f {
17
- constructor(e) {
18
- super(e);
16
+ import "../shared-utils/Subscribe.js";
17
+ class g extends f {
18
+ constructor(t) {
19
+ super(t);
19
20
  r(this, "state");
20
21
  r(this, "container");
21
22
  r(this, "enabled");
22
- this.five = e, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
23
+ this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
23
24
  }
24
- enable(e) {
25
- this.enabled = !0, this.updateState(a(i({}, e), { userAction: !0 }));
25
+ enable(t) {
26
+ this.enabled = !0, this.updateState(a(i({}, t), { userAction: !0 }));
26
27
  }
27
- disable(e) {
28
- this.enabled = !1, this.updateState(a(i({}, e), { userAction: !0 }));
28
+ disable(t) {
29
+ this.enabled = !1, this.updateState(a(i({}, t), { userAction: !0 }));
29
30
  }
30
- show(e) {
31
+ show(t) {
31
32
  if (!!this.state.enabled)
32
- return this.setState(a(i({}, this.state), { visible: !0 }), e), Promise.resolve();
33
+ return this.setState(a(i({}, this.state), { visible: !0 }), t), Promise.resolve();
33
34
  }
34
- hide(e) {
35
+ hide(t) {
35
36
  if (!!this.state.enabled)
36
- return this.setState(a(i({}, this.state), { visible: !1 }), e), Promise.resolve();
37
+ return this.setState(a(i({}, this.state), { visible: !1 }), t), Promise.resolve();
37
38
  }
38
39
  dispose() {
39
40
  this.container.remove();
40
41
  }
41
- setState(e, h) {
42
+ setState(t, h) {
42
43
  if (!this.enabled)
43
44
  return;
44
45
  const l = i({}, this.state);
45
- this.state = i(i(i({}, this.state), e), h), this.stateChangedCallback(l, h);
46
+ this.state = i(i(i({}, this.state), t), h), this.stateChangedCallback(l, h);
46
47
  }
47
48
  get visible() {
48
49
  return this.five.state.mode === c.Mode.Panorama;
49
50
  }
50
- appendTo(e) {
51
- !this.enabled || (this.container = e, this.render());
51
+ appendTo(t) {
52
+ !this.enabled || (this.container = t, this.render());
52
53
  }
53
- updateState(e) {
54
- this.setState(a(i({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
54
+ updateState(t) {
55
+ this.setState(a(i({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
55
56
  }
56
57
  }
57
58
  export {
58
- C as BasePanoPluginController
59
+ g as BasePanoPluginController
59
60
  };
@@ -15,8 +15,13 @@ 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";
17
17
  import { getCameraToward as Y, isTwoRectOverlaped as Z, getDistance as J, getToward as K } from "./utils.js";
18
+ import "@realsee/five";
19
+ import "../base/BasePlugin.js";
20
+ import "../shared-utils/Subscribe.js";
21
+ import "../vendor/svelte/internal/index.js";
22
+ import "classnames";
18
23
  const ee = { userAction: !0 };
19
- class re extends q {
24
+ class fe extends q {
20
25
  constructor(e) {
21
26
  super(e);
22
27
  r(this, "MinVisibledistance", 1.8);
@@ -215,5 +220,5 @@ class re extends q {
215
220
  }
216
221
  }
217
222
  export {
218
- re as PanoDoorLabelPluginController
223
+ fe as PanoDoorLabelPluginController
219
224
  };
@@ -1,5 +1,15 @@
1
1
  import { PanoDoorLabelPluginController as r } from "./Controller.js";
2
- const e = (o) => new r(o);
2
+ import "three";
3
+ import "./BaseController.js";
4
+ import "@realsee/five";
5
+ import "../base/BasePlugin.js";
6
+ import "../shared-utils/Subscribe.js";
7
+ import "./DoorLabelItem.js";
8
+ import "../vendor/svelte/internal/index.js";
9
+ import "classnames";
10
+ import "./utils.js";
11
+ const b = (o) => new r(o);
3
12
  export {
4
- e as PanoDoorLabelPlugin
13
+ b as PanoDoorLabelPlugin,
14
+ b as default
5
15
  };
@@ -1,10 +1,61 @@
1
- import { MeasureController as e } from "./Controller/index.js";
2
- import "hammerjs";
1
+ import { MeasureController as t } from "./Controller/index.js";
2
+ import { Magnifier as pr } from "./Modules/Magnifier.js";
3
+ import "./Modules/FiveHelper.js";
3
4
  import "three";
5
+ import "./Controller/EditController.js";
6
+ import "hammerjs";
7
+ import "./Model/index.js";
8
+ import "./Model/line.js";
9
+ import "../shared-utils/uuid.js";
10
+ import "./Model/polyline.js";
11
+ import "./utils/line.js";
12
+ import "@realsee/five/line";
13
+ import "./utils/constants.js";
4
14
  import "@realsee/five";
5
- const m = function(r, o) {
6
- return new e(r, o);
15
+ import "./utils/distanceDom.js";
16
+ import "./utils/isNDCPointInScreen.js";
17
+ import "./Model/point.js";
18
+ import "../shared-utils/removeArrayItem.js";
19
+ import "../shared-utils/throttle.js";
20
+ import "./Controller/BaseController.js";
21
+ import "./utils/ironbox.js";
22
+ import "./utils/getIntersectionFromEvent.js";
23
+ import "./utils/getPointFromHammerEvent.js";
24
+ import "./Controller/ViewController.js";
25
+ import "./utils/math.js";
26
+ import "./utils/findAssociatedLines.js";
27
+ import "./Controller/WatchController.js";
28
+ import "./Modules/DeleteDom/index.js";
29
+ import "./Modules/DeleteDom/_Assets/delete.svg.js";
30
+ import "./Modules/DeleteDom/_Assets/delete_bg.png.js";
31
+ import "./Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
32
+ import "./utils/findClosestPoint.js";
33
+ import "./utils/ndc2Screen.js";
34
+ import "./Controller/MixedController.js";
35
+ import "../shared-utils/filter.js";
36
+ import "../shared-utils/tap.js";
37
+ import "./utils/mouseGroup.js";
38
+ import "./Modules/UIController/index.js";
39
+ import "./Modules/UIController/HTML.js";
40
+ import "./Modules/UIController/mobileHTML.js";
41
+ import "./Modules/UIController/style.js";
42
+ import "./Modules/UIController/MainBtnController.js";
43
+ import "./Modules/UIController/mobileMainBtnController.js";
44
+ import "./Modules/UIController/Revoke/index.js";
45
+ import "./Modules/GuideController.js";
46
+ import "./Controller/ShortcutKeyController.js";
47
+ import "./Modules/rangePiece/index.js";
48
+ import "@tweenjs/tween.js";
49
+ import "./Modules/rangePiece/html.js";
50
+ import "../shared-utils/animationFrame/index.js";
51
+ import "../shared-utils/animationFrame/BetterTween.js";
52
+ import "../shared-utils/noop.js";
53
+ import "./utils/calculateThreeMouse.js";
54
+ const tr = function(r, o) {
55
+ return new t(r, o);
7
56
  };
8
57
  export {
9
- m as PanoMeasurePlugin
58
+ pr as Magnifier,
59
+ tr as PanoMeasurePlugin,
60
+ tr as default
10
61
  };
@@ -26,18 +26,18 @@ var X = (t, n, e) => new Promise((F, h) => {
26
26
  u((e = e.apply(t, n)).next());
27
27
  });
28
28
  import { Five as re } from "@realsee/five";
29
- import { Vector3 as S, Raycaster as ie } from "three";
29
+ import { Vector3 as D, Raycaster as ie } from "three";
30
30
  import { intersectionOfLine as le } from "../shared-utils/math/planimetry.js";
31
31
  import { nextFrame as ae } from "../shared-utils/nextFrame.js";
32
- import { PanoRulerStyle as ce } from "./style.js";
32
+ import ce from "./style.js";
33
33
  const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)), de = (t, n) => {
34
34
  const e = {}, F = new ie(), h = n.work;
35
35
  if (!h)
36
36
  return e;
37
37
  const I = t.observers;
38
38
  h.observers.forEach((l, u) => {
39
- const { standingPosition: x } = l, v = new S(x.x, x.y, x.z);
40
- F.set(v, new S(0, 1, 0));
39
+ const { standingPosition: x } = l, v = new D(x.x, x.y, x.z);
40
+ F.set(v, new D(0, 1, 0));
41
41
  const [$] = n.model.intersectRaycaster(F), z = $ ? $.point.y : 2.7, L = I[u];
42
42
  if (!L)
43
43
  return e;
@@ -102,9 +102,9 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
102
102
  }, R = ue({ x: d, z: f }, A);
103
103
  P ? R < g && Math.abs(A.y - P) < 0.3 && (g = R, w = A) : R < g && (g = R, w = A);
104
104
  });
105
- const _ = new S(d, w.y, f);
105
+ const _ = new D(d, w.y, f);
106
106
  Object.assign(_, { observers: b });
107
- const T = c[s] ? c[s].roof : null, q = T ? new S(d, T, f) : null;
107
+ const T = c[s] ? c[s].roof : null, q = T ? new D(d, T, f) : null;
108
108
  return q && Object.assign(q, { observers: b }), { origin: _, vertical: q };
109
109
  });
110
110
  l[i] = {
@@ -175,7 +175,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
175
175
  P.style.display = "none";
176
176
  return;
177
177
  }
178
- const y = c.position, p = c.getWorldDirection(new S()), m = r.clientWidth, d = r.clientHeight;
178
+ const y = c.position, p = c.getWorldDirection(new D()), m = r.clientWidth, d = r.clientHeight;
179
179
  if (o !== re.Mode.Panorama) {
180
180
  for (const s in l)
181
181
  for (const { $element: P } of l[s].rules)
@@ -218,27 +218,27 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
218
218
  continue;
219
219
  }
220
220
  const K = w.distanceTo(_);
221
- if (_.clone().sub(_.clone().sub(w).divide(new S(2, 2, 2))).distanceTo(y) / K > 8) {
221
+ if (_.clone().sub(_.clone().sub(w).divide(new D(2, 2, 2))).distanceTo(y) / K > 8) {
222
222
  g.style.display = "none";
223
223
  continue;
224
224
  }
225
- const A = w.clone().project(c), R = (A.x + 1) / 2 * m, C = (-A.y + 1) / 2 * d, V = _.clone().project(c), Y = (V.x + 1) / 2 * m, N = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(Y - R, 2) + Math.pow(N - C, 2));
226
- let H = E, D = 50;
227
- const M = v({ x: ~~R, y: ~~C }, {
225
+ const A = w.clone().project(c), R = (A.x + 1) / 2 * m, S = (-A.y + 1) / 2 * d, V = _.clone().project(c), Y = (V.x + 1) / 2 * m, N = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(Y - R, 2) + Math.pow(N - S, 2));
226
+ let H = E, C = 50;
227
+ const M = v({ x: ~~R, y: ~~S }, {
228
228
  x: ~~Y,
229
229
  y: ~~N
230
230
  }, m, d);
231
- if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - C, 2)), D = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - Y, 2) + Math.pow(M[0].y - N, 2)), D = 100 - H / E * 50)), M && M.length === 2) {
231
+ if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - S, 2)), C = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - Y, 2) + Math.pow(M[0].y - N, 2)), C = 100 - H / E * 50)), M && M.length === 2) {
232
232
  const G = {
233
233
  x: (M[0].x + M[1].x) / 2,
234
234
  y: (M[0].y + M[1].y) / 2
235
235
  };
236
- D = Math.sqrt(
237
- Math.pow(G.x - R, 2) + Math.pow(G.y - C, 2)
236
+ C = Math.sqrt(
237
+ Math.pow(G.x - R, 2) + Math.pow(G.y - S, 2)
238
238
  ) / E * 100;
239
239
  }
240
- const te = (Math.PI / 2 - Math.atan2(Y - R, C - N)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), B = W.children[0].clientWidth;
241
- B >= E || B / 2 >= D / 100 * E || B / 2 >= (1 - D / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = C + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${D}%`);
240
+ const te = (Math.PI / 2 - Math.atan2(Y - R, S - N)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), B = W.children[0].clientWidth;
241
+ B >= E || B / 2 >= C / 100 * E || B / 2 >= (1 - C / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = S + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${C}%`);
242
242
  }
243
243
  }, z = () => ae($), L = () => {
244
244
  var r, a;
@@ -262,7 +262,12 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
262
262
  state: e,
263
263
  changeConfigs: Z
264
264
  };
265
+ }, we = {
266
+ name: "PanoRulerPlugin",
267
+ version: 0
265
268
  };
266
269
  export {
267
- Pe as PanoRulerPlugin
270
+ Pe as PanoRulerPlugin,
271
+ Pe as default,
272
+ we as panoRulerPluginServerParams
268
273
  };
@@ -1,2 +1,11 @@
1
+ import "./Plugin.js";
2
+ import { PanoRulerPlugin as P, PanoRulerPlugin as a } from "./Plugin.js";
1
3
  import "@realsee/five";
2
4
  import "three";
5
+ import "../shared-utils/math/planimetry.js";
6
+ import "../shared-utils/nextFrame.js";
7
+ import "./style.js";
8
+ export {
9
+ P as PanoRulerPlugin,
10
+ a as default
11
+ };
@@ -86,5 +86,5 @@ const e = `<style type="text/css">
86
86
  </style>
87
87
  `;
88
88
  export {
89
- e as PanoRulerStyle
89
+ e as default
90
90
  };
@@ -0,0 +1 @@
1
+