This article describes the API migration process of Diagram component from Essential JS 1 to Essential JS 2.
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the background color of diagram elements | Property:`backgroundColor`
HTML
|
Property:`backgroundColor`
HTML
|
Defines how to align the background image over the diagram area | Property:`backgroundImage.alignment`
HTML
Script
|
Property:`background.align`
HTML
|
Defines how the background image should be scaled/stretched | Property:`backgroundImage.scale`
HTML
Script
|
Property:`background.scale`
HTML
|
Sets the source path of the background image | Property:`backgroundImage.source`
HTML
Script
|
Property:`background.source`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Sets the direction of line bridges | Property:`bridgeDirection`
HTML
|
Property:`bridgeDirection`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
commands |
Property:`commandManager.commands`
HTML
Script
|
Property:`commandManager.commands`
HTML
|
The command is executable at the moment or not. |
Property:`commandManager.commands.canExecute`
HTML
Script
|
Property:`commandManager.commands.canExecute`
HTML
|
Defines what to be executed when the key combination is recognized |
Property:`commandManager.commands.execute`
HTML
Script
|
Property:`commandManager.commands.execute`
HTML
|
Defines a combination of keys and key modifiers, on recognition of which the command will be executed |
Property:`commandManager.commands.gesture`
HTML
Script
|
Property:`commandManager.commands.gesture`
HTML
|
Sets the key value, on recognition of which the command will be executed |
Property:`commandManager.commands.gesture.key`
HTML
Script
|
Property:`commandManager.commands.gesture.key`
HTML
|
Sets a combination of key modifiers, on recognition of which the command will be executed. |
Property:`commandManager.commands.gesture.keyModifiers`
HTML
Script
|
Property:`commandManager.commands.gesture.keyModifiers`
HTML
|
Defines any additional parameters that are required at runtime |
Property:`commandManager.commands.parameter`
HTML
Script
|
Property:`commandManager.commands.parameter`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
addInfo |
Property:`connectors.addInfo`
HTML
|
Property:`connectors.addInfo`
HTML
|
Defines the bridgeSpace of connector |
Property:`connectors.bridgeSpace`
HTML
|
Property:`connectors.bridgeSpace`
HTML
|
Enables or disables the behaviors of connectors |
Property:`connectors.constraints`
HTML
|
Property:`connectors.constraints`
HTML
|
Defines the radius of the rounded corner |
Property:`connectors.cornerRadius`
HTML
|
Property:`connectors.cornerRadius`
HTML
|
cssClass |
Property:`connectors.cssClass`
HTML
|
Not applicable |
Alignment |
Property:`connectors.horizontalAlign`
HTML
|
Not applicable |
A collection of JSON objects where each object represents a label |
Property:`connectors.labels`
HTML
|
Property:`connectors.annotations`
HTML
|
stroke color of the connector |
Property:`connectors.lineColor`
HTML
|
Property:`connectors.style.strokeColor`
HTML
|
Sets the pattern of dashes and gaps used to stroke the path of the connector |
Property:`connectors.lineDashArray`
HTML
|
Property:`connectors.style.strokeDashArray`
HTML
|
Sets the width of the line |
Property:`connectors.lineWidth`
HTML
|
Property:`connectors.style.strokeWidth`
HTML
|
Defines the padding value to ease the interaction with connectors |
Property:`connectors.lineHitPadding`
HTML
|
Property:`connectors.hitPadding`
HTML
|
Defines the minimum space to be left between the bottom of parent bounds and the connector |
Property:`connectors.marginBottom`
HTML
|
Property:`connectors.margin.bottom`
HTML
|
Defines the minimum space to be left between the top of parent bounds and the connector |
Property:`connectors.marginTop`
HTML
|
Property:`connectors.margin.top`
HTML
|
Defines the minimum space to be left between the left of parent bounds and the connector |
Property:`connectors.marginLeft`
HTML
|
Property:`connectors.margin.left`
HTML
|
Defines the minimum space to be left between the right of parent bounds and the connector |
Property:`connectors.marginRight`
HTML
|
Property:`connectors.margin.right`
HTML
|
Sets a unique name for the connector |
Property:`connectors.name`
HTML
|
Property:`connectors.id`
HTML
|
Defines the transparency of the connector |
Property:`connectors.opacity`
HTML
|
Property:`connectors.style.opacity`
HTML
|
Sets the parent name of the connector. |
Property:`connectors.parent`
HTML
| Not applicable |
An array of JSON objects where each object represents a segment |
Property:`connectors.segments`
HTML
|
Property:`connectors.segments`
HTML
|
Sets the direction of orthogonal segment |
Property:`connectors.segments.direction`
HTML
|
Property:`connectors.segments.direction`
HTML
|
Describes the length of orthogonal segment |
Property:`connectors.segments.length`
HTML
|
Property:`connectors.segments.length`
HTML
|
Describes the end point of bezier/straight segment |
Property:`connectors.segments.point`
HTML
|
Property:`connectors.segments.point`
HTML
|
Defines the first control point of the bezier segment |
Property:`connectors.segments.point1`
HTML
|
Property:`connectors.segments.point1`
HTML
|
Defines the second control point of bezier segment |
Property:`connectors.segments.point2`
HTML
|
Property:`connectors.segments.point2`
HTML
|
Sets the type of the segment |
Property:`connectors.segments.type`
HTML
|
Property:`connectors.segments.type`
HTML
|
Describes the length and angle between the first control point and the start point of bezier segment |
Property:`connectors.segments.vector1`
HTML
|
Property:`connectors.segments.vector1`
HTML
|
Describes the length and angle between the second control point and end point of bezier segment |
Property:`connectors.segments.vector2`
HTML
|
Property:`connectors.segments.vector2`
HTML
|
Sets the type of the connector |
Property:`connectors.shape.type`
HTML
|
Property:`connectors.shape.type`
HTML
|
Defines the source decorator of the connector |
Property:`connectors.sourceDecorator`
HTML
|
Property:`connectors.sourceDecorator`
HTML
|
Sets the border color of the source decorator |
Property:`connectors.sourceDecorator.borderColor`
HTML
|
Property:`connectors.sourceDecorator.style.strokeColor`
HTML
|
Sets the border width of the decorator |
Property:`connectors.sourceDecorator.borderWidth`
HTML
|
Property:`connectors.sourceDecorator.style.strokeWidth: 5`
HTML
|
Defines to customize sourceDecorator appearance using user-defined CSS |
Property:`connectors.sourceDecorator.cssClass`
HTML
| Not applicable |
Sets the fill color of the source decorator |
Property:`connectors.sourceDecorator.fillColor`
HTML
|
Property:`connectors.sourceDecorator.style.fill`
HTML
|
Sets the height of the source decorator |
Property:`connectors.sourceDecorator.height`
HTML
|
Property:`connectors.sourceDecorator.height`
HTML
|
Defines the custom shape of the source decorator |
Property:`connectors.sourceDecorator.pathData`
HTML
|
Property:`connectors.sourceDecorator.pathData`
HTML
|
Defines the shape of the source decorator. |
Property:`connectors.sourceDecorator.shape`
HTML
|
Property:`connectors.sourceDecorator.shape`
HTML
|
Defines the width of the source decorator |
Property:`connectors.sourceDecorator.width`
HTML
|
Property:`connectors.sourceDecorator.width`
HTML
|
Sets the source node of the connector |
Property:`connectors.sourceNode`
HTML
|
Property:`connectors.sourceID`
HTML
|
Defines the space to be left between the source node and the source point of a connector |
Property:`connectors.sourcePadding`
HTML
|
Property:`connectors.hitPadding`
HTML
|
Describes the start point of the connector |
Property:`connectors.sourcePoint`
HTML
|
Property:`connectors.sourcePoint`
HTML
|
Sets the source port of the connector |
Property:`connectors.sourcePort`
HTML
|
Property:`connectors.sourcePortID`
HTML
|
Defines the target decorator of the connector |
Property:`connectors.targetDecorator`
HTML
|
Property:`connectors.targetDecorator`
HTML
|
Sets the border color of the target decorator |
Property:`connectors.targetDecorator.borderColor`
HTML
|
Property:`connectors.targetDecorator.style.strokeColor`
HTML
|
Sets the border width of the decorator |
Property:`connectors.targetDecorator.borderWidth`
HTML
|
Property:`connectors.targetDecorator.style.strokeWidth: 5`
HTML
|
Defines to customize target Decorator appearance using user-defined CSS |
Property:`connectors.targetDecorator.cssClass`
HTML
| Not applicable |
Sets the fill color of the target decorator |
Property:`connectors.targetDecorator.fillColor`
HTML
|
Property:`connectors.targetDecorator.style.fill`
HTML
|
Sets the height of the target decorator |
Property:`connectors.targetDecorator.height`
HTML
|
Property:`connectors.targetDecorator.height`
HTML
|
Defines the custom shape of the target decorator |
Property:`connectors.targetDecorator.pathData`
HTML
|
Property:`connectors.targetDecorator.pathData`
HTML
|
Defines the shape of the target decorator. |
Property:`connectors.targetDecorator.shape`
HTML
|
Property:`connectors.targetDecorator.shape`
HTML
|
Defines the width of the target decorator |
Property:`connectors.targetDecorator.width`
HTML
|
Property:`connectors.targetDecorator.width`
HTML
|
Sets the target node of the connector |
Property:`connectors.targetNode`
HTML
|
Property:`connectors.targetID`
HTML
|
Defines the space to be left between the target node and the target point of a connector |
Property:`connectors.targetPadding`
HTML
|
Property:`connectors.hitPadding`
HTML
|
Describes the start point of the connector |
Property:`connectors.targetPoint`
HTML
|
Property:`connectors.targetPoint`
HTML
|
Sets the target port of the connector |
Property:`connectors.targetPort`
HTML
|
Property:`connectors.targetPortID`
HTML
|
Defines the tooltip that should be shown when the mouse hovers over connector |
Property:`connectors.tooltip`
HTML
Script
|
Property:`connectors.tooltip`
HTML
|
Sets the vertical alignment of connector |
Property:`connectors.verticalAlign`
HTML
| Not applicable |
Enables or disables the visibility of connector |
Property:`connectors.visible`
HTML
|
Property:`connectors.visible`
HTML
|
Sets the z-index of the connector |
Property:`connectors.zOrder`
HTML
|
Property:`connectors.zIndex`
HTML
|
Binds the custom JSON data with connector properties |
Property:`connectors.connectorTemplate`
HTML
| Not applicable |
Enables/Disables the default behaviors of the diagram |
Property:`constraints`
HTML
|
Property:`constraints`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the collection of context menu items |
Property:`contextMenu.items`
HTML
|
Property:`contextMenuSettings.items`
HTML
|
Defines the text for the collection of context menu item |
Property:`contextMenu.items.text`
HTML
|
Property:`contextMenuSettings.items.text`
HTML
|
Defines the name for the collection of context menu items |
Property:`contextMenu.items.name`
HTML
|
Property:`contextMenuSettings.items.id`
HTML
|
Defines the image url for the collection of context menu items |
Property:`contextMenu.items.imageUrl`
HTML
|
Property:`contextMenuSettings.items.url`
HTML
|
Defines the cssClass for the collection of context menu items |
Property:`contextMenu.items.cssClass`
HTML
|
Property:`contextMenuSettings.items.iconCss`
HTML
|
Defines the collection of sub items for the context menu items |
Property:`contextMenu.items.subItems`
HTML
|
Property:`contextMenuSettings.items`
HTML
|
set whether to display the default context menu items or not |
Property:`contextMenu.showCustomMenuItemsOnly`
HTML
|
Property:`contextMenuSettings.showCustomMenuOnly`
HTML
|
separator | Not applicable |
Property:`contextMenuSettings.items.separator`
HTML
|
Define the target to show the menu item. | Not applicable |
Property:`contextMenuSettings.items.target`
HTML
|
Enables/Disables the context menu items | Not applicable |
Property:`contextMenuSettings.show`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the data source either as a collection of objects or as an instance of ej.DataManager |
Property:`dataSourceSettings.dataSource`
HTML
|
Property:`dataSourceSettings.dataManager`
HTML
|
Sets the unique id of the data source items |
Property:`dataSourceSettings.id`
HTML
|
Property:`dataSourceSettings.id`
HTML
|
Defines the parent id of the data source item |
Property:`dataSourceSettings.parent`
HTML
|
Property:`dataSourceSettings.parentId`
HTML
|
Describes query to retrieve a set of data from the specified datasource |
Property:`dataSourceSettings.query`
HTML
|
Not applicable |
Sets the unique id of the root data source item |
Property:`dataSourceSettings.root`
HTML
|
Property:`dataSourceSettings.root`
HTML
|
Describes the name of the table on which the specified query has to be executed |
Property:`dataSourceSettings.tableName`
HTML
|
Not applicable |
Specifies the method name which is used to get the updated data from client side to the server side |
Property:`dataSourceSettings.crudAction`
HTML
|
Not applicable |
Specifies the create method which is used to get the nodes to be added from client side to the server side |
Property:`dataSourceSettings.crudAction.create`
HTML
|
Not applicable |
Specifies the update method which is used to get the updated data from client side to the server side |
Property:`dataSourceSettings.crudAction.update`
HTML
|
Not applicable |
Specifies the destroy method which is used to get the deleted items data from client side to the server side |
Property:`dataSourceSettings.crudAction.destroy`
HTML
|
Not applicable |
Specifies the read method to get the created nodes from client side to the server side |
Property:`dataSourceSettings.crudAction.read`
HTML
|
Not applicable |
Defines the data source either as a collection of objects or as an instance of ej.DataManager |
Property:`dataSourceSettings.customFields`
HTML
|
Property:`dataSourceSettings.data`
HTML
|
Defines the data source either as a collection of objects or as an instance of ej.DataManager |
Property:`dataSourceSettings.connectionDataSource`
HTML
|
Not applicable |
Sets the datasource for the connection datasource settings items |
Property:`dataSourceSettings.connectionDataSource.dataSource`
HTML
|
Not applicable |
Sets the unique id of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.id`
HTML
|
Not applicable |
Sets the source node of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.sourceNode`
HTML
|
Not applicable |
Sets the target node of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.targetNode`
HTML
|
Not applicable |
Sets the sourcePointX value of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.sourcePointX`
HTML
|
Not applicable |
Sets the sourcePointY value of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.sourcePointY`
HTML
|
Not applicable |
Sets the targetPoint-x value of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.targetPointX`
HTML
|
Not applicable |
Sets the targetPoint-y value of the connection data source item |
Property:`dataSourceSettings.connectionDataSource.targetPointY`
HTML
|
Not applicable |
Specifies the method name which is used to get updated connectors from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.crudAction`
HTML
|
Not applicable |
Specifies the create method which is used to get the connectors to be added from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.crudAction.create`
HTML
|
Not applicable |
Specifies the update method which is used to get the updated connectors from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.crudAction.update`
HTML
|
Not applicable |
Specifies the destroy method which is used to get the deleted items data from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.crudAction.destroy`
HTML
|
Not applicable |
Specifies the read method which is used to get the data from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.crudAction.read`
HTML
|
Not applicable |
Specifies the custom fields to get the updated data from client side to the server side |
Property:`dataSourceSettings.connectionDataSource.customFields`
HTML
|
Not applicable |
Binds the custom data with node model |
Property:`dataSourceSettings.doBinding`
HTML
|
Not applicable |
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Initializes the default values for nodes and connectors |
Property:`defaultSettings.node`
HTML
|
Property:`getNodeDefaults`
HTML
|
Initializes the default connector properties |
Property:`defaultSettings.connector`
HTML
|
Property:`getConnectorDefaults`
HTML
|
Initializes the default properties of groups |
Property:`defaultSettings.group`
HTML
|
Not applicable |
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Sets the type of JSON object to be drawn through drawing tool |
Property:`drawType`
HTML
|
Property:`drawingObject`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Enables or disables auto scroll in diagram |
Property:`enableAutoScroll`
HTML
|
Property:`canAutoScroll`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Enables or disables diagram context menu |
Property:`enableContextMenu`
HTML
|
Property:`contextMenuSettings.show`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Enable or disable persisting component's state between page reloads/b> | Not applicable |
Property:`enablePersistence`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Enable or disable rendering component in right to left direction | Not applicable |
Property:`enableRtl`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Allows to get the custom tool | Not applicable |
Property:`getCustomTool`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Specifies the height of the diagram |
Property:`height`
HTML
|
Property:`height`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
A method that takes a history entry as argument and returns whether the specific entry can be popped or not |
Property:`historyManager.canPop`
HTML
Script
|
Not applicable |
A method that ends grouping the changes |
Property:`historyManager.closeGroupAction`
HTML
Script
|
Property:`historyList.endGroupAction`
HTML
|
A method that removes the history of a recent change made in diagram |
Property:`historyManager.pop`
HTML
|
Not applicable |
A method that allows to track the custom changes made in diagram |
Property:`historyManager.push`
HTML
|
Property:`historyList.push`
HTML
|
Defines what should be happened while trying to restore a custom change |
Property:`historyManager.redo`
HTML
|
Property:`historyList.redo`
HTML
|
Gets the number of redo actions to be stored on the history manager. Its an read-only property and the collection should not be modified |
Property:`historyManager.redoStack`
|
Property:`historyList.redoStack`
HTML
|
Restricts the undo and redo actions to a certain limit |
Property:`historyManager.stackLimit`
HTML
|
Not applicable |
A method that starts to group the changes to revert/restore them in a single undo or redo |
Property:`historyManager.startGroupAction`
HTML
|
Property:`historyList.startGroupAction`
HTML
|
Defines what should be happened while trying to revert a custom change |
Property:`historyManager.undo`
HTML
|
Property:`historyList.undo`
HTML
|
Gets the number of undo actions to be stored on the history manager. Its an read-only property and the collection should not be modified |
Property:`historyManager.undoStack`
HTML
|
Property:`historyList.undoStack`
HTML
|
Set the current entry object | Not applicable |
Property:`historyList.currentEntry`
HTML
|
set the history entry can be undo | Not applicable |
Property:`historyList.canUndo`
HTML
|
Set the history entry can be redo | Not applicable |
Property:`historyList.canRedo`
HTML
|
Used to decide to stored the changes to history |
Property:`historyManager.canLog`
HTML
|
Property:`historyList.canLog`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the type of the rendering mode of label |
Property:`labelRenderingMode`
HTML
|
Not applicable |
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Specifies the custom bounds to arrange/align the layout |
Property:`layout.bounds`
HTML
|
Property:`layout.bounds`
HTML
|
Defines the fixed node with reference to which, the layout will be arranged and fixed node will not be repositioned |
Property:`layout.fixedNode`
HTML
|
Property:`layout.fixedNode`
HTML
|
Customizes the orientation of trees/sub trees |
Property:`layout.getLayoutInfo`
HTML
|
Property:`layout.getLayoutInfo`
HTML
|
Defines a method to customize the segments based on source and target nodes |
Property:`layout.getConnectorSegments`
HTML
|
Property:`layout.connectorSegments`
HTML
|
Sets the space to be horizontally left between nodes |
Property:`layout.horizontalSpacing`
HTML
|
Property:`layout.horizontalSpacing`
HTML
|
Defines the space to be left between layout bounds and layout |
Property:`layout.margin`
HTML
|
Property:`layout.margin`
HTML
|
Defines how to horizontally align the layout within the layout bounds |
Property:`layout.horizontalAlignment`
HTML
|
Property:`layout.horizontalAlignment`
HTML
|
Defines how to vertically align the layout within the layout bounds |
Property:`layout.verticalAlignment`
HTML
|
Property:`layout.verticalAlignment`
HTML
|
Sets the orientation/direction to arrange the diagram elements |
Property:`layout.orientation`
HTML
|
Property:`layout.orientation`
HTML
|
Sets the type of the layout based on which the elements will be arranged |
Property:`layout.type`
HTML
|
Property:`layout.type`
HTML
|
Sets the space to be vertically left between nodes |
Property:`layout.verticalSpacing`
HTML
|
Property:`layout.verticalSpacing`
HTML
|
Sets the value is used to define the root node of the layout |
Property:`layout.root`
HTML
|
Property:`layout.root`
HTML
|
Defines how long edges should be, ideally. This will be the resting length for the springs |
Property:`layout.springFactor`
HTML
|
Property:`layout.springFactor`
HTML
|
Defines how long edges should be, ideally. This will be the resting length for the springs |
Property:`layout.maxIteration`
HTML
|
Property:`layout.maxIteration`
HTML
|
Defines how long edges should be, ideally. This will be the resting length for the springs |
Property:`layout.springLength`
HTML
|
Property:`layout.springLength`
HTML
|
Sets how to define the connection direction (first segment direction & last segment direction) | Not applicable |
Property:`layout.connectionDirection`
HTML
|
Enables/Disables animation option when a node is expanded/collapsed | Not applicable |
Property:`layout.enableAnimation`
HTML
|
Defines whether an object should be at the left/right of the mind map. Applicable only for the direct children of the root node | Not applicable |
Property:`layout.getBranch`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the current culture of diagram |
Property:`locale`
HTML
|
Property:`locale`
HTML
|
<ejs-diagram #diagram id=“diagram” width=“850px” height=“700px” [pageSettings]=“pageSettings”>
Script
public pageSettings: PageSettingsModel = {
background: {
color: ‘red’,
source: ‘Clayton.png’,
scale: ‘Meet’,
align: ‘XMidYMid’
}
}
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Array of JSON objects where each object represents a node |
Property:`nodes`
HTML
|
Property:`annotations.content`
HTML
|
Defines the type of BPMN Activity. Applicable, if the node is a BPMN activity |
Property:`nodes.activity`
HTML
|
Property:`nodes.shape.activity`
HTML
|
To maintain additional information about nodes |
Property:`nodes.addInfo`
HTML
|
Property:`nodes.addInfo`
HTML
|
Defines the additional information of a process. It is not directly related to the message flows or sequence flows of the process |
Property:`nodes.annotation`
HTML
|
Property:`nodes.shape.annotations`
HTML
|
Sets the angle between the BPMN shape and the annotation |
Property:`nodes.annotation.angle`
HTML
|
Property:`nodes.shape.annotations.angle`
HTML
|
Sets the direction of the text annotation |
Property:`nodes.annotation.direction`
HTML
|
Not applicable |
Sets the height of the text annotation |
Property:`nodes.annotation.height`
HTML
|
Property:`nodes.shape.annotations.height`
HTML
|
Sets the distance between the BPMN shape and the annotation |
Property:`nodes.annotation.length`
HTML
|
Property:`nodes.shape.annotations.length`
HTML
|
Defines the additional information about the flow object in a BPMN Process |
Property:`nodes.annotation.text`
HTML
|
Property:`nodes.shape.annotations.text`
HTML
|
Sets the width of the text annotation |
Property:`nodes.annotation.width`
HTML
|
Property:`nodes.shape.annotations.width`
HTML
|
Sets the id for the annotation | Not applicable |
Property:`nodes.shape.annotations.id`
HTML
|
Defines whether the group can be ungrouped or not |
Property:`nodes.canUngroup`
HTML
|
Not applicable |
Array of JSON objects where each object represents a child node/connector |
Property:`nodes.children`
HTML
|
Property:`nodes.children`
HTML
|
Sets the type of UML classifier |
Property:`nodes.classifier`
HTML
|
Not applicable |
Defines the name, attributes and methods of a Class. Applicable, if the node is a Class |
Property:`nodes.class`
HTML
|
Not applicable |
Sets the name of class |
Property:`nodes.class.name`
HTML
|
Not applicable |
Defines the collection of attributes |
Property:`nodes.class.attributes`
HTML
|
Not applicable |
Sets the name of the attribute |
Property:`nodes.class.attributes.name`
HTML
|
Not applicable |
Sets the data type of attribute |
Property:`nodes.class.attributes.type`
HTML
|
Not applicable |
Defines the visibility of the attribute |
Property:`nodes.class.attributes.scope`
HTML
|
Not applicable |
Defines the collection of methods of a Class |
Property:`nodes.class.methods`
HTML
|
Not applicable |
Sets the name of the method |
Property:`nodes.class.methods.name`
HTML
|
Not applicable |
Defines the arguments of the method |
Property:`nodes.class.methods.arguments`
HTML
|
Not applicable |
Defines the name, attributes and methods of a Class. Applicable, if the node is a Class |
Property:`nodes.class.methods.arguments.name`
HTML
|
Not applicable |
Sets the type of the argument |
Property:`nodes.class.methods.arguments.type`
HTML
|
Not applicable |
Sets the return type of the method |
Property:`nodes.class.methods.type`
HTML
|
Not applicable |
Sets the visibility of the method |
Property:`nodes.class.methods.scope`
HTML
|
Not applicable |
Defines the state of the node is collapsed |
Property:`nodes.collapseIcon`
HTML
|
Property:`nodes.collapseIcon`
HTML
|
Sets the border color for collapse icon of node |
Property:`nodes.collapseIcon.borderColor`
HTML
|
Property:`nodes.collapseIcon.borderColor`
HTML
|
Sets the border width for collapse icon of node |
Property:`nodes.collapseIcon.borderWidth`
HTML
|
Property:`nodes.collapseIcon.borderWidth`
HTML
|
Sets the fill color for collapse icon of node |
Property:`nodes.collapseIcon.fillColor`
HTML
|
Property:`nodes.collapseIcon.fill`
HTML
|
Defines the height for collapse icon of node |
Property:`nodes.collapseIcon.height`
HTML
|
Property:`nodes.collapseIcon.height`
HTML
|
Sets the horizontal alignment of the icon |
Property:`nodes.collapseIcon.horizontalAlignment`
HTML
|
Property:`nodes.collapseIcon.horizontalAlignment`
HTML
|
To set the margin for the collapse icon of node |
Property:`nodes.collapseIcon.margin`
HTML
|
Property:`nodes.collapseIcon.margin`
HTML
|
Sets the fraction/ratio(relative to node) that defines the position of the icon |
Property:`nodes.collapseIcon.offset`
HTML
|
Property:`nodes.collapseIcon.offset`
HTML
|
Defines the shape of the collapsed state of the node |
Property:`nodes.collapseIcon.shape`
HTML
|
Property:`nodes.collapseIcon.shape`
HTML
|
Sets the vertical alignment of the icon |
Property:`nodes.collapseIcon.verticalAlignment `
HTML
|
Property:`nodes.collapseIcon.verticalAlignment `
HTML
|
Defines the custom content of the icon | Not applicable |
Property:`nodes.collapseIcon.content`
HTML
|
Defines the geometry of a path | Not applicable |
Property:`nodes.collapseIcon.pathData`
HTML
|
Defines the corner radius of the icon border | Not applicable |
Property:`nodes.collapseIcon.cornerRadius`
HTML
|
Defines the space that the icon has to be moved from the icon border | Not applicable |
Property:`nodes.collapseIcon.padding`
HTML
|
Defines the distance to be left between a node and its connections(In coming and out going connections) |
Property:`nodes.connectorPadding`
HTML
|
Not applicable |
Enables or disables the default behaviors of the node |
Property:`nodes.constraints`
HTML
|
Property:`nodes.constraints`
HTML
|
Defines how the child objects need to be arranged(Either in any predefined manner or automatically). Applicable, if the node is a group |
Property:`nodes.container`
HTML
|
Not applicable |
Defines the orientation of the container. Applicable, if the group is a container |
Property:`nodes.container.orientation`
HTML
|
Not applicable |
Sets the type of the container. Applicable if the group is a container. |
Property:`nodes.container.type`
HTML
|
Not applicable |
Defines the corner radius of rectangular shapes |
Property:`nodes.cornerRadius`
HTML
|
Not applicable |
This property allows you to customize nodes appearance using user-defined CSS |
Property:`nodes.cssClass`
HTML
|
Not applicable |
Defines the BPMN data object |
Property:`nodes.data.type`
HTML
|
Property:`nodes.shape.dataObject.type`
HTML
|
Defines whether the BPMN data object is a collection or not |
Property:`nodes.data.collection`
HTML
|
Property:`nodes.shape.dataObject.collection`
HTML
|
Defines an Enumeration in a UML Class Diagram |
Property:`nodes.enumeration`
HTML
|
Not applicable |
Sets the name of the Enumeration |
Property:`nodes.enumeration.name`
HTML
|
Not applicable |
Defines the collection of enumeration members |
Property:`nodes.enumeration.members`
HTML
|
Not applicable |
Sets the name of the enumeration member |
Property:`nodes.enumeration.members.name`
HTML
|
Not applicable |
Sets the type of the BPMN Events. Applicable, if the node is a BPMN event |
Property:`nodes.event`
HTML
|
Property:`nodes.shape.event`
HTML
|
Defines the type of the trigger |
Property:`nodes.event.trigger`
HTML
|
Property:`nodes.shape.event.trigger`
HTML
|
Defines whether the node can be automatically arranged using layout or not |
Property:`nodes.excludeFromLayout`
HTML
|
Property:`nodes.excludeFromLayout`
HTML
|
Defines the fill color of the node |
Property:`nodes.fillColor`
HTML
|
Property:`nodes.style.fill`
HTML
|
Sets the type of the BPMN Gateway. Applicable, if the node is a BPMN gateway |
Property:`nodes.gateway`
HTML
|
Property:`nodes.shape.gateway`
HTML
|
Paints the node with linear color transitions |
Property:`nodes.gradient.type`
HTML
|
Property:`nodes.style.gradient.type`
HTML
|
Defines the x1 value of linear gradient |
Property:`nodes.gradient.LinearGradient.x1`
HTML
|
Property:`nodes.style.gradient.LinearGradient.x1`
HTML
|
Defines the x2 value of linear gradient |
Property:`nodes.gradient.LinearGradient.x2`
HTML
|
Property:`nodes.style.gradient.LinearGradient.x2`
HTML
|
Defines the y1 value of linear gradient |
Property:`nodes.gradient.LinearGradient.y1`
HTML
|
Property:`nodes.style.gradient.LinearGradient.y1`
HTML
|
Defines the y2 value of linear gradient |
Property:`nodes.gradient.LinearGradient.y2`
HTML
|
Property:`nodes.style.gradient.LinearGradient.y2`
HTML
|
Defines the type of gradient |
Property:`nodes.gradient.RadialGradient.type`
HTML
|
Property:`nodes.style.gradient.type`
HTML
|
Defines the position of the outermost circle |
Property:`nodes.gradient.RadialGradient.cx`
HTML
|
Property:`nodes.style.RadialGradient.cx`
HTML
|
Defines the outer most circle of the radial gradient |
Property:`nodes.gradient.RadialGradient.cy`
HTML
|
Property:`nodes.style.RadialGradient.cy`
HTML
|
Defines the innermost circle of the radial gradient |
Property:`nodes.gradient.RadialGradient.fx`
HTML
|
Property:`nodes.style.RadialGradient.fx`
HTML
|
Defines the innermost circle of the radial gradient |
Property:`nodes.gradient.RadialGradient.fy`
HTML
|
Property:`nodes.style.RadialGradient.fy`
HTML
|
Defines the different colors and the region of color transitions |
Property:`nodes.gradient.RadialGradient.stops`
HTML
|
Property:`nodes.style.RadialGradient.stops`
HTML
|
Sets the color to be filled over the specified region |
Property:`nodes.gradient.stops.color`
HTML
|
Property:`nodes.style.gradient.stops.color`
HTML
|
Sets the position where the previous color transition ends and a new color transition starts |
Property:`nodes.gradient.stops.offset`
HTML
|
Property:`nodes.style.gradient.stops.offset`
HTML
|
Describes the transparency level of the region |
Property:`nodes.gradient.stops.opacity`
HTML
|
Property:`nodes.style.gradient.stops.opacity`
HTML
|
Defines the header of a swimlane/lane |
Property:`nodes.header`
HTML
|
Not applicable |
Defines the height of the node |
Property:`nodes.height`
HTML
|
Property:`nodes.height`
HTML
|
Sets the horizontal alignment of the node. Applicable, if the parent of the node is a container |
Property:`nodes.horizontalAlign`
HTML
|
Not applicable |
A read only collection of the incoming connectors/edges of the node |
Property:`nodes.inEdges`
|
Property:`nodes.height`
HTML
|
Defines an interface in a UML interface Diagram |
Property:`nodes.interface`
HTML
|
Not applicable |
Defines the name, attributes and methods of a Interface. Applicable, if the node is a Interface |
Property:`nodes.interface.name`
HTML
|
Not applicable |
Defines the collection of attributes |
Property:`nodes.interface.attributes`
HTML
|
Not applicable |
Sets the name of the attribute |
Property:`nodes.interface.attributes.name`
HTML
|
Not applicable |
Sets the data type of attribute |
Property:`nodes.interface.attributes.type`
HTML
|
Not applicable |
Defines the visibility of the attribute |
Property:`nodes.interface.attributes.scope`
HTML
|
Not applicable |
Defines the collection of methods of a interface |
Property:`nodes.interface.methods`
HTML
|
Not applicable |
Sets the name of the method |
Property:`nodes.interface.methods.name`
HTML
|
Not applicable |
Defines the arguments of the method |
Property:`nodes.interface.methods.arguments`
HTML
|
Not applicable |
Defines the name, attributes and methods of a interface. Applicable, if the node is a interface |
Property:`nodes.interface.methods.arguments.name`
HTML
|
Not applicable |
Sets the type of the argument |
Property:`nodes.interface.methods.arguments.type`
HTML
|
Not applicable |
Sets the return type of the method |
Property:`nodes.interface.methods.type`
HTML
|
Not applicable |
Sets the visibility of the method |
Property:`nodes.interface.methods.scope`
HTML
|
Not applicable |
Defines whether the sub tree of the node is expanded or collapsed |
Property:`nodes.isExpanded`
HTML
|
Property:`nodes.isExpanded`
HTML
|
Sets the node as a swimlane |
Property:`nodes.isSwimlane`
HTML
|
Not applicable |
A collection of objects where each object represents a label |
Property:`nodes.labels`
HTML
|
Property:`nodes.annotations`
HTML
|
An array of objects where each object represents a lane. Applicable, if the node is a swimlane |
Property:`nodes.lanes`
HTML
|
Not applicable |
This property allows you to customize lanes appearance using user-defined CSS |
Property:`nodes.lanes.cssClass`
HTML
|
Not applicable |
Defines the header of the lane |
Property:`nodes.lanes.header`
HTML
|
Not applicable |
Defines the width of lane |
Property:`nodes.lanes.width`
HTML
|
Not applicable |
An array of objects where each object represents a child node of the lane |
Property:`nodes.lanes.children`
HTML
|
Not applicable |
Defines the object as a lane |
Property:`nodes.lanes.isLane`
HTML
|
Not applicable |
Defines the minimum space to be left between the bottom of parent bounds and the node |
Property:`nodes.margin`
HTML
|
Property:`nodes.margin`
HTML
|
Defines the maximum height limit of the node |
Property:`nodes.maxHeight`
HTML
|
Property:`nodes.maxHeight`
HTML
|
Sets the unique identifier of the node |
Property:`nodes.name`
HTML
|
Property:`nodes.id`
HTML
|
Defines the opaque of the node |
Property:`nodes.opacity`
HTML
|
Property:`nodes.style.opacity`
HTML
|
Defines the minimum padding value to be left between the bottom most position of a group and its children. Applicable, if the group is a container |
Property:`nodes.paddingBottom`
HTML
|
Not applicable |
Defines the scrollable area of diagram. Applicable, if the scroll limit is “limited” |
Property:`pageSettings.scrollableArea`
HTML
|
Property:`scrollSettings.scrollableArea`
HTML
|
Defines the draggable region of diagram elements |
Property:`pageSettings.boundaryConstraints`
HTML
|
Property:`pageSettings.boundaryConstraints`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines the size and preview size of the node to add that to symbol palette |
Property:`nodes.paletteItem`
HTML
|
Property:`palettes`
HTML
|
Defines whether the symbol should be drawn at its actual size regardless of precedence factors or not |
Property:`nodes.paletteItem.enableScale`
HTML
|
Property:`palettes.fit`
HTML
|
To display a name for nodes in the symbol palette |
Property:`nodes.paletteItem.label`
HTML
|
Property:`palettes.title`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
A read only collection of the selected items |
Property:`selectedItems.children`
|
Not applicable |
Controls the visibility of selector |
Property:`selectedItems.constraints`
HTML
|
Property:`selectedItems.constraints`
HTML
|
Defines a method that dynamically enables/ disables the interaction with multiple selection |
Property:`selectedItems.getConstraints`
HTML
|
Not applicable |
Sets the height of the selected items |
Property:`selectedItems.height`
HTML
|
Property:`selectedItems.height`
HTML
|
Sets the angle to rotate the selected items |
Property:`selectedItems.tooltip`
HTML
|
Not applicable |
A collection of frequently used commands that will be added around the selector |
Property:`selectedItems.userHandles`
HTML
|
Property:`selectedItems.userHandles`
HTML
|
Sets the horizontal alignment of the user handle |
Property:`selectedItems.userHandles.horizontalAlignment`
HTML
|
Property:`selectedItems.userHandles`
HTML
|
Defines the interactive behaviors of the user handle |
Property:`selectedItems.userHandles.tool`
HTML
|
Not applicable |
Defines whether the user handle should be added, when more than one element is selected |
Property:`selectedItems.userHandles.enableMultiSelection`
HTML
|
Not applicable |
Sets the horizontal alignment of the user handle | Not applicable |
Property:`selectedItems.userHandles.displacement`
HTML
|
Behavior | API in Essential JS 1 | API in Essential JS 2 |
Defines whether the default diagram properties can be serialized or not |
Property:`serializationSettings.preventDefaultValues`
HTML
|
Not applicable |
Behavior | API in Essential JS 1 | API in Essential JS 2 |
An object that defines the description, appearance and alignments of tooltip |
Property:`tooltip`
HTML
Script
|
Property:`tooltip`
HTML
|
Defines the alignment of tooltip |
Property:`tooltip.alignment`
HTML
Script
|
Not applicable |
Sets the margin of the tooltip |
Property:`tooltip.margin`
HTML
Script
|
Not applicable |
Sets the svg/html template to be bound with tooltip |
Property:`tooltip.templateId`
HTML
Script
|
Property:`tooltip.content`
HTML
|
Defines if the Tooltip has tip pointer or not | Not applicable |
Property:`tooltip.showTipPointer`
HTML
|
Defines the position of the Tooltip | Not applicable |
Property:`tooltip.position`
HTML
|
Allows to set the same or different animation option for the Tooltip, when it is opened or closed | Not applicable |
Property:`tooltip.animation`
HTML
|
Sets the width of the tooltip | Not applicable |
Property:`tooltip.width`
HTML
|
Sets the height of the Tooltip | Not applicable |
Property:`tooltip.height`
HTML
|