@carbon/charts 1.14.1 → 1.14.3
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/CHANGELOG.md +22 -0
- package/dist/{_baseEach-Tuo5VKyb.mjs → _baseEach-HjwFcKjQ.mjs} +2 -2
- package/dist/{_baseEach-Tuo5VKyb.mjs.map → _baseEach-HjwFcKjQ.mjs.map} +1 -1
- package/dist/{angle-utils-TiBqrqG3.mjs → angle-utils-rnwiyNO5.mjs} +2 -2
- package/dist/{angle-utils-TiBqrqG3.mjs.map → angle-utils-rnwiyNO5.mjs.map} +1 -1
- package/dist/{choropleth-15KLXN_n.mjs → choropleth-8ZwwWcHd.mjs} +154 -156
- package/dist/choropleth-8ZwwWcHd.mjs.map +1 -0
- package/dist/{color-scale-utils-BosGSMyP.mjs → color-scale-utils-TUTedgAJ.mjs} +2 -2
- package/dist/color-scale-utils-TUTedgAJ.mjs.map +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +4 -4
- package/dist/demo/styles.css +1 -2
- package/dist/demo/styles.css.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/model/index.mjs +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +1 -2
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.js +3 -3
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-md0zt8mQ.mjs → wordcloud-83FL_PLL.mjs} +3 -3
- package/dist/{wordcloud-md0zt8mQ.mjs.map → wordcloud-83FL_PLL.mjs.map} +1 -1
- package/dist/{zoom-fcgdMMZo.mjs → zoom-yHLHYPra.mjs} +3 -3
- package/dist/{zoom-fcgdMMZo.mjs.map → zoom-yHLHYPra.mjs.map} +1 -1
- package/package.json +2 -2
- package/scss/_chart-holder.scss +1 -2
- package/styles.css +1 -2
- package/styles.min.css +1 -1
- package/dist/choropleth-15KLXN_n.mjs.map +0 -1
- package/dist/color-scale-utils-BosGSMyP.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as Ys, h as
|
|
2
|
-
import { select as x, pointer as Ft, brushX as Qs, scaleTime as Ja, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ea, axisTop as Qa, axisRight as ei, scaleLinear as Ze, arc as xt, easeLinear as ti, path as
|
|
3
|
-
import { t as en, D as S, c as vn, G as ms, a as Si, p as oe, r as fs, b as Oi } from "./angle-utils-
|
|
4
|
-
import { y as W, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as F, s as We, V as lt, S as ue, e as
|
|
1
|
+
import { L as Ys, h as Ba, o as qs, a4 as Ha, p as Ks, B as $a, a5 as Ua, a6 as za, a7 as Fa, m as v, n as Me, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as we, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as Re, aa as bt, ab as Ve, Q as Be, X as Ge, ac as Xa, J as ot, i as Za, Z as te, S as Ae, ad as ye, ae as Ya, a as qa, Y as pe, U as ft, C as wt, af as Qt, v as Ka, ag as ps, _ as Fe } from "./color-scale-utils-TUTedgAJ.mjs";
|
|
2
|
+
import { select as x, pointer as Ft, brushX as Qs, scaleTime as Ja, extent as Wt, area as Nn, line as Pn, axisBottom as Vn, axisLeft as ea, axisTop as Qa, axisRight as ei, scaleLinear as Ze, arc as xt, easeLinear as ti, path as Gn, interpolateNumber as ta, quantize as ni, scaleBand as Bn, hierarchy as Hn, pack as si, pie as ai, interpolate as ii, interpolateRound as ri, min as fn, max as gs, lineRadial as oi, curveLinearClosed as li, cluster as ci, tree as di, linkHorizontal as hi, treemap as ui, hsl as na, color as sa, geoPath as pi, geoNaturalEarth1 as gi, geoMercator as mi, geoEquirectangular as fi, geoConicEquidistant as vi, geoConicEqualArea as yi, geoAlbers as Ei, geoEqualEarth as bi } from "d3";
|
|
3
|
+
import { t as en, D as S, c as vn, G as ms, a as Si, p as oe, r as fs, b as Oi } from "./angle-utils-rnwiyNO5.mjs";
|
|
4
|
+
import { y as W, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as F, s as We, V as lt, S as ue, e as G, Z as nt, i as xe, f as vs, J as tn, d as Ti, F as Mt, n as nn, H as sn, C as an, p as Ct, b as ys, D as rn, Q as Li, x as je, $ as _t, N as on } from "./enums-lWSDG4ik.mjs";
|
|
5
5
|
import { sankey as Ai, sankeyLinkHorizontal as wi, sankeyJustify as Mi, sankeyLeft as Ci, sankeyRight as _i } from "d3-sankey";
|
|
6
6
|
import { R as X } from "./a11y-SOU26cr5.mjs";
|
|
7
|
-
import { b as aa } from "./_baseEach-
|
|
7
|
+
import { b as aa } from "./_baseEach-HjwFcKjQ.mjs";
|
|
8
8
|
import Ii from "d3-cloud";
|
|
9
9
|
function Ri(o, e, t, n) {
|
|
10
10
|
var s = -1, a = o == null ? 0 : o.length;
|
|
@@ -212,7 +212,7 @@ var Di = {
|
|
|
212
212
|
ſ: "s"
|
|
213
213
|
}, Ni = ki(Di);
|
|
214
214
|
const Pi = Ni;
|
|
215
|
-
var Vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
|
|
215
|
+
var Vi = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Gi = "\\u0300-\\u036f", Bi = "\\ufe20-\\ufe2f", Hi = "\\u20d0-\\u20ff", $i = Gi + Bi + Hi, Ui = "[" + $i + "]", zi = RegExp(Ui, "g");
|
|
216
216
|
function Fi(o) {
|
|
217
217
|
return o = Ys(o), o && o.replace(Vi, Pi).replace(zi, "");
|
|
218
218
|
}
|
|
@@ -253,7 +253,7 @@ function ya(o, e, t) {
|
|
|
253
253
|
return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = en(t), t = t === t ? t : 0), e !== void 0 && (e = en(e), e = e === e ? e : 0), Or(en(o), e, t);
|
|
254
254
|
}
|
|
255
255
|
function xr(o, e) {
|
|
256
|
-
var t = -1, n =
|
|
256
|
+
var t = -1, n = Ba(o) ? Array(o.length) : [];
|
|
257
257
|
return aa(o, function(s, a, i) {
|
|
258
258
|
n[++t] = e(s, a, i);
|
|
259
259
|
}), n;
|
|
@@ -434,7 +434,7 @@ function Rt(o, e) {
|
|
|
434
434
|
}
|
|
435
435
|
return t;
|
|
436
436
|
}
|
|
437
|
-
const Ls = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Vr = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]),
|
|
437
|
+
const Ls = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cn = Ee(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ee(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Vr = Ee(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hn = Ee(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), ws = Ee(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), un = Ee(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ms = Ee(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), kt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = ke(/<%[\w\W]*|[\w\W]*%>/gm), $r = ke(/\${[\w\W]*}/gm), Ur = ke(/^data-[\-\w.\u00B7-\uFFFF]/), zr = ke(/^aria-[\-\w]+$/), Oa = ke(
|
|
438
438
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
439
439
|
// eslint-disable-line no-useless-escape
|
|
440
440
|
), Fr = ke(/^(?:\w+script|data):/i), Wr = ke(
|
|
@@ -443,7 +443,7 @@ const Ls = Ee(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
443
443
|
), xa = ke(/^html$/i);
|
|
444
444
|
var Cs = /* @__PURE__ */ Object.freeze({
|
|
445
445
|
__proto__: null,
|
|
446
|
-
MUSTACHE_EXPR:
|
|
446
|
+
MUSTACHE_EXPR: Br,
|
|
447
447
|
ERB_EXPR: Hr,
|
|
448
448
|
TMPLIT_EXPR: $r,
|
|
449
449
|
DATA_ATTR: Ur,
|
|
@@ -586,14 +586,14 @@ function Ta() {
|
|
|
586
586
|
y === void 0 && (y = Xr(u, s)), y !== null && typeof A == "string" && (A = y.createHTML(""));
|
|
587
587
|
Ee && Ee(b), et = b;
|
|
588
588
|
}
|
|
589
|
-
}, Qn = Y({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Y({}, ["foreignobject", "desc", "title", "annotation-xml"]), Na = Y({}, ["title", "style", "font", "a", "script"]), ts = Y({}, [...cn, ...dn, ...Vr]), ns = Y({}, [...hn, ...
|
|
589
|
+
}, Qn = Y({}, ["mi", "mo", "mn", "ms", "mtext"]), es = Y({}, ["foreignobject", "desc", "title", "annotation-xml"]), Na = Y({}, ["title", "style", "font", "a", "script"]), ts = Y({}, [...cn, ...dn, ...Vr]), ns = Y({}, [...hn, ...Gr]), Pa = function(b) {
|
|
590
590
|
let R = T(b);
|
|
591
591
|
(!R || !R.tagName) && (R = {
|
|
592
592
|
namespaceURI: Qe,
|
|
593
593
|
tagName: "template"
|
|
594
594
|
});
|
|
595
|
-
const
|
|
596
|
-
return qt[b.namespaceURI] ? b.namespaceURI === At ? R.namespaceURI === Ne ?
|
|
595
|
+
const B = Nt(b.tagName), ee = Nt(R.tagName);
|
|
596
|
+
return qt[b.namespaceURI] ? b.namespaceURI === At ? R.namespaceURI === Ne ? B === "svg" : R.namespaceURI === Lt ? B === "svg" && (ee === "annotation-xml" || Qn[ee]) : !!ts[B] : b.namespaceURI === Lt ? R.namespaceURI === Ne ? B === "math" : R.namespaceURI === At ? B === "math" && es[ee] : !!ns[B] : b.namespaceURI === Ne ? R.namespaceURI === At && !es[ee] || R.namespaceURI === Lt && !Qn[ee] ? !1 : !ns[B] && (Na[B] || !ts[B]) : !!(gt === "application/xhtml+xml" && qt[b.namespaceURI]) : !1;
|
|
597
597
|
}, Ue = function(b) {
|
|
598
598
|
vt(e.removed, {
|
|
599
599
|
element: b
|
|
@@ -627,12 +627,12 @@ function Ta() {
|
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
}, ss = function(b) {
|
|
630
|
-
let R = null,
|
|
630
|
+
let R = null, B = null;
|
|
631
631
|
if (N)
|
|
632
632
|
b = "<remove></remove>" + b;
|
|
633
633
|
else {
|
|
634
634
|
const ve = Rr(b, /^[\r\n\t ]+/);
|
|
635
|
-
|
|
635
|
+
B = ve && ve[0];
|
|
636
636
|
}
|
|
637
637
|
gt === "application/xhtml+xml" && Qe === Ne && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
638
638
|
const ee = y ? y.createHTML(b) : b;
|
|
@@ -649,7 +649,7 @@ function Ta() {
|
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
const fe = R.body || R.documentElement;
|
|
652
|
-
return b &&
|
|
652
|
+
return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? D.call(R, Te ? "html" : "body")[0] : Te ? R.documentElement : fe;
|
|
653
653
|
}, as = function(b) {
|
|
654
654
|
return L.call(
|
|
655
655
|
b.ownerDocument || b,
|
|
@@ -662,24 +662,24 @@ function Ta() {
|
|
|
662
662
|
return b instanceof p && (typeof b.nodeName != "string" || typeof b.textContent != "string" || typeof b.removeChild != "function" || !(b.attributes instanceof d) || typeof b.removeAttribute != "function" || typeof b.setAttribute != "function" || typeof b.namespaceURI != "string" || typeof b.insertBefore != "function" || typeof b.hasChildNodes != "function");
|
|
663
663
|
}, is = function(b) {
|
|
664
664
|
return typeof r == "function" && b instanceof r;
|
|
665
|
-
}, Pe = function(b, R,
|
|
665
|
+
}, Pe = function(b, R, B) {
|
|
666
666
|
k[b] && It(k[b], (ee) => {
|
|
667
|
-
ee.call(e, R,
|
|
667
|
+
ee.call(e, R, B, et);
|
|
668
668
|
});
|
|
669
669
|
}, rs = function(b) {
|
|
670
670
|
let R = null;
|
|
671
671
|
if (Pe("beforeSanitizeElements", b, null), Va(b))
|
|
672
672
|
return Ue(b), !0;
|
|
673
|
-
const
|
|
673
|
+
const B = he(b.nodeName);
|
|
674
674
|
if (Pe("uponSanitizeElement", b, {
|
|
675
|
-
tagName:
|
|
675
|
+
tagName: B,
|
|
676
676
|
allowedTags: Z
|
|
677
677
|
}), b.hasChildNodes() && !is(b.firstElementChild) && Oe(/<[/\w]/g, b.innerHTML) && Oe(/<[/\w]/g, b.textContent))
|
|
678
678
|
return Ue(b), !0;
|
|
679
|
-
if (!Z[
|
|
680
|
-
if (!Ie[
|
|
679
|
+
if (!Z[B] || Ie[B]) {
|
|
680
|
+
if (!Ie[B] && ls(B) && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, B) || se.tagNameCheck instanceof Function && se.tagNameCheck(B)))
|
|
681
681
|
return !1;
|
|
682
|
-
if (Xt && !Je[
|
|
682
|
+
if (Xt && !Je[B]) {
|
|
683
683
|
const ee = T(b) || b.parentNode, fe = O(b) || b.childNodes;
|
|
684
684
|
if (fe && ee) {
|
|
685
685
|
const ve = fe.length;
|
|
@@ -689,13 +689,13 @@ function Ta() {
|
|
|
689
689
|
}
|
|
690
690
|
return Ue(b), !0;
|
|
691
691
|
}
|
|
692
|
-
return b instanceof l && !Pa(b) || (
|
|
692
|
+
return b instanceof l && !Pa(b) || (B === "noscript" || B === "noembed" || B === "noframes") && Oe(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Ue(b), !0) : (ce && b.nodeType === 3 && (R = b.textContent, It([C, V, z], (ee) => {
|
|
693
693
|
R = yt(R, ee, " ");
|
|
694
694
|
}), b.textContent !== R && (vt(e.removed, {
|
|
695
695
|
element: b.cloneNode()
|
|
696
696
|
}), b.textContent = R)), Pe("afterSanitizeElements", b, null), !1);
|
|
697
|
-
}, os = function(b, R,
|
|
698
|
-
if (jn && (R === "id" || R === "name") && (
|
|
697
|
+
}, os = function(b, R, B) {
|
|
698
|
+
if (jn && (R === "id" || R === "name") && (B in t || B in Da))
|
|
699
699
|
return !1;
|
|
700
700
|
if (!(J && !qe[R] && Oe(M, R))) {
|
|
701
701
|
if (!(U && Oe(Q, R))) {
|
|
@@ -706,14 +706,14 @@ function Ta() {
|
|
|
706
706
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
707
707
|
!(ls(b) && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, b) || se.tagNameCheck instanceof Function && se.tagNameCheck(b)) && (se.attributeNameCheck instanceof RegExp && Oe(se.attributeNameCheck, R) || se.attributeNameCheck instanceof Function && se.attributeNameCheck(R)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
708
708
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
709
|
-
R === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck,
|
|
709
|
+
R === "is" && se.allowCustomizedBuiltInElements && (se.tagNameCheck instanceof RegExp && Oe(se.tagNameCheck, B) || se.tagNameCheck instanceof Function && se.tagNameCheck(B)))
|
|
710
710
|
)
|
|
711
711
|
return !1;
|
|
712
712
|
} else if (!Zt[R]) {
|
|
713
|
-
if (!Oe(H, yt(
|
|
714
|
-
if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && kr(
|
|
715
|
-
if (!(ae && !Oe(me, yt(
|
|
716
|
-
if (
|
|
713
|
+
if (!Oe(H, yt(B, K, ""))) {
|
|
714
|
+
if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && kr(B, "data:") === 0 && Yn[b])) {
|
|
715
|
+
if (!(ae && !Oe(me, yt(B, K, "")))) {
|
|
716
|
+
if (B)
|
|
717
717
|
return !1;
|
|
718
718
|
}
|
|
719
719
|
}
|
|
@@ -731,7 +731,7 @@ function Ta() {
|
|
|
731
731
|
} = b;
|
|
732
732
|
if (!R)
|
|
733
733
|
return;
|
|
734
|
-
const
|
|
734
|
+
const B = {
|
|
735
735
|
attrName: "",
|
|
736
736
|
attrValue: "",
|
|
737
737
|
keepAttr: !0,
|
|
@@ -745,7 +745,7 @@ function Ta() {
|
|
|
745
745
|
value: ze
|
|
746
746
|
} = fe, mt = he(ve);
|
|
747
747
|
let Se = ve === "value" ? ze : Dr(ze);
|
|
748
|
-
if (
|
|
748
|
+
if (B.attrName = mt, B.attrValue = Se, B.keepAttr = !0, B.forceKeepAttr = void 0, Pe("uponSanitizeAttribute", b, B), Se = B.attrValue, B.forceKeepAttr || (Jt(ve, b), !B.keepAttr))
|
|
749
749
|
continue;
|
|
750
750
|
if (!re && Oe(/\/>/i, Se)) {
|
|
751
751
|
Jt(ve, b);
|
|
@@ -774,15 +774,15 @@ function Ta() {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
Pe("afterSanitizeAttributes", b, null);
|
|
777
|
-
},
|
|
777
|
+
}, Ga = function $(b) {
|
|
778
778
|
let R = null;
|
|
779
|
-
const
|
|
780
|
-
for (Pe("beforeSanitizeShadowDOM", b, null); R =
|
|
779
|
+
const B = as(b);
|
|
780
|
+
for (Pe("beforeSanitizeShadowDOM", b, null); R = B.nextNode(); )
|
|
781
781
|
Pe("uponSanitizeShadowNode", R, null), !rs(R) && (R.content instanceof a && $(R.content), cs(R));
|
|
782
782
|
Pe("afterSanitizeShadowDOM", b, null);
|
|
783
783
|
};
|
|
784
784
|
return e.sanitize = function($) {
|
|
785
|
-
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = null,
|
|
785
|
+
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = null, B = null, ee = null, fe = null;
|
|
786
786
|
if (Yt = !$, Yt && ($ = "<!-->"), typeof $ != "string" && !is($))
|
|
787
787
|
if (typeof $.toString == "function") {
|
|
788
788
|
if ($ = $.toString(), typeof $ != "string")
|
|
@@ -798,7 +798,7 @@ function Ta() {
|
|
|
798
798
|
throw Et("root node is forbidden and cannot be sanitized in-place");
|
|
799
799
|
}
|
|
800
800
|
} else if ($ instanceof r)
|
|
801
|
-
R = ss("<!---->"),
|
|
801
|
+
R = ss("<!---->"), B = R.ownerDocument.importNode($, !0), B.nodeType === 1 && B.nodeName === "BODY" || B.nodeName === "HTML" ? R = B : R.appendChild(B);
|
|
802
802
|
else {
|
|
803
803
|
if (!P && !ce && !Te && // eslint-disable-next-line unicorn/prefer-includes
|
|
804
804
|
$.indexOf("<") === -1)
|
|
@@ -809,7 +809,7 @@ function Ta() {
|
|
|
809
809
|
R && N && Ue(R.firstChild);
|
|
810
810
|
const ve = as(pt ? $ : R);
|
|
811
811
|
for (; ee = ve.nextNode(); )
|
|
812
|
-
rs(ee) || (ee.content instanceof a &&
|
|
812
|
+
rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
|
|
813
813
|
if (pt)
|
|
814
814
|
return $;
|
|
815
815
|
if (P) {
|
|
@@ -832,8 +832,8 @@ function Ta() {
|
|
|
832
832
|
et = null, _ = !1;
|
|
833
833
|
}, e.isValidAttribute = function($, b, R) {
|
|
834
834
|
et || Kt({});
|
|
835
|
-
const
|
|
836
|
-
return os(
|
|
835
|
+
const B = he($), ee = he(b);
|
|
836
|
+
return os(B, ee, R);
|
|
837
837
|
}, e.addHook = function($, b) {
|
|
838
838
|
typeof b == "function" && (k[$] = k[$] || [], vt(k[$], b));
|
|
839
839
|
}, e.removeHook = function($) {
|
|
@@ -888,7 +888,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
888
888
|
const i = t.selectAll("div.toolbar-control").data(s, (c) => c.id);
|
|
889
889
|
i.exit().remove();
|
|
890
890
|
const r = i.enter().append("div").attr("class", "toolbar-control cds--overflow-menu cds--overflow-menu"), l = this;
|
|
891
|
-
r.merge(i).classed("disabled", (c) => c.shouldBeDisabled()).attr("aria-disabled", (c) => c.shouldBeDisabled()).attr("aria-label", (c) => c.title).html((c) => `
|
|
891
|
+
r.merge(i).classed("disabled", (c) => c.shouldBeDisabled()).attr("role", "button").attr("aria-disabled", (c) => c.shouldBeDisabled()).attr("aria-label", (c) => c.title).html((c) => `
|
|
892
892
|
<button
|
|
893
893
|
class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
|
|
894
894
|
aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(
|
|
@@ -1726,9 +1726,9 @@ function wn(o, e) {
|
|
|
1726
1726
|
function Co(o) {
|
|
1727
1727
|
var e = Ro();
|
|
1728
1728
|
return function() {
|
|
1729
|
-
var n =
|
|
1729
|
+
var n = Gt(o), s;
|
|
1730
1730
|
if (e) {
|
|
1731
|
-
var a =
|
|
1731
|
+
var a = Gt(this).constructor;
|
|
1732
1732
|
s = Reflect.construct(n, arguments, a);
|
|
1733
1733
|
} else
|
|
1734
1734
|
s = n.apply(this, arguments);
|
|
@@ -1759,10 +1759,10 @@ function Ro() {
|
|
|
1759
1759
|
return !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return
|
|
1762
|
+
function Gt(o) {
|
|
1763
|
+
return Gt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1764
1764
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1765
|
-
},
|
|
1765
|
+
}, Gt(o);
|
|
1766
1766
|
}
|
|
1767
1767
|
function ko(o) {
|
|
1768
1768
|
var e = /* @__PURE__ */ function(t) {
|
|
@@ -1920,23 +1920,23 @@ function _n(o, e) {
|
|
|
1920
1920
|
function Vo(o) {
|
|
1921
1921
|
var e = Ho();
|
|
1922
1922
|
return function() {
|
|
1923
|
-
var n =
|
|
1923
|
+
var n = Bt(o), s;
|
|
1924
1924
|
if (e) {
|
|
1925
|
-
var a =
|
|
1925
|
+
var a = Bt(this).constructor;
|
|
1926
1926
|
s = Reflect.construct(n, arguments, a);
|
|
1927
1927
|
} else
|
|
1928
1928
|
s = n.apply(this, arguments);
|
|
1929
|
-
return
|
|
1929
|
+
return Go(this, s);
|
|
1930
1930
|
};
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Go(o, e) {
|
|
1933
1933
|
if (e && (Cn(e) === "object" || typeof e == "function"))
|
|
1934
1934
|
return e;
|
|
1935
1935
|
if (e !== void 0)
|
|
1936
1936
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1937
|
-
return
|
|
1937
|
+
return Bo(o);
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Bo(o) {
|
|
1940
1940
|
if (o === void 0)
|
|
1941
1941
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1942
1942
|
return o;
|
|
@@ -1953,10 +1953,10 @@ function Ho() {
|
|
|
1953
1953
|
return !1;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return
|
|
1956
|
+
function Bt(o) {
|
|
1957
|
+
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1958
1958
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1959
|
-
},
|
|
1959
|
+
}, Bt(o);
|
|
1960
1960
|
}
|
|
1961
1961
|
function $o(o) {
|
|
1962
1962
|
var e = /* @__PURE__ */ function(t) {
|
|
@@ -2038,14 +2038,14 @@ function Xo(o, e) {
|
|
|
2038
2038
|
if (!(o instanceof e))
|
|
2039
2039
|
throw new TypeError("Cannot call a class as a function");
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2041
|
+
function Gs(o, e) {
|
|
2042
2042
|
for (var t = 0; t < e.length; t++) {
|
|
2043
2043
|
var n = e[t];
|
|
2044
2044
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
function Zo(o, e, t) {
|
|
2048
|
-
return e &&
|
|
2048
|
+
return e && Gs(o.prototype, e), t && Gs(o, t), Object.defineProperty(o, "prototype", {
|
|
2049
2049
|
writable: !1
|
|
2050
2050
|
}), o;
|
|
2051
2051
|
}
|
|
@@ -2182,14 +2182,14 @@ function tl(o, e) {
|
|
|
2182
2182
|
if (!(o instanceof e))
|
|
2183
2183
|
throw new TypeError("Cannot call a class as a function");
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Bs(o, e) {
|
|
2186
2186
|
for (var t = 0; t < e.length; t++) {
|
|
2187
2187
|
var n = e[t];
|
|
2188
2188
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, n.key, n);
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
function nl(o, e, t) {
|
|
2192
|
-
return e &&
|
|
2192
|
+
return e && Bs(o.prototype, e), t && Bs(o, t), Object.defineProperty(o, "prototype", {
|
|
2193
2193
|
writable: !1
|
|
2194
2194
|
}), o;
|
|
2195
2195
|
}
|
|
@@ -3050,14 +3050,14 @@ class ph extends q {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
init() {
|
|
3052
3052
|
this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
3053
|
-
const e = v(this.getOptions(), "zoomBar",
|
|
3053
|
+
const e = v(this.getOptions(), "zoomBar", G.TOP, "data");
|
|
3054
3054
|
this.model.setZoomBarData(e);
|
|
3055
3055
|
}
|
|
3056
3056
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3057
3057
|
// @ts-ignore
|
|
3058
3058
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3059
3059
|
render(e = !0) {
|
|
3060
|
-
const t = this.getComponentContainer(), n = this.services.zoom.isZoomBarLoading(
|
|
3060
|
+
const t = this.getComponentContainer(), n = this.services.zoom.isZoomBarLoading(G.TOP), s = this.services.zoom.isZoomBarLocked(G.TOP), a = v(this.getOptions(), "zoomBar", G.TOP, "type"), i = v(this.getOptions(), "axes", G.BOTTOM, "highlights"), r = we.height[a], { width: l } = S.getSVGElementSize(this.parent, {
|
|
3061
3061
|
useAttrs: !0
|
|
3062
3062
|
});
|
|
3063
3063
|
if (l === 0)
|
|
@@ -3087,7 +3087,7 @@ class ph extends q {
|
|
|
3087
3087
|
const T = this.model.get("initialZoomDomain"), y = v(
|
|
3088
3088
|
this.getOptions(),
|
|
3089
3089
|
"zoomBar",
|
|
3090
|
-
|
|
3090
|
+
G.TOP,
|
|
3091
3091
|
"initialZoomDomain"
|
|
3092
3092
|
);
|
|
3093
3093
|
y && y[0] && y[1] && (y[0] = new Date(y[0]), y[1] = new Date(y[1])), y && !(T && T[0].valueOf() === y[0].valueOf() && T[1].valueOf() === y[1].valueOf()) ? this.model.set(
|
|
@@ -3136,7 +3136,7 @@ class ph extends q {
|
|
|
3136
3136
|
const s = (r) => {
|
|
3137
3137
|
const l = r.selection;
|
|
3138
3138
|
l === null ? this.handleBrushedEvent(r, e, this.xScale, this.xScale.range()) : l[0] === l[1] || this.handleBrushedEvent(r, e, this.xScale, l);
|
|
3139
|
-
}, a = v(this.getOptions(), "zoomBar",
|
|
3139
|
+
}, a = v(this.getOptions(), "zoomBar", G.TOP, "type"), i = we.height[a];
|
|
3140
3140
|
this.brush.extent([
|
|
3141
3141
|
[t, 0],
|
|
3142
3142
|
[n, i]
|
|
@@ -3159,7 +3159,7 @@ class ph extends q {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
3161
|
updateBrushHandle(e, t) {
|
|
3162
|
-
const n = this, s = we.handleWidth, a = v(this.getOptions(), "zoomBar",
|
|
3162
|
+
const n = this, s = we.handleWidth, a = v(this.getOptions(), "zoomBar", G.TOP, "type"), i = we.height[a], r = -s / 2, l = we.handleBarWidth, c = a === nt.GRAPH_VIEW ? we.handleBarHeight : 6, d = -l / 2, p = (i - c) / 2;
|
|
3163
3163
|
e.select(this.brushSelector).selectAll("rect.handle").data([{ type: "w" }, { type: "e" }]).attr("x", function(u) {
|
|
3164
3164
|
if (u.type === "w")
|
|
3165
3165
|
return Math.max(t[0] + r, n.maxSelectionRange[0]);
|
|
@@ -3190,11 +3190,11 @@ class ph extends q {
|
|
|
3190
3190
|
);
|
|
3191
3191
|
}
|
|
3192
3192
|
updateSliderSelectedArea(e) {
|
|
3193
|
-
const t = v(this.getOptions(), "zoomBar",
|
|
3193
|
+
const t = v(this.getOptions(), "zoomBar", G.TOP, "type"), n = we.height[t], a = this.getComponentContainer().select("svg.zoom-container");
|
|
3194
3194
|
S.appendOrSelect(a, "rect.zoom-slider-selected-area").attr("x", e[0]).attr("y", n / 2 - 1).attr("width", e[1] - e[0]).attr("height", 2);
|
|
3195
3195
|
}
|
|
3196
3196
|
renderZoomBarArea(e, t, n, s) {
|
|
3197
|
-
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, T, y) => (A) => a.getValueFromScale(O, T, y, A), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar",
|
|
3197
|
+
const { cartesianScales: a } = this.services, i = a.getMainXAxisPosition(), r = a.getMainYAxisPosition(), l = a.getMainXScaleType(), c = a.getMainYScaleType(), d = (O, T, y) => (A) => a.getValueFromScale(O, T, y, A), p = d(this.xScale, l, i), h = d(this.yScale, c, r), u = v(this.getOptions(), "zoomBar", G.TOP, "type"), g = we.height[u], m = Nn().x((O) => p(O)).y0(g).y1((O) => g - h(O)), E = S.appendOrSelect(e, t).datum(n).attr("d", m);
|
|
3198
3198
|
s && E.attr("clip-path", `url(#${s})`);
|
|
3199
3199
|
}
|
|
3200
3200
|
updateClipPath(e, t, n, s, a, i) {
|
|
@@ -3220,7 +3220,7 @@ class ph extends q {
|
|
|
3220
3220
|
const a = v(
|
|
3221
3221
|
this.model.getOptions(),
|
|
3222
3222
|
"zoomBar",
|
|
3223
|
-
|
|
3223
|
+
G.TOP,
|
|
3224
3224
|
"type"
|
|
3225
3225
|
), i = we.height[a], r = Pn()([
|
|
3226
3226
|
[t, i],
|
|
@@ -3232,7 +3232,7 @@ class ph extends q {
|
|
|
3232
3232
|
);
|
|
3233
3233
|
}
|
|
3234
3234
|
renderSkeleton(e, t, n) {
|
|
3235
|
-
this.renderZoomBarArea(e, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(e, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), S.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), v(this.getOptions(), "zoomBar",
|
|
3235
|
+
this.renderZoomBarArea(e, "path.zoom-graph-area-unselected", [], null), this.renderZoomBarArea(e, "path.zoom-graph-area", [], this.clipId), this.brush.on("start brush end", null), S.appendOrSelect(this.getComponentContainer(), this.brushSelector).html(null), v(this.getOptions(), "zoomBar", G.TOP, "type") === nt.GRAPH_VIEW && this.renderZoomBarBaseline(e, t, n, !0);
|
|
3236
3236
|
}
|
|
3237
3237
|
destroy() {
|
|
3238
3238
|
this.brush.on("start brush end", null), this.services.events.removeEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
@@ -3245,7 +3245,7 @@ class gh extends q {
|
|
|
3245
3245
|
render(e = !1) {
|
|
3246
3246
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
3247
3247
|
Object.keys(t).forEach((h) => {
|
|
3248
|
-
if (Object.values(
|
|
3248
|
+
if (Object.values(G).includes(h)) {
|
|
3249
3249
|
const u = t[h];
|
|
3250
3250
|
u.thresholds && u.thresholds.length > 0 && n.push({
|
|
3251
3251
|
axisPosition: h,
|
|
@@ -3271,13 +3271,13 @@ class gh extends q {
|
|
|
3271
3271
|
h
|
|
3272
3272
|
), g = p.services.cartesianScales.getScaleTypeByPosition(h);
|
|
3273
3273
|
let m = null, E = null;
|
|
3274
|
-
h ===
|
|
3274
|
+
h === G.LEFT || h === G.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
|
|
3275
3275
|
const O = g === ue.LABELS, [T, y] = m.range(), [A, w] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), D = (z) => L.getDomainValue(z), j = (z) => L.getRangeValue(z), [k, C] = He(
|
|
3276
3276
|
D,
|
|
3277
3277
|
j,
|
|
3278
3278
|
I
|
|
3279
3279
|
), V = x(this);
|
|
3280
|
-
h ===
|
|
3280
|
+
h === G.TOP || h === G.BOTTOM ? (V.selectAll("line.threshold-line").transition().call(
|
|
3281
3281
|
(z) => p.services.transitions.setupTransition({
|
|
3282
3282
|
transition: z,
|
|
3283
3283
|
name: "threshold-line-update",
|
|
@@ -3311,7 +3311,7 @@ class gh extends q {
|
|
|
3311
3311
|
getFormattedValue(e) {
|
|
3312
3312
|
const { value: t, axisPosition: n } = e, s = this.getOptions(), a = this.services.cartesianScales.getScaleTypeByPosition(n), { code: i, number: r } = v(s, "locale");
|
|
3313
3313
|
if (a === ue.TIME) {
|
|
3314
|
-
const l = [
|
|
3314
|
+
const l = [G.LEFT, G.RIGHT].includes(n), c = this.services.cartesianScales.getMainXScale(), d = this.services.cartesianScales.getMainYScale(), p = l ? d : c, h = v(s, "timeScale"), u = gn(
|
|
3315
3315
|
p.ticks(),
|
|
3316
3316
|
v(h, "timeInterval")
|
|
3317
3317
|
);
|
|
@@ -3383,7 +3383,7 @@ class mh extends q {
|
|
|
3383
3383
|
render(e = !1) {
|
|
3384
3384
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
3385
3385
|
Object.keys(t).forEach((h) => {
|
|
3386
|
-
if (Object.values(
|
|
3386
|
+
if (Object.values(G).includes(h)) {
|
|
3387
3387
|
const u = t[h];
|
|
3388
3388
|
u.highlights && u.highlights.data.length > 0 && n.push({
|
|
3389
3389
|
axisPosition: h,
|
|
@@ -3412,7 +3412,7 @@ class mh extends q {
|
|
|
3412
3412
|
L,
|
|
3413
3413
|
A
|
|
3414
3414
|
), j = x(this);
|
|
3415
|
-
h ===
|
|
3415
|
+
h === G.TOP || h === G.BOTTOM ? j.selectAll("rect.highlight-bar").transition().call(
|
|
3416
3416
|
(k) => p.services.transitions.setupTransition({
|
|
3417
3417
|
transition: k,
|
|
3418
3418
|
name: "highlight-bar-update",
|
|
@@ -3871,14 +3871,14 @@ class Eh extends q {
|
|
|
3871
3871
|
transition: n,
|
|
3872
3872
|
name: "legend-hover-area"
|
|
3873
3873
|
})
|
|
3874
|
-
).attr("opacity", (n) => n.name !== t.datum().name ?
|
|
3874
|
+
).attr("opacity", (n) => n.name !== t.datum().name ? Be.opacity.unselected : Be.opacity.selected);
|
|
3875
3875
|
}, this.handleLegendMouseOut = () => {
|
|
3876
3876
|
this.parent.selectAll("path.area").transition("legend-mouseout-area").call(
|
|
3877
3877
|
(e) => this.services.transitions.setupTransition({
|
|
3878
3878
|
transition: e,
|
|
3879
3879
|
name: "legend-mouseout-area"
|
|
3880
3880
|
})
|
|
3881
|
-
).attr("opacity",
|
|
3881
|
+
).attr("opacity", Be.opacity.selected);
|
|
3882
3882
|
};
|
|
3883
3883
|
}
|
|
3884
3884
|
init() {
|
|
@@ -3968,10 +3968,10 @@ class Eh extends q {
|
|
|
3968
3968
|
name: "area-update-enter",
|
|
3969
3969
|
animate: e
|
|
3970
3970
|
})
|
|
3971
|
-
).attr("opacity", d ? 1 :
|
|
3971
|
+
).attr("opacity", d ? 1 : Be.opacity.selected).attr("d", (w) => {
|
|
3972
3972
|
const { data: L } = w;
|
|
3973
3973
|
return r(L);
|
|
3974
|
-
}), d && A.attr("fill-opacity",
|
|
3974
|
+
}), d && A.attr("fill-opacity", Be.opacity.selected).style("stroke", (w) => y.model.getStrokeColor(w.name)).style("stroke-dasharray", "2, 2").attr("stroke-width", 0.7 + "px"));
|
|
3975
3975
|
}
|
|
3976
3976
|
destroy() {
|
|
3977
3977
|
const e = this.services.events;
|
|
@@ -3987,14 +3987,14 @@ class bh extends q {
|
|
|
3987
3987
|
transition: n,
|
|
3988
3988
|
name: "legend-hover-line"
|
|
3989
3989
|
})
|
|
3990
|
-
).attr("opacity", (n) => n.name !== t.datum().name ?
|
|
3990
|
+
).attr("opacity", (n) => n.name !== t.datum().name ? Ge.opacity.unselected : Ge.opacity.selected);
|
|
3991
3991
|
}, this.handleLegendMouseOut = () => {
|
|
3992
3992
|
this.parent.selectAll("path.line").transition("legend-mouseout-line").call(
|
|
3993
3993
|
(e) => this.services.transitions.setupTransition({
|
|
3994
3994
|
transition: e,
|
|
3995
3995
|
name: "legend-mouseout-line"
|
|
3996
3996
|
})
|
|
3997
|
-
).attr("opacity",
|
|
3997
|
+
).attr("opacity", Ge.opacity.selected);
|
|
3998
3998
|
};
|
|
3999
3999
|
}
|
|
4000
4000
|
init() {
|
|
@@ -4409,10 +4409,10 @@ class zn extends q {
|
|
|
4409
4409
|
class Ca extends q {
|
|
4410
4410
|
constructor(e, t, n) {
|
|
4411
4411
|
super(e, t, n), this.type = "axes", this.renderType = W.SVG, this.truncation = {
|
|
4412
|
-
[
|
|
4413
|
-
[
|
|
4414
|
-
[
|
|
4415
|
-
[
|
|
4412
|
+
[G.LEFT]: !1,
|
|
4413
|
+
[G.RIGHT]: !1,
|
|
4414
|
+
[G.TOP]: !1,
|
|
4415
|
+
[G.BOTTOM]: !1
|
|
4416
4416
|
}, n && (this.configs = n), this.margins = this.configs.margins;
|
|
4417
4417
|
}
|
|
4418
4418
|
render(e = !0) {
|
|
@@ -4420,22 +4420,22 @@ class Ca extends q {
|
|
|
4420
4420
|
useAttrs: !0
|
|
4421
4421
|
}), l = S.appendOrSelect(a, `g.axis.${t}`);
|
|
4422
4422
|
let c, d;
|
|
4423
|
-
if (t ===
|
|
4423
|
+
if (t === G.BOTTOM || t === G.TOP ? (c = this.configs.axes[G.LEFT] ? this.margins.left : 0, d = this.configs.axes[G.RIGHT] ? i - this.margins.right : i) : (c = r - this.margins.bottom, d = this.margins.top), !this.services.cartesianScales)
|
|
4424
4424
|
throw new Error("Services cartesianScales undefined");
|
|
4425
4425
|
const p = this.services.cartesianScales.getScaleByPosition(t);
|
|
4426
4426
|
this.scaleType === ue.LABELS || this.scaleType === ue.LABELS_RATIO ? p.rangeRound([c, d]) : p.range([c, d]);
|
|
4427
4427
|
let h;
|
|
4428
4428
|
switch (t) {
|
|
4429
|
-
case
|
|
4429
|
+
case G.LEFT:
|
|
4430
4430
|
h = ea;
|
|
4431
4431
|
break;
|
|
4432
|
-
case
|
|
4432
|
+
case G.BOTTOM:
|
|
4433
4433
|
h = Vn;
|
|
4434
4434
|
break;
|
|
4435
|
-
case
|
|
4435
|
+
case G.RIGHT:
|
|
4436
4436
|
h = ei;
|
|
4437
4437
|
break;
|
|
4438
|
-
case
|
|
4438
|
+
case G.TOP:
|
|
4439
4439
|
h = Qa;
|
|
4440
4440
|
break;
|
|
4441
4441
|
}
|
|
@@ -4443,7 +4443,7 @@ class Ca extends q {
|
|
|
4443
4443
|
const u = !l.select("g.ticks").empty();
|
|
4444
4444
|
let g = S.appendOrSelect(l, "g.ticks");
|
|
4445
4445
|
u || (g.attr("role", `${X.GRAPHICS_OBJECT} ${X.GROUP}`), g.attr("aria-label", `${t} ticks`));
|
|
4446
|
-
const m = S.appendOrSelect(l, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${t} ticks`), E = v(n, "axes", t), O = this.scaleType === ue.TIME || E.scaleType === ue.TIME, T = t ===
|
|
4446
|
+
const m = S.appendOrSelect(l, "g.ticks.invisible").style("opacity", "0").style("pointer-events", "none").attr("aria-hidden", !0).attr("aria-label", `invisible ${t} ticks`), E = v(n, "axes", t), O = this.scaleType === ue.TIME || E.scaleType === ue.TIME, T = t === G.LEFT || t === G.RIGHT, y = this.model.get("zoomDomain");
|
|
4447
4447
|
if (y && O && !T && p.domain(y), !s) {
|
|
4448
4448
|
g.attr("aria-hidden", !0);
|
|
4449
4449
|
return;
|
|
@@ -4510,16 +4510,16 @@ class Ca extends q {
|
|
|
4510
4510
|
K.tickValues(Ie);
|
|
4511
4511
|
}
|
|
4512
4512
|
switch (t) {
|
|
4513
|
-
case
|
|
4513
|
+
case G.LEFT:
|
|
4514
4514
|
g.attr("transform", `translate(${this.margins.left}, 0)`);
|
|
4515
4515
|
break;
|
|
4516
|
-
case
|
|
4516
|
+
case G.BOTTOM:
|
|
4517
4517
|
g.attr("transform", `translate(0, ${r - this.margins.bottom})`);
|
|
4518
4518
|
break;
|
|
4519
|
-
case
|
|
4519
|
+
case G.RIGHT:
|
|
4520
4520
|
g.attr("transform", `translate(${i - this.margins.right}, 0)`);
|
|
4521
4521
|
break;
|
|
4522
|
-
case
|
|
4522
|
+
case G.TOP:
|
|
4523
4523
|
g.attr("transform", `translate(0, ${this.margins.top})`);
|
|
4524
4524
|
break;
|
|
4525
4525
|
}
|
|
@@ -4530,19 +4530,19 @@ class Ca extends q {
|
|
|
4530
4530
|
), J = v(E, "titleOrientation");
|
|
4531
4531
|
let ae;
|
|
4532
4532
|
switch (t) {
|
|
4533
|
-
case
|
|
4533
|
+
case G.LEFT:
|
|
4534
4534
|
J === vs.RIGHT ? U.attr("transform", "rotate(90)").attr("y", 0).attr("x", p.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : U.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(p.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
4535
4535
|
break;
|
|
4536
|
-
case
|
|
4536
|
+
case G.BOTTOM:
|
|
4537
4537
|
U.attr(
|
|
4538
4538
|
"transform",
|
|
4539
4539
|
`translate(${this.margins.left / 2 + p.range()[1] / 2}, ${r + 4})`
|
|
4540
4540
|
).style("text-anchor", "middle");
|
|
4541
4541
|
break;
|
|
4542
|
-
case
|
|
4542
|
+
case G.RIGHT:
|
|
4543
4543
|
J === vs.LEFT ? U.attr("transform", "rotate(-90)").attr("y", i).attr("x", -(p.range()[0] / 2)).style("text-anchor", "middle") : U.attr("transform", "rotate(90)").attr("y", -i).attr("x", p.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
|
|
4544
4544
|
break;
|
|
4545
|
-
case
|
|
4545
|
+
case G.TOP:
|
|
4546
4546
|
ae = S.getSVGElementSize(U, {
|
|
4547
4547
|
useBBox: !0
|
|
4548
4548
|
}).height, U.attr(
|
|
@@ -4572,7 +4572,7 @@ class Ca extends q {
|
|
|
4572
4572
|
animate: e
|
|
4573
4573
|
})
|
|
4574
4574
|
).call(K);
|
|
4575
|
-
if (m.call(K), t ===
|
|
4575
|
+
if (m.call(K), t === G.BOTTOM || t === G.TOP) {
|
|
4576
4576
|
let U = !1;
|
|
4577
4577
|
const J = v(E, "ticks", "rotation");
|
|
4578
4578
|
if (J === tn.ALWAYS)
|
|
@@ -4599,7 +4599,7 @@ class Ca extends q {
|
|
|
4599
4599
|
}
|
|
4600
4600
|
U ? (C || (K.ticks(
|
|
4601
4601
|
this.getNumberOfFittingTicks(i, Q, ot.ticks.horizontalSpaceRatio)
|
|
4602
|
-
), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t ===
|
|
4602
|
+
), m.call(K), g.call(K)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", t === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
|
|
4603
4603
|
}
|
|
4604
4604
|
if (w ? l.attr("opacity", 0) : l.attr("opacity", 1), g.selectAll("g.tick").attr("aria-label", (U) => U), m.selectAll("g.tick").attr("aria-label", (U) => U), D !== lt.NONE && A === ue.LABELS && !I) {
|
|
4605
4605
|
const U = this.services.cartesianScales.getScaleDomain(t);
|
|
@@ -4682,16 +4682,16 @@ class ml extends Ca {
|
|
|
4682
4682
|
}), h = S.appendOrSelect(l, "rect.axis-holder");
|
|
4683
4683
|
let u = 0, g = 0;
|
|
4684
4684
|
switch (t) {
|
|
4685
|
-
case
|
|
4685
|
+
case G.LEFT:
|
|
4686
4686
|
u = -d + Number(c.attr("x")), g = -(p / 2);
|
|
4687
4687
|
break;
|
|
4688
|
-
case
|
|
4688
|
+
case G.RIGHT:
|
|
4689
4689
|
u = Math.abs(Number(c.attr("x"))), g = -(p / 2);
|
|
4690
4690
|
break;
|
|
4691
|
-
case
|
|
4691
|
+
case G.TOP:
|
|
4692
4692
|
u = -(d / 2), g = -p + Number(c.attr("y")) / 2, a.truncation[t] && (u = 0, h.attr("transform", "rotate(-45)"));
|
|
4693
4693
|
break;
|
|
4694
|
-
case
|
|
4694
|
+
case G.BOTTOM:
|
|
4695
4695
|
u = -(d / 2), g = p / 2 - 2, a.truncation[t] && (u = -d, h.attr("transform", "rotate(-45)"));
|
|
4696
4696
|
break;
|
|
4697
4697
|
}
|
|
@@ -4755,7 +4755,7 @@ class ml extends Ca {
|
|
|
4755
4755
|
event: c,
|
|
4756
4756
|
element: x(this),
|
|
4757
4757
|
datum: x(this).select("text").datum()
|
|
4758
|
-
})), t ===
|
|
4758
|
+
})), t === G.LEFT || t === G.RIGHT ? c.key && c.key === "ArrowUp" ? l.goNext(this, c) : c.key && c.key === "ArrowDown" && l.goPrevious(this, c) : c.key && c.key === "ArrowLeft" ? l.goPrevious(this, c) : c.key && c.key === "ArrowRight" && l.goNext(this, c);
|
|
4759
4759
|
});
|
|
4760
4760
|
}
|
|
4761
4761
|
// Focus on the next HTML element sibling
|
|
@@ -4781,11 +4781,11 @@ class Sh extends q {
|
|
|
4781
4781
|
};
|
|
4782
4782
|
}
|
|
4783
4783
|
render(e = !1) {
|
|
4784
|
-
const t = {}, n = Object.keys(
|
|
4784
|
+
const t = {}, n = Object.keys(G), s = v(this.getOptions(), "axes");
|
|
4785
4785
|
n.forEach((r) => {
|
|
4786
|
-
s[
|
|
4786
|
+
s[G[r]] && (t[G[r]] = !0);
|
|
4787
4787
|
}), this.configs.axes = t, n.forEach((r) => {
|
|
4788
|
-
const l =
|
|
4788
|
+
const l = G[r];
|
|
4789
4789
|
if (this.configs.axes[l] && !this.children[l]) {
|
|
4790
4790
|
const c = {
|
|
4791
4791
|
position: l,
|
|
@@ -4803,17 +4803,17 @@ class Sh extends q {
|
|
|
4803
4803
|
let u;
|
|
4804
4804
|
switch (l.getTitleRef().empty() ? u = 0 : (u = S.getSVGElementSize(l.getTitleRef(), {
|
|
4805
4805
|
useBBox: !0
|
|
4806
|
-
}).height, (c ===
|
|
4807
|
-
case
|
|
4806
|
+
}).height, (c === G.LEFT || c === G.RIGHT) && (u += 5)), c) {
|
|
4807
|
+
case G.TOP:
|
|
4808
4808
|
a.top = h + u;
|
|
4809
4809
|
break;
|
|
4810
|
-
case
|
|
4810
|
+
case G.BOTTOM:
|
|
4811
4811
|
a.bottom = h + u;
|
|
4812
4812
|
break;
|
|
4813
|
-
case
|
|
4813
|
+
case G.LEFT:
|
|
4814
4814
|
a.left = p + u;
|
|
4815
4815
|
break;
|
|
4816
|
-
case
|
|
4816
|
+
case G.RIGHT:
|
|
4817
4817
|
a.right = p + u;
|
|
4818
4818
|
break;
|
|
4819
4819
|
}
|
|
@@ -5719,13 +5719,13 @@ class wh extends Ma {
|
|
|
5719
5719
|
}
|
|
5720
5720
|
}
|
|
5721
5721
|
const Mh = (o, e) => {
|
|
5722
|
-
const t = o.x, n = o.y, s = e.x, a = e.y, i =
|
|
5722
|
+
const t = o.x, n = o.y, s = e.x, a = e.y, i = Gn();
|
|
5723
5723
|
return i.moveTo(t, n), i.lineTo(s, a), i.toString();
|
|
5724
5724
|
}, Ch = (o, e, t = 0.5) => {
|
|
5725
|
-
const n = o.x, s = o.y, a = e.x, i = e.y, r =
|
|
5725
|
+
const n = o.x, s = o.y, a = e.x, i = e.y, r = Gn();
|
|
5726
5726
|
return r.moveTo(n, s), r.lineTo(n + (a - n) * t, s), r.lineTo(n + (a - n) * t, i), r.lineTo(a, i), r.toString();
|
|
5727
5727
|
}, _h = (o, e, t, n, s, a) => {
|
|
5728
|
-
const i = o.x, r = o.y, l = e.x, c = e.y, d =
|
|
5728
|
+
const i = o.x, r = o.y, l = e.x, c = e.y, d = Gn();
|
|
5729
5729
|
return d.moveTo(i, r), d.bezierCurveTo(t, n, s, a, l, c), d.toString();
|
|
5730
5730
|
}, Ih = {
|
|
5731
5731
|
d: "M7 0v8L0 4z",
|
|
@@ -5844,14 +5844,14 @@ class Vh extends hl {
|
|
|
5844
5844
|
*/
|
|
5845
5845
|
drawQuantize(e, t, n, s, a) {
|
|
5846
5846
|
!n && t === "diverge" && e.splice(e.length / 2, 1);
|
|
5847
|
-
const i =
|
|
5847
|
+
const i = Bn().domain(e).range([0, a]);
|
|
5848
5848
|
return S.appendOrSelect(s, "g.quantized-rect").selectAll("rect").data(i.domain()).join("rect").attr("x", (l) => i(l)).attr("y", 0).attr("width", Math.max(0, i.bandwidth() - 1)).attr("height", de.color.barHeight).attr("class", (l) => l).attr("fill", (l) => l), (!n && t) === "mono" ? i.bandwidth() - 1 : 0;
|
|
5849
5849
|
}
|
|
5850
5850
|
destroy() {
|
|
5851
5851
|
this.chartType === "heatmap" && this.services.events.removeEventListener(f.Axis.RENDER_COMPLETE, this.handleAxisCompleteEvent);
|
|
5852
5852
|
}
|
|
5853
5853
|
}
|
|
5854
|
-
class
|
|
5854
|
+
class Gh extends dl {
|
|
5855
5855
|
constructor() {
|
|
5856
5856
|
super(...arguments), this.type = "meter-title", this.renderType = W.SVG;
|
|
5857
5857
|
}
|
|
@@ -5891,22 +5891,20 @@ class Bh extends dl {
|
|
|
5891
5891
|
}
|
|
5892
5892
|
// show the total for prop meter
|
|
5893
5893
|
displayTotal() {
|
|
5894
|
-
const e = this.getComponentContainer(), t = this.getOptions(), n = v(t, "meter", "proportional", "total"), s = n ? v(t, "meter", "proportional", "total") : this.model.getMaximumDomain(this.model.getDisplayData()), a = v(t, "meter", "proportional", "unit") ? v(t, "meter", "proportional", "unit") : "", i = v(t, "meter", "proportional", "totalFormatter"), { code: r, number: l } = v(t, "locale"), c = i !== null ? i(s) : `${l(n, r)} ${a} total`, d = S.getHTMLElementSize(this.
|
|
5895
|
-
|
|
5894
|
+
const e = this.getComponentContainer(), t = this.getOptions(), n = v(t, "meter", "proportional", "total"), s = n ? v(t, "meter", "proportional", "total") : this.model.getMaximumDomain(this.model.getDisplayData()), a = v(t, "meter", "proportional", "unit") ? v(t, "meter", "proportional", "unit") : "", i = v(t, "meter", "proportional", "totalFormatter"), { code: r, number: l } = v(t, "locale"), c = i !== null ? i(s) : `${l(n, r)} ${a} total`, d = S.getHTMLElementSize(this.parent.node()).width, p = e.selectAll("text.proportional-meter-total").data([c]);
|
|
5895
|
+
p.enter().append("text").classed("proportional-meter-total", !0).merge(p).attr(
|
|
5896
5896
|
"x",
|
|
5897
|
-
this.model.getStatus() && typeof
|
|
5898
|
-
).attr("y", "1em").attr("text-anchor", "end").text((
|
|
5897
|
+
this.model.getStatus() && typeof d != "string" ? d - pe.total.paddingRight : d
|
|
5898
|
+
).attr("y", "1em").attr("text-anchor", "end").text((h) => h), p.exit().remove();
|
|
5899
5899
|
}
|
|
5900
5900
|
/**
|
|
5901
5901
|
* Appends the corresponding status based on the value and the peak.
|
|
5902
5902
|
*/
|
|
5903
5903
|
displayStatus() {
|
|
5904
|
-
const e = this, t = this.getComponentContainer(), n = S.getHTMLElementSize(
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
c.enter().append("
|
|
5908
|
-
const d = r.selectAll("path.innerFill").data(l);
|
|
5909
|
-
d.enter().append("path").merge(d).attr("d", e.getStatusIconPathString(a)).attr("transform", `translate(-${i}, 0)`).attr("class", "innerFill"), d.exit().remove(), c.exit().remove();
|
|
5904
|
+
const e = this, t = this.getComponentContainer(), n = S.getHTMLElementSize(this.parent.node()).width || 0, s = this.model.getStatus(), a = pe.status.indicatorSize / 2, i = S.appendOrSelect(t, "g.status-indicator").attr("class", s !== null ? `status-indicator status--${s}` : "").attr("transform", `translate(${n - a}, 0)`), r = s ? [s] : [], l = i.selectAll("circle.status").data(r);
|
|
5905
|
+
l.enter().append("circle").merge(l).attr("class", "status").attr("r", a).attr("cx", 0).attr("cy", 8);
|
|
5906
|
+
const c = i.selectAll("path.innerFill").data(r);
|
|
5907
|
+
c.enter().append("path").merge(c).attr("d", e.getStatusIconPathString(s)).attr("transform", `translate(-${a}, 0)`).attr("class", "innerFill"), c.exit().remove(), l.exit().remove();
|
|
5910
5908
|
}
|
|
5911
5909
|
/**
|
|
5912
5910
|
* Appends the associated percentage to the end of the title
|
|
@@ -5931,15 +5929,15 @@ class Bh extends dl {
|
|
|
5931
5929
|
}
|
|
5932
5930
|
// computes the maximum space a title can take
|
|
5933
5931
|
getMaxTitleWidth() {
|
|
5934
|
-
const e =
|
|
5935
|
-
if (
|
|
5936
|
-
const
|
|
5932
|
+
const e = v(this.getOptions(), "meter", "proportional"), t = S.getHTMLElementSize(this.parent.node()).width;
|
|
5933
|
+
if (e !== null) {
|
|
5934
|
+
const n = S.appendOrSelect(this.parent, "text.proportional-meter-total").node(), s = S.getSVGElementSize(n, {
|
|
5937
5935
|
useBBox: !0
|
|
5938
5936
|
}).width;
|
|
5939
|
-
return
|
|
5937
|
+
return t - s - pe.total.paddingLeft;
|
|
5940
5938
|
} else {
|
|
5941
|
-
const
|
|
5942
|
-
return
|
|
5939
|
+
const n = S.appendOrSelect(this.parent, "text.percent-value"), s = pe.statusBar.paddingRight, a = n.node().getComputedTextLength(), i = S.appendOrSelect(this.parent, "g.status-indicator").node(), r = S.getSVGElementSize(i, { useBBox: !0 }).width + pe.status.paddingLeft;
|
|
5940
|
+
return t - a - s - r;
|
|
5943
5941
|
}
|
|
5944
5942
|
}
|
|
5945
5943
|
/**
|
|
@@ -5983,7 +5981,7 @@ class Wn extends q {
|
|
|
5983
5981
|
return !1;
|
|
5984
5982
|
}
|
|
5985
5983
|
}
|
|
5986
|
-
class
|
|
5984
|
+
class Bh extends q {
|
|
5987
5985
|
constructor() {
|
|
5988
5986
|
super(...arguments), this.type = "circle-pack", this.renderType = W.SVG, this.handleLegendOnHover = (e) => {
|
|
5989
5987
|
const { hoveredElement: t } = e.detail;
|
|
@@ -6685,7 +6683,7 @@ class Uh extends Wn {
|
|
|
6685
6683
|
}
|
|
6686
6684
|
setGroupScale() {
|
|
6687
6685
|
const e = this.model.getActiveDataGroupNames(this.configs.groups);
|
|
6688
|
-
this.groupScale =
|
|
6686
|
+
this.groupScale = Bn().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6689
6687
|
}
|
|
6690
6688
|
}
|
|
6691
6689
|
class zh extends q {
|
|
@@ -6958,9 +6956,9 @@ class Wh extends zn {
|
|
|
6958
6956
|
constructor() {
|
|
6959
6957
|
super(...arguments), this.type = "lollipop", this.renderType = W.SVG, this.handleScatterOnHover = (e) => {
|
|
6960
6958
|
const t = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
6961
|
-
this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ?
|
|
6959
|
+
this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? Ge.weight.unselected : Ge.weight.selected);
|
|
6962
6960
|
}, this.handleScatterOnMouseOut = () => {
|
|
6963
|
-
this.parent.selectAll("line.line").attr("stroke-width",
|
|
6961
|
+
this.parent.selectAll("line.line").attr("stroke-width", Ge.weight.unselected);
|
|
6964
6962
|
}, this.handleLegendOnHover = (e) => {
|
|
6965
6963
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
6966
6964
|
this.parent.selectAll("line.line").transition("legend-hover-line").call(
|
|
@@ -6968,14 +6966,14 @@ class Wh extends zn {
|
|
|
6968
6966
|
transition: a,
|
|
6969
6967
|
name: "legend-hover-line"
|
|
6970
6968
|
})
|
|
6971
|
-
).attr("opacity", (a) => a[s] !== t.datum().name ?
|
|
6969
|
+
).attr("opacity", (a) => a[s] !== t.datum().name ? Ge.opacity.unselected : Ge.opacity.selected);
|
|
6972
6970
|
}, this.handleLegendMouseOut = () => {
|
|
6973
6971
|
this.parent.selectAll("line.line").transition("legend-mouseout-line").call(
|
|
6974
6972
|
(e) => this.services.transitions.setupTransition({
|
|
6975
6973
|
transition: e,
|
|
6976
6974
|
name: "legend-mouseout-line"
|
|
6977
6975
|
})
|
|
6978
|
-
).attr("opacity",
|
|
6976
|
+
).attr("opacity", Ge.opacity.selected);
|
|
6979
6977
|
};
|
|
6980
6978
|
}
|
|
6981
6979
|
init() {
|
|
@@ -7190,7 +7188,7 @@ class Xh extends q {
|
|
|
7190
7188
|
const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), w = (Math.min(n, s) - T) / 2;
|
|
7191
7189
|
if (w <= 0)
|
|
7192
7190
|
return;
|
|
7193
|
-
const L =
|
|
7191
|
+
const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), D = Ze().domain([
|
|
7194
7192
|
I >= 0 ? 0 : I,
|
|
7195
7193
|
gs(this.fullDataNormalized.map((_) => _[p]))
|
|
7196
7194
|
]).range([m, w]).nice(g), j = D.ticks(g), k = (_) => this.model.getFillColor(_), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => D(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
|
|
@@ -7610,14 +7608,14 @@ class qh extends q {
|
|
|
7610
7608
|
transition: a,
|
|
7611
7609
|
name: "legend-hover-area"
|
|
7612
7610
|
})
|
|
7613
|
-
).attr("opacity", (a) => v(a, 0, s) !== t.datum().name ?
|
|
7611
|
+
).attr("opacity", (a) => v(a, 0, s) !== t.datum().name ? Be.opacity.unselected : Be.opacity.selected);
|
|
7614
7612
|
}, this.handleLegendMouseOut = () => {
|
|
7615
7613
|
this.parent.selectAll("path.area").transition("legend-mouseout-area").call(
|
|
7616
7614
|
(e) => this.services.transitions.setupTransition({
|
|
7617
7615
|
transition: e,
|
|
7618
7616
|
name: "legend-mouseout-area"
|
|
7619
7617
|
})
|
|
7620
|
-
).attr("opacity",
|
|
7618
|
+
).attr("opacity", Be.opacity.selected);
|
|
7621
7619
|
};
|
|
7622
7620
|
}
|
|
7623
7621
|
init() {
|
|
@@ -7647,7 +7645,7 @@ class qh extends q {
|
|
|
7647
7645
|
name: "area-update-enter",
|
|
7648
7646
|
animate: e
|
|
7649
7647
|
})
|
|
7650
|
-
).attr("opacity",
|
|
7648
|
+
).attr("opacity", Be.opacity.selected).attr("d", this.areaGenerator);
|
|
7651
7649
|
}
|
|
7652
7650
|
}
|
|
7653
7651
|
class Kh extends Wn {
|
|
@@ -7922,7 +7920,7 @@ class Qh extends q {
|
|
|
7922
7920
|
m(h);
|
|
7923
7921
|
}
|
|
7924
7922
|
}
|
|
7925
|
-
var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", Rl = "#d2a106", kl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400",
|
|
7923
|
+
var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21b", Rl = "#d2a106", kl = "#b28600", Dl = "#8e6a00", Nl = "#684e00", Pl = "#483700", Vl = "#302400", Gl = "#1c1500", Bl = {
|
|
7926
7924
|
10: Cl,
|
|
7927
7925
|
20: _l,
|
|
7928
7926
|
30: Il,
|
|
@@ -7932,7 +7930,7 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
7932
7930
|
70: Nl,
|
|
7933
7931
|
80: Pl,
|
|
7934
7932
|
90: Vl,
|
|
7935
|
-
100:
|
|
7933
|
+
100: Gl
|
|
7936
7934
|
}, Hl = "#fff2e8", $l = "#ffd9be", Ul = "#ffb784", zl = "#ff832b", Fl = "#eb6200", Wl = "#ba4e00", jl = "#8a3800", Xl = "#5e2900", Zl = "#3e1a00", Yl = "#231000", ql = {
|
|
7937
7935
|
10: Hl,
|
|
7938
7936
|
20: $l,
|
|
@@ -7977,7 +7975,7 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
7977
7975
|
80: Ac,
|
|
7978
7976
|
90: wc,
|
|
7979
7977
|
100: Mc
|
|
7980
|
-
}, _c = "#edf5ff", Ic = "#d0e2ff", Rc = "#a6c8ff", kc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c",
|
|
7978
|
+
}, _c = "#edf5ff", Ic = "#d0e2ff", Rc = "#a6c8ff", kc = "#78a9ff", Dc = "#4589ff", Nc = "#0f62fe", Pc = "#0043ce", Vc = "#002d9c", Gc = "#001d6c", Bc = "#001141", Hc = {
|
|
7981
7979
|
10: _c,
|
|
7982
7980
|
20: Ic,
|
|
7983
7981
|
30: Rc,
|
|
@@ -7986,8 +7984,8 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
7986
7984
|
60: Nc,
|
|
7987
7985
|
70: Pc,
|
|
7988
7986
|
80: Vc,
|
|
7989
|
-
90:
|
|
7990
|
-
100:
|
|
7987
|
+
90: Gc,
|
|
7988
|
+
100: Bc
|
|
7991
7989
|
}, $c = "#e5f6ff", Uc = "#bae6ff", zc = "#82cfff", Fc = "#33b1ff", Wc = "#1192e8", jc = "#0072c3", Xc = "#00539a", Zc = "#003a6d", Yc = "#012749", qc = "#061727", Kc = {
|
|
7992
7990
|
10: $c,
|
|
7993
7991
|
20: Uc,
|
|
@@ -8032,7 +8030,7 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
8032
8030
|
80: wd,
|
|
8033
8031
|
90: Md,
|
|
8034
8032
|
100: Cd
|
|
8035
|
-
}, Id = "#f4f4f4", Rd = "#e0e0e0", kd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252",
|
|
8033
|
+
}, Id = "#f4f4f4", Rd = "#e0e0e0", kd = "#c6c6c6", Dd = "#a8a8a8", Nd = "#8d8d8d", Pd = "#6f6f6f", Vd = "#525252", Gd = "#393939", Bd = "#262626", Hd = "#161616", $d = {
|
|
8036
8034
|
10: Id,
|
|
8037
8035
|
20: Rd,
|
|
8038
8036
|
30: kd,
|
|
@@ -8040,8 +8038,8 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
8040
8038
|
50: Nd,
|
|
8041
8039
|
60: Pd,
|
|
8042
8040
|
70: Vd,
|
|
8043
|
-
80:
|
|
8044
|
-
90:
|
|
8041
|
+
80: Gd,
|
|
8042
|
+
90: Bd,
|
|
8045
8043
|
100: Hd
|
|
8046
8044
|
}, Ud = "#f7f3f2", zd = "#e5e0df", Fd = "#cac5c4", Wd = "#ada8a8", jd = "#8f8b8b", Xd = "#726e6e", Zd = "#565151", Yd = "#3c3838", qd = "#272525", Kd = "#171414", Jd = {
|
|
8047
8045
|
10: Ud,
|
|
@@ -8072,7 +8070,7 @@ var wl = "#000000", Ml = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
8072
8070
|
white: {
|
|
8073
8071
|
0: Ml
|
|
8074
8072
|
},
|
|
8075
|
-
yellow:
|
|
8073
|
+
yellow: Bl
|
|
8076
8074
|
};
|
|
8077
8075
|
const Qd = (o) => {
|
|
8078
8076
|
if (!o)
|
|
@@ -8552,14 +8550,14 @@ export {
|
|
|
8552
8550
|
ul as C,
|
|
8553
8551
|
Lh as D,
|
|
8554
8552
|
nu as E,
|
|
8555
|
-
|
|
8553
|
+
Bh as F,
|
|
8556
8554
|
yh as G,
|
|
8557
8555
|
ml as H,
|
|
8558
8556
|
Hh as I,
|
|
8559
8557
|
$h as J,
|
|
8560
8558
|
Uh as K,
|
|
8561
8559
|
hl as L,
|
|
8562
|
-
|
|
8560
|
+
Gh as M,
|
|
8563
8561
|
zh as N,
|
|
8564
8562
|
Fh as O,
|
|
8565
8563
|
bh as P,
|
|
@@ -8611,4 +8609,4 @@ export {
|
|
|
8611
8609
|
Oh as y,
|
|
8612
8610
|
Th as z
|
|
8613
8611
|
};
|
|
8614
|
-
//# sourceMappingURL=choropleth-
|
|
8612
|
+
//# sourceMappingURL=choropleth-8ZwwWcHd.mjs.map
|