Skip to content
ChartForgeX
Class

TopologyMotionOptions

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX.Stories
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Defines deterministic, script-free topology motion for SVG and sampled raster exports.

Inheritance

  • object
  • TopologyMotionOptions

Usage

Explore 64 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 37

Constructors

public TopologyMotionOptions() #

Methods

public TopologyMotionOptions AddEdges(params string[] edgeIds) #

Adds explicit edge ids to the route motion source.

Parameters

edgeIds string[] required
The edge ids to animate.

Returns

TopologyMotionOptions The current motion options.
public TopologyMotionOptions AtProgress(double progress) #

Sets the sampled progress used by static raster frame rendering.

Parameters

progress double required
Progress from 0.0 to 1.0.

Returns

TopologyMotionOptions The current motion options.
public static TopologyMotionOptions RoutePulse(string? scenarioId = null, params string[] edgeIds) #

Creates a route-pulse motion preset for topology scenarios and map routes.

Parameters

scenarioId string? = null optional
Optional scenario id to animate.
edgeIds string[] required
Optional explicit edge ids to animate without requiring a scenario.

Returns

TopologyMotionOptions Topology motion options.
public static TopologyMotionOptions RoutePulseForEdges(params string[] edgeIds) #

Creates a route-pulse motion preset from explicit topology edge ids.

Parameters

edgeIds string[] required
Explicit edge ids to animate without requiring a scenario.

Returns

TopologyMotionOptions Topology motion options.
public static TopologyMotionOptions RoutePulseForScenario(string scenarioId) #

Creates a route-pulse motion preset from a topology scenario.

Parameters

scenarioId string required
Scenario id to animate.

Returns

TopologyMotionOptions Topology motion options.

Properties

public string? ScenarioId { get; set; } #

Gets or sets the scenario id used as the route source. When unset, the active scenario or first scenario is used.

public List<string> EdgeIds { get; } #

Gets edge ids used as an explicit route source. When set, these edges are animated without requiring a scenario.

public double DurationSeconds { get; set; } #

Gets or sets the animation duration in seconds.

public double FramesPerSecond { get; set; } #

Gets or sets the sampled frame rate used by animated raster exports.

public int MaximumRasterFrames { get; set; } #

Gets or sets the maximum number of frames sampled by animated raster exports.

public bool Loop { get; set; } #

Gets or sets whether the animation loops.

public double Progress { get; set; } #

Gets or sets the sampled progress from 0.0 to 1.0 used by raster frame rendering.

public double MarkerRadius { get; set; } #

Gets or sets the moving route marker radius.

public string? MarkerColor { get; set; } #

Gets or sets the optional moving route marker color. When unset, the scenario or edge color is used.

public bool PulseRouteEndpoints { get; set; } #

Gets or sets whether explicit edge motion should pulse source and target nodes.

Extension Methods

public static TopologyMotionOptions DurationSeconds(TopologyMotionOptions topologyMotionOptions, double value) #

Sets TopologyMotionOptions.DurationSeconds: Gets or sets the animation duration in seconds.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value double required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { DurationSeconds = value };    topologyMotionOptions.DurationSeconds(value);
public static TopologyMotionOptions EdgeId(TopologyMotionOptions topologyMotionOptions, string item) #

Adds an item to TopologyMotionOptions.EdgeIds: Gets edge ids used as an explicit route source. When set, these edges are animated without requiring a scenario.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
item string required
The item.

Returns

TopologyMotionOptions The same instance.
public static TopologyMotionOptions EdgeIds(TopologyMotionOptions topologyMotionOptions, IEnumerable<string> items) #

Adds items to TopologyMotionOptions.EdgeIds: Gets edge ids used as an explicit route source. When set, these edges are animated without requiring a scenario.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

TopologyMotionOptions The same instance.
public static TopologyMotionOptions FramesPerSecond(TopologyMotionOptions topologyMotionOptions, double value) #

Sets TopologyMotionOptions.FramesPerSecond: Gets or sets the sampled frame rate used by animated raster exports.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value double required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { FramesPerSecond = value };    topologyMotionOptions.FramesPerSecond(value);
public static TopologyMotionOptions Loop(TopologyMotionOptions topologyMotionOptions, bool value = true) #

Sets TopologyMotionOptions.Loop: Gets or sets whether the animation loops.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { Loop = value };    topologyMotionOptions.Loop(value);
public static TopologyMotionOptions MarkerColor(TopologyMotionOptions topologyMotionOptions, string? value) #

Sets TopologyMotionOptions.MarkerColor: Gets or sets the optional moving route marker color. When unset, the scenario or edge color is used.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value string? required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { MarkerColor = value };    topologyMotionOptions.MarkerColor(value);
public static TopologyMotionOptions MarkerRadius(TopologyMotionOptions topologyMotionOptions, double value) #

Sets TopologyMotionOptions.MarkerRadius: Gets or sets the moving route marker radius.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value double required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { MarkerRadius = value };    topologyMotionOptions.MarkerRadius(value);
public static TopologyMotionOptions MaximumRasterFrames(TopologyMotionOptions topologyMotionOptions, int value) #

Sets TopologyMotionOptions.MaximumRasterFrames: Gets or sets the maximum number of frames sampled by animated raster exports.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value int required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { MaximumRasterFrames = value };    topologyMotionOptions.MaximumRasterFrames(value);
public static TopologyMotionOptions Progress(TopologyMotionOptions topologyMotionOptions, double value) #

Sets TopologyMotionOptions.Progress: Gets or sets the sampled progress from 0.0 to 1.0 used by raster frame rendering.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value double required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { Progress = value };    topologyMotionOptions.Progress(value);
public static TopologyMotionOptions PulseRouteEndpoints(TopologyMotionOptions topologyMotionOptions, bool value = true) #

Sets TopologyMotionOptions.PulseRouteEndpoints: Gets or sets whether explicit edge motion should pulse source and target nodes.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                              // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { PulseRouteEndpoints = value };    topologyMotionOptions.PulseRouteEndpoints(value);
public static TopologyMotionOptions ScenarioId(TopologyMotionOptions topologyMotionOptions, string? value) #

Sets TopologyMotionOptions.ScenarioId: Gets or sets the scenario id used as the route source. When unset, the active scenario or first scenario is used.

Parameters

topologyMotionOptions ChartForgeX.Topology.TopologyMotionOptions required
The instance.
value string? required
The value.

Returns

TopologyMotionOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Topology.TopologyMotionOptions { ScenarioId = value };    topologyMotionOptions.ScenarioId(value);