GravityWellSnap

lumin.ui. GravityWellSnap

new GravityWellSnap(value)

Where to snap the cursor due to gravity wells.

Parameters:
Name Type Description
value number

Members

(static, constant) kCenter :lumin.ui.GravityWellSnap

Type:

(static, constant) kCenterX :lumin.ui.GravityWellSnap

The cursor snaps to inside the element horizontal center.

Type:

(static, constant) kCenterY :lumin.ui.GravityWellSnap

The cursor snaps to inside the element vertical center.

Type:

(static, constant) kClosestEdge :lumin.ui.GravityWellSnap

The cursor snaps to the closest edge of the element.

Type:

(static, constant) kClosestInsideEdge :lumin.ui.GravityWellSnap

The cursor snaps to just inside the closet edge of the element.

Type:

value :number

Type:
  • number