@realsee/dnalogel 2.6.7-dev.6 → 2.6.7-dev.7

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 (314) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  2. package/dist/index.cjs.js +55 -56
  3. package/dist/index.js +5573 -6431
  4. package/dist/index.umd.js +48 -49
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +24 -24
  7. package/docs/classes/Magnifier.html +20 -20
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  12. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  13. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  14. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  15. package/docs/classes/PanoTagPluginController.html +46 -46
  16. package/docs/classes/Util.BetterTween.html +8 -8
  17. package/docs/classes/Util.FivePointSelector.html +12 -12
  18. package/docs/classes/Util.Interval.html +12 -12
  19. package/docs/classes/Util.Magnifier.html +17 -17
  20. package/docs/classes/Util.PointDomHelper.html +11 -11
  21. package/docs/classes/Util.PointHelper.html +11 -11
  22. package/docs/classes/Util.Rectangle.html +13 -13
  23. package/docs/enums/CameraMovementEffect.html +7 -7
  24. package/docs/enums/ContentType.html +18 -18
  25. package/docs/enums/DIRECTION.html +9 -9
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  27. package/docs/enums/DimensionType.html +7 -7
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  31. package/docs/enums/PointType.html +7 -7
  32. package/docs/enums/Rotation.html +8 -8
  33. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  34. package/docs/functions/CameraMovementPlugin.html +5 -5
  35. package/docs/functions/CruisePlugin.html +5 -5
  36. package/docs/functions/GuideLinePlugin.html +5 -5
  37. package/docs/functions/ItemLabelPlugin.html +5 -5
  38. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  39. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  40. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  41. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  42. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  43. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  44. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  45. package/docs/functions/ModelViewPlugin.html +5 -5
  46. package/docs/functions/Object3DHelperPlugin.html +5 -5
  47. package/docs/functions/PanoCompassPlugin.html +5 -5
  48. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  49. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  50. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  51. package/docs/functions/PanoMeasurePlugin.html +5 -5
  52. package/docs/functions/PanoRulerPlugin.html +5 -5
  53. package/docs/functions/PanoRulerProPlugin.html +5 -5
  54. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  55. package/docs/functions/PanoTagPlugin.html +5 -5
  56. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  57. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  58. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  59. package/docs/functions/Util.getFrameTime.html +5 -5
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  62. package/docs/functions/Util.isNil.html +5 -5
  63. package/docs/functions/Util.nextFrame.html +5 -5
  64. package/docs/functions/Util.notNil.html +5 -5
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  66. package/docs/functions/Util.tweenProgress.html +5 -5
  67. package/docs/functions/pluginFlag.html +5 -5
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +6 -6
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  71. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  72. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  73. package/docs/interfaces/EventMap.html +15 -15
  74. package/docs/interfaces/FloorplanBounding.html +8 -8
  75. package/docs/interfaces/FloorplanData.html +10 -10
  76. package/docs/interfaces/FloorplanEntrance.html +11 -11
  77. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  78. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  79. package/docs/interfaces/FloorplanFloorData.html +9 -9
  80. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  81. package/docs/interfaces/FloorplanObserver.html +9 -9
  82. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  83. package/docs/interfaces/FloorplanPosition.html +7 -7
  84. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  86. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  87. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  88. package/docs/interfaces/FloorplanServerData.html +7 -7
  89. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  91. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  99. package/docs/interfaces/HelperOffset.html +8 -8
  100. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  103. package/docs/interfaces/MinMax.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  107. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  108. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  109. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  110. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  111. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  112. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  114. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  115. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  116. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  117. package/docs/interfaces/Object3DHelperState.html +8 -8
  118. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  119. package/docs/interfaces/PaintBrushAction.html +12 -12
  120. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  121. package/docs/interfaces/PaintBrushState.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  124. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  125. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  126. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  127. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  129. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  130. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  131. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  132. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  133. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  136. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  137. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  139. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  140. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  141. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  142. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  143. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  144. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  145. package/docs/interfaces/Point.html +8 -8
  146. package/docs/interfaces/Room.html +9 -9
  147. package/docs/interfaces/RoomInfo.html +7 -7
  148. package/docs/interfaces/RoomLabel.html +14 -14
  149. package/docs/interfaces/RoomRules.html +5 -5
  150. package/docs/interfaces/Rooms.html +5 -5
  151. package/docs/interfaces/Scissor.html +9 -9
  152. package/docs/interfaces/State.html +8 -8
  153. package/docs/interfaces/TagCache.html +12 -12
  154. package/docs/interfaces/TagConfig.html +10 -10
  155. package/docs/interfaces/TagIconUrl.html +9 -9
  156. package/docs/interfaces/Tags.html +9 -9
  157. package/docs/interfaces/TemporaryState.html +6 -6
  158. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  159. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  160. package/docs/modules/Util.html +5 -5
  161. package/docs/modules.html +4 -4
  162. package/docs/types/ArrayPosition.html +5 -5
  163. package/docs/types/AudioAppearance.html +5 -5
  164. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  165. package/docs/types/CSS3DRenderExportType.html +5 -5
  166. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  167. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  168. package/docs/types/ClassFunctionParameters.html +5 -5
  169. package/docs/types/Color.html +5 -5
  170. package/docs/types/ContentTypeConfigKey.html +5 -5
  171. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  172. package/docs/types/ContentTypeMap.html +5 -5
  173. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  174. package/docs/types/Create3DElementReturnType.html +5 -5
  175. package/docs/types/CruisePluginExportType.html +5 -5
  176. package/docs/types/Direction-1.html +5 -5
  177. package/docs/types/Direction4.html +5 -5
  178. package/docs/types/FloorplanRuleLabels.html +5 -5
  179. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  180. package/docs/types/GuideLinePluginExportType.html +5 -5
  181. package/docs/types/HelperEventMap.html +5 -5
  182. package/docs/types/LoadTagConfig.html +5 -5
  183. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  184. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  185. package/docs/types/MediaData.html +5 -5
  186. package/docs/types/MediaStore.html +5 -5
  187. package/docs/types/ModelElement.html +5 -5
  188. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  189. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  190. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  191. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  192. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  193. package/docs/types/MoveArgs.html +5 -5
  194. package/docs/types/MoveOpts.html +5 -5
  195. package/docs/types/Object3DHelperEventMap.html +5 -5
  196. package/docs/types/ObjectFit.html +5 -5
  197. package/docs/types/PaintBrushEventMap.html +5 -5
  198. package/docs/types/PanoCompassPluginData.html +5 -5
  199. package/docs/types/PanoCompassPluginExportType.html +5 -5
  200. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  201. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  202. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  203. package/docs/types/PanoIndex.html +5 -5
  204. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  205. package/docs/types/PanoMeasureReturnType.html +5 -5
  206. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  207. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  208. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  209. package/docs/types/PlaneTag.html +5 -5
  210. package/docs/types/PlaneTagElement.html +5 -5
  211. package/docs/types/Point2DElement.html +5 -5
  212. package/docs/types/Point2DTag.html +5 -5
  213. package/docs/types/Point3DElement.html +5 -5
  214. package/docs/types/Point3DTag.html +5 -5
  215. package/docs/types/PointTag.html +5 -5
  216. package/docs/types/PointTagElement.html +5 -5
  217. package/docs/types/Position.html +5 -5
  218. package/docs/types/RotateArgs.html +5 -5
  219. package/docs/types/RotateOpts.html +5 -5
  220. package/docs/types/RuleLabelsKey.html +5 -5
  221. package/docs/types/RuleLabelsValue.html +5 -5
  222. package/docs/types/StickType.html +5 -5
  223. package/docs/types/Tag.html +5 -5
  224. package/docs/types/Tag2D.html +5 -5
  225. package/docs/types/Tag3D.html +5 -5
  226. package/docs/types/TagContentType.html +5 -5
  227. package/docs/types/TagDimensionType.html +5 -5
  228. package/docs/types/TagElement.html +5 -5
  229. package/docs/types/TagEvents.html +5 -5
  230. package/docs/types/TagGLTFObject.html +5 -5
  231. package/docs/types/TagHooks.html +5 -5
  232. package/docs/types/TagIconSize.html +5 -5
  233. package/docs/types/TagId.html +5 -5
  234. package/docs/types/TagPointType.html +5 -5
  235. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  236. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  237. package/docs/types/WorkCode.html +5 -5
  238. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  239. package/docs/variables/PLUGIN.html +5 -5
  240. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  241. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  242. package/docs/variables/VERSION.html +5 -5
  243. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  244. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  245. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  246. package/libs/CruisePlugin/Controller.js +26 -26
  247. package/libs/GuideLinePlugin/Controller.js +43 -43
  248. package/libs/PanoTagPlugin/Components/Common/Media.js +299 -254
  249. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +122 -132
  250. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +67 -84
  251. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +64 -80
  252. package/libs/PanoTagPlugin/Components/Tag/index.js +62 -79
  253. package/libs/PanoTagPlugin/Components/TagContainer.js +75 -92
  254. package/libs/PanoTagPlugin/Components/TagItem.js +47 -64
  255. package/libs/PanoTagPlugin/controller/TagComputer.js +49 -48
  256. package/libs/PanoTagPlugin/controller/index.js +37 -54
  257. package/libs/PanoTagPlugin/index.js +18 -35
  258. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
  259. package/libs/index.js +107 -124
  260. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
  261. package/libs/vendor/svelte/internal/index.js +162 -176
  262. package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
  263. package/libs/vendor/swiper/components-shared/get-params.js +23 -1
  264. package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
  265. package/libs/vendor/swiper/components-shared/params-list.js +120 -1
  266. package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
  267. package/libs/vendor/swiper/components-shared/utils.js +28 -5
  268. package/libs/vendor/swiper/svelte/swiper.js +253 -2
  269. package/package.json +1 -3
  270. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  271. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  272. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  273. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  274. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  275. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  276. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  277. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  278. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  279. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  280. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  281. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  282. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  283. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  284. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  285. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  286. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  287. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  288. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
  289. package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +0 -18
  290. package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +0 -19
  291. package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +0 -1
  292. package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +0 -26
  293. package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +0 -1
  294. package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +0 -51
  295. package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +0 -18
  296. package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +0 -1
  297. package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +0 -36
  298. package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +0 -41
  299. package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +0 -522
  300. package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +0 -255
  301. package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +0 -42
  302. package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +0 -104
  303. package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +0 -40
  304. package/libs/vendor/svelte-carousel/src/direction.js +0 -5
  305. package/libs/vendor/svelte-carousel/src/main.js +0 -1
  306. package/libs/vendor/svelte-carousel/src/units.js +0 -7
  307. package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +0 -52
  308. package/libs/vendor/svelte-carousel/src/utils/clones.js +0 -59
  309. package/libs/vendor/svelte-carousel/src/utils/event.js +0 -12
  310. package/libs/vendor/svelte-carousel/src/utils/interval.js +0 -4
  311. package/libs/vendor/svelte-carousel/src/utils/lazy.js +0 -45
  312. package/libs/vendor/svelte-carousel/src/utils/math.js +0 -11
  313. package/libs/vendor/svelte-carousel/src/utils/object.js +0 -13
  314. package/libs/vendor/svelte-carousel/src/utils/page.js +0 -154
