-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
408 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
packages/react-topology/src/components/TopologyView/examples/TopologyLayouts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
``` |
Oops, something went wrong.