#31 : Fix storybook autoplayDirection

This commit is contained in:
Vadim
2021-07-03 13:59:43 +03:00
parent 17e2e60098
commit a6a73d54bb
4 changed files with 6 additions and 10 deletions

View File

@@ -1,11 +1,10 @@
<script> <script>
import Carousel from '../Carousel.svelte' import Carousel from '../Carousel.svelte'
import { NEXT } from '../../../direction'
/** /**
* CSS animation timing function * CSS animation timing function
*/ */
export let timingFunction = "ease-in-out"; export let timingFunction = 'ease-in-out';
/** /**
* Enable Next/Previos arrows * Enable Next/Previos arrows
@@ -40,7 +39,7 @@
/** /**
* Auto play change direction ('next', 'prev') * Auto play change direction ('next', 'prev')
*/ */
export let autoplayDirection = NEXT export let autoplayDirection = 'next'
/** /**
* Pause autoplay on focus * Pause autoplay on focus

View File

@@ -1,11 +1,10 @@
<script> <script>
import Carousel from '../Carousel.svelte' import Carousel from '../Carousel.svelte'
import { NEXT } from '../../../direction'
/** /**
* CSS animation timing function * CSS animation timing function
*/ */
export let timingFunction = "ease-in-out"; export let timingFunction = 'ease-in-out';
/** /**
* Enable Next/Previos arrows * Enable Next/Previos arrows
@@ -40,7 +39,7 @@
/** /**
* Auto play change direction ('next', 'prev') * Auto play change direction ('next', 'prev')
*/ */
export let autoplayDirection = NEXT export let autoplayDirection = 'next'
/** /**
* Pause autoplay on focus * Pause autoplay on focus

View File

@@ -1,11 +1,10 @@
<script> <script>
import Carousel from '../Carousel.svelte' import Carousel from '../Carousel.svelte'
import { NEXT } from '../../../direction'
/** /**
* CSS animation timing function * CSS animation timing function
*/ */
export let timingFunction = "ease-in-out"; export let timingFunction = 'ease-in-out';
/** /**
* Enable Next/Previos arrows * Enable Next/Previos arrows
@@ -40,7 +39,7 @@
/** /**
* Auto play change direction ('next', 'prev') * Auto play change direction ('next', 'prev')
*/ */
export let autoplayDirection = NEXT export let autoplayDirection = 'next'
/** /**
* Pause autoplay on focus * Pause autoplay on focus

View File

@@ -2,7 +2,6 @@ import { setIntervalImmediate } from './interval'
const PROGRESS_STEPS_COUNT = 100 const PROGRESS_STEPS_COUNT = 100
export class ProgressManager { export class ProgressManager {
#autoplayDuration #autoplayDuration
#onValueChange #onValueChange