mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 11:18:30 +08:00
30 lines
811 B
TypeScript
30 lines
811 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'
|
|
|
|
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 />
|
|
));
|