API Reference
Class
VisNetworkCustomShapes
Provides predefined custom shapes for VisNetwork nodes.
Inheritance
- Object
- VisNetworkCustomShapes
Methods
public static VisNetworkCustomShape Arrow(String direction = "right") #Returns:
VisNetworkCustomShapeCreates an arrow shape pointing in a specific direction.
Parameters
- direction System.String = "right"
public static VisNetworkCustomShape Custom(String name, String renderFunction) #Returns:
VisNetworkCustomShapeCreates a custom shape from user-provided JavaScript code.
Parameters
- name System.String
- The name of the shape.
- renderFunction System.String
- The JavaScript render function.
public static VisNetworkCustomShape Emoji(String emoji, Int32 fontSize = 20) #Returns:
VisNetworkCustomShapeCreates a shape that displays an emoji or text.
Parameters
- emoji System.String
- fontSize System.Int32 = 20
public static VisNetworkCustomShape Gear(Int32 teeth = 8) #Returns:
VisNetworkCustomShapeCreates a gear/cog shape.
Parameters
- teeth System.Int32 = 8
public static VisNetworkCustomShape RoundedRectangle(Int32 radius = 10) #Returns:
VisNetworkCustomShapeCreates a rounded rectangle shape.
Parameters
- radius System.Int32 = 10
Inherited Methods
Properties
public static VisNetworkCustomShape Heart { get; } #Creates a heart shape.
public static VisNetworkCustomShape Cloud { get; } #Creates a cloud shape.
public static VisNetworkCustomShape Lightning { get; } #Creates a lightning bolt shape.
public static VisNetworkCustomShape House { get; } #Creates a house shape.
public static VisNetworkCustomShape Person { get; } #Creates a person/user shape.