@realsee/dnalogel 2.3.4 → 2.3.5-dev.1

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 (328) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/ModelViewPlugin/Plugin.d.ts +8 -0
  3. package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  4. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  5. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
  6. package/dist/PanoTagPlugin/controller/index.d.ts +14 -12
  7. package/dist/PanoTagPlugin/index.d.ts +1 -1
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +12 -11
  9. package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  11. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  12. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  13. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
  14. package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
  15. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  16. package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  17. package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  18. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  19. package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  20. package/dist/index.cjs.js +51 -51
  21. package/dist/index.js +7181 -6289
  22. package/dist/index.umd.js +43 -43
  23. package/docs/assets/search.js +1 -1
  24. package/docs/classes/CSS3DRender.html +31 -31
  25. package/docs/classes/CruisePluginController.html +24 -24
  26. package/docs/classes/Magnifier.html +16 -16
  27. package/docs/classes/ModelRoomLabelController.html +11 -11
  28. package/docs/classes/Object3DHelperController.html +24 -24
  29. package/docs/classes/PaintBrush.html +15 -15
  30. package/docs/classes/PanoTagPluginController.html +196 -164
  31. package/docs/classes/Util.BetterTween.html +8 -8
  32. package/docs/classes/Util.FivePointSelector.html +12 -12
  33. package/docs/classes/Util.Interval.html +12 -12
  34. package/docs/classes/Util.Magnifier.html +17 -17
  35. package/docs/classes/Util.PointDomHelper.html +11 -11
  36. package/docs/classes/Util.PointHelper.html +11 -11
  37. package/docs/classes/Util.Rectangle.html +13 -13
  38. package/docs/enums/CameraMovementEffect.html +7 -7
  39. package/docs/enums/ContentType.html +75 -35
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +19 -15
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  44. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/PointType.html +19 -15
  47. package/docs/enums/Rotation.html +8 -8
  48. package/docs/functions/CSS3DRenderPlugin.html +35 -13
  49. package/docs/functions/CameraMovementPlugin.html +35 -13
  50. package/docs/functions/CruisePlugin.html +35 -13
  51. package/docs/functions/GuideLinePlugin.html +36 -14
  52. package/docs/functions/ItemLabelPlugin.html +35 -13
  53. package/docs/functions/MapviewFloorplanPlugin.html +35 -13
  54. package/docs/functions/ModelChassisCompassPlugin.html +35 -13
  55. package/docs/functions/ModelEntryDoorGuidePlugin.html +35 -13
  56. package/docs/functions/ModelFloorplanPlugin.html +35 -13
  57. package/docs/functions/ModelItemLabelPlugin.html +35 -13
  58. package/docs/functions/ModelRoomLabelPlugin.html +35 -13
  59. package/docs/functions/ModelTVVideoPlugin.html +35 -13
  60. package/docs/functions/ModelViewPlugin.html +35 -13
  61. package/docs/functions/Object3DHelperPlugin.html +35 -13
  62. package/docs/functions/PanoCompassPlugin.html +35 -13
  63. package/docs/functions/PanoCursorRaycasterPlugin.html +35 -13
  64. package/docs/functions/PanoDoorLabelPlugin.html +35 -13
  65. package/docs/functions/PanoFloorplanRadarPlugin.html +35 -13
  66. package/docs/functions/PanoMeasurePlugin.html +35 -13
  67. package/docs/functions/PanoRulerPlugin.html +35 -13
  68. package/docs/functions/PanoRulerProPlugin.html +35 -13
  69. package/docs/functions/PanoSpatialTagPlugin.html +35 -13
  70. package/docs/functions/PanoTagPlugin.html +41 -23
  71. package/docs/functions/TopviewFloorplanPlugin.html +35 -13
  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 +36 -14
  83. package/docs/index.html +35 -13
  84. package/docs/interfaces/AddTagConfig.html +64 -0
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  88. package/docs/interfaces/EventMap.html +298 -0
  89. package/docs/interfaces/FloorplanBounding.html +8 -8
  90. package/docs/interfaces/FloorplanData.html +10 -10
  91. package/docs/interfaces/FloorplanEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  93. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  94. package/docs/interfaces/FloorplanFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanObserver.html +9 -9
  97. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanPosition.html +7 -7
  99. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  100. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  101. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  102. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  103. package/docs/interfaces/FloorplanServerData.html +7 -7
  104. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  105. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  106. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  107. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  108. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  109. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  110. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  113. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  114. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  115. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  116. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  117. package/docs/interfaces/LineJson.html +7 -7
  118. package/docs/interfaces/MinMax.html +71 -0
  119. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  121. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  122. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  123. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  124. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  125. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  126. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  127. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  128. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  129. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  130. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  131. package/docs/interfaces/ModelViewPluginExportType.html +57 -9
  132. package/docs/interfaces/Object3DHelperState.html +8 -8
  133. package/docs/interfaces/OpenParameter.html +7 -7
  134. package/docs/interfaces/PaintBrushAction.html +12 -12
  135. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  136. package/docs/interfaces/PaintBrushState.html +10 -10
  137. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +36 -14
  139. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  140. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  141. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  142. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  143. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  144. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  145. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  146. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  147. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +36 -14
  148. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +36 -14
  149. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  150. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  153. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  154. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  156. package/docs/interfaces/Point.html +8 -8
  157. package/docs/interfaces/PointJson.html +8 -8
  158. package/docs/interfaces/Room.html +9 -9
  159. package/docs/interfaces/RoomInfo.html +7 -7
  160. package/docs/interfaces/RoomLabel.html +14 -14
  161. package/docs/interfaces/RoomRules.html +36 -14
  162. package/docs/interfaces/Rooms.html +36 -14
  163. package/docs/interfaces/Scissor.html +9 -9
  164. package/docs/interfaces/State.html +89 -0
  165. package/docs/interfaces/TagCache.html +92 -0
  166. package/docs/interfaces/TagConfig.html +15 -19
  167. package/docs/interfaces/TagIconUrl.html +91 -0
  168. package/docs/interfaces/Tags.html +14 -12
  169. package/docs/interfaces/TemporaryState.html +64 -0
  170. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  171. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  172. package/docs/modules/Util.html +5 -5
  173. package/docs/modules.html +65 -21
  174. package/docs/types/ArrayPosition.html +37 -15
  175. package/docs/types/CSS3DRenderExportType.html +36 -14
  176. package/docs/types/CSS3DRenderPluginExportType.html +36 -14
  177. package/docs/types/CSS3DRenderPluginParameterType.html +36 -14
  178. package/docs/types/Color.html +36 -14
  179. package/docs/types/ContentTypeConfigKey.html +37 -15
  180. package/docs/types/ContentTypeMap.html +247 -0
  181. package/docs/types/Create3DDomContainerReturnType.html +36 -14
  182. package/docs/types/Create3DElementReturnType.html +36 -14
  183. package/docs/types/CruisePluginExportType.html +36 -14
  184. package/docs/types/Direction-1.html +36 -14
  185. package/docs/types/Direction4.html +36 -14
  186. package/docs/types/FloorplanRuleLabels.html +36 -14
  187. package/docs/types/FloorplanServerRuleLabels.html +36 -14
  188. package/docs/types/GuideLinePluginExportType.html +36 -14
  189. package/docs/types/HelperEventMap.html +36 -14
  190. package/docs/types/MapviewFloorplanPluginParameterType.html +36 -14
  191. package/docs/types/MapviewFloorplanPluginReturnType.html +36 -14
  192. package/docs/types/MediaData.html +36 -14
  193. package/docs/types/MediaStore.html +247 -0
  194. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +36 -14
  195. package/docs/types/ModelFloorplanPluginParameterType.html +36 -14
  196. package/docs/types/ModelFloorplanPluginReturnType.html +36 -14
  197. package/docs/types/ModelRoomLabelPluginParameters.html +36 -14
  198. package/docs/types/ModelRoomLabelPluginReturnType.html +36 -14
  199. package/docs/types/MoveArgs.html +36 -14
  200. package/docs/types/MoveOpts.html +36 -14
  201. package/docs/types/Object3DHelperEventMap.html +36 -14
  202. package/docs/types/ObjectFit.html +36 -14
  203. package/docs/types/PaintBrushEventMap.html +36 -14
  204. package/docs/types/PanoCompassPluginData.html +36 -14
  205. package/docs/types/PanoCompassPluginExportType.html +36 -14
  206. package/docs/types/PanoCompassPluginParameterType.html +36 -14
  207. package/docs/types/PanoFloorplanRadarPluginParameterType.html +36 -14
  208. package/docs/types/PanoFloorplanRadarPluginReturnType.html +36 -14
  209. package/docs/types/PanoIndex.html +247 -0
  210. package/docs/types/PanoMeasurePluginEvent.html +36 -14
  211. package/docs/types/PanoMeasureReturnType.html +36 -14
  212. package/docs/types/PanoSpatialTagPluginId.html +36 -14
  213. package/docs/types/PanoTagPluginExportInterface.html +36 -14
  214. package/docs/types/PanoTagPluginParamsInterface.html +36 -14
  215. package/docs/types/PlaneTag.html +39 -19
  216. package/docs/types/PlaneTagElement.html +252 -0
  217. package/docs/types/Point2DElement.html +252 -0
  218. package/docs/types/Point2DTag.html +254 -0
  219. package/docs/types/Point3DElement.html +252 -0
  220. package/docs/types/Point3DTag.html +254 -0
  221. package/docs/types/PointTag.html +39 -23
  222. package/docs/types/PointTagElement.html +252 -0
  223. package/docs/types/Position.html +36 -14
  224. package/docs/types/RotateArgs.html +36 -14
  225. package/docs/types/RotateOpts.html +36 -14
  226. package/docs/types/RuleLabelsKey.html +36 -14
  227. package/docs/types/RuleLabelsValue.html +36 -14
  228. package/docs/types/StickType.html +247 -0
  229. package/docs/types/Tag.html +40 -22
  230. package/docs/types/Tag2D.html +41 -20
  231. package/docs/types/Tag3D.html +41 -20
  232. package/docs/types/TagContentType.html +247 -0
  233. package/docs/types/TagDimensionType.html +247 -0
  234. package/docs/types/TagElement.html +254 -0
  235. package/docs/types/TagEvents.html +282 -0
  236. package/docs/types/TagHooks.html +247 -0
  237. package/docs/types/TagIconSize.html +250 -0
  238. package/docs/types/TagId.html +36 -14
  239. package/docs/types/TagPointType.html +250 -0
  240. package/docs/types/TopviewFloorplanPluginParameterType.html +36 -14
  241. package/docs/types/TopviewFloorplanPluginReturnType.html +36 -14
  242. package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +39 -17
  243. package/docs/variables/FLOOR_TYPE_MAP.html +36 -14
  244. package/docs/variables/PLUGIN.html +36 -14
  245. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +36 -14
  246. package/docs/variables/ROOM_TYPE_MAP.html +36 -14
  247. package/docs/variables/VERSION.html +36 -14
  248. package/docs/variables/itemLabelPluginServerParams.html +36 -14
  249. package/docs/variables/modelItemLabelPluginServerParams.html +36 -14
  250. package/docs/variables/modelRoomLabelPluginServerParams.html +36 -14
  251. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  252. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -2
  253. package/libs/ModelViewPlugin/Plugin.d.ts +8 -0
  254. package/libs/ModelViewPlugin/Plugin.js +83 -73
  255. package/libs/Object3DHelperPlugin/Controller.js +36 -34
  256. package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
  257. package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
  258. package/libs/PanoTagPlugin/Components/Common/Audio.js +138 -133
  259. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +173 -0
  260. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
  261. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +32 -32
  262. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +94 -59
  263. package/libs/PanoTagPlugin/Components/Common/Media.js +212 -194
  264. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +109 -80
  265. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +78 -0
  266. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +135 -0
  267. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +147 -0
  268. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
  269. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +209 -0
  270. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +204 -0
  271. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +98 -0
  272. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -130
  273. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +49 -98
  274. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +47 -44
  275. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +98 -0
  276. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +122 -0
  277. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +98 -0
  278. package/libs/PanoTagPlugin/Components/Tag/index.js +130 -133
  279. package/libs/PanoTagPlugin/Components/TagContainer.js +89 -105
  280. package/libs/PanoTagPlugin/Components/TagItem.js +139 -0
  281. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
  282. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
  283. package/libs/PanoTagPlugin/controller/TagComputer.js +168 -151
  284. package/libs/PanoTagPlugin/controller/index.d.ts +14 -12
  285. package/libs/PanoTagPlugin/controller/index.js +128 -133
  286. package/libs/PanoTagPlugin/index.d.ts +1 -1
  287. package/libs/PanoTagPlugin/index.js +31 -20
  288. package/libs/PanoTagPlugin/tag.config.js +23 -16
  289. package/libs/PanoTagPlugin/typings/controller.d.ts +12 -11
  290. package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
  291. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
  292. package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -0
  293. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
  294. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
  295. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
  296. package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
  297. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
  298. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
  299. package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
  300. package/libs/PanoTagPlugin/utils/color.js +17 -0
  301. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
  302. package/libs/PanoTagPlugin/utils/getImageInfo.js +50 -0
  303. package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
  304. package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
  305. package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
  306. package/libs/PanoTagPlugin/utils/tag/format.js +17 -0
  307. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
  308. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +10 -0
  309. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  310. package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
  311. package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
  312. package/libs/index.js +112 -101
  313. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +17 -20
  314. package/libs/vendor/svelte/internal/index.js +381 -341
  315. package/package.json +3 -3
  316. package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
  317. package/docs/enums/LinkType.html +0 -67
  318. package/docs/interfaces/ContentTypeMap.html +0 -212
  319. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
  320. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
  321. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
  322. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
  323. package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
  324. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
  325. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
  326. package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
  327. package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
  328. package/libs/PanoTagPlugin/typings/tag.js +0 -7
@@ -1,139 +1,168 @@
1
- import { SvelteComponent as C, init as N, safe_not_equal as F, append_styles as U, empty as L, insert as _, noop as y, detach as w, element as m, attr as a, binding_callbacks as q, space as E, src_url_equal as b, toggle_class as d, set_style as z, append as k, listen as P, run_all as S } from "../../../vendor/svelte/internal/index.js";
2
- import { Image_Play_Large as j, Image_Play_Small as B } from "../../Assets/Icon.js";
3
- function M(o) {
4
- U(o, "svelte-cwtvzu", ".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}");
1
+ import { SvelteComponent as z, init as F, safe_not_equal as O, append_styles as U, empty as W, insert as y, noop as w, detach as p, getContext as B, element as g, attr as f, binding_callbacks as T, space as V, src_url_equal as b, toggle_class as _, set_style as q, append as P, listen as I, run_all as A } from "../../../vendor/svelte/internal/index.js";
2
+ import { Image_Play_Icon_With_Text as J, Image_Play_Icon as M } from "../../Assets/Icon.js";
3
+ function R(l) {
4
+ U(l, "svelte-q6hk4f", ".media-item.svelte-q6hk4f.svelte-q6hk4f{height:100%}.media-content.svelte-q6hk4f.svelte-q6hk4f{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-q6hk4f.svelte-q6hk4f{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-q6hk4f.svelte-q6hk4f{display:block}.video-icon.large.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem}.video-icon.small.svelte-q6hk4f.svelte-q6hk4f{width:1.75rem;height:1.75rem}.video-icon.svelte-q6hk4f .video-icon-img.svelte-q6hk4f{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-q6hk4f .video-icon-img.canPlay.svelte-q6hk4f{cursor:pointer}");
5
5
  }
6
- function I(o) {
6
+ function S(l) {
7
7
  let e;
8
- function t(s, c) {
9
- if (s[0].type === "Image")
10
- return A;
11
- if (s[0].type === "Video")
12
- return V;
8
+ function i(s, d) {
9
+ if (s[1].type === "Image")
10
+ return D;
11
+ if (s[1].type === "Video")
12
+ return X;
13
13
  }
14
- let n = t(o), i = n && n(o);
14
+ let n = i(l), t = n && n(l);
15
15
  return {
16
16
  c() {
17
- e = m("div"), i && i.c(), a(e, "class", "media-item svelte-cwtvzu");
17
+ e = g("div"), t && t.c(), f(e, "class", "media-item svelte-q6hk4f");
18
18
  },
19
- m(s, c) {
20
- _(s, e, c), i && i.m(e, null);
19
+ m(s, d) {
20
+ y(s, e, d), t && t.m(e, null);
21
21
  },
22
- p(s, c) {
23
- n === (n = t(s)) && i ? i.p(s, c) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(e, null)));
22
+ p(s, d) {
23
+ n === (n = i(s)) && t ? t.p(s, d) : (t && t.d(1), t = n && n(s), t && (t.c(), t.m(e, null)));
24
24
  },
25
25
  d(s) {
26
- s && w(e), i && i.d();
26
+ s && p(e), t && t.d();
27
27
  }
28
28
  };
29
29
  }
30
- function V(o) {
31
- let e, t, n, i, s, c, u, v, f, p, g;
30
+ function X(l) {
31
+ let e, i, n, t, s, d, m, v, c, o, k;
32
32
  return {
33
33
  c() {
34
- var l;
35
- e = m("video"), c = E(), u = m("div"), v = m("div"), f = m("div"), a(e, "class", "media-content svelte-cwtvzu"), a(e, "style", t = `object-fit: ${o[3]};`), b(e.src, n = o[0].url + "#t=0.1") || a(e, "src", n), a(e, "poster", i = (l = o[0].videoCoverUrl) != null ? l : void 0), a(e, "preload", s = o[0].videoCoverUrl ? void 0 : "auto"), e.playsInline = !0, a(e, "paused", ""), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, d(e, "showPlayButton", o[5]), a(f, "class", "video-icon-img svelte-cwtvzu"), z(f, "background-image", "url(" + (o[1] === "large" ? j : B) + ")"), d(f, "canPlay", o[2]), a(v, "class", "video-icon svelte-cwtvzu"), d(v, "large", o[1] === "large"), d(v, "small", o[1] === "small"), a(u, "class", "video-play-button-container svelte-cwtvzu"), d(u, "showPlayButton", o[5]);
34
+ var a;
35
+ e = g("video"), d = V(), m = g("div"), v = g("div"), c = g("div"), f(e, "class", "media-content svelte-q6hk4f"), f(e, "style", i = `object-fit: ${l[5]};`), b(e.src, n = l[1].url + "#t=0.1") || f(e, "src", n), f(e, "poster", t = (a = l[1].videoCoverUrl) != null ? a : void 0), f(e, "preload", s = l[1].videoCoverUrl ? void 0 : "auto"), e.playsInline = !0, f(e, "paused", ""), e.muted = !0, e.loop = !1, f(e, "crossorigin", ""), e.controls = !1, _(e, "showPlayButton", l[7]), q(e, "position", "relative"), f(c, "class", "video-icon-img svelte-q6hk4f"), q(c, "background-image", "url(" + l[13]() + ")"), _(c, "canPlay", l[4]), f(v, "class", "video-icon svelte-q6hk4f"), _(v, "large", l[3] === "large"), _(v, "small", l[3] === "small"), f(m, "class", "video-play-button-container svelte-q6hk4f"), _(m, "showPlayButton", l[7]);
36
36
  },
37
- m(l, r) {
38
- _(l, e, r), o[7](e), _(l, c, r), _(l, u, r), k(u, v), k(v, f), p || (g = [
39
- P(e, "click", o[6]),
40
- P(f, "click", o[8])
41
- ], p = !0);
37
+ m(a, u) {
38
+ y(a, e, u), l[12](e), y(a, d, u), y(a, m, u), P(m, v), P(v, c), o || (k = [
39
+ I(e, "click", l[11]),
40
+ I(c, "click", l[14])
41
+ ], o = !0);
42
42
  },
43
- p(l, r) {
43
+ p(a, u) {
44
44
  var h;
45
- r & 8 && t !== (t = `object-fit: ${l[3]};`) && a(e, "style", t), r & 1 && !b(e.src, n = l[0].url + "#t=0.1") && a(e, "src", n), r & 1 && i !== (i = (h = l[0].videoCoverUrl) != null ? h : void 0) && a(e, "poster", i), r & 1 && s !== (s = l[0].videoCoverUrl ? void 0 : "auto") && a(e, "preload", s), r & 32 && d(e, "showPlayButton", l[5]), r & 2 && z(f, "background-image", "url(" + (l[1] === "large" ? j : B) + ")"), r & 4 && d(f, "canPlay", l[2]), r & 2 && d(v, "large", l[1] === "large"), r & 2 && d(v, "small", l[1] === "small"), r & 32 && d(u, "showPlayButton", l[5]);
45
+ u & 32 && i !== (i = `object-fit: ${a[5]};`) && f(e, "style", i), u & 2 && !b(e.src, n = a[1].url + "#t=0.1") && f(e, "src", n), u & 2 && t !== (t = (h = a[1].videoCoverUrl) != null ? h : void 0) && f(e, "poster", t), u & 2 && s !== (s = a[1].videoCoverUrl ? void 0 : "auto") && f(e, "preload", s), u & 128 && _(e, "showPlayButton", a[7]), u & 4 && q(c, "background-image", "url(" + a[13]() + ")"), u & 16 && _(c, "canPlay", a[4]), u & 8 && _(v, "large", a[3] === "large"), u & 8 && _(v, "small", a[3] === "small"), u & 128 && _(m, "showPlayButton", a[7]);
46
46
  },
47
- d(l) {
48
- l && w(e), o[7](null), l && w(c), l && w(u), p = !1, S(g);
47
+ d(a) {
48
+ a && p(e), l[12](null), a && p(d), a && p(m), o = !1, A(k);
49
49
  }
50
50
  };
51
51
  }
52
- function A(o) {
53
- let e, t, n, i;
52
+ function D(l) {
53
+ let e, i, n, t;
54
54
  return {
55
55
  c() {
56
- e = m("img"), a(e, "class", "media-content svelte-cwtvzu"), a(e, "style", t = `object-fit: ${o[3]};`), b(e.src, n = o[0].url) || a(e, "src", n), a(e, "alt", i = o[0].name);
56
+ e = g("img"), f(e, "class", "media-content svelte-q6hk4f"), f(e, "style", i = `object-fit: ${l[5]};`), b(e.src, n = l[1].url) || f(e, "src", n), f(e, "alt", t = l[1].name);
57
57
  },
58
- m(s, c) {
59
- _(s, e, c);
58
+ m(s, d) {
59
+ y(s, e, d);
60
60
  },
61
- p(s, c) {
62
- c & 8 && t !== (t = `object-fit: ${s[3]};`) && a(e, "style", t), c & 1 && !b(e.src, n = s[0].url) && a(e, "src", n), c & 1 && i !== (i = s[0].name) && a(e, "alt", i);
61
+ p(s, d) {
62
+ d & 32 && i !== (i = `object-fit: ${s[5]};`) && f(e, "style", i), d & 2 && !b(e.src, n = s[1].url) && f(e, "src", n), d & 2 && t !== (t = s[1].name) && f(e, "alt", t);
63
63
  },
64
64
  d(s) {
65
- s && w(e);
65
+ s && p(e);
66
66
  }
67
67
  };
68
68
  }
69
- function D(o) {
70
- let e, t = o[0] && I(o);
69
+ function G(l) {
70
+ let e, i = l[1] && S(l);
71
71
  return {
72
72
  c() {
73
- t && t.c(), e = L();
73
+ i && i.c(), e = W();
74
74
  },
75
- m(n, i) {
76
- t && t.m(n, i), _(n, e, i);
75
+ m(n, t) {
76
+ i && i.m(n, t), y(n, e, t);
77
77
  },
78
- p(n, [i]) {
79
- n[0] ? t ? t.p(n, i) : (t = I(n), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
78
+ p(n, [t]) {
79
+ n[1] ? i ? i.p(n, t) : (i = S(n), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
80
80
  },
81
- i: y,
82
- o: y,
81
+ i: w,
82
+ o: w,
83
83
  d(n) {
84
- t && t.d(n), n && w(e);
84
+ i && i.d(n), n && p(e);
85
85
  }
86
86
  };
87
87
  }
88
- function G(o, e, t) {
89
- let { media: n } = e, { playButtonIfNeed: i = "small" } = e, { canPlay: s = !0 } = e, { objectFit: c = "cover" } = e, u, v = !1;
90
- const f = () => u == null ? void 0 : u.pause();
91
- function p(l) {
92
- q[l ? "unshift" : "push"](() => {
93
- u = l, t(4, u);
88
+ function H(l, e, i) {
89
+ let { tag: n } = e, { media: t } = e, { playButtonIfNeed: s = "withoutText" } = e, { playButtonSizeIfNeed: d = "small" } = e, { canPlay: m = !0 } = e, { objectFit: v = "cover" } = e, c = (t == null ? void 0 : t.type) === "Video" && Boolean(t == null ? void 0 : t.videoCoverUrl), o, k = !1;
90
+ const a = B("mediaStore"), u = B("hooks"), h = () => {
91
+ c || (o == null || o.play(), o == null || o.pause(), i(10, c = !0));
92
+ };
93
+ u.on("loadVideoFirstFrame", h);
94
+ const C = (r) => {
95
+ o && (o.pause(), u.emit("playStateChange", {
96
+ event: r,
97
+ state: "paused",
98
+ tag: n,
99
+ mediaInstance: o
100
+ }));
101
+ };
102
+ function L(r) {
103
+ T[r ? "unshift" : "push"](() => {
104
+ o = r, i(6, o);
94
105
  });
95
106
  }
96
- const g = () => {
97
- !s || u && u.play();
98
- };
99
- return o.$$set = (l) => {
100
- "media" in l && t(0, n = l.media), "playButtonIfNeed" in l && t(1, i = l.playButtonIfNeed), "canPlay" in l && t(2, s = l.canPlay), "objectFit" in l && t(3, c = l.objectFit);
101
- }, o.$$.update = () => {
102
- o.$$.dirty & 16 && u && (t(5, v = u.paused), u.addEventListener("play", () => {
103
- t(5, v = !1);
104
- }), u.addEventListener("pause", () => {
105
- t(5, v = !0);
107
+ const j = () => s === "withText" ? J : s === "withoutText" ? M : s, E = (r) => {
108
+ !m || o && (i(6, o.muted = !1, o), o.play(), a.set({ currentMediaElement: o }), u.emit("playStateChange", {
109
+ event: r,
110
+ state: "playing",
111
+ tag: n,
112
+ mediaInstance: o
106
113
  }));
114
+ };
115
+ return l.$$set = (r) => {
116
+ "tag" in r && i(0, n = r.tag), "media" in r && i(1, t = r.media), "playButtonIfNeed" in r && i(2, s = r.playButtonIfNeed), "playButtonSizeIfNeed" in r && i(3, d = r.playButtonSizeIfNeed), "canPlay" in r && i(4, m = r.canPlay), "objectFit" in r && i(5, v = r.objectFit);
117
+ }, l.$$.update = () => {
118
+ if (l.$$.dirty & 64 && o && (i(7, k = o.paused), o.addEventListener("play", () => {
119
+ i(7, k = !1);
120
+ }), o.addEventListener("pause", () => {
121
+ i(7, k = !0);
122
+ }), a.subscribe(({ currentMediaElement: r }) => {
123
+ r !== o && (o == null || o.pause());
124
+ })), l.$$.dirty & 1090 && (t == null ? void 0 : t.type) === "Video" && !c) {
125
+ const r = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, N = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && r;
126
+ o && N && o.paused && (document.removeEventListener("WeixinJSBridgeReady", h), document.removeEventListener("touchstart", h), document.removeEventListener("click", h), document.addEventListener("WeixinJSBridgeReady", h), document.addEventListener("touchstart", h), document.addEventListener("click", h));
127
+ }
107
128
  }, [
108
129
  n,
109
- i,
130
+ t,
110
131
  s,
111
- c,
112
- u,
132
+ d,
133
+ m,
113
134
  v,
114
- f,
115
- p,
116
- g
135
+ o,
136
+ k,
137
+ a,
138
+ u,
139
+ c,
140
+ C,
141
+ L,
142
+ j,
143
+ E
117
144
  ];
118
145
  }
119
- class K extends C {
146
+ class Z extends z {
120
147
  constructor(e) {
121
- super(), N(
148
+ super(), F(
122
149
  this,
123
150
  e,
151
+ H,
124
152
  G,
125
- D,
126
- F,
153
+ O,
127
154
  {
128
- media: 0,
129
- playButtonIfNeed: 1,
130
- canPlay: 2,
131
- objectFit: 3
155
+ tag: 0,
156
+ media: 1,
157
+ playButtonIfNeed: 2,
158
+ playButtonSizeIfNeed: 3,
159
+ canPlay: 4,
160
+ objectFit: 5
132
161
  },
133
- M
162
+ R
134
163
  );
135
164
  }
136
165
  }
137
166
  export {
138
- K as MediaItem
167
+ Z as MediaItem
139
168
  };
@@ -0,0 +1,78 @@
1
+ import { SvelteComponent as A, init as F, safe_not_equal as M, append_styles as U, element as w, space as $, create_component as D, attr as y, set_style as u, toggle_class as _, insert as B, append as f, mount_component as I, listen as E, transition_in as R, transition_out as j, detach as G, destroy_component as q, getContext as H } from "../../../vendor/svelte/internal/index.js";
2
+ import { Shadow as J } from "./Shadow.js";
3
+ import { Icon as K } from "./Icon/Icon.js";
4
+ import { Image_Default_Point as L } from "../../Assets/Icon.js";
5
+ import { px2rem as b } from "../../utils/px2rem.js";
6
+ function N(o) {
7
+ U(o, "svelte-u8kmhd", '@charset "UTF-8";.click-helper.svelte-u8kmhd.svelte-u8kmhd{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-u8kmhd.svelte-u8kmhd{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-u8kmhd.svelte-u8kmhd,.tag-unfolded-point.svelte-u8kmhd.svelte-u8kmhd{transition:all 0.5s}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:1}.tag-point-wrapper.folded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:0}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:1;scale:1}');
8
+ }
9
+ function O(o) {
10
+ let t, s, p, d, h, a, c, n, r, l, g, k;
11
+ return d = new J({
12
+ props: {
13
+ center: !0,
14
+ blurRadius: 12,
15
+ spreadRadius: 5
16
+ }
17
+ }), r = new K({
18
+ props: {
19
+ icon: o[2],
20
+ width: o[1]
21
+ }
22
+ }), {
23
+ c() {
24
+ t = w("div"), s = w("div"), p = $(), D(d.$$.fragment), h = $(), a = w("div"), c = $(), n = w("div"), D(r.$$.fragment), y(s, "class", "click-helper svelte-u8kmhd"), y(a, "class", "tag-unfolded-point svelte-u8kmhd"), u(a, "transition-delay", (o[3] ? T : 0) + "ms"), y(n, "class", "tag-folded-point svelte-u8kmhd"), u(n, "transition-delay", (o[3] ? T : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-u8kmhd"), _(t, "unfolded", o[0]), _(t, "folded", o[3]), u(t, "width", b(o[1])), u(t, "height", b(o[1]));
25
+ },
26
+ m(e, i) {
27
+ B(e, t, i), f(t, s), f(t, p), I(d, t, null), f(t, h), f(t, a), f(t, c), f(t, n), I(r, n, null), l = !0, g || (k = E(s, "click", o[4]), g = !0);
28
+ },
29
+ p(e, [i]) {
30
+ i & 8 && u(a, "transition-delay", (e[3] ? T : 0) + "ms");
31
+ const m = {};
32
+ i & 4 && (m.icon = e[2]), i & 2 && (m.width = e[1]), r.$set(m), i & 8 && u(n, "transition-delay", (e[3] ? T : 0) + "ms"), (!l || i & 1) && _(t, "unfolded", e[0]), (!l || i & 8) && _(t, "folded", e[3]), i & 2 && u(t, "width", b(e[1])), i & 2 && u(t, "height", b(e[1]));
33
+ },
34
+ i(e) {
35
+ l || (R(d.$$.fragment, e), R(r.$$.fragment, e), l = !0);
36
+ },
37
+ o(e) {
38
+ j(d.$$.fragment, e), j(r.$$.fragment, e), l = !1;
39
+ },
40
+ d(e) {
41
+ e && G(t), q(d), q(r), g = !1, k();
42
+ }
43
+ };
44
+ }
45
+ const T = 800;
46
+ function Q(o, t, s) {
47
+ let p, d, h, a;
48
+ const c = H("hooks");
49
+ let { tag: n } = t, r, l = !1;
50
+ const g = () => {
51
+ r !== void 0 && clearTimeout(r), l = !0, r = setTimeout(
52
+ () => {
53
+ l = !1;
54
+ },
55
+ 800
56
+ );
57
+ }, k = (e) => {
58
+ l || c.emit("click", { event: e, target: "TagPoint", tag: n });
59
+ };
60
+ return o.$$set = (e) => {
61
+ "tag" in e && s(5, n = e.tag);
62
+ }, o.$$.update = () => {
63
+ var e, i, m, P;
64
+ o.$$.dirty & 32 && s(0, p = (e = n.state) == null ? void 0 : e.unfolded), o.$$.dirty & 1 && s(3, d = !p), o.$$.dirty & 32 && s(2, h = (m = (i = n.style) == null ? void 0 : i.point) != null && m.url ? (P = n.style) == null ? void 0 : P.point : { url: L }), o.$$.dirty & 32 && s(1, a = (() => {
65
+ var S, z, C;
66
+ const v = (C = (z = (S = n.style) == null ? void 0 : S.point) == null ? void 0 : z.size) != null ? C : "S";
67
+ return typeof v == "number" ? v : v === "S" ? 20 : v === "M" ? 24 : 20;
68
+ })());
69
+ }, g(), [p, a, h, d, k, n];
70
+ }
71
+ class x extends A {
72
+ constructor(t) {
73
+ super(), F(this, t, Q, O, M, { tag: 5 }, N);
74
+ }
75
+ }
76
+ export {
77
+ x as TagPoint
78
+ };
@@ -0,0 +1,135 @@
1
+ import { SvelteComponent as T, init as C, safe_not_equal as F, append_styles as Y, space as q, empty as A, insert as d, transition_in as m, group_outros as h, transition_out as a, check_outros as v, detach as p, element as z, create_component as H, attr as D, set_style as y, mount_component as U, destroy_component as N, binding_callbacks as B } from "../../../../vendor/svelte/internal/index.js";
2
+ import { FlyText as M } from "./FlyText.js";
3
+ import { Arrow as j } from "../Arrow.js";
4
+ import { doUtil as G } from "../../../utils/doUtil.js";
5
+ function I(o) {
6
+ Y(o, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
7
+ }
8
+ function w(o) {
9
+ let r, t, l;
10
+ return t = new M({
11
+ props: {
12
+ unfolded: o[0],
13
+ content: o[1],
14
+ inDelay: 500,
15
+ outDelay: o[5]
16
+ }
17
+ }), {
18
+ c() {
19
+ r = z("div"), H(t.$$.fragment), D(r, "class", "text svelte-1fuzm7v"), y(r, "transform", o[7]);
20
+ },
21
+ m(e, i) {
22
+ d(e, r, i), U(t, r, null), o[10](r), l = !0;
23
+ },
24
+ p(e, i) {
25
+ const n = {};
26
+ i & 1 && (n.unfolded = e[0]), i & 2 && (n.content = e[1]), i & 32 && (n.outDelay = e[5]), t.$set(n), i & 128 && y(r, "transform", e[7]);
27
+ },
28
+ i(e) {
29
+ l || (m(t.$$.fragment, e), l = !0);
30
+ },
31
+ o(e) {
32
+ a(t.$$.fragment, e), l = !1;
33
+ },
34
+ d(e) {
35
+ e && p(r), N(t), o[10](null);
36
+ }
37
+ };
38
+ }
39
+ function k(o) {
40
+ let r, t, l;
41
+ return t = new j({
42
+ props: {
43
+ direction: o[6],
44
+ visible: o[0],
45
+ inDelay: 600,
46
+ duration: 1e3
47
+ }
48
+ }), {
49
+ c() {
50
+ r = z("div"), H(t.$$.fragment), D(r, "class", "arrow svelte-1fuzm7v");
51
+ },
52
+ m(e, i) {
53
+ d(e, r, i), U(t, r, null), l = !0;
54
+ },
55
+ p(e, i) {
56
+ const n = {};
57
+ i & 64 && (n.direction = e[6]), i & 1 && (n.visible = e[0]), t.$set(n);
58
+ },
59
+ i(e) {
60
+ l || (m(t.$$.fragment, e), l = !0);
61
+ },
62
+ o(e) {
63
+ a(t.$$.fragment, e), l = !1;
64
+ },
65
+ d(e) {
66
+ e && p(r), N(t);
67
+ }
68
+ };
69
+ }
70
+ function J(o) {
71
+ let r, t, l, e = o[1] && w(o), i = o[3] < o[4] && k(o);
72
+ return {
73
+ c() {
74
+ e && e.c(), r = q(), i && i.c(), t = A();
75
+ },
76
+ m(n, f) {
77
+ e && e.m(n, f), d(n, r, f), i && i.m(n, f), d(n, t, f), l = !0;
78
+ },
79
+ p(n, [f]) {
80
+ n[1] ? e ? (e.p(n, f), f & 2 && m(e, 1)) : (e = w(n), e.c(), m(e, 1), e.m(r.parentNode, r)) : e && (h(), a(e, 1, 1, () => {
81
+ e = null;
82
+ }), v()), n[3] < n[4] ? i ? (i.p(n, f), f & 24 && m(i, 1)) : (i = k(n), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (h(), a(i, 1, 1, () => {
83
+ i = null;
84
+ }), v());
85
+ },
86
+ i(n) {
87
+ l || (m(e), m(i), l = !0);
88
+ },
89
+ o(n) {
90
+ a(e), a(i), l = !1;
91
+ },
92
+ d(n) {
93
+ e && e.d(n), n && p(r), i && i.d(n), n && p(t);
94
+ }
95
+ };
96
+ }
97
+ function K(o, r, t) {
98
+ let l, e, i, { visible: n = !1 } = r, { textUnfolded: f = !1 } = r, { content: _ } = r, u, g = 0, b = 0, c = 0;
99
+ function S(s) {
100
+ B[s ? "unshift" : "push"](() => {
101
+ u = s, t(2, u);
102
+ });
103
+ }
104
+ return o.$$set = (s) => {
105
+ "visible" in s && t(0, n = s.visible), "textUnfolded" in s && t(8, f = s.textUnfolded), "content" in s && t(1, _ = s.content);
106
+ }, o.$$.update = () => {
107
+ if (o.$$.dirty & 7 && u && n && _) {
108
+ const { lineHeight: s } = getComputedStyle(u);
109
+ t(4, c = u.offsetHeight), G(() => u == null ? void 0 : u.offsetHeight, Boolean).then(() => {
110
+ t(4, c = u.offsetHeight);
111
+ }), t(3, b = Number(s.replace("px", "")));
112
+ }
113
+ o.$$.dirty & 280 && t(9, g = f ? b - c : 0), o.$$.dirty & 512 && t(7, l = `translateY(${g}px)`), o.$$.dirty & 256 && t(6, e = f ? "left" : "right"), o.$$.dirty & 256 && t(5, i = f ? 450 : 0);
114
+ }, [
115
+ n,
116
+ _,
117
+ u,
118
+ b,
119
+ c,
120
+ i,
121
+ e,
122
+ l,
123
+ f,
124
+ g,
125
+ S
126
+ ];
127
+ }
128
+ class R extends T {
129
+ constructor(r) {
130
+ super(), C(this, r, K, J, F, { visible: 0, textUnfolded: 8, content: 1 }, I);
131
+ }
132
+ }
133
+ export {
134
+ R as FlyMText
135
+ };
@@ -0,0 +1,147 @@
1
+ import { SvelteComponent as N, init as S, safe_not_equal as C, append_styles as L, empty as O, insert as I, update_keyed_each as w, destroy_block as z, noop as y, detach as U, element as J, text as P, attr as V, append as q, set_data as v, binding_callbacks as B } from "../../../../vendor/svelte/internal/index.js";
2
+ import E from "animejs";
3
+ import { uuid as F } from "../../../../shared-utils/uuid.js";
4
+ import { notNil as G } from "../../../../shared-utils/isNil.js";
5
+ import "three";
6
+ import { searchFirstValueSmallThanLastValue as W } from "../../../utils/search.js";
7
+ import { RANDON_STRING as k } from "../../../utils/constants.js";
8
+ function X(r) {
9
+ L(r, "svelte-zgfkts", ".text-char.svelte-zgfkts{text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
10
+ }
11
+ function j(r, e, i) {
12
+ const l = r.slice();
13
+ return l[14] = e[i].id, l[0] = e[i].content, l[15] = e, l[16] = i, l;
14
+ }
15
+ function D(r, e) {
16
+ let i, l = e[0] + "", s, u = e[16];
17
+ const t = () => e[7](i, u), o = () => e[7](null, u);
18
+ return {
19
+ key: r,
20
+ first: null,
21
+ c() {
22
+ i = J("span"), s = P(l), V(i, "class", "text-char svelte-zgfkts"), this.first = i;
23
+ },
24
+ m(a, d) {
25
+ I(a, i, d), q(i, s), t();
26
+ },
27
+ p(a, d) {
28
+ e = a, d & 4 && l !== (l = e[0] + "") && v(s, l), u !== e[16] && (o(), u = e[16], t());
29
+ },
30
+ d(a) {
31
+ a && U(i), o();
32
+ }
33
+ };
34
+ }
35
+ function Y(r) {
36
+ let e = [], i = /* @__PURE__ */ new Map(), l, s = r[2];
37
+ const u = (t) => t[14];
38
+ for (let t = 0; t < s.length; t += 1) {
39
+ let o = j(r, s, t), a = u(o);
40
+ i.set(a, e[t] = D(a, o));
41
+ }
42
+ return {
43
+ c() {
44
+ for (let t = 0; t < e.length; t += 1)
45
+ e[t].c();
46
+ l = O();
47
+ },
48
+ m(t, o) {
49
+ for (let a = 0; a < e.length; a += 1)
50
+ e[a].m(t, o);
51
+ I(t, l, o);
52
+ },
53
+ p(t, [o]) {
54
+ o & 6 && (s = t[2], e = w(e, o, u, 1, t, s, i, l.parentNode, z, D, l, j));
55
+ },
56
+ i: y,
57
+ o: y,
58
+ d(t) {
59
+ for (let o = 0; o < e.length; o += 1)
60
+ e[o].d(t);
61
+ t && U(l);
62
+ }
63
+ };
64
+ }
65
+ function H(r, e, i) {
66
+ let l, { inDelay: s = 0 } = e, { outDelay: u = 0 } = e, { content: t } = e, { unfolded: o } = e, { isFistUnfoldedUpdate: a = !0 } = e, d, c, h = [];
67
+ function M(n) {
68
+ const f = [], g = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), _ = `__EMOJI_SPLIT_${k}__`, p = `__EMOJI_${k}__`;
69
+ return n.slice().replace(g, (m) => `${_}${p}${m}${_}`).split(_).forEach((m) => m.startsWith(p) ? f.push({
70
+ id: F(),
71
+ content: m.slice(p.length)
72
+ }) : f.push(...m.split("").map((A) => ({ id: F(), content: A })))), f;
73
+ }
74
+ function b() {
75
+ if (!c)
76
+ return;
77
+ const n = !o;
78
+ c.reversed !== n && c.reverse(), c.play();
79
+ }
80
+ function R(n) {
81
+ if (a) {
82
+ i(3, a = !1);
83
+ return;
84
+ }
85
+ clearTimeout(d), d = setTimeout(b, n ? s : u);
86
+ }
87
+ function x(n) {
88
+ const f = function() {
89
+ const g = W((_) => n[_].getBoundingClientRect().x, [Math.min(n.length - 1, 10), Math.min(n.length - 1, 30)]);
90
+ if (g > 0)
91
+ return g;
92
+ }();
93
+ c = E({
94
+ targets: n.slice(0, f).filter(G),
95
+ autoplay: !1,
96
+ duration: 400,
97
+ scale: [0.7, 1],
98
+ rotate: [20, 0],
99
+ opacity: [0, 1],
100
+ translateX: [4, 0],
101
+ translateY: [10, 0],
102
+ delay: E.stagger(50),
103
+ easing: "easeInOutCubic"
104
+ }), o && c.seek(c.duration);
105
+ }
106
+ function T(n, f) {
107
+ B[n ? "unshift" : "push"](() => {
108
+ h[f] = n, i(1, h);
109
+ });
110
+ }
111
+ return r.$$set = (n) => {
112
+ "inDelay" in n && i(4, s = n.inDelay), "outDelay" in n && i(5, u = n.outDelay), "content" in n && i(0, t = n.content), "unfolded" in n && i(6, o = n.unfolded), "isFistUnfoldedUpdate" in n && i(3, a = n.isFistUnfoldedUpdate);
113
+ }, r.$$.update = () => {
114
+ r.$$.dirty & 1 && i(2, l = M(t)), r.$$.dirty & 64 && R(o), r.$$.dirty & 2 && x(h.filter((n) => !!n));
115
+ }, [
116
+ t,
117
+ h,
118
+ l,
119
+ a,
120
+ s,
121
+ u,
122
+ o,
123
+ T
124
+ ];
125
+ }
126
+ class ie extends N {
127
+ constructor(e) {
128
+ super(), S(
129
+ this,
130
+ e,
131
+ H,
132
+ Y,
133
+ C,
134
+ {
135
+ inDelay: 4,
136
+ outDelay: 5,
137
+ content: 0,
138
+ unfolded: 6,
139
+ isFistUnfoldedUpdate: 3
140
+ },
141
+ X
142
+ );
143
+ }
144
+ }
145
+ export {
146
+ ie as FlyText
147
+ };