@carbon/charts 1.14.6 → 1.14.7
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 +9 -0
- package/dist/{_baseEach-OI3ptUEq.mjs → _baseEach-HYEdUZwo.mjs} +2 -2
- package/dist/{_baseEach-OI3ptUEq.mjs.map → _baseEach-HYEdUZwo.mjs.map} +1 -1
- package/dist/{angle-utils-0zbAbkd9.mjs → angle-utils-OmWRg48c.mjs} +2 -2
- package/dist/{angle-utils-0zbAbkd9.mjs.map → angle-utils-OmWRg48c.mjs.map} +1 -1
- package/dist/{choropleth-WzFMZXLV.mjs → choropleth-3h8ShsdZ.mjs} +345 -341
- package/dist/{choropleth-WzFMZXLV.mjs.map → choropleth-3h8ShsdZ.mjs.map} +1 -1
- package/dist/{color-scale-utils-XZIkoI99.mjs → color-scale-utils-JIM28DuF.mjs} +53 -54
- package/dist/color-scale-utils-JIM28DuF.mjs.map +1 -0
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +4 -4
- package/dist/demo/styles.css +1 -0
- 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/umd/bundle.umd.js +7 -7
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-zimgwsA4.mjs → wordcloud-SYB4uocC.mjs} +3 -3
- package/dist/{wordcloud-zimgwsA4.mjs.map → wordcloud-SYB4uocC.mjs.map} +1 -1
- package/dist/{zoom-I8iYRlbb.mjs → zoom-97HkNhv7.mjs} +3 -3
- package/dist/{zoom-I8iYRlbb.mjs.map → zoom-97HkNhv7.mjs.map} +1 -1
- package/package.json +2 -2
- package/scss/demos.scss +1 -0
- package/dist/color-scale-utils-XZIkoI99.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
2
|
-
import { select as x, pointer 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
|
|
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 Fa, a7 as za, m as v, n as we, x as dt, a0 as us, A as ne, s as de, a8 as Ot, K as Me, a2 as Wa, z as Js, t as ja, a9 as He, c as gn, b as mn, P as ke, 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 Mt, af as Qt, v as Ka, ag as ps, _ as ze } from "./color-scale-utils-JIM28DuF.mjs";
|
|
2
|
+
import { select as x, pointer as zt, 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-OmWRg48c.mjs";
|
|
4
|
+
import { y as j, _ as f, K as ie, r as $e, q as tt, L as xi, A as Ce, m as z, 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 wt, 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 Mi, sankeyJustify as wi, 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-HYEdUZwo.mjs";
|
|
8
8
|
import Ii from "d3-cloud";
|
|
9
9
|
function ki(o, e, t, n) {
|
|
10
10
|
var s = -1, a = o == null ? 0 : o.length;
|
|
@@ -212,9 +212,9 @@ var Di = {
|
|
|
212
212
|
ſ: "s"
|
|
213
213
|
}, Ni = Ri(Di);
|
|
214
214
|
const Pi = Ni;
|
|
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 + "]",
|
|
216
|
-
function
|
|
217
|
-
return o = Ys(o), o && o.replace(Vi, Pi).replace(
|
|
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 + "]", Fi = RegExp(Ui, "g");
|
|
216
|
+
function zi(o) {
|
|
217
|
+
return o = Ys(o), o && o.replace(Vi, Pi).replace(Fi, "");
|
|
218
218
|
}
|
|
219
219
|
var Wi = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
220
220
|
function ji(o) {
|
|
@@ -243,7 +243,7 @@ function yr(o, e, t) {
|
|
|
243
243
|
var Er = "['’]", br = RegExp(Er, "g");
|
|
244
244
|
function Sr(o) {
|
|
245
245
|
return function(e) {
|
|
246
|
-
return ki(yr(
|
|
246
|
+
return ki(yr(zi(e).replace(br, "")), o, "");
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
function Or(o, e, t) {
|
|
@@ -280,12 +280,12 @@ function wr(o, e) {
|
|
|
280
280
|
}), !!t;
|
|
281
281
|
}
|
|
282
282
|
function Cr(o, e, t) {
|
|
283
|
-
var n = qs(o) ?
|
|
284
|
-
return t &&
|
|
283
|
+
var n = qs(o) ? Fa : wr;
|
|
284
|
+
return t && za(o, e, t) && (e = void 0), n(o, Ks(e));
|
|
285
285
|
}
|
|
286
286
|
class q {
|
|
287
287
|
constructor(e, t, n) {
|
|
288
|
-
if (this.type = "", this.renderType =
|
|
288
|
+
if (this.type = "", this.renderType = j.HTML, this.id = "", this.parent = void 0, this.configs = {}, this.model = e, this.services = t, n && (this.configs = n, this.configs.id)) {
|
|
289
289
|
const s = v(this.model.getOptions(), "style", "prefix");
|
|
290
290
|
this.id = `${s}--${this.configs.id}`;
|
|
291
291
|
}
|
|
@@ -328,7 +328,7 @@ class q {
|
|
|
328
328
|
if (this.type) {
|
|
329
329
|
const t = v(this.model.getOptions(), "style", "prefix"), n = this.id ? `#${this.id}` : "", s = S.appendOrSelect(
|
|
330
330
|
this.parent,
|
|
331
|
-
`${this.renderType ===
|
|
331
|
+
`${this.renderType === j.SVG ? "svg" : "div"}${n}.${we}--${t}--${this.type}`
|
|
332
332
|
);
|
|
333
333
|
if (e.withinChartClip) {
|
|
334
334
|
const a = this.model.get("chartClipId");
|
|
@@ -434,10 +434,10 @@ function kt(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"]), Gr = Ee(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), As = Ee(["#text"]), Ms = 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"]), ws = 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"]), Rt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = Re(/<%[\w\W]*|[\w\W]*%>/gm), $r = Re(/\${[\w\W]*}/gm), Ur = Re(/^data-[\-\w.\u00B7-\uFFFF]/),
|
|
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"]), Ms = 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"]), ws = 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"]), Rt = Ee(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Br = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Hr = Re(/<%[\w\W]*|[\w\W]*%>/gm), $r = Re(/\${[\w\W]*}/gm), Ur = Re(/^data-[\-\w.\u00B7-\uFFFF]/), Fr = Re(/^aria-[\-\w]+$/), Oa = Re(
|
|
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
|
+
), zr = Re(/^(?:\w+script|data):/i), Wr = Re(
|
|
441
441
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
442
442
|
// eslint-disable-line no-control-regex
|
|
443
443
|
), xa = Re(/^html$/i);
|
|
@@ -447,9 +447,9 @@ var Cs = /* @__PURE__ */ Object.freeze({
|
|
|
447
447
|
ERB_EXPR: Hr,
|
|
448
448
|
TMPLIT_EXPR: $r,
|
|
449
449
|
DATA_ATTR: Ur,
|
|
450
|
-
ARIA_ATTR:
|
|
450
|
+
ARIA_ATTR: Fr,
|
|
451
451
|
IS_ALLOWED_URI: Oa,
|
|
452
|
-
IS_SCRIPT_OR_DATA:
|
|
452
|
+
IS_SCRIPT_OR_DATA: zr,
|
|
453
453
|
ATTR_WHITESPACE: Wr,
|
|
454
454
|
DOCTYPE_NAME: xa
|
|
455
455
|
});
|
|
@@ -505,14 +505,14 @@ function Ta() {
|
|
|
505
505
|
createDocumentFragment: I,
|
|
506
506
|
getElementsByTagName: N
|
|
507
507
|
} = t, {
|
|
508
|
-
importNode:
|
|
508
|
+
importNode: W
|
|
509
509
|
} = n;
|
|
510
|
-
let
|
|
510
|
+
let k = {};
|
|
511
511
|
e.isSupported = typeof ba == "function" && typeof T == "function" && M && M.createHTMLDocument !== void 0;
|
|
512
512
|
const {
|
|
513
513
|
MUSTACHE_EXPR: C,
|
|
514
514
|
ERB_EXPR: V,
|
|
515
|
-
TMPLIT_EXPR:
|
|
515
|
+
TMPLIT_EXPR: F,
|
|
516
516
|
DATA_ATTR: w,
|
|
517
517
|
ARIA_ATTR: Q,
|
|
518
518
|
IS_SCRIPT_OR_DATA: me,
|
|
@@ -543,7 +543,7 @@ function Ta() {
|
|
|
543
543
|
enumerable: !0,
|
|
544
544
|
value: !1
|
|
545
545
|
}
|
|
546
|
-
})), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1,
|
|
546
|
+
})), Ie = null, qe = null, U = !0, J = !0, ae = !1, re = !0, ce = !1, Te = !1, _ = !1, D = !1, P = !1, Le = !1, Tt = !1, jn = !0, Xn = !1;
|
|
547
547
|
const _a = "user-content-";
|
|
548
548
|
let Xt = !0, pt = !1, Ke = {}, Je = null;
|
|
549
549
|
const Zn = Y({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -576,7 +576,7 @@ function Ta() {
|
|
|
576
576
|
// eslint-disable-line indent
|
|
577
577
|
he
|
|
578
578
|
// eslint-disable-line indent
|
|
579
|
-
) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1,
|
|
579
|
+
) : qn, Je = "FORBID_CONTENTS" in b ? Y({}, b.FORBID_CONTENTS, he) : Zn, Ie = "FORBID_TAGS" in b ? Y({}, b.FORBID_TAGS, he) : {}, qe = "FORBID_ATTR" in b ? Y({}, b.FORBID_ATTR, he) : {}, Ke = "USE_PROFILES" in b ? b.USE_PROFILES : !1, U = b.ALLOW_ARIA_ATTR !== !1, J = b.ALLOW_DATA_ATTR !== !1, ae = b.ALLOW_UNKNOWN_PROTOCOLS || !1, re = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = b.SAFE_FOR_TEMPLATES || !1, Te = b.WHOLE_DOCUMENT || !1, P = b.RETURN_DOM || !1, Le = b.RETURN_DOM_FRAGMENT || !1, Tt = b.RETURN_TRUSTED_TYPE || !1, D = b.FORCE_BODY || !1, jn = b.SANITIZE_DOM !== !1, Xn = b.SANITIZE_NAMED_PROPS || !1, Xt = b.KEEP_CONTENT !== !1, pt = b.IN_PLACE || !1, H = b.ALLOWED_URI_REGEXP || Oa, Qe = b.NAMESPACE || Ne, se = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (se.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Jn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (se.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (se.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (J = !1), Le && (P = !0), Ke && (Z = Y({}, As), le = [], Ke.html === !0 && (Y(Z, Ls), Y(le, Ms)), Ke.svg === !0 && (Y(Z, cn), Y(le, un), Y(le, Rt)), Ke.svgFilters === !0 && (Y(Z, dn), Y(le, un), Y(le, Rt)), Ke.mathMl === !0 && (Y(Z, hn), Y(le, ws), Y(le, Rt))), b.ADD_TAGS && (Z === ut && (Z = Xe(Z)), Y(Z, b.ADD_TAGS, he)), b.ADD_ATTR && (le === Ye && (le = Xe(le)), Y(le, b.ADD_ATTR, he)), b.ADD_URI_SAFE_ATTR && Y(Zt, b.ADD_URI_SAFE_ATTR, he), b.FORBID_CONTENTS && (Je === Zn && (Je = Xe(Je)), Y(Je, b.FORBID_CONTENTS, he)), Xt && (Z["#text"] = !0), Te && Y(Z, ["html", "head", "body"]), Z.table && (Y(Z, ["tbody"]), delete Ie.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
580
580
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
581
581
|
throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
582
582
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -587,13 +587,13 @@ function Ta() {
|
|
|
587
587
|
Ee && Ee(b), et = b;
|
|
588
588
|
}
|
|
589
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
|
-
let
|
|
591
|
-
(!
|
|
590
|
+
let R = T(b);
|
|
591
|
+
(!R || !R.tagName) && (R = {
|
|
592
592
|
namespaceURI: Qe,
|
|
593
593
|
tagName: "template"
|
|
594
594
|
});
|
|
595
|
-
const B = Nt(b.tagName), ee = Nt(
|
|
596
|
-
return qt[b.namespaceURI] ? b.namespaceURI === At ?
|
|
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
|
|
@@ -603,32 +603,32 @@ function Ta() {
|
|
|
603
603
|
} catch {
|
|
604
604
|
b.remove();
|
|
605
605
|
}
|
|
606
|
-
}, Jt = function(b,
|
|
606
|
+
}, Jt = function(b, R) {
|
|
607
607
|
try {
|
|
608
608
|
vt(e.removed, {
|
|
609
|
-
attribute:
|
|
610
|
-
from:
|
|
609
|
+
attribute: R.getAttributeNode(b),
|
|
610
|
+
from: R
|
|
611
611
|
});
|
|
612
612
|
} catch {
|
|
613
613
|
vt(e.removed, {
|
|
614
614
|
attribute: null,
|
|
615
|
-
from:
|
|
615
|
+
from: R
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
if (
|
|
618
|
+
if (R.removeAttribute(b), b === "is" && !le[b])
|
|
619
619
|
if (P || Le)
|
|
620
620
|
try {
|
|
621
|
-
Ue(
|
|
621
|
+
Ue(R);
|
|
622
622
|
} catch {
|
|
623
623
|
}
|
|
624
624
|
else
|
|
625
625
|
try {
|
|
626
|
-
|
|
626
|
+
R.setAttribute(b, "");
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
}, ss = function(b) {
|
|
630
|
-
let
|
|
631
|
-
if (
|
|
630
|
+
let R = null, B = null;
|
|
631
|
+
if (D)
|
|
632
632
|
b = "<remove></remove>" + b;
|
|
633
633
|
else {
|
|
634
634
|
const ve = kr(b, /^[\r\n\t ]+/);
|
|
@@ -638,18 +638,18 @@ function Ta() {
|
|
|
638
638
|
const ee = y ? y.createHTML(b) : b;
|
|
639
639
|
if (Qe === Ne)
|
|
640
640
|
try {
|
|
641
|
-
|
|
641
|
+
R = new h().parseFromString(ee, gt);
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
|
-
if (!
|
|
645
|
-
|
|
644
|
+
if (!R || !R.documentElement) {
|
|
645
|
+
R = M.createDocument(Qe, "template", null);
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
R.documentElement.innerHTML = Yt ? A : ee;
|
|
648
648
|
} catch {
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
const fe =
|
|
652
|
-
return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? N.call(
|
|
651
|
+
const fe = R.body || R.documentElement;
|
|
652
|
+
return b && B && fe.insertBefore(t.createTextNode(B), fe.childNodes[0] || null), Qe === Ne ? N.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,12 +662,12 @@ 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,
|
|
666
|
-
|
|
667
|
-
ee.call(e,
|
|
665
|
+
}, Pe = function(b, R, B) {
|
|
666
|
+
k[b] && It(k[b], (ee) => {
|
|
667
|
+
ee.call(e, R, B, et);
|
|
668
668
|
});
|
|
669
669
|
}, rs = function(b) {
|
|
670
|
-
let
|
|
670
|
+
let R = null;
|
|
671
671
|
if (Pe("beforeSanitizeElements", b, null), Va(b))
|
|
672
672
|
return Ue(b), !0;
|
|
673
673
|
const B = he(b.nodeName);
|
|
@@ -689,29 +689,29 @@ function Ta() {
|
|
|
689
689
|
}
|
|
690
690
|
return Ue(b), !0;
|
|
691
691
|
}
|
|
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 && (
|
|
693
|
-
|
|
694
|
-
}), b.textContent !==
|
|
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, F], (ee) => {
|
|
693
|
+
R = yt(R, ee, " ");
|
|
694
|
+
}), b.textContent !== R && (vt(e.removed, {
|
|
695
695
|
element: b.cloneNode()
|
|
696
|
-
}), b.textContent =
|
|
697
|
-
}, os = function(b,
|
|
698
|
-
if (jn && (
|
|
696
|
+
}), b.textContent = R)), Pe("afterSanitizeElements", b, null), !1);
|
|
697
|
+
}, os = function(b, R, B) {
|
|
698
|
+
if (jn && (R === "id" || R === "name") && (B in t || B in Da))
|
|
699
699
|
return !1;
|
|
700
|
-
if (!(J && !qe[
|
|
701
|
-
if (!(U && Oe(Q,
|
|
702
|
-
if (!le[
|
|
700
|
+
if (!(J && !qe[R] && Oe(w, R))) {
|
|
701
|
+
if (!(U && Oe(Q, R))) {
|
|
702
|
+
if (!le[R] || qe[R]) {
|
|
703
703
|
if (
|
|
704
704
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
705
705
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
706
706
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
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,
|
|
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
|
-
|
|
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
|
-
} else if (!Zt[
|
|
712
|
+
} else if (!Zt[R]) {
|
|
713
713
|
if (!Oe(H, yt(B, K, ""))) {
|
|
714
|
-
if (!((
|
|
714
|
+
if (!((R === "src" || R === "xlink:href" || R === "href") && b !== "script" && Rr(B, "data:") === 0 && Yn[b])) {
|
|
715
715
|
if (!(ae && !Oe(me, yt(B, K, "")))) {
|
|
716
716
|
if (B)
|
|
717
717
|
return !1;
|
|
@@ -727,9 +727,9 @@ function Ta() {
|
|
|
727
727
|
}, cs = function(b) {
|
|
728
728
|
Pe("beforeSanitizeAttributes", b, null);
|
|
729
729
|
const {
|
|
730
|
-
attributes:
|
|
730
|
+
attributes: R
|
|
731
731
|
} = b;
|
|
732
|
-
if (!
|
|
732
|
+
if (!R)
|
|
733
733
|
return;
|
|
734
734
|
const B = {
|
|
735
735
|
attrName: "",
|
|
@@ -737,21 +737,21 @@ function Ta() {
|
|
|
737
737
|
keepAttr: !0,
|
|
738
738
|
allowedAttributes: le
|
|
739
739
|
};
|
|
740
|
-
let ee =
|
|
740
|
+
let ee = R.length;
|
|
741
741
|
for (; ee--; ) {
|
|
742
|
-
const fe =
|
|
742
|
+
const fe = R[ee], {
|
|
743
743
|
name: ve,
|
|
744
744
|
namespaceURI: be,
|
|
745
|
-
value:
|
|
745
|
+
value: Fe
|
|
746
746
|
} = fe, mt = he(ve);
|
|
747
|
-
let Se = ve === "value" ?
|
|
747
|
+
let Se = ve === "value" ? Fe : Dr(Fe);
|
|
748
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);
|
|
752
752
|
continue;
|
|
753
753
|
}
|
|
754
|
-
ce && It([C, V,
|
|
754
|
+
ce && It([C, V, F], (hs) => {
|
|
755
755
|
Se = yt(Se, hs, " ");
|
|
756
756
|
});
|
|
757
757
|
const ds = he(b.nodeName);
|
|
@@ -775,14 +775,14 @@ function Ta() {
|
|
|
775
775
|
}
|
|
776
776
|
Pe("afterSanitizeAttributes", b, null);
|
|
777
777
|
}, Ga = function $(b) {
|
|
778
|
-
let
|
|
778
|
+
let R = null;
|
|
779
779
|
const B = as(b);
|
|
780
|
-
for (Pe("beforeSanitizeShadowDOM", b, null);
|
|
781
|
-
Pe("uponSanitizeShadowNode",
|
|
780
|
+
for (Pe("beforeSanitizeShadowDOM", b, null); R = B.nextNode(); )
|
|
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] : {},
|
|
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")
|
|
@@ -793,56 +793,56 @@ function Ta() {
|
|
|
793
793
|
return $;
|
|
794
794
|
if (_ || Kt(b), e.removed = [], typeof $ == "string" && (pt = !1), pt) {
|
|
795
795
|
if ($.nodeName) {
|
|
796
|
-
const
|
|
797
|
-
if (!Z[
|
|
796
|
+
const Fe = he($.nodeName);
|
|
797
|
+
if (!Z[Fe] || Ie[Fe])
|
|
798
798
|
throw Et("root node is forbidden and cannot be sanitized in-place");
|
|
799
799
|
}
|
|
800
800
|
} else if ($ instanceof r)
|
|
801
|
-
|
|
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)
|
|
805
805
|
return y && Tt ? y.createHTML($) : $;
|
|
806
|
-
if (
|
|
806
|
+
if (R = ss($), !R)
|
|
807
807
|
return P ? null : Tt ? A : "";
|
|
808
808
|
}
|
|
809
|
-
|
|
810
|
-
const ve = as(pt ? $ :
|
|
809
|
+
R && D && Ue(R.firstChild);
|
|
810
|
+
const ve = as(pt ? $ : R);
|
|
811
811
|
for (; ee = ve.nextNode(); )
|
|
812
812
|
rs(ee) || (ee.content instanceof a && Ga(ee.content), cs(ee));
|
|
813
813
|
if (pt)
|
|
814
814
|
return $;
|
|
815
815
|
if (P) {
|
|
816
816
|
if (Le)
|
|
817
|
-
for (fe = I.call(
|
|
818
|
-
fe.appendChild(
|
|
817
|
+
for (fe = I.call(R.ownerDocument); R.firstChild; )
|
|
818
|
+
fe.appendChild(R.firstChild);
|
|
819
819
|
else
|
|
820
|
-
fe =
|
|
821
|
-
return (le.shadowroot || le.shadowrootmode) && (fe =
|
|
820
|
+
fe = R;
|
|
821
|
+
return (le.shadowroot || le.shadowrootmode) && (fe = W.call(n, fe, !0)), fe;
|
|
822
822
|
}
|
|
823
|
-
let be = Te ?
|
|
824
|
-
return Te && Z["!doctype"] &&
|
|
825
|
-
` + be), ce && It([C, V,
|
|
826
|
-
be = yt(be,
|
|
823
|
+
let be = Te ? R.outerHTML : R.innerHTML;
|
|
824
|
+
return Te && Z["!doctype"] && R.ownerDocument && R.ownerDocument.doctype && R.ownerDocument.doctype.name && Oe(xa, R.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + R.ownerDocument.doctype.name + `>
|
|
825
|
+
` + be), ce && It([C, V, F], (Fe) => {
|
|
826
|
+
be = yt(be, Fe, " ");
|
|
827
827
|
}), y && Tt ? y.createHTML(be) : be;
|
|
828
828
|
}, e.setConfig = function() {
|
|
829
829
|
let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
830
830
|
Kt($), _ = !0;
|
|
831
831
|
}, e.clearConfig = function() {
|
|
832
832
|
et = null, _ = !1;
|
|
833
|
-
}, e.isValidAttribute = function($, b,
|
|
833
|
+
}, e.isValidAttribute = function($, b, R) {
|
|
834
834
|
et || Kt({});
|
|
835
835
|
const B = he($), ee = he(b);
|
|
836
|
-
return os(B, ee,
|
|
836
|
+
return os(B, ee, R);
|
|
837
837
|
}, e.addHook = function($, b) {
|
|
838
|
-
typeof b == "function" && (
|
|
838
|
+
typeof b == "function" && (k[$] = k[$] || [], vt(k[$], b));
|
|
839
839
|
}, e.removeHook = function($) {
|
|
840
|
-
if (
|
|
841
|
-
return Ts(
|
|
840
|
+
if (k[$])
|
|
841
|
+
return Ts(k[$]);
|
|
842
842
|
}, e.removeHooks = function($) {
|
|
843
|
-
|
|
843
|
+
k[$] && (k[$] = []);
|
|
844
844
|
}, e.removeAllHooks = function() {
|
|
845
|
-
|
|
845
|
+
k = {};
|
|
846
846
|
}, e;
|
|
847
847
|
}
|
|
848
848
|
var Un = Ta();
|
|
@@ -861,7 +861,7 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
861
861
|
}
|
|
862
862
|
}), De = (o) => Un.sanitize(o, { ALLOWED_TAGS: [] }), Ut = class Ut extends q {
|
|
863
863
|
constructor() {
|
|
864
|
-
super(...arguments), this.type = "toolbar", this.renderType =
|
|
864
|
+
super(...arguments), this.type = "toolbar", this.renderType = j.HTML;
|
|
865
865
|
}
|
|
866
866
|
init() {
|
|
867
867
|
const e = () => this.updateOverflowMenu(!1);
|
|
@@ -1209,9 +1209,9 @@ const Dt = (o) => Un.sanitize(o, {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
Ut.buttonID = 0;
|
|
1211
1211
|
let _s = Ut;
|
|
1212
|
-
const
|
|
1212
|
+
const Ft = class Ft extends q {
|
|
1213
1213
|
constructor(e, t, n, s) {
|
|
1214
|
-
super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID =
|
|
1214
|
+
super(e, t, s), this.type = "layout", this.configs = s, this.children = n, this._instanceID = Ft.instanceID++, this.init();
|
|
1215
1215
|
}
|
|
1216
1216
|
init() {
|
|
1217
1217
|
this.children.forEach((e) => {
|
|
@@ -1252,7 +1252,7 @@ const zt = class zt extends q {
|
|
|
1252
1252
|
).selectAll(`div.layout-child-${this._instanceID}`).data(this.children, (d) => d.id);
|
|
1253
1253
|
r.enter().append("div").merge(t.selectAll(`div.layout-child-${this._instanceID}`)).attr("class", (d) => `layout-child layout-child-${this._instanceID} ${d.id}`).each(function(d) {
|
|
1254
1254
|
d.components.forEach((p) => {
|
|
1255
|
-
const h = x(this), g = v(d, "renderType") ===
|
|
1255
|
+
const h = x(this), g = v(d, "renderType") === j.SVG;
|
|
1256
1256
|
p.setParent(
|
|
1257
1257
|
g ? S.appendOrSelect(h, "svg.layout-svg-wrapper").attr("width", "100%").attr("height", "100%") : h
|
|
1258
1258
|
);
|
|
@@ -1260,7 +1260,7 @@ const zt = class zt extends q {
|
|
|
1260
1260
|
(m === $e.PREFERRED || m === $e.FIXED) && p.render(e);
|
|
1261
1261
|
});
|
|
1262
1262
|
}), t.selectAll(`div.layout-child-${this._instanceID}`).style("height", null).style("width", null).each(function(d) {
|
|
1263
|
-
const p = v(d, "growth"), u = v(d, "renderType") ===
|
|
1263
|
+
const p = v(d, "growth"), u = v(d, "renderType") === j.SVG ? S.getSVGElementSize(x(this).select("svg.layout-svg-wrapper"), {
|
|
1264
1264
|
useBBox: !0
|
|
1265
1265
|
}) : S.getHTMLElementSize(this);
|
|
1266
1266
|
if (p === $e.PREFERRED) {
|
|
@@ -1295,8 +1295,8 @@ const zt = class zt extends q {
|
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
|
-
|
|
1299
|
-
let Is =
|
|
1298
|
+
Ft.instanceID = Math.floor(Math.random() * 99999999999);
|
|
1299
|
+
let Is = Ft;
|
|
1300
1300
|
class dh extends q {
|
|
1301
1301
|
constructor() {
|
|
1302
1302
|
super(...arguments), this.type = "spacer";
|
|
@@ -1994,8 +1994,8 @@ function $o(o) {
|
|
|
1994
1994
|
return e;
|
|
1995
1995
|
}
|
|
1996
1996
|
var Uo = [Ro, $o];
|
|
1997
|
-
const
|
|
1998
|
-
function
|
|
1997
|
+
const Fo = Uo;
|
|
1998
|
+
function zo(o) {
|
|
1999
1999
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
2000
2000
|
}
|
|
2001
2001
|
var Ma = function() {
|
|
@@ -2025,7 +2025,7 @@ process.env.NODE_ENV !== "production" && (Ma = function(o, e, t) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
});
|
|
2027
2027
|
var Wo = Ma;
|
|
2028
|
-
const jo = /* @__PURE__ */
|
|
2028
|
+
const jo = /* @__PURE__ */ zo(Wo);
|
|
2029
2029
|
function In(o) {
|
|
2030
2030
|
"@babel/helpers - typeof";
|
|
2031
2031
|
return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -2380,7 +2380,7 @@ var ll = /* @__PURE__ */ function(o) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
)
|
|
2382
2382
|
}]), t.components = /* @__PURE__ */ new WeakMap(), t;
|
|
2383
|
-
}(so(ho, el,
|
|
2383
|
+
}(so(ho, el, Fo, bo));
|
|
2384
2384
|
const cl = ll;
|
|
2385
2385
|
class hh extends q {
|
|
2386
2386
|
constructor(e, t, n) {
|
|
@@ -2460,7 +2460,7 @@ class hh extends q {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
class dl extends q {
|
|
2462
2462
|
constructor() {
|
|
2463
|
-
super(...arguments), this.type = "title", this.renderType =
|
|
2463
|
+
super(...arguments), this.type = "title", this.renderType = j.HTML;
|
|
2464
2464
|
}
|
|
2465
2465
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2466
2466
|
// @ts-ignore
|
|
@@ -2537,7 +2537,7 @@ class dl extends q {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
class hl extends q {
|
|
2539
2539
|
constructor() {
|
|
2540
|
-
super(...arguments), this.type = "legend", this.renderType =
|
|
2540
|
+
super(...arguments), this.type = "legend", this.renderType = j.HTML;
|
|
2541
2541
|
}
|
|
2542
2542
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2543
2543
|
// @ts-ignore
|
|
@@ -2559,7 +2559,7 @@ class hl extends q {
|
|
|
2559
2559
|
).attr("aria-checked", ({ status: T }) => T === de.items.status.ACTIVE).attr("width", g * 2).attr("height", g * 2).attr(
|
|
2560
2560
|
"class",
|
|
2561
2561
|
(T) => this.model.getColorClassName({
|
|
2562
|
-
classNameTypes: [
|
|
2562
|
+
classNameTypes: [z.BACKGROUND],
|
|
2563
2563
|
dataGroupName: T.name,
|
|
2564
2564
|
originalClassName: "checkbox"
|
|
2565
2565
|
})
|
|
@@ -2686,7 +2686,7 @@ class hl extends q {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
class ul extends q {
|
|
2688
2688
|
constructor(e, t, n) {
|
|
2689
|
-
super(e, t, n), this.type = "chart-clip", this.renderType =
|
|
2689
|
+
super(e, t, n), this.type = "chart-clip", this.renderType = j.SVG, this.chartClipId = "chart-clip-id-" + Math.floor(Math.random() * 99999999999), this.init();
|
|
2690
2690
|
}
|
|
2691
2691
|
init() {
|
|
2692
2692
|
this.model.set({ chartClipId: this.chartClipId }, { skipUpdate: !0 });
|
|
@@ -2848,7 +2848,7 @@ var Hs = (at = {}, at[ge.LEFT] = function(o, e, t) {
|
|
|
2848
2848
|
new jt();
|
|
2849
2849
|
class pl extends q {
|
|
2850
2850
|
constructor(e, t, n) {
|
|
2851
|
-
super(e, t, n), this.type = "tooltip", this.renderType =
|
|
2851
|
+
super(e, t, n), this.type = "tooltip", this.renderType = j.HTML, this.isEventListenerAdded = !1, this.positionService = new jt(), this.handleShowTooltip = (s) => {
|
|
2852
2852
|
const a = s.detail.data || s.detail.items;
|
|
2853
2853
|
let i;
|
|
2854
2854
|
const r = this.formatItems(this.getItems(s));
|
|
@@ -2946,7 +2946,7 @@ class pl extends q {
|
|
|
2946
2946
|
const t = this.services.domUtils.getHolder(), n = this.tooltip.node(), s = this.getOptions(), a = v(s, "zoomBar", "top", "enabled");
|
|
2947
2947
|
let i = v(e, "detail", "mousePosition");
|
|
2948
2948
|
if (!i)
|
|
2949
|
-
i =
|
|
2949
|
+
i = zt(v(e, "detail", "event"), t);
|
|
2950
2950
|
else {
|
|
2951
2951
|
const h = v(s, "zoomBar", "top", "type"), u = Me.height[h];
|
|
2952
2952
|
a && (i[1] += u + Me.spacerHeight);
|
|
@@ -2984,7 +2984,7 @@ class pl extends q {
|
|
|
2984
2984
|
}
|
|
2985
2985
|
const ct = class ct extends q {
|
|
2986
2986
|
constructor() {
|
|
2987
|
-
super(...arguments), this.type = "grid-brush", this.renderType =
|
|
2987
|
+
super(...arguments), this.type = "grid-brush", this.renderType = j.SVG, this.selectionSelector = "rect.selection", this.frontSelectionSelector = "rect.frontSelection";
|
|
2988
2988
|
}
|
|
2989
2989
|
// needs to match the class name in _grid-brush.scss
|
|
2990
2990
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -3008,10 +3008,10 @@ const ct = class ct extends q {
|
|
|
3008
3008
|
const m = (M) => {
|
|
3009
3009
|
const L = M[1] - M[0];
|
|
3010
3010
|
let I = "0," + L.toString();
|
|
3011
|
-
const N = Math.floor(l / ct.DASH_LENGTH),
|
|
3012
|
-
for (let
|
|
3011
|
+
const N = Math.floor(l / ct.DASH_LENGTH), W = N * ct.DASH_LENGTH;
|
|
3012
|
+
for (let k = 0; k < N; k++)
|
|
3013
3013
|
I += "," + ct.DASH_LENGTH;
|
|
3014
|
-
I += "," + (l -
|
|
3014
|
+
I += "," + (l - W), N % 2 === 1 && (I += ",0"), I += "," + L.toString(), I += "," + l.toString(), u.attr("stroke-dasharray", I);
|
|
3015
3015
|
}, E = (M) => {
|
|
3016
3016
|
const L = M.selection;
|
|
3017
3017
|
L === null || L[0] === L[1] || (u.attr("x", parseFloat(i.attr("x")) + parseFloat(s.attr("x"))).attr("y", i.attr("y")).attr("width", i.attr("width")).attr("height", i.attr("height")).style("cursor", "pointer").style("display", null), m(L));
|
|
@@ -3032,11 +3032,11 @@ const ct = class ct extends q {
|
|
|
3032
3032
|
const A = this.services.zoom.getZoomRatio();
|
|
3033
3033
|
s.on("click", function(M) {
|
|
3034
3034
|
if (M.shiftKey) {
|
|
3035
|
-
const L = this.services.domUtils.getHolder(), I =
|
|
3035
|
+
const L = this.services.domUtils.getHolder(), I = zt(a.node(), L)[0];
|
|
3036
3036
|
let N = I - r * A / 2;
|
|
3037
3037
|
N < 0 && (N = 0);
|
|
3038
|
-
let
|
|
3039
|
-
|
|
3038
|
+
let W = I + r * A / 2;
|
|
3039
|
+
W > r && (W = r), O(N, W);
|
|
3040
3040
|
}
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
@@ -3046,7 +3046,7 @@ ct.DASH_LENGTH = 4;
|
|
|
3046
3046
|
let Us = ct;
|
|
3047
3047
|
class ph extends q {
|
|
3048
3048
|
constructor() {
|
|
3049
|
-
super(...arguments), this.type = "zoom-bar", this.renderType =
|
|
3049
|
+
super(...arguments), this.type = "zoom-bar", this.renderType = j.SVG, this.MIN_SELECTION_DIFF = 9e-10, this.brushSelector = "g.zoom-bar-brush", this.clipId = "zoomBarClip-" + Math.floor(Math.random() * 99999999999), this.brush = Qs(), this.highlightStrokeWidth = 1;
|
|
3050
3050
|
}
|
|
3051
3051
|
init() {
|
|
3052
3052
|
this.services.events.addEventListener(f.ZoomBar.UPDATE, this.render.bind(this));
|
|
@@ -3106,17 +3106,17 @@ class ph extends q {
|
|
|
3106
3106
|
), this.xScale.range([c, l]).domain(O), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, r - 6]).domain(Wt(E, (L) => L.value));
|
|
3107
3107
|
const A = this.model.get("zoomDomain");
|
|
3108
3108
|
if (a === nt.GRAPH_VIEW && (this.renderZoomBarArea(p, "path.zoom-graph-area-unselected", E, null), this.updateClipPath(t, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(p, "path.zoom-graph-area", E, this.clipId), this.renderZoomBarBaseline(p, c, l), i)) {
|
|
3109
|
-
const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, N = i.color,
|
|
3110
|
-
i.data.forEach((
|
|
3111
|
-
S.appendOrSelect(p, `rect.highlight-${C}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(
|
|
3109
|
+
const L = i.highlightStartMapsTo, I = i.highlightEndMapsTo, N = i.color, W = i.labelMapsTo;
|
|
3110
|
+
i.data.forEach((k, C) => {
|
|
3111
|
+
S.appendOrSelect(p, `rect.highlight-${C}`).attr("height", r - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[L])).attr(
|
|
3112
3112
|
"width",
|
|
3113
|
-
this.xScale(
|
|
3113
|
+
this.xScale(k[I]) - this.xScale(k[L])
|
|
3114
3114
|
).style(
|
|
3115
3115
|
"fill",
|
|
3116
|
-
N && N.scale[
|
|
3116
|
+
N && N.scale[k[W]] ? N.scale[k[W]] : null
|
|
3117
3117
|
).style("fill-opacity", 0.1).style(
|
|
3118
3118
|
"stroke",
|
|
3119
|
-
N && N.scale[
|
|
3119
|
+
N && N.scale[k[W]] ? N.scale[k[W]] : null
|
|
3120
3120
|
).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
|
|
3121
3121
|
});
|
|
3122
3122
|
}
|
|
@@ -3240,7 +3240,7 @@ class ph extends q {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
class gh extends q {
|
|
3242
3242
|
constructor(e, t) {
|
|
3243
|
-
super(e, t), this.type = "threshold", this.renderType =
|
|
3243
|
+
super(e, t), this.type = "threshold", this.renderType = j.SVG, this.positionService = new jt();
|
|
3244
3244
|
}
|
|
3245
3245
|
render(e = !1) {
|
|
3246
3246
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
@@ -3272,36 +3272,36 @@ class gh extends q {
|
|
|
3272
3272
|
), g = p.services.cartesianScales.getScaleTypeByPosition(h);
|
|
3273
3273
|
let m = null, E = null;
|
|
3274
3274
|
h === G.LEFT || h === G.RIGHT ? (E = u, m = p.services.cartesianScales.getMainXScale()) : (m = u, E = p.services.cartesianScales.getMainYScale());
|
|
3275
|
-
const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), N = (
|
|
3275
|
+
const O = g === ue.LABELS, [T, y] = m.range(), [A, M] = E.range(), { cartesianScales: L } = p.services, I = L.getOrientation(), N = (F) => L.getDomainValue(F), W = (F) => L.getRangeValue(F), [k, C] = He(
|
|
3276
3276
|
N,
|
|
3277
|
-
|
|
3277
|
+
W,
|
|
3278
3278
|
I
|
|
3279
3279
|
), V = x(this);
|
|
3280
3280
|
h === G.TOP || h === G.BOTTOM ? (V.selectAll("line.threshold-line").transition().call(
|
|
3281
|
-
(
|
|
3282
|
-
transition:
|
|
3281
|
+
(F) => p.services.transitions.setupTransition({
|
|
3282
|
+
transition: F,
|
|
3283
3283
|
name: "threshold-line-update",
|
|
3284
3284
|
animate: e
|
|
3285
3285
|
})
|
|
3286
3286
|
).attr("y1", M).attr("y2", A).attr(
|
|
3287
3287
|
"x1",
|
|
3288
|
-
({ datum:
|
|
3288
|
+
({ datum: F }) => k(F) + (O ? u.step() / 2 : 0)
|
|
3289
3289
|
).attr(
|
|
3290
3290
|
"x2",
|
|
3291
|
-
({ datum:
|
|
3292
|
-
).style("stroke", ({ fillColor:
|
|
3293
|
-
(
|
|
3294
|
-
transition:
|
|
3291
|
+
({ datum: F }) => k(F) + (O ? u.step() / 2 : 0)
|
|
3292
|
+
).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: F }) => -k(F)).attr("width", Math.abs(A - M)).classed("rotate", !0)) : (V.selectAll("line.threshold-line").transition().call(
|
|
3293
|
+
(F) => p.services.transitions.setupTransition({
|
|
3294
|
+
transition: F,
|
|
3295
3295
|
name: "threshold-line-update",
|
|
3296
3296
|
animate: e
|
|
3297
3297
|
})
|
|
3298
3298
|
).attr("x1", T).attr("x2", y).attr(
|
|
3299
3299
|
"y1",
|
|
3300
|
-
({ datum:
|
|
3300
|
+
({ datum: F }) => C(F) + (O ? u.step() / 2 : 0)
|
|
3301
3301
|
).attr(
|
|
3302
3302
|
"y2",
|
|
3303
|
-
({ datum:
|
|
3304
|
-
).style("stroke", ({ fillColor:
|
|
3303
|
+
({ datum: F }) => C(F) + (O ? u.step() / 2 : 0)
|
|
3304
|
+
).style("stroke", ({ fillColor: F }) => F), V.selectAll("rect.threshold-hoverable-area").attr("x", T).attr("y", ({ datum: F }) => C(F)).attr("width", Math.abs(y - T)).classed("rotate", !1));
|
|
3305
3305
|
}), this.services.events.addEventListener(f.Threshold.SHOW, (h) => {
|
|
3306
3306
|
this.setThresholdLabelPosition(h.detail), this.label.classed("hidden", !1);
|
|
3307
3307
|
}), this.services.events.addEventListener(f.Threshold.HIDE, () => {
|
|
@@ -3327,7 +3327,7 @@ class gh extends q {
|
|
|
3327
3327
|
).classed("hidden", !0);
|
|
3328
3328
|
}
|
|
3329
3329
|
setThresholdLabelPosition({ event: e, datum: t }) {
|
|
3330
|
-
const n = this.services.domUtils.getHolder(), s =
|
|
3330
|
+
const n = this.services.domUtils.getHolder(), s = zt(e, n), a = t.valueFormatter ? t.valueFormatter(t.value) : this.getFormattedValue(t);
|
|
3331
3331
|
this.label.html(De(`${t.label || "Threshold"}: ${a}`)).style("background-color", t.fillColor);
|
|
3332
3332
|
const i = this.label.node(), r = this.positionService.findBestPlacementAt(
|
|
3333
3333
|
{
|
|
@@ -3378,7 +3378,7 @@ class gh extends q {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
class mh extends q {
|
|
3380
3380
|
constructor(e, t) {
|
|
3381
|
-
super(e, t), this.type = "highlight", this.renderType =
|
|
3381
|
+
super(e, t), this.type = "highlight", this.renderType = j.SVG, this.positionService = new jt(), this.highlightStrokeWidth = 1;
|
|
3382
3382
|
}
|
|
3383
3383
|
render(e = !1) {
|
|
3384
3384
|
const t = v(this.getOptions(), "axes"), n = [];
|
|
@@ -3407,30 +3407,30 @@ class mh extends q {
|
|
|
3407
3407
|
c.append("rect").attr("class", "highlight-bar"), c.append("line").attr("class", "highlight-line"), c.merge(l).attr("class", "highlight-group");
|
|
3408
3408
|
const p = this;
|
|
3409
3409
|
r.each(function({ axisPosition: h }) {
|
|
3410
|
-
const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (
|
|
3410
|
+
const u = p.services.cartesianScales.getMainXScale(), g = p.services.cartesianScales.getMainYScale(), [m, E] = u.range(), [O, T] = g.range(), { cartesianScales: y } = p.services, A = y.getOrientation(), M = (k) => y.getDomainValue(k), L = (k) => y.getRangeValue(k), [I, N] = He(
|
|
3411
3411
|
M,
|
|
3412
3412
|
L,
|
|
3413
3413
|
A
|
|
3414
|
-
),
|
|
3415
|
-
h === G.TOP || h === G.BOTTOM ?
|
|
3416
|
-
(
|
|
3417
|
-
transition:
|
|
3414
|
+
), W = x(this);
|
|
3415
|
+
h === G.TOP || h === G.BOTTOM ? W.selectAll("rect.highlight-bar").transition().call(
|
|
3416
|
+
(k) => p.services.transitions.setupTransition({
|
|
3417
|
+
transition: k,
|
|
3418
3418
|
name: "highlight-bar-update",
|
|
3419
3419
|
animate: e
|
|
3420
3420
|
})
|
|
3421
|
-
).attr("y", Math.max(T + p.highlightStrokeWidth, 0)).attr("height", Math.max(O - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo:
|
|
3421
|
+
).attr("y", Math.max(T + p.highlightStrokeWidth, 0)).attr("height", Math.max(O - 2 * p.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...C }) => I(C[k])).attr(
|
|
3422
3422
|
"width",
|
|
3423
|
-
({ highlightStartMapsTo:
|
|
3424
|
-
).style("stroke", ({ color:
|
|
3425
|
-
(
|
|
3426
|
-
transition:
|
|
3423
|
+
({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(I(V[C]) - I(V[k]), 0)
|
|
3424
|
+
).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null) : W.selectAll("rect.highlight-bar").transition().call(
|
|
3425
|
+
(k) => p.services.transitions.setupTransition({
|
|
3426
|
+
transition: k,
|
|
3427
3427
|
name: "highlight-bar-update",
|
|
3428
3428
|
animate: e
|
|
3429
3429
|
})
|
|
3430
|
-
).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo:
|
|
3430
|
+
).attr("x", m).attr("width", Math.max(E - m, 0)).attr("y", ({ highlightEndMapsTo: k, ...C }) => N(C[k])).attr(
|
|
3431
3431
|
"height",
|
|
3432
|
-
({ highlightStartMapsTo:
|
|
3433
|
-
).style("stroke", ({ color:
|
|
3432
|
+
({ highlightStartMapsTo: k, highlightEndMapsTo: C, ...V }) => Math.max(N(V[k]) - N(V[C]), 0)
|
|
3433
|
+
).style("stroke", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", p.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: C, ...V }) => k && k.scale[V[C]] ? k.scale[V[C]] : null);
|
|
3434
3434
|
});
|
|
3435
3435
|
}
|
|
3436
3436
|
}
|
|
@@ -3485,7 +3485,7 @@ class fh extends pl {
|
|
|
3485
3485
|
value: h[r],
|
|
3486
3486
|
color: this.model.getFillColor(h[r]),
|
|
3487
3487
|
class: this.model.getColorClassName({
|
|
3488
|
-
classNameTypes: [
|
|
3488
|
+
classNameTypes: [z.TOOLTIP],
|
|
3489
3489
|
dataGroupName: h[r]
|
|
3490
3490
|
})
|
|
3491
3491
|
});
|
|
@@ -3502,7 +3502,7 @@ class fh extends pl {
|
|
|
3502
3502
|
value: Array.isArray(u) && u.length === 2 ? `${u[0]} - ${u[1]}` : u,
|
|
3503
3503
|
color: this.model.getFillColor(h[r]),
|
|
3504
3504
|
class: this.model.getColorClassName({
|
|
3505
|
-
classNameTypes: [
|
|
3505
|
+
classNameTypes: [z.TOOLTIP],
|
|
3506
3506
|
dataGroupName: h[r]
|
|
3507
3507
|
})
|
|
3508
3508
|
};
|
|
@@ -3523,7 +3523,7 @@ class fh extends pl {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
class vh extends q {
|
|
3525
3525
|
constructor() {
|
|
3526
|
-
super(...arguments), this.type = "alluvial", this.renderType =
|
|
3526
|
+
super(...arguments), this.type = "alluvial", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999);
|
|
3527
3527
|
}
|
|
3528
3528
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3529
3529
|
// @ts-ignore
|
|
@@ -3584,11 +3584,11 @@ class vh extends q {
|
|
|
3584
3584
|
"id",
|
|
3585
3585
|
(y) => this.services.domUtils.generateElementIDString(`alluvial-line-${y.index}`)
|
|
3586
3586
|
).attr("class", (y) => a.alluvial.monochrome ? this.model.getColorClassName({
|
|
3587
|
-
classNameTypes: [
|
|
3587
|
+
classNameTypes: [z.STROKE],
|
|
3588
3588
|
dataGroupName: 0,
|
|
3589
3589
|
originalClassName: "link"
|
|
3590
3590
|
}) : this.model.getColorClassName({
|
|
3591
|
-
classNameTypes: [
|
|
3591
|
+
classNameTypes: [z.STROKE],
|
|
3592
3592
|
dataGroupName: y.source.index,
|
|
3593
3593
|
originalClassName: "link"
|
|
3594
3594
|
})).style("stroke", (y) => r ? `url(#${this.gradient_id}-link-${y.index})` : this.model.getFillColor(y.source.name, null, {
|
|
@@ -3772,7 +3772,7 @@ class vh extends q {
|
|
|
3772
3772
|
}
|
|
3773
3773
|
class yh extends q {
|
|
3774
3774
|
constructor() {
|
|
3775
|
-
super(...arguments), this.type = "grid", this.renderType =
|
|
3775
|
+
super(...arguments), this.type = "grid", this.renderType = j.SVG;
|
|
3776
3776
|
}
|
|
3777
3777
|
render(e = !0) {
|
|
3778
3778
|
const t = v(this.getOptions(), "grid", "x", "enabled"), n = v(this.getOptions(), "grid", "y", "enabled");
|
|
@@ -3868,7 +3868,7 @@ class yh extends q {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
class Eh extends q {
|
|
3870
3870
|
constructor() {
|
|
3871
|
-
super(...arguments), this.type = "area", this.renderType =
|
|
3871
|
+
super(...arguments), this.type = "area", this.renderType = j.SVG, this.gradient_id = "gradient-id-" + Math.floor(Math.random() * 99999999999), this.handleLegendOnHover = (e) => {
|
|
3872
3872
|
const { hoveredElement: t } = e.detail;
|
|
3873
3873
|
this.parent.selectAll("path.area").transition("legend-hover-area").call(
|
|
3874
3874
|
(n) => this.services.transitions.setupTransition({
|
|
@@ -3912,7 +3912,7 @@ class Eh extends q {
|
|
|
3912
3912
|
if (E) {
|
|
3913
3913
|
const M = T.select(
|
|
3914
3914
|
`path.${this.model.getColorClassName({
|
|
3915
|
-
classNameTypes: [
|
|
3915
|
+
classNameTypes: [z.STROKE],
|
|
3916
3916
|
dataGroupName: l[0].name
|
|
3917
3917
|
})}`
|
|
3918
3918
|
).node();
|
|
@@ -3952,7 +3952,7 @@ class Eh extends q {
|
|
|
3952
3952
|
).attr("class", "area").attr(
|
|
3953
3953
|
"class",
|
|
3954
3954
|
(M) => this.model.getColorClassName({
|
|
3955
|
-
classNameTypes: [
|
|
3955
|
+
classNameTypes: [z.FILL],
|
|
3956
3956
|
dataGroupName: M.name,
|
|
3957
3957
|
originalClassName: "area"
|
|
3958
3958
|
})
|
|
@@ -3962,7 +3962,7 @@ class Eh extends q {
|
|
|
3962
3962
|
}) : (A.attr("opacity", 0).merge(O).attr("class", "area").attr(
|
|
3963
3963
|
"class",
|
|
3964
3964
|
(M) => this.model.getColorClassName({
|
|
3965
|
-
classNameTypes: [
|
|
3965
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
3966
3966
|
dataGroupName: M.name,
|
|
3967
3967
|
originalClassName: "area"
|
|
3968
3968
|
})
|
|
@@ -3984,7 +3984,7 @@ class Eh extends q {
|
|
|
3984
3984
|
}
|
|
3985
3985
|
class bh extends q {
|
|
3986
3986
|
constructor() {
|
|
3987
|
-
super(...arguments), this.type = "line", this.renderType =
|
|
3987
|
+
super(...arguments), this.type = "line", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
3988
3988
|
const { hoveredElement: t } = e.detail;
|
|
3989
3989
|
this.parent.selectAll("path.line").transition("legend-hover-line").call(
|
|
3990
3990
|
(n) => this.services.transitions.setupTransition({
|
|
@@ -4038,7 +4038,7 @@ class bh extends q {
|
|
|
4038
4038
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("line", !0).attr("opacity", 0).merge(h).data(p, (g) => g.name).attr(
|
|
4039
4039
|
"class",
|
|
4040
4040
|
(g) => this.model.getColorClassName({
|
|
4041
|
-
classNameTypes: [
|
|
4041
|
+
classNameTypes: [z.STROKE],
|
|
4042
4042
|
dataGroupName: g.name,
|
|
4043
4043
|
originalClassName: "line"
|
|
4044
4044
|
})
|
|
@@ -4064,13 +4064,13 @@ class bh extends q {
|
|
|
4064
4064
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
|
-
const
|
|
4067
|
+
const Fs = 5;
|
|
4068
4068
|
function gl(o, e) {
|
|
4069
|
-
return o > e -
|
|
4069
|
+
return o > e - Fs && o < e + Fs;
|
|
4070
4070
|
}
|
|
4071
4071
|
class wa extends q {
|
|
4072
4072
|
constructor() {
|
|
4073
|
-
super(...arguments), this.type = "ruler", this.renderType =
|
|
4073
|
+
super(...arguments), this.type = "ruler", this.renderType = j.SVG, this.isXGridEnabled = v(this.getOptions(), "grid", "x", "enabled"), this.isYGridEnabled = v(this.getOptions(), "grid", "y", "enabled"), this.isEventListenerAdded = !1;
|
|
4074
4074
|
}
|
|
4075
4075
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
4076
4076
|
// @ts-ignore
|
|
@@ -4135,7 +4135,7 @@ class wa extends q {
|
|
|
4135
4135
|
this.isEventListenerAdded = !0;
|
|
4136
4136
|
const e = this, t = this.services.domUtils.getHolder(), n = this.model.getDisplayData();
|
|
4137
4137
|
let s = function(a) {
|
|
4138
|
-
const i =
|
|
4138
|
+
const i = zt(a, e.parent.node());
|
|
4139
4139
|
e.showRuler(a, i);
|
|
4140
4140
|
};
|
|
4141
4141
|
if (n.length > 100) {
|
|
@@ -4156,9 +4156,9 @@ class wa extends q {
|
|
|
4156
4156
|
this.backdrop = S.appendOrSelect(e, "svg.chart-grid-backdrop");
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
class
|
|
4159
|
+
class Fn extends q {
|
|
4160
4160
|
constructor() {
|
|
4161
|
-
super(...arguments), this.type = "scatter", this.renderType =
|
|
4161
|
+
super(...arguments), this.type = "scatter", this.renderType = j.SVG, this.handleChartHolderOnHover = () => {
|
|
4162
4162
|
if (!this.parent)
|
|
4163
4163
|
throw new Error("Parent not defined");
|
|
4164
4164
|
this.parent.selectAll("circle.dot").transition("chart-holder-hover-scatter").call(
|
|
@@ -4292,7 +4292,7 @@ class zn extends q {
|
|
|
4292
4292
|
i.getOrientation()
|
|
4293
4293
|
), { fadeInOnChartHolderMouseover: h } = this.configs;
|
|
4294
4294
|
e.raise().classed("dot", !0).attr("class", (u) => {
|
|
4295
|
-
const g = i.getDomainIdentifier(u), E = this.model.getIsFilled(u[r], u[g], u, s) ? [
|
|
4295
|
+
const g = i.getDomainIdentifier(u), E = this.model.getIsFilled(u[r], u[g], u, s) ? [z.FILL, z.STROKE] : [z.STROKE];
|
|
4296
4296
|
return this.model.getColorClassName({
|
|
4297
4297
|
classNameTypes: E,
|
|
4298
4298
|
dataGroupName: u[r],
|
|
@@ -4342,7 +4342,7 @@ class zn extends q {
|
|
|
4342
4342
|
a.classed("hovered", !0).attr(
|
|
4343
4343
|
"class",
|
|
4344
4344
|
(l) => e.model.getColorClassName({
|
|
4345
|
-
classNameTypes: [
|
|
4345
|
+
classNameTypes: [z.FILL],
|
|
4346
4346
|
dataGroupName: l[t],
|
|
4347
4347
|
originalClassName: a.attr("class")
|
|
4348
4348
|
})
|
|
@@ -4412,7 +4412,7 @@ class zn extends q {
|
|
|
4412
4412
|
}
|
|
4413
4413
|
class Ca extends q {
|
|
4414
4414
|
constructor(e, t, n) {
|
|
4415
|
-
super(e, t, n), this.type = "axes", this.renderType =
|
|
4415
|
+
super(e, t, n), this.type = "axes", this.renderType = j.SVG, this.truncation = {
|
|
4416
4416
|
[G.LEFT]: !1,
|
|
4417
4417
|
[G.RIGHT]: !1,
|
|
4418
4418
|
[G.TOP]: !1,
|
|
@@ -4452,10 +4452,10 @@ class Ca extends q {
|
|
|
4452
4452
|
g.attr("aria-hidden", !0);
|
|
4453
4453
|
return;
|
|
4454
4454
|
}
|
|
4455
|
-
const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), N = v(E, "truncation", "type"),
|
|
4455
|
+
const A = v(E, "scaleType"), M = v(n, "data", "loading"), L = v(E, "ticks", "number"), I = v(E, "ticks", "values"), N = v(E, "truncation", "type"), W = v(E, "truncation", "threshold"), k = v(E, "truncation", "numCharacter"), C = L !== null, V = v(n, "timeScale"), F = S.appendOrSelect(m, "g.tick"), w = S.appendOrSelect(F, "text").text("0"), Q = S.getSVGElementSize(w.node(), {
|
|
4456
4456
|
useBBox: !0
|
|
4457
4457
|
}).height;
|
|
4458
|
-
|
|
4458
|
+
F.remove();
|
|
4459
4459
|
const me = this.scaleType || E.scaleType || ue.LINEAR, K = h(p).tickSizeOuter(0);
|
|
4460
4460
|
if (p.ticks) {
|
|
4461
4461
|
let U;
|
|
@@ -4612,9 +4612,9 @@ class Ca extends q {
|
|
|
4612
4612
|
l.selectAll("g.ticks g.tick").html(J);
|
|
4613
4613
|
const ae = this;
|
|
4614
4614
|
l.selectAll("g.tick text").data(U).text(function(re) {
|
|
4615
|
-
return re.length >
|
|
4615
|
+
return re.length > W ? (ae.truncation[t] = !0, Ot(re, N, k)) : re;
|
|
4616
4616
|
}), this.getInvisibleAxisRef().selectAll("g.tick text").data(U).text(function(re) {
|
|
4617
|
-
return re.length >
|
|
4617
|
+
return re.length > W ? Ot(re, N, k) : re;
|
|
4618
4618
|
}), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(U);
|
|
4619
4619
|
}
|
|
4620
4620
|
}
|
|
@@ -4777,7 +4777,7 @@ class ml extends Ca {
|
|
|
4777
4777
|
}
|
|
4778
4778
|
class Sh extends q {
|
|
4779
4779
|
constructor() {
|
|
4780
|
-
super(...arguments), this.type = "2D-axes", this.renderType =
|
|
4780
|
+
super(...arguments), this.type = "2D-axes", this.renderType = j.SVG, this.children = {}, this.thresholds = [], this.margins = {
|
|
4781
4781
|
top: 0,
|
|
4782
4782
|
right: 0,
|
|
4783
4783
|
bottom: 0,
|
|
@@ -4942,7 +4942,7 @@ class fl extends q {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
class Oh extends q {
|
|
4944
4944
|
constructor() {
|
|
4945
|
-
super(...arguments), this.type = "boxplot", this.renderType =
|
|
4945
|
+
super(...arguments), this.type = "boxplot", this.renderType = j.SVG;
|
|
4946
4946
|
}
|
|
4947
4947
|
render(e) {
|
|
4948
4948
|
const t = this.getComponentContainer({ withinChartClip: !0 }), n = this.getOptions(), { groupMapsTo: s } = n.data, a = this.model.getDataGroupNames(), i = this.services.cartesianScales.getMainXScale(), r = this.services.cartesianScales.getMainYScale(), [l, c] = i.range(), [d, p] = r.range(), h = c - l, u = d - p;
|
|
@@ -4958,7 +4958,7 @@ class Oh extends q {
|
|
|
4958
4958
|
I.append("path").merge(L.select("path.vertical-line.start")).attr(
|
|
4959
4959
|
"class",
|
|
4960
4960
|
() => this.model.getColorClassName({
|
|
4961
|
-
classNameTypes: [
|
|
4961
|
+
classNameTypes: [z.STROKE],
|
|
4962
4962
|
originalClassName: "vertical-line start"
|
|
4963
4963
|
})
|
|
4964
4964
|
).attr("stroke-width", Ae.strokeWidth.default).attr("fill", "none").transition().call(
|
|
@@ -4968,12 +4968,12 @@ class Oh extends q {
|
|
|
4968
4968
|
animate: e
|
|
4969
4969
|
})
|
|
4970
4970
|
).attr("d", (C) => {
|
|
4971
|
-
const V = g.getDomainValue(C[s]),
|
|
4972
|
-
return ye({ x0: V, x1:
|
|
4971
|
+
const V = g.getDomainValue(C[s]), F = V, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.quartiles.q_25);
|
|
4972
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
4973
4973
|
}), I.append("path").merge(L.select("path.vertical-line.end")).attr(
|
|
4974
4974
|
"class",
|
|
4975
4975
|
() => this.model.getColorClassName({
|
|
4976
|
-
classNameTypes: [
|
|
4976
|
+
classNameTypes: [z.STROKE],
|
|
4977
4977
|
originalClassName: "vertical-line end"
|
|
4978
4978
|
})
|
|
4979
4979
|
).attr("stroke-width", Ae.strokeWidth.default).attr("fill", "none").transition().call(
|
|
@@ -4983,12 +4983,12 @@ class Oh extends q {
|
|
|
4983
4983
|
animate: e
|
|
4984
4984
|
})
|
|
4985
4985
|
).attr("d", (C) => {
|
|
4986
|
-
const V = g.getDomainValue(C[s]),
|
|
4987
|
-
return ye({ x0: V, x1:
|
|
4986
|
+
const V = g.getDomainValue(C[s]), F = V, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.quartiles.q_75);
|
|
4987
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
4988
4988
|
}), I.append("path").merge(L.select("path.box")).attr(
|
|
4989
4989
|
"class",
|
|
4990
4990
|
() => this.model.getColorClassName({
|
|
4991
|
-
classNameTypes: [
|
|
4991
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
4992
4992
|
originalClassName: "box"
|
|
4993
4993
|
})
|
|
4994
4994
|
).attr("fill-opacity", Ae.box.opacity.default).attr("stroke-width", Ae.strokeWidth.default).attr("role", X.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (C) => C[s]).transition().call(
|
|
@@ -4998,19 +4998,19 @@ class Oh extends q {
|
|
|
4998
4998
|
animate: e
|
|
4999
4999
|
})
|
|
5000
5000
|
).attr("d", (C) => {
|
|
5001
|
-
const V = g.getDomainValue(C[s]) - A / 2,
|
|
5001
|
+
const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(
|
|
5002
5002
|
Math[E ? "max" : "min"](C.quartiles.q_75, C.quartiles.q_25)
|
|
5003
5003
|
), Q = w + Math.abs(
|
|
5004
5004
|
g.getRangeValue(C.quartiles.q_75) - g.getRangeValue(C.quartiles.q_25)
|
|
5005
5005
|
);
|
|
5006
|
-
return ye({ x0: V, x1:
|
|
5006
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
5007
5007
|
}), I.append("path").merge(L.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (C) => {
|
|
5008
|
-
const V = g.getDomainValue(C[s]) - A / 2,
|
|
5009
|
-
return ye({ x0: V, x1:
|
|
5008
|
+
const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.max);
|
|
5009
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
5010
5010
|
}), I.append("path").merge(L.select("path.whisker.start")).attr(
|
|
5011
5011
|
"class",
|
|
5012
5012
|
() => this.model.getColorClassName({
|
|
5013
|
-
classNameTypes: [
|
|
5013
|
+
classNameTypes: [z.STROKE],
|
|
5014
5014
|
originalClassName: "whisker start"
|
|
5015
5015
|
})
|
|
5016
5016
|
).attr("stroke-width", Ae.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
@@ -5020,12 +5020,12 @@ class Oh extends q {
|
|
|
5020
5020
|
animate: e
|
|
5021
5021
|
})
|
|
5022
5022
|
).attr("d", (C) => {
|
|
5023
|
-
const V = g.getDomainValue(C[s]) - A / 4,
|
|
5024
|
-
return ye({ x0: V, x1:
|
|
5023
|
+
const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, w = g.getRangeValue(C.whiskers.min), Q = g.getRangeValue(C.whiskers.min);
|
|
5024
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
5025
5025
|
}), I.append("path").merge(L.select("path.median")).attr("fill", "none").attr(
|
|
5026
5026
|
"class",
|
|
5027
5027
|
() => this.model.getColorClassName({
|
|
5028
|
-
classNameTypes: [
|
|
5028
|
+
classNameTypes: [z.STROKE],
|
|
5029
5029
|
originalClassName: "median"
|
|
5030
5030
|
})
|
|
5031
5031
|
).attr("stroke-width", 2).transition().call(
|
|
@@ -5035,12 +5035,12 @@ class Oh extends q {
|
|
|
5035
5035
|
animate: e
|
|
5036
5036
|
})
|
|
5037
5037
|
).attr("d", (C) => {
|
|
5038
|
-
const V = g.getDomainValue(C[s]) - A / 2,
|
|
5039
|
-
return ye({ x0: V, x1:
|
|
5038
|
+
const V = g.getDomainValue(C[s]) - A / 2, F = V + A, w = g.getRangeValue(C.quartiles.q_50);
|
|
5039
|
+
return ye({ x0: V, x1: F, y0: w, y1: w }, m);
|
|
5040
5040
|
}), I.append("path").merge(L.select("path.whisker.end")).attr(
|
|
5041
5041
|
"class",
|
|
5042
5042
|
() => this.model.getColorClassName({
|
|
5043
|
-
classNameTypes: [
|
|
5043
|
+
classNameTypes: [z.STROKE],
|
|
5044
5044
|
originalClassName: "whisker end"
|
|
5045
5045
|
})
|
|
5046
5046
|
).attr("stroke-width", Ae.strokeWidth.thicker).attr("fill", "none").transition().call(
|
|
@@ -5050,10 +5050,10 @@ class Oh extends q {
|
|
|
5050
5050
|
animate: e
|
|
5051
5051
|
})
|
|
5052
5052
|
).attr("d", (C) => {
|
|
5053
|
-
const V = g.getDomainValue(C[s]) - A / 4,
|
|
5054
|
-
return ye({ x0: V, x1:
|
|
5053
|
+
const V = g.getDomainValue(C[s]) - A / 4, F = V + A / 2, w = g.getRangeValue(C.whiskers.max), Q = g.getRangeValue(C.whiskers.max);
|
|
5054
|
+
return ye({ x0: V, x1: F, y0: w, y1: Q }, m);
|
|
5055
5055
|
});
|
|
5056
|
-
const
|
|
5056
|
+
const W = N.selectAll("circle.outlier").data(
|
|
5057
5057
|
(C) => C.outliers.map((V) => ({
|
|
5058
5058
|
min: C.whiskers.min,
|
|
5059
5059
|
max: C.whiskers.max,
|
|
@@ -5061,12 +5061,12 @@ class Oh extends q {
|
|
|
5061
5061
|
value: V
|
|
5062
5062
|
}))
|
|
5063
5063
|
);
|
|
5064
|
-
|
|
5065
|
-
const
|
|
5066
|
-
|
|
5064
|
+
W.exit().remove();
|
|
5065
|
+
const k = W.enter().append("circle");
|
|
5066
|
+
W.merge(k).attr("r", Ae.circle.radius).attr(
|
|
5067
5067
|
"class",
|
|
5068
5068
|
() => this.model.getColorClassName({
|
|
5069
|
-
classNameTypes: [
|
|
5069
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
5070
5070
|
originalClassName: "outlier"
|
|
5071
5071
|
})
|
|
5072
5072
|
).attr("fill-opacity", Ae.circle.opacity.default).attr("cx", O).transition().call(
|
|
@@ -5089,7 +5089,7 @@ class Oh extends q {
|
|
|
5089
5089
|
label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
|
|
5090
5090
|
value: a[n],
|
|
5091
5091
|
class: e.model.getColorClassName({
|
|
5092
|
-
classNameTypes: [
|
|
5092
|
+
classNameTypes: [z.TOOLTIP]
|
|
5093
5093
|
})
|
|
5094
5094
|
},
|
|
5095
5095
|
{
|
|
@@ -5160,7 +5160,7 @@ class Oh extends q {
|
|
|
5160
5160
|
label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
|
|
5161
5161
|
value: i[n],
|
|
5162
5162
|
class: e.model.getColorClassName({
|
|
5163
|
-
classNameTypes: [
|
|
5163
|
+
classNameTypes: [z.TOOLTIP]
|
|
5164
5164
|
})
|
|
5165
5165
|
},
|
|
5166
5166
|
{
|
|
@@ -5202,7 +5202,7 @@ class Oh extends q {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
class xh extends q {
|
|
5204
5204
|
constructor() {
|
|
5205
|
-
super(...arguments), this.type = "zero-line", this.renderType =
|
|
5205
|
+
super(...arguments), this.type = "zero-line", this.renderType = j.SVG;
|
|
5206
5206
|
}
|
|
5207
5207
|
render(e) {
|
|
5208
5208
|
const t = this.services.cartesianScales.getRangeAxisPosition({
|
|
@@ -5233,9 +5233,9 @@ class xh extends q {
|
|
|
5233
5233
|
).attr("y1", p.y0).attr("y2", p.y1).attr("x1", p.x0).attr("x2", p.x1);
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
|
-
class Th extends
|
|
5236
|
+
class Th extends Fn {
|
|
5237
5237
|
constructor() {
|
|
5238
|
-
super(...arguments), this.type = "bubble", this.renderType =
|
|
5238
|
+
super(...arguments), this.type = "bubble", this.renderType = j.SVG;
|
|
5239
5239
|
}
|
|
5240
5240
|
getRadiusScale(e) {
|
|
5241
5241
|
const t = this.getOptions(), { radiusMapsTo: n } = t.bubble, s = e.data(), a = s.map((c) => c[n]).filter((c) => c), i = S.getHTMLElementSize(this.services.domUtils.getMainContainer()), r = a.length > 0, l = r ? Wt(a) : [1, 1];
|
|
@@ -5259,7 +5259,7 @@ class Th extends zn {
|
|
|
5259
5259
|
).attr("cx", d).attr("cy", p).attr("r", (h) => a(h[s] || 1)).attr(
|
|
5260
5260
|
"class",
|
|
5261
5261
|
(h) => this.model.getColorClassName({
|
|
5262
|
-
classNameTypes: [
|
|
5262
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
5263
5263
|
dataGroupName: h[i],
|
|
5264
5264
|
originalClassName: "dot"
|
|
5265
5265
|
})
|
|
@@ -5283,7 +5283,7 @@ class Th extends zn {
|
|
|
5283
5283
|
}
|
|
5284
5284
|
class Lh extends q {
|
|
5285
5285
|
constructor() {
|
|
5286
|
-
super(...arguments), this.type = "bullet", this.renderType =
|
|
5286
|
+
super(...arguments), this.type = "bullet", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
5287
5287
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
5288
5288
|
this.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call(
|
|
5289
5289
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -5344,7 +5344,7 @@ class Lh extends q {
|
|
|
5344
5344
|
).attr(
|
|
5345
5345
|
"class",
|
|
5346
5346
|
(O) => this.model.getColorClassName({
|
|
5347
|
-
classNameTypes: [
|
|
5347
|
+
classNameTypes: [z.FILL],
|
|
5348
5348
|
dataGroupName: O[n],
|
|
5349
5349
|
originalClassName: "bar"
|
|
5350
5350
|
})
|
|
@@ -5423,7 +5423,7 @@ class Lh extends q {
|
|
|
5423
5423
|
label: v(t, "locale", "translations", "group") || v(t, "tooltip", "groupLabel") || "Group",
|
|
5424
5424
|
value: l[n],
|
|
5425
5425
|
class: e.model.getColorClassName({
|
|
5426
|
-
classNameTypes: [
|
|
5426
|
+
classNameTypes: [z.TOOLTIP],
|
|
5427
5427
|
dataGroupName: l[n]
|
|
5428
5428
|
})
|
|
5429
5429
|
},
|
|
@@ -5497,14 +5497,14 @@ function El(o, e) {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
function bl(o, e) {
|
|
5499
5499
|
return typeof e == "string" && (e = o.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
5500
|
-
return
|
|
5501
|
-
}) } :
|
|
5500
|
+
return zs(o, t);
|
|
5501
|
+
}) } : zs(o, e);
|
|
5502
5502
|
}
|
|
5503
|
-
function
|
|
5504
|
-
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a =
|
|
5503
|
+
function zs(o, e) {
|
|
5504
|
+
var t = e.id, n = e.bbox, s = e.properties == null ? {} : e.properties, a = zn(o, e);
|
|
5505
5505
|
return t == null && n == null ? { type: "Feature", properties: s, geometry: a } : n == null ? { type: "Feature", id: t, properties: s, geometry: a } : { type: "Feature", id: t, bbox: n, properties: s, geometry: a };
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function zn(o, e) {
|
|
5508
5508
|
var t = yl(o.transform), n = o.arcs;
|
|
5509
5509
|
function s(d, p) {
|
|
5510
5510
|
p.length && p.pop();
|
|
@@ -5606,7 +5606,7 @@ function Ol(o) {
|
|
|
5606
5606
|
return Math.abs(a);
|
|
5607
5607
|
}
|
|
5608
5608
|
function xl(o) {
|
|
5609
|
-
return
|
|
5609
|
+
return zn(o, Tl.apply(this, arguments));
|
|
5610
5610
|
}
|
|
5611
5611
|
function Tl(o, e) {
|
|
5612
5612
|
var t = {}, n = [], s = [];
|
|
@@ -5632,7 +5632,7 @@ function Tl(o, e) {
|
|
|
5632
5632
|
}), n.push(l);
|
|
5633
5633
|
}
|
|
5634
5634
|
function r(l) {
|
|
5635
|
-
return Ol(
|
|
5635
|
+
return Ol(zn(o, { type: "Polygon", arcs: [l] }).coordinates[0]);
|
|
5636
5636
|
}
|
|
5637
5637
|
return n.forEach(function(l) {
|
|
5638
5638
|
if (!l._) {
|
|
@@ -5669,7 +5669,7 @@ function Tl(o, e) {
|
|
|
5669
5669
|
}
|
|
5670
5670
|
class Ah extends wa {
|
|
5671
5671
|
constructor() {
|
|
5672
|
-
super(...arguments), this.type = "ruler-binned", this.renderType =
|
|
5672
|
+
super(...arguments), this.type = "ruler-binned", this.renderType = j.SVG;
|
|
5673
5673
|
}
|
|
5674
5674
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5675
5675
|
// @ts-ignore
|
|
@@ -5687,7 +5687,7 @@ class Ah extends wa {
|
|
|
5687
5687
|
label: I,
|
|
5688
5688
|
value: ne(O, `data.${I}`),
|
|
5689
5689
|
class: this.model.getColorClassName({
|
|
5690
|
-
classNameTypes: [
|
|
5690
|
+
classNameTypes: [z.TOOLTIP],
|
|
5691
5691
|
dataGroupName: I
|
|
5692
5692
|
})
|
|
5693
5693
|
})).filter((I) => I.value !== 0);
|
|
@@ -5705,7 +5705,7 @@ class Ah extends wa {
|
|
|
5705
5705
|
{
|
|
5706
5706
|
label: ne(a, "locale.translations.total") || ne(a, "tooltip.totalLabel") || "Total",
|
|
5707
5707
|
value: A.reduce(
|
|
5708
|
-
(N,
|
|
5708
|
+
(N, W) => N + parseFloat(ne(O, `data.${W}`)),
|
|
5709
5709
|
0
|
|
5710
5710
|
)
|
|
5711
5711
|
}
|
|
@@ -5767,7 +5767,7 @@ const wh = (o, e) => {
|
|
|
5767
5767
|
};
|
|
5768
5768
|
class Vh extends hl {
|
|
5769
5769
|
constructor(e, t, n) {
|
|
5770
|
-
super(e, t, n), this.type = "color-legend", this.renderType =
|
|
5770
|
+
super(e, t, n), this.type = "color-legend", this.renderType = j.SVG, this.gradient_id = `gradient-id-${Math.floor(Math.random() * 99999999999)}`, this.handleAxisCompleteEvent = () => {
|
|
5771
5771
|
const s = this.getComponentContainer(), { width: a } = S.getSVGElementSize(s, {
|
|
5772
5772
|
useAttrs: !0
|
|
5773
5773
|
}), i = v(this.getOptions(), "data", "loading");
|
|
@@ -5802,8 +5802,8 @@ class Vh extends hl {
|
|
|
5802
5802
|
}
|
|
5803
5803
|
const d = !Js(a), p = qa(this.model.getDisplayData()), h = !(s <= de.color.barWidth), u = h ? de.color.barWidth : s, g = S.appendOrSelect(n, "g.legend"), m = S.appendOrSelect(g, "g.legend-axis");
|
|
5804
5804
|
if (l) {
|
|
5805
|
-
const
|
|
5806
|
-
S.appendOrSelect(
|
|
5805
|
+
const k = S.appendOrSelect(n, "g.legend-title");
|
|
5806
|
+
S.appendOrSelect(k, "text").text(l).attr("dy", "0.7em"), g.attr("transform", "translate(0, 16)");
|
|
5807
5807
|
}
|
|
5808
5808
|
const E = p[0] < 0 && p[1] > 0 ? "diverge" : "mono";
|
|
5809
5809
|
(r < 1 && r > 4 && E === "mono" || r < 1 && r > 2 && E === "diverge") && (r = 1);
|
|
@@ -5812,25 +5812,25 @@ class Vh extends hl {
|
|
|
5812
5812
|
if (d)
|
|
5813
5813
|
O = a;
|
|
5814
5814
|
else
|
|
5815
|
-
for (let
|
|
5815
|
+
for (let k = 1; k < T + 1; k++)
|
|
5816
5816
|
O.push(
|
|
5817
|
-
i === nn.LINEAR ? `stop-color-${E}-${r}-${
|
|
5817
|
+
i === nn.LINEAR ? `stop-color-${E}-${r}-${k}` : `fill-${E}-${r}-${k}`
|
|
5818
5818
|
);
|
|
5819
5819
|
const y = ta(p[0], p[1]), A = ni(y, 3), M = Ze().domain(p).range([0, u]), L = Vn(M).tickSize(0).tickValues(A), { code: I, number: N } = v(t, "locale");
|
|
5820
|
-
L.tickFormat((
|
|
5821
|
-
let
|
|
5820
|
+
L.tickFormat((k) => N(k, I));
|
|
5821
|
+
let W;
|
|
5822
5822
|
switch (i) {
|
|
5823
5823
|
case nn.LINEAR:
|
|
5824
5824
|
this.drawLinear(O, g, u);
|
|
5825
5825
|
break;
|
|
5826
5826
|
case nn.QUANTIZE:
|
|
5827
|
-
|
|
5827
|
+
W = this.drawQuantize(
|
|
5828
5828
|
O,
|
|
5829
5829
|
E,
|
|
5830
5830
|
d,
|
|
5831
5831
|
g,
|
|
5832
5832
|
u
|
|
5833
|
-
), M.range([
|
|
5833
|
+
), M.range([W, u]);
|
|
5834
5834
|
break;
|
|
5835
5835
|
default:
|
|
5836
5836
|
throw Error("Entered color legend type is not supported.");
|
|
@@ -5860,7 +5860,7 @@ class Vh extends hl {
|
|
|
5860
5860
|
}
|
|
5861
5861
|
class Gh extends dl {
|
|
5862
5862
|
constructor() {
|
|
5863
|
-
super(...arguments), this.type = "meter-title", this.renderType =
|
|
5863
|
+
super(...arguments), this.type = "meter-title", this.renderType = j.SVG;
|
|
5864
5864
|
}
|
|
5865
5865
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5866
5866
|
// @ts-ignore
|
|
@@ -5990,7 +5990,7 @@ class Wn extends q {
|
|
|
5990
5990
|
}
|
|
5991
5991
|
class Bh extends q {
|
|
5992
5992
|
constructor() {
|
|
5993
|
-
super(...arguments), this.type = "circle-pack", this.renderType =
|
|
5993
|
+
super(...arguments), this.type = "circle-pack", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
5994
5994
|
const { hoveredElement: t } = e.detail;
|
|
5995
5995
|
this.parent.selectAll("circle.node").transition("legend-hover-circlepack").call(
|
|
5996
5996
|
(n) => this.services.transitions.setupTransition({
|
|
@@ -6025,7 +6025,7 @@ class Bh extends q {
|
|
|
6025
6025
|
g.merge(u).attr("class", (m) => {
|
|
6026
6026
|
const E = c && r === 3 ? this.getZoomClass(m) : "";
|
|
6027
6027
|
return this.model.getColorClassName({
|
|
6028
|
-
classNameTypes: [
|
|
6028
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
6029
6029
|
dataGroupName: m.data.dataGroupName,
|
|
6030
6030
|
originalClassName: m.children ? `node ${E}` : `node node-leaf ${E}`
|
|
6031
6031
|
});
|
|
@@ -6169,7 +6169,7 @@ function Ll(o, e) {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
class Al extends q {
|
|
6171
6171
|
constructor() {
|
|
6172
|
-
super(...arguments), this.type = "pie", this.renderType =
|
|
6172
|
+
super(...arguments), this.type = "pie", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
6173
6173
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
6174
6174
|
this.parent.selectAll("path.slice").transition("legend-hover-bar").call(
|
|
6175
6175
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -6203,7 +6203,7 @@ class Al extends q {
|
|
|
6203
6203
|
h.exit().attr("opacity", 0).remove(), h.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(h).attr(
|
|
6204
6204
|
"class",
|
|
6205
6205
|
(w) => this.model.getColorClassName({
|
|
6206
|
-
classNameTypes: [
|
|
6206
|
+
classNameTypes: [z.FILL],
|
|
6207
6207
|
dataGroupName: w.data[a],
|
|
6208
6208
|
originalClassName: "slice"
|
|
6209
6209
|
})
|
|
@@ -6244,13 +6244,13 @@ class Al extends q {
|
|
|
6244
6244
|
}
|
|
6245
6245
|
return `translate(${w.xPosition}, ${w.yPosition})`;
|
|
6246
6246
|
}), this.renderCallouts(L);
|
|
6247
|
-
const I = v(s, "donut") ? "donut" : "pie", N = v(s, I, "alignment"), { width:
|
|
6247
|
+
const I = v(s, "donut") ? "donut" : "pie", N = v(s, I, "alignment"), { width: W } = S.getSVGElementSize(this.getParent(), {
|
|
6248
6248
|
useAttrs: !0
|
|
6249
|
-
}),
|
|
6250
|
-
let V = l +
|
|
6251
|
-
N === Ce.CENTER ? V =
|
|
6252
|
-
let
|
|
6253
|
-
L.length > 0 && (
|
|
6249
|
+
}), k = O ? te.xOffset : 0, C = O ? te.yOffset : 0;
|
|
6250
|
+
let V = l + k;
|
|
6251
|
+
N === Ce.CENTER ? V = W / 2 : N === Ce.RIGHT && (V = W - l - te.xOffset);
|
|
6252
|
+
let F = l + C;
|
|
6253
|
+
L.length > 0 && (F += te.yOffsetCallout), n.attr("x", V + 7).attr("y", F), this.addEventListeners();
|
|
6254
6254
|
}
|
|
6255
6255
|
renderCallouts(e) {
|
|
6256
6256
|
const t = S.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", X.GROUP).attr("data-name", "callouts"), n = t.selectAll("g.callout").data(e);
|
|
@@ -6343,7 +6343,7 @@ class Al extends q {
|
|
|
6343
6343
|
}
|
|
6344
6344
|
class Hh extends Al {
|
|
6345
6345
|
constructor() {
|
|
6346
|
-
super(...arguments), this.type = "donut", this.renderType =
|
|
6346
|
+
super(...arguments), this.type = "donut", this.renderType = j.SVG;
|
|
6347
6347
|
}
|
|
6348
6348
|
render(e = !0) {
|
|
6349
6349
|
super.render(e);
|
|
@@ -6388,7 +6388,7 @@ class Hh extends Al {
|
|
|
6388
6388
|
const Ws = "4,10 8,6 12,10", js = "12,6 8,10 4,6";
|
|
6389
6389
|
class $h extends q {
|
|
6390
6390
|
constructor() {
|
|
6391
|
-
super(...arguments), this.type = "gauge", this.renderType =
|
|
6391
|
+
super(...arguments), this.type = "gauge", this.renderType = j.SVG;
|
|
6392
6392
|
}
|
|
6393
6393
|
getValue() {
|
|
6394
6394
|
var n;
|
|
@@ -6434,7 +6434,7 @@ class $h extends q {
|
|
|
6434
6434
|
u.enter().append("path").merge(u).attr(
|
|
6435
6435
|
"class",
|
|
6436
6436
|
this.model.getColorClassName({
|
|
6437
|
-
classNameTypes: [
|
|
6437
|
+
classNameTypes: [z.FILL],
|
|
6438
6438
|
dataGroupName: "value",
|
|
6439
6439
|
originalClassName: "arc-foreground"
|
|
6440
6440
|
})
|
|
@@ -6456,7 +6456,10 @@ class $h extends q {
|
|
|
6456
6456
|
"transform",
|
|
6457
6457
|
`translate(0, ${p})`
|
|
6458
6458
|
), u = r(i), g = S.appendOrSelect(h, "g.gauge-value-number"), { code: m, number: E } = v(t, "locale"), O = v(t, "gauge", "numberFormatter"), T = g.selectAll("text.gauge-value-number").data([s]);
|
|
6459
|
-
T.enter().append("text").attr("class", "gauge-value-number").merge(T).style("font-size", `${u}px`).attr("text-anchor", "middle").text((
|
|
6459
|
+
T.enter().append("text").attr("class", "gauge-value-number").merge(T).style("font-size", `${u}px`).attr("text-anchor", "middle").text((W) => {
|
|
6460
|
+
let k;
|
|
6461
|
+
return W != null ? k = Number(W.toFixed(2)) % 1 !== 0 ? W.toFixed(2) : W.toFixed() : k = 0, O ? O(k) : E(Number(k), m);
|
|
6462
|
+
});
|
|
6460
6463
|
const { width: y } = S.getSVGElementSize(
|
|
6461
6464
|
S.appendOrSelect(e, "text.gauge-value-number"),
|
|
6462
6465
|
{ useBBox: !0 }
|
|
@@ -6475,9 +6478,10 @@ class $h extends q {
|
|
|
6475
6478
|
"transform",
|
|
6476
6479
|
`translate(0, ${l(r) + p})`
|
|
6477
6480
|
), m = S.appendOrSelect(g, "text.gauge-delta-number"), E = h ? "%" : "";
|
|
6478
|
-
m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text(
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
+
m.data(s === null ? [] : [s]), m.enter().append("text").classed("gauge-delta-number", !0).merge(m).attr("text-anchor", "middle").style("font-size", `${l(r)}px`).text((A) => {
|
|
6482
|
+
let M;
|
|
6483
|
+
return A != null ? M = Number(A.toFixed(2)) % 1 !== 0 ? A.toFixed(2) : A.toFixed() : M = 0, c ? `${c(M)}${E}` : `${i(Number(M), a)}${E}`;
|
|
6484
|
+
});
|
|
6481
6485
|
const { width: O } = S.getSVGElementSize(
|
|
6482
6486
|
S.appendOrSelect(t, ".gauge-delta-number"),
|
|
6483
6487
|
{ useBBox: !0 }
|
|
@@ -6537,7 +6541,7 @@ class $h extends q {
|
|
|
6537
6541
|
}
|
|
6538
6542
|
class Uh extends Wn {
|
|
6539
6543
|
constructor() {
|
|
6540
|
-
super(...arguments), this.type = "grouped-bar", this.renderType =
|
|
6544
|
+
super(...arguments), this.type = "grouped-bar", this.renderType = j.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (e) => {
|
|
6541
6545
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
6542
6546
|
this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
|
|
6543
6547
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -6592,7 +6596,7 @@ class Uh extends Wn {
|
|
|
6592
6596
|
).attr(
|
|
6593
6597
|
"class",
|
|
6594
6598
|
(h) => this.model.getColorClassName({
|
|
6595
|
-
classNameTypes: [
|
|
6599
|
+
classNameTypes: [z.FILL],
|
|
6596
6600
|
dataGroupName: h[s],
|
|
6597
6601
|
originalClassName: "bar"
|
|
6598
6602
|
})
|
|
@@ -6701,9 +6705,9 @@ class Uh extends Wn {
|
|
|
6701
6705
|
this.groupScale = Bn().domain(e).rangeRound([0, this.getGroupWidth()]);
|
|
6702
6706
|
}
|
|
6703
6707
|
}
|
|
6704
|
-
class
|
|
6708
|
+
class Fh extends q {
|
|
6705
6709
|
constructor() {
|
|
6706
|
-
super(...arguments), this.type = "heatmap", this.renderType =
|
|
6710
|
+
super(...arguments), this.type = "heatmap", this.renderType = j.SVG, this.matrix = {}, this.xBandwidth = 0, this.yBandwidth = 0, this.translationUnits = {
|
|
6707
6711
|
x: 0,
|
|
6708
6712
|
y: 0
|
|
6709
6713
|
}, this.handleAxisOnHover = (e) => {
|
|
@@ -6876,9 +6880,9 @@ class zh extends q {
|
|
|
6876
6880
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleAxisOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleAxisMouseOut);
|
|
6877
6881
|
}
|
|
6878
6882
|
}
|
|
6879
|
-
class
|
|
6883
|
+
class zh extends q {
|
|
6880
6884
|
constructor() {
|
|
6881
|
-
super(...arguments), this.type = "histogram", this.renderType =
|
|
6885
|
+
super(...arguments), this.type = "histogram", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
6882
6886
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
6883
6887
|
this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
|
|
6884
6888
|
(a) => this.services.transitions.setupTransition({
|
|
@@ -6912,7 +6916,7 @@ class Fh extends q {
|
|
|
6912
6916
|
).attr(
|
|
6913
6917
|
"class",
|
|
6914
6918
|
(d) => this.model.getColorClassName({
|
|
6915
|
-
classNameTypes: [
|
|
6919
|
+
classNameTypes: [z.FILL],
|
|
6916
6920
|
dataGroupName: d[a],
|
|
6917
6921
|
originalClassName: "bar"
|
|
6918
6922
|
})
|
|
@@ -6946,7 +6950,7 @@ class Fh extends q {
|
|
|
6946
6950
|
label: e.tooltip.groupLabel || "Group",
|
|
6947
6951
|
value: r[t],
|
|
6948
6952
|
class: a.model.getColorClassName({
|
|
6949
|
-
classNameTypes: [
|
|
6953
|
+
classNameTypes: [z.TOOLTIP],
|
|
6950
6954
|
dataGroupName: r[t]
|
|
6951
6955
|
})
|
|
6952
6956
|
},
|
|
@@ -6970,9 +6974,9 @@ class Fh extends q {
|
|
|
6970
6974
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
6971
6975
|
}
|
|
6972
6976
|
}
|
|
6973
|
-
class Wh extends
|
|
6977
|
+
class Wh extends Fn {
|
|
6974
6978
|
constructor() {
|
|
6975
|
-
super(...arguments), this.type = "lollipop", this.renderType =
|
|
6979
|
+
super(...arguments), this.type = "lollipop", this.renderType = j.SVG, this.handleScatterOnHover = (e) => {
|
|
6976
6980
|
const t = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
6977
6981
|
this.parent.selectAll("line.line").attr("stroke-width", (a) => a[s] !== t.datum[s] ? Ge.weight.unselected : Ge.weight.selected);
|
|
6978
6982
|
}, this.handleScatterOnMouseOut = () => {
|
|
@@ -7011,7 +7015,7 @@ class Wh extends zn {
|
|
|
7011
7015
|
const E = g.enter().append("line").attr("opacity", 0).merge(g).classed("line", !0).attr(
|
|
7012
7016
|
"class",
|
|
7013
7017
|
(O) => this.model.getColorClassName({
|
|
7014
|
-
classNameTypes: [
|
|
7018
|
+
classNameTypes: [z.STROKE],
|
|
7015
7019
|
dataGroupName: O[s],
|
|
7016
7020
|
originalClassName: "line"
|
|
7017
7021
|
})
|
|
@@ -7044,7 +7048,7 @@ class Wh extends zn {
|
|
|
7044
7048
|
}
|
|
7045
7049
|
class jh extends q {
|
|
7046
7050
|
constructor() {
|
|
7047
|
-
super(...arguments), this.type = "meter", this.renderType =
|
|
7051
|
+
super(...arguments), this.type = "meter", this.renderType = j.SVG;
|
|
7048
7052
|
}
|
|
7049
7053
|
getStackedBounds(e, t) {
|
|
7050
7054
|
let n = 0;
|
|
@@ -7081,7 +7085,7 @@ class jh extends q {
|
|
|
7081
7085
|
g.enter().append("rect").classed("value", !0).merge(g).attr("x", (y) => y.x).attr("y", 0).attr("height", () => u || (a ? pe.height.proportional : pe.height.default)).attr(
|
|
7082
7086
|
"class",
|
|
7083
7087
|
(y) => this.model.getColorClassName({
|
|
7084
|
-
classNameTypes: [
|
|
7088
|
+
classNameTypes: [z.FILL],
|
|
7085
7089
|
dataGroupName: y[c],
|
|
7086
7090
|
originalClassName: m
|
|
7087
7091
|
})
|
|
@@ -7155,7 +7159,7 @@ class jh extends q {
|
|
|
7155
7159
|
}
|
|
7156
7160
|
class Xh extends q {
|
|
7157
7161
|
constructor() {
|
|
7158
|
-
super(...arguments), this.type = "radar", this.renderType =
|
|
7162
|
+
super(...arguments), this.type = "radar", this.renderType = j.SVG, this.getLabelDimensions = (e) => {
|
|
7159
7163
|
const t = S.appendOrSelect(this.getComponentContainer(), "g.tmp-tick"), n = S.appendOrSelect(t, "text").text(e), { width: s, height: a } = S.getSVGElementSize(n.node(), { useBBox: !0 });
|
|
7160
7164
|
return t.remove(), { width: s, height: a };
|
|
7161
7165
|
}, this.normalizeFlatData = (e) => {
|
|
@@ -7184,14 +7188,14 @@ class Xh extends q {
|
|
|
7184
7188
|
transition: n,
|
|
7185
7189
|
name: "legend-hover-blob"
|
|
7186
7190
|
})
|
|
7187
|
-
).style("fill-opacity", (n) => n.name !== t.datum().name ?
|
|
7191
|
+
).style("fill-opacity", (n) => n.name !== t.datum().name ? ze.opacity.unselected : ze.opacity.selected).style("stroke-opacity", (n) => n.name !== t.datum().name ? ze.opacity.unselected : 1);
|
|
7188
7192
|
}, this.handleLegendMouseOut = () => {
|
|
7189
7193
|
this.parent.selectAll("g.blobs path").transition("legend-mouseout-blob").call(
|
|
7190
7194
|
(e) => this.services.transitions.setupTransition({
|
|
7191
7195
|
transition: e,
|
|
7192
7196
|
name: "legend-mouseout-blob"
|
|
7193
7197
|
})
|
|
7194
|
-
).style("fill-opacity",
|
|
7198
|
+
).style("fill-opacity", ze.opacity.selected).style("stroke-opacity", 1);
|
|
7195
7199
|
};
|
|
7196
7200
|
}
|
|
7197
7201
|
init() {
|
|
@@ -7201,7 +7205,7 @@ class Xh extends q {
|
|
|
7201
7205
|
render(e = !0) {
|
|
7202
7206
|
const t = this.getComponentContainer(), { width: n, height: s } = S.getSVGElementSize(t, {
|
|
7203
7207
|
useAttrs: !0
|
|
7204
|
-
}), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = v(r, "data", "groupMapsTo"), c = v(r, "radar", "axes", "value"), { angle: d, value: p } = v(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } =
|
|
7208
|
+
}), a = this.model.getData(), i = this.model.getGroupedData(), r = this.getOptions(), l = v(r, "data", "groupMapsTo"), c = v(r, "radar", "axes", "value"), { angle: d, value: p } = v(r, "radar", "axes"), { xLabelPadding: h, yLabelPadding: u, yTicksNumber: g, minRange: m, xAxisRectHeight: E } = ze;
|
|
7205
7209
|
this.uniqueKeys = Array.from(new Set(a.map((_) => _[d]))), this.uniqueGroups = Array.from(new Set(a.map((_) => _[l]))), this.fullDataNormalized = this.normalizeFlatData(a), this.groupedDataNormalized = this.normalizeGroupedData(i);
|
|
7206
7210
|
const T = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + u), M = (Math.min(n, s) - T) / 2;
|
|
7207
7211
|
if (M <= 0)
|
|
@@ -7209,19 +7213,19 @@ class Xh extends q {
|
|
|
7209
7213
|
const L = Bn().domain(this.fullDataNormalized.map((_) => _[d])).range([0, 2 * Math.PI].map((_) => _ - Math.PI / 2)), I = fn(this.fullDataNormalized.map((_) => _[p])), N = Ze().domain([
|
|
7210
7214
|
I >= 0 ? 0 : I,
|
|
7211
7215
|
gs(this.fullDataNormalized.map((_) => _[p]))
|
|
7212
|
-
]).range([m, M]).nice(g),
|
|
7213
|
-
const
|
|
7216
|
+
]).range([m, M]).nice(g), W = N.ticks(g), k = (_, D, P) => this.model.getFillColor(_, D, P), C = oi().angle((_) => L(_[d]) + Math.PI / 2).radius((_) => N(_[p])).curve(li), V = this.uniqueKeys.map((_) => {
|
|
7217
|
+
const D = this.getLabelDimensions(_).width, P = Si(
|
|
7214
7218
|
L(_),
|
|
7215
7219
|
M
|
|
7216
7220
|
);
|
|
7217
|
-
return
|
|
7221
|
+
return D + P;
|
|
7218
7222
|
}), w = {
|
|
7219
7223
|
x: gs(V) + h,
|
|
7220
7224
|
y: s / 2
|
|
7221
|
-
}, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(
|
|
7225
|
+
}, me = S.appendOrSelect(t, "g.y-axes").attr("role", X.GROUP).selectAll("path").data(W, (_) => _), K = (_) => this.uniqueKeys.map((D) => ({ [d]: D, [p]: _ }));
|
|
7222
7226
|
me.join(
|
|
7223
7227
|
(_) => _.append("path").attr("opacity", 0).attr("transform", `translate(${w.x}, ${w.y})`).attr("fill", "none").call(
|
|
7224
|
-
(
|
|
7228
|
+
(D) => D.transition().call(
|
|
7225
7229
|
(P) => this.services.transitions.setupTransition({
|
|
7226
7230
|
transition: P,
|
|
7227
7231
|
name: "radar_y_axes_enter",
|
|
@@ -7230,7 +7234,7 @@ class Xh extends q {
|
|
|
7230
7234
|
).attr("opacity", 1).attr("d", (P) => C(K(P)))
|
|
7231
7235
|
),
|
|
7232
7236
|
(_) => _.call(
|
|
7233
|
-
(
|
|
7237
|
+
(D) => D.transition().call(
|
|
7234
7238
|
(P) => this.services.transitions.setupTransition({
|
|
7235
7239
|
transition: P,
|
|
7236
7240
|
name: "radar_y_axes_update",
|
|
@@ -7239,7 +7243,7 @@ class Xh extends q {
|
|
|
7239
7243
|
).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(K(P)))
|
|
7240
7244
|
),
|
|
7241
7245
|
(_) => _.call(
|
|
7242
|
-
(
|
|
7246
|
+
(D) => D.transition().call(
|
|
7243
7247
|
(P) => this.services.transitions.setupTransition({
|
|
7244
7248
|
transition: P,
|
|
7245
7249
|
name: "radar_y_axes_exit",
|
|
@@ -7248,8 +7252,8 @@ class Xh extends q {
|
|
|
7248
7252
|
).attr("d", (P) => C(K(P))).attr("opacity", 0).remove()
|
|
7249
7253
|
)
|
|
7250
7254
|
), S.appendOrSelect(t, "g.x-axes").attr("role", X.GROUP).selectAll("line").data(this.uniqueKeys, (_) => _).join(
|
|
7251
|
-
(_) => _.append("line").attr("opacity", 0).attr("class", (
|
|
7252
|
-
(
|
|
7255
|
+
(_) => _.append("line").attr("opacity", 0).attr("class", (D) => `x-axis-${st(D)}`).attr("stroke-dasharray", "0").attr("x1", (D) => oe(L(D), 0, w).x).attr("y1", (D) => oe(L(D), 0, w).y).attr("x2", (D) => oe(L(D), 0, w).x).attr("y2", (D) => oe(L(D), 0, w).y).call(
|
|
7256
|
+
(D) => D.transition().call(
|
|
7253
7257
|
(P) => this.services.transitions.setupTransition({
|
|
7254
7258
|
transition: P,
|
|
7255
7259
|
name: "radar_x_axes_enter",
|
|
@@ -7258,7 +7262,7 @@ class Xh extends q {
|
|
|
7258
7262
|
).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
|
|
7259
7263
|
),
|
|
7260
7264
|
(_) => _.call(
|
|
7261
|
-
(
|
|
7265
|
+
(D) => D.transition().call(
|
|
7262
7266
|
(P) => this.services.transitions.setupTransition({
|
|
7263
7267
|
transition: P,
|
|
7264
7268
|
name: "radar_x_axes_update",
|
|
@@ -7267,7 +7271,7 @@ class Xh extends q {
|
|
|
7267
7271
|
).attr("opacity", 1).attr("x1", (P) => oe(L(P), N.range()[0], w).x).attr("y1", (P) => oe(L(P), N.range()[0], w).y).attr("x2", (P) => oe(L(P), N.range()[1], w).x).attr("y2", (P) => oe(L(P), N.range()[1], w).y)
|
|
7268
7272
|
),
|
|
7269
7273
|
(_) => _.call(
|
|
7270
|
-
(
|
|
7274
|
+
(D) => D.transition().call(
|
|
7271
7275
|
(P) => this.services.transitions.setupTransition({
|
|
7272
7276
|
transition: P,
|
|
7273
7277
|
name: "radar_x_axes_exit",
|
|
@@ -7276,17 +7280,17 @@ class Xh extends q {
|
|
|
7276
7280
|
).attr("opacity", 0).remove()
|
|
7277
7281
|
)
|
|
7278
7282
|
), S.appendOrSelect(t, "g.x-labels").attr("role", X.GROUP).selectAll("text").data(this.uniqueKeys).join(
|
|
7279
|
-
(_) => _.append("text").text((
|
|
7283
|
+
(_) => _.append("text").text((D) => D).attr("opacity", 0).attr(
|
|
7280
7284
|
"x",
|
|
7281
|
-
(
|
|
7285
|
+
(D) => oe(L(D), N.range()[1] + h, w).x
|
|
7282
7286
|
).attr(
|
|
7283
7287
|
"y",
|
|
7284
|
-
(
|
|
7285
|
-
).style("text-anchor", (
|
|
7288
|
+
(D) => oe(L(D), N.range()[1] + h, w).y
|
|
7289
|
+
).style("text-anchor", (D) => fs(L(D)).textAnchor).style(
|
|
7286
7290
|
"dominant-baseline",
|
|
7287
|
-
(
|
|
7291
|
+
(D) => fs(L(D)).dominantBaseline
|
|
7288
7292
|
).call(
|
|
7289
|
-
(
|
|
7293
|
+
(D) => D.transition().call(
|
|
7290
7294
|
(P) => this.services.transitions.setupTransition({
|
|
7291
7295
|
transition: P,
|
|
7292
7296
|
name: "radar_x_labels_enter",
|
|
@@ -7295,7 +7299,7 @@ class Xh extends q {
|
|
|
7295
7299
|
).attr("opacity", 1)
|
|
7296
7300
|
),
|
|
7297
7301
|
(_) => _.call(
|
|
7298
|
-
(
|
|
7302
|
+
(D) => D.transition().call(
|
|
7299
7303
|
(P) => this.services.transitions.setupTransition({
|
|
7300
7304
|
transition: P,
|
|
7301
7305
|
name: "radar_x_labels_update",
|
|
@@ -7313,7 +7317,7 @@ class Xh extends q {
|
|
|
7313
7317
|
})
|
|
7314
7318
|
),
|
|
7315
7319
|
(_) => _.call(
|
|
7316
|
-
(
|
|
7320
|
+
(D) => D.transition().call(
|
|
7317
7321
|
(P) => this.services.transitions.setupTransition({
|
|
7318
7322
|
transition: P,
|
|
7319
7323
|
name: "radar_x_labels_exit",
|
|
@@ -7324,16 +7328,16 @@ class Xh extends q {
|
|
|
7324
7328
|
), S.appendOrSelect(t, "g.blobs").attr("role", X.GROUP).selectAll("path").data(this.groupedDataNormalized, (_) => _.name).join(
|
|
7325
7329
|
(_) => _.append("path").attr(
|
|
7326
7330
|
"class",
|
|
7327
|
-
(
|
|
7328
|
-
classNameTypes: [
|
|
7329
|
-
dataGroupName:
|
|
7331
|
+
(D) => this.model.getColorClassName({
|
|
7332
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
7333
|
+
dataGroupName: D.name,
|
|
7330
7334
|
originalClassName: "blob"
|
|
7331
7335
|
})
|
|
7332
|
-
).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (
|
|
7336
|
+
).attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (D) => D.name).attr("opacity", 0).attr(
|
|
7333
7337
|
"transform",
|
|
7334
7338
|
e ? () => `translate(${w.x}, ${w.y}) scale(${1 + Math.random() * 0.35})` : `translate(${w.x}, ${w.y})`
|
|
7335
|
-
).style("fill", (
|
|
7336
|
-
const P =
|
|
7339
|
+
).style("fill", (D) => k(D.name, null, D.data)).style("fill-opacity", ze.opacity.selected).style("stroke", (D) => k(D.name, null, D.data)).call((D) => {
|
|
7340
|
+
const P = D.transition().call(
|
|
7337
7341
|
(Le) => this.services.transitions.setupTransition({
|
|
7338
7342
|
transition: Le,
|
|
7339
7343
|
name: "radar_blobs_enter",
|
|
@@ -7344,13 +7348,13 @@ class Xh extends q {
|
|
|
7344
7348
|
}),
|
|
7345
7349
|
(_) => (_.attr(
|
|
7346
7350
|
"class",
|
|
7347
|
-
(
|
|
7348
|
-
classNameTypes: [
|
|
7349
|
-
dataGroupName:
|
|
7351
|
+
(D) => this.model.getColorClassName({
|
|
7352
|
+
classNameTypes: [z.FILL, z.STROKE],
|
|
7353
|
+
dataGroupName: D.name,
|
|
7350
7354
|
originalClassName: "blob"
|
|
7351
7355
|
})
|
|
7352
|
-
).style("fill", (
|
|
7353
|
-
(
|
|
7356
|
+
).style("fill", (D) => k(D.name, null, D.data)).style("stroke", (D) => k(D.name, null, D.data)), _.call(
|
|
7357
|
+
(D) => D.transition().call(
|
|
7354
7358
|
(P) => this.services.transitions.setupTransition({
|
|
7355
7359
|
transition: P,
|
|
7356
7360
|
name: "radar_blobs_update",
|
|
@@ -7358,8 +7362,8 @@ class Xh extends q {
|
|
|
7358
7362
|
})
|
|
7359
7363
|
).attr("opacity", 1).attr("transform", `translate(${w.x}, ${w.y})`).attr("d", (P) => C(P.data))
|
|
7360
7364
|
), _),
|
|
7361
|
-
(_) => _.call((
|
|
7362
|
-
const P =
|
|
7365
|
+
(_) => _.call((D) => {
|
|
7366
|
+
const P = D.transition().call(
|
|
7363
7367
|
(Le) => this.services.transitions.setupTransition({
|
|
7364
7368
|
transition: Le,
|
|
7365
7369
|
name: "radar_blobs_exit",
|
|
@@ -7372,28 +7376,28 @@ class Xh extends q {
|
|
|
7372
7376
|
), P.attr("opacity", 0).remove();
|
|
7373
7377
|
})
|
|
7374
7378
|
), S.appendOrSelect(t, "g.dots").attr("role", X.GROUP).selectAll("circle").data(this.fullDataNormalized.filter((_) => v(_, p) !== null)).join(
|
|
7375
|
-
(_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (
|
|
7379
|
+
(_) => _.append("circle").attr("role", X.GRAPHICS_SYMBOL).attr("aria-label", (D) => D[c]),
|
|
7376
7380
|
(_) => _,
|
|
7377
7381
|
(_) => _.remove()
|
|
7378
7382
|
).attr(
|
|
7379
7383
|
"class",
|
|
7380
7384
|
(_) => this.model.getColorClassName({
|
|
7381
|
-
classNameTypes: [
|
|
7385
|
+
classNameTypes: [z.FILL],
|
|
7382
7386
|
dataGroupName: _[l],
|
|
7383
7387
|
originalClassName: st(_[d])
|
|
7384
7388
|
})
|
|
7385
|
-
).attr("cx", (_) => oe(L(_[d]), N(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), N(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) =>
|
|
7389
|
+
).attr("cx", (_) => oe(L(_[d]), N(_[p]), w).x).attr("cy", (_) => oe(L(_[d]), N(_[p]), w).y).attr("r", 0).attr("opacity", 0).style("fill", (_) => k(_[l])), S.appendOrSelect(t, "g.x-axes-rect").attr("role", X.GROUP).selectAll("rect").data(this.uniqueKeys).join(
|
|
7386
7390
|
(_) => _.append("rect"),
|
|
7387
7391
|
(_) => _,
|
|
7388
7392
|
(_) => _.remove()
|
|
7389
7393
|
).attr("x", w.x).attr("y", w.y - E / 2).attr("width", N.range()[1]).attr("height", E).style("fill", "red").style("fill-opacity", 0).attr("transform", (_) => `rotate(${Oi(L(_))}, ${w.x}, ${w.y})`);
|
|
7390
7394
|
const { code: ae, number: re } = v(r, "locale");
|
|
7391
|
-
S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Wt(
|
|
7392
|
-
(_) => _.append("text").attr("opacity", 0).text((
|
|
7395
|
+
S.appendOrSelect(t, "g.y-labels").attr("role", X.GROUP).selectAll("text").data(Wt(W)).join(
|
|
7396
|
+
(_) => _.append("text").attr("opacity", 0).text((D) => re(D, ae)).attr(
|
|
7393
7397
|
"x",
|
|
7394
|
-
(
|
|
7395
|
-
).attr("y", (
|
|
7396
|
-
(
|
|
7398
|
+
(D) => oe(-Math.PI / 2, N(D), w).x + u
|
|
7399
|
+
).attr("y", (D) => oe(-Math.PI / 2, N(D), w).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
|
|
7400
|
+
(D) => D.transition().call(
|
|
7397
7401
|
(P) => this.services.transitions.setupTransition({
|
|
7398
7402
|
transition: P,
|
|
7399
7403
|
name: "radar_y_labels_enter",
|
|
@@ -7402,7 +7406,7 @@ class Xh extends q {
|
|
|
7402
7406
|
).attr("opacity", 1)
|
|
7403
7407
|
),
|
|
7404
7408
|
(_) => _.call(
|
|
7405
|
-
(
|
|
7409
|
+
(D) => D.transition().call(
|
|
7406
7410
|
(P) => this.services.transitions.setupTransition({
|
|
7407
7411
|
transition: P,
|
|
7408
7412
|
name: "radar_y_labels_update",
|
|
@@ -7414,7 +7418,7 @@ class Xh extends q {
|
|
|
7414
7418
|
).attr("y", (P) => oe(-Math.PI / 2, N(P), w).y)
|
|
7415
7419
|
),
|
|
7416
7420
|
(_) => _.call(
|
|
7417
|
-
(
|
|
7421
|
+
(D) => D.transition().call(
|
|
7418
7422
|
(P) => this.services.transitions.setupTransition({
|
|
7419
7423
|
transition: P,
|
|
7420
7424
|
name: "radar_y_labels_exit",
|
|
@@ -7453,7 +7457,7 @@ class Xh extends q {
|
|
|
7453
7457
|
i.classed("hovered", !0).attr("stroke-dasharray", "4 4"), r.classed("hovered", !0).attr(
|
|
7454
7458
|
"opacity",
|
|
7455
7459
|
(u) => l.indexOf(u[d]) !== -1 ? 1 : 0
|
|
7456
|
-
).attr("r",
|
|
7460
|
+
).attr("r", ze.dotsRadius);
|
|
7457
7461
|
const h = e.fullDataNormalized.filter(
|
|
7458
7462
|
(u) => u[t] === s && l.indexOf(u[d]) !== -1
|
|
7459
7463
|
);
|
|
@@ -7465,7 +7469,7 @@ class Xh extends q {
|
|
|
7465
7469
|
value: u[p],
|
|
7466
7470
|
color: e.model.getFillColor(u[d], null, u),
|
|
7467
7471
|
class: e.model.getColorClassName({
|
|
7468
|
-
classNameTypes: [
|
|
7472
|
+
classNameTypes: [z.TOOLTIP],
|
|
7469
7473
|
dataGroupName: u[d]
|
|
7470
7474
|
})
|
|
7471
7475
|
}))
|
|
@@ -7497,7 +7501,7 @@ class Xh extends q {
|
|
|
7497
7501
|
}
|
|
7498
7502
|
class Zh extends Wn {
|
|
7499
7503
|
constructor() {
|
|
7500
|
-
super(...arguments), this.type = "simple-bar", this.renderType =
|
|
7504
|
+
super(...arguments), this.type = "simple-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7501
7505
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
7502
7506
|
this.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call(
|
|
7503
7507
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -7529,7 +7533,7 @@ class Zh extends Wn {
|
|
|
7529
7533
|
).attr(
|
|
7530
7534
|
"class",
|
|
7531
7535
|
(c) => this.model.getColorClassName({
|
|
7532
|
-
classNameTypes: [
|
|
7536
|
+
classNameTypes: [z.FILL],
|
|
7533
7537
|
dataGroupName: c[n],
|
|
7534
7538
|
originalClassName: "bar"
|
|
7535
7539
|
})
|
|
@@ -7622,7 +7626,7 @@ class Yh extends fl {
|
|
|
7622
7626
|
}
|
|
7623
7627
|
class qh extends q {
|
|
7624
7628
|
constructor() {
|
|
7625
|
-
super(...arguments), this.type = "area-stacked", this.renderType =
|
|
7629
|
+
super(...arguments), this.type = "area-stacked", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7626
7630
|
const { hoveredElement: t } = e.detail, n = this.getOptions(), { groupMapsTo: s } = n.data;
|
|
7627
7631
|
this.parent.selectAll("path.area").transition("legend-hover-area").call(
|
|
7628
7632
|
(a) => this.services.transitions.setupTransition({
|
|
@@ -7656,7 +7660,7 @@ class qh extends q {
|
|
|
7656
7660
|
).y0((g) => p(g[0])).y1((g) => p(g[1])).curve(this.services.curves.getD3Curve()), h.exit().attr("opacity", 0).remove(), h.enter().append("path").attr("opacity", 0).merge(h).data(r, (g) => v(g, 0, a)).attr("class", "area").attr(
|
|
7657
7661
|
"class",
|
|
7658
7662
|
(g) => this.model.getColorClassName({
|
|
7659
|
-
classNameTypes: [
|
|
7663
|
+
classNameTypes: [z.FILL],
|
|
7660
7664
|
dataGroupName: v(g, 0, a),
|
|
7661
7665
|
originalClassName: "area"
|
|
7662
7666
|
})
|
|
@@ -7671,7 +7675,7 @@ class qh extends q {
|
|
|
7671
7675
|
}
|
|
7672
7676
|
class Kh extends Wn {
|
|
7673
7677
|
constructor() {
|
|
7674
|
-
super(...arguments), this.type = "stacked-bar", this.renderType =
|
|
7678
|
+
super(...arguments), this.type = "stacked-bar", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
7675
7679
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.model.getOptions().data;
|
|
7676
7680
|
this.parent.selectAll("path.bar").transition("legend-hover-bar").call(
|
|
7677
7681
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -7711,7 +7715,7 @@ class Kh extends Wn {
|
|
|
7711
7715
|
).attr(
|
|
7712
7716
|
"class",
|
|
7713
7717
|
(c) => this.model.getColorClassName({
|
|
7714
|
-
classNameTypes: [
|
|
7718
|
+
classNameTypes: [z.FILL],
|
|
7715
7719
|
dataGroupName: c[s],
|
|
7716
7720
|
originalClassName: "bar"
|
|
7717
7721
|
})
|
|
@@ -7800,9 +7804,9 @@ class Kh extends Wn {
|
|
|
7800
7804
|
e.removeEventListener(f.Legend.ITEM_HOVER, this.handleLegendOnHover), e.removeEventListener(f.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
|
|
7801
7805
|
}
|
|
7802
7806
|
}
|
|
7803
|
-
class Jh extends
|
|
7807
|
+
class Jh extends Fn {
|
|
7804
7808
|
constructor() {
|
|
7805
|
-
super(...arguments), this.type = "scatter-stacked", this.renderType =
|
|
7809
|
+
super(...arguments), this.type = "scatter-stacked", this.renderType = j.SVG;
|
|
7806
7810
|
}
|
|
7807
7811
|
render(e) {
|
|
7808
7812
|
if (!v(this.getOptions(), "points", "enabled"))
|
|
@@ -7851,7 +7855,7 @@ class Jh extends zn {
|
|
|
7851
7855
|
const it = 6;
|
|
7852
7856
|
class Qh extends q {
|
|
7853
7857
|
constructor() {
|
|
7854
|
-
super(...arguments), this.type = "tree", this.renderType =
|
|
7858
|
+
super(...arguments), this.type = "tree", this.renderType = j.SVG;
|
|
7855
7859
|
}
|
|
7856
7860
|
getLongestLabel(e) {
|
|
7857
7861
|
let t = "";
|
|
@@ -7887,17 +7891,17 @@ class Qh extends q {
|
|
|
7887
7891
|
children: i
|
|
7888
7892
|
}), u = 10, g = n / 6, m = (L) => {
|
|
7889
7893
|
const I = h.descendants().reverse(), N = h.links();
|
|
7890
|
-
let
|
|
7894
|
+
let W = h, k = h;
|
|
7891
7895
|
h.eachBefore((H) => {
|
|
7892
|
-
H.x <
|
|
7896
|
+
H.x < W.x && (W = H), H.x > k.x && (k = H);
|
|
7893
7897
|
});
|
|
7894
|
-
const C =
|
|
7898
|
+
const C = k.x - W.x, V = t.transition().call(
|
|
7895
7899
|
(H) => this.services.transitions.setupTransition({
|
|
7896
7900
|
transition: H,
|
|
7897
7901
|
name: "tree-update-viewbox",
|
|
7898
7902
|
animate: !0
|
|
7899
7903
|
})
|
|
7900
|
-
).attr("viewBox", [-p.left,
|
|
7904
|
+
).attr("viewBox", [-p.left, W.x, n, C].join(" ")), F = M.selectAll("g").data(I, (H) => H.id), w = this, Q = F.enter().append("g").attr("transform", () => `translate(${L.y0},${L.x0})`).attr(
|
|
7901
7905
|
"class",
|
|
7902
7906
|
(H) => H.depth !== 0 && H.children && H.children.length > 0 ? "clickable" : null
|
|
7903
7907
|
).on("mouseover", function(H, Z) {
|
|
@@ -7919,7 +7923,7 @@ class Qh extends q {
|
|
|
7919
7923
|
datum: Z
|
|
7920
7924
|
});
|
|
7921
7925
|
});
|
|
7922
|
-
Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -it : it).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(),
|
|
7926
|
+
Q.append("circle").attr("r", 2.5).attr("class", (H) => H._children ? "parent" : "child").attr("stroke-width", 10), Q.append("text").attr("dy", "0.31em").attr("x", (H) => H._children ? -it : it).attr("text-anchor", (H) => H._children ? "end" : "start").text((H) => H.data.name).clone(!0).attr("class", "text-stroke").lower(), F.merge(Q).transition(V).attr("transform", (H) => `translate(${H.y},${H.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), F.exit().transition(V).remove().attr("transform", () => `translate(${L.y},${L.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
|
|
7923
7927
|
const me = A.selectAll("path").data(N, (H) => H.target.id), K = me.enter().append("path").attr("d", () => {
|
|
7924
7928
|
const H = { x: L.x0, y: L.y0 };
|
|
7925
7929
|
return y({ source: H, target: H });
|
|
@@ -7955,12 +7959,12 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
7955
7959
|
80: Pl,
|
|
7956
7960
|
90: Vl,
|
|
7957
7961
|
100: Gl
|
|
7958
|
-
}, Hl = "#fff2e8", $l = "#ffd9be", Ul = "#ffb784",
|
|
7962
|
+
}, Hl = "#fff2e8", $l = "#ffd9be", Ul = "#ffb784", Fl = "#ff832b", zl = "#eb6200", Wl = "#ba4e00", jl = "#8a3800", Xl = "#5e2900", Zl = "#3e1a00", Yl = "#231000", ql = {
|
|
7959
7963
|
10: Hl,
|
|
7960
7964
|
20: $l,
|
|
7961
7965
|
30: Ul,
|
|
7962
|
-
40:
|
|
7963
|
-
50:
|
|
7966
|
+
40: Fl,
|
|
7967
|
+
50: zl,
|
|
7964
7968
|
60: Wl,
|
|
7965
7969
|
70: jl,
|
|
7966
7970
|
80: Xl,
|
|
@@ -8010,11 +8014,11 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
8010
8014
|
80: Vc,
|
|
8011
8015
|
90: Gc,
|
|
8012
8016
|
100: Bc
|
|
8013
|
-
}, $c = "#e5f6ff", Uc = "#bae6ff",
|
|
8017
|
+
}, $c = "#e5f6ff", Uc = "#bae6ff", Fc = "#82cfff", zc = "#33b1ff", Wc = "#1192e8", jc = "#0072c3", Xc = "#00539a", Zc = "#003a6d", Yc = "#012749", qc = "#061727", Kc = {
|
|
8014
8018
|
10: $c,
|
|
8015
8019
|
20: Uc,
|
|
8016
|
-
30:
|
|
8017
|
-
40:
|
|
8020
|
+
30: Fc,
|
|
8021
|
+
40: zc,
|
|
8018
8022
|
50: Wc,
|
|
8019
8023
|
60: jc,
|
|
8020
8024
|
70: Xc,
|
|
@@ -8065,10 +8069,10 @@ var Ml = "#000000", wl = "#ffffff", Cl = "#fcf4d6", _l = "#fddc69", Il = "#f1c21
|
|
|
8065
8069
|
80: Gd,
|
|
8066
8070
|
90: Bd,
|
|
8067
8071
|
100: Hd
|
|
8068
|
-
}, Ud = "#f7f3f2",
|
|
8072
|
+
}, Ud = "#f7f3f2", Fd = "#e5e0df", zd = "#cac5c4", Wd = "#ada8a8", jd = "#8f8b8b", Xd = "#726e6e", Zd = "#565151", Yd = "#3c3838", qd = "#272525", Kd = "#171414", Jd = {
|
|
8069
8073
|
10: Ud,
|
|
8070
|
-
20:
|
|
8071
|
-
30:
|
|
8074
|
+
20: Fd,
|
|
8075
|
+
30: zd,
|
|
8072
8076
|
40: Wd,
|
|
8073
8077
|
50: jd,
|
|
8074
8078
|
60: Xd,
|
|
@@ -8120,7 +8124,7 @@ const Qd = (o) => {
|
|
|
8120
8124
|
let eh = 0;
|
|
8121
8125
|
class eu extends q {
|
|
8122
8126
|
constructor() {
|
|
8123
|
-
super(...arguments), this.type = "treemap", this.renderType =
|
|
8127
|
+
super(...arguments), this.type = "treemap", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
8124
8128
|
const { hoveredElement: t } = e.detail;
|
|
8125
8129
|
this.parent.selectAll("g[data-name='leaf']").transition("legend-hover-treemap").call(
|
|
8126
8130
|
(n) => this.services.transitions.setupTransition({
|
|
@@ -8172,7 +8176,7 @@ class eu extends q {
|
|
|
8172
8176
|
for (; m.depth > 1; )
|
|
8173
8177
|
m = m.parent;
|
|
8174
8178
|
return this.model.getColorClassName({
|
|
8175
|
-
classNameTypes: [
|
|
8179
|
+
classNameTypes: [z.FILL],
|
|
8176
8180
|
dataGroupName: m.data.name,
|
|
8177
8181
|
originalClassName: "leaf"
|
|
8178
8182
|
});
|
|
@@ -8302,7 +8306,7 @@ class eu extends q {
|
|
|
8302
8306
|
}
|
|
8303
8307
|
class tu extends q {
|
|
8304
8308
|
constructor() {
|
|
8305
|
-
super(...arguments), this.type = "wordcloud", this.renderType =
|
|
8309
|
+
super(...arguments), this.type = "wordcloud", this.renderType = j.SVG, this.handleLegendOnHover = (e) => {
|
|
8306
8310
|
const { hoveredElement: t } = e.detail, { groupMapsTo: n } = this.getOptions().data;
|
|
8307
8311
|
this.parent.selectAll("text.word").transition("legend-hover-wordcloud").call(
|
|
8308
8312
|
(s) => this.services.transitions.setupTransition({
|
|
@@ -8354,7 +8358,7 @@ class tu extends q {
|
|
|
8354
8358
|
}).attr(
|
|
8355
8359
|
"class",
|
|
8356
8360
|
(T) => t.model.getColorClassName({
|
|
8357
|
-
classNameTypes: [
|
|
8361
|
+
classNameTypes: [z.FILL],
|
|
8358
8362
|
dataGroupName: T[c],
|
|
8359
8363
|
originalClassName: `word ${T.size > 32 ? "light" : ""}`
|
|
8360
8364
|
})
|
|
@@ -8406,7 +8410,7 @@ class tu extends q {
|
|
|
8406
8410
|
label: ne(e, "locale.translations.group") || ne(e, "tooltip.groupLabel") || "Group",
|
|
8407
8411
|
value: i[t],
|
|
8408
8412
|
class: n.model.getColorClassName({
|
|
8409
|
-
classNameTypes: [
|
|
8413
|
+
classNameTypes: [z.TOOLTIP],
|
|
8410
8414
|
dataGroupName: i[t]
|
|
8411
8415
|
})
|
|
8412
8416
|
}
|
|
@@ -8440,7 +8444,7 @@ class tu extends q {
|
|
|
8440
8444
|
}
|
|
8441
8445
|
class th extends q {
|
|
8442
8446
|
constructor() {
|
|
8443
|
-
super(...arguments), this.type = "geo", this.renderType =
|
|
8447
|
+
super(...arguments), this.type = "geo", this.renderType = j.SVG;
|
|
8444
8448
|
}
|
|
8445
8449
|
render() {
|
|
8446
8450
|
const e = this.getComponentContainer({ withinChartClip: !0 }), { width: t, height: n } = S.getSVGElementSize(e, {
|
|
@@ -8582,8 +8586,8 @@ export {
|
|
|
8582
8586
|
Uh as K,
|
|
8583
8587
|
hl as L,
|
|
8584
8588
|
Gh as M,
|
|
8585
|
-
|
|
8586
|
-
|
|
8589
|
+
Fh as N,
|
|
8590
|
+
zh as O,
|
|
8587
8591
|
bh as P,
|
|
8588
8592
|
Wh as Q,
|
|
8589
8593
|
wa as R,
|
|
@@ -8592,7 +8596,7 @@ export {
|
|
|
8592
8596
|
jh as U,
|
|
8593
8597
|
Al as V,
|
|
8594
8598
|
Xh as W,
|
|
8595
|
-
|
|
8599
|
+
Fn as X,
|
|
8596
8600
|
Zh as Y,
|
|
8597
8601
|
xh as Z,
|
|
8598
8602
|
fl as _,
|
|
@@ -8633,4 +8637,4 @@ export {
|
|
|
8633
8637
|
Oh as y,
|
|
8634
8638
|
Th as z
|
|
8635
8639
|
};
|
|
8636
|
-
//# sourceMappingURL=choropleth-
|
|
8640
|
+
//# sourceMappingURL=choropleth-3h8ShsdZ.mjs.map
|