API Reference
Class
VisNetworkFocusOptions
Options for the focus() method.
Inheritance
- Object
- VisNetworkFocusOptions
Constructors
public VisNetworkFocusOptions() #Methods
WithAnimation 2 overloads
public VisNetworkFocusOptions WithAnimation(Action<VisNetworkAnimationOptions> configure) #Returns:
VisNetworkFocusOptionsEnables animation with default settings.
Parameters
- enabled System.Boolean = true
WithAnimation(System.Action{HtmlForgeX.VisNetworkAnimationOptions} configure) #Configures animation options.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkAnimationOptions}
public VisNetworkFocusOptions WithLocked(Boolean locked = true) #Returns:
VisNetworkFocusOptionsSets whether the view remains locked to the node.
Parameters
- locked System.Boolean = true
public VisNetworkFocusOptions WithOffset(Double x, Double y) #Returns:
VisNetworkFocusOptionsSets the offset from center.
Parameters
- x System.Double
- y System.Double
public VisNetworkFocusOptions WithScale(Double scale) #Returns:
VisNetworkFocusOptionsSets the zoom scale (1.0 = 100%).
Parameters
- scale System.Double
Inherited Methods
Properties
public Nullable<Double> Scale { get; set; } #JsonPropertyName("scale") JsonIgnore(Condition = 3)Gets or sets the zoom scale where 1.0 represents 100%.
public VisNetworkPosition Offset { get; set; } #JsonPropertyName("offset") JsonIgnore(Condition = 3)Gets or sets the offset from the viewport center.
public Nullable<Boolean> Locked { get; set; } #JsonPropertyName("locked") JsonIgnore(Condition = 3)Gets or sets a value indicating whether the view remains locked to the node.
public Object Animation { get; set; } #JsonPropertyName("animation") JsonIgnore(Condition = 3)Gets or sets the animation configuration. Can be a boolean or a complex options object.