GravityWellProperties

lumin.ui. GravityWellProperties

UiNode gravity well properties.

Constructor

new GravityWellProperties(a_shape, a_snapopt, a_internalSnapopt)

Parameters:
Name Type Attributes Default Description
a_shape lumin.ui.BoundaryShape
a_snap lumin.ui.GravityWellSnap <optional>
GravityWellSnap.kCenter
a_internalSnap boolean <optional>
true

Methods

getInternalSnap() → {boolean}

If the cursor should snap if already inside the shape.

Returns:
Type
boolean

getShape() → {lumin.ui.BoundaryShape}

The boundary shape for the gravity well.

Returns:
Type
lumin.ui.BoundaryShape

getSnap() → {lumin.ui.GravityWellSnap}

Where to snap the cursor to for this element.

Returns:
Type
lumin.ui.GravityWellSnap