[{"comment":"/** @article /home/travis/build/taye/interact.js/jsdoc/index.md **/","meta":{"filename":"index.md","lineno":1,"columnno":0,"path":"","code":{},"shortpath":"jsdoc/index.md"},"kind":"article","source":"\n\n","name":"index","filename":"index.md","title":"API Reference","longname":"article:index","description":"
Don't call listeners on the remaining targets
","name":"stopImmediatePropagation","longname":"BaseEvent#stopImmediatePropagation","kind":"function","memberof":"BaseEvent","scope":"instance","params":[],"___id":"T000002R000861","___s":true,"attribs":"","id":"stopImmediatePropagation","signature":"()","ancestors":[]},{"comment":"/**\n * Don't call any other listeners (even on the current target)\n */","meta":{"range":[541,600],"filename":"BaseEvent.ts","lineno":31,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100007934","name":"BaseEvent#stopPropagation","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/BaseEvent.ts"},"description":"Don't call any other listeners (even on the current target)
","name":"stopPropagation","longname":"BaseEvent#stopPropagation","kind":"function","memberof":"BaseEvent","scope":"instance","params":[],"___id":"T000002R000859","___s":true,"attribs":"","id":"stopPropagation","signature":"()","ancestors":[]},{"comment":"/**\n * Class of events fired on dropzones during drags with acceptable targets.\n */","meta":{"range":[297,757],"filename":"DropEvent.ts","lineno":18,"columnno":2,"path":"../@interactjs/actions/drop","code":{"id":"astnode100000589","name":"DropEvent","type":"MethodDefinition","paramnames":["dropState","dragEvent","type"]},"vars":{"":null},"shortpath":"@interactjs/actions/drop/DropEvent.ts"},"description":"Class of events fired on dropzones during drags with acceptable targets.
","name":"DropEvent","longname":"DropEvent","kind":"class","scope":"global","params":[],"___id":"T000003R000002","___s":true,"attribs":"","id":"DropEvent","signature":"()","ancestors":[]},{"comment":"/**\n * If this is a `dropactivate` event, the dropzone element will be\n * deactivated.\n *\n * If this is a `dragmove` or `dragenter`, a `dragleave` will be fired on the\n * dropzone element and more.\n */","meta":{"range":[978,2017],"filename":"DropEvent.ts","lineno":38,"columnno":2,"path":"../@interactjs/actions/drop","code":{"id":"astnode100000673","name":"DropEvent#reject","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/actions/drop/DropEvent.ts"},"description":"If this is a dropactivate
event, the dropzone element will be\ndeactivated.
If this is a dragmove
or dragenter
, a dragleave
will be fired on the\ndropzone element and more.
interact('#draggable').draggable(true)\n\nvar rectables = interact('rect')\nrectables\n .gesturable(true)\n .on('gesturemove', function (event) {\n // ...\n })\n
\nThe methods of this variable can be used to set elements as interactables\nand also to change various default settings.
\nCalling it as a function and passing an element or a valid CSS selector\nstring returns an Interactable object which has various methods to configure\nit.
","scope":"global","params":[{"type":{"names":["Element","string"]},"description":"The HTML or SVG Element to interact with\nor CSS selector
","name":"target"}],"returns":[{"type":{"names":["Interactable"]}}],"name":"interact","longname":"interact","kind":"member","___id":"T000002R001820","___s":true,"attribs":"(constant) ","id":"interact","ancestors":[],"signature":""},{"comment":"/**\n * Returns or sets whether the dimensions of dropzone elements are calculated\n * on every dragmove or only on dragstart for the default dropChecker\n *\n * @param {boolean} [newValue] True to check on each move. False to check only\n * before start\n * @return {boolean | interact} The current setting or interact\n */","meta":{"range":[3535,3828],"filename":"index.ts","lineno":147,"columnno":2,"path":"../@interactjs/actions/drop","code":{"id":"astnode100000970","name":"interact.dynamicDrop","type":"FunctionExpression","paramnames":["newValue"]},"vars":{"scope.dynamicDrop":"scope.dynamicDrop"},"shortpath":"@interactjs/actions/drop/index.ts"},"description":"Returns or sets whether the dimensions of dropzone elements are calculated\non every dragmove or only on dragstart for the default dropChecker
","params":[{"type":{"names":["boolean"]},"optional":true,"description":"True to check on each move. False to check only\nbefore start
","name":"newValue"}],"returns":[{"type":{"names":["boolean","interact"]},"description":"The current setting or interact
"}],"name":"dynamicDrop","longname":"interact.dynamicDrop","kind":"function","memberof":"interact","scope":"static","___id":"T000002R000099","___s":true,"attribs":"(static) ","id":".dynamicDrop","signature":"(newValueopt) → {boolean|interact}","ancestors":["interact."]},{"comment":"/** */","meta":{"range":[717,1017],"filename":"Interactable.ts","lineno":25,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008276","name":"exports.Interactable","type":"MethodDefinition","paramnames":["target","options","defaultContext"]},"shortpath":"@interactjs/core/Interactable.ts"},"name":"Interactable","longname":"Interactable","kind":"class","memberof":"Interactable","scope":"instance","___id":"T000003R000003","___s":true,"attribs":"","id":"Interactable","signature":"()","ancestors":[]},{"comment":"/**\n * ```js\n * interact('.resize-drag')\n * .resizable(true)\n * .draggable(true)\n * .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n *\n * if (interact.matchesSelector(event.target, '.drag-handle')) {\n * // force drag with handle target\n * action.name = drag\n * }\n * else {\n * // resize from the top and right edges\n * action.name = 'resize'\n * action.edges = { top: true, right: true }\n * }\n *\n * return action\n * })\n * ```\n *\n * Returns or sets the function used to check action to be performed on\n * pointerDown\n *\n * @param {function | null} [checker] A function which takes a pointer event,\n * defaultAction string, interactable, element and interaction as parameters\n * and returns an object with name property 'drag' 'resize' or 'gesture' and\n * optionally an `edges` object with boolean 'top', 'left', 'bottom' and right\n * props.\n * @return {Function | Interactable} The checker function or this Interactable\n */","meta":{"range":[3745,3797],"filename":"InteractableMethods.ts","lineno":113,"columnno":2,"path":"../@interactjs/auto-start","code":{"id":"astnode100007695","name":"Interactable.prototype.actionChecker","type":"Identifier","value":"actionChecker","paramnames":[]},"shortpath":"@interactjs/auto-start/InteractableMethods.ts"},"description":"interact('.resize-drag')\n .resizable(true)\n .draggable(true)\n .actionChecker(function (pointer, event, action, interactable, element, interaction) {\n\n if (interact.matchesSelector(event.target, '.drag-handle')) {\n // force drag with handle target\n action.name = drag\n }\n else {\n // resize from the top and right edges\n action.name = 'resize'\n action.edges = { top: true, right: true }\n }\n\n return action\n})\n
\nReturns or sets the function used to check action to be performed on\npointerDown
","params":[{"type":{"names":["function","null"]},"optional":true,"description":"A function which takes a pointer event,\ndefaultAction string, interactable, element and interaction as parameters\nand returns an object with name property 'drag' 'resize' or 'gesture' and\noptionally an edges
object with boolean 'top', 'left', 'bottom' and right\nprops.
The checker function or this Interactable
"}],"name":"actionChecker","longname":"Interactable#actionChecker","kind":"member","memberof":"Interactable","scope":"instance","___id":"T000002R000821","___s":true,"attribs":"","id":"actionChecker","ancestors":["#Interactable#"],"signature":""},{"comment":"/**\n * @deprecated\n *\n * A drag/resize/gesture is started only If the target of the `mousedown`,\n * `pointerdown` or `touchstart` event or any of it's parents match the given\n * CSS selector or Element.\n *\n * Don't use this method. Instead set the `allowFrom` option for each action\n * or for `pointerEvents`\n *\n * @example\n * interact(targett)\n * .resizable({\n * allowFrom: '.resize-handle',\n * .pointerEvents({\n * allowFrom: '.handle',,\n * })\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to allow from any element\n * @return {string | Element | object} The current allowFrom value or this\n * Interactable\n */","meta":{"range":[2454,2681],"filename":"InteractableMethods.ts","lineno":86,"columnno":2,"path":"../@interactjs/auto-start","code":{"id":"astnode100007675","name":"Interactable.prototype.allowFrom","type":"CallExpression","value":"","paramnames":[]},"shortpath":"@interactjs/auto-start/InteractableMethods.ts"},"deprecated":"A drag/resize/gesture is started only If the target of the `mousedown`,\n`pointerdown` or `touchstart` event or any of it's parents match the given\nCSS selector or Element.\n\nDon't use this method. Instead set the `allowFrom` option for each action\nor for `pointerEvents`","examples":[{"caption":"","code":"interact(targett)\n .resizable({\n allowFrom: '.resize-handle',\n .pointerEvents({\n allowFrom: '.handle',,\n })"}],"params":[{"type":{"names":["string","Element","null"]},"optional":true,"description":"a CSS selector string, an\nElement or null
to allow from any element
The current allowFrom value or this\nInteractable
"}],"name":"allowFrom","longname":"Interactable#allowFrom","kind":"member","memberof":"Interactable","scope":"instance","___id":"T000002R000820","___s":true,"attribs":"","id":"allowFrom","ancestors":["#Interactable#"],"signature":""},{"comment":"/**\n * Gets the selector context Node of the Interactable. The default is\n * `window.document`.\n *\n * @return {Node} The context Node of this Interactable\n */","meta":{"range":[5720,5761],"filename":"Interactable.ts","lineno":194,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008810","name":"Interactable#context","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Gets the selector context Node of the Interactable. The default is\nwindow.document
.
The context Node of this Interactable
"}],"name":"context","longname":"Interactable#context","kind":"function","memberof":"Interactable","scope":"instance","params":[],"___id":"T000002R000939","___s":true,"attribs":"","id":"context","signature":"() → {Node}","ancestors":["#Interactable#"]},{"comment":"/**\n * Returns or sets the mouse coordinate types used to calculate the\n * movement of the pointer.\n *\n * @param {string} [newValue] Use 'client' if you will be scrolling while\n * interacting; Use 'page' if you want autoScroll to work\n * @return {string | object} The current deltaSource or this Interactable\n */","meta":{"range":[5355,5544],"filename":"Interactable.ts","lineno":176,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008780","name":"Interactable#deltaSource","type":"MethodDefinition","paramnames":["newValue"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Returns or sets the mouse coordinate types used to calculate the\nmovement of the pointer.
","params":[{"type":{"names":["string"]},"optional":true,"description":"Use 'client' if you will be scrolling while\ninteracting; Use 'page' if you want autoScroll to work
","name":"newValue"}],"returns":[{"type":{"names":["string","object"]},"description":"The current deltaSource or this Interactable
"}],"name":"deltaSource","longname":"Interactable#deltaSource","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000937","___s":true,"attribs":"","id":"deltaSource","signature":"(newValueopt) → {string|object}","ancestors":["#Interactable#"]},{"comment":"/**\n * ```js\n * interact(element).draggable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // the axis in which the first movement must be\n * // for the drag sequence to start\n * // 'xy' by default - any direction\n * startAxis: 'x' || 'y' || 'xy',\n *\n * // 'xy' by default - don't restrict to one axis (move in any direction)\n * // 'x' or 'y' to restrict movement to either axis\n * // 'start' to restrict movement to the axis the drag started in\n * lockAxis: 'x' || 'y' || 'xy' || 'start',\n *\n * // max number of drags that can happen concurrently\n * // with elements of this Interactable. Infinity by default\n * max: Infinity,\n *\n * // max number of drags that can target the same element+Interactable\n * // 1 by default\n * maxPerElement: 2\n * })\n *\n * var isDraggable = interact('element').draggable(); // true\n * ```\n *\n * Get or set whether drag actions can be performed on the target\n *\n * @alias Interactable.prototype.draggable\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on drag events (object makes the Interactable\n * draggable)\n * @return {boolean | Interactable} boolean indicating if this can be the\n * target of drag events, or this Interctable\n */","meta":{"range":[3022,3612],"filename":"drag.ts","lineno":92,"columnno":6,"path":"../@interactjs/actions","code":{"id":"astnode100000341","name":"draggable","type":"FunctionExpression","value":"draggable"},"vars":{"this.options.drag.enabled":"Interactable#draggable#options.drag.enabled","this.options.drag.lockAxis":"Interactable#draggable#options.drag.lockAxis","this.options.drag.startAxis":"Interactable#draggable#options.drag.startAxis"},"shortpath":"@interactjs/actions/drag.ts"},"description":"interact(element).draggable({\n onstart: function (event) {},\n onmove : function (event) {},\n onend : function (event) {},\n\n // the axis in which the first movement must be\n // for the drag sequence to start\n // 'xy' by default - any direction\n startAxis: 'x' || 'y' || 'xy',\n\n // 'xy' by default - don't restrict to one axis (move in any direction)\n // 'x' or 'y' to restrict movement to either axis\n // 'start' to restrict movement to the axis the drag started in\n lockAxis: 'x' || 'y' || 'xy' || 'start',\n\n // max number of drags that can happen concurrently\n // with elements of this Interactable. Infinity by default\n max: Infinity,\n\n // max number of drags that can target the same element+Interactable\n // 1 by default\n maxPerElement: 2\n})\n\nvar isDraggable = interact('element').draggable(); // true\n
\nGet or set whether drag actions can be performed on the target
","alias":"Interactable.prototype.draggable","params":[{"type":{"names":["boolean","object"]},"optional":true,"description":"true/false or An object with event\nlisteners to be fired on drag events (object makes the Interactable\ndraggable)
","name":"options"}],"returns":[{"type":{"names":["boolean","Interactable"]},"description":"boolean indicating if this can be the\ntarget of drag events, or this Interctable
"}],"name":"draggable","longname":"Interactable#draggable","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000030","___s":true,"attribs":"","id":"draggable","signature":"(optionsopt) → {boolean|Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * ```js\n * interact(target)\n * .dropChecker(function(dragEvent, // related dragmove or dragend event\n * event, // TouchEvent/PointerEvent/MouseEvent\n * dropped, // bool result of the default checker\n * dropzone, // dropzone Interactable\n * dropElement, // dropzone elemnt\n * draggable, // draggable Interactable\n * draggableElement) {// draggable element\n *\n * return dropped && event.target.hasAttribute('allow-drop')\n * }\n * ```\n */","meta":{"range":[2979,3195],"filename":"index.ts","lineno":128,"columnno":2,"path":"../@interactjs/actions/drop","code":{"id":"astnode100000945","name":"Interactable.prototype.dropCheck","type":"FunctionExpression","paramnames":["dragEvent","event","draggable","draggableElement","dropElement","rect"]},"shortpath":"@interactjs/actions/drop/index.ts"},"description":"interact(target)\n.dropChecker(function(dragEvent, // related dragmove or dragend event\n event, // TouchEvent/PointerEvent/MouseEvent\n dropped, // bool result of the default checker\n dropzone, // dropzone Interactable\n dropElement, // dropzone elemnt\n draggable, // draggable Interactable\n draggableElement) {// draggable element\n\n return dropped && event.target.hasAttribute('allow-drop')\n}\n
","name":"dropCheck","longname":"Interactable#dropCheck","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000098","___s":true,"attribs":"","id":"dropCheck","signature":"()","ancestors":["#Interactable#"]},{"comment":"/**\n *\n * ```js\n * interact('.drop').dropzone({\n * accept: '.can-drop' || document.getElementById('single-drop'),\n * overlap: 'pointer' || 'center' || zeroToOne\n * }\n * ```\n *\n * Returns or sets whether draggables can be dropped onto this target to\n * trigger drop events\n *\n * Dropzones can receive the following events:\n * - `dropactivate` and `dropdeactivate` when an acceptable drag starts and ends\n * - `dragenter` and `dragleave` when a draggable enters and leaves the dropzone\n * - `dragmove` when a draggable that has entered the dropzone is moved\n * - `drop` when a draggable is dropped into this dropzone\n *\n * Use the `accept` option to allow only elements that match the given CSS\n * selector or element. The value can be:\n *\n * - **an Element** - only that element can be dropped into this dropzone.\n * - **a string**, - the element being dragged must match it as a CSS selector.\n * - **`null`** - accept options is cleared - it accepts any element.\n *\n * Use the `overlap` option to set how drops are checked for. The allowed\n * values are:\n *\n * - `'pointer'`, the pointer must be over the dropzone (default)\n * - `'center'`, the draggable element's center must be over the dropzone\n * - a number from 0-1 which is the `(intersection area) / (draggable area)`.\n * e.g. `0.5` for drop to happen when half of the area of the draggable is\n * over the dropzone\n *\n * Use the `checker` option to specify a function to check if a dragged element\n * is over this Interactable.\n *\n * @param {boolean | object | null} [options] The new options to be set.\n * @return {boolean | Interactable} The current setting or this Interactable\n */","meta":{"range":[2216,2316],"filename":"index.ts","lineno":84,"columnno":2,"path":"../@interactjs/actions/drop","code":{"id":"astnode100000930","name":"Interactable.prototype.dropzone","type":"FunctionExpression","paramnames":["options"]},"shortpath":"@interactjs/actions/drop/index.ts"},"description":"interact('.drop').dropzone({\n accept: '.can-drop' || document.getElementById('single-drop'),\n overlap: 'pointer' || 'center' || zeroToOne\n}\n
\nReturns or sets whether draggables can be dropped onto this target to\ntrigger drop events
\nDropzones can receive the following events:
\ndropactivate
and dropdeactivate
when an acceptable drag starts and endsdragenter
and dragleave
when a draggable enters and leaves the dropzonedragmove
when a draggable that has entered the dropzone is moveddrop
when a draggable is dropped into this dropzoneUse the accept
option to allow only elements that match the given CSS\nselector or element. The value can be:
null
- accept options is cleared - it accepts any element.Use the overlap
option to set how drops are checked for. The allowed\nvalues are:
'pointer'
, the pointer must be over the dropzone (default)'center'
, the draggable element's center must be over the dropzone(intersection area) / (draggable area)
.\ne.g. 0.5
for drop to happen when half of the area of the draggable is\nover the dropzoneUse the checker
option to specify a function to check if a dragged element\nis over this Interactable.
The new options to be set.
","name":"options"}],"returns":[{"type":{"names":["boolean","Interactable"]},"description":"The current setting or this Interactable
"}],"name":"dropzone","longname":"Interactable#dropzone","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000097","___s":true,"attribs":"","id":"dropzone","signature":"(optionsopt) → {boolean|Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * Calls listeners for the given InteractEvent type bound globally\n * and directly to this Interactable\n *\n * @param {InteractEvent} iEvent The InteractEvent object to be fired on this\n * Interactable\n * @return {Interactable} this Interactable\n */","meta":{"range":[7043,7108],"filename":"Interactable.ts","lineno":257,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008963","name":"Interactable#fire","type":"MethodDefinition","paramnames":["iEvent"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Calls listeners for the given InteractEvent type bound globally\nand directly to this Interactable
","params":[{"type":{"names":["InteractEvent"]},"description":"The InteractEvent object to be fired on this\nInteractable
","name":"iEvent"}],"returns":[{"type":{"names":["Interactable"]},"description":"this Interactable
"}],"name":"fire","longname":"Interactable#fire","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000944","___s":true,"attribs":"","id":"fire","signature":"(iEvent) → {Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * ```js\n * interact(element).gesturable({\n * onstart: function (event) {},\n * onmove : function (event) {},\n * onend : function (event) {},\n *\n * // limit multiple gestures.\n * // See the explanation in {@link Interactable.draggable} example\n * max: Infinity,\n * maxPerElement: 1,\n * })\n *\n * var isGestureable = interact(element).gesturable()\n * ```\n *\n * Gets or sets whether multitouch gestures can be performed on the target\n *\n * @param {boolean | object} [options] true/false or An object with event\n * listeners to be fired on gesture events (makes the Interactable gesturable)\n * @return {boolean | Interactable} A boolean indicating if this can be the\n * target of gesture events, or this Interactable\n */","meta":{"range":[1087,1519],"filename":"gesture.ts","lineno":67,"columnno":2,"path":"../@interactjs/actions","code":{"id":"astnode100002901","name":"Interactable.prototype.gesturable","type":"FunctionExpression","paramnames":["options"]},"vars":{"this.options.gesture.enabled":"Interactable#gesturable#options.gesture.enabled"},"shortpath":"@interactjs/actions/gesture.ts"},"description":"interact(element).gesturable({\n onstart: function (event) {},\n onmove : function (event) {},\n onend : function (event) {},\n\n // limit multiple gestures.\n // See the explanation in {@link Interactable.draggable} example\n max: Infinity,\n maxPerElement: 1,\n})\n\nvar isGestureable = interact(element).gesturable()\n
\nGets or sets whether multitouch gestures can be performed on the target
","params":[{"type":{"names":["boolean","object"]},"optional":true,"description":"true/false or An object with event\nlisteners to be fired on gesture events (makes the Interactable gesturable)
","name":"options"}],"returns":[{"type":{"names":["boolean","Interactable"]},"description":"A boolean indicating if this can be the\ntarget of gesture events, or this Interactable
"}],"name":"gesturable","longname":"Interactable#gesturable","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000278","___s":true,"attribs":"","id":"gesturable","signature":"(optionsopt) → {boolean|Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * The default function to get an Interactables bounding rect. Can be\n * overridden using {@link Interactable.rectChecker}.\n *\n * @param {Element} [element] The element to measure.\n * @return {object} The object's bounding rectangle.\n */","meta":{"range":[3419,3661],"filename":"Interactable.ts","lineno":105,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008630","name":"Interactable#getRect","type":"MethodDefinition","paramnames":["element"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"The default function to get an Interactables bounding rect. Can be\noverridden using {@link Interactable.rectChecker}.
","params":[{"type":{"names":["Element"]},"optional":true,"description":"The element to measure.
","name":"element"}],"returns":[{"type":{"names":["object"]},"description":"The object's bounding rectangle.
"}],"name":"getRect","longname":"Interactable#getRect","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000927","___s":true,"attribs":"","id":"getRect","signature":"(elementopt) → {object}","ancestors":["#Interactable#"]},{"comment":"/**\n * ```js\n * interact(element, { ignoreFrom: document.getElementById('no-action') })\n * // or\n * interact(element).ignoreFrom('input, textarea, a')\n * ```\n * @deprecated\n * If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\n * of it's parents match the given CSS selector or Element, no\n * drag/resize/gesture is started.\n *\n * Don't use this method. Instead set the `ignoreFrom` option for each action\n * or for `pointerEvents`\n *\n * @example\n * interact(targett)\n * .draggable({\n * ignoreFrom: 'input, textarea, a[href]'',\n * })\n * .pointerEvents({\n * ignoreFrom: '[no-pointer]',\n * })\n *\n * @param {string | Element | null} [newValue] a CSS selector string, an\n * Element or `null` to not ignore any elements\n * @return {string | Element | object} The current ignoreFrom value or this\n * Interactable\n */","meta":{"range":[1495,1726],"filename":"InteractableMethods.ts","lineno":54,"columnno":2,"path":"../@interactjs/auto-start","code":{"id":"astnode100007655","name":"Interactable.prototype.ignoreFrom","type":"CallExpression","value":"","paramnames":[]},"shortpath":"@interactjs/auto-start/InteractableMethods.ts"},"description":"interact(element, { ignoreFrom: document.getElementById('no-action') })\n// or\ninteract(element).ignoreFrom('input, textarea, a')\n
","deprecated":"If the target of the `mousedown`, `pointerdown` or `touchstart` event or any\nof it's parents match the given CSS selector or Element, no\ndrag/resize/gesture is started.\n\nDon't use this method. Instead set the `ignoreFrom` option for each action\nor for `pointerEvents`","examples":[{"caption":"","code":"interact(targett)\n .draggable({\n ignoreFrom: 'input, textarea, a[href]'',\n })\n .pointerEvents({\n ignoreFrom: '[no-pointer]',\n })"}],"params":[{"type":{"names":["string","Element","null"]},"optional":true,"description":"a CSS selector string, an\nElement or null
to not ignore any elements
The current ignoreFrom value or this\nInteractable
"}],"name":"ignoreFrom","longname":"Interactable#ignoreFrom","kind":"member","memberof":"Interactable","scope":"instance","___id":"T000002R000819","___s":true,"attribs":"","id":"ignoreFrom","ancestors":["#Interactable#"],"signature":""},{"comment":"/**\n * Removes an InteractEvent, pointerEvent or DOM event listener.\n *\n * @param {string | array | object} types The types of events that were\n * listened for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * removeEventListener\n * @return {Interactable} This Interactable\n */","meta":{"range":[8979,9071],"filename":"Interactable.ts","lineno":316,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100009126","name":"Interactable#off","type":"MethodDefinition","paramnames":["types","listener","options"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Removes an InteractEvent, pointerEvent or DOM event listener.
","params":[{"type":{"names":["string","array","object"]},"description":"The types of events that were\nlistened for
","name":"types"},{"type":{"names":["function","array","object"]},"optional":true,"description":"The event listener function(s)
","name":"listener"},{"type":{"names":["object","boolean"]},"optional":true,"description":"options object or useCapture flag for\nremoveEventListener
","name":"options"}],"returns":[{"type":{"names":["Interactable"]},"description":"This Interactable
"}],"name":"off","longname":"Interactable#off","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000954","___s":true,"attribs":"","id":"off","signature":"(types, listeneropt, optionsopt) → {Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * Binds a listener for an InteractEvent, pointerEvent or DOM event.\n *\n * @param {string | array | object} types The types of events to listen\n * for\n * @param {function | array | object} [listener] The event listener function(s)\n * @param {object | boolean} [options] options object or useCapture flag for\n * addEventListener\n * @return {Interactable} This Interactable\n */","meta":{"range":[8476,8566],"filename":"Interactable.ts","lineno":302,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100009110","name":"Interactable#on","type":"MethodDefinition","paramnames":["types","listener","options"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Binds a listener for an InteractEvent, pointerEvent or DOM event.
","params":[{"type":{"names":["string","array","object"]},"description":"The types of events to listen\nfor
","name":"types"},{"type":{"names":["function","array","object"]},"optional":true,"description":"The event listener function(s)
","name":"listener"},{"type":{"names":["object","boolean"]},"optional":true,"description":"options object or useCapture flag for\naddEventListener
","name":"options"}],"returns":[{"type":{"names":["Interactable"]},"description":"This Interactable
"}],"name":"on","longname":"Interactable#on","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000953","___s":true,"attribs":"","id":"on","signature":"(types, listeneropt, optionsopt) → {Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * Gets or sets the origin of the Interactable's element. The x and y\n * of the origin will be subtracted from action event coordinates.\n *\n * @param {Element | object | string} [origin] An HTML or SVG Element whose\n * rect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\n * or any CSS selector\n *\n * @return {object} The current origin or this Interactable\n */","meta":{"range":[4944,5021],"filename":"Interactable.ts","lineno":162,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008768","name":"Interactable#origin","type":"MethodDefinition","paramnames":["newValue"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Gets or sets the origin of the Interactable's element. The x and y\nof the origin will be subtracted from action event coordinates.
","params":[{"type":{"names":["Element","object","string"]},"optional":true,"description":"An HTML or SVG Element whose\nrect will be used, an object eg. { x: 0, y: 0 } or string 'parent', 'self'\nor any CSS selector
","name":"origin"}],"returns":[{"type":{"names":["object"]},"description":"The current origin or this Interactable
"}],"name":"origin","longname":"Interactable#origin","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000936","___s":true,"attribs":"","id":"origin","signature":"(originopt) → {object}","ancestors":["#Interactable#"]},{"comment":"/**\n * Returns or sets whether to prevent the browser's default behaviour in\n * response to pointer events. Can be set to:\n * - `'always'` to always prevent\n * - `'never'` to never prevent\n * - `'auto'` to let interact.js try to determine what would be best\n *\n * @param {string} [newValue] `'always'`, `'never'` or `'auto'`\n * @return {string | Interactable} The current setting or this Interactable\n */","meta":{"range":[2356,2410],"filename":"interactablePreventDefault.ts","lineno":75,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100009593","name":"Interactable.prototype.preventDefault","type":"Identifier","value":"preventDefault","paramnames":[]},"shortpath":"@interactjs/core/interactablePreventDefault.ts"},"description":"Returns or sets whether to prevent the browser's default behaviour in\nresponse to pointer events. Can be set to:
\n'always'
to always prevent'never'
to never prevent'auto'
to let interact.js try to determine what would be best'always'
, 'never'
or 'auto'
The current setting or this Interactable
"}],"name":"preventDefault","longname":"Interactable#preventDefault","kind":"member","memberof":"Interactable","scope":"instance","___id":"T000002R000982","___s":true,"attribs":"","id":"preventDefault","ancestors":["#Interactable#"],"signature":""},{"comment":"/**\n * Returns or sets the function used to calculate the interactable's\n * element's rectangle\n *\n * @param {function} [checker] A function which returns this Interactable's\n * bounding rectangle. See {@link Interactable.getRect}\n * @return {function | object} The checker function or this Interactable\n */","meta":{"range":[3990,4206],"filename":"Interactable.ts","lineno":124,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100008679","name":"Interactable#rectChecker","type":"MethodDefinition","paramnames":["checker"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Returns or sets the function used to calculate the interactable's\nelement's rectangle
","params":[{"type":{"names":["function"]},"optional":true,"description":"A function which returns this Interactable's\nbounding rectangle. See {@link Interactable.getRect}
","name":"checker"}],"returns":[{"type":{"names":["function","object"]},"description":"The checker function or this Interactable
"}],"name":"rectChecker","longname":"Interactable#rectChecker","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000930","___s":true,"attribs":"","id":"rectChecker","signature":"(checkeropt) → {function|object}","ancestors":["#Interactable#"]},{"comment":"/**\n * ```js\n * const interactable = interact(target)\n * const drag = { name: drag, axis: 'x' }\n * const resize = { name: resize, edges: { left: true, bottom: true }\n *\n * interactable.reflow(drag)\n * interactable.reflow(resize)\n * ```\n *\n * Start an action sequence to re-apply modifiers, check drops, etc.\n *\n * @param { Object } action The action to begin\n * @param { string } action.name The name of the action\n * @returns { Promise } A promise that resolves to the `Interactable` when actions on all targets have ended\n */","meta":{"range":[1175,1270],"filename":"index.ts","lineno":42,"columnno":2,"path":"../@interactjs/reflow","code":{"id":"astnode100024276","name":"Interactable.prototype.reflow","type":"FunctionExpression","paramnames":["action"]},"shortpath":"@interactjs/reflow/index.ts"},"description":"const interactable = interact(target)\nconst drag = { name: drag, axis: 'x' }\nconst resize = { name: resize, edges: { left: true, bottom: true }\n\ninteractable.reflow(drag)\ninteractable.reflow(resize)\n
\nStart an action sequence to re-apply modifiers, check drops, etc.
","params":[{"type":{"names":["Object"]},"description":"The action to begin
","name":"action","subparams":[{"type":{"names":["string"]},"description":"The name of the action
","name":"name"}]},null],"returns":[{"type":{"names":["Promise"]},"description":"A promise that resolves to the Interactable
when actions on all targets have ended
interact(element).resizable({\n onstart: function (event) {},\n onmove : function (event) {},\n onend : function (event) {},\n\n edges: {\n top : true, // Use pointer coords to check for resize.\n left : false, // Disable resizing from left edge.\n bottom: '.resize-s',// Resize if pointer target matches selector\n right : handleEl // Resize if pointer target is the given Element\n },\n\n // Width and height can be adjusted independently. When `true`, width and\n // height are adjusted at a 1:1 ratio.\n square: false,\n\n // Width and height can be adjusted independently. When `true`, width and\n // height maintain the aspect ratio they had when resizing started.\n preserveAspectRatio: false,\n\n // a value of 'none' will limit the resize rect to a minimum of 0x0\n // 'negate' will allow the rect to have negative width/height\n // 'reposition' will keep the width/height positive by swapping\n // the top and bottom edges and/or swapping the left and right edges\n invert: 'none' || 'negate' || 'reposition'\n\n // limit multiple resizes.\n // See the explanation in the {@link Interactable.draggable} example\n max: Infinity,\n maxPerElement: 1,\n})\n\nvar isResizeable = interact(element).resizable()\n
\nGets or sets whether resize actions can be performed on the target
","params":[{"type":{"names":["boolean","object"]},"optional":true,"description":"true/false or An object with event\nlisteners to be fired on resize events (object makes the Interactable\nresizable)
","name":"options"}],"returns":[{"type":{"names":["boolean","Interactable"]},"description":"A boolean indicating if this can be the\ntarget of resize elements, or this Interactable
"}],"name":"resizable","longname":"Interactable#resizable","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000357","___s":true,"attribs":"","id":"resizable","signature":"(optionsopt) → {boolean|Interactable}","ancestors":["#Interactable#"]},{"comment":"/**\n * Reset the options of this Interactable\n *\n * @param {object} options The new settings to apply\n * @return {object} This Interactable\n */","meta":{"range":[9232,9889],"filename":"Interactable.ts","lineno":330,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100009142","name":"Interactable#set","type":"MethodDefinition","paramnames":["options"]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Reset the options of this Interactable
","params":[{"type":{"names":["object"]},"description":"The new settings to apply
","name":"options"}],"returns":[{"type":{"names":["object"]},"description":"This Interactable
"}],"name":"set","longname":"Interactable#set","kind":"function","memberof":"Interactable","scope":"instance","___id":"T000002R000955","___s":true,"attribs":"","id":"set","signature":"(options) → {object}","ancestors":["#Interactable#"]},{"comment":"/**\n * Returns or sets whether the the cursor should be changed depending on the\n * action that would be performed if the mouse were pressed and dragged.\n *\n * @param {boolean} [newValue]\n * @return {boolean | Interactable} The current setting or this Interactable\n */","meta":{"range":[4085,4133],"filename":"InteractableMethods.ts","lineno":146,"columnno":2,"path":"../@interactjs/auto-start","code":{"id":"astnode100007703","name":"Interactable.prototype.styleCursor","type":"Identifier","value":"styleCursor","paramnames":[]},"shortpath":"@interactjs/auto-start/InteractableMethods.ts"},"description":"Returns or sets whether the the cursor should be changed depending on the\naction that would be performed if the mouse were pressed and dragged.
","params":[{"type":{"names":["boolean"]},"optional":true,"name":"newValue"}],"returns":[{"type":{"names":["boolean","Interactable"]},"description":"The current setting or this Interactable
"}],"name":"styleCursor","longname":"Interactable#styleCursor","kind":"member","memberof":"Interactable","scope":"instance","___id":"T000002R000822","___s":true,"attribs":"","id":"styleCursor","ancestors":["#Interactable#"],"signature":""},{"comment":"/**\n * Remove this interactable from the list of interactables and remove it's\n * action capabilities and event listeners\n *\n * @return {interact}\n */","meta":{"range":[10057,10738],"filename":"Interactable.ts","lineno":364,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100009259","name":"Interactable#unset","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/Interactable.ts"},"description":"Remove this interactable from the list of interactables and remove it's\naction capabilities and event listeners
","returns":[{"type":{"names":["interact"]}}],"name":"unset","longname":"Interactable#unset","kind":"function","memberof":"Interactable","scope":"instance","params":[],"___id":"T000002R000964","___s":true,"attribs":"","id":"unset","signature":"() → {interact}","ancestors":["#Interactable#"]},{"comment":"/** */","meta":{"range":[516,2903],"filename":"InteractEvent.ts","lineno":20,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100010198","name":"exports.InteractEvent","type":"MethodDefinition","paramnames":["interaction","event","actionName","phase","element","related","preEnd","type"]},"vars":{"":null},"shortpath":"@interactjs/core/InteractEvent.ts"},"name":"InteractEvent","longname":"InteractEvent#InteractEvent","kind":"class","memberof":"InteractEvent","scope":"instance","params":[],"___id":"T000003R000004","___s":true,"attribs":"","id":"InteractEvent","signature":"()","ancestors":[]},{"comment":"/**\n * Don't call listeners on the remaining targets\n */","meta":{"range":[4694,4797],"filename":"InteractEvent.ts","lineno":192,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100011044","name":"InteractEvent#stopImmediatePropagation","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/InteractEvent.ts"},"description":"Don't call listeners on the remaining targets
","name":"stopImmediatePropagation","longname":"InteractEvent#stopImmediatePropagation","kind":"function","memberof":"InteractEvent","scope":"instance","params":[],"___id":"T000002R001129","___s":true,"attribs":"","id":"stopImmediatePropagation","signature":"()","ancestors":[]},{"comment":"/**\n * Don't call any other listeners (even on the current target)\n */","meta":{"range":[4879,4938],"filename":"InteractEvent.ts","lineno":199,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100011058","name":"InteractEvent#stopPropagation","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/InteractEvent.ts"},"description":"Don't call any other listeners (even on the current target)
","name":"stopPropagation","longname":"InteractEvent#stopPropagation","kind":"function","memberof":"InteractEvent","scope":"instance","params":[],"___id":"T000002R001132","___s":true,"attribs":"","id":"stopPropagation","signature":"()","ancestors":[]},{"comment":"/**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('move', function (event) {\n * if (event.pageX > 1000) {\n * // end the current action\n * event.interaction.end()\n * // stop all further listeners from being called\n * event.stopImmediatePropagation()\n * }\n * })\n * ```\n *\n * @param {PointerEvent} [event]\n */","meta":{"range":[8808,9167],"filename":"Interaction.ts","lineno":401,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100012077","name":"Interaction#end","type":"MethodDefinition","paramnames":["event"]},"vars":{"":null},"shortpath":"@interactjs/core/Interaction.ts"},"description":"interact(target)\n .draggable(true)\n .on('move', function (event) {\n if (event.pageX > 1000) {\n // end the current action\n event.interaction.end()\n // stop all further listeners from being called\n event.stopImmediatePropagation()\n }\n })\n
","params":[{"type":{"names":["PointerEvent"]},"optional":true,"name":"event"}],"name":"end","longname":"Interaction#end","kind":"function","memberof":"Interaction","scope":"instance","___id":"T000002R001256","___s":true,"attribs":"","id":"end","signature":"(eventopt)","ancestors":[]},{"comment":"/** */","meta":{"range":[2202,2755],"filename":"Interaction.ts","lineno":84,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100011295","name":"exports.Interaction","type":"MethodDefinition","paramnames":[""]},"vars":{"":null},"shortpath":"@interactjs/core/Interaction.ts"},"name":"Interaction","longname":"Interaction#Interaction","kind":"class","memberof":"Interaction","scope":"instance","params":[],"___id":"T000003R000005","___s":true,"attribs":"","id":"Interaction","signature":"()","ancestors":[]},{"comment":"/**\n * @alias Interaction.prototype.move\n */","meta":{"range":[1575,1727],"filename":"Interaction.ts","lineno":159,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100011240","name":"doMove","type":"ClassProperty"},"shortpath":"@interactjs/core/Interaction.ts"},"alias":"Interaction.prototype.move","name":"move","longname":"Interaction#move","kind":"member","memberof":"Interaction","scope":"instance","___id":"T000002R001177","___s":true,"attribs":"","id":"move","ancestors":[],"signature":""},{"comment":"/**\n * ```js\n * interact(target)\n * .draggable(true)\n * .on('dragmove', function (event) {\n * if (someCondition) {\n * // change the snap settings\n * event.interactable.draggable({ snap: { targets: [] }})\n * // fire another move event with re-calculated snap\n * event.interaction.move()\n * }\n * })\n * ```\n *\n * Force a move of the current action at the same coordinates. Useful if\n * snap/restrict has been changed and you want a movement with the new\n * settings.\n */","meta":{"range":[7153,7563],"filename":"Interaction.ts","lineno":333,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100011887","name":"Interaction#move","type":"MethodDefinition","paramnames":["signalArg"]},"vars":{"":null},"shortpath":"@interactjs/core/Interaction.ts"},"description":"interact(target)\n .draggable(true)\n .on('dragmove', function (event) {\n if (someCondition) {\n // change the snap settings\n event.interactable.draggable({ snap: { targets: [] }})\n // fire another move event with re-calculated snap\n event.interaction.move()\n }\n })\n
\nForce a move of the current action at the same coordinates. Useful if\nsnap/restrict has been changed and you want a movement with the new\nsettings.
","name":"move","longname":"Interaction#move","kind":"function","memberof":"Interaction","scope":"instance","params":[],"___id":"T000002R001233","___s":true,"attribs":"","id":"move","signature":"()","ancestors":[]},{"comment":"/**\n * ```js\n * interact(target)\n * .draggable({\n * // disable the default drag start by down->move\n * manualStart: true\n * })\n * // start dragging after the user holds the pointer down\n * .on('hold', function (event) {\n * var interaction = event.interaction\n *\n * if (!interaction.interacting()) {\n * interaction.start({ name: 'drag' },\n * event.interactable,\n * event.currentTarget)\n * }\n * })\n * ```\n *\n * Start an action with the given Interactable and Element as tartgets. The\n * action must be enabled for the target Interactable and an appropriate\n * number of pointers must be held down - 1 for drag/resize, 2 for gesture.\n *\n * Use it with `interactable.interact(target)\n .draggable({\n // disable the default drag start by down->move\n manualStart: true\n })\n // start dragging after the user holds the pointer down\n .on('hold', function (event) {\n var interaction = event.interaction\n\n if (!interaction.interacting()) {\n interaction.start({ name: 'drag' },\n event.interactable,\n event.currentTarget)\n }\n})\n
\nStart an action with the given Interactable and Element as tartgets. The\naction must be enabled for the target Interactable and an appropriate\nnumber of pointers must be held down - 1 for drag/resize, 2 for gesture.
\nUse it with interactable.<action>able({ manualStart: false })
to always\nstart actions manually
The action to be performed - drag, resize, etc.
","name":"action"},{"type":{"names":["Interactable"]},"description":"The Interactable to target
","name":"target"},{"type":{"names":["Element"]},"description":"The DOM Element to target
","name":"element"}],"returns":[{"type":{"names":["object"]},"description":"interact
"}],"name":"start","longname":"Interaction#start","kind":"function","memberof":"Interaction","scope":"instance","___id":"T000002R001205","___s":true,"attribs":"","id":"start","signature":"(action, target, element) → {object}","ancestors":[]},{"comment":"/** */","meta":{"range":[9317,9555],"filename":"Interaction.ts","lineno":346,"columnno":2,"path":"../@interactjs/core","code":{"id":"astnode100012162","name":"Interaction#stop","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/core/Interaction.ts"},"name":"stop","longname":"Interaction#stop","kind":"function","memberof":"Interaction","scope":"instance","params":[],"___id":"T000002R001267","___s":true,"attribs":"","id":"stop","signature":"()","ancestors":[]},{"comment":"/** */","meta":{"range":[163,1146],"filename":"PointerEvent.ts","lineno":5,"columnno":2,"path":"../@interactjs/pointer-events","code":{"id":"astnode100023953","name":"module.exports","type":"MethodDefinition","paramnames":["type","pointer","event","eventTarget","interaction","timeStamp"]},"vars":{"":null},"shortpath":"@interactjs/pointer-events/PointerEvent.ts"},"name":"exports","longname":"module.exports#module.exports","kind":"class","memberof":"module.exports#module","scope":"static","params":[],"___id":"T000003R000006","___s":true,"attribs":"","id":"exports","signature":"()","ancestors":[]},{"comment":"/** @module interact */","meta":{"filename":"interact.ts","lineno":1,"columnno":0,"path":"../@interactjs/interact","code":{},"shortpath":"@interactjs/interact/interact.ts"},"kind":"module","name":"interact","longname":"module:interact","___id":"T000004R000002","___s":true,"attribs":"","id":"interact","ancestors":[],"modules":[]},{"comment":"/**\n * Check if an element or selector has been set with the {@link interact}\n * function\n *\n * @alias module:interact.isSet\n *\n * @param {Element} element The Element being searched for\n * @return {boolean} Indicates if the element or CSS selector was previously\n * passed to interact\n */","meta":{"range":[1745,1767],"filename":"interact.ts","lineno":96,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017139","name":"interact.isSet","type":"Identifier","value":"isSet","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Check if an element or selector has been set with the {@link interact}\nfunction
","alias":"module:interact.isSet","params":[{"type":{"names":["Element"]},"description":"The Element being searched for
","name":"element"}],"returns":[{"type":{"names":["boolean"]},"description":"Indicates if the element or CSS selector was previously\npassed to interact
"}],"name":"isSet","longname":"module:interact.isSet","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001827","___s":true,"attribs":"(static) ","id":".isSet","ancestors":["interact."],"signature":""},{"comment":"/**\n * Returns or sets the maximum number of concurrent interactions allowed. By\n * default only 1 interaction is allowed at a time (for backwards\n * compatibility). To allow multiple interactions on the same Interactables and\n * elements, you need to enable it in the draggable, resizable and gesturable\n * `'max'` and `'maxPerElement'` options.\n *\n * @alias module:interact.maxInteractions\n *\n * @param {number} [newValue] Any number. newValue <= 0 means no interactions.\n */","meta":{"range":[1106,1177],"filename":"base.ts","lineno":82,"columnno":2,"path":"../@interactjs/auto-start","code":{"id":"astnode100006085","name":"interact.maxInteractions","type":"ArrowFunctionExpression","paramnames":["newValue"]},"shortpath":"@interactjs/auto-start/base.ts"},"description":"Returns or sets the maximum number of concurrent interactions allowed. By\ndefault only 1 interaction is allowed at a time (for backwards\ncompatibility). To allow multiple interactions on the same Interactables and\nelements, you need to enable it in the draggable, resizable and gesturable\n'max'
and 'maxPerElement'
options.
Any number. newValue <= 0 means no interactions.
","name":"newValue"}],"name":"maxInteractions","longname":"module:interact.maxInteractions","kind":"function","memberof":"module:interact","scope":"static","___id":"T000002R000655","___s":true,"attribs":"(static) ","id":".maxInteractions","signature":"(newValueopt)","ancestors":["interact."]},{"comment":"/**\n * Removes a global InteractEvent listener or DOM event from `document`\n *\n * @alias module:interact.off\n *\n * @param {string | array | object} type The types of events that were listened\n * for\n * @param {function} listener The listener function to be removed\n * @param {object | boolean} options [options] object or useCapture flag for\n * removeEventListener\n * @return {object} interact\n */","meta":{"range":[3573,3591],"filename":"interact.ts","lineno":162,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017310","name":"interact.off","type":"Identifier","value":"off","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Removes a global InteractEvent listener or DOM event from document
The types of events that were listened\nfor
","name":"type"},{"type":{"names":["function"]},"description":"The listener function to be removed
","name":"listener"},{"type":{"names":["object","boolean"]},"description":"[options] object or useCapture flag for\nremoveEventListener
","name":"options"}],"returns":[{"type":{"names":["object"]},"description":"interact
"}],"name":"off","longname":"module:interact.off","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001836","___s":true,"attribs":"(static) ","id":".off","ancestors":["interact."],"signature":""},{"comment":"/**\n * Add a global listener for an InteractEvent or adds a DOM event to `document`\n *\n * @alias module:interact.on\n *\n * @param {string | array | object} type The types of events to listen for\n * @param {function} listener The function event (s)\n * @param {object | boolean} [options] object or useCapture flag for\n * addEventListener\n * @return {object} interact\n */","meta":{"range":[2249,2265],"filename":"interact.ts","lineno":111,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017165","name":"interact.on","type":"Identifier","value":"on","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Add a global listener for an InteractEvent or adds a DOM event to document
The types of events to listen for
","name":"type"},{"type":{"names":["function"]},"description":"The function event (s)
","name":"listener"},{"type":{"names":["object","boolean"]},"optional":true,"description":"object or useCapture flag for\naddEventListener
","name":"options"}],"returns":[{"type":{"names":["object"]},"description":"interact
"}],"name":"on","longname":"module:interact.on","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001829","___s":true,"attribs":"(static) ","id":".on","ancestors":["interact."],"signature":""},{"comment":"/**\n * Returns or sets the distance the pointer must be moved before an action\n * sequence occurs. This also affects tolerance for tap events.\n *\n * @alias module:interact.pointerMoveTolerance\n *\n * @param {number} [newValue] The movement from the start position must be greater than this value\n * @return {interact | number}\n */","meta":{"range":[5984,6036],"filename":"interact.ts","lineno":263,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017605","name":"interact.pointerMoveTolerance","type":"Identifier","value":"pointerMoveTolerance","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Returns or sets the distance the pointer must be moved before an action\nsequence occurs. This also affects tolerance for tap events.
","alias":"module:interact.pointerMoveTolerance","params":[{"type":{"names":["number"]},"optional":true,"description":"The movement from the start position must be greater than this value
","name":"newValue"}],"returns":[{"type":{"names":["interact","number"]}}],"name":"pointerMoveTolerance","longname":"module:interact.pointerMoveTolerance","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001860","___s":true,"attribs":"(static) ","id":".pointerMoveTolerance","ancestors":["interact."],"signature":""},{"comment":"/**\n * Cancels all interactions (end events are not fired)\n *\n * @alias module:interact.stop\n *\n * @return {object} interact\n */","meta":{"range":[5506,5526],"filename":"interact.ts","lineno":247,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017579","name":"interact.stop","type":"Identifier","value":"stop","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Cancels all interactions (end events are not fired)
","alias":"module:interact.stop","returns":[{"type":{"names":["object"]},"description":"interact
"}],"name":"stop","longname":"module:interact.stop","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001857","___s":true,"attribs":"(static) ","id":".stop","ancestors":["interact."],"signature":""},{"comment":"/**\n * @alias module:interact.supportsPointerEvent\n *\n * @return {boolean} Whether or not the browser supports PointerEvents\n */","meta":{"range":[5245,5297],"filename":"interact.ts","lineno":237,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017566","name":"interact.supportsPointerEvent","type":"Identifier","value":"supportsPointerEvent","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"alias":"module:interact.supportsPointerEvent","returns":[{"type":{"names":["boolean"]},"description":"Whether or not the browser supports PointerEvents
"}],"name":"supportsPointerEvent","longname":"module:interact.supportsPointerEvent","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001855","___s":true,"attribs":"(static) ","id":".supportsPointerEvent","ancestors":["interact."],"signature":""},{"comment":"/**\n * @alias module:interact.supportsTouch\n *\n * @return {boolean} Whether or not the browser supports touch input\n */","meta":{"range":[5012,5050],"filename":"interact.ts","lineno":227,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017553","name":"interact.supportsTouch","type":"Identifier","value":"supportsTouch","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"alias":"module:interact.supportsTouch","returns":[{"type":{"names":["boolean"]},"description":"Whether or not the browser supports touch input
"}],"name":"supportsTouch","longname":"module:interact.supportsTouch","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001853","___s":true,"attribs":"(static) ","id":".supportsTouch","ancestors":["interact."],"signature":""},{"comment":"/**\n * Use a plugin\n *\n * @alias module:interact.use\n *\n * @param {Object} plugin\n * @param {function} plugin.install\n * @return {interact}\n */","meta":{"range":[1343,1361],"filename":"interact.ts","lineno":80,"columnno":0,"path":"../@interactjs/interact","code":{"id":"astnode100017119","name":"interact.use","type":"Identifier","value":"use","paramnames":[]},"shortpath":"@interactjs/interact/interact.ts"},"description":"Use a plugin
","alias":"module:interact.use","params":[{"type":{"names":["Object"]},"name":"plugin"},{"type":{"names":["function"]},"name":"plugin.install"}],"returns":[{"type":{"names":["interact"]}}],"name":"use","longname":"module:interact.use","kind":"member","memberof":"module:interact","scope":"static","___id":"T000002R001825","___s":true,"attribs":"(static) ","id":".use","ancestors":["interact."],"signature":""},{"comment":"/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * @example\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.createSnapGrid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n */","meta":{"filename":"aspectRatio.ts","lineno":3,"columnno":0,"path":"../@interactjs/modifiers","code":{},"shortpath":"@interactjs/modifiers/aspectRatio.ts"},"kind":"module","name":"modifiers/aspectRatio","description":"This module forces elements to be resized with a specified dx/dy ratio.
","examples":[{"caption":"","code":"interact(target).resizable({\n modifiers: [\n interact.modifiers.snapSize({\n targets: [ interact.createSnapGrid({ x: 20, y: 20 }) ],\n }),\n interact.aspectRatio({ ratio: 'preserve' }),\n ],\n});"}],"longname":"module:modifiers/aspectRatio","___id":"T000004R000003","___s":true,"attribs":"","id":"modifiers/aspectRatio","ancestors":[],"modules":[{"comment":"/**\n * @module modifiers/aspectRatio\n *\n * @description\n * This module forces elements to be resized with a specified dx/dy ratio.\n *\n * @example\n * interact(target).resizable({\n * modifiers: [\n * interact.modifiers.snapSize({\n * targets: [ interact.createSnapGrid({ x: 20, y: 20 }) ],\n * }),\n * interact.aspectRatio({ ratio: 'preserve' }),\n * ],\n * });\n */","meta":{"filename":"aspectRatio.ts","lineno":3,"columnno":0,"path":"/home/travis/build/taye/interact.js/@interactjs/modifiers","code":{},"shortpath":"@interactjs/modifiers/aspectRatio.ts"},"kind":"module","name":"modifiers/aspectRatio","description":"This module forces elements to be resized with a specified dx/dy ratio.
","examples":[{"caption":"","code":"interact(target).resizable({\n modifiers: [\n interact.modifiers.snapSize({\n targets: [ interact.createSnapGrid({ x: 20, y: 20 }) ],\n }),\n interact.aspectRatio({ ratio: 'preserve' }),\n ],\n});"}],"longname":"module:modifiers/aspectRatio","___id":"T000002R001879","___s":true,"attribs":"","id":"modifiers/aspectRatio","ancestors":[]}]},{"comment":"/**\n * @module modifiers/snapEdges\n *\n * @description\n * This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * @example\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n */","meta":{"filename":"edges.ts","lineno":1,"columnno":0,"path":"../@interactjs/modifiers/snap","code":{},"shortpath":"@interactjs/modifiers/snap/edges.ts"},"kind":"module","name":"modifiers/snapEdges","description":"This module allows snapping of the edges of targets during resize\ninteractions.
","examples":[{"caption":"","code":"interact(target).resizable({\n snapEdges: {\n targets: [interact.snappers.grid({ x: 100, y: 50 })],\n },\n})\n\ninteract(target).resizable({\n snapEdges: {\n targets: [\n interact.snappers.grid({\n top: 50,\n left: 50,\n bottom: 100,\n right: 100,\n }),\n ],\n },\n})"}],"longname":"module:modifiers/snapEdges","___id":"T000004R000004","___s":true,"attribs":"","id":"modifiers/snapEdges","ancestors":[],"modules":[{"comment":"/**\n * @module modifiers/snapEdges\n *\n * @description\n * This module allows snapping of the edges of targets during resize\n * interactions.\n *\n * @example\n * interact(target).resizable({\n * snapEdges: {\n * targets: [interact.snappers.grid({ x: 100, y: 50 })],\n * },\n * })\n *\n * interact(target).resizable({\n * snapEdges: {\n * targets: [\n * interact.snappers.grid({\n * top: 50,\n * left: 50,\n * bottom: 100,\n * right: 100,\n * }),\n * ],\n * },\n * })\n */","meta":{"filename":"edges.ts","lineno":1,"columnno":0,"path":"/home/travis/build/taye/interact.js/@interactjs/modifiers/snap","code":{},"shortpath":"@interactjs/modifiers/snap/edges.ts"},"kind":"module","name":"modifiers/snapEdges","description":"This module allows snapping of the edges of targets during resize\ninteractions.
","examples":[{"caption":"","code":"interact(target).resizable({\n snapEdges: {\n targets: [interact.snappers.grid({ x: 100, y: 50 })],\n },\n})\n\ninteract(target).resizable({\n snapEdges: {\n targets: [\n interact.snappers.grid({\n top: 50,\n left: 50,\n bottom: 100,\n right: 100,\n }),\n ],\n },\n})"}],"longname":"module:modifiers/snapEdges","___id":"T000002R002381","___s":true,"attribs":"","id":"modifiers/snapEdges","ancestors":[]}]},{"kind":"package","longname":"package:undefined","files":["/home/travis/build/taye/interact.js/@interactjs/actions/drag.ts","/home/travis/build/taye/interact.js/@interactjs/actions/drop/DropEvent.ts","/home/travis/build/taye/interact.js/@interactjs/actions/drop/index.ts","/home/travis/build/taye/interact.js/@interactjs/actions/gesture.ts","/home/travis/build/taye/interact.js/@interactjs/actions/index.ts","/home/travis/build/taye/interact.js/@interactjs/actions/resize.ts","/home/travis/build/taye/interact.js/@interactjs/auto-scroll/index.ts","/home/travis/build/taye/interact.js/@interactjs/auto-start/base.ts","/home/travis/build/taye/interact.js/@interactjs/auto-start/dragAxis.ts","/home/travis/build/taye/interact.js/@interactjs/auto-start/hold.ts","/home/travis/build/taye/interact.js/@interactjs/auto-start/index.ts","/home/travis/build/taye/interact.js/@interactjs/auto-start/InteractableMethods.ts","/home/travis/build/taye/interact.js/@interactjs/core/BaseEvent.ts","/home/travis/build/taye/interact.js/@interactjs/core/defaultOptions.ts","/home/travis/build/taye/interact.js/@interactjs/core/Eventable.ts","/home/travis/build/taye/interact.js/@interactjs/core/Interactable.ts","/home/travis/build/taye/interact.js/@interactjs/core/interactablePreventDefault.ts","/home/travis/build/taye/interact.js/@interactjs/core/InteractableSet.ts","/home/travis/build/taye/interact.js/@interactjs/core/InteractEvent.ts","/home/travis/build/taye/interact.js/@interactjs/core/Interaction.ts","/home/travis/build/taye/interact.js/@interactjs/core/interactionFinder.ts","/home/travis/build/taye/interact.js/@interactjs/core/interactions.ts","/home/travis/build/taye/interact.js/@interactjs/core/PointerInfo.ts","/home/travis/build/taye/interact.js/@interactjs/core/scope.ts","/home/travis/build/taye/interact.js/@interactjs/dev-tools/index.ts","/home/travis/build/taye/interact.js/@interactjs/inertia/index.ts","/home/travis/build/taye/interact.js/@interactjs/interact/index.ts","/home/travis/build/taye/interact.js/@interactjs/interact/interact.ts","/home/travis/build/taye/interact.js/@interactjs/interactjs/index.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/aspectRatio.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/base.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/index.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/restrict/edges.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/restrict/pointer.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/restrict/rect.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/restrict/size.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/snap/edges.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/snap/pointer.ts","/home/travis/build/taye/interact.js/@interactjs/modifiers/snap/size.ts","/home/travis/build/taye/interact.js/@interactjs/pointer-events/base.ts","/home/travis/build/taye/interact.js/@interactjs/pointer-events/holdRepeat.ts","/home/travis/build/taye/interact.js/@interactjs/pointer-events/index.ts","/home/travis/build/taye/interact.js/@interactjs/pointer-events/interactableTargets.ts","/home/travis/build/taye/interact.js/@interactjs/pointer-events/PointerEvent.ts","/home/travis/build/taye/interact.js/@interactjs/reflow/index.ts","/home/travis/build/taye/interact.js/@interactjs/types/index.ts","/home/travis/build/taye/interact.js/@interactjs/types/interactjs-test.ts","/home/travis/build/taye/interact.js/@interactjs/types/NativePointerEventType.ts","/home/travis/build/taye/interact.js/@interactjs/utils/arr.ts","/home/travis/build/taye/interact.js/@interactjs/utils/browser.ts","/home/travis/build/taye/interact.js/@interactjs/utils/clone.ts","/home/travis/build/taye/interact.js/@interactjs/utils/domObjects.ts","/home/travis/build/taye/interact.js/@interactjs/utils/domUtils.ts","/home/travis/build/taye/interact.js/@interactjs/utils/events.ts","/home/travis/build/taye/interact.js/@interactjs/utils/extend.ts","/home/travis/build/taye/interact.js/@interactjs/utils/getOriginXY.ts","/home/travis/build/taye/interact.js/@interactjs/utils/hypot.ts","/home/travis/build/taye/interact.js/@interactjs/utils/index.ts","/home/travis/build/taye/interact.js/@interactjs/utils/is.ts","/home/travis/build/taye/interact.js/@interactjs/utils/isWindow.ts","/home/travis/build/taye/interact.js/@interactjs/utils/normalizeListeners.ts","/home/travis/build/taye/interact.js/@interactjs/utils/pointerExtend.ts","/home/travis/build/taye/interact.js/@interactjs/utils/pointerUtils.ts","/home/travis/build/taye/interact.js/@interactjs/utils/raf.ts","/home/travis/build/taye/interact.js/@interactjs/utils/rect.ts","/home/travis/build/taye/interact.js/@interactjs/utils/snappers/grid.ts","/home/travis/build/taye/interact.js/@interactjs/utils/snappers/index.ts","/home/travis/build/taye/interact.js/@interactjs/utils/window.ts","/home/travis/build/taye/interact.js/interactjs/index.ts","/home/travis/build/taye/interact.js/jsdoc/index.md"],"___id":"T000002R003536","___s":true,"attribs":"","id":"package:","ancestors":[]},{"comment":"/**\n * Prevent the default behaviour of the original Event\n */","meta":{"range":[1599,1662],"filename":"PointerEvent.ts","lineno":76,"columnno":2,"path":"../@interactjs/pointer-events","code":{"id":"astnode100024194","name":"preventDefault","type":"MethodDefinition","paramnames":[]},"vars":{"":null},"shortpath":"@interactjs/pointer-events/PointerEvent.ts"},"description":"Prevent the default behaviour of the original Event
","name":"preventDefault","longname":"preventDefault","kind":"function","scope":"global","params":[],"___id":"T000002R002779","___s":true,"attribs":"","id":"preventDefault","signature":"()","ancestors":[]}]