@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
@@ -1,33 +1,44 @@
1
- var v = Object.defineProperty;
2
- var p = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
- var c = (s, e, t) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, f = (s, e) => {
1
+ var m = Object.defineProperty;
2
+ var f = Object.getOwnPropertySymbols;
3
+ var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
4
+ var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, c = (i, e) => {
5
5
  for (var t in e || (e = {}))
6
- m.call(e, t) && c(s, t, e[t]);
7
- if (p)
8
- for (var t of p(e))
9
- b.call(e, t) && c(s, t, e[t]);
10
- return s;
6
+ v.call(e, t) && p(i, t, e[t]);
7
+ if (f)
8
+ for (var t of f(e))
9
+ b.call(e, t) && p(i, t, e[t]);
10
+ return i;
11
11
  };
12
- var r = (s, e, t) => (c(s, typeof e != "symbol" ? e + "" : e, t), t);
13
- var d = (s, e, t) => new Promise((n, o) => {
14
- var a = (i) => {
12
+ var r = (i, e, t) => (p(i, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var d = (i, e, t) => new Promise((a, o) => {
14
+ var n = (s) => {
15
15
  try {
16
- h(t.next(i));
17
- } catch (u) {
18
- o(u);
16
+ u(t.next(s));
17
+ } catch (h) {
18
+ o(h);
19
19
  }
20
- }, l = (i) => {
20
+ }, l = (s) => {
21
21
  try {
22
- h(t.throw(i));
23
- } catch (u) {
24
- o(u);
22
+ u(t.throw(s));
23
+ } catch (h) {
24
+ o(h);
25
25
  }
26
- }, h = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(a, l);
27
- h((t = t.apply(s, e)).next());
26
+ }, u = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
27
+ u((t = t.apply(i, e)).next());
28
28
  });
29
29
  import D from "./RulerItems.js";
30
- class y {
30
+ import "../vendor/svelte/internal/index.js";
31
+ import "@realsee/five";
32
+ import "../shared-utils/animationFrame/index.js";
33
+ import "../shared-utils/animationFrame/BetterTween.js";
34
+ import "@tweenjs/tween.js";
35
+ import "../shared-utils/equal.js";
36
+ import "../shared-utils/isTruelyObject.js";
37
+ import "../shared-utils/math/planimetry.js";
38
+ import "../shared-utils/throttle.js";
39
+ import "three";
40
+ import "./RulerItem.js";
41
+ class C {
31
42
  constructor(e, t) {
32
43
  r(this, "five");
33
44
  r(this, "container", document.createElement("div"));
@@ -41,13 +52,13 @@ class y {
41
52
  distanceText: (e) => `${e.toFixed(1)}m`
42
53
  }
43
54
  });
44
- var n, o;
55
+ var a, o;
45
56
  this.five = e, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
46
57
  "style",
47
58
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
48
- ), t && (t.data && this.load(t.data), this.state.options = f(f({}, this.state.options), t.options || {}), (n = t.options) != null && n.className && this.container.classList.add((o = t.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
49
- var a, l;
50
- (l = (a = this.five.getElement()) == null ? void 0 : a.parentNode) == null || l.append(this.container);
59
+ ), t && (t.data && this.load(t.data), this.state.options = c(c({}, this.state.options), t.options || {}), (a = t.options) != null && a.className && this.container.classList.add((o = t.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
60
+ var n, l;
61
+ (l = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || l.append(this.container);
51
62
  })), this.five.once("dispose", () => this.dispose());
52
63
  }
53
64
  load(e) {
@@ -89,5 +100,5 @@ class y {
89
100
  }
90
101
  }
91
102
  export {
92
- y as Controller
103
+ C as default
93
104
  };
@@ -1,5 +1,18 @@
1
- import { Controller as n } from "./Controller.js";
2
- const t = (r, o) => new n(r, o);
1
+ import t from "./Controller.js";
2
+ import "./RulerItems.js";
3
+ import "../vendor/svelte/internal/index.js";
4
+ import "@realsee/five";
5
+ import "../shared-utils/animationFrame/index.js";
6
+ import "../shared-utils/animationFrame/BetterTween.js";
7
+ import "@tweenjs/tween.js";
8
+ import "../shared-utils/equal.js";
9
+ import "../shared-utils/isTruelyObject.js";
10
+ import "../shared-utils/math/planimetry.js";
11
+ import "../shared-utils/throttle.js";
12
+ import "three";
13
+ import "./RulerItem.js";
14
+ const g = (r, o) => new t(r, o);
3
15
  export {
4
- t as PanoRulerProPlugin
16
+ g as PanoRulerProPlugin,
17
+ g as default
5
18
  };
@@ -0,0 +1 @@
1
+
@@ -1,6 +1,5 @@
1
1
  import { SvelteComponent as d, init as h, safe_not_equal as P, append_styles as y, empty as v, insert as p, noop as c, destroy_each as S, detach as u, element as T, attr as b, toggle_class as f, set_style as g, listen as k } from "../../vendor/svelte/internal/index.js";
2
2
  import { currentTarget as z } from "../store.js";
3
- import "../../vendor/svelte/store/index.js";
4
3
  function w(n) {
5
4
  y(n, "svelte-19zi46m", ".PanoSpatialTagPlugin__tag-origin.svelte-19zi46m{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-19zi46m:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-19zi46m{transform:translate(-50%, -50%) scale(0.6);animation:svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-19zi46m-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
6
5
  }
@@ -72,11 +71,11 @@ function C(n, t, o) {
72
71
  "origins" in i && o(0, e = i.origins);
73
72
  }, [e, a, l];
74
73
  }
75
- class O extends d {
74
+ class N extends d {
76
75
  constructor(t) {
77
76
  super(), h(this, t, C, $, P, { origins: 0 }, w);
78
77
  }
79
78
  }
80
79
  export {
81
- O as default
80
+ N as Origins
82
81
  };
@@ -1,6 +1,5 @@
1
1
  import { SvelteComponent as F, init as M, safe_not_equal as j, append_styles as I, element as d, space as k, attr as u, set_style as c, toggle_class as p, insert as L, append as g, listen as O, noop as D, detach as q, onMount as A, afterUpdate as E, onDestroy as U, binding_callbacks as B } from "../../vendor/svelte/internal/index.js";
2
2
  import { currentTarget as G } from "../store.js";
3
- import "../../vendor/svelte/store/index.js";
4
3
  function J(n) {
5
4
  I(n, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
6
5
  }
@@ -94,7 +93,7 @@ function Q(n, a, i) {
94
93
  C
95
94
  ];
96
95
  }
97
- class x extends F {
96
+ class X extends F {
98
97
  constructor(a) {
99
98
  super(), M(
100
99
  this,
@@ -120,5 +119,5 @@ class x extends F {
120
119
  }
121
120
  }
122
121
  export {
123
- x as default
122
+ X as Tag
124
123
  };
@@ -1,14 +1,33 @@
1
1
  import * as a from "three";
2
2
  import { Subscribe as we, Five as ye } from "@realsee/five";
3
3
  import { CSS3DRenderPlugin as Te } from "../CSS3DRenderPlugin/index.js";
4
- import Me from "./Components/origins.js";
5
- import Pe from "./Components/tag.js";
4
+ import { Origins as Me } from "./Components/origins.js";
5
+ import { Tag as Pe } from "./Components/tag.js";
6
6
  import { pluginStyle as xe } from "./style.js";
7
7
  import { render as Ee } from "../shared-utils/tinyEJSrender.js";
8
- const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Re = (t, s) => {
8
+ import "../CSS3DRenderPlugin/Controller.js";
9
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
10
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
+ import "three/examples/jsm/renderers/CSS3DRenderer";
12
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
13
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
14
+ import "../CSS3DRenderPlugin/utils/even.js";
15
+ import "../shared-utils/Subscribe.js";
16
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
17
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
18
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
19
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
20
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
21
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
22
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
23
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
24
+ import "../vendor/svelte/internal/index.js";
25
+ import "./store.js";
26
+ import "../vendor/svelte/store/index.js";
27
+ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Qe = (n, s) => {
9
28
  var k, z, q, B, G, J, K, Q;
10
29
  let j = s == null ? void 0 : s.container, y = 1.4;
11
- const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, ne = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, u = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(t), S = document.createElement("div");
30
+ const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, f = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
12
31
  S.classList.add("PanoSpatialTagPlugin"), Object.assign(S.style, xe);
13
32
  const V = new we();
14
33
  let Z = new Image();
@@ -33,28 +52,28 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
33
52
  }, H = (o, r) => {
34
53
  if (e.tags.length === 0)
35
54
  return;
36
- const p = r.longitude - t.state.longitude, n = t.camera.clone();
37
- n.position.copy(r.offset), n.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), n.updateProjectionMatrix(), n.updateMatrixWorld(!0);
38
- const m = new a.Frustum(), P = new a.Matrix4();
55
+ const p = r.longitude - n.state.longitude, t = n.camera.clone();
56
+ t.position.copy(r.offset), t.rotateOnWorldAxis(new a.Vector3(0, 1, 0), p), t.updateProjectionMatrix(), t.updateMatrixWorld(!0);
57
+ const g = new a.Frustum(), P = new a.Matrix4();
39
58
  P.multiplyMatrices(
40
- n.projectionMatrix,
41
- n.matrixWorldInverse
42
- ), m.setFromProjectionMatrix(P), e.tags.forEach((i) => {
43
- const $ = n.position.clone().setY(y).distanceTo(i.position);
44
- if ($ < A || $ > u || !m.containsPoint(i.position))
59
+ t.projectionMatrix,
60
+ t.matrixWorldInverse
61
+ ), g.setFromProjectionMatrix(P), e.tags.forEach((i) => {
62
+ const $ = t.position.clone().setY(y).distanceTo(i.position);
63
+ if ($ < A || $ > f || !g.containsPoint(i.position))
45
64
  return i.destroying = !0;
46
- const x = i.position.clone().sub(n.position).setY(0);
65
+ const x = i.position.clone().sub(t.position).setY(0);
47
66
  if (x.angleTo(i.normal) > Math.PI / 2 - I && x.angleTo(i.normal) < Math.PI / 2 + I)
48
67
  return i.destroying = !0;
49
68
  }), e.tags.forEach((i) => {
50
69
  i.destroying ? i.app.$set({
51
- contentZoom: 0.1 + n.position.distanceTo(i.position) / u,
52
- lineWidthZoom: 0.38 * (0.01 + n.position.distanceTo(i.position) / u),
70
+ contentZoom: 0.1 + t.position.distanceTo(i.position) / f,
71
+ lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
53
72
  destroying: i.destroying
54
73
  }) : i.app.$set({
55
- lineWidthZoom: 0.38 * (0.01 + n.position.distanceTo(i.position) / u),
56
- lineHeightZoom: 0.4 + (n.position.distanceTo(i.position) - A) / u * 0.6,
57
- contentZoom: 0.1 + n.position.distanceTo(i.position) / u
74
+ lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
75
+ lineHeightZoom: 0.4 + (t.position.distanceTo(i.position) - A) / f * 0.6,
76
+ contentZoom: 0.1 + t.position.distanceTo(i.position) / f
58
77
  });
59
78
  }), setTimeout(() => {
60
79
  e.tags.forEach((i) => {
@@ -68,57 +87,57 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
68
87
  }, T = () => {
69
88
  if (e.forbidden || !e.enabled)
70
89
  return;
71
- const o = t.camera, r = o.getWorldDirection(new a.Vector3());
90
+ const o = n.camera, r = o.getWorldDirection(new a.Vector3());
72
91
  e.origins = e.tags.map((p) => {
73
- const n = p.position.clone().project(o), m = p.position.clone().sub(o.position).setY(0).angleTo(r.setY(0)) < Math.PI / 2;
92
+ const t = p.position.clone().project(o), g = p.position.clone().sub(o.position).setY(0).angleTo(r.setY(0)) < Math.PI / 2;
74
93
  return {
75
94
  id: p.id,
76
- front: m,
77
- left: (n.x + 1) / 2 * 100,
78
- top: (-n.y + 1) / 2 * 100,
95
+ front: g,
96
+ left: (t.x + 1) / 2 * 100,
97
+ top: (-t.y + 1) / 2 * 100,
79
98
  destroying: p.destroying
80
99
  };
81
100
  }), Y.$set({ origins: e.origins });
82
101
  }, M = () => {
83
102
  e.forbidden || !e.enabled || (e.timeoutId && clearTimeout(e.timeoutId), e.timeoutId = setTimeout(() => {
84
103
  e.timeoutId = void 0;
85
- const o = te();
104
+ const o = ne();
86
105
  o.length && (e.tags = e.tags.concat(o), T());
87
106
  }, ee));
88
- }, te = () => {
89
- const { clientWidth: o, clientHeight: r } = t.getElement(), p = [], n = t.camera, m = new a.Frustum(), P = new a.Matrix4(), i = n.getWorldDirection(new a.Vector3());
107
+ }, ne = () => {
108
+ const { clientWidth: o, clientHeight: r } = n.getElement(), p = [], t = n.camera, g = new a.Frustum(), P = new a.Matrix4(), i = t.getWorldDirection(new a.Vector3());
90
109
  P.multiplyMatrices(
91
- n.projectionMatrix,
92
- n.matrixWorldInverse
93
- ), m.setFromProjectionMatrix(P);
110
+ t.projectionMatrix,
111
+ t.matrixWorldInverse
112
+ ), g.setFromProjectionMatrix(P);
94
113
  const $ = e.tags.filter(
95
- (d) => m.containsPoint(d.position) && !d.destroying
96
- ).length, x = e.points.reduce((d, f) => {
97
- if (e.tags.find((l) => f.id === l.id && !l.destroying))
114
+ (d) => g.containsPoint(d.position) && !d.destroying
115
+ ).length, x = e.points.reduce((d, m) => {
116
+ if (e.tags.find((l) => m.id === l.id && !l.destroying))
98
117
  return d;
99
- const g = n.position.clone().setY(y).distanceTo(f.position);
100
- if (g < A || g > u || !m.containsPoint(f.position))
118
+ const u = t.position.clone().setY(y).distanceTo(m.position);
119
+ if (u < A || u > f || !g.containsPoint(m.position))
101
120
  return d;
102
- const E = f.position.clone().sub(n.position).setY(0);
103
- if (E.angleTo(f.normal) > Math.PI / 2 - I && E.angleTo(f.normal) < Math.PI / 2 + I)
121
+ const E = m.position.clone().sub(t.position).setY(0);
122
+ if (E.angleTo(m.normal) > Math.PI / 2 - I && E.angleTo(m.normal) < Math.PI / 2 + I)
104
123
  return d;
105
- const w = f.position.clone().project(n);
124
+ const w = m.position.clone().project(t);
106
125
  if (!e.tags.every((l) => {
107
- if (l.position.clone().sub(n.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
126
+ if (l.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
108
127
  return !0;
109
- const b = l.position.clone().project(n);
128
+ const b = l.position.clone().project(t);
110
129
  return Math.sqrt(
111
130
  Math.pow((w.x - b.x) / 2 * o, 2) + Math.pow((w.y - b.y) / 2 * r, 2)
112
131
  ) > L;
113
132
  }))
114
133
  return d;
115
134
  const h = {
116
- id: f.id,
117
- position: f.position,
118
- normal: f.normal,
119
- replacement: f.replacement,
120
- weight: f.weight,
121
- distance: g
135
+ id: m.id,
136
+ position: m.position,
137
+ normal: m.normal,
138
+ replacement: m.replacement,
139
+ weight: m.weight,
140
+ distance: u
122
141
  };
123
142
  let c;
124
143
  for (let l = 0, b = d.length; l < b; l++) {
@@ -134,45 +153,45 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
134
153
  }
135
154
  return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
136
155
  }, []);
137
- for (let d = 0, f = x.length; d < f && !($ + p.length >= oe); d++) {
138
- const g = x[d];
139
- if (p.find((c) => g.id === c.id))
156
+ for (let d = 0, m = x.length; d < m && !($ + p.length >= oe); d++) {
157
+ const u = x[d];
158
+ if (p.find((c) => u.id === c.id))
140
159
  continue;
141
- const E = g.position.clone().project(n);
160
+ const E = u.position.clone().project(t);
142
161
  if (!e.tags.concat(p).every((c) => {
143
- if (c.position.clone().sub(n.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
162
+ if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
144
163
  return !0;
145
- const l = c.position.clone().project(n);
164
+ const l = c.position.clone().project(t);
146
165
  return Math.sqrt(
147
166
  Math.pow((E.x - l.x) / 2 * o, 2) + Math.pow((E.y - l.y) / 2 * r, 2)
148
167
  ) > L;
149
168
  }))
150
169
  continue;
151
170
  const w = new a.Raycaster(
152
- n.position.clone().setY(y),
153
- g.position.clone().sub(n.position.clone().setY(y)).normalize(),
171
+ t.position.clone().setY(y),
172
+ u.position.clone().sub(t.position.clone().setY(y)).normalize(),
154
173
  0,
155
- g.distance + v
156
- ), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) : t.model.bvhs.loaded ? t.model.intersectRaycaster(w) : w.intersectObjects(t.model.children, !0);
157
- if (!!h && g.distance - h.distance < v) {
158
- const { position: c, normal: l, id: b, replacement: O } = g, fe = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(n.position).cross(new a.Vector3(0, 1, 0)).setLength(D), ue = [
174
+ u.distance + v
175
+ ), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) : n.model.bvhs.loaded ? n.model.intersectRaycaster(w) : w.intersectObjects(n.model.children, !0);
176
+ if (!!h && u.distance - h.distance < v) {
177
+ const { position: c, normal: l, id: b, replacement: O } = u, me = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new a.Vector3(0, 1, 0)).setLength(D), fe = [
159
178
  c.clone(),
160
179
  c.clone().add(X),
161
180
  c.clone().add(new a.Vector3(0, D, 0)).add(X),
162
181
  c.clone().add(new a.Vector3(0, D, 0))
163
- ].map((be) => fe.projectPoint(be, new a.Vector3())), { container: ge, dispose: me } = C.create3DDomContainer(ue) || {}, he = new Pe({
164
- target: ge,
182
+ ].map((be) => me.projectPoint(be, new a.Vector3())), { container: ue, dispose: ge } = C.create3DDomContainer(fe) || {}, he = new Pe({
183
+ target: ue,
165
184
  props: {
166
185
  id: b,
167
186
  content: e.render(e.template, O),
168
- lineWidthZoom: 0.38 * (0.01 + n.position.distanceTo(c) / u),
169
- lineHeightZoom: 0.4 + (n.position.distanceTo(c) - A) / u * 0.6,
170
- contentZoom: 0.1 + n.position.distanceTo(c) / u,
171
- upsideDown: c.y > ne,
187
+ lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(c) / f),
188
+ lineHeightZoom: 0.4 + (t.position.distanceTo(c) - A) / f * 0.6,
189
+ contentZoom: 0.1 + t.position.distanceTo(c) / f,
190
+ upsideDown: c.y > te,
172
191
  folded: e.folded,
173
192
  events: e.events,
174
193
  hooks: V,
175
- dispose: me
194
+ dispose: ge
176
195
  }
177
196
  });
178
197
  p.push({
@@ -186,13 +205,13 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
186
205
  return p;
187
206
  }, ie = (o) => {
188
207
  e.points = o.points.map((r) => {
189
- var p, n;
208
+ var p, t;
190
209
  return {
191
210
  id: r.id,
192
211
  position: new a.Vector3().fromArray(r.position),
193
212
  normal: new a.Vector3().fromArray(r.normal),
194
213
  replacement: (p = r.replacement) != null ? p : {},
195
- weight: (n = r.weight) != null ? n : -1
214
+ weight: (t = r.weight) != null ? t : -1
196
215
  };
197
216
  }), o.render && (e.render = o.render), o.template && (e.template = o.template), o.events && (e.events = o.events), o.enabled === !1 && (e.enabled = o.enabled), o.folded === !0 && (e.folded = o.folded);
198
217
  }, se = (o) => {
@@ -220,15 +239,15 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
220
239
  r.id === o && r.app.$set({ folded: !0 });
221
240
  });
222
241
  }, U = () => {
223
- t.once("renderFrame", T);
242
+ n.once("renderFrame", T);
224
243
  }, R = () => {
225
- j || (j = t.getElement().parentElement), j && j.appendChild(S), e.forbidden = !1, y = t.model.bounding.getCenter(new a.Vector3()).y, M(), t.on("panoWillArrive", H), t.on("panoArrived", F), t.on("modeChange", N), t.on("cameraUpdate", _);
244
+ j || (j = n.getElement().parentElement), j && j.appendChild(S), e.forbidden = !1, y = n.model.bounding.getCenter(new a.Vector3()).y, M(), n.on("panoWillArrive", H), n.on("panoArrived", F), n.on("modeChange", N), n.on("cameraUpdate", _);
226
245
  }, W = () => {
227
246
  Z = null, C.disposeAll(), Y.$destroy(), e.tags.forEach((o) => {
228
247
  o.app.$destroy(), o = null;
229
- }), e.origins = [], e.tags = [], t.off("modelLoaded", R), t.off("renderFrame", T), t.off("panoWillArrive", H), t.off("panoArrived", F), t.off("modeChange", N), t.off("cameraUpdate", _), t.off("dispose", W), window.removeEventListener("resize", U, !1);
248
+ }), e.origins = [], e.tags = [], n.off("modelLoaded", R), n.off("renderFrame", T), n.off("panoWillArrive", H), n.off("panoArrived", F), n.off("modeChange", N), n.off("cameraUpdate", _), n.off("dispose", W), window.removeEventListener("resize", U, !1);
230
249
  };
231
- return window.addEventListener("resize", U, !1), (Q = t == null ? void 0 : t.model) != null && Q.loaded ? R() : t.once("modelLoaded", R), t.on("dispose", W), {
250
+ return window.addEventListener("resize", U, !1), (Q = n == null ? void 0 : n.model) != null && Q.loaded ? R() : n.once("modelLoaded", R), n.on("dispose", W), {
232
251
  load: ie,
233
252
  setIntersectObjects: se,
234
253
  unfoldAll: de,
@@ -242,5 +261,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
242
261
  };
243
262
  };
244
263
  export {
245
- Re as PanoSpatialTagPlugin
264
+ Qe as PanoSpatialTagPlugin,
265
+ Qe as default
246
266
  };
@@ -1,4 +1,32 @@
1
+ import "./Plugin.js";
2
+ import { PanoSpatialTagPlugin as B, PanoSpatialTagPlugin as C } from "./Plugin.js";
1
3
  import "three";
2
4
  import "@realsee/five";
5
+ import "../CSS3DRenderPlugin/index.js";
6
+ import "../CSS3DRenderPlugin/Controller.js";
7
+ import "../CSS3DRenderPlugin/CSS3DRender.js";
8
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
3
9
  import "three/examples/jsm/renderers/CSS3DRenderer";
10
+ import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
11
+ import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
12
+ import "../CSS3DRenderPlugin/utils/even.js";
13
+ import "../shared-utils/Subscribe.js";
14
+ import "../CSS3DRenderPlugin/utils/positionToVector3.js";
15
+ import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
16
+ import "../CSS3DRenderPlugin/utils/centerPoint.js";
17
+ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
18
+ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
19
+ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
20
+ import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
21
+ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
22
+ import "./Components/origins.js";
4
23
  import "../vendor/svelte/internal/index.js";
24
+ import "./store.js";
25
+ import "../vendor/svelte/store/index.js";
26
+ import "./Components/tag.js";
27
+ import "./style.js";
28
+ import "../shared-utils/tinyEJSrender.js";
29
+ export {
30
+ B as PanoSpatialTagPlugin,
31
+ C as default
32
+ };
@@ -1,4 +1,5 @@
1
1
  import { writable as r } from "../vendor/svelte/store/index.js";
2
+ import "../vendor/svelte/internal/index.js";
2
3
  const e = r(null);
3
4
  export {
4
5
  e as currentTarget
@@ -1,8 +1,8 @@
1
- import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, transition_out as _, check_outros as S, detach as k, element as v, create_component as z, space as C, attr as c, set_style as N, mount_component as O, append as q, listen as j, add_render_callback as B, create_in_transition as E, create_out_transition as F, destroy_component as G, group_outros as H, bubble as J } from "../../../vendor/svelte/internal/index.js";
1
+ import { SvelteComponent as p, init as D, safe_not_equal as A, append_styles as I, empty as R, insert as y, transition_in as d, group_outros as S, transition_out as _, check_outros as z, detach as k, element as v, create_component as C, space as N, attr as c, set_style as O, mount_component as j, append as q, listen as B, add_render_callback as E, create_in_transition as F, create_out_transition as G, destroy_component as H, bubble as J } from "../../../vendor/svelte/internal/index.js";
2
2
  import { fade as w } from "../../../vendor/svelte/transition/index.js";
3
3
  import { Image_Arrow as K } from "../../Assets/Icon.js";
4
4
  import { cubicInOut as b } from "../../../vendor/svelte/easing/index.js";
5
- import L from "./Shadow.js";
5
+ import { Shadow as L } from "./Shadow.js";
6
6
  function M(i) {
7
7
  I(i, "svelte-1ogmlqq", ".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}");
8
8
  }
@@ -16,17 +16,17 @@ function h(i) {
16
16
  }
17
17
  }), {
18
18
  c() {
19
- r = v("div"), z(o.$$.fragment), e = C(), t = v("div"), c(t, "class", l = "arrow " + i[0] + " svelte-1ogmlqq"), N(t, "background-image", "url(" + K + ")"), c(r, "class", "arrow-wrapper svelte-1ogmlqq");
19
+ r = v("div"), C(o.$$.fragment), e = N(), t = v("div"), c(t, "class", l = "arrow " + i[0] + " svelte-1ogmlqq"), O(t, "background-image", "url(" + K + ")"), c(r, "class", "arrow-wrapper svelte-1ogmlqq");
20
20
  },
21
21
  m(a, m) {
22
- y(a, r, m), O(o, r, null), q(r, e), q(r, t), f = !0, n || (g = j(t, "click", i[5]), n = !0);
22
+ y(a, r, m), j(o, r, null), q(r, e), q(r, t), f = !0, n || (g = B(t, "click", i[5]), n = !0);
23
23
  },
24
24
  p(a, m) {
25
25
  i = a, (!f || m & 1 && l !== (l = "arrow " + i[0] + " svelte-1ogmlqq")) && c(t, "class", l);
26
26
  },
27
27
  i(a) {
28
- f || (d(o.$$.fragment, a), a && B(() => {
29
- s && s.end(1), u = E(t, w, {
28
+ f || (d(o.$$.fragment, a), a && E(() => {
29
+ s && s.end(1), u = F(t, w, {
30
30
  duration: i[2],
31
31
  delay: i[3],
32
32
  easing: b
@@ -34,14 +34,14 @@ function h(i) {
34
34
  }), f = !0);
35
35
  },
36
36
  o(a) {
37
- _(o.$$.fragment, a), u && u.invalidate(), a && (s = F(t, w, {
37
+ _(o.$$.fragment, a), u && u.invalidate(), a && (s = G(t, w, {
38
38
  duration: i[2],
39
39
  delay: i[4],
40
40
  easing: b
41
41
  })), f = !1;
42
42
  },
43
43
  d(a) {
44
- a && k(r), G(o), a && s && s.end(), n = !1, g();
44
+ a && k(r), H(o), a && s && s.end(), n = !1, g();
45
45
  }
46
46
  };
47
47
  }
@@ -55,9 +55,9 @@ function P(i) {
55
55
  e && e.m(t, l), y(t, r, l), o = !0;
56
56
  },
57
57
  p(t, [l]) {
58
- t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (H(), _(e, 1, 1, () => {
58
+ t[1] ? e ? (e.p(t, l), l & 2 && d(e, 1)) : (e = h(t), e.c(), d(e, 1), e.m(r.parentNode, r)) : e && (S(), _(e, 1, 1, () => {
59
59
  e = null;
60
- }), S());
60
+ }), z());
61
61
  },
62
62
  i(t) {
63
63
  o || (d(e), o = !0);
@@ -99,5 +99,5 @@ class Y extends p {
99
99
  }
100
100
  }
101
101
  export {
102
- Y as default
102
+ Y as Arrow
103
103
  };