@realsee/dnalogel 2.6.7-dev.0 → 2.6.7-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/README.md +0 -20
  2. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +5 -4
  3. package/dist/PanoTagPlugin/controller/index.d.ts +2 -0
  4. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  5. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  6. package/dist/index.cjs.js +55 -52
  7. package/dist/index.js +6760 -6030
  8. package/dist/index.umd.js +51 -48
  9. package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  10. package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/CSS3DRender.html +31 -31
  13. package/docs/classes/CruisePluginController.html +24 -24
  14. package/docs/classes/Magnifier.html +20 -20
  15. package/docs/classes/ModelRoomLabelController.html +11 -11
  16. package/docs/classes/Object3DHelperController.html +24 -24
  17. package/docs/classes/PaintBrush.html +15 -15
  18. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  19. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  20. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  21. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  22. package/docs/classes/PanoTagPluginController.html +264 -44
  23. package/docs/classes/Util.BetterTween.html +8 -8
  24. package/docs/classes/Util.FivePointSelector.html +12 -12
  25. package/docs/classes/Util.Interval.html +12 -12
  26. package/docs/classes/Util.Magnifier.html +17 -17
  27. package/docs/classes/Util.PointDomHelper.html +11 -11
  28. package/docs/classes/Util.PointHelper.html +11 -11
  29. package/docs/classes/Util.Rectangle.html +13 -13
  30. package/docs/enums/CameraMovementEffect.html +7 -7
  31. package/docs/enums/ContentType.html +18 -18
  32. package/docs/enums/DIRECTION.html +9 -9
  33. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  34. package/docs/enums/DimensionType.html +7 -7
  35. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  36. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  37. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  38. package/docs/enums/PointType.html +7 -7
  39. package/docs/enums/Rotation.html +8 -8
  40. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  41. package/docs/functions/CameraMovementPlugin.html +4 -4
  42. package/docs/functions/CruisePlugin.html +4 -4
  43. package/docs/functions/GuideLinePlugin.html +5 -5
  44. package/docs/functions/ItemLabelPlugin.html +4 -4
  45. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  46. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  47. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  48. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  49. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  50. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  51. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  52. package/docs/functions/ModelViewPlugin.html +4 -4
  53. package/docs/functions/Object3DHelperPlugin.html +4 -4
  54. package/docs/functions/PanoCompassPlugin.html +4 -4
  55. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  56. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  57. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  58. package/docs/functions/PanoMeasurePlugin.html +4 -4
  59. package/docs/functions/PanoRulerPlugin.html +4 -4
  60. package/docs/functions/PanoRulerProPlugin.html +4 -4
  61. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  62. package/docs/functions/PanoTagPlugin.html +4 -4
  63. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  64. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  65. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  66. package/docs/functions/Util.getFrameTime.html +5 -5
  67. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  68. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  69. package/docs/functions/Util.isNil.html +5 -5
  70. package/docs/functions/Util.nextFrame.html +5 -5
  71. package/docs/functions/Util.notNil.html +5 -5
  72. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  73. package/docs/functions/Util.tweenProgress.html +5 -5
  74. package/docs/functions/pluginFlag.html +5 -5
  75. package/docs/index.html +4 -12
  76. package/docs/interfaces/AddTagConfig.html +6 -6
  77. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  78. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  79. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  80. package/docs/interfaces/EventMap.html +15 -15
  81. package/docs/interfaces/FloorplanBounding.html +8 -8
  82. package/docs/interfaces/FloorplanData.html +10 -10
  83. package/docs/interfaces/FloorplanEntrance.html +11 -11
  84. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  85. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  86. package/docs/interfaces/FloorplanFloorData.html +9 -9
  87. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  88. package/docs/interfaces/FloorplanObserver.html +9 -9
  89. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  90. package/docs/interfaces/FloorplanPosition.html +7 -7
  91. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  92. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  93. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  94. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  95. package/docs/interfaces/FloorplanServerData.html +7 -7
  96. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  97. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  98. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  99. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  100. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  101. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  102. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  103. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  104. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  105. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  106. package/docs/interfaces/HelperOffset.html +8 -8
  107. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  108. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  109. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  110. package/docs/interfaces/MinMax.html +7 -7
  111. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  112. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  113. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  114. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  115. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  116. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  119. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  120. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  121. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  123. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  124. package/docs/interfaces/Object3DHelperState.html +8 -8
  125. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  126. package/docs/interfaces/PaintBrushAction.html +12 -12
  127. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  128. package/docs/interfaces/PaintBrushState.html +10 -10
  129. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  130. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  131. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  132. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  133. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  134. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  135. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  136. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  137. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  138. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  139. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  140. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  141. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  142. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  143. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  144. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  145. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  146. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  147. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  148. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  151. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  152. package/docs/interfaces/Point.html +8 -8
  153. package/docs/interfaces/Room.html +9 -9
  154. package/docs/interfaces/RoomInfo.html +7 -7
  155. package/docs/interfaces/RoomLabel.html +14 -14
  156. package/docs/interfaces/RoomRules.html +5 -5
  157. package/docs/interfaces/Rooms.html +5 -5
  158. package/docs/interfaces/Scissor.html +9 -9
  159. package/docs/interfaces/State.html +8 -8
  160. package/docs/interfaces/TagCache.html +12 -12
  161. package/docs/interfaces/TagConfig.html +11 -11
  162. package/docs/interfaces/TagIconUrl.html +9 -9
  163. package/docs/interfaces/Tags.html +9 -9
  164. package/docs/interfaces/TemporaryState.html +6 -6
  165. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  166. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  167. package/docs/modules/Util.html +5 -5
  168. package/docs/modules.html +4 -4
  169. package/docs/types/ArrayPosition.html +5 -5
  170. package/docs/types/AudioAppearance.html +5 -5
  171. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  172. package/docs/types/CSS3DRenderExportType.html +5 -5
  173. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  174. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  175. package/docs/types/ClassFunctionParameters.html +5 -5
  176. package/docs/types/Color.html +5 -5
  177. package/docs/types/ContentTypeConfigKey.html +5 -5
  178. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  179. package/docs/types/ContentTypeMap.html +5 -5
  180. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  181. package/docs/types/Create3DElementReturnType.html +5 -5
  182. package/docs/types/CruisePluginExportType.html +5 -5
  183. package/docs/types/Direction-1.html +5 -5
  184. package/docs/types/Direction4.html +5 -5
  185. package/docs/types/FloorplanRuleLabels.html +5 -5
  186. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  187. package/docs/types/GuideLinePluginExportType.html +5 -5
  188. package/docs/types/HelperEventMap.html +5 -5
  189. package/docs/types/LoadTagConfig.html +5 -5
  190. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  191. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  192. package/docs/types/MediaData.html +5 -5
  193. package/docs/types/MediaStore.html +5 -5
  194. package/docs/types/ModelElement.html +5 -5
  195. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  196. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  197. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  198. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  199. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  200. package/docs/types/MoveArgs.html +5 -5
  201. package/docs/types/MoveOpts.html +5 -5
  202. package/docs/types/Object3DHelperEventMap.html +5 -5
  203. package/docs/types/ObjectFit.html +5 -5
  204. package/docs/types/PaintBrushEventMap.html +5 -5
  205. package/docs/types/PanoCompassPluginData.html +5 -5
  206. package/docs/types/PanoCompassPluginExportType.html +5 -5
  207. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  208. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  209. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  210. package/docs/types/PanoIndex.html +5 -5
  211. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  212. package/docs/types/PanoMeasureReturnType.html +5 -5
  213. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  214. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  215. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  216. package/docs/types/PlaneTag.html +5 -5
  217. package/docs/types/PlaneTagElement.html +5 -5
  218. package/docs/types/Point2DElement.html +5 -5
  219. package/docs/types/Point2DTag.html +5 -5
  220. package/docs/types/Point3DElement.html +5 -5
  221. package/docs/types/Point3DTag.html +5 -5
  222. package/docs/types/PointTag.html +5 -5
  223. package/docs/types/PointTagElement.html +5 -5
  224. package/docs/types/Position.html +5 -5
  225. package/docs/types/RotateArgs.html +5 -5
  226. package/docs/types/RotateOpts.html +5 -5
  227. package/docs/types/RuleLabelsKey.html +5 -5
  228. package/docs/types/RuleLabelsValue.html +5 -5
  229. package/docs/types/StickType.html +5 -5
  230. package/docs/types/Tag.html +5 -5
  231. package/docs/types/Tag2D.html +5 -5
  232. package/docs/types/Tag3D.html +5 -5
  233. package/docs/types/TagContentType.html +5 -5
  234. package/docs/types/TagDimensionType.html +5 -5
  235. package/docs/types/TagElement.html +5 -5
  236. package/docs/types/TagEvents.html +5 -5
  237. package/docs/types/TagGLTFObject.html +5 -5
  238. package/docs/types/TagHooks.html +5 -5
  239. package/docs/types/TagIconSize.html +5 -5
  240. package/docs/types/TagId.html +5 -5
  241. package/docs/types/TagPointType.html +5 -5
  242. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  243. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  244. package/docs/types/WorkCode.html +5 -5
  245. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  246. package/docs/variables/PLUGIN.html +5 -5
  247. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  248. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  249. package/docs/variables/VERSION.html +5 -5
  250. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  251. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  252. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  253. package/libs/CSS3DRenderPlugin/CSS3DRender.js +60 -56
  254. package/libs/CruisePlugin/Controller.js +26 -26
  255. package/libs/GuideLinePlugin/Controller.js +43 -43
  256. package/libs/PanoTagPlugin/Components/Common/Media.js +235 -313
  257. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
  258. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +89 -72
  259. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +86 -72
  260. package/libs/PanoTagPlugin/Components/Tag/index.js +84 -66
  261. package/libs/PanoTagPlugin/Components/TagContainer.js +98 -80
  262. package/libs/PanoTagPlugin/Components/TagItem.js +69 -51
  263. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -4
  264. package/libs/PanoTagPlugin/controller/TagComputer.js +111 -102
  265. package/libs/PanoTagPlugin/controller/index.d.ts +2 -0
  266. package/libs/PanoTagPlugin/controller/index.js +185 -160
  267. package/libs/PanoTagPlugin/index.js +41 -24
  268. package/libs/PanoTagPlugin/tag.config.js +1 -0
  269. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  270. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  271. package/libs/index.js +130 -113
  272. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
  273. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
  274. package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
  275. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
  276. package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
  277. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
  278. package/libs/vendor/simply-reactive/main.js +3 -0
  279. package/libs/vendor/simply-reactive/src/simply-reactive.js +44 -0
  280. package/libs/vendor/simply-reactive/src/utils/object.js +12 -0
  281. package/libs/vendor/simply-reactive/src/utils/subscription.js +28 -0
  282. package/libs/vendor/simply-reactive/src/utils/watcher.js +17 -0
  283. package/libs/vendor/svelte/internal/index.js +267 -274
  284. package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
  285. package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
  286. package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
  287. package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
  288. package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
  289. package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
  290. package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
  291. package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
  292. package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
  293. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
  294. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
  295. package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
  296. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
  297. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
  298. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
  299. package/libs/vendor/svelte-carousel/src/direction.js +5 -0
  300. package/libs/vendor/svelte-carousel/src/main.js +1 -0
  301. package/libs/vendor/svelte-carousel/src/units.js +7 -0
  302. package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
  303. package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
  304. package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
  305. package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
  306. package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
  307. package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
  308. package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
  309. package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
  310. package/package.json +5 -2
  311. package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  312. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  313. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  314. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  315. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  316. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  317. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  318. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  319. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  320. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  321. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  322. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  323. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  324. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  325. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  326. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  327. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  328. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  329. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  330. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
  331. package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
  332. package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
  333. package/libs/vendor/swiper/components-shared/get-changed-params.js +0 -29
  334. package/libs/vendor/swiper/components-shared/get-params.js +0 -23
  335. package/libs/vendor/swiper/components-shared/mount-swiper.js +0 -14
  336. package/libs/vendor/swiper/components-shared/params-list.js +0 -120
  337. package/libs/vendor/swiper/components-shared/update-swiper.js +0 -36
  338. package/libs/vendor/swiper/components-shared/utils.js +0 -32
  339. package/libs/vendor/swiper/svelte/swiper-slide.js +0 -181
  340. package/libs/vendor/swiper/svelte/swiper-svelte.js +0 -2
  341. package/libs/vendor/swiper/svelte/swiper.js +0 -253
@@ -1,56 +1,53 @@
1
- var x = Object.defineProperty, G = Object.defineProperties;
2
- var V = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
1
+ var B = Object.defineProperty, x = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
4
  var N = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var D = (h, a, e) => a in h ? x(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
6
- for (var e in a || (a = {}))
7
- N.call(a, e) && D(h, e, a[e]);
8
- if (E)
9
- for (var e of E(a))
10
- W.call(a, e) && D(h, e, a[e]);
5
+ var P = (h, d, e) => d in h ? B(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, p = (h, d) => {
6
+ for (var e in d || (d = {}))
7
+ N.call(d, e) && P(h, e, d[e]);
8
+ if (R)
9
+ for (var e of R(d))
10
+ W.call(d, e) && P(h, e, d[e]);
11
11
  return h;
12
- }, f = (h, a) => G(h, V(a));
13
- var d = (h, a, e) => (D(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var c = (h, a, e) => new Promise((t, i) => {
12
+ }, v = (h, d) => x(h, G(d));
13
+ var l = (h, d, e) => (P(h, typeof d != "symbol" ? d + "" : d, e), e);
14
+ var c = (h, d, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
18
- } catch (l) {
19
- i(l);
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
21
  }, o = (r) => {
22
22
  try {
23
23
  n(e.throw(r));
24
- } catch (l) {
25
- i(l);
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
- n((e = e.apply(h, a)).next());
28
+ n((e = e.apply(h, d)).next());
29
29
  });
30
30
  import { Subscribe as z } from "@realsee/five";
31
- import { Group as R, Vector3 as T, Matrix4 as C, Quaternion as _ } from "three";
32
- import m from "object-assign-deep";
31
+ import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as _ } from "three";
32
+ import b from "object-assign-deep";
33
33
  import { writable as $ } from "../../vendor/svelte/store/index.js";
34
34
  import q from "../Components/TagContainer.js";
35
35
  import H from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as Q } from "../utils/addDebugPoints.js";
38
- import { planeNormal as O } from "../utils/planeNormal.js";
36
+ import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
+ import { addDebugPoints as J } from "../utils/addDebugPoints.js";
38
+ import { planeNormal as k } from "../utils/planeNormal.js";
39
39
  import "@realsee/five/gltf-loader";
40
- import { isMediaModelTag as u } from "../utils/tag/tagCheck.js";
41
- import { waitFiveModelLoaded as X } from "../utils/actionAfterFiveModelLoad.js";
42
- import { normalPositionToPositions as J } from "../utils/normalPositionToPositions.js";
43
- import { debounce as k } from "../utils/debounce.js";
40
+ import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
41
+ import { waitFiveModelLoaded as Q } from "../utils/actionAfterFiveModelLoad.js";
42
+ import { normalPositionToPositions as X } from "../utils/normalPositionToPositions.js";
43
+ import { debounce as j } from "../utils/debounce.js";
44
44
  import { throttle as K } from "../utils/throttle.js";
45
45
  import { resizeObserver as I } from "../utils/resizeObserver.js";
46
46
  import { TagComputer as Y } from "./TagComputer.js";
47
47
  import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
48
48
  import ee from "../utils/tag/format.js";
49
- import { generateBlankAudio as L, AudioNamespace as U } from "../../shared-utils/audio.js";
49
+ import { generateBlankAudio as U, AudioNamespace as L } from "../../shared-utils/audio.js";
50
50
  import { loadGLTF as te } from "../../shared-utils/three/GLTFLoader.js";
51
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
52
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
53
- import { getMediaModelPlanPositions as ie } from "../utils/tag/index.js";
54
51
  import "../../vendor/svelte/internal/index.js";
55
52
  import "../Components/TagItem.js";
56
53
  import "../utils/noTypecheck.js";
@@ -79,23 +76,40 @@ import "../Components/Common/Text/MText.js";
79
76
  import "../Components/Tag/ImageTextTag.js";
80
77
  import "../Components/Common/Line/Polyline.js";
81
78
  import "../Components/Common/Media.js";
82
- import "../../vendor/swiper/svelte/swiper.js";
83
- import "swiper";
84
- import "../../vendor/swiper/components-shared/get-params.js";
85
- import "../../vendor/swiper/components-shared/utils.js";
86
- import "../../vendor/swiper/components-shared/params-list.js";
87
- import "../../vendor/swiper/components-shared/mount-swiper.js";
88
- import "../../vendor/swiper/components-shared/get-changed-params.js";
89
- import "../../vendor/swiper/components-shared/update-swiper.js";
90
- import "../../vendor/swiper/svelte/swiper-slide.js";
91
- import "swiper/css";
92
- import "swiper/css/autoplay";
79
+ import "../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
80
+ import "../../vendor/svelte-carousel/src/components/Dots/Dots.js";
81
+ import "../../vendor/svelte-carousel/src/components/Dot/Dot.js";
82
+ import "../../vendor/svelte-carousel/src/components/Arrow/Arrow.js";
83
+ import "../../vendor/svelte-carousel/src/direction.js";
84
+ import "../../vendor/svelte-carousel/src/components/Progress/Progress.js";
85
+ import "../../vendor/svelte-carousel/src/actions/swipeable/swipeable.js";
86
+ import "../../vendor/svelte-carousel/src/actions/swipeable/event.js";
87
+ import "../../vendor/svelte-carousel/src/utils/event.js";
88
+ import "../../vendor/svelte-carousel/src/units.js";
89
+ import "../../vendor/svelte-carousel/src/actions/hoverable/hoverable.js";
90
+ import "../../vendor/svelte-carousel/src/actions/hoverable/event.js";
91
+ import "../../vendor/svelte-carousel/src/actions/tappable/tappable.js";
92
+ import "../../vendor/svelte-carousel/src/utils/math.js";
93
+ import "../../vendor/svelte-carousel/src/actions/tappable/event.js";
94
+ import "../../vendor/svelte-carousel/src/utils/page.js";
95
+ import "../../vendor/svelte-carousel/src/utils/clones.js";
96
+ import "../../vendor/svelte-carousel/src/utils/object.js";
97
+ import "../../vendor/svelte-carousel/src/components/Carousel/createCarousel.js";
98
+ import "../../vendor/simply-reactive/src/simply-reactive.js";
99
+ import "lodash.get";
100
+ import "lodash.clonedeep";
101
+ import "../../vendor/simply-reactive/src/utils/subscription.js";
102
+ import "../../vendor/simply-reactive/src/utils/object.js";
103
+ import "lodash.isequal";
104
+ import "../../vendor/simply-reactive/src/utils/watcher.js";
105
+ import "../../vendor/svelte-carousel/src/utils/lazy.js";
106
+ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
107
+ import "../../vendor/svelte-carousel/src/utils/interval.js";
93
108
  import "../Components/Common/MediaItem.js";
94
109
  import "../Components/Tag/MarketingTag.js";
95
110
  import "hammerjs";
96
111
  import "@tweenjs/tween.js";
97
- import "../../shared-utils/animationFrame/BetterTween.js";
98
- import "../../shared-utils/animationFrame/index.js";
112
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
99
113
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
100
114
  import "three/examples/jsm/renderers/CSS3DRenderer";
101
115
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -107,6 +121,9 @@ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
107
121
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
108
122
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
109
123
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
124
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
125
+ import "../../shared-utils/animationFrame/BetterTween.js";
126
+ import "../../shared-utils/animationFrame/index.js";
110
127
  import "../Components/Tag/AudioTag/index.js";
111
128
  import "../Components/Tag/AudioTag/AudioTag.js";
112
129
  import "../Components/Common/Audio.js";
@@ -124,73 +141,74 @@ import "./TagCacheController.js";
124
141
  import "../../base/BasePlugin.js";
125
142
  import "../../CSS3DRenderPlugin/Controller.js";
126
143
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
127
- const j = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${j}`, se = !1, Qt = (h) => `${S}--${h}`;
128
- class Xt extends Y {
144
+ const V = "2.0.10", M = `DnalogelPlugin-PanoTagPlugin@${V}`, ie = !1, hi = (h) => `${M}--${h}`;
145
+ class pi extends Y {
129
146
  constructor(e, t) {
130
147
  super(e);
131
- d(this, "version", j);
132
- d(this, "state", { enabled: !0, visible: !0 });
133
- d(this, "params");
134
- d(this, "debug");
135
- d(this, "css3DRenderPlugin");
136
- d(this, "TagContainerSvelte");
137
- d(this, "temporaryState", { visible: !0 });
138
- d(this, "mediaStore", $({
148
+ l(this, "version", V);
149
+ l(this, "state", { enabled: !0, visible: !0 });
150
+ l(this, "params");
151
+ l(this, "debug");
152
+ l(this, "css3DRenderPlugin");
153
+ l(this, "TagContainerSvelte");
154
+ l(this, "temporaryState", { visible: !0 });
155
+ l(this, "mediaStore", $({
139
156
  currentMediaElement: null
140
157
  }));
141
- d(this, "group", new R());
142
- d(this, "gltfObjectGroup", new R());
143
- d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
144
- d(this, "store", {
158
+ l(this, "group", new E());
159
+ l(this, "gltfObjectGroup", new E());
160
+ l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
161
+ l(this, "store", {
145
162
  disposers: [],
146
163
  disposed: !1,
147
164
  resizeObserverDisposerAdding: !1,
148
165
  css3DRenderDisposer: /* @__PURE__ */ new Map()
149
166
  });
150
- d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
151
- d(this, "changeTagModel", (e, t) => c(this, null, function* () {
152
- e.data = m({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
167
+ l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
168
+ l(this, "changeTagModel", (e, t) => c(this, null, function* () {
169
+ e.data = b({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
153
170
  }));
154
- d(this, "disposedErrorLog", () => {
155
- console.error(`${S} is disposed`);
171
+ l(this, "disposedErrorLog", () => {
172
+ console.error(`${M} is disposed`);
156
173
  });
157
- d(this, "handleFiveInitAnimationEnded", () => {
158
- this.five.getCurrentState().mode === "Panorama" && this.tags.forEach((e) => {
159
- e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
160
- });
174
+ l(this, "handleFiveInitAnimationEnded", () => {
175
+ const e = this.five.getCurrentState().mode;
176
+ this.tags.forEach((t) => {
177
+ m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
178
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
161
179
  });
162
- d(this, "handleFiveModelShownFloorChange", () => {
180
+ l(this, "handleFiveModelShownFloorChange", () => {
163
181
  this.tags.forEach((e) => {
164
- !u(e) || (e.state.visible = this.checkFloorIndex(e));
182
+ !m(e) || (e.state.visible = this.getVisible(e));
165
183
  }), this.updateRenderAllTags();
166
184
  });
167
- d(this, "loadModel", (e) => c(this, null, function* () {
185
+ l(this, "loadModel", (e) => c(this, null, function* () {
168
186
  var r;
169
187
  const t = e.data.modelUrl;
170
- if (console.log("\u{1F436} ==> url:", t), !t)
188
+ if (!t)
171
189
  return;
172
- const i = te(t).then((l) => Object.assign(l.scene, { customID: e.id, isTagModel: !0 }));
190
+ const i = te(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
173
191
  e.model = { promise: i };
174
192
  const s = yield i;
175
193
  if (((r = e.model) == null ? void 0 : r.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
176
194
  return;
177
- s.visible = e.state.visible, new C().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), this.checkFloorIndex(e) || (s.visible = !1);
178
- const n = this.gltfObjectGroup.children.find((l) => l.customID === e.id);
195
+ s.visible = e.state.visible, new S().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
196
+ const n = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
179
197
  return n && this.gltfObjectGroup.remove(n), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
180
198
  }));
181
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, L(1, { namespace: U.GetAudioDuration }), L(1, { namespace: U.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
199
+ this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, U(1, { namespace: L.GetAudioDuration }), U(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
182
200
  }
183
201
  load(e, t) {
184
202
  return c(this, null, function* () {
185
203
  var s, o;
186
- this.clearTags(), console.log(S, " load:", { data: e }), this.config = m({}, this.config, {
204
+ this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = b({}, this.config, {
187
205
  globalConfig: (s = e.globalConfig) != null ? s : {},
188
206
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
189
207
  });
190
208
  const i = yield this.addTag(e.tagList, t);
191
209
  if (this.debug)
192
210
  try {
193
- Q(this.five, this.tags);
211
+ J(this.five, this.tags);
194
212
  } catch (n) {
195
213
  console.error(n);
196
214
  }
@@ -200,28 +218,28 @@ class Xt extends Y {
200
218
  addTag(e, t) {
201
219
  return c(this, null, function* () {
202
220
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
203
- const n = this.getTagConfig(o), r = f(p({}, o), {
204
- state: p({ visible: void 0, unfolded: se }, n.initialState),
221
+ const n = this.getTagConfig(o), r = v(p({}, o), {
222
+ state: p({ visible: void 0, unfolded: ie }, n.initialState),
205
223
  hooks: new z(),
206
224
  clickable: n.clickable,
207
225
  mergedConfig: n
208
226
  });
209
- return u(o) && (r.temporaryState = { visible: !1 }), r;
227
+ return m(o) && (r.temporaryState = { visible: !1 }), r;
210
228
  }).filter((o) => o.position);
211
- return s.forEach(ee), this.tags.push(...s), X(this.five).then(() => {
229
+ return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
212
230
  var o, n, r;
213
- return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), console.log("\u{1F436} ==> waitFiveModelLoaded:"), this.addMediaModelTag(s);
231
+ return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
214
232
  });
215
233
  });
216
234
  }
217
235
  changeConfig(e, t = !0) {
218
- t ? this.config = m({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
236
+ t ? this.config = b({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
219
237
  }
220
238
  changeGlobalConfig(e, t = !0) {
221
- t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
239
+ t ? this.config.globalConfig = b({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
222
240
  }
223
241
  clearTags() {
224
- this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
242
+ this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
225
243
  }
226
244
  show(e) {
227
245
  return c(this, null, function* () {
@@ -254,8 +272,8 @@ class Xt extends Y {
254
272
  dispose() {
255
273
  var e, t, i, s, o, n;
256
274
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
257
- var l;
258
- return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
275
+ var a;
276
+ return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
259
277
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
260
278
  }
261
279
  setState(e, t) {
@@ -275,18 +293,18 @@ class Xt extends Y {
275
293
  }
276
294
  changeTagNormalById(e, t) {
277
295
  const i = this.getTagById(e);
278
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = v(t), this.updateRenderPlaneTag());
296
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = C(t), this.updateRenderPlaneTag());
279
297
  }
280
298
  changeDataById(e, t, i = !0) {
281
299
  const s = this.getTagById(e);
282
- !s || (i ? s.data = m({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
300
+ !s || (i ? s.data = b({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
283
301
  }
284
302
  changeStickTypeById(e, t, i = !0) {
285
303
  this.changeTagById(e, t, i);
286
304
  }
287
305
  changeTagById(e, t, i = !0) {
288
306
  const s = this.getTagById(e);
289
- !t || (i ? m(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = v(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
307
+ !t || (i ? b(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = C(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
290
308
  }
291
309
  destroyTagById(e) {
292
310
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -298,16 +316,25 @@ class Xt extends Y {
298
316
  this.mediaStore.set({ currentMediaElement: null });
299
317
  }
300
318
  updateTagCss3DObjectMatrix(e, t) {
301
- var P, M, w, F;
302
- const i = (w = (M = (P = e.mergedConfig) == null ? void 0 : P.tag3DConfig) == null ? void 0 : M.ratio) != null ? w : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
319
+ var D, w, O, F;
320
+ const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
303
321
  if (!s)
304
322
  return;
305
- const o = u(e) ? e.data.mediaPosition : e.position;
323
+ const o = m(e) ? e.data.mediaPosition : e.position;
306
324
  t.updateWorldMatrix(!1, !1);
307
- const n = t.matrixWorld, r = new T().fromArray(o[0]), l = new T().fromArray(o[2]), g = new T().lerpVectors(r, l, 0.5).add(new T(0, 0, 5e-4)), A = new C().setPosition(g), B = new C().makeScale(i, i, i), y = new C().multiply(n).multiply(A).multiply(B);
308
- y.decompose(s.position, s.quaternion, s.scale);
309
- const b = s.opacityMesh;
310
- !b || y.decompose(b.position, b.quaternion, b.scale);
325
+ const n = t.matrixWorld, r = new A().fromArray(o[0]), a = new A().fromArray(o[2]), f = new A().lerpVectors(r, a, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), T = new S().multiply(n).multiply(g).multiply(y);
326
+ T.decompose(s.position, s.quaternion, s.scale);
327
+ const u = s.opacityMesh;
328
+ !u || T.decompose(u.position, u.quaternion, u.scale);
329
+ }
330
+ updateTagCss3DObjectVisible(e) {
331
+ var s, o, n, r, a;
332
+ const t = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer.css3DObject;
333
+ if (!t)
334
+ return;
335
+ t.visible = (n = (o = e.state) == null ? void 0 : o.visible) != null ? n : !0;
336
+ const i = t.opacityMesh;
337
+ !i || (i.visible = (a = (r = e.state) == null ? void 0 : r.visible) != null ? a : !0);
311
338
  }
312
339
  setVisibleAndUnfolded() {
313
340
  return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
@@ -336,9 +363,9 @@ class Xt extends Y {
336
363
  });
337
364
  }
338
365
  addEventListener() {
339
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), A = this.five.currentMode;
340
- return this.handleFiveModeChange(A), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", g), () => {
341
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", g), this.store.eventListenerDisposer = void 0;
366
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), f = this.clickhandler.bind(this), g = this.five.currentMode;
367
+ return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", a), t.on("click", f), () => {
368
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", a), t.off("click", f), this.store.eventListenerDisposer = void 0;
342
369
  };
343
370
  }
344
371
  loadVideoFirstFrame() {
@@ -365,7 +392,7 @@ class Xt extends Y {
365
392
  }, 500),
366
393
  e
367
394
  ), { observe: n, unobserve: r } = I(
368
- k(() => t(), 400),
395
+ j(() => t(), 400),
369
396
  e
370
397
  );
371
398
  return s(), n(), () => {
@@ -374,17 +401,13 @@ class Xt extends Y {
374
401
  }
375
402
  handleFiveModeChange(e) {
376
403
  this.tags.forEach((t) => {
377
- if (u(t)) {
378
- e !== "Panorama" && (t.mediaVisible = this.checkFloorIndex(t)), this.changeTagMode(t, e === "Panorama" ? "front" : "behind"), this.updateRenderAllTags();
379
- return;
380
- }
381
- e !== "Panorama" && (t.temporaryState = f(p({}, t.temporaryState), { visible: !1 }));
382
- }), this.updateRenderAllTags();
404
+ m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
405
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
383
406
  }
384
407
  handleFiveWantsMoveToPano() {
385
408
  this.tags.forEach((e) => {
386
409
  const t = this.getTagConfig(e);
387
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = f(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = f(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
410
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = v(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = v(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
388
411
  }), this.updateTagContainerVisible();
389
412
  }
390
413
  temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
@@ -422,7 +445,7 @@ class Xt extends Y {
422
445
  });
423
446
  }
424
447
  handleFiveCameraUpdateDebounce() {
425
- return k(() => {
448
+ return j(() => {
426
449
  this.setUnfoldedByCamera(), this.updateRenderAllTags();
427
450
  }, 100);
428
451
  }
@@ -432,7 +455,7 @@ class Xt extends Y {
432
455
  handleFivePanoArrived() {
433
456
  return c(this, null, function* () {
434
457
  yield this.setVisibleAndUnfolded(), this.setModelMedialVisibleByPanoIndex(), this.tags.forEach((e) => {
435
- e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
458
+ e.temporaryState = v(p({}, e.temporaryState), { visible: !0 });
436
459
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
437
460
  });
438
461
  }
@@ -463,64 +486,62 @@ class Xt extends Y {
463
486
  }
464
487
  updateRenderPlaneTag() {
465
488
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
466
- var i;
489
+ var r, a, f;
467
490
  if (t.tag3DContentSvelte) {
468
- const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
469
- if (s.$set({
491
+ const { svelteApp: g, domContainer: y, initialNormal: T, currentNormal: u } = t.tag3DContentSvelte;
492
+ if (this.updateTagCss3DObjectVisible(t), g.$set({
470
493
  tag: t,
471
494
  hooks: this.hooks,
472
495
  state: this.state,
473
496
  temporaryState: this.temporaryState
474
- }), !n.equals(r)) {
475
- const l = new _().setFromUnitVectors(n, r);
476
- o.css3DObject.setRotationFromQuaternion(l);
497
+ }), !T.equals(u)) {
498
+ const D = new _().setFromUnitVectors(T, u);
499
+ y.css3DObject.setRotationFromQuaternion(D);
477
500
  }
478
- } else {
479
- if (((i = t.state) == null ? void 0 : i.visible) === !1)
480
- return;
481
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
482
- return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
483
- const s = (() => t.stickType === "Plane" ? t.position : t.stickType === "Model" && t.contentType === "MediaModel" ? ie(t) : J(
484
- this.five.camera.position,
485
- v(t.position),
486
- v(t.normal)
487
- ))();
488
- if (!s)
489
- return;
490
- const o = function() {
491
- if (t.normal)
492
- return v(t.normal);
493
- if (t.stickType === "Plane")
494
- return O(t.position);
495
- if (t.contentType === "MediaModel")
496
- return O(s);
497
- }();
498
- if (!o)
499
- return;
500
- const n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
501
- if (!r)
502
- return;
503
- this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
504
- svelteApp: new H({
505
- target: r.container,
506
- props: {
507
- tag: t,
508
- hooks: this.hooks,
509
- state: t.contentType === "MediaModel" ? f(p({}, this.state), { visible: !1 }) : this.state,
510
- mediaStore: this.mediaStore,
511
- temporaryState: this.temporaryState
512
- }
513
- }),
514
- domContainer: r,
515
- initialNormal: o,
516
- currentNormal: o
517
- };
501
+ return;
518
502
  }
503
+ if (((r = t.state) == null ? void 0 : r.visible) === !1)
504
+ return;
505
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
506
+ return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
507
+ const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : X(
508
+ this.five.camera.position,
509
+ C(t.position),
510
+ C(t.normal)
511
+ ))();
512
+ if (!i)
513
+ return;
514
+ const s = function() {
515
+ if (t.normal)
516
+ return C(t.normal);
517
+ if (t.stickType === "Plane")
518
+ return k(t.position);
519
+ if (t.contentType === "MediaModel")
520
+ return k(i);
521
+ }();
522
+ if (!s)
523
+ return;
524
+ const o = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(i, o);
525
+ !n || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
526
+ svelteApp: new H({
527
+ target: n.container,
528
+ props: {
529
+ tag: t,
530
+ hooks: this.hooks,
531
+ state: t.contentType === "MediaModel" ? v(p({}, this.state), { visible: !1 }) : this.state,
532
+ mediaStore: this.mediaStore,
533
+ temporaryState: this.temporaryState
534
+ }
535
+ }),
536
+ domContainer: n,
537
+ initialNormal: s,
538
+ currentNormal: s
539
+ }, m(t) && ((a = t.model) == null ? void 0 : a.object) && this.updateTagCss3DObjectMatrix(t, (f = t.model) == null ? void 0 : f.object));
519
540
  }), this.checkPanelTag();
520
541
  }
521
542
  updateRenderModelTag() {
522
543
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
523
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(u).forEach((i) => {
544
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
524
545
  var s;
525
546
  (s = i.model) == null || s.promise.then((o) => {
526
547
  o.visible = i.state.visible;
@@ -544,13 +565,17 @@ class Xt extends Y {
544
565
  }
545
566
  addMediaModelTag(e) {
546
567
  return c(this, null, function* () {
547
- const t = e.filter(u).map(this.loadModel);
568
+ const t = e.filter(m).map(this.loadModel);
548
569
  yield Promise.all(t), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
549
570
  });
550
571
  }
572
+ changeTagMode(e, t) {
573
+ var i, s, o, n, r;
574
+ ((o = (s = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : o.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (r = this.store.css3DRenderDisposer.get(e.id)) == null || r(), e.tag3DContentSvelte = void 0);
575
+ }
551
576
  }
552
577
  export {
553
- Xt as PanoTagPluginController,
554
- Xt as default,
555
- Qt as pluginFlag
578
+ pi as PanoTagPluginController,
579
+ pi as default,
580
+ hi as pluginFlag
556
581
  };