grooming stories

zoom
Yanick Champoux 2018-01-15 18:51:23 -05:00
parent 37eb81eedb
commit 5d14ddbe41
2 changed files with 25 additions and 25 deletions

19
src/single.stories.vue Normal file
View File

@ -0,0 +1,19 @@
<template>
<SvgPanZoom style="width: 500px; height: 500px; border:1px solid black;"
:zoomEnabled="true"
:controlIconsEnabled="true"
:fit="false"
:center="true"
>
<RawTiger />
</SvgPanZoom>
</template>
<script>
import RawTiger from './RawTiger.vue';
import SvgPanZoom from './index';
export default {
components: { SvgPanZoom, RawTiger },
}
</script>

View File

@ -6,32 +6,13 @@ import RawTiger from './RawTiger.vue';
import LayerStory from './layers.stories.vue';
import ThumbnailStory from './thumbnail.stories.vue';
import SingleStory from './single.stories.vue';
const stories = storiesOf('SvgPanZoom', module)
.addDecorator( withKnobs )
.add('single inline SVG', () => {
return {
components: { SvgPanZoom, RawTiger },
template: `
<SvgPanZoom style="width: 500px; height: 500px; border:1px solid black;"
:zoomEnabled="true"
:controlIconsEnabled="true"
:fit="false"
:center="true"
>
<RawTiger />
</SvgPanZoom>`
}}
.add('single inline SVG',
() => SingleStory
)
.add( 'layers', () => {
return {
components: { LayerStory },
template: '<div><LayerStory /></div>'
};
})
.add( 'thumbnail', () => {
return {
components: { ThumbnailStory },
template: '<div><ThumbnailStory /></div>',
};
});
.add( 'layers', () => LayerStory )
.add( 'thumbnail', () => ThumbnailStory )
;