@graphty/graphty-element / index / ExpandBehavior
Interface: ExpandBehavior ​
Defined in: graphty-element/src/session/sources/types.ts:58
What a click or double-click on a node fetches, in the element's behavior.expand config. Every default is neutral: nothing expands until trigger is set. Experimental.
Properties ​
depth? ​
readonlyoptionaldepth?:number
Defined in: graphty-element/src/session/sources/types.ts:62
How many hops.
Default Value ​
1direction? ​
readonlyoptionaldirection?:"out"|"in"|"both"
Defined in: graphty-element/src/session/sources/types.ts:64
Which edges to follow.
Default Value ​
"both"layout? ​
readonlyoptionallayout?:"none"|"continue"
Defined in: graphty-element/src/session/sources/types.ts:70
"continue" feeds new nodes to the running layout; "none" leaves them where they start.
Default Value ​
"continue"limit? ​
readonlyoptionallimit?:number
Defined in: graphty-element/src/session/sources/types.ts:66
At most this many new nodes per expansion; no limit by default.
relationshipTypes? ​
readonlyoptionalrelationshipTypes?: readonlystring[]
Defined in: graphty-element/src/session/sources/types.ts:68
Only these relationship types.
trigger? ​
readonlyoptionaltrigger?:"none"|"click"|"double-click"
Defined in: graphty-element/src/session/sources/types.ts:60
What expands a node.
Default Value ​
"none"