HtmlForgeX

API Reference

Class

VisNetworkMoveToOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Options for the moveTo() method.

Inheritance

  • Object
  • VisNetworkMoveToOptions

Constructors

public VisNetworkMoveToOptions() #

Methods

WithAnimation 2 overloads
public VisNetworkMoveToOptions WithAnimation(Action<VisNetworkAnimationOptions> configure) #
Returns: VisNetworkMoveToOptions

Enables animation with default settings.

Parameters

enabled System.Boolean = true requiredposition: 0
WithAnimation(System.Action{HtmlForgeX.VisNetworkAnimationOptions} configure) #

Configures animation options.

Parameters

configure System.Action{HtmlForgeX.VisNetworkAnimationOptions} required
public VisNetworkMoveToOptions WithOffset(Double x, Double y) #
Returns: VisNetworkMoveToOptions

Sets the offset.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
public VisNetworkMoveToOptions WithPosition(Double x, Double y) #
Returns: VisNetworkMoveToOptions

Sets the position to move to.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
public VisNetworkMoveToOptions WithScale(Double scale) #
Returns: VisNetworkMoveToOptions

Sets the zoom scale.

Parameters

scale System.Double requiredposition: 0

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.