g6/stories/Interaction/interaction.stories.tsx
2020-07-27 13:31:24 +08:00

37 lines
1010 B
TypeScript

// import { Button } from '@storybook/react/demo';
import { storiesOf } from '@storybook/react';
import React from 'react';
import MoveViewPort from './component/view-port';
import AltTab from './component/alt-tab';
import AddItem from './component/addItem';
import Tooltip from './component/tooltip';
import DragCanvas from './component/drag-canvas';
import ZoomCanvasFix from './component/zoom-canvas-fix'
import LassoSelect from './component/lasso-select'
import FishEye from './component/fisheye-lens';
export default { title: 'Interaction' };
storiesOf('Interaction', module)
.add('move view port', () => (
<MoveViewPort />
))
.add('alt tab in windows', () => (
<AltTab />
))
.add('add item', () => (
<AddItem />
))
.add('tooltip', () => (
<Tooltip />
)).add('drag canvas', () => (
<DragCanvas />
)).add('zoom canvas fix items', () => (
<ZoomCanvasFix />
))
.add('lasso select', () => (
<LassoSelect />
)).add('fisheye', () => (
<FishEye />
));