New to Kendo UI for Angular? Start a free 30-day trial
Represents the Kendo UI Diagram component for Angular.
The Diagram component is used to create organizational charts, and other types of diagrams.
<kendo-diagram [shapes]="shapesData"></kendo-diagram>
kendo-diagram
Accessible in templates as #kendoDiagramInstance="kendoDiagram"
|
---|
Adds connection to the Diagram.
|
Parameters | | |
---|
connection
|
Connection
|
|
undoable?
|
boolean
|
|
|
|
|
---|
Adds shape to the Diagram.
|
|
Returns | |
---|
Shape
|
The newly created shape.
|
|
|
---|
Aligns shapes in the specified direction.
|
|
|
---|
Gets the bounding rectangle of the given items.
|
|
Returns | |
---|
Rect
|
Bounding rectangle.
|
|
|
---|
Bring into view the passed item(s) or rectangle.
|
|
|
---|
Sends to back the passed items.
|
|
|
---|
Brings to front the passed items.
|
|
|
---|
Connects two items in the Diagram.
|
|
|
|
---|
Determines whether two shapes are connected.
|
|
Returns | |
---|
boolean
|
true if the two shapes are connected.
|
|
|
---|
Copies selected items to clipboard.
|
|
---|
Deselects the specified items or all items if no item is specified.
|
|
|
---|
Converts document coordinates to model coordinates.
|
|
Returns | |
---|
any
|
Point in model coordinates.
|
|
|
---|
Converts document coordinates to view coordinates.
|
|
Returns | |
---|
Point
|
Point in view coordinates.
|
|
|
---|
Exports the diagram's DOM visual representation for rendering or export purposes.
Creates a clipped group containing the canvas content with proper transformations.
|
Returns | |
---|
Group
|
A drawing Group element containing the exported DOM visual
|
|
|
---|
Exports the diagram's visual representation with proper scaling based on zoom level.
Creates a scaled group containing the main layer content.
|
Returns | |
---|
Group
|
A drawing Group element containing the exported visual with inverse zoom scaling
|
|
|
---|
Focuses the Diagram.
|
Returns | |
---|
boolean
|
true if focus was set successfully.
|
|
|
---|
Gets a shape on the basis of its identifier.
|
|
Returns | |
---|
Shape
|
The shape with the specified ID.
|
|
|
---|
Provides the current Diagram's shapes and connections that can be used to create a new Diagram when needed.
|
Returns | |
---|
DiagramState
|
Object containing shapes and connections arrays.
|
|
|
---|
Converts layer coordinates to model coordinates.
|
|
Returns | |
---|
any
|
Point in model coordinates.
|
|
|
---|
Converts model coordinates to document coordinates.
|
|
Returns | |
---|
Point
|
Point in document coordinates.
|
|
|
---|
Converts model coordinates to layer coordinates.
|
|
Returns | |
---|
any
|
Point in layer coordinates.
|
|
|
---|
Converts model coordinates to view coordinates.
|
|
Returns | |
---|
any
|
Point in view coordinates.
|
|
|
---|
Pastes items from clipboard.
|
|
---|
Executes the previous undoable action on top of the redo stack if any.
|
|
---|
Removes shape(s) and/or connection(s) from the Diagram.
|
|
|
---|
Selects items on the basis of the given input.
|
|
|
|
---|
Selects all items in the Diagram.
|
|
---|
Selects items in the specified area.
|
Parameters | | |
---|
rect
|
Rect
|
Rectangle area to select.
|
|
|
---|
Executes the next undoable action on top of the undo stack if any.
|
|
---|
Gets the current Diagram viewport rectangle.
|
Returns | |
---|
Rect
|
Viewport rectangle.
|
|
|
---|
Converts view coordinates to document coordinates.
|
|
Returns | |
---|
Point
|
Point in document coordinates.
|
|
|
---|
Converts view coordinates to model coordinates.
|
|
Returns | |
---|
any
|
Point in model coordinates.
|
|