API Reference
Class
VisNetworkMoveToOptions
Options for the moveTo() method.
Inheritance
- Object
- VisNetworkMoveToOptions
Constructors
public VisNetworkMoveToOptions() #Methods
WithAnimation 2 overloads
public VisNetworkMoveToOptions WithAnimation(Action<VisNetworkAnimationOptions> configure) #Returns:
VisNetworkMoveToOptionsEnables 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 VisNetworkMoveToOptions WithOffset(Double x, Double y) #Returns:
VisNetworkMoveToOptionsSets the offset.
Parameters
- x System.Double
- y System.Double
public VisNetworkMoveToOptions WithPosition(Double x, Double y) #Returns:
VisNetworkMoveToOptionsSets the position to move to.
Parameters
- x System.Double
- y System.Double
public VisNetworkMoveToOptions WithScale(Double scale) #Returns:
VisNetworkMoveToOptionsSets the zoom scale.
Parameters
- scale System.Double
Inherited Methods
Properties
public VisNetworkPosition Position { get; set; } #JsonPropertyName("position") JsonIgnore(Condition = 3)Gets or sets the absolute position to move the viewport to.
public Nullable<Double> Scale { get; set; } #JsonPropertyName("scale") JsonIgnore(Condition = 3)Gets or sets the zoom level after moving.
public VisNetworkPosition Offset { get; set; } #JsonPropertyName("offset") JsonIgnore(Condition = 3)Gets or sets the offset relative to the target position.
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.