documentationfor yFiles for HTML 3.0.0.3

Usages of TimeSpan

Properties

stopDurationin LayoutGraphNodeAggregationGets or sets the duration that this algorithm should preferably run before stopping.
stopDurationin NodeAggregationGets or sets the duration that this algorithm should preferably run before stopping.
stopDurationin RankAssignmentGets or sets the preferred time limit for the algorithm.
autoMergeTimein UndoEngineGets or sets the duration during which the engine will try to merge newly added units.
stopDurationin ConstraintIncrementalLayerAssignerGets or sets the time limit set for the algorithm.
stopDurationin CoordinateAssignerGets or sets the time limit set for the layout algorithm.
stopDurationin DefaultSequencerGets or sets the time limit set for this sequencer per execution.
stopDurationin HierarchicalLayoutGets or sets the preferred time limit for the layout algorithm.
stopDurationin WeightedLayerAssignerGets or sets the time limit set for the layout algorithm.
showStartPortCandidateDelayin CreateEdgeInputModeGets or sets the amount of time to wait until the start port candidates are displayed, when the user hovers over a start port candidate owner.
inertiaDurationin MoveViewportInputModeGets or sets the duration of the inertia movement.
delayin ToolTipInputModeGets or sets the duration the mouse has to hover in one place to show a tooltip.
durationin ToolTipInputModeGets or sets the duration to show the tooltip.
stopDurationin GenericLabelingGets or sets the time limit for this algorithm.
cancelDurationin LayoutAbortControllerGets or sets the maximum duration an algorithm may run before being canceled automatically.
stopDurationin LayoutAbortControllerGets or sets the maximum duration an algorithm may run before being stopped automatically.
animationDurationin LayoutExecutorGets or sets the duration of the animation.
cancelDurationin LayoutExecutorGets or sets the maximum runtime for the layout calculation before it is automatically canceled.
stopDurationin LayoutExecutorGets or sets the maximum runtime for the layout calculation before it is automatically stopped.
animationDurationin LayoutExecutorAsyncGets or sets the duration of the animation.
cancelDurationin LayoutExecutorAsyncGets or sets the duration a layout may run before being cancelled automatically.
stopDurationin LayoutExecutorAsyncGets or sets the duration a layout may run before being stopped automatically.
stopDurationin RemoveOverlapsStageGets or sets the duration that this layout stage is allowed to run before stopping gracefully.
stopDurationin TabularLayoutGets or sets the time limit set for the layout algorithm.
stopDurationin MultiPageLayoutGets or sets the preferred time limit for the layout algorithm.
stopDurationin InteractiveOrganicLayoutGets or sets the preferred stop duration that this algorithm is allowed to run.
stopDurationin OrganicLayoutGets or sets the duration that this layout algorithm is allowed to run before stopping gracefully.
stopDurationin OrthogonalLayoutGets or sets the preferred time limit.
stopDurationin ClearAreaLayoutGets or sets the time limit for the layout algorithm.
stopDurationin FillAreaLayoutGets or sets the time limit for the layout algorithm.
stopDurationin PartialLayoutGets or sets the preferred time limit for the layout algorithm.
stopDurationin BundledEdgeRouterGets or sets the stop duration that this bundling algorithm is allowed to run.
stopDurationin EdgeRouterGets or sets the time limit set for the edge routing algorithm.
remainingTimein PathSearchConfigurationGets the remaining time within which the algorithm should complete its calculation.
doubleClickTimein CanvasComponentGets or sets the value of the double-click time.
longPressTimein CanvasComponentGets or sets the duration a pointing device must be held down without moving before the pointer-long-press event is raised.
longRestTimein CanvasComponentGets or sets the duration a pointing device must not move before the pointer-long-rest event is raised.
preferredDurationin IAnimationGets the preferred duration of the animation.
cleanUpDurationin SvgDefsManagerGets or sets a soft limit for the runtime of the defs cleanup that the method tries to respect.
cleanUpTimerIntervalin SvgDefsManagerGets or sets the interval for the timer to trigger the cleanup event.
preferredDurationin ViewportAnimationGets or sets the preferred duration of the animation.
preferredDurationin WebGLAnimationSpecifies the preferred total duration of this animation if it is used with an Animator.
durationin WebGLAnimationTimingGets the duration of a single iteration cycle.
durationin WebGLTransitionGets the duration of a the transition.

Fields

MAX_VALUEin TimeSpanA timespan with duration Number.MAX_SAFE_INTEGER.
ZEROin TimeSpanA timespan with duration zero.

Method Return Values

from (TimeSpan)in TimeSpanCreates a TimeSpan instance from the given object by performing automatic type conversion.
fromMilliseconds (number)in TimeSpanCreates a new time span with the given length in milliseconds.
fromMinutes (number)in TimeSpanCreates a new time span with the given length in minutes.
fromSeconds (number)in TimeSpanCreates a new time span with the given length in seconds.
timeToCancel ()in LayoutAbortControllerDetermines the remaining time until the algorithm is automatically canceled.
timeToStop ()in LayoutAbortControllerDetermines the remaining time until the algorithm is automatically stopped.
getViewportAnimationDuration (Point, number, ViewportChanges)in CanvasComponentDetermines the animation duration for a viewport animation.

Method Parameters

simplexRankAssignment (LayoutGraph, IMapper<LayoutNode,number>, IMapper<LayoutEdge,number>, IMapper<LayoutEdge,number>, TimeSpan?, IMapper<LayoutEdge,boolean>?, LayoutNode?, boolean?)in LayoutGraphAlgorithmsSolves the rank assignment problem for a directed acyclic graph (DAG) using the simplex method, with an optional time limit for the algorithm's execution.
LayoutGraphNodeAggregation ()in LayoutGraphNodeAggregationCreates a new LayoutGraphNodeAggregation instance with default settings.
NodeAggregation ()in NodeAggregationCreates a new instance with default settings.
RankAssignment ()in RankAssignment
applyLayout (ILayoutAlgorithm, LayoutData<INode,IEdge,ILabel,ILabel>?, TimeSpan?, TimeSpan?, ItemMapping<IPort,PortAdjustmentPolicy>?, ItemMapping<IPort,PortPlacementPolicy>?, ItemMapping<ILabel,PortLabelPolicy>?, ItemMapping<IModelItem,LayoutAnchoringPolicy>?, ItemMapping<ILabel,LabelPlacementPolicy>?, function(INode, INode):number?, function(IEdge, IEdge):number?)in IGraphRuns an ILayoutAlgorithm synchronously on the given graph.
ConstraintIncrementalLayerAssigner (ILayerAssigner, )in ConstraintIncrementalLayerAssignerCreates a new ConstraintIncrementalLayerAssigner with the given ILayerAssigner instance as its core layerer.
DefaultSequencer ()in DefaultSequencerCreates a new instance of DefaultSequencer.
HierarchicalLayout ()in HierarchicalLayoutCreates a new HierarchicalLayout instance with the default settings.
WeightedLayerAssigner (EdgeDataKey<number>?, )in WeightedLayerAssignerCreates an instance of WeightedLayerAssigner with unlimited stop duration and the given key that provides access to the IMapper<K,V> that holds the edge weights.
CreateEdgeInputMode ()in CreateEdgeInputModeCreates a new instance that will use the IGraph from the parentInputModeContext to create edges in.
MoveViewportInputMode ()in MoveViewportInputModeCreates a new instance of the move viewport mode
ToolTipInputMode ()in ToolTipInputModeCreates a new instance using the provided optional text provider.
GenericLabeling ()in GenericLabelingCreates a new instance of GenericLabeling with default settings.
from (TimeSpan)in TimeSpanCreates a TimeSpan instance from the given object by performing automatic type conversion.
LayoutExecutor (GraphComponent, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutor (GraphComponent, IGraph, ILayoutAlgorithm, )in LayoutExecutorInitializes a new instance of the LayoutExecutor class.
LayoutExecutorAsync (function(object):Promise<object>, GraphComponent, LayoutDescriptor?, LayoutData<INode,IEdge,ILabel,ILabel>?, )in LayoutExecutorAsyncCreates a new instance of a layout execution helper that will asynchronously perform the calculations and optionally animate the layout on the given graphComponent.
LayoutExecutorAsync (function(object):Promise<object>, IGraph, LayoutDescriptor?, LayoutData<INode,IEdge,ILabel,ILabel>?, )in LayoutExecutorAsyncCreates a new instance of a layout execution helper that will asynchronously perform the calculations and apply the results on the provided graph.
RemoveOverlapsStage ()in RemoveOverlapsStageCreates a new RemoveOverlapsStage instance with default settings.
TabularLayout ()in TabularLayoutInitializes a new instance of the TabularLayout class with default settings.
MultiPageLayout (ILayoutAlgorithm?, )in MultiPageLayoutCreates a new MultiPageLayout instance.
InteractiveOrganicLayout ()in InteractiveOrganicLayoutCreates a new instance of the InteractiveOrganicLayout with default settings.
continueLayout (TimeSpan)in InteractiveOrganicLayoutStarts the layout calculation, continuing from where it has stopped before and allowing a certain maximum duration.
startLayout (LayoutGraph, TimeSpan)in InteractiveOrganicLayoutStarts the layout calculation for the given period of time.
OrganicLayout ()in OrganicLayoutCreates a new OrganicLayout instance with default settings.
OrthogonalLayout ()in OrthogonalLayoutCreates a new OrthogonalLayout instance with default settings.
ClearAreaLayout ()in ClearAreaLayoutCreates a new instance of ClearAreaLayout with default settings.
FillAreaLayout ()in FillAreaLayoutCreates a new instance of FillAreaLayout with default settings.
PartialLayout (ILayoutAlgorithm?, )in PartialLayoutCreates a new instance of PartialLayout which uses the specified ILayoutAlgorithm instance as the core layout algorithm.
BundledEdgeRouter (ILayoutAlgorithm?, )in BundledEdgeRouterCreates a new BundledEdgeRouter instance with the given optional core layout algorithm and default settings.
EdgeRouter (ILayoutAlgorithm?, )in EdgeRouterCreates a new EdgeRouter instance with an optional coreLayout.
animate (function(number):void, TimeSpan)in AnimatorStarts animating the given animation for the specified duration.
GraphComponent (HTMLElement, )in GraphComponentCreates a new instance of the GraphComponent in the given div element.
GraphComponent ()in GraphComponentCreates a new instance of the GraphComponent.
GraphComponent (string, )in GraphComponentCreates a new instance of GraphComponent using the div element that is specified by the selector.
applyLayoutAnimated (ILayoutAlgorithm, TimeSpan?, LayoutData<INode,IEdge,ILabel,ILabel>?, TimeSpan?, TimeSpan?, boolean?, ItemMapping<IPort,PortAdjustmentPolicy>?, ItemMapping<IPort,PortPlacementPolicy>?, ItemMapping<ILabel,PortLabelPolicy>?, ItemMapping<IModelItem,LayoutAnchoringPolicy>?, Insets?, ItemMapping<ILabel,LabelPlacementPolicy>?, function(INode, INode):number?, function(IEdge, IEdge):number?)in GraphComponentRuns a layout on the graph of the GraphComponent and animates the transition.
createDelay (TimeSpan)in IAnimationCreates a delay animation that does nothing.
createDelayedAnimation (TimeSpan)in IAnimationCreates a delayed animation instance from this instance.
createEdgeSegmentAnimation (IGraph, IEdge, IPoint, Point, Point, TimeSpan)in IAnimationCreates a new IAnimation that animates the given edge's bends from its current shape linearly to the shape given by the endBends and final port locations.
createGraphAnimation (IGraph, IMapper<INode,IRectangle>?, IMapper<IEdge,yfiles.geometry.IPoint[]>?, IMapper<IPort,IPortLocationModelParameter>?, IMapper<ILabel,ILabelModelParameter>?, TimeSpan?)in IAnimationCreates a new IAnimation that animates the given layout of all types of graph items.
createLabelAnimation (IGraph, ILabel, ILabelModelParameter, TimeSpan)in IAnimationCreates a new IAnimation that animates the given label from its current layout linearly to the layout given by the targetLayoutParameter.
createLayoutAnimation (IGraph, LayoutGraphAdapter, TimeSpan)in IAnimationCreates a new IAnimation instance that animates the current graph to the layout given by the layoutGraph instance of the given adapter.
createNodeAnimation (IGraph, INode, IRectangle, TimeSpan)in IAnimationCreates a new IAnimation that animates the given node from its current layout to the new given targetLayout.
createPathAnimation (GeneralPath, IMutablePoint, TimeSpan)in IAnimationCreates a new instance of an IAnimation that animates the given IMutablePoint along a path.
createPortAnimation (IGraph, IPort, IPortLocationModelParameter, TimeSpan)in IAnimationCreates a new IAnimation that animates the given port from its current location to the new location given by the targetLocationParameter.
fromHandler (function(number):void, TimeSpan)in IAnimationCreates an animation for the given delegate and preferredDuration.
ViewportAnimation (CanvasComponent, Rect, TimeSpan, )in ViewportAnimationCreates a new instance of ViewportAnimation.
WebGLAnimationTiming (TimeSpan?, WebGLAnimationEasing?, number?, WebGLAnimationDirection?)in WebGLAnimationTimingCreates a new immutable instance with the provided values.
WebGLTransition (WebGLTransitionProperties?, TimeSpan?, WebGLAnimationEasing?)in WebGLTransitionCreates a new immutable instance with the provided values.