documentationfor yFiles for HTML 3.0.0.3

Properties

snapContextin CreateEdgeInputModeGets or sets the GraphSnapContext which manages snapping model items to certain coordinates (for instance, other items).
snapContextin GraphEditorInputModeGets or sets the GraphSnapContext instance that handles interactive snapping of elements during drag operations like movements.
snapContextin HandleInputModeGets or sets the GraphSnapContext which manages snapping model items to certain coordinates (for instance, other items).
snapContextin ItemDropInputModeGets or sets the GraphSnapContext which is used to snap the dragged element during the drag.
snapContextin MoveInputModeGets or sets the GraphSnapContext which manages snapping model items to certain coordinates (for instance, other items).

Method Parameters

CreateEdgeInputMode ()in CreateEdgeInputModeCreates a new instance that will use the IGraph from the parentInputModeContext to create edges in.
getPreviewEdgeSnapLines (GraphSnapContext)in CreateEdgeInputModeGets the snap references that are induced by the current preview edge.
addHorizontalSegmentSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Point, Point)in EdgeSnapReferenceProviderAdds horizontal snap lines for a horizontally oriented fixed segment snap lines.
addSnapReferences (GraphSnapContext, CollectSnapReferencesEventArgs)in EdgeSnapReferenceProviderAdds the snap lines for the edge to the evt.
addVerticalSegmentSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Point, Point)in EdgeSnapReferenceProviderAdds vertical snap lines for a vertically oriented fixed segment snap lines.
GraphEditorInputMode ()in GraphEditorInputModeCreates a new instance that is not bound to an existing graph or selection, initially.
onSnapContextChanged (GraphSnapContext, GraphSnapContext)in GraphEditorInputModeCalled when the snapContext property context changed.
HandleInputMode ()in HandleInputModeCreates a new mode with no handles initially.
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, Point, IBend)in IBendSnapResultProviderCalled when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IBend):void)in IBendSnapResultProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, IListEnumerable<MovementInfo>, IEdge)in IEdgeSnapResultProviderCalled during the snapping operation whenever snap results are collected.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, IListEnumerable<MovementInfo>, IEdge):void)in IEdgeSnapResultProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel)in ILabelSnapResultProviderCalled when the given label is dragged to add SnapResults for the SnapReferences provided by the context.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel):void)in ILabelSnapResultProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext)in INodeReshapeSnapResultProviderCalled when a node's handle is dragged to add SnapResults for OrthogonalSnapLines or sizes to which this node can potentially snap during resizing.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext):void)in INodeReshapeSnapResultProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, Rect, INode)in INodeSnapResultProviderCalled when a node is dragged to add SnapResults for OrthogonalSnapLines to which this node can potentially snap.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, Rect, INode):void)in INodeSnapResultProvider
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort)in IPortSnapResultProviderCalled when a node is dragged to add SnapResults for OrthogonalSnapLines to which this bend can potentially snap.
create (function(GraphSnapContext, CollectSnapResultsEventArgs, Point, IPort):void)in IPortSnapResultProvider
addSnapReferences (GraphSnapContext, CollectSnapReferencesEventArgs)in ISnapReferenceProviderCalled by the GraphSnapContext when a drag is about to start.
create (function(GraphSnapContext, CollectSnapReferencesEventArgs):void)in ISnapReferenceProvider
ItemDropInputMode (string, )in ItemDropInputModeInitializes a new instance of the ItemDropInputMode<T> class for the given data type.
LabelDropInputMode (string, )in LabelDropInputModeInitializes a new instance of the LabelDropInputMode class for the given data type.
addEdgePathSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs)in LabelSnapReferenceProviderAdds snap lines to the context that are parallel to the path segments of the owner edge at particular distances.
addEdgePathSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, number)in LabelSnapReferenceProviderAdds snap lines to the context that are parallel to the path segments of the owner edge at the given distance.
addInitialLocationSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs)in LabelSnapReferenceProviderAdds two snap lines for the initial center location of the label, one in the direction of the up vector, and the other orthogonal to that direction.
addNodeShapeSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs)in LabelSnapReferenceProviderAdds snap lines to the context that are parallel to the owner node's border at particular distances.
addPortSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs)in LabelSnapReferenceProviderAdds horizontal and vertical snap lines to the context that are originating from the label's owner port if the label's owner is a port.
addSnapReferences (GraphSnapContext, CollectSnapReferencesEventArgs)in LabelSnapReferenceProviderCalled by the GraphSnapContext when a drag is about to start.
collectOrthogonalLineSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, OrthogonalSnapLine, IOrientedRectangle, ILabel)in LabelSnapResultProviderCollects snap results that snap the center or any border of the bounds of the label to the given snapLine.
collectSnapLineResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapLine, IOrientedRectangle, ILabel)in LabelSnapResultProviderCollect snap results that snap the center of the label to the given snapLine.
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel)in LabelSnapResultProvider
MoveInputMode ()in MoveInputModeInitializes a new instance of the MoveInputMode class.
NodeDropInputMode (string, )in NodeDropInputModeInitializes a new instance of the NodeDropInputMode class for the given data type.
collectGridSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapGrid, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results for the grid.
collectOrthogonalLineSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, OrthogonalSnapLine, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results that make the node's bounds snap to the snapLine.
collectSameSizeSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapSize, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results that make the node the same size as other elements.
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext)in NodeReshapeSnapResultProviderCalled when a node is dragged to add SnapResults for SnapReferences to which this node can potentially snap during resizing.
addCenterSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Rect)in NodeSnapReferenceProviderCalled by addSnapReferences to collect snap lines for the centers of the node.
addNodeBorderSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Rect)in NodeSnapReferenceProviderAdds the snap lines around the border of the node's layout.
addNodeSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Rect)in NodeSnapReferenceProviderAdds the fixed snap lines around the node for other nodes to snap to using the nodeDistance.
addNodeToSegmentSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Rect)in NodeSnapReferenceProviderAdds the fixed snap lines around the node for edge segments to snap to.
addPortSnapLines (GraphSnapContext, CollectSnapReferencesEventArgs, Rect)in NodeSnapReferenceProviderCalled by addSnapReferences to collect snap lines at the node to snap ports to.
addSnapReferences (GraphSnapContext, CollectSnapReferencesEventArgs)in NodeSnapReferenceProviderCalled by the GraphSnapContext when a drag is about to start.
createCenterSnapLine (GraphSnapContext, SnapLineOrientation, Point)in NodeSnapReferenceProviderCreates a snap line for the center of the node.
collectCircleSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapCircle, Rect, INode)in NodeSnapResultProviderCalculates a SnapResult and adds it to the argument.
collectGridSnapResult (GraphSnapContext, CollectSnapResultsEventArgs, SnapGrid, Point, INode)in NodeSnapResultProviderCalculates a SnapResult and adds it to the argument.
collectGridSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapGrid, Rect, INode)in NodeSnapResultProviderCollects snap results that snap the node to a grid and adds them to the argument.
collectLineSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, SnapLine, Rect, INode)in NodeSnapResultProviderCollect snap results that snap the node center to the given snap line.
collectOrthogonalLineSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, OrthogonalSnapLine, Rect, INode)in NodeSnapResultProviderVerifies whether the node will snap to the given snap line.
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, Rect, INode)in NodeSnapResultProvider
PortDropInputMode (string, )in PortDropInputModeInitializes a new instance of the PortDropInputMode class for the given data type.
ReparentStripeInputMode ()in ReparentStripeInputMode
StripeDropInputMode (string, )in StripeDropInputModeInitializes a new instance of the StripeDropInputMode class for the given data type.