You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[getNodeModelById](detail#getnodemodelbyid)| Get the `model` of the node |
41
-
|[getNodeDataById](detail#getnodedatabyid)| Get the `model` data of a node. |
42
-
|[getNodeIncomingEdge](detail#getnodeincomingedge)| Get all the edges that `end` at this node.|
43
-
|[getNodeOutgoingEdge](detail#getnodeoutgoingedge)| Get all the edges that `start` at this node. |
44
-
|[getNodeIncomingNode](detail#getnodeincomingnode)| Get all parent nodes of the node. |
45
-
|[getNodeOutgoingNode](detail#getnodeoutgoingnode)| Get all the next-level nodes of the node. |
35
+
|[addNode](./detail/index.en-US.md#addnode)| Add nodes to the graph. |
36
+
|[deleteNode](./detail/index.en-US.md#deletenode)| Deletes a node on the graph, and if there is a line attached to this node, then also deletes the line. |
37
+
|[cloneNode](./detail/index.en-US.md#clonenode)| Clone a node. |
38
+
|[changeNodeId](./detail/index.en-US.md#changenodeid)| Modify the id of the node, if no new id is passed, one will be created internally automatically. |
|[setDefaultEdgeType](detail#setdefaultedgetype)| Set the type of edge, i.e. set the type of linkage drawn directly by the user at the node.|
52
53
|[addEdge](detail#addedge)| Create an edge connecting two nodes. |
53
54
|[getEdgeDataById](detail#getedgedatabyid)| Get edge data by `id`. |
@@ -58,11 +59,24 @@ All node instance operations on the flowchart, as well as events, and behavioral
58
59
|[deleteEdge](detail#deleteedge)| Delete an edge based on its id. |
59
60
|[deleteEdgeByNodeId](detail#deleteedgebynodeid)| Deletes an edge of the specified type, based on the start and end points of the edge, and can pass only one of them. |
60
61
|[getNodeEdges](detail#getnodeedges)| Get the model of all edges connected by the node. |
62
+
=======
63
+
|[setDefaultEdgeType](./detail/index.en-US.md#setdefaultedgetype)| Set the type of edge, i.e. set the type of linkage drawn directly by the user at the node.|
64
+
|[addEdge](./detail/index.en-US.md#addedge)| Create an edge connecting two nodes. |
65
+
|[getEdgeDataById](./detail/index.en-US.md#getedgedatabyid)| Get edge data by `id`. |
66
+
|[getEdgeModelById](./detail/index.en-US.md#getedgemodelbyid)| Get the model of the edge based on the its `id`. |
67
+
|[getEdgeModels](./detail/index.en-US.md#getedgemodels)| Get the model of the edge that satisfies the condition. |
68
+
|[changeEdgeId](./detail/index.en-US.md#changeedgeid)| Modify the edge id. If a new id is not passed, one will be created internally automatically. |
69
+
|[changeEdgeType](./detail/index.en-US.md#changeedgetype)| Switch type of the edge. |
70
+
|[deleteEdge](./detail/index.en-US.md#deleteedge)| Delete an edge based on its id. |
71
+
|[deleteEdgeByNodeId](./detail/index.en-US.md#deleteedgebynodeid)| Deletes an edge of the specified type, based on the start and end points of the edge, and can pass only one of them. |
72
+
|[getNodeEdges](./detail/index.en-US.md#getnodeedges)| Get the model of all edges connected by the node. |
|[updateAttributes](detail#updateattributes)| Modifies an attribute in the corresponding element model, which is called graphModel inside the method. |
93
+
=======
94
+
|[addElements](./detail/index.en-US.md#addelements)| Batch add nodes and edges. |
95
+
|[selectElementById](./detail/index.en-US.md#selectelementbyid)| Select the graph. |
96
+
|[getSelectElements](./detail/index.en-US.md#getselectelements)| Get all elements selected. |
97
+
|[clearSelectElements](./detail/index.en-US.md#clearselectelements)| Uncheck all elements. |
98
+
|[getModelById](./detail/index.en-US.md#getmodelbyid)| Get the `model` of a node or edge based on its `id`. |
99
+
|[getDataById](./detail/index.en-US.md#getdatabyid)| Get the `data` of a node or edge based on its `id`. |
100
+
|[deleteElement](./detail/index.en-US.md#deleteelement)| Delete the element by id. |
101
+
|[setElementZIndex](./detail/index.en-US.md#setelementzindex)| Set the `zIndex` of the element.|
102
+
|[getAreaElement](./detail/index.en-US.md#getareaelement)| Gets all the elements in the specified region, which must be a DOM layer. |
103
+
|[setProperties](./detail/index.en-US.md#setproperties)| Set the custom properties of nodes or edges. |
104
+
|[getProperties](./detail/index.en-US.md#getproperties)| Get the custom properties of a node or an edge. |
|[editText](detail#edittext)| Show text editing box for nodes and edges, entering edit mode, equivalent to [graphModel.editText](api/graph-model-api#edittext). |
85
114
|[updateText](detail#updatetext)| Update the node or edge text. |
86
115
|[updateEditConfig](detail#updateeditconfig)| Update the basic configuration of the flow editor. |
87
116
|[getEditConfig](detail#geteditconfig)| Get the basic configuration of the flow editor. |
117
+
=======
118
+
|[editText](./detail/index.en-US.md#edittext)| Show text editing box for nodes and edges, entering edit mode, equivalent to [graphModel.editText](api/graph-model-api#edittext). |
119
+
|[updateText](./detail/index.en-US.md#updatetext)| Update the node or edge text. |
120
+
|[updateEditConfig](./detail/index.en-US.md#updateeditconfig)| Update the basic configuration of the flow editor. |
121
+
|[getEditConfig](./detail/index.en-US.md#geteditconfig)| Get the basic configuration of the flow editor. |
|[focusOn](detail#focuson)| Position to the center of the canvas viewport. |
95
131
|[resize](detail#resize)| Adjusts the width and height of the canvas, if the width or height is not passed, the width and height of the canvas will be calculated automatically. |
96
132
|[toFront](detail#tofront)| Places an element to the top. |
@@ -100,18 +136,35 @@ All node instance operations on the flowchart, as well as events, and behavioral
100
136
|[clearData](detail#cleardata)| Clear the canvas. |
101
137
|[renderRawData](detail#renderrawdata)| Rendering of the raw graph data. The difference with render is that after using `adapter`, you can use this method if you still want to render the data in logicflow format. |
102
138
|[render](detail#render)| Render graph data. |
139
+
=======
140
+
|[focusOn](./detail/index.en-US.md#focuson)| Position to the center of the canvas viewport. |
141
+
|[resize](./detail/index.en-US.md#resize)| Adjusts the width and height of the canvas, if the width or height is not passed, the width and height of the canvas will be calculated automatically. |
142
+
|[toFront](./detail/index.en-US.md#tofront)| Places an element to the top. |
143
+
|[getPointByClient](./detail/index.en-US.md#getpointbyclient)| Get the coordinates of the event location relative to the top left corner of the canvas. |
144
+
|[getGraphData](./detail/index.en-US.md#getgraphdata)| Get flow graphing data. |
145
+
|[getGraphRawData](./detail/index.en-US.md#getgraphrawdata)| Get the raw data of the flow graph. The difference with getGraphData is that the data obtained by this method is not affected by the `adapter`. |
146
+
|[clearData](./detail/index.en-US.md#cleardata)| Clear the canvas. |
147
+
|[renderRawData](./detail/index.en-US.md#renderrawdata)| Rendering of the raw graph data. The difference with render is that after using `adapter`, you can use this method if you still want to render the data in logicflow format. |
|[zoom](detail#zoom)| Zoom in or out on the canvas. |
116
169
|[resetZoom](detail#resetzoom)| Reset the zoom ratio of the drawing to the default, which is 1. |
117
170
|[setZoomMiniSize](detail#setzoomminisize)| Sets the minimum number of times the graph can be scaled when it is reduced. The parameter takes values from 0 to 1. Default 0. |
@@ -123,12 +176,32 @@ All node instance operations on the flowchart, as well as events, and behavioral
123
176
|[fitView](detail#fitview)| Reduce the entire flowchart to a size where the entire canvas can be displayed. |
|[zoom](./detail/index.en-US.md#zoom)| Zoom in or out on the canvas. |
181
+
|[resetZoom](./detail/index.en-US.md#resetzoom)| Reset the zoom ratio of the drawing to the default, which is 1. |
182
+
|[setZoomMiniSize](./detail/index.en-US.md#setzoomminisize)| Sets the minimum number of times the graph can be scaled when it is reduced. The parameter takes values from 0 to 1. Default 0. |
183
+
|[setZoomMaxSize](./detail/index.en-US.md#setzoommaxsize)| Set the maximum zoom scale when zooming in; default is 16. |
184
+
|[getTransform](./detail/index.en-US.md#gettransform)| Get the zoom in/out value of the current canvas.|
0 commit comments