Skip to content

Commit

Permalink
add layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Feb 10, 2023
1 parent 83c54ab commit e29402f
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
id: Layouts
section: topology
---

Note: Topology lives in its own package at [`@patternfly/react-topology`](https://www.npmjs.com/package/@patternfly/react-topology)

import {
BreadthFirstLayout,
ColaLayout,
ColaGroupsLayout,
ConcentricLayout,
DagreLayout,
DefaultEdge,
DefaultGroup,
DefaultNode,
EdgeStyle,
ForceLayout,
GridLayout,
GraphComponent,
ModelKind,
NodeShape,
observer,
SELECTION_EVENT,
TopologyView,
Visualization,
VisualizationProvider,
VisualizationSurface,
NodeStatus
} from '@patternfly/react-topology';

import { Select, SelectOption, SelectVariant, ToolbarItem } from '@patternfly/react-core';

import './topology-example.css';
import Icon1 from '@patternfly/react-icons/dist/esm/icons/regions-icon';
import Icon2 from '@patternfly/react-icons/dist/esm/icons/folder-open-icon';

### Layouts

You can choose to customize your topology graph with any of the following layouts:

- Force: [description]
- Dagre: [description]
- Cola: [description]
- ColaGroups: [description]
- ColaNoForce: [description]
- Grid: [description]
- Concentric: [description]
- BreadthFirst: [description]

```ts file='./TopologyLayoutsDemo.tsx'
```
Loading

0 comments on commit e29402f

Please sign in to comment.