InputFilterCollection class
Represents a collection of input filters.
Constructors
Input |
Creates a new InputFilterCollection instance. |
Methods
add |
Adds filters to the collection. |
filter |
Filters (transforms) the specified point through each of the individual filters in the collection. |
reset(IPointer |
Resets all the filters in the collection. Some filters
use information about previous points to transform the
next point. |
Constructor Details
InputFilterCollection(InputFilter[])
Creates a new InputFilterCollection instance.
new InputFilterCollection(items: InputFilter[])
Parameters
- items
The initial inputs filters.
Method Details
addFilters(InputFilter[])
Adds filters to the collection.
function addFilters(items: InputFilter[])
Parameters
- items
The filters to add.
filterPoint(IPointerPoint)
Filters (transforms) the specified point through each of the individual filters in the collection.
function filterPoint(p: IPointerPoint): IPointerPoint
Parameters
The point to transform.
Returns
The transformed point.
reset(IPointerPoint)
Resets all the filters in the collection. 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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for