StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/@interactjs/auto-scroll/index.js.map

94 lines
16 KiB

4 years ago
{
"version": 3,
"sources": [
"index.ts"
],
"names": [
"domUtils",
"is",
"raf",
"getStringOptionResult",
"getWindow",
"install",
"scope",
"defaults",
"actions",
"autoScroll",
"now",
"eventTypes",
"push",
"perAction",
"enabled",
"margin",
"container",
"speed",
"Date",
"interaction",
"i",
"x",
"y",
"isScrolling",
"prevTime",
"start",
"cancel",
"request",
"scroll",
"stop",
"interactable",
"element",
"actionName",
"prepared",
"name",
"options",
"getContainer",
"dt",
"s",
"scrollBy",
"prevScroll",
"getScroll",
"window",
"scrollLeft",
"scrollTop",
"curScroll",
"delta",
"fire",
"type",
"target",
"check",
"onInteractionMove",
"pointer",
"interacting",
"simulation",
"top",
"right",
"bottom",
"left",
"clientX",
"clientY",
"innerWidth",
"innerHeight",
"rect",
"getElementClientRect",
"value",
"string",
"document",
"body",
"getScrollSize",
"scrollWidth",
"scrollHeight",
"getScrollSizeDelta",
"func",
"scrollOptions",
"scrollContainer",
"prevSize",
"curSize",
"autoScrollPlugin",
"id",
"listeners",
"arg"
],
"mappings": "AAAA,OAAO,KAAKA,QAAZ;AACA,OAAO,KAAKC,EAAZ;AACA,OAAOC,GAAP;AACA,SAASC,qBAAT;AACA,SAASC,SAAT;;AA+BA,SAASC,OAAT,CAAkBC,KAAlB,EAAgC;AAC9B,QAAM;AACJC,IAAAA,QADI;AAEJC,IAAAA;AAFI,MAGFF,KAHJ;AAKAA,EAAAA,KAAK,CAACG,UAAN,GAAmBA,UAAnB;;AACAA,EAAAA,UAAU,CAACC,GAAX,GAAiB,MAAMJ,KAAK,CAACI,GAAN,EAAvB;;AAEAF,EAAAA,OAAO,CAACG,UAAR,CAAmBC,IAAnB,CAAwB,Y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AW,CAACkC,WAAZ,MACA5C,UAAU,CAACyC,KAAX,CAAiB/B,WAAW,CAACW,YAA7B,EAA2CX,WAAW,CAACc,QAAZ,CAAqBC,IAAhE,CADF,CAAJ,EAC8E;AAC5E;AACD;;AAED,QAAIf,WAAW,CAACmC,UAAhB,EAA4B;AAC1B7C,MAAAA,UAAU,CAACY,CAAX,GAAeZ,UAAU,CAACa,CAAX,GAAe,CAA9B;AACA;AACD;;AAED,QAAIiC,GAAJ;AACA,QAAIC,KAAJ;AACA,QAAIC,MAAJ;AACA,QAAIC,IAAJ;AAEA,UAAM;AAAE5B,MAAAA,YAAF;AAAgBC,MAAAA;AAAhB,QAA4BZ,WAAlC;AACA,UAAMa,UAAU,GAAGb,WAAW,CAACc,QAAZ,CAAqBC,IAAxC;AACA,UAAMC,OAAO,GAAGL,YAAY,CAACK,OAAb,CAAqBH,UAArB,EAAiCvB,UAAjD;AACA,UAAMO,SAAS,GAAGoB,YAAY,CAACD,OAAO,CAACnB,SAAT,EAAoBc,YAApB,EAAkCC,OAAlC,CAA9B;;AAEA,Q
"sourcesContent": [
"import * as domUtils from '@interactjs/utils/domUtils'\nimport * as is from '@interactjs/utils/is'\nimport raf from '@interactjs/utils/raf'\nimport { getStringOptionResult } from '@interactjs/utils/rect'\nimport { getWindow } from '@interactjs/utils/window'\n\ntype Scope = import ('@interactjs/core/scope').Scope\n\ndeclare module '@interactjs/core/scope' {\n interface Scope {\n autoScroll: typeof autoScroll\n }\n}\n\ndeclare module '@interactjs/core/Interaction' {\n interface Interaction {\n autoScroll?: typeof autoScroll\n }\n}\n\ndeclare module '@interactjs/core/defaultOptions' {\n interface PerActionDefaults {\n autoScroll?: AutoScrollOptions\n }\n}\n\nexport interface AutoScrollOptions {\n container?: Window | HTMLElement\n margin?: number\n distance?: number\n interval?: number\n speed?: number\n enabled?: boolean\n}\n\nfunction install (scope: Scope) {\n const {\n defaults,\n actions,\n } = scope\n\n scope.autoScroll = autoScroll\n autoScroll.now = () => scope.now()\n\n actions.eventTypes.push('autoscroll')\n defaults.perAction.autoScroll = autoScroll.defaults\n}\n\nconst autoScroll = {\n defaults: {\n enabled : false,\n margin : 60,\n\n // the item that is scrolled (Window or HTMLElement)\n container: null as AutoScrollOptions['container'],\n\n // the scroll speed in pixels per second\n speed : 300,\n } as AutoScrollOptions,\n\n now: Date.now,\n\n interaction: null as Interact.Interaction,\n i: 0, // the handle returned by window.setInterval\n x: 0,\n y: 0, // Direction each pulse is to scroll in\n\n isScrolling: false,\n prevTime: 0,\n margin: 0,\n speed: 0,\n\n start (interaction: Interact.Interaction) {\n autoScroll.isScrolling = true\n raf.cancel(autoScroll.i)\n\n interaction.autoScroll = autoScroll\n autoScroll.interaction = interaction\n autoScroll.prevTime = autoScroll.now()\n autoScroll.i = raf.request(autoScroll.scroll)\n },\n\n stop () {\n autoScroll.isScrolling = false\n if (autoScroll.interaction) {\n autoScroll.interaction.autoScroll = null\n }\n raf.cancel(autoScroll.i)\n },\n\n // scroll the window by the values in scroll.x/y\n scroll () {\n const { interaction } = autoScroll\n const { interactable, element } = interaction\n const actionName: Interact.ActionName = interaction.prepared.name\n const options = interactable.options[actionName].autoScroll\n const container = getContainer(options.container, interactable, element)\n const now = autoScroll.now()\n // change in time in seconds\n const dt = (now - autoScroll.prevTime) / 1000\n // displacement\n const s = options.speed * dt\n\n if (s >= 1) {\n const scrollBy = {\n x: autoScroll.x * s,\n y: autoScroll.y * s,\n }\n\n if (scrollBy.x || scrollBy.y) {\n const prevScroll = getScroll(container)\n\n if (is.window(container)) {\n container.scrollBy(scrollBy.x, scrollBy.y)\n }\n else if (container) {\n container.scrollLeft += scrollBy.x\n container.scrollTop += scrollBy.y\n }\n\n const curScroll = getScroll(container)\n const delta = {\n x: curScroll.x - prevScroll.x,\n y: curScroll.y - prevScroll.y,\n }\n\n if (delta.x || delta.y) {\n interactable.fire({\n type: 'autoscroll',\n target: element,\n interactable,\n delta,\n interaction,\n container,\n })\n }\n }\n\n autoScroll.prevTime = now\n }\n\n if (autoScroll.isScrolling) {\n raf.cancel(autoScroll.i)\n autoScroll.i = raf.request(autoScroll.scroll)\n }\n },\n check (interactable: Interact.Interactable, actionName: Interact.ActionName) {\n const options = interactable.options\n\n return options[actionName].autoScroll && options[actionName].autoScroll.enabled\n },\n onInteractionMove<T extends Interact.ActionName> ({ interaction, pointer }: { interaction: Interact.Interaction<T>, pointer: Inter
]
}