forked from MrBlenny/react-flow-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
51 lines (46 loc) · 2.11 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { storiesOf } from '@storybook/react'
import * as React from 'react'
import { ConfigSnapToGridDemo } from './ConfigSnapToGrid'
import { ConfigValidateLinkDemo } from './ConfigValidateLink'
import { CustomCanvasOuterDemo } from './CustomCanvasOuter'
import { CustomGraphTypes } from './CustomGraphTypes'
import { CustomLinkDemo } from './CustomLink'
import { CustomNodeDemo } from './CustomNode'
import { CustomNodeInnerDemo } from './CustomNodeInner'
import { CustomPortDemo } from './CustomPort'
import { DragAndDropSidebar } from './DragAndDropSidebar'
import { ExternalReactState } from './ExternalReactState'
import { InternalReactState } from './InternalReactState'
import { LinkColors } from './LinkColors'
import { NodeReadonly } from './NodeReadonly'
import { LinkWithArrowHead } from './LinkWithArrowHead'
import { ReadonlyMode } from './ReadonlyMode'
import { SelectableMode } from './SelectableMode'
import { SelectedSidebar } from './SelectedSidebar'
import { SmartRouting } from './SmartRouting'
import { StressTestDemo } from './StressTest'
import { Zoom } from './Zoom'
storiesOf('State', module)
.add('Internal React State', InternalReactState)
.add('External React State', () => <ExternalReactState />)
storiesOf('Custom Components', module)
.add('Node Inner', () => <CustomNodeInnerDemo />)
.add('Node', CustomNodeDemo)
.add('Port', CustomPortDemo)
.add('Canvas Outer', CustomCanvasOuterDemo)
.add('Canvas Link', () => <CustomLinkDemo />)
.add('Link Colors', () => <LinkColors />)
storiesOf('Stress Testing', module).add('default', StressTestDemo)
storiesOf('Sidebar', module)
.add('Drag and Drop', DragAndDropSidebar)
.add('Selected Sidebar', () => <SelectedSidebar />)
storiesOf('Other Config', module)
.add('Snap To Grid', ConfigSnapToGridDemo)
.add('Link validation function', ConfigValidateLinkDemo)
.add('Read only mode', ReadonlyMode)
.add('Node read only', NodeReadonly)
.add('Selectable Mode', SelectableMode)
.add('Smart link routing', SmartRouting)
.add('Zoom', () => <Zoom />)
.add('Type-safe properties', CustomGraphTypes)
.add('Link arrow heads',() => <LinkWithArrowHead />)