Class draw2d.SnapToHelper

Object
   |
   +--draw2d.SnapToHelper
Direct Known Subclasses:
draw2d.SnapToGeometry, draw2d.SnapToGrid

class draw2d.SnapToHelper

Defined in SnapToHelper.js

Version: 0.9.14

Author: Andreas Herz


Field Summary
 Object workflow
          
<static>  Object EAST
          East
<static>  Object EAST_WEST
          East-West: a bit-wise OR of EAST and WEST
<static>  Object NORTH
          North
<static>  Object NORTH_EAST
          North-East: a bit-wise OR of NORTH and EAST
<static>  Object NORTH_SOUTH
          North-South: a bit-wise OR of NORTH and SOUTH
<static>  Object NORTH_WEST
          North-West: a bit-wise OR of NORTH and WEST
<static>  Object NSEW
          North-South-East-West: a bit-wise OR of all 4 directions.
<static>  Object SOUTH
          South
<static>  Object SOUTH_EAST
          South-East: a bit-wise OR of SOUTH and EAST
<static>  Object SOUTH_WEST
          South-West: a bit-wise OR of SOUTH and WEST
<static>  Object WEST
          West
 
Constructor Summary
draw2d.SnapToHelper ( workflow)
           
 
Method Summary
 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.

Field Detail

workflow

Object workflow

EAST

<static> Object EAST

EAST_WEST

<static> Object EAST_WEST

NORTH

<static> Object NORTH

NORTH_EAST

<static> Object NORTH_EAST

NORTH_SOUTH

<static> Object NORTH_SOUTH

NORTH_WEST

<static> Object NORTH_WEST

NSEW

<static> Object NSEW

SOUTH

<static> Object SOUTH

SOUTH_EAST

<static> Object SOUTH_EAST

SOUTH_WEST

<static> Object SOUTH_WEST

WEST

<static> Object WEST

Constructor Detail

draw2d.SnapToHelper

draw2d.SnapToHelper( workflow)

Method Detail

snapPoint

Object snapPoint( snapOrientation, inputPoint, resultPoint)

snapRectangle

Object snapRectangle( inputBounds, resultBounds)


Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008