构件 eo-diagram
Examples
Basic
Page Architecture
Force
Properties
Events
Methods
Name | Description | Params | Returns |
---|
callOnLineLabel | | id: string , method: string , param_3: unknown[] | |
Type references
DiagramNode
Name | Type | Required | Description |
---|
id | DiagramNodeId | ✅ | |
type | string | | |
[key: string] | unknown | | |
DiagramEdge
Name | Type | Required | Description |
---|
source | string | ✅ | |
target | string | ✅ | |
type | string | | |
[key: string] | unknown | | |
NodeBrickConf
Name | Type | Required | Description |
---|
useBrick | UseSingleBrickConf | ✅ | |
nodeType | string | string[] | | |
if | string | boolean | null | | |
LineConf
extends LineConfOverridable
TextOptions
LineLabelConf
Name | Type | Required | Description |
---|
if | string | boolean | null | | |
useBrick | UseSingleBrickConf | ✅ | |
placement | LineLabelPlacement | | |
LineConfOverrides
LineConfOverridable
Name | Type | Required | Description |
---|
strokeColor | string | | |
strokeWidth | number | | |
interactStrokeWidth | number | | |
LineMarkerConf
LayoutOptionsDagre
extends BaseLayoutOptions
Name | Type | Required | Description |
---|
rankdir | "TB" | "BT" | "LR" | "RL" | | |
ranksep | number | | |
edgesep | number | | |
nodesep | number | | |
align | "UL" | "UR" | "DL" | "DR" | | |
BaseLayoutOptions
LayoutOptionsForce
extends BaseLayoutOptions
ForceCollideOptions
Name | Type | Required | Description |
---|
dummyRadius | number | | |
radiusDiff | number | | |
strength | number | | |
iterations | number | | |
ActiveTargetOfNode
Name | Type | Required | Description |
---|
type | "node" | ✅ | |
nodeId | string | ✅ | |
ActiveTargetOfEdge
ConnectNodesOptions
extends NodesFilterOptions
Name | Type | Required | Description |
---|
strokeColor | string | | |
strokeWidth | number | | |
arrow | boolean | | |
NodesFilterOptions
Name | Type | Required | Description |
---|
sourceType | string | string[] | | |
if | string | boolean | null | | |
DragNodesOptions
extends NodesFilterOptions
UserViewQuery
Name | Type | Required | Description |
---|
namespace | string | ✅ | |
key | string | ✅ | |
LineTarget
ConnectLineDetail
DiagramNodeId
string
LineType
"auto" | "curve" | "straight" | "polyline"
CurveType
`curve${string}`
LineLabelPlacement
"center" | "start" | "end"
LineMarkerPlacement
"start" | "end"
LineMarkerType
"arrow" | "circle" | "0..1" | "0..N"
LayoutOptions
LayoutOptionsDagre | LayoutOptionsForce
PartialRectTuple
number | [all: number] | [vertical: number, horizontal: number] | [top: number, horizontal: number, bottom: number] | [top: number, right: number, bottom: number, left: number]
ActiveTarget
ActiveTargetOfNode | ActiveTargetOfEdge
RangeTuple
[min: number, max: number]