UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

35 lines (30 loc) 789 B
module.exports = function (actionName, options) { /// @InteractiveComponent:setPointerAction(actionName, options) // // Define how pointers, including mouse, touch, and stylus, interact with // the component. // // Parameters: // action // options // // Alternative parameters: // actions // array of string. // options // array of objects. // // Alternative parameters: // enabled // a boolean, set false to revert back to default. // // Returns: // this, for chaining // // If false, remove all pointer interactions // If singular, make into array of names // Loop action names. // For each, construct interaction. // Options may affect constuction but mostly are passed into interaction. return this }