Class draw2d.SnapToGeometry
Object
|
+--draw2d.SnapToHelper
|
+--draw2d.SnapToGeometry
- class
draw2d.SnapToGeometry
- extends draw2d.SnapToHelper
Defined in SnapToGeometry.js
Version: 0.9.14
Author: Andreas Herz
|
Method Summary |
Object
|
getCorrectionFor( entries, value, side)
|
void
|
populateRowsAndCols()
Updates the cached row and column Entries using the provided parts.
|
Object
|
snapPoint( snapOrientation, inputPoint, resultPoint)
Applies a snapping correction to the given result.
|
Object
|
snapRectangle( inputBounds, resultBounds)
Applies a snap correction to a Rectangle based on a given Rectangle.
|
THRESHOLD
<static> Object THRESHOLD
draw2d.SnapToGeometry
draw2d.SnapToGeometry( workflow)
Version: 0.9.14
Author: Andreas Herz
getCorrectionFor
Object getCorrectionFor( entries, value, side)
populateRowsAndCols
void populateRowsAndCols()
Updates the cached row and column Entries using the provided parts.
Parameters:
parts - a List of EditParts
snapPoint
Object snapPoint( snapOrientation, inputPoint, resultPoint)
Applies a snapping correction to the given result. Snapping can occur in the four
primary directions: NORTH, SOUTH, EAST, WEST, as defined.
By default a Point is treated as an empty Rectangle. Only NORTH and WEST should be used
in general. But SOUTH and EAST may also be used.
snapRectangle
Object snapRectangle( inputBounds, resultBounds)
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008