new AutoFocus()

Details

Visit Gravity for an example

Methods


<static> focusOn( obj, weight )

qualifier

Description

Specifies the object to focus on automatically Accepts an AutoFocusObject (which is just a wrapper for a FocusOn object, but with extra method: avoid, weight)

Parameters
Name Type Description
obj Qualifiers.FocusOn

The object to focus on.

weight number

getName()

qualifier

Description

Get the name of the of the object


addValue( value ) → {this}

Description

Adds a value for the this qualifier instance

Parameters
Name Type Description
value any
Returns

getWeight()

qualifier

Description

Get the weight for the object


setDelimiter( delimiter )

Description

Sets the delimiter for this instance

Parameters
Name Type Description
delimiter

toString()

qualifier

Description

Return the string representation of this QualifierValue


weight( w ) → {this}

qualifier

Description

Sets the importance level of the object within the automatic gravity algorithm

Parameters
Name Type Description
w numebr

The focus weight for the object

Returns

avoid() → {this}

qualifier

Description

Attempts to avoid the detected object in the image

Returns