@performant-software/visualize 2.3.1-beta.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs198.js +3 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -3
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs266.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs268.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs269.js.map +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs283.js.map +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.es186.js +4 -4
- package/dist/index.es188.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +2 -2
- package/dist/index.es198.js +240 -2
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +982 -204
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es200.js +2 -1018
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es204.js +1 -1
- package/dist/index.es205.js +1 -1
- package/dist/index.es223.js +1 -1
- package/dist/index.es239.js +2 -2
- package/dist/index.es243.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es252.js +1 -1
- package/dist/index.es257.js +3 -3
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +7 -6
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +3 -7
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +2 -3
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +4 -4
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +7 -7
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +3 -14
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +6 -6
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +7 -3
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +6 -2
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +13 -5
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +6 -7
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +5 -2
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es270.js +13 -2
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +2 -5
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +2 -13
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +2 -2
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +3 -3
- package/dist/index.es275.js +2 -2
- package/dist/index.es280.js +3 -3
- package/dist/index.es283.js +12 -3
- package/dist/index.es283.js.map +1 -1
- package/dist/index.es284.js +7 -14
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es285.js +3 -6
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +14 -12
- package/dist/index.es286.js.map +1 -1
- package/dist/index.es287.js +6 -7
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es291.js +1 -1
- package/dist/index.es34.js +4 -4
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +1 -1
- package/dist/index.es53.js +2 -2
- package/dist/index.es54.js +3 -3
- package/dist/index.es58.js +9 -9
- package/dist/index.es62.js +13 -9
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +32 -4
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +93 -11
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +20 -5
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +27 -14
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +54 -9
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +29 -6
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +40 -10
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js +8 -7
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +4 -20
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +11 -26
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +6 -13
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +14 -32
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +9 -94
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +5 -54
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +10 -29
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +8 -40
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es81.js +1 -1
- package/package.json +1 -1
package/dist/index.es65.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isSVGElement as c, isSVGGraphicsElement as f, isSVGSVGElement as s } from "./index.es66.js";
|
|
2
|
+
import o from "./index.es188.js";
|
|
3
|
+
import a from "./index.es189.js";
|
|
4
|
+
function G(r, l) {
|
|
5
|
+
if (!r || !l)
|
|
6
|
+
return null;
|
|
7
|
+
var t = o(l), n = c(r) ? r.ownerSVGElement : r, i = f(n) ? n.getScreenCTM() : null;
|
|
8
|
+
if (s(n) && i) {
|
|
9
|
+
var e = n.createSVGPoint();
|
|
10
|
+
return e.x = t.x, e.y = t.y, e = e.matrixTransform(i.inverse()), new a({
|
|
11
|
+
x: e.x,
|
|
12
|
+
y: e.y
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var m = r.getBoundingClientRect();
|
|
16
|
+
return new a({
|
|
17
|
+
x: t.x - m.left - r.clientLeft,
|
|
18
|
+
y: t.y - m.top - r.clientTop
|
|
19
|
+
});
|
|
5
20
|
}
|
|
6
21
|
export {
|
|
7
|
-
|
|
22
|
+
G as default
|
|
8
23
|
};
|
|
9
24
|
//# sourceMappingURL=index.es65.js.map
|
package/dist/index.es65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es65.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es65.js","sources":["../../../node_modules/@visx/event/esm/localPointGeneric.js"],"sourcesContent":["import { Point } from '@visx/point';\nimport { isSVGElement, isSVGGraphicsElement, isSVGSVGElement } from './typeGuards';\nimport getXAndYFromEvent from './getXAndYFromEvent';\nexport default function localPoint(node, event) {\n if (!node || !event) return null;\n var coords = getXAndYFromEvent(event);\n\n // find top-most SVG\n var svg = isSVGElement(node) ? node.ownerSVGElement : node;\n var screenCTM = isSVGGraphicsElement(svg) ? svg.getScreenCTM() : null;\n if (isSVGSVGElement(svg) && screenCTM) {\n var point = svg.createSVGPoint();\n point.x = coords.x;\n point.y = coords.y;\n point = point.matrixTransform(screenCTM.inverse());\n return new Point({\n x: point.x,\n y: point.y\n });\n }\n\n // fall back to bounding box\n var rect = node.getBoundingClientRect();\n return new Point({\n x: coords.x - rect.left - node.clientLeft,\n y: coords.y - rect.top - node.clientTop\n });\n}"],"names":["localPoint","node","event","coords","getXAndYFromEvent","svg","isSVGElement","screenCTM","isSVGGraphicsElement","isSVGSVGElement","point","Point","rect"],"mappings":";;;AAGwB,SAAAA,EAAWC,GAAMC,GAAO;AAC1C,MAAA,CAACD,KAAQ,CAACC;AAAc,WAAA;AACxB,MAAAC,IAASC,EAAkBF,CAAK,GAGhCG,IAAMC,EAAaL,CAAI,IAAIA,EAAK,kBAAkBA,GAClDM,IAAYC,EAAqBH,CAAG,IAAIA,EAAI,aAAiB,IAAA;AAC7D,MAAAI,EAAgBJ,CAAG,KAAKE,GAAW;AACjC,QAAAG,IAAQL,EAAI;AAChB,WAAAK,EAAM,IAAIP,EAAO,GACjBO,EAAM,IAAIP,EAAO,GACjBO,IAAQA,EAAM,gBAAgBH,EAAU,QAAS,CAAA,GAC1C,IAAII,EAAM;AAAA,MACf,GAAGD,EAAM;AAAA,MACT,GAAGA,EAAM;AAAA,IAAA,CACV;AAAA,EACH;AAGI,MAAAE,IAAOX,EAAK;AAChB,SAAO,IAAIU,EAAM;AAAA,IACf,GAAGR,EAAO,IAAIS,EAAK,OAAOX,EAAK;AAAA,IAC/B,GAAGE,EAAO,IAAIS,EAAK,MAAMX,EAAK;AAAA,EAAA,CAC/B;AACH;","x_google_ignoreList":[0]}
|
package/dist/index.es66.js
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
function t(n) {
|
|
2
|
+
return !!n && n instanceof Element;
|
|
3
|
+
}
|
|
4
|
+
function i(n) {
|
|
5
|
+
return !!n && (n instanceof SVGElement || "ownerSVGElement" in n);
|
|
6
|
+
}
|
|
7
|
+
function e(n) {
|
|
8
|
+
return !!n && "createSVGPoint" in n;
|
|
9
|
+
}
|
|
10
|
+
function r(n) {
|
|
11
|
+
return !!n && "getScreenCTM" in n;
|
|
12
|
+
}
|
|
13
|
+
function c(n) {
|
|
14
|
+
return !!n && "changedTouches" in n;
|
|
15
|
+
}
|
|
16
|
+
function o(n) {
|
|
17
|
+
return !!n && "clientX" in n;
|
|
18
|
+
}
|
|
19
|
+
function u(n) {
|
|
20
|
+
return !!n && (n instanceof Event || "nativeEvent" in n && n.nativeEvent instanceof Event);
|
|
14
21
|
}
|
|
15
22
|
export {
|
|
16
|
-
|
|
23
|
+
t as isElement,
|
|
24
|
+
u as isEvent,
|
|
25
|
+
o as isMouseEvent,
|
|
26
|
+
i as isSVGElement,
|
|
27
|
+
r as isSVGGraphicsElement,
|
|
28
|
+
e as isSVGSVGElement,
|
|
29
|
+
c as isTouchEvent
|
|
17
30
|
};
|
|
18
31
|
//# sourceMappingURL=index.es66.js.map
|
package/dist/index.es66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es66.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es66.js","sources":["../../../node_modules/@visx/event/esm/typeGuards.js"],"sourcesContent":["export function isElement(elem) {\n return !!elem && elem instanceof Element;\n}\n\n// functional definition of isSVGElement. Note that SVGSVGElements are HTMLElements\nexport function isSVGElement(elem) {\n return !!elem && (elem instanceof SVGElement || 'ownerSVGElement' in elem);\n}\n\n// functional definition of SVGGElement\nexport function isSVGSVGElement(elem) {\n return !!elem && 'createSVGPoint' in elem;\n}\nexport function isSVGGraphicsElement(elem) {\n return !!elem && 'getScreenCTM' in elem;\n}\n\n// functional definition of TouchEvent\nexport function isTouchEvent(event) {\n return !!event && 'changedTouches' in event;\n}\n\n// functional definition of MouseEvent\nexport function isMouseEvent(event) {\n return !!event && 'clientX' in event;\n}\n\n// functional definition of event\nexport function isEvent(event) {\n return !!event && (event instanceof Event || 'nativeEvent' in event && event.nativeEvent instanceof Event);\n}"],"names":["isElement","elem","isSVGElement","isSVGSVGElement","isSVGGraphicsElement","isTouchEvent","event","isMouseEvent","isEvent"],"mappings":"AAAO,SAASA,EAAUC,GAAM;AACvB,SAAA,CAAC,CAACA,KAAQA,aAAgB;AACnC;AAGO,SAASC,EAAaD,GAAM;AACjC,SAAO,CAAC,CAACA,MAASA,aAAgB,cAAc,qBAAqBA;AACvE;AAGO,SAASE,EAAgBF,GAAM;AAC7B,SAAA,CAAC,CAACA,KAAQ,oBAAoBA;AACvC;AACO,SAASG,EAAqBH,GAAM;AAClC,SAAA,CAAC,CAACA,KAAQ,kBAAkBA;AACrC;AAGO,SAASI,EAAaC,GAAO;AAC3B,SAAA,CAAC,CAACA,KAAS,oBAAoBA;AACxC;AAGO,SAASC,EAAaD,GAAO;AAC3B,SAAA,CAAC,CAACA,KAAS,aAAaA;AACjC;AAGO,SAASE,EAAQF,GAAO;AACtB,SAAA,CAAC,CAACA,MAAUA,aAAiB,SAAS,iBAAiBA,KAASA,EAAM,uBAAuB;AACtG;","x_google_ignoreList":[0]}
|
package/dist/index.es67.js
CHANGED
|
@@ -1,13 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as M } from "./index.es190.js";
|
|
2
|
+
import { i as S } from "./index.es195.js";
|
|
3
|
+
import { n as j } from "./index.es196.js";
|
|
4
|
+
import { t as y } from "./index.es197.js";
|
|
5
|
+
var F = S, x = j, I = y, N = "Expected a function", O = Math.max, R = Math.min;
|
|
6
|
+
function A(h, t, a) {
|
|
7
|
+
var o, m, s, u, i, r, f = 0, b = !1, c = !1, d = !0;
|
|
8
|
+
if (typeof h != "function")
|
|
9
|
+
throw new TypeError(N);
|
|
10
|
+
t = I(t) || 0, F(a) && (b = !!a.leading, c = "maxWait" in a, s = c ? O(I(a.maxWait) || 0, t) : s, d = "trailing" in a ? !!a.trailing : d);
|
|
11
|
+
function g(e) {
|
|
12
|
+
var n = o, l = m;
|
|
13
|
+
return o = m = void 0, f = e, u = h.apply(l, n), u;
|
|
14
|
+
}
|
|
15
|
+
function _(e) {
|
|
16
|
+
return f = e, i = setTimeout(v, t), b ? g(e) : u;
|
|
17
|
+
}
|
|
18
|
+
function C(e) {
|
|
19
|
+
var n = e - r, l = e - f, k = t - n;
|
|
20
|
+
return c ? R(k, s - l) : k;
|
|
21
|
+
}
|
|
22
|
+
function E(e) {
|
|
23
|
+
var n = e - r, l = e - f;
|
|
24
|
+
return r === void 0 || n >= t || n < 0 || c && l >= s;
|
|
25
|
+
}
|
|
26
|
+
function v() {
|
|
27
|
+
var e = x();
|
|
28
|
+
if (E(e))
|
|
29
|
+
return p(e);
|
|
30
|
+
i = setTimeout(v, C(e));
|
|
31
|
+
}
|
|
32
|
+
function p(e) {
|
|
33
|
+
return i = void 0, d && o ? g(e) : (o = m = void 0, u);
|
|
34
|
+
}
|
|
35
|
+
function W() {
|
|
36
|
+
i !== void 0 && clearTimeout(i), f = 0, o = r = m = i = void 0;
|
|
37
|
+
}
|
|
38
|
+
function L() {
|
|
39
|
+
return i === void 0 ? u : p(x());
|
|
40
|
+
}
|
|
41
|
+
function T() {
|
|
42
|
+
var e = x(), n = E(e);
|
|
43
|
+
if (o = arguments, m = this, r = e, n) {
|
|
44
|
+
if (i === void 0)
|
|
45
|
+
return _(r);
|
|
46
|
+
if (c)
|
|
47
|
+
return clearTimeout(i), i = setTimeout(v, t), g(r);
|
|
48
|
+
}
|
|
49
|
+
return i === void 0 && (i = setTimeout(v, t)), u;
|
|
50
|
+
}
|
|
51
|
+
return T.cancel = W, T.flush = L, T;
|
|
9
52
|
}
|
|
53
|
+
var D = A;
|
|
54
|
+
const z = /* @__PURE__ */ M(D);
|
|
10
55
|
export {
|
|
11
|
-
|
|
56
|
+
z as default
|
|
12
57
|
};
|
|
13
58
|
//# sourceMappingURL=index.es67.js.map
|
package/dist/index.es67.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es67.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.es67.js","sources":["../../../node_modules/lodash/debounce.js"],"sourcesContent":["var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["isObject","require$$0","now","require$$1","toNumber","require$$2","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1"],"mappings":";;;;AAAA,IAAIA,IAAWC,GACXC,IAAMC,GACNC,IAAWC,GAGXC,IAAkB,uBAGlBC,IAAY,KAAK,KACjBC,IAAY,KAAK;AAwDrB,SAASC,EAASC,GAAMC,GAAMC,GAAS;AACrC,MAAIC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,IAAiB,GACjBC,IAAU,IACVC,IAAS,IACTC,IAAW;AAEX,MAAA,OAAOZ,KAAQ;AACX,UAAA,IAAI,UAAUJ,CAAe;AAE9B,EAAAK,IAAAP,EAASO,CAAI,KAAK,GACrBX,EAASY,CAAO,MACRQ,IAAA,CAAC,CAACR,EAAQ,SACpBS,IAAS,aAAaT,GACZG,IAAAM,IAASd,EAAUH,EAASQ,EAAQ,OAAO,KAAK,GAAGD,CAAI,IAAII,GACrEO,IAAW,cAAcV,IAAU,CAAC,CAACA,EAAQ,WAAWU;AAG1D,WAASC,EAAWC,GAAM;AACpB,QAAAC,IAAOZ,GACPa,IAAUZ;AAEd,WAAAD,IAAWC,IAAW,QACLK,IAAAK,GACRR,IAAAN,EAAK,MAAMgB,GAASD,CAAI,GAC1BT;AAAA,EACT;AAEA,WAASW,EAAYH,GAAM;AAER,WAAAL,IAAAK,GAEPP,IAAA,WAAWW,GAAcjB,CAAI,GAEhCS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GACnBE,EAAU,QAAQD,GACXC;AACT;AAEA,IAAAE,IAAiB9B;;","x_google_ignoreList":[0]}
|
package/dist/index.es68.js
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ResizeObserverController as t } from "./index.es245.js";
|
|
2
|
+
import { isElement as o } from "./index.es246.js";
|
|
3
|
+
var u = function() {
|
|
4
|
+
function r(e) {
|
|
5
|
+
if (arguments.length === 0)
|
|
6
|
+
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
7
|
+
if (typeof e != "function")
|
|
8
|
+
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
9
|
+
t.connect(this, e);
|
|
10
|
+
}
|
|
11
|
+
return r.prototype.observe = function(e, n) {
|
|
12
|
+
if (arguments.length === 0)
|
|
13
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
14
|
+
if (!o(e))
|
|
15
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
16
|
+
t.observe(this, e, n);
|
|
17
|
+
}, r.prototype.unobserve = function(e) {
|
|
18
|
+
if (arguments.length === 0)
|
|
19
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
20
|
+
if (!o(e))
|
|
21
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
22
|
+
t.unobserve(this, e);
|
|
23
|
+
}, r.prototype.disconnect = function() {
|
|
24
|
+
t.disconnect(this);
|
|
25
|
+
}, r.toString = function() {
|
|
26
|
+
return "function ResizeObserver () { [polyfill code] }";
|
|
27
|
+
}, r;
|
|
28
|
+
}();
|
|
6
29
|
export {
|
|
7
|
-
|
|
30
|
+
u as ResizeObserver
|
|
8
31
|
};
|
|
9
32
|
//# sourceMappingURL=index.es68.js.map
|
package/dist/index.es68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es68.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es68.js","sources":["../../../node_modules/@juggle/resize-observer/lib/ResizeObserver.js"],"sourcesContent":["import { ResizeObserverController } from './ResizeObserverController';\nimport { isElement } from './utils/element';\nvar ResizeObserver = (function () {\n function ResizeObserver(callback) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (typeof callback !== 'function') {\n throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");\n }\n ResizeObserverController.connect(this, callback);\n }\n ResizeObserver.prototype.observe = function (target, options) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.observe(this, target, options);\n };\n ResizeObserver.prototype.unobserve = function (target) {\n if (arguments.length === 0) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");\n }\n if (!isElement(target)) {\n throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");\n }\n ResizeObserverController.unobserve(this, target);\n };\n ResizeObserver.prototype.disconnect = function () {\n ResizeObserverController.disconnect(this);\n };\n ResizeObserver.toString = function () {\n return 'function ResizeObserver () { [polyfill code] }';\n };\n return ResizeObserver;\n}());\nexport { ResizeObserver };\n"],"names":["ResizeObserver","callback","ResizeObserverController","target","options","isElement"],"mappings":";;AAEA,IAAIA,IAAkB,WAAY;AAC9B,WAASA,EAAeC,GAAU;AAC1B,QAAA,UAAU,WAAW;AACf,YAAA,IAAI,UAAU,gFAAgF;AAEpG,QAAA,OAAOA,KAAa;AACd,YAAA,IAAI,UAAU,+FAA+F;AAE9F,IAAAC,EAAA,QAAQ,MAAMD,CAAQ;AAAA,EACnD;AACAD,SAAAA,EAAe,UAAU,UAAU,SAAUG,GAAQC,GAAS;AACtD,QAAA,UAAU,WAAW;AACf,YAAA,IAAI,UAAU,2FAA2F;AAE/G,QAAA,CAACC,EAAUF,CAAM;AACX,YAAA,IAAI,UAAU,sFAAsF;AAErF,IAAAD,EAAA,QAAQ,MAAMC,GAAQC,CAAO;AAAA,EAAA,GAE1DJ,EAAe,UAAU,YAAY,SAAUG,GAAQ;AAC/C,QAAA,UAAU,WAAW;AACf,YAAA,IAAI,UAAU,6FAA6F;AAEjH,QAAA,CAACE,EAAUF,CAAM;AACX,YAAA,IAAI,UAAU,wFAAwF;AAEvF,IAAAD,EAAA,UAAU,MAAMC,CAAM;AAAA,EAAA,GAEnDH,EAAe,UAAU,aAAa,WAAY;AAC9C,IAAAE,EAAyB,WAAW,IAAI;AAAA,EAAA,GAE5CF,EAAe,WAAW,WAAY;AAC3B,WAAA;AAAA,EAAA,GAEJA;AACX,EAAE;","x_google_ignoreList":[0]}
|
package/dist/index.es69.js
CHANGED
|
@@ -1,13 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { ResizeObserverBoxOptions as z } from "./index.es269.js";
|
|
2
|
+
import { ResizeObserverSize as X } from "./index.es249.js";
|
|
3
|
+
import { DOMRectReadOnly as P } from "./index.es270.js";
|
|
4
|
+
import { isHidden as A, isSVG as I } from "./index.es246.js";
|
|
5
|
+
import { freeze as O } from "./index.es248.js";
|
|
6
|
+
import { global as R } from "./index.es271.js";
|
|
7
|
+
var l = /* @__PURE__ */ new WeakMap(), S = /auto|scroll/, G = /^tb|vertical/, N = /msie|trident/i.test(R.navigator && R.navigator.userAgent), i = function(e) {
|
|
8
|
+
return parseFloat(e || "0");
|
|
9
|
+
}, a = function(e, t, r) {
|
|
10
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = !1), new X((r ? t : e) || 0, (r ? e : t) || 0);
|
|
11
|
+
}, w = O({
|
|
12
|
+
devicePixelContentBoxSize: a(),
|
|
13
|
+
borderBoxSize: a(),
|
|
14
|
+
contentBoxSize: a(),
|
|
15
|
+
contentRect: new P(0, 0, 0, 0)
|
|
16
|
+
}), F = function(e, t) {
|
|
17
|
+
if (t === void 0 && (t = !1), l.has(e) && !t)
|
|
18
|
+
return l.get(e);
|
|
19
|
+
if (A(e))
|
|
20
|
+
return l.set(e, w), w;
|
|
21
|
+
var r = getComputedStyle(e), o = I(e) && e.ownerSVGElement && e.getBBox(), d = !N && r.boxSizing === "border-box", n = G.test(r.writingMode || ""), s = !o && S.test(r.overflowY || ""), W = !o && S.test(r.overflowX || ""), B = o ? 0 : i(r.paddingTop), T = o ? 0 : i(r.paddingRight), C = o ? 0 : i(r.paddingBottom), f = o ? 0 : i(r.paddingLeft), E = o ? 0 : i(r.borderTopWidth), H = o ? 0 : i(r.borderRightWidth), L = o ? 0 : i(r.borderBottomWidth), M = o ? 0 : i(r.borderLeftWidth), p = f + T, g = B + C, h = M + H, x = E + L, b = W ? e.offsetHeight - x - e.clientHeight : 0, m = s ? e.offsetWidth - h - e.clientWidth : 0, _ = d ? p + h : 0, y = d ? g + x : 0, v = o ? o.width : i(r.width) - _ - m, c = o ? o.height : i(r.height) - y - b, D = v + p + m + h, V = c + g + b + x, u = O({
|
|
22
|
+
devicePixelContentBoxSize: a(Math.round(v * devicePixelRatio), Math.round(c * devicePixelRatio), n),
|
|
23
|
+
borderBoxSize: a(D, V, n),
|
|
24
|
+
contentBoxSize: a(v, c, n),
|
|
25
|
+
contentRect: new P(f, B, v, c)
|
|
26
|
+
});
|
|
27
|
+
return l.set(e, u), u;
|
|
28
|
+
}, Q = function(e, t, r) {
|
|
29
|
+
var o = F(e, r), d = o.borderBoxSize, n = o.contentBoxSize, s = o.devicePixelContentBoxSize;
|
|
30
|
+
switch (t) {
|
|
31
|
+
case z.DEVICE_PIXEL_CONTENT_BOX:
|
|
32
|
+
return s;
|
|
33
|
+
case z.BORDER_BOX:
|
|
34
|
+
return d;
|
|
35
|
+
default:
|
|
36
|
+
return n;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
10
39
|
export {
|
|
11
|
-
|
|
40
|
+
Q as calculateBoxSize,
|
|
41
|
+
F as calculateBoxSizes
|
|
12
42
|
};
|
|
13
43
|
//# sourceMappingURL=index.es69.js.map
|
package/dist/index.es69.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es69.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es69.js","sources":["../../../node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js"],"sourcesContent":["import { ResizeObserverBoxOptions } from '../ResizeObserverBoxOptions';\nimport { ResizeObserverSize } from '../ResizeObserverSize';\nimport { DOMRectReadOnly } from '../DOMRectReadOnly';\nimport { isSVG, isHidden } from '../utils/element';\nimport { freeze } from '../utils/freeze';\nimport { global } from '../utils/global';\nvar cache = new WeakMap();\nvar scrollRegexp = /auto|scroll/;\nvar verticalRegexp = /^tb|vertical/;\nvar IE = (/msie|trident/i).test(global.navigator && global.navigator.userAgent);\nvar parseDimension = function (pixel) { return parseFloat(pixel || '0'); };\nvar size = function (inlineSize, blockSize, switchSizes) {\n if (inlineSize === void 0) { inlineSize = 0; }\n if (blockSize === void 0) { blockSize = 0; }\n if (switchSizes === void 0) { switchSizes = false; }\n return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);\n};\nvar zeroBoxes = freeze({\n devicePixelContentBoxSize: size(),\n borderBoxSize: size(),\n contentBoxSize: size(),\n contentRect: new DOMRectReadOnly(0, 0, 0, 0)\n});\nvar calculateBoxSizes = function (target, forceRecalculation) {\n if (forceRecalculation === void 0) { forceRecalculation = false; }\n if (cache.has(target) && !forceRecalculation) {\n return cache.get(target);\n }\n if (isHidden(target)) {\n cache.set(target, zeroBoxes);\n return zeroBoxes;\n }\n var cs = getComputedStyle(target);\n var svg = isSVG(target) && target.ownerSVGElement && target.getBBox();\n var removePadding = !IE && cs.boxSizing === 'border-box';\n var switchSizes = verticalRegexp.test(cs.writingMode || '');\n var canScrollVertically = !svg && scrollRegexp.test(cs.overflowY || '');\n var canScrollHorizontally = !svg && scrollRegexp.test(cs.overflowX || '');\n var paddingTop = svg ? 0 : parseDimension(cs.paddingTop);\n var paddingRight = svg ? 0 : parseDimension(cs.paddingRight);\n var paddingBottom = svg ? 0 : parseDimension(cs.paddingBottom);\n var paddingLeft = svg ? 0 : parseDimension(cs.paddingLeft);\n var borderTop = svg ? 0 : parseDimension(cs.borderTopWidth);\n var borderRight = svg ? 0 : parseDimension(cs.borderRightWidth);\n var borderBottom = svg ? 0 : parseDimension(cs.borderBottomWidth);\n var borderLeft = svg ? 0 : parseDimension(cs.borderLeftWidth);\n var horizontalPadding = paddingLeft + paddingRight;\n var verticalPadding = paddingTop + paddingBottom;\n var horizontalBorderArea = borderLeft + borderRight;\n var verticalBorderArea = borderTop + borderBottom;\n var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;\n var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;\n var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;\n var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;\n var contentWidth = svg ? svg.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;\n var contentHeight = svg ? svg.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;\n var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;\n var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;\n var boxes = freeze({\n devicePixelContentBoxSize: size(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),\n borderBoxSize: size(borderBoxWidth, borderBoxHeight, switchSizes),\n contentBoxSize: size(contentWidth, contentHeight, switchSizes),\n contentRect: new DOMRectReadOnly(paddingLeft, paddingTop, contentWidth, contentHeight)\n });\n cache.set(target, boxes);\n return boxes;\n};\nvar calculateBoxSize = function (target, observedBox, forceRecalculation) {\n var _a = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a.borderBoxSize, contentBoxSize = _a.contentBoxSize, devicePixelContentBoxSize = _a.devicePixelContentBoxSize;\n switch (observedBox) {\n case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:\n return devicePixelContentBoxSize;\n case ResizeObserverBoxOptions.BORDER_BOX:\n return borderBoxSize;\n default:\n return contentBoxSize;\n }\n};\nexport { calculateBoxSize, calculateBoxSizes };\n"],"names":["cache","scrollRegexp","verticalRegexp","IE","global","parseDimension","pixel","size","inlineSize","blockSize","switchSizes","ResizeObserverSize","zeroBoxes","freeze","DOMRectReadOnly","calculateBoxSizes","target","forceRecalculation","isHidden","cs","svg","isSVG","removePadding","canScrollVertically","canScrollHorizontally","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderRight","borderBottom","borderLeft","horizontalPadding","verticalPadding","horizontalBorderArea","verticalBorderArea","horizontalScrollbarThickness","verticalScrollbarThickness","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","calculateBoxSize","observedBox","_a","borderBoxSize","contentBoxSize","devicePixelContentBoxSize","ResizeObserverBoxOptions"],"mappings":";;;;;;AAMA,IAAIA,wBAAY,WACZC,IAAe,eACfC,IAAiB,gBACjBC,IAAM,gBAAiB,KAAKC,EAAO,aAAaA,EAAO,UAAU,SAAS,GAC1EC,IAAiB,SAAUC,GAAO;AAAS,SAAA,WAAWA,KAAS,GAAG;AAAG,GACrEC,IAAO,SAAUC,GAAYC,GAAWC,GA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ist/index.es70.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
1
|
+
function o(e) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4
|
+
return typeof t;
|
|
5
|
+
} : function(t) {
|
|
6
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
7
|
+
}, o(e);
|
|
7
8
|
}
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
o as default
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=index.es70.js.map
|
package/dist/index.es70.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es70.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/
|
|
1
|
+
{"version":3,"file":"index.es70.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/typeof.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}"],"names":["_typeof","o"],"mappings":"AAAA,SAAwBA,EAAQC,GAAG;AACjC;AAEO,SAAAD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAChG,WAAO,OAAOA;AAAAA,EAChB,IAAI,SAAUA,GAAG;AACRA,WAAAA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAAA,EAAA,GACjHD,EAAQC,CAAC;AACd;","x_google_ignoreList":[0]}
|
package/dist/index.es71.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function G(r, l) {
|
|
5
|
-
if (!r || !l)
|
|
6
|
-
return null;
|
|
7
|
-
var t = o(l), n = c(r) ? r.ownerSVGElement : r, i = f(n) ? n.getScreenCTM() : null;
|
|
8
|
-
if (s(n) && i) {
|
|
9
|
-
var e = n.createSVGPoint();
|
|
10
|
-
return e.x = t.x, e.y = t.y, e = e.matrixTransform(i.inverse()), new a({
|
|
11
|
-
x: e.x,
|
|
12
|
-
y: e.y
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
var m = r.getBoundingClientRect();
|
|
16
|
-
return new a({
|
|
17
|
-
x: t.x - m.left - r.clientLeft,
|
|
18
|
-
y: t.y - m.top - r.clientTop
|
|
19
|
-
});
|
|
1
|
+
function c(a, n) {
|
|
2
|
+
if (!(a instanceof n))
|
|
3
|
+
throw new TypeError("Cannot call a class as a function");
|
|
20
4
|
}
|
|
21
5
|
export {
|
|
22
|
-
|
|
6
|
+
c as default
|
|
23
7
|
};
|
|
24
8
|
//# sourceMappingURL=index.es71.js.map
|
package/dist/index.es71.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es71.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es71.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js"],"sourcesContent":["export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}"],"names":["_classCallCheck","instance","Constructor"],"mappings":"AAAwB,SAAAA,EAAgBC,GAAUC,GAAa;AACzD,MAAA,EAAED,aAAoBC;AAClB,UAAA,IAAI,UAAU,mCAAmC;AAE3D;","x_google_ignoreList":[0]}
|
package/dist/index.es72.js
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import t from "./index.es239.js";
|
|
2
|
+
function n(f, l) {
|
|
3
|
+
for (var a = 0; a < l.length; a++) {
|
|
4
|
+
var e = l[a];
|
|
5
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(f, t(e.key), e);
|
|
6
|
+
}
|
|
3
7
|
}
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return !!n && "createSVGPoint" in n;
|
|
9
|
-
}
|
|
10
|
-
function r(n) {
|
|
11
|
-
return !!n && "getScreenCTM" in n;
|
|
12
|
-
}
|
|
13
|
-
function c(n) {
|
|
14
|
-
return !!n && "changedTouches" in n;
|
|
15
|
-
}
|
|
16
|
-
function o(n) {
|
|
17
|
-
return !!n && "clientX" in n;
|
|
18
|
-
}
|
|
19
|
-
function u(n) {
|
|
20
|
-
return !!n && (n instanceof Event || "nativeEvent" in n && n.nativeEvent instanceof Event);
|
|
8
|
+
function u(f, l, a) {
|
|
9
|
+
return l && n(f.prototype, l), a && n(f, a), Object.defineProperty(f, "prototype", {
|
|
10
|
+
writable: !1
|
|
11
|
+
}), f;
|
|
21
12
|
}
|
|
22
13
|
export {
|
|
23
|
-
|
|
24
|
-
u as isEvent,
|
|
25
|
-
o as isMouseEvent,
|
|
26
|
-
i as isSVGElement,
|
|
27
|
-
r as isSVGGraphicsElement,
|
|
28
|
-
e as isSVGSVGElement,
|
|
29
|
-
c as isTouchEvent
|
|
14
|
+
u as default
|
|
30
15
|
};
|
|
31
16
|
//# sourceMappingURL=index.es72.js.map
|
package/dist/index.es72.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es72.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es72.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/createClass.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}"],"names":["_defineProperties","target","props","i","descriptor","toPropertyKey","_createClass","Constructor","protoProps","staticProps"],"mappings":";AACA,SAASA,EAAkBC,GAAQC,GAAO;AACxC,WAASC,IAAI,GAAGA,IAAID,EAAM,QAAQC,KAAK;AACjC,QAAAC,IAAaF,EAAMC,CAAC;AACb,IAAAC,EAAA,aAAaA,EAAW,cAAc,IACjDA,EAAW,eAAe,IACtB,WAAWA,MAAYA,EAAW,WAAW,KACjD,OAAO,eAAeH,GAAQI,EAAcD,EAAW,GAAG,GAAGA,CAAU;AAAA,EACzE;AACF;AACwB,SAAAE,EAAaC,GAAaC,GAAYC,GAAa;AACrE,SAAAD,KAA8BR,EAAAO,EAAY,WAAWC,CAAU,GAC/DC,KAAaT,EAAkBO,GAAaE,CAAW,GACpD,OAAA,eAAeF,GAAa,aAAa;AAAA,IAC9C,UAAU;AAAA,EAAA,CACX,GACMA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es73.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7
|
-
var s = o(), i = !0;
|
|
8
|
-
r.exports = t()(s.isElement, i);
|
|
9
|
-
} else
|
|
10
|
-
r.exports = p()();
|
|
11
|
-
var m = r.exports;
|
|
12
|
-
const q = /* @__PURE__ */ e(m);
|
|
1
|
+
function i(e) {
|
|
2
|
+
if (e === void 0)
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
13
6
|
export {
|
|
14
|
-
|
|
7
|
+
i as default
|
|
15
8
|
};
|
|
16
9
|
//# sourceMappingURL=index.es73.js.map
|
package/dist/index.es73.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es73.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index.es73.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"],"sourcesContent":["export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}"],"names":["_assertThisInitialized","self"],"mappings":"AAAA,SAAwBA,EAAuBC,GAAM;AACnD,MAAIA,MAAS;AACL,UAAA,IAAI,eAAe,2DAA2D;AAE/E,SAAAA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es74.js
CHANGED
|
@@ -1,36 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
nativeHandlers: i,
|
|
15
|
-
config: c
|
|
16
|
-
} = a(o, t || {});
|
|
17
|
-
return v(e, c, void 0, i);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function M(r, n) {
|
|
21
|
-
return A([l, p, d, m, g, h])(r, n || {});
|
|
1
|
+
import o from "./index.es240.js";
|
|
2
|
+
function i(e, t) {
|
|
3
|
+
if (typeof t != "function" && t !== null)
|
|
4
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
5
|
+
e.prototype = Object.create(t && t.prototype, {
|
|
6
|
+
constructor: {
|
|
7
|
+
value: e,
|
|
8
|
+
writable: !0,
|
|
9
|
+
configurable: !0
|
|
10
|
+
}
|
|
11
|
+
}), Object.defineProperty(e, "prototype", {
|
|
12
|
+
writable: !1
|
|
13
|
+
}), t && o(e, t);
|
|
22
14
|
}
|
|
23
15
|
export {
|
|
24
|
-
|
|
25
|
-
R as EngineMap,
|
|
26
|
-
A as createUseGesture,
|
|
27
|
-
l as dragAction,
|
|
28
|
-
h as hoverAction,
|
|
29
|
-
g as moveAction,
|
|
30
|
-
p as pinchAction,
|
|
31
|
-
u as registerAction,
|
|
32
|
-
d as scrollAction,
|
|
33
|
-
M as useGesture,
|
|
34
|
-
m as wheelAction
|
|
16
|
+
i as default
|
|
35
17
|
};
|
|
36
18
|
//# sourceMappingURL=index.es74.js.map
|
package/dist/index.es74.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es74.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index.es74.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/inherits.js"],"sourcesContent":["import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}"],"names":["_inherits","subClass","superClass","setPrototypeOf"],"mappings":";AACwB,SAAAA,EAAUC,GAAUC,GAAY;AACtD,MAAI,OAAOA,KAAe,cAAcA,MAAe;AAC/C,UAAA,IAAI,UAAU,oDAAoD;AAE1E,EAAAD,EAAS,YAAY,OAAO,OAAOC,KAAcA,EAAW,WAAW;AAAA,IACrE,aAAa;AAAA,MACX,OAAOD;AAAA,MACP,UAAU;AAAA,MACV,cAAc;AAAA,IAChB;AAAA,EAAA,CACD,GACM,OAAA,eAAeA,GAAU,aAAa;AAAA,IAC3C,UAAU;AAAA,EAAA,CACX,GACGC,KAAYC,EAAeF,GAAUC,CAAU;AACrD;","x_google_ignoreList":[0]}
|