documentationfor yFiles for HTML 3.0.0.3

SnapResult

This is the base class used by the implementers of SnapContext to model the result of the pointer being snapped to a certain location.

Inheritance Hierarchy
SnapResult
Implemented Interfaces

Remarks

It can be used to obtain a IVisualCreator that will be included in the view if the result is actually snapped. The SnapConstraint describing the final snapped location is determined by combining the results with the highest weights.

Created snap lines can also be styled with CSS. Each snap reference provides the yfiles-snap-reference CSS class and a specific CSS class depending on the actual snap reference type.

Related Reading in the Developer's Guide

An overview of the different CSS styling options is presented in detail in the section CSS Styling Snap References .

Type Details

yFiles module
view

Constructors

Properties

Methods

Static Methods