#31 : Fix storybook autoplayDirection
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user