@@ -1,255 +0,0 @@
1
- var i = (s, r, l) => new Promise((a, c) => {
2
- var f = (t) => {
3
- try {
4
- o(l.next(t));
5
- } catch (n) {
6
- c(n);
7
- }
8
- }, e = (t) => {
9
- try {
10
- o(l.throw(t));
11
- } catch (n) {
12
- c(n);
13
- }
14
- }, o = (t) => t.done ? a(t.value) : Promise.resolve(t.value).then(f, e);
15
- o((l = l.apply(s, r)).next());
16
- });
17
- import S from "simply-reactive";
18
- import { NEXT as C, PREV as g } from "../../direction.js";
19
- import { getCurrentPageIndexByCurrentParticleIndex as I, getPartialPageSize as h, getPagesCountByParticlesCount as w, getParticleIndexByPageIndex as u } from "../../utils/page.js";
20
- import { getClonesCount as x } from "../../utils/clones.js";
21
- import { getAdjacentIndexes as y } from "../../utils/lazy.js";
22
- import { getValueInRange as p } from "../../utils/math.js";
23
- import { get as P, switcher as m } from "../../utils/object.js";
24
- import { ProgressManager as d } from "../../utils/ProgressManager.js";
25
- function A(s) {
26
- const r = new d({
27
- onProgressValueChange: (e) => {
28
- s("progressValue", 1 - e);
29
- }
30
- }), l = S(
31
- {
32
- data: {
33
- particlesCountWithoutClones: 0,
34
- particlesToShow: 1,
35
- particlesToShowInit: 1,
36
- particlesToScroll: 1,
37
- particlesToScrollInit: 1,
38
- particlesCount: 1,
39
- currentParticleIndex: 1,
40
- infinite: !1,
41
- autoplayDuration: 1e3,
42
- clonesCountHead: 0,
43
- clonesCountTail: 0,
44
- clonesCountTotal: 0,
45
- partialPageSize: 1,
46
- currentPageIndex: 1,
47
- pagesCount: 1,
48
- pauseOnFocus: !1,
49
- focused: !1,
50
- autoplay: !1,
51
- autoplayDirection: "next",
52
- disabled: !1,
53
- durationMsInit: 1e3,
54
- durationMs: 1e3,
55
- offset: 0,
56
- particleWidth: 0,
57
- loaded: []
58
- },
59
- watch: {
60
- setLoaded({ data: e }) {
61
- e.loaded = y({
62
- infinite: e.infinite,
63
- pageIndex: e.currentPageIndex,
64
- pagesCount: e.pagesCount,
65
- particlesCount: e.particlesCountWithoutClones,
66
- particlesToShow: e.particlesToShow,
67
- particlesToScroll: e.particlesToScroll
68
- }).particleIndexes;
69
- },
70
- setCurrentPageIndex({ data: e }) {
71
- e.currentPageIndex = I({
72
- currentParticleIndex: e.currentParticleIndex,
73
- particlesCount: e.particlesCount,
74
- clonesCountHead: e.clonesCountHead,
75
- clonesCountTotal: e.clonesCountTotal,
76
- infinite: e.infinite,
77
- particlesToScroll: e.particlesToScroll
78
- });
79
- },
80
- setPartialPageSize({ data: e }) {
81
- e.partialPageSize = h({
82
- particlesToScroll: e.particlesToScroll,
83
- particlesToShow: e.particlesToShow,
84
- particlesCountWithoutClones: e.particlesCountWithoutClones
85
- });
86
- },
87
- setClonesCount({ data: e }) {
88
- const { head: o, tail: t } = x({
89
- infinite: e.infinite,
90
- particlesToShow: e.particlesToShow,
91
- partialPageSize: e.partialPageSize
92
- });
93
- e.clonesCountHead = o, e.clonesCountTail = t, e.clonesCountTotal = o + t;
94
- },
95
- setProgressManagerAutoplayDuration({ data: e }) {
96
- r.setAutoplayDuration(e.autoplayDuration);
97
- },
98
- toggleProgressManager({ data: { pauseOnFocus: e, focused: o } }) {
99
- e && (o ? r.pause() : r.resume());
100
- },
101
- initDuration({ data: e }) {
102
- e.durationMs = e.durationMsInit;
103
- },
104
- applyAutoplay({ data: e, methods: { _applyAutoplayIfNeeded: o } }) {
105
- e.autoplay && o(e.autoplay);
106
- },
107
- setPagesCount({ data: e }) {
108
- e.pagesCount = w({
109
- infinite: e.infinite,
110
- particlesCountWithoutClones: e.particlesCountWithoutClones,
111
- particlesToScroll: e.particlesToScroll,
112
- particlesToShow: e.particlesToShow
113
- });
114
- },
115
- setParticlesToShow({ data: e }) {
116
- e.particlesToShow = p(
117
- 1,
118
- e.particlesToShowInit,
119
- e.particlesCountWithoutClones
120
- );
121
- },
122
- setParticlesToScroll({ data: e }) {
123
- e.particlesToScroll = p(
124
- 1,
125
- e.particlesToScrollInit,
126
- e.particlesCountWithoutClones
127
- );
128
- }
129
- },
130
- methods: {
131
- _prev({ data: e }) {
132
- e.currentParticleIndex = u({
133
- infinite: e.infinite,
134
- pageIndex: e.currentPageIndex - 1,
135
- clonesCountHead: e.clonesCountHead,
136
- clonesCountTail: e.clonesCountTail,
137
- particlesToScroll: e.particlesToScroll,
138
- particlesCount: e.particlesCount,
139
- particlesToShow: e.particlesToShow
140
- });
141
- },
142
- _next({ data: e }) {
143
- e.currentParticleIndex = u({
144
- infinite: e.infinite,
145
- pageIndex: e.currentPageIndex + 1,
146
- clonesCountHead: e.clonesCountHead,
147
- clonesCountTail: e.clonesCountTail,
148
- particlesToScroll: e.particlesToScroll,
149
- particlesCount: e.particlesCount,
150
- particlesToShow: e.particlesToShow
151
- });
152
- },
153
- _moveToParticle({ data: e }, o) {
154
- e.currentParticleIndex = p(
155
- 0,
156
- o,
157
- e.particlesCount - 1
158
- );
159
- },
160
- toggleFocused({ data: e }) {
161
- e.focused = !e.focused;
162
- },
163
- _applyAutoplayIfNeeded(t) {
164
- return i(this, arguments, function* ({ data: e, methods: o }) {
165
- if (!e.infinite && (e.autoplayDirection === C && e.currentParticleIndex === e.particlesCount - 1 || e.autoplayDirection === g && e.currentParticleIndex === 0)) {
166
- r.reset();
167
- return;
168
- }
169
- if (e.autoplay) {
170
- const n = () => m({
171
- [C]: () => i(this, null, function* () {
172
- return o.showNextPage();
173
- }),
174
- [g]: () => i(this, null, function* () {
175
- return o.showPrevPage();
176
- })
177
- })(e.autoplayDirection);
178
- yield r.start(n);
179
- }
180
- });
181
- },
182
- _jumpIfNeeded(t) {
183
- return i(this, arguments, function* ({ data: e, methods: o }) {
184
- let n = !1;
185
- return e.infinite && (e.currentParticleIndex === 0 ? (yield o.showParticle(
186
- e.particlesCount - e.clonesCountTotal,
187
- {
188
- animated: !1
189
- }
190
- ), n = !0) : e.currentParticleIndex === e.particlesCount - e.clonesCountTail && (yield o.showParticle(e.clonesCountHead, {
191
- animated: !1
192
- }), n = !0)), n;
193
- });
194
- },
195
- changePage(F, R, T) {
196
- return i(this, arguments, function* ({ data: e, methods: o }, t, n) {
197
- if (r.reset(), e.disabled)
198
- return;
199
- e.disabled = !0, t(), yield o.offsetPage({ animated: P(n, "animated", !0) }), e.disabled = !1, !(yield o._jumpIfNeeded()) && o._applyAutoplayIfNeeded();
200
- });
201
- },
202
- showNextPage(n, F) {
203
- return i(this, arguments, function* ({ data: e, methods: o }, t) {
204
- e.disabled || (yield o.changePage(o._next, t));
205
- });
206
- },
207
- showPrevPage(n, F) {
208
- return i(this, arguments, function* ({ data: e, methods: o }, t) {
209
- e.disabled || (yield o.changePage(o._prev, t));
210
- });
211
- },
212
- showParticle(n, F, R) {
213
- return i(this, arguments, function* ({ methods: e }, o, t) {
214
- yield e.changePage(
215
- () => e._moveToParticle(o),
216
- t
217
- );
218
- });
219
- },
220
- _getParticleIndexByPageIndex({ data: e }, o) {
221
- return u({
222
- infinite: e.infinite,
223
- pageIndex: o,
224
- clonesCountHead: e.clonesCountHead,
225
- clonesCountTail: e.clonesCountTail,
226
- particlesToScroll: e.particlesToScroll,
227
- particlesCount: e.particlesCount,
228
- particlesToShow: e.particlesToShow
229
- });
230
- },
231
- showPage(n, F, R) {
232
- return i(this, arguments, function* ({ methods: e }, o, t) {
233
- const T = e._getParticleIndexByPageIndex(o);
234
- yield e.showParticle(T, t);
235
- });
236
- },
237
- offsetPage({ data: e }, o) {
238
- const t = P(o, "animated", !0);
239
- return new Promise((n) => {
240
- e.durationMs = t ? e.durationMsInit : 0, e.offset = -e.currentParticleIndex * e.particleWidth, setTimeout(() => {
241
- n();
242
- }, e.durationMs);
243
- });
244
- }
245
- }
246
- },
247
- {
248
- onChange: s
249
- }
250
- ), [a, c] = l;
251
- return [{ data: a, progressManager: r }, c, l._internal];
252
- }
253
- export {
254
- A as createCarousel
255
- };
@@ -1,42 +0,0 @@
1
- import { SvelteComponent as r, init as l, safe_not_equal as d, append_styles as h, element as u, attr as v, toggle_class as a, insert as _, listen as m, noop as n, detach as p, bubble as g } from "../../../../svelte/internal/index.js";
2
- function f(e) {
3
- h(e, "svelte-1mgyhhn", `:root{--sc-dot-size:6px;--sc-active-dot-size:8px;--sc-dot-size-animation-time:250ms}.sc-carousel-dot__dot.svelte-1mgyhhn{background-color:var(--sc-color-rgb-light);border-radius:50%;display:inline-block;opacity:0.5;transition:opacity 100ms ease,\r
4
- height var(--sc-dot-size-animation-time) ease,\r
5
- width var(--sc-dot-size-animation-time) ease;cursor:pointer;-webkit-tap-highlight-color:transparent;height:var(--sc-dot-size);width:var(--sc-dot-size)}.sc-carousel-dot__dot.svelte-1mgyhhn:hover{opacity:0.9}.sc-carousel-dot__dot_active.svelte-1mgyhhn{opacity:0.7;height:var(--sc-active-dot-size);width:var(--sc-active-dot-size)}`);
6
- }
7
- function b(e) {
8
- let t, s, c;
9
- return {
10
- c() {
11
- t = u("button"), v(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), a(t, "sc-carousel-dot__dot_active", e[0]);
12
- },
13
- m(i, o) {
14
- _(i, t, o), s || (c = m(t, "click", e[1]), s = !0);
15
- },
16
- p(i, [o]) {
17
- o & 1 && a(t, "sc-carousel-dot__dot_active", i[0]);
18
- },
19
- i: n,
20
- o: n,
21
- d(i) {
22
- i && p(t), s = !1, c();
23
- }
24
- };
25
- }
26
- function y(e, t, s) {
27
- let { active: c = !1 } = t;
28
- function i(o) {
29
- g.call(this, e, o);
30
- }
31
- return e.$$set = (o) => {
32
- "active" in o && s(0, c = o.active);
33
- }, [c, i];
34
- }
35
- class k extends r {
36
- constructor(t) {
37
- super(), l(this, t, y, b, d, { active: 0 }, f);
38
- }
39
- }
40
- export {
41
- k as Dot
42
- };
@@ -1,104 +0,0 @@
1
- import { SvelteComponent as v, init as k, safe_not_equal as y, append_styles as x, element as f, attr as _, insert as g, group_outros as C, update_keyed_each as w, outro_and_destroy_block as D, check_outros as I, transition_in as h, transition_out as p, detach as m, createEventDispatcher as P, create_component as b, space as j, mount_component as z, append as A, destroy_component as q } from "../../../../svelte/internal/index.js";
2
- import { Dot as E } from "../Dot/Dot.js";
3
- function M(l) {
4
- x(l, "svelte-670fde", ".sc-carousel-dots__container.svelte-670fde{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 30px}.sc-carousel-dots__dot-container.svelte-670fde{height:calc(var(--sc-dot-size) + 14px);width:calc(var(--sc-dot-size) + 10px);display:flex;align-items:center;justify-content:center}");
5
- }
6
- function u(l, c, n) {
7
- const r = l.slice();
8
- return r[5] = c[n], r[7] = n, r;
9
- }
10
- function d(l, c) {
11
- let n, r, a, o;
12
- function i() {
13
- return c[3](c[7]);
14
- }
15
- return r = new E({
16
- props: {
17
- active: c[1] === c[7]
18
- }
19
- }), r.$on("click", i), {
20
- key: l,
21
- first: null,
22
- c() {
23
- n = f("div"), b(r.$$.fragment), a = j(), _(n, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = n;
24
- },
25
- m(t, e) {
26
- g(t, n, e), z(r, n, null), A(n, a), o = !0;
27
- },
28
- p(t, e) {
29
- c = t;
30
- const s = {};
31
- e & 3 && (s.active = c[1] === c[7]), r.$set(s);
32
- },
33
- i(t) {
34
- o || (h(r.$$.fragment, t), o = !0);
35
- },
36
- o(t) {
37
- p(r.$$.fragment, t), o = !1;
38
- },
39
- d(t) {
40
- t && m(n), q(r);
41
- }
42
- };
43
- }
44
- function S(l) {
45
- let c, n = [], r = /* @__PURE__ */ new Map(), a, o = Array(l[0]);
46
- const i = (t) => t[7];
47
- for (let t = 0; t < o.length; t += 1) {
48
- let e = u(l, o, t), s = i(e);
49
- r.set(s, n[t] = d(s, e));
50
- }
51
- return {
52
- c() {
53
- c = f("div");
54
- for (let t = 0; t < n.length; t += 1)
55
- n[t].c();
56
- _(c, "class", "sc-carousel-dots__container svelte-670fde");
57
- },
58
- m(t, e) {
59
- g(t, c, e);
60
- for (let s = 0; s < n.length; s += 1)
61
- n[s].m(c, null);
62
- a = !0;
63
- },
64
- p(t, [e]) {
65
- e & 7 && (o = Array(t[0]), C(), n = w(n, e, i, 1, t, o, r, c, D, d, null, u), I());
66
- },
67
- i(t) {
68
- if (!a) {
69
- for (let e = 0; e < o.length; e += 1)
70
- h(n[e]);
71
- a = !0;
72
- }
73
- },
74
- o(t) {
75
- for (let e = 0; e < n.length; e += 1)
76
- p(n[e]);
77
- a = !1;
78
- },
79
- d(t) {
80
- t && m(c);
81
- for (let e = 0; e < n.length; e += 1)
82
- n[e].d();
83
- }
84
- };
85
- }
86
- function B(l, c, n) {
87
- const r = P();
88
- let { pagesCount: a = 1 } = c, { currentPageIndex: o = 0 } = c;
89
- function i(e) {
90
- r("pageChange", e);
91
- }
92
- const t = (e) => i(e);
93
- return l.$$set = (e) => {
94
- "pagesCount" in e && n(0, a = e.pagesCount), "currentPageIndex" in e && n(1, o = e.currentPageIndex);
95
- }, [a, o, i, t];
96
- }
97
- class H extends v {
98
- constructor(c) {
99
- super(), k(this, c, B, S, y, { pagesCount: 0, currentPageIndex: 1 }, M);
100
- }
101
- }
102
- export {
103
- H as Dots
104
- };
@@ -1,40 +0,0 @@
1
- import { SvelteComponent as d, init as l, safe_not_equal as u, append_styles as f, element as _, attr as h, set_style as o, insert as p, noop as a, detach as v } from "../../../../svelte/internal/index.js";
2
- function m(t) {
3
- f(t, "svelte-i7yfid", ".sc-carousel-progress__indicator.svelte-i7yfid{height:100%;background-color:var(--sc-color-hex-dark-50p)}");
4
- }
5
- function g(t) {
6
- let e;
7
- return {
8
- c() {
9
- e = _("div"), h(e, "class", "sc-carousel-progress__indicator svelte-i7yfid"), o(e, "width", t[0] + "%");
10
- },
11
- m(i, s) {
12
- p(i, e, s);
13
- },
14
- p(i, [s]) {
15
- s & 1 && o(e, "width", i[0] + "%");
16
- },
17
- i: a,
18
- o: a,
19
- d(i) {
20
- i && v(e);
21
- }
22
- };
23
- }
24
- const c = 100;
25
- function y(t, e, i) {
26
- let s, { value: r = 0 } = e;
27
- return t.$$set = (n) => {
28
- "value" in n && i(1, r = n.value);
29
- }, t.$$.update = () => {
30
- t.$$.dirty & 2 && i(0, s = Math.min(Math.max(r * c, 0), c));
31
- }, [s, r];
32
- }
33
- class w extends d {
34
- constructor(e) {
35
- super(), l(this, e, y, g, u, { value: 1 }, m);
36
- }
37
- }
38
- export {
39
- w as Progress
40
- };
@@ -1,5 +0,0 @@
1
- const t = "prev", e = "next";
2
- export {
3
- e as NEXT,
4
- t as PREV
5
- };
@@ -1 +0,0 @@
1
- import "./components/Carousel/Carousel.js";
@@ -1,7 +0,0 @@
1
- const _ = 110, I = 9, M = 111, N = 20;
2
- export {
3
- N as SWIPE_MIN_DISTANCE_PX,
4
- M as SWIPE_MIN_DURATION_MS,
5
- _ as TAP_DURATION_MS,
6
- I as TAP_MOVEMENT_PX
7
- };
@@ -1,52 +0,0 @@
1
- var h = (u, t, e) => new Promise((a, r) => {
2
- var i = (s) => {
3
- try {
4
- o(e.next(s));
5
- } catch (n) {
6
- r(n);
7
- }
8
- }, _ = (s) => {
9
- try {
10
- o(e.throw(s));
11
- } catch (n) {
12
- r(n);
13
- }
14
- }, o = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(i, _);
15
- o((e = e.apply(u, t)).next());
16
- });
17
- import { setIntervalImmediate as p } from "./interval.js";
18
- const g = 35, l = 1;
19
- class P {
20
- constructor({ onProgressValueChange: t }) {
21
- this._onProgressValueChange = t, this._autoplayDuration, this._onProgressValueChange, this._interval, this._paused = !1;
22
- }
23
- setAutoplayDuration(t) {
24
- this._autoplayDuration = t;
25
- }
26
- start(t) {
27
- return new Promise((e) => {
28
- this.reset();
29
- const a = Math.min(g, Math.max(this._autoplayDuration, 1));
30
- let r = -a;
31
- this._interval = p(() => h(this, null, function* () {
32
- if (this._paused)
33
- return;
34
- r += a;
35
- const i = r / this._autoplayDuration;
36
- this._onProgressValueChange(i), i > l && (this.reset(), yield t(), e());
37
- }), a);
38
- });
39
- }
40
- pause() {
41
- this._paused = !0;
42
- }
43
- resume() {
44
- this._paused = !1;
45
- }
46
- reset() {
47
- clearInterval(this._interval), this._onProgressValueChange(l);
48
- }
49
- }
50
- export {
51
- P as ProgressManager
52
- };
@@ -1,59 +0,0 @@
1
- var g = Object.defineProperty, p = Object.defineProperties;
2
- var a = Object.getOwnPropertyDescriptors;
3
- var f = Object.getOwnPropertySymbols;
4
- var i = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
5
- var h = (n, t, e) => t in n ? g(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, s = (n, t) => {
6
- for (var e in t || (t = {}))
7
- i.call(t, e) && h(n, e, t[e]);
8
- if (f)
9
- for (var e of f(t))
10
- r.call(t, e) && h(n, e, t[e]);
11
- return n;
12
- }, d = (n, t) => p(n, a(t));
13
- function N({
14
- clonesCountHead: n,
15
- clonesCountTail: t,
16
- particlesContainerChildren: e
17
- }) {
18
- const o = [];
19
- for (let l = 0; l < t; l++)
20
- o.push(e[l].cloneNode(!0));
21
- const u = [], c = e.length;
22
- for (let l = c - 1; l > c - 1 - n; l--)
23
- u.push(e[l].cloneNode(!0));
24
- return {
25
- clonesToAppend: o,
26
- clonesToPrepend: u
27
- };
28
- }
29
- function x({
30
- particlesContainer: n,
31
- clonesToAppend: t,
32
- clonesToPrepend: e
33
- }) {
34
- for (let o = 0; o < t.length; o++)
35
- n.append(t[o]);
36
- for (let o = 0; o < e.length; o++)
37
- n.prepend(e[o]);
38
- }
39
- function y({
40
- infinite: n,
41
- particlesToShow: t,
42
- partialPageSize: e
43
- }) {
44
- const o = n ? {
45
- head: Math.ceil(e || t),
46
- tail: Math.ceil(t)
47
- } : {
48
- head: 0,
49
- tail: 0
50
- };
51
- return d(s({}, o), {
52
- total: o.head + o.tail
53
- });
54
- }
55
- export {
56
- x as applyClones,
57
- N as getClones,
58
- y as getClonesCount
59
- };
@@ -1,12 +0,0 @@
1
- function c(t) {
2
- return function(e, n) {
3
- t.dispatchEvent(
4
- new CustomEvent(e, {
5
- detail: n
6
- })
7
- );
8
- };
9
- }
10
- export {
11
- c as createDispatcher
12
- };
@@ -1,4 +0,0 @@
1
- const r = (e, t) => (e(), setInterval(e, t));
2
- export {
3
- r as setIntervalImmediate
4
- };
@@ -1,45 +0,0 @@
1
- import { getValueInRange as i } from "./math.js";
2
- function l({
3
- pageIndex: r,
4
- particlesToShow: a,
5
- particlesToScroll: e,
6
- particlesCount: x
7
- }) {
8
- const d = r === 0 ? 0 : a - e, c = r * a - r * d, s = c + Math.max(a, e) - 1, n = [];
9
- for (let t = c; t <= Math.min(x - 1, s); t++)
10
- n.push(t);
11
- return n;
12
- }
13
- function h({
14
- infinite: r,
15
- pageIndex: a,
16
- pagesCount: e,
17
- particlesCount: x,
18
- particlesToShow: d,
19
- particlesToScroll: c
20
- }) {
21
- const s = i(0, a, e - 1);
22
- let n = s - 1, t = s + 1;
23
- n = r ? n < 0 ? e - 1 : n : Math.max(0, n), t = r ? t > e - 1 ? 0 : t : Math.min(e - 1, t);
24
- const f = [.../* @__PURE__ */ new Set([
25
- n,
26
- s,
27
- t,
28
- 0,
29
- e - 1
30
- ])].sort((o, m) => o - m), I = f.flatMap(
31
- (o) => l({
32
- pageIndex: o,
33
- particlesToShow: d,
34
- particlesToScroll: c,
35
- particlesCount: x
36
- })
37
- );
38
- return {
39
- pageIndexes: f,
40
- particleIndexes: [...new Set(I)].sort((o, m) => o - m)
41
- };
42
- }
43
- export {
44
- h as getAdjacentIndexes
45
- };
@@ -1,11 +0,0 @@
1
- const s = (t, n) => {
2
- const e = n.x - t.x, a = n.y - t.y;
3
- return Math.sqrt(e * e + a * a);
4
- };
5
- function r(t, n, e) {
6
- return Math.max(t, Math.min(n, e));
7
- }
8
- export {
9
- s as getDistance,
10
- r as getValueInRange
11
- };
@@ -1,13 +0,0 @@
1
- const o = (r, n, t) => {
2
- if (r && r.hasOwnProperty(n))
3
- return r[n];
4
- if (t === void 0)
5
- throw new Error(`Required arg "${n}" was not provided`);
6
- return t;
7
- }, w = (r) => (n) => {
8
- r[n] && r[n]();
9
- };
10
- export {
11
- o as get,
12
- w as switcher
13
- };