|
1 | | -import { Routes, Route } from 'react-router-dom' |
| 1 | +import { Route, Routes } from 'react-router-dom' |
2 | 2 | import { ExampleList } from './pages' |
3 | | -import { GraphExample } from './pages/graph/index' |
4 | | -import { PositionExample } from './pages/position/position' |
5 | | -import { CoordExample } from './pages/position/coord' |
| 3 | +import { AnimateElementExample } from './pages/animation/animateElement' |
| 4 | +import { ComplexTransitionExample } from './pages/animation/complexTransition' |
| 5 | +import { EdgeTransitionExample } from './pages/animation/edgeTransition' |
| 6 | +import { TransitionConfExample } from './pages/animation/transitionConf' |
6 | 7 | import { AutoResizeExample } from './pages/auto-resize' |
7 | | -import { HtmlExample } from './pages/html' |
8 | | -import { CustomNodeExample } from './pages/shape/custom-node' |
9 | | -import { GroupExample } from './pages/group' |
10 | | -import { EmbedDndExample } from './pages/embed/dnd' |
11 | | -import { ReactExample } from './pages/react/index' |
12 | | -import { ReactPortalExample } from './pages/react/portal' |
13 | | -import { PortsDefaultsExample } from './pages/ports/defaults' |
14 | | -import { PortsConnectedExample } from './pages/ports/connected' |
15 | | -import { EdgeExample } from './pages/edge' |
16 | | -import { RouterExample } from './pages/router' |
17 | | -import { ToolArrowheadExample } from './pages/edge/tool/arrowhead' |
18 | | -import { ToolButtonExample } from './pages/edge/tool/button' |
19 | | -import { CustomConnectorExample } from './pages/edge/custom-connector' |
20 | | -import { CustomRouterExample } from './pages/edge/custom-router' |
21 | | -import { NativeMarkerExample } from './pages/edge/native-marker' |
22 | | -import { CustomMarkerExample } from './pages/edge/custom-marker' |
23 | | -import { EdgeEditorExample } from './pages/edge/edge-editor' |
24 | | -import { OffsetRoundedExample } from './pages/connector/offset-rounded' |
25 | | -import { XmindCurveExample } from './pages/connector/xmind-curve' |
26 | | -import { ToolsCleanExample } from './pages/tools/clean' |
27 | 8 | import { CaseBpmnExample } from './pages/case/bpmn' |
28 | 9 | import { CaseClassExample } from './pages/case/class' |
29 | 10 | import { CaseDagExample } from './pages/case/dag' |
30 | 11 | import { CaseElkExample } from './pages/case/elk' |
31 | 12 | import { CaseErExample } from './pages/case/er' |
32 | 13 | import { CaseMindExample } from './pages/case/mind' |
33 | 14 | import { CaseSwimlaneExample } from './pages/case/swimlane' |
| 15 | +import { OffsetRoundedExample } from './pages/connector/offset-rounded' |
| 16 | +import { XmindCurveExample } from './pages/connector/xmind-curve' |
| 17 | +import { EdgeExample } from './pages/edge' |
| 18 | +import { CustomConnectorExample } from './pages/edge/custom-connector' |
| 19 | +import { CustomMarkerExample } from './pages/edge/custom-marker' |
| 20 | +import { CustomRouterExample } from './pages/edge/custom-router' |
| 21 | +import { EdgeEditorExample } from './pages/edge/edge-editor' |
| 22 | +import { NativeMarkerExample } from './pages/edge/native-marker' |
| 23 | +import { ToolArrowheadExample } from './pages/edge/tool/arrowhead' |
| 24 | +import { ToolButtonExample } from './pages/edge/tool/button' |
| 25 | +import { SegmentsExample } from './pages/edge/tool/segments' |
| 26 | +import { EmbedDndExample } from './pages/embed/dnd' |
| 27 | +import { GraphFromJSONExample } from './pages/graph/from-json' |
| 28 | +import { GraphExample } from './pages/graph/index' |
| 29 | +import { GroupExample } from './pages/group' |
| 30 | +import { HistoryExample } from './pages/history' |
| 31 | +import { HtmlExample } from './pages/html' |
34 | 32 | import { OrgExample } from './pages/org' |
35 | | -import { SnaplineExample } from './pages/plugins/snapline' |
36 | 33 | import { ClipboardExample } from './pages/plugins/clipboard' |
37 | | -import { KeyboardExample } from './pages/plugins/keyboard' |
38 | 34 | import { DndExample } from './pages/plugins/dnd' |
| 35 | +import { ExportExample } from './pages/plugins/export' |
| 36 | +import { KeyboardExample } from './pages/plugins/keyboard' |
39 | 37 | import { ScrollerExample } from './pages/plugins/scroller' |
40 | 38 | import { SelectionExample } from './pages/plugins/selection' |
| 39 | +import { SnaplineExample } from './pages/plugins/snapline' |
41 | 40 | import { StencilExample } from './pages/plugins/stencil' |
42 | 41 | import { TransformExample } from './pages/plugins/transform' |
43 | 42 | import { UndoExample } from './pages/plugins/undo' |
44 | | -import { ExportExample } from './pages/plugins/export' |
45 | | -import { TransitionExample } from './pages/animation/transition' |
46 | | -import { HistoryExample } from './pages/history' |
47 | | -import { SegmentsExample } from './pages/edge/tool/segments' |
48 | | -import { GraphFromJSONExample } from './pages/graph/from-json' |
| 43 | +import { PortsConnectedExample } from './pages/ports/connected' |
| 44 | +import { PortsDefaultsExample } from './pages/ports/defaults' |
| 45 | +import { CoordExample } from './pages/position/coord' |
| 46 | +import { PositionExample } from './pages/position/position' |
| 47 | +import { ReactExample } from './pages/react/index' |
| 48 | +import { ReactPortalExample } from './pages/react/portal' |
| 49 | +import { RouterExample } from './pages/router' |
| 50 | +import { CustomNodeExample } from './pages/shape/custom-node' |
| 51 | +import { ToolsCleanExample } from './pages/tools/clean' |
49 | 52 | import { VirtualRenderExample } from './pages/virtual-render' |
50 | 53 | import './App.less' |
51 | 54 |
|
@@ -106,7 +109,22 @@ function App() { |
106 | 109 | <Route path="/plugins/undo" element={<UndoExample />} /> |
107 | 110 | <Route path="/plugins/export" element={<ExportExample />} /> |
108 | 111 |
|
109 | | - <Route path="/animation/transition" element={<TransitionExample />} /> |
| 112 | + <Route |
| 113 | + path="/animation/complexTransition" |
| 114 | + element={<ComplexTransitionExample />} |
| 115 | + /> |
| 116 | + <Route |
| 117 | + path="/animation/transitionConf" |
| 118 | + element={<TransitionConfExample />} |
| 119 | + /> |
| 120 | + <Route |
| 121 | + path="/animation/animateElement" |
| 122 | + element={<AnimateElementExample />} |
| 123 | + /> |
| 124 | + <Route |
| 125 | + path="/animation/edgeTransition" |
| 126 | + element={<EdgeTransitionExample />} |
| 127 | + /> |
110 | 128 | <Route path="/history" element={<HistoryExample />} /> |
111 | 129 | <Route path="/virtual-render" element={<VirtualRenderExample />} /> |
112 | 130 | </Routes> |
|
0 commit comments