The Diagram class represents a flow diagram.
The following tables list the members exposed by the Diagram type.
Name | Description | |
---|---|---|
Initializes a new instance of the Diagram class. |
Name | Description | |
---|---|---|
Gets the active diagram item. |
||
Gets or sets the visual style of adjustment handles of the active item. |
||
Gets or sets the size of adjustment handles that appear around selected items. |
||
Gets or sets a value indicating whether the diagram items should be aligned to a grid. |
||
Gets or sets a value indicating whether multiple selected nodes can be resized simultaneously. |
||
Gets or sets a value indicating whether users are allowed to draw reflexive links. |
||
Gets or sets a value indicating whether users are allowed to draw links that are not connected to any node. |
||
Gets or sets a value indicating whether auto-arranged link labels should avoid containers. |
||
Gets or sets a value indicating whether auto-arranged link labels should avoid link segments. |
||
Gets or sets the maximum distance between first and last points of a FreeFormNode for which the node's outline is closed automatically. |
||
Gets or sets a value indicating whether the document area should be resized automatically so it fits the diagram contents. |
||
Gets or sets an object specifying how to fill the diagram background. |
||
Gets or sets a value indicating how to align the background image. |
||
Gets or sets a Base64-encoded image to display as diagram background. |
||
Gets or sets URL of the image to paint as diagram's background. |
||
Gets the underlying Canvas element's logical bounds. (Inherited from Canvas.) |
||
Gets or sets the radius length of decorations displayed at link intersection points. |
||
Gets or sets the type of DiagramLink objects to create when users starts drawing. |
||
Gets or sets the type of DiagramNode objects to create when users starts drawing. |
||
Gets or sets the default shape assigned to new ShapeNode objects. |
||
Gets or sets a value indicating whether the diagram has changed since loading it. |
||
Gets or sets the visual style of disabled adjustment handles. |
||
Gets or sets initial value of the dynamic property of new links. |
||
Returns a reference to the control's DOM element. (Inherited from Disposable.) |
||
Gets or sets whether mouse events are enabled. (Inherited from Disposable.) |
||
Gets or sets how the control responds to users clickingthe +/- button displayed by expandable nodes. |
||
Gets or sets a value indicating the link direction in which tree branches are expanded. |
||
Gets a Factory object that lets you programmatically add new items to the diagram. |
||
Gets or sets the default font of text displayed by diagram items. |
||
Gets or sets the radius around dragged free-form adjustment handle in which other points of FreeFormNode are modified too. |
||
Gets or sets an array of Shape objects used to replace FreeFormNode instances with ShapeNode ones when behavior is set to LinkFreeShapes or DrawFreeShapes. |
||
Gets or sets the color of grid points. |
||
Gets or sets the horizontal offset of the first point of the alignment grid. |
||
Gets or sets the vertical offset of the first point of the alignment grid. |
||
Gets or sets the size of shapes used to represent grid points. |
||
Gets or sets the horizontal distance between adjacent grid points. |
||
Gets or sets the vertical distance between adjacent grid points. |
||
Gets or sets the visual style of the alignment grid. |
||
Returns an array of all items in this diagram. |
||
Gets the lane grid. |
||
Gets or sets the shape displayed at the base of new links. |
||
Gets or sets the default size of arrowheads at base of new links. |
||
Gets or sets the default fill of link arrowheads. |
||
Gets or sets a value indicating how to render the intersection points of links. |
||
Gets or sets the shape displayed as head of new links. |
||
Gets or sets the default size of arrowheads. |
||
Gets or sets a value specifying how far from a link a click is still considered a hit. |
||
Gets or sets the default stroke of links. |
||
Gets or sets the object used to find paths for auto-routed links when diagram nodes are added or their positions change. |
||
Returns an array of all links in this diagram. |
||
Gets or sets the default number of link segments. |
||
Gets or sets the initial shape assigned to new links. |
||
Gets or sets the default text placement and orientation of new links. |
||
Gets or sets the unit of measure used for logical coordinates. (Inherited from Canvas.) |
||
Gets or sets a threshold value that hides text if scaled font sizes become smaller. (Inherited from Canvas.) |
||
Gets the global effects applied to nodes in this diagram. |
||
Returns an array of all nodes in this diagram. |
||
Gets or sets a value indicating whether newly created nodes are expandable. |
||
Gets or sets a value indicating whether the joints between segments of Polyline and Cascading links should be rounded. |
||
Gets or sets the radius of joint arcs of rounded links' segments. |
||
Gets or sets initial value of the autoRoute property of new links. |
||
Gets or sets the minimal distance between nodes and auto-routed links. |
||
Gets the current scale of this Canvas. (Inherited from Canvas.) |
||
Gets or sets the visual style of adjustment handles of selected items. |
||
Gets a Selection instance that represents the selection of items in this diagram. |
||
Gets or sets the horizontal offset of items' shadows. |
||
Gets or sets the vertical offset of items' shadows. |
||
Gets or sets the style of shadows. |
||
Gets or sets the default fill of ShapeNode objects. |
||
Gets or sets the location of a shape library file containing custom shape definitions. It can be set to a full URL of the file, or a relative file path. |
||
Gets or sets the default stroke of ShapeNode objects. |
||
Gets or sets a value indicating when to display anchor point marks. |
||
Gets or sets a value indicating whether adjustment handles are painted when they are disabled. |
||
Gets or sets a value indicating whether the alignment grid is visible. |
||
Gets or sets a value indicating whether the lane grid is visible. |
||
Gets or sets the style associated with this diagram. |
||
Gets or sets custom data associated with this diagram. |
||
Gets or sets the theme associated with this diagram. |
||
Gets or sets a value indicating whether saving action records for later undo is enabled. |
||
Gets a string identifying current version of the library. |
Name | Description | |
---|---|---|
Registers a single event listener on the instance. (Inherited from Disposable.) |
||
Adds an item to the Diagram. |
||
Returns a point of the alignment grid nearest to the one passed as an argument. |
||
Arranges the diagram with the given layout. |
||
Arranges the diagram using the given layout, and animates items moving to their new positions. |
||
Rearranges link labels whose autoArrange property is enabled. |
||
Stops recording undo/redo commands into a CompositeCommand and discards the records created so far. |
||
Removes all items from the diagram. |
||
Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue. |
||
Overrides Disposable.dispose (Inherited from Canvas.) |
||
Executes the specified command on this diagram. |
||
Deserializes the diagram from a JSON string. |
||
Loads diagram contents from specified XML Document. |
||
Returns the smallest rectangle that bounds all diagram items. |
||
Finds and returns the topmost DiagramItem found at the specified location. |
||
Finds and returns an array of the diagram items found at the specified location. |
||
Finds and returns the topmost DiagramLink found at the specified location. |
||
Finds and returns an array of the diagram DiagramLinks found at the specified location. |
||
Returns the node nearest to the specified point. |
||
Finds and returns the topmost DiagramNode found at the specified location. |
||
Finds and returns an array of the DiagramNodes found at the specified location. |
||
Invalidates the canvas or a region of the canvas, causing it to be repainted. (Inherited from Canvas.) |
||
Checks if the specified item can be modified interactively. |
||
Checks if the specified item is currently visible. |
||
Loads diagram contents from specified XML or JSON string. |
||
Loads the diagram from an XML file. |
||
Raises an event which notifies that a Diagram item has been clicked. |
||
Raises an event which notifies that a Diagram item has been created. |
||
Raises an event which notifies that a Diagram item has been deleted. |
||
Raises an event which notifies that a Diagram item has been deselected. |
||
Raises an event which notifies that a Diagram item has been double-clicked. |
||
Raises an event. (Inherited from Disposable.) |
||
Raises an event which notifies that a Diagram item has been modified. |
||
Raises an event which notifies that a Diagram item has been pasted from clipboard. |
||
Raises an event which notifies that a Diagram item has been selected. |
||
Raises an event which notifies that a Diagram item will be selected. |
||
Raises an event which notifies that the selection has changed. |
||
Executes again an action saved in the command history. |
||
Registers a diagram item class. |
||
Registers a diagram item class for XML erialization support. |
||
Removes a single event listener attached to the instance. (Inherited from Disposable.) |
||
Removes the specified item from the Diagram. |
||
Repaints the canvas. (Inherited from Canvas.) |
||
Resize the document extents so that the specified item is contained within. |
||
Resizes the document scrollable area so that it fits all diagram items. |
||
Routes all links in the diagram in such a way they do not cross nodes. |
||
Encodes the diagram contents into an XML or JSON string. |
||
Saves the diagram to an XML file. |
||
Starts recording undo/redo commands into a CompositeCommand. |
||
Serializes the diagram into a JSON string. |
||
Saves the diagram into an XML Document. |
||
Undoes an action saved in the command history. |