Register

2 min read

The property register of component <Graphin/> is used to customize NodeShape, EdgeShape and behavior using the G6 API directly.

  PropertyTypeRequiredDescription
nodeShape(G6) => Register[]noCustom NodeShape of G6
edgeShape(G6) => Register[]noCustom EdgeShape of G6
behavior(G6) => BehaviorRegister[];noCustom behavior of G6

Register

  PropertyTypeRequiredDescription
namestringyesname of the custom NodeShape or EdgeShape
register(G6: G6Type) => void;yesa function to register a NodeShape or EdgeShape, the argument is G6

BehaviorRegister

  PropertyTypeRequiredDescription
namestringyesname of the custom behavior
register(G6: G6Type) => void;yesa function to register a behavior, the argument is G6
optionsanyyesconfiguration
modestringyesmode