JitterFilter class

Implements a jitter reduction filter, which straightens stroke by ignoring micro movements detected by the input device, mainly pens.

Extends

Methods

filterPoint(IPointerPoint)

Filters (transforms) the specified point.

reset(IPointerPoint)

Resets this filter. Some filters use information about previous points to transform the next point. reset will be called automatically by InkingManager when a new wet stroke begins.

Method Details

filterPoint(IPointerPoint)

Filters (transforms) the specified point.

function filterPoint(p: IPointerPoint): IPointerPoint

Parameters

p
IPointerPoint

The point to transform.

Returns

reset(IPointerPoint)

Resets this filter. Some filters use information about previous points to transform the next point. reset will be called automatically by InkingManager when a new wet stroke begins.

function reset(startPoint: IPointerPoint)

Parameters

startPoint
IPointerPoint

The new starting point.