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.
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour