js-draw
Version:
Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.
16 lines (15 loc) • 471 B
TypeScript
import { InputEvt } from '../../inputEvents';
import InputMapper from './InputMapper';
/**
* The composition of multiple `InputMapper`s.
*/
export default class InputPipeline extends InputMapper {
#private;
onEvent(event: InputEvt): boolean;
/**
* Adds a new `InputMapper` to the *tail* of this pipeline.
* Note that an instance of an `InputMapper` can only be used in a single
* pipeline.
*/
addToTail(mapper: InputMapper): void;
}