pfCanvas
patternfly.canvas
Component for core operations and rendering of a canvas. Does not work in IE 11 or lower because they do not support latest svg specification's 'foreignObject' api. Tested in FireFox, Chrome, and MS-Edge.
<pf-canvas
chart-data-model="{object}"
chart-view-model="{object}"
read-only
hide-connectors="{boolean}">
</pf-canvas>
| Param | Type | Details |
|---|---|---|
| chartDataModel | object | Chart data object which defines the nodes and connections on the canvas
|
| chartViewModel | object | (Optional) The chartViewModel is initialized from the chartDataModel and contains additional helper methods such as |
| readOnly | boolean | A flag indicating whether the canvas is in 'read-only' mode. When in 'read-only' mode nodes cannot be moved, selected, or deleted, and the node action toolbar is hidden. |
| hideConnectors | boolean | A flag indicating whether connections should be hidden or shown on the canvas |