Beta
Optional
getUse this function to modify style of a edge from outside the graph. You can overwrite the style, but DO NOT merge currentStyle or originStyle when returning new styling (or rather styling patch). This can lead do recursive clone error later on. Merging with actual style will be handled automatically! Use them just as a reference, eg edge width to multiply.
The edge specification for which to get the edge style.
The original style (the one passed to edge during it's initialization). See '@antv/graphin' -> EdgeStyle
The current style. See '@antv/graphin' -> EdgeStyle
A promise that resolves to the style patch. See '@antv/graphin' -> EdgeStyle
Optional
getThe entity for which to get the node style.
for eg current node radius (if its a circural node), so you want to eg apply a holor like a heatmap by amount of connections.
A promise that resolves to the style patch. See '@antv/graphin' -> NodeStyle
Type representing a styler with methods for getting G6 node and edge styles. See ColorByType.ts for an example