mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
21 lines
908 B
TypeScript
21 lines
908 B
TypeScript
// import { Button } from '@storybook/react/demo';
|
|
import { storiesOf } from '@storybook/react';
|
|
import React from 'react';
|
|
import RegisterLayout from './component/register-layout';
|
|
import DagreLayout from './component/dagre-layout';
|
|
import FruchtermanWorker from './component/fruchterman-worker-layout';
|
|
import AddNodeLayout from './component/addNodeLayout'
|
|
import ChangeData from './component/changeData'
|
|
import G6ForceLayout from './component/g6force-layout';
|
|
|
|
export default { title: 'Layout' };
|
|
|
|
storiesOf('Layout', module)
|
|
.add('Register layout', () => <RegisterLayout />)
|
|
.add('Dagre layout', () => <DagreLayout />)
|
|
.add('Fruchterman worker layout', () => <FruchtermanWorker />)
|
|
.add('add node and layout', () => <AddNodeLayout />)
|
|
.add('change data', () => <ChangeData />)
|
|
.add('G6 force layout', () => <G6ForceLayout />)
|
|
.add('Fruchterman worker layout', () => <FruchtermanWorker />);
|