documentationfor yFiles for HTML 2.6

Method Parameters

addSnapLines (LabelSnapContext, IInputModeContext, ILabel)in ILabelSnapContextHelperCalled during initialization of a label dragging to add snap lines to which the label can potentially snap to the snapContext.
collectSnapResults (LabelSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel)in ILabelSnapContextHelperCalled while the given label is dragged to add snap results for the snap lines provided by the context.
create ()in ILabelSnapContextHelperCreates an implementation of the interface ILabelSnapContextHelper from the given definition.
addEdgePathSnapLines (LabelSnapContext, IInputModeContext, ILabel)in LabelSnapContextHelperAdds snap lines to the snapContext that are parallel to the path segments of the owner edge at particular distances.
addEdgePathSnapLines (LabelSnapContext, IInputModeContext, ILabel, number)in LabelSnapContextHelperAdds snap lines to the snapContext that are parallel to the path segments of the owner edge at the given distance.
addInitialLocationSnapLines (LabelSnapContext, IInputModeContext, ILabel)in LabelSnapContextHelperAdds two snap line for the initial center location of the label, one in the direction of the up vector, the other orthogonal to that direction.
addNodeShapeSnapLines (LabelSnapContext, IInputModeContext, ILabel)in LabelSnapContextHelperAdds snap lines to the snapContext that are parallel to the owner node's border at particular distances.
addPortSnapLines (LabelSnapContext, IInputModeContext, ILabel)in LabelSnapContextHelperAdds horizontal and vertical snap lines to the snapContext that are originating from the label's owner port if the label's owner is a port.
addSnapLines (LabelSnapContext, IInputModeContext, ILabel)in LabelSnapContextHelperCalled during initialization of a label dragging to add snap lines to which the label can potentially snap to the snapContext.
collectSnapResults (LabelSnapContext, CollectSnapResultsEventArgs, IOrientedRectangle, ILabel)in LabelSnapContextHelper