documentationfor yFiles for HTML 2.6

Method Parameters

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 INodeReshapeSnapResultProviderCreates an implementation of the interface INodeReshapeSnapResultProvider by using the given function as implementation for its collectSnapResults method.
collectGridSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results for the grid.
collectSameSizeSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results that make the node the same size as other elements.
collectSnapLineResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderCollects the snap results that makes the node's bounds snap to the fixed node snap lines.
collectSnapResults (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext)in NodeReshapeSnapResultProviderCalled when a node is dragged to add SnapResults for OrthogonalSnapLines or sizes to which this node can potentially snap during resizing.
getSnapLines (GraphSnapContext, CollectSnapResultsEventArgs, INode, ReshapeRectangleContext, Rect)in NodeReshapeSnapResultProviderHelper method for method collectSnapLineResults that gets all the SnapLine that should be checked for the currently moved node.