antv-l7/stories/Draw/Draw.stories.tsx

21 lines
809 B
TypeScript
Raw Normal View History

2020-03-16 23:31:15 +08:00
import { storiesOf } from '@storybook/react';
import * as React from 'react';
import AMapDraw from './Components/AmapDraw';
import Circle from './Components/Circle';
2020-03-20 11:13:58 +08:00
import DrawCircle from './Components/DrawCircle';
2020-04-01 15:22:53 +08:00
import DrawControl from './Components/DrawControl';
2020-03-25 16:39:30 +08:00
import Line from './Components/DrawLine';
import Point from './Components/DrawPoint';
2020-03-20 11:13:58 +08:00
import DrawRect from './Components/DrawRect';
2020-03-25 16:39:30 +08:00
import Polygon from './Components/Polygon';
2020-03-16 23:31:15 +08:00
2020-03-20 11:13:58 +08:00
storiesOf('绘制', module)
.add('圆', () => <Circle />, {})
2020-03-25 16:39:30 +08:00
.add('矩形', () => <DrawRect />, {})
.add('多边形', () => <Polygon />, {})
.add('点', () => <Point />, {})
.add('路径', () => <Line />, {})
2020-04-01 15:22:53 +08:00
.add('绘制组件', () => <DrawControl />, {})
2020-03-20 11:13:58 +08:00
.add('绘制圆', () => <DrawCircle />, {})
.add('高德地图', () => <AMapDraw />, {});