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
Copy file name to clipboardExpand all lines: sites/docs/docs/api/detail/constructor.en.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ table td:first-of-type {
39
39
| height | number | - | - | Specify the height of the canvas in 'px', the default is to use the container height |
40
40
| background | false \|[BackgroundConfig](#BackgroundConfig)| - | false | Canvas background, no background by default |
41
41
| grid | number \| boolean \|[GridOptions](#GridOptions)| - | false | Grid, if set to `false` without grid on, it is 1px moving units, no grid background is drawn; if set to `true` on, it is 20px dotted grid by default |
42
-
|snapToGrid<Badge>Added in 2.0.10</Badge> | boolean | - | false | Whether to enable grid snapping, when enabled, dragging nodes will move in grid size increments |
42
+
|snapGrid<Badge>Added in 2.0.10</Badge> | boolean | - | false | Whether to enable grid snapping, when enabled, dragging nodes will move in grid size increments |
| edgeGenerator |`EdgeGeneratorType`| - | - | Rules for generating edges when connecting nodes and moving edges |
74
75
| plugins |`ExtensionConstructor[]`| - | - | Plugins loaded by the current LogicFlow instance, uses global plugins if not passed |
75
76
| autoExpand | boolean | - | true | Whether to automatically expand the canvas when nodes are dragged near the edge of the canvas. Note: If the canvas keeps scrolling when dragging nodes to a certain position, it's because there's an issue with the initialized canvas width and height. If the canvas width and height are variable, it's recommended to turn off autoExpand |
Copy file name to clipboardExpand all lines: sites/docs/docs/api/model/graphModel.en.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ class CustomNode extends RectNode {
57
57
| idGenerator |`(type?: string) => string \| undefined`|| Custom global id generator |
58
58
| nodeMoveRules |`Model.NodeMoveRule[]`|[]| Node movement rules, all rules in this array are checked when node moves |
59
59
| customTrajectory |`LFOptions.CustomAnchorLineProps`|| Get custom connection trajectory |
60
+
| customTargetAnchor |`LFOptions.customTargetAnchorType`|| Custom anchor connection rules (when a manual connection drops on a node, decides which anchor to use). |
60
61
| edgeGenerator |`LFOptions.EdgeGeneratorType`|| Edge generation rules for node connections and edge changes |
61
62
| edgeType |`string`|| Default edge type used when creating edges on graph |
62
63
| nodes |`BaseNodeModel[]`|[]| All node objects on canvas |
0 commit comments