@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +62488 -24049
- package/dist/DbtDocsRenderer.js +1 -1
- package/dist/Stack.js +2826 -2276
- package/dist/Switch.js +128 -87
- package/dist/ToggleGroup.js +5956 -4781
- package/dist/_basePickBy.js +60 -60
- package/dist/_baseUniq.js +152 -152
- package/dist/abap.js +6 -0
- package/dist/actionscript-3.js +6 -0
- package/dist/ada.js +6 -0
- package/dist/andromeeda.js +4 -0
- package/dist/angular-html.js +32 -0
- package/dist/angular-ts.js +21 -0
- package/dist/apache.js +6 -0
- package/dist/apex.js +6 -0
- package/dist/apl.js +16 -0
- package/dist/applescript.js +6 -0
- package/dist/ara.js +6 -0
- package/dist/arc.js +53 -53
- package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
- package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
- package/dist/asciidoc.js +6 -0
- package/dist/asm.js +6 -0
- package/dist/assets/icons/index.js +1 -1
- package/dist/astro.js +18 -0
- package/dist/aurora-x.js +4 -0
- package/dist/awk.js +6 -0
- package/dist/ayu-dark.js +4 -0
- package/dist/ballerina.js +6 -0
- package/dist/band.js +46 -0
- package/dist/bat.js +6 -0
- package/dist/beancount.js +6 -0
- package/dist/berry.js +6 -0
- package/dist/bibtex.js +6 -0
- package/dist/bicep.js +6 -0
- package/dist/blade.js +20 -0
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/blockDiagram-VD42YOAC2.js +2266 -0
- package/dist/bsl.js +8 -0
- package/dist/c.js +6 -0
- package/dist/c3.js +6 -0
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
- package/dist/cadence.js +6 -0
- package/dist/cairo.js +8 -0
- package/dist/catppuccin-frappe.js +4 -0
- package/dist/catppuccin-latte.js +4 -0
- package/dist/catppuccin-macchiato.js +4 -0
- package/dist/catppuccin-mocha.js +4 -0
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.d.ts +57 -19
- package/dist/chatbotV2/index.js +120 -56
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-4BX2VUAB2.js +9 -0
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-55IACEB62.js +9 -0
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-B4BG7PRW2.js +1377 -0
- package/dist/chunk-DI55MBZ5.js +14 -14
- package/dist/chunk-DI55MBZ52.js +1382 -0
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-FMBD7UC42.js +19 -0
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QN33PNHL2.js +20 -0
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-QZHKN3VN2.js +15 -0
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/chunk-TZMSLE5B2.js +64 -0
- package/dist/clarity.js +6 -0
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-2ON5EDUG2.js +17 -0
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
- package/dist/clojure.js +6 -0
- package/dist/cmake.js +6 -0
- package/dist/cobol.js +10 -0
- package/dist/code-block-37QAKDTI.js +27 -0
- package/dist/codeowners.js +6 -0
- package/dist/codeql.js +6 -0
- package/dist/coffee.js +8 -0
- package/dist/common-lisp.js +6 -0
- package/dist/coq.js +6 -0
- package/dist/cose-bilkent-S5V4N54A.js +160 -2535
- package/dist/cose-bilkent-S5V4N54A2.js +231 -0
- package/dist/cpp.js +18 -0
- package/dist/crystal.js +18 -0
- package/dist/csharp.js +6 -0
- package/dist/css.js +6 -0
- package/dist/csv.js +6 -0
- package/dist/cue.js +6 -0
- package/dist/cypher.js +6 -0
- package/dist/cytoscape-cose-bilkent.js +2380 -0
- package/dist/cytoscape-fcose.js +3840 -0
- package/dist/d.js +6 -0
- package/dist/dagre-6UL2VRFP.js +44 -44
- package/dist/dagre-6UL2VRFP2.js +447 -0
- package/dist/dark-plus.js +4 -0
- package/dist/dart.js +6 -0
- package/dist/dax.js +6 -0
- package/dist/dayjs.min.js +2 -2
- package/dist/defaultLocale.js +3 -3
- package/dist/desktop.js +6 -0
- package/dist/diagram-PSM6KHXK.js +198 -414
- package/dist/diagram-PSM6KHXK2.js +319 -0
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-QEK2KX5R2.js +221 -0
- package/dist/diagram-S2PKOQOG.js +12 -12
- package/dist/diagram-S2PKOQOG2.js +143 -0
- package/dist/diff.js +6 -0
- package/dist/docker.js +6 -0
- package/dist/dotenv.js +6 -0
- package/dist/dracula-soft.js +4 -0
- package/dist/dracula.js +4 -0
- package/dist/dream-maker.js +6 -0
- package/dist/edge.js +12 -0
- package/dist/elixir.js +8 -0
- package/dist/elm.js +8 -0
- package/dist/emacs-lisp.js +6 -0
- package/dist/erDiagram-Q2GNP2WA.js +1 -1
- package/dist/erDiagram-Q2GNP2WA2.js +843 -0
- package/dist/erb.js +10 -0
- package/dist/erlang.js +8 -0
- package/dist/everforest-dark.js +4 -0
- package/dist/everforest-light.js +4 -0
- package/dist/fennel.js +6 -0
- package/dist/fish.js +6 -0
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/flowDiagram-NV44I4VS2.js +1628 -0
- package/dist/fluent.js +6 -0
- package/dist/fortran-fixed-form.js +8 -0
- package/dist/fortran-free-form.js +6 -0
- package/dist/fsharp.js +8 -0
- package/dist/ganttDiagram-JELNMOA3.js +1788 -0
- package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
- package/dist/gdresource.js +10 -0
- package/dist/gdscript.js +6 -0
- package/dist/gdshader.js +6 -0
- package/dist/genie.js +6 -0
- package/dist/gherkin.js +6 -0
- package/dist/git-commit.js +8 -0
- package/dist/git-rebase.js +8 -0
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
- package/dist/github-dark-default.js +4 -0
- package/dist/github-dark-dimmed.js +4 -0
- package/dist/github-dark-high-contrast.js +4 -0
- package/dist/github-dark.js +4 -0
- package/dist/github-light-default.js +4 -0
- package/dist/github-light-high-contrast.js +4 -0
- package/dist/github-light.js +4 -0
- package/dist/gleam.js +6 -0
- package/dist/glimmer-js.js +14 -0
- package/dist/glimmer-ts.js +14 -0
- package/dist/glsl.js +8 -0
- package/dist/gn.js +6 -0
- package/dist/gnuplot.js +6 -0
- package/dist/go.js +6 -0
- package/dist/graph.js +17 -18
- package/dist/graph2.js +246 -0
- package/dist/graphql.js +14 -0
- package/dist/groovy.js +6 -0
- package/dist/gruvbox-dark-hard.js +4 -0
- package/dist/gruvbox-dark-medium.js +4 -0
- package/dist/gruvbox-dark-soft.js +4 -0
- package/dist/gruvbox-light-hard.js +4 -0
- package/dist/gruvbox-light-medium.js +4 -0
- package/dist/gruvbox-light-soft.js +4 -0
- package/dist/hack.js +10 -0
- package/dist/haml.js +10 -0
- package/dist/handlebars.js +14 -0
- package/dist/haskell.js +6 -0
- package/dist/haxe.js +6 -0
- package/dist/hcl.js +6 -0
- package/dist/hjson.js +6 -0
- package/dist/hlsl.js +6 -0
- package/dist/houston.js +4 -0
- package/dist/html-derivative.js +8 -0
- package/dist/html.js +10 -0
- package/dist/http.js +14 -0
- package/dist/hurl.js +12 -0
- package/dist/hxml.js +8 -0
- package/dist/hy.js +6 -0
- package/dist/imba.js +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -37
- package/dist/index2.js +216 -684
- package/dist/index3.js +689 -0
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/infoDiagram-WHAUD3N6.js +24 -0
- package/dist/ini.js +6 -0
- package/dist/java.js +6 -0
- package/dist/javascript.js +6 -0
- package/dist/jinja.js +11 -0
- package/dist/jison.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
- package/dist/json.js +6 -0
- package/dist/json5.js +6 -0
- package/dist/jsonc.js +6 -0
- package/dist/jsonl.js +6 -0
- package/dist/jsonnet.js +6 -0
- package/dist/jssm.js +6 -0
- package/dist/jsx.js +6 -0
- package/dist/julia.js +16 -0
- package/dist/kanagawa-dragon.js +4 -0
- package/dist/kanagawa-lotus.js +4 -0
- package/dist/kanagawa-wave.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7.js +42 -42
- package/dist/kanban-definition-3W4ZIXB72.js +720 -0
- package/dist/katex2.js +11691 -0
- package/dist/kdl.js +6 -0
- package/dist/kotlin.js +6 -0
- package/dist/kusto.js +6 -0
- package/dist/laserwave.js +4 -0
- package/dist/latex.js +8 -0
- package/dist/layout.js +567 -678
- package/dist/layout2.js +1224 -0
- package/dist/lean.js +6 -0
- package/dist/less.js +6 -0
- package/dist/light-plus.js +4 -0
- package/dist/lineage/index.js +1234 -1241
- package/dist/linear.js +1 -1
- package/dist/liquid.js +14 -0
- package/dist/llvm.js +6 -0
- package/dist/log.js +6 -0
- package/dist/logo.js +6 -0
- package/dist/lua.js +8 -0
- package/dist/luau.js +6 -0
- package/dist/main.css +1 -1
- package/dist/main.js +82 -82
- package/dist/make.js +6 -0
- package/dist/markdown.js +6 -0
- package/dist/marko.js +14 -0
- package/dist/material-theme-darker.js +4 -0
- package/dist/material-theme-lighter.js +4 -0
- package/dist/material-theme-ocean.js +4 -0
- package/dist/material-theme-palenight.js +4 -0
- package/dist/material-theme.js +4 -0
- package/dist/matlab.js +6 -0
- package/dist/mdc.js +12 -0
- package/dist/mdx.js +6 -0
- package/dist/mermaid-4DMBBIKO.js +4 -0
- package/dist/mermaid-parser.core.js +155 -155
- package/dist/mermaid.js +6 -0
- package/dist/min-dark.js +4 -0
- package/dist/min-light.js +4 -0
- package/dist/mindmap-definition-VGOIOE7T.js +28 -28
- package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
- package/dist/mipsasm.js +6 -0
- package/dist/mojo.js +6 -0
- package/dist/monokai.js +4 -0
- package/dist/moonbit.js +6 -0
- package/dist/move.js +6 -0
- package/dist/narrat.js +6 -0
- package/dist/nextflow.js +6 -0
- package/dist/nginx.js +8 -0
- package/dist/night-owl.js +4 -0
- package/dist/nim.js +20 -0
- package/dist/nix.js +9 -0
- package/dist/nord.js +4 -0
- package/dist/nushell.js +6 -0
- package/dist/objective-c.js +6 -0
- package/dist/objective-cpp.js +6 -0
- package/dist/ocaml.js +6 -0
- package/dist/one-dark-pro.js +4 -0
- package/dist/one-light.js +4 -0
- package/dist/openscad.js +6 -0
- package/dist/pascal.js +6 -0
- package/dist/perl.js +16 -0
- package/dist/php.js +18 -0
- package/dist/pie.js +45 -0
- package/dist/pieDiagram-ADFJNKIX.js +68 -108
- package/dist/pieDiagram-ADFJNKIX2.js +123 -0
- package/dist/pkl.js +6 -0
- package/dist/plastic.js +4 -0
- package/dist/plsql.js +6 -0
- package/dist/po.js +6 -0
- package/dist/poimandres.js +4 -0
- package/dist/polar.js +6 -0
- package/dist/postcss.js +6 -0
- package/dist/powerquery.js +6 -0
- package/dist/powershell.js +6 -0
- package/dist/prisma.js +6 -0
- package/dist/prolog.js +6 -0
- package/dist/proto.js +6 -0
- package/dist/pug.js +12 -0
- package/dist/puppet.js +6 -0
- package/dist/purescript.js +6 -0
- package/dist/python.js +6 -0
- package/dist/qml.js +8 -0
- package/dist/qmldir.js +6 -0
- package/dist/qss.js +6 -0
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
- package/dist/r.js +6 -0
- package/dist/racket.js +6 -0
- package/dist/raku.js +6 -0
- package/dist/razor.js +10 -0
- package/dist/red.js +4 -0
- package/dist/redux-toolkit.modern.js +563 -555
- package/dist/reg.js +6 -0
- package/dist/regexp.js +6 -0
- package/dist/rel.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
- package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
- package/dist/riscv.js +6 -0
- package/dist/rose-pine-dawn.js +4 -0
- package/dist/rose-pine-moon.js +4 -0
- package/dist/rose-pine.js +4 -0
- package/dist/rosmsg.js +6 -0
- package/dist/rst.js +22 -0
- package/dist/ruby.js +30 -0
- package/dist/rust.js +6 -0
- package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
- package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
- package/dist/sankeyLinkHorizontal.js +403 -0
- package/dist/sas.js +8 -0
- package/dist/sass.js +6 -0
- package/dist/scala.js +6 -0
- package/dist/scheme.js +6 -0
- package/dist/scss.js +8 -0
- package/dist/sdbl.js +6 -0
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
- package/dist/shadcn/index.d.ts +24 -40
- package/dist/shadcn/index.js +7330 -5516
- package/dist/shaderlab.js +8 -0
- package/dist/shellscript.js +6 -0
- package/dist/shellsession.js +8 -0
- package/dist/slack-dark.js +4 -0
- package/dist/slack-ochin.js +4 -0
- package/dist/smalltalk.js +6 -0
- package/dist/snazzy-light.js +4 -0
- package/dist/solarized-dark.js +4 -0
- package/dist/solarized-light.js +4 -0
- package/dist/solidity.js +6 -0
- package/dist/soy.js +8 -0
- package/dist/sparql.js +8 -0
- package/dist/splunk.js +6 -0
- package/dist/sql.js +6 -0
- package/dist/ssh-config.js +6 -0
- package/dist/stata.js +8 -0
- package/dist/stateDiagram-FKZM4ZOC.js +33 -33
- package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
- package/dist/storybook/Typography.stories.tsx +93 -120
- package/dist/stylus.js +6 -0
- package/dist/svelte.js +14 -0
- package/dist/swift.js +6 -0
- package/dist/synthwave-84.js +4 -0
- package/dist/system-verilog.js +6 -0
- package/dist/systemd.js +6 -0
- package/dist/talonscript.js +6 -0
- package/dist/tasl.js +6 -0
- package/dist/tcl.js +6 -0
- package/dist/templ.js +12 -0
- package/dist/terraform.js +6 -0
- package/dist/tex.js +8 -0
- package/dist/time.js +900 -0
- package/dist/timeline-definition-IT6M3QCI.js +63 -63
- package/dist/timeline-definition-IT6M3QCI2.js +802 -0
- package/dist/tokyo-night.js +4 -0
- package/dist/toml.js +6 -0
- package/dist/ts-tags.js +41 -0
- package/dist/tsv.js +6 -0
- package/dist/tsx.js +6 -0
- package/dist/turtle.js +6 -0
- package/dist/twig.js +18 -0
- package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
- package/dist/typescript.js +6 -0
- package/dist/typespec.js +6 -0
- package/dist/typst.js +6 -0
- package/dist/union.js +8 -0
- package/dist/v.js +6 -0
- package/dist/vala.js +6 -0
- package/dist/vb.js +6 -0
- package/dist/verilog.js +6 -0
- package/dist/vesper.js +4 -0
- package/dist/vhdl.js +6 -0
- package/dist/viml.js +6 -0
- package/dist/vitesse-black.js +4 -0
- package/dist/vitesse-dark.js +4 -0
- package/dist/vitesse-light.js +4 -0
- package/dist/vue-html.js +8 -0
- package/dist/vue-vine.js +18 -0
- package/dist/vue.js +31 -0
- package/dist/vyper.js +6 -0
- package/dist/wasm.js +6 -0
- package/dist/wasm2.js +7 -0
- package/dist/wenyan.js +6 -0
- package/dist/wgsl.js +6 -0
- package/dist/wikitext.js +6 -0
- package/dist/wit.js +6 -0
- package/dist/wolfram.js +6 -0
- package/dist/xml.js +8 -0
- package/dist/xsl.js +8 -0
- package/dist/xychartDiagram-PRI3JC2R.js +449 -491
- package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
- package/dist/yaml.js +6 -0
- package/dist/zenscript.js +6 -0
- package/dist/zig.js +6 -0
- package/dist/zipObject.js +128 -0
- package/package.json +1 -1
|
@@ -1,220 +1,178 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as n, M as gi, l as Xt, N as Bt, L as xi, E as Ct, D as Nt, C as di, i as pi, n as Yt, s as fi, g as yi, m as mi, b as bi, c as Ai, r as wi, H as Ci, j as Si } from "./CoachForm.js";
|
|
2
2
|
import "./redux-toolkit.modern.js";
|
|
3
|
-
import {
|
|
4
|
-
import { o as ki } from "./ordinal.js";
|
|
3
|
+
import { b as Wt } from "./band.js";
|
|
5
4
|
import { l as zt } from "./linear.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
o[s] = e + s * i;
|
|
10
|
-
return o;
|
|
11
|
-
}
|
|
12
|
-
function yt() {
|
|
13
|
-
var e = ki().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, o, g, m = !1, p = 0, k = 0, v = 0.5;
|
|
14
|
-
delete e.unknown;
|
|
15
|
-
function C() {
|
|
16
|
-
var b = t().length, E = n < s, D = E ? n : s, P = E ? s : n;
|
|
17
|
-
o = (P - D) / Math.max(1, b - p + k * 2), m && (o = Math.floor(o)), D += (P - D - o * (b - p)) * v, g = o * (1 - p), m && (D = Math.round(D), g = Math.round(g));
|
|
18
|
-
var I = Ri(b).map(function(y) {
|
|
19
|
-
return D + o * y;
|
|
20
|
-
});
|
|
21
|
-
return i(E ? I.reverse() : I);
|
|
22
|
-
}
|
|
23
|
-
return e.domain = function(b) {
|
|
24
|
-
return arguments.length ? (t(b), C()) : t();
|
|
25
|
-
}, e.range = function(b) {
|
|
26
|
-
return arguments.length ? ([s, n] = b, s = +s, n = +n, C()) : [s, n];
|
|
27
|
-
}, e.rangeRound = function(b) {
|
|
28
|
-
return [s, n] = b, s = +s, n = +n, m = !0, C();
|
|
29
|
-
}, e.bandwidth = function() {
|
|
30
|
-
return g;
|
|
31
|
-
}, e.step = function() {
|
|
32
|
-
return o;
|
|
33
|
-
}, e.round = function(b) {
|
|
34
|
-
return arguments.length ? (m = !!b, C()) : m;
|
|
35
|
-
}, e.padding = function(b) {
|
|
36
|
-
return arguments.length ? (p = Math.min(1, k = +b), C()) : p;
|
|
37
|
-
}, e.paddingInner = function(b) {
|
|
38
|
-
return arguments.length ? (p = Math.min(1, b), C()) : p;
|
|
39
|
-
}, e.paddingOuter = function(b) {
|
|
40
|
-
return arguments.length ? (k = +b, C()) : k;
|
|
41
|
-
}, e.align = function(b) {
|
|
42
|
-
return arguments.length ? (v = Math.max(0, Math.min(1, b)), C()) : v;
|
|
43
|
-
}, e.copy = function() {
|
|
44
|
-
return yt(t(), [s, n]).round(m).paddingInner(p).paddingOuter(k).align(v);
|
|
45
|
-
}, _i.apply(C(), arguments);
|
|
46
|
-
}
|
|
47
|
-
var bt = function() {
|
|
48
|
-
var e = /* @__PURE__ */ a(function(O, h, u, x) {
|
|
49
|
-
for (u = u || {}, x = O.length; x--; u[O[x]] = h) ;
|
|
5
|
+
var mt = function() {
|
|
6
|
+
var s = /* @__PURE__ */ n(function(W, r, u, g) {
|
|
7
|
+
for (u = u || {}, g = W.length; g--; u[W[g]] = r) ;
|
|
50
8
|
return u;
|
|
51
|
-
}, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6],
|
|
52
|
-
trace: /* @__PURE__ */
|
|
9
|
+
}, "o"), t = [1, 10, 12, 14, 16, 18, 19, 21, 23], i = [2, 6], e = [1, 3], a = [1, 5], c = [1, 6], d = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], b = [1, 25], P = [1, 26], I = [1, 28], R = [1, 29], L = [1, 30], z = [1, 31], F = [1, 32], D = [1, 33], V = [1, 34], f = [1, 35], C = [1, 36], l = [1, 37], M = [1, 43], B = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], k = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], S = [1, 64], $ = {
|
|
10
|
+
trace: /* @__PURE__ */ n(function() {
|
|
53
11
|
}, "trace"),
|
|
54
12
|
yy: {},
|
|
55
13
|
symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
|
|
56
14
|
terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
|
|
57
15
|
productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
|
|
58
|
-
performAction: /* @__PURE__ */
|
|
59
|
-
var
|
|
60
|
-
switch (
|
|
16
|
+
performAction: /* @__PURE__ */ n(function(r, u, g, x, A, o, nt) {
|
|
17
|
+
var p = o.length - 1;
|
|
18
|
+
switch (A) {
|
|
61
19
|
case 5:
|
|
62
|
-
|
|
20
|
+
x.setOrientation(o[p]);
|
|
63
21
|
break;
|
|
64
22
|
case 9:
|
|
65
|
-
|
|
23
|
+
x.setDiagramTitle(o[p].text.trim());
|
|
66
24
|
break;
|
|
67
25
|
case 12:
|
|
68
|
-
|
|
26
|
+
x.setLineData({ text: "", type: "text" }, o[p]);
|
|
69
27
|
break;
|
|
70
28
|
case 13:
|
|
71
|
-
|
|
29
|
+
x.setLineData(o[p - 1], o[p]);
|
|
72
30
|
break;
|
|
73
31
|
case 14:
|
|
74
|
-
|
|
32
|
+
x.setBarData({ text: "", type: "text" }, o[p]);
|
|
75
33
|
break;
|
|
76
34
|
case 15:
|
|
77
|
-
|
|
35
|
+
x.setBarData(o[p - 1], o[p]);
|
|
78
36
|
break;
|
|
79
37
|
case 16:
|
|
80
|
-
this.$ =
|
|
38
|
+
this.$ = o[p].trim(), x.setAccTitle(this.$);
|
|
81
39
|
break;
|
|
82
40
|
case 17:
|
|
83
41
|
case 18:
|
|
84
|
-
this.$ =
|
|
42
|
+
this.$ = o[p].trim(), x.setAccDescription(this.$);
|
|
85
43
|
break;
|
|
86
44
|
case 19:
|
|
87
|
-
this.$ =
|
|
45
|
+
this.$ = o[p - 1];
|
|
88
46
|
break;
|
|
89
47
|
case 20:
|
|
90
|
-
this.$ = [Number(
|
|
48
|
+
this.$ = [Number(o[p - 2]), ...o[p]];
|
|
91
49
|
break;
|
|
92
50
|
case 21:
|
|
93
|
-
this.$ = [Number(
|
|
51
|
+
this.$ = [Number(o[p])];
|
|
94
52
|
break;
|
|
95
53
|
case 22:
|
|
96
|
-
|
|
54
|
+
x.setXAxisTitle(o[p]);
|
|
97
55
|
break;
|
|
98
56
|
case 23:
|
|
99
|
-
|
|
57
|
+
x.setXAxisTitle(o[p - 1]);
|
|
100
58
|
break;
|
|
101
59
|
case 24:
|
|
102
|
-
|
|
60
|
+
x.setXAxisTitle({ type: "text", text: "" });
|
|
103
61
|
break;
|
|
104
62
|
case 25:
|
|
105
|
-
|
|
63
|
+
x.setXAxisBand(o[p]);
|
|
106
64
|
break;
|
|
107
65
|
case 26:
|
|
108
|
-
|
|
66
|
+
x.setXAxisRangeData(Number(o[p - 2]), Number(o[p]));
|
|
109
67
|
break;
|
|
110
68
|
case 27:
|
|
111
|
-
this.$ =
|
|
69
|
+
this.$ = o[p - 1];
|
|
112
70
|
break;
|
|
113
71
|
case 28:
|
|
114
|
-
this.$ = [
|
|
72
|
+
this.$ = [o[p - 2], ...o[p]];
|
|
115
73
|
break;
|
|
116
74
|
case 29:
|
|
117
|
-
this.$ = [
|
|
75
|
+
this.$ = [o[p]];
|
|
118
76
|
break;
|
|
119
77
|
case 30:
|
|
120
|
-
|
|
78
|
+
x.setYAxisTitle(o[p]);
|
|
121
79
|
break;
|
|
122
80
|
case 31:
|
|
123
|
-
|
|
81
|
+
x.setYAxisTitle(o[p - 1]);
|
|
124
82
|
break;
|
|
125
83
|
case 32:
|
|
126
|
-
|
|
84
|
+
x.setYAxisTitle({ type: "text", text: "" });
|
|
127
85
|
break;
|
|
128
86
|
case 33:
|
|
129
|
-
|
|
87
|
+
x.setYAxisRangeData(Number(o[p - 2]), Number(o[p]));
|
|
130
88
|
break;
|
|
131
89
|
case 37:
|
|
132
|
-
this.$ = { text:
|
|
90
|
+
this.$ = { text: o[p], type: "text" };
|
|
133
91
|
break;
|
|
134
92
|
case 38:
|
|
135
|
-
this.$ = { text:
|
|
93
|
+
this.$ = { text: o[p], type: "text" };
|
|
136
94
|
break;
|
|
137
95
|
case 39:
|
|
138
|
-
this.$ = { text:
|
|
96
|
+
this.$ = { text: o[p], type: "markdown" };
|
|
139
97
|
break;
|
|
140
98
|
case 40:
|
|
141
|
-
this.$ =
|
|
99
|
+
this.$ = o[p];
|
|
142
100
|
break;
|
|
143
101
|
case 41:
|
|
144
|
-
this.$ =
|
|
102
|
+
this.$ = o[p - 1] + "" + o[p];
|
|
145
103
|
break;
|
|
146
104
|
}
|
|
147
105
|
}, "anonymous"),
|
|
148
|
-
table: [
|
|
106
|
+
table: [s(t, i, { 3: 1, 4: 2, 7: 4, 5: e, 34: a, 35: c, 36: d }), { 1: [3] }, s(t, i, { 4: 2, 7: 4, 3: 8, 5: e, 34: a, 35: c, 36: d }), s(t, i, { 4: 2, 7: 4, 6: 9, 3: 10, 5: e, 8: [1, 11], 34: a, 35: c, 36: d }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, s(m, [2, 34]), s(m, [2, 35]), s(m, [2, 36]), { 1: [2, 1] }, s(t, i, { 4: 2, 7: 4, 3: 21, 5: e, 34: a, 35: c, 36: d }), { 1: [2, 3] }, s(m, [2, 5]), s(t, [2, 7], { 4: 22, 34: a, 35: c, 36: d }), { 11: 23, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 39, 13: 38, 24: M, 27: B, 29: 40, 30: 41, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, s(h, [2, 18]), { 1: [2, 2] }, s(h, [2, 8]), s(h, [2, 9]), s(k, [2, 37], { 40: 55, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }), s(k, [2, 38]), s(k, [2, 39]), s(w, [2, 40]), s(w, [2, 42]), s(w, [2, 43]), s(w, [2, 44]), s(w, [2, 45]), s(w, [2, 46]), s(w, [2, 47]), s(w, [2, 48]), s(w, [2, 49]), s(w, [2, 50]), s(w, [2, 51]), s(h, [2, 10]), s(h, [2, 22], { 30: 41, 29: 56, 24: M, 27: B }), s(h, [2, 24]), s(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 11]), s(h, [2, 30], { 33: 60, 27: U }), s(h, [2, 32]), { 31: [1, 61] }, s(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: S }, s(h, [2, 14]), { 17: 65, 24: X }, s(h, [2, 16]), s(h, [2, 17]), s(w, [2, 41]), s(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, s(h, [2, 31]), { 27: [1, 69] }, s(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, s(h, [2, 15]), s(h, [2, 26]), s(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: b, 39: P, 40: 27, 41: I, 42: R, 43: L, 44: z, 45: F, 46: D, 47: V, 48: f, 49: C, 50: l }, s(h, [2, 33]), s(h, [2, 19]), { 25: 73, 27: S }, { 26: [2, 28] }, { 26: [2, 20] }],
|
|
149
107
|
defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
|
|
150
|
-
parseError: /* @__PURE__ */
|
|
108
|
+
parseError: /* @__PURE__ */ n(function(r, u) {
|
|
151
109
|
if (u.recoverable)
|
|
152
|
-
this.trace(
|
|
110
|
+
this.trace(r);
|
|
153
111
|
else {
|
|
154
|
-
var
|
|
155
|
-
throw
|
|
112
|
+
var g = new Error(r);
|
|
113
|
+
throw g.hash = u, g;
|
|
156
114
|
}
|
|
157
115
|
}, "parseError"),
|
|
158
|
-
parse: /* @__PURE__ */
|
|
159
|
-
var u = this,
|
|
116
|
+
parse: /* @__PURE__ */ n(function(r) {
|
|
117
|
+
var u = this, g = [0], x = [], A = [null], o = [], nt = this.table, p = "", lt = 0, Et = 0, hi = 2, It = 1, li = o.slice.call(arguments, 1), _ = Object.create(this.lexer), Y = { yy: {} };
|
|
160
118
|
for (var dt in this.yy)
|
|
161
119
|
Object.prototype.hasOwnProperty.call(this.yy, dt) && (Y.yy[dt] = this.yy[dt]);
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
var ci =
|
|
120
|
+
_.setInput(r, Y.yy), Y.yy.lexer = _, Y.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
121
|
+
var pt = _.yylloc;
|
|
122
|
+
o.push(pt);
|
|
123
|
+
var ci = _.options && _.options.ranges;
|
|
166
124
|
typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
167
|
-
function ui(
|
|
168
|
-
|
|
125
|
+
function ui(v) {
|
|
126
|
+
g.length = g.length - 2 * v, A.length = A.length - v, o.length = o.length - v;
|
|
169
127
|
}
|
|
170
|
-
|
|
128
|
+
n(ui, "popStack");
|
|
171
129
|
function Vt() {
|
|
172
|
-
var
|
|
173
|
-
return
|
|
130
|
+
var v;
|
|
131
|
+
return v = x.pop() || _.lex() || It, typeof v != "number" && (v instanceof Array && (x = v, v = x.pop()), v = u.symbols_[v] || v), v;
|
|
174
132
|
}
|
|
175
|
-
|
|
176
|
-
for (var
|
|
177
|
-
if (H =
|
|
178
|
-
var
|
|
133
|
+
n(Vt, "lex");
|
|
134
|
+
for (var T, H, E, ft, j = {}, ct, O, Mt, ut; ; ) {
|
|
135
|
+
if (H = g[g.length - 1], this.defaultActions[H] ? E = this.defaultActions[H] : ((T === null || typeof T > "u") && (T = Vt()), E = nt[H] && nt[H][T]), typeof E > "u" || !E.length || !E[0]) {
|
|
136
|
+
var yt = "";
|
|
179
137
|
ut = [];
|
|
180
|
-
for (ct in
|
|
138
|
+
for (ct in nt[H])
|
|
181
139
|
this.terminals_[ct] && ct > hi && ut.push("'" + this.terminals_[ct] + "'");
|
|
182
|
-
|
|
183
|
-
` +
|
|
184
|
-
Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[
|
|
185
|
-
text:
|
|
186
|
-
token: this.terminals_[
|
|
187
|
-
line:
|
|
188
|
-
loc:
|
|
140
|
+
_.showPosition ? yt = "Parse error on line " + (lt + 1) + `:
|
|
141
|
+
` + _.showPosition() + `
|
|
142
|
+
Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : yt = "Parse error on line " + (lt + 1) + ": Unexpected " + (T == It ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(yt, {
|
|
143
|
+
text: _.match,
|
|
144
|
+
token: this.terminals_[T] || T,
|
|
145
|
+
line: _.yylineno,
|
|
146
|
+
loc: pt,
|
|
189
147
|
expected: ut
|
|
190
148
|
});
|
|
191
149
|
}
|
|
192
|
-
if (
|
|
193
|
-
throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " +
|
|
194
|
-
switch (
|
|
150
|
+
if (E[0] instanceof Array && E.length > 1)
|
|
151
|
+
throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + T);
|
|
152
|
+
switch (E[0]) {
|
|
195
153
|
case 1:
|
|
196
|
-
|
|
154
|
+
g.push(T), A.push(_.yytext), o.push(_.yylloc), g.push(E[1]), T = null, Et = _.yyleng, p = _.yytext, lt = _.yylineno, pt = _.yylloc;
|
|
197
155
|
break;
|
|
198
156
|
case 2:
|
|
199
|
-
if (
|
|
200
|
-
first_line:
|
|
201
|
-
last_line:
|
|
202
|
-
first_column:
|
|
203
|
-
last_column:
|
|
204
|
-
}, ci && (
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
]),
|
|
208
|
-
|
|
209
|
-
|
|
157
|
+
if (O = this.productions_[E[1]][1], j.$ = A[A.length - O], j._$ = {
|
|
158
|
+
first_line: o[o.length - (O || 1)].first_line,
|
|
159
|
+
last_line: o[o.length - 1].last_line,
|
|
160
|
+
first_column: o[o.length - (O || 1)].first_column,
|
|
161
|
+
last_column: o[o.length - 1].last_column
|
|
162
|
+
}, ci && (j._$.range = [
|
|
163
|
+
o[o.length - (O || 1)].range[0],
|
|
164
|
+
o[o.length - 1].range[1]
|
|
165
|
+
]), ft = this.performAction.apply(j, [
|
|
166
|
+
p,
|
|
167
|
+
Et,
|
|
210
168
|
lt,
|
|
211
169
|
Y.yy,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
].concat(li)), typeof
|
|
216
|
-
return
|
|
217
|
-
|
|
170
|
+
E[1],
|
|
171
|
+
A,
|
|
172
|
+
o
|
|
173
|
+
].concat(li)), typeof ft < "u")
|
|
174
|
+
return ft;
|
|
175
|
+
O && (g = g.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), g.push(this.productions_[E[1]][0]), A.push(j.$), o.push(j._$), Mt = nt[g[g.length - 2]][g[g.length - 1]], g.push(Mt);
|
|
218
176
|
break;
|
|
219
177
|
case 3:
|
|
220
178
|
return !0;
|
|
@@ -222,18 +180,18 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
222
180
|
}
|
|
223
181
|
return !0;
|
|
224
182
|
}, "parse")
|
|
225
|
-
},
|
|
226
|
-
var
|
|
183
|
+
}, Lt = /* @__PURE__ */ function() {
|
|
184
|
+
var W = {
|
|
227
185
|
EOF: 1,
|
|
228
|
-
parseError: /* @__PURE__ */
|
|
186
|
+
parseError: /* @__PURE__ */ n(function(u, g) {
|
|
229
187
|
if (this.yy.parser)
|
|
230
|
-
this.yy.parser.parseError(u,
|
|
188
|
+
this.yy.parser.parseError(u, g);
|
|
231
189
|
else
|
|
232
190
|
throw new Error(u);
|
|
233
191
|
}, "parseError"),
|
|
234
192
|
// resets the lexer, sets new input
|
|
235
|
-
setInput: /* @__PURE__ */
|
|
236
|
-
return this.yy = u || this.yy || {}, this._input =
|
|
193
|
+
setInput: /* @__PURE__ */ n(function(r, u) {
|
|
194
|
+
return this.yy = u || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
237
195
|
first_line: 1,
|
|
238
196
|
first_column: 0,
|
|
239
197
|
last_line: 1,
|
|
@@ -241,32 +199,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
241
199
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
242
200
|
}, "setInput"),
|
|
243
201
|
// consumes and returns one char from the input
|
|
244
|
-
input: /* @__PURE__ */
|
|
245
|
-
var
|
|
246
|
-
this.yytext +=
|
|
247
|
-
var u =
|
|
248
|
-
return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1),
|
|
202
|
+
input: /* @__PURE__ */ n(function() {
|
|
203
|
+
var r = this._input[0];
|
|
204
|
+
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
205
|
+
var u = r.match(/(?:\r\n?|\n).*/g);
|
|
206
|
+
return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
249
207
|
}, "input"),
|
|
250
208
|
// unshifts one char (or a string) into the input
|
|
251
|
-
unput: /* @__PURE__ */
|
|
252
|
-
var u =
|
|
253
|
-
this._input =
|
|
254
|
-
var
|
|
255
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
256
|
-
var
|
|
209
|
+
unput: /* @__PURE__ */ n(function(r) {
|
|
210
|
+
var u = r.length, g = r.split(/(?:\r\n?|\n)/g);
|
|
211
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
|
|
212
|
+
var x = this.match.split(/(?:\r\n?|\n)/g);
|
|
213
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
|
|
214
|
+
var A = this.yylloc.range;
|
|
257
215
|
return this.yylloc = {
|
|
258
216
|
first_line: this.yylloc.first_line,
|
|
259
217
|
last_line: this.yylineno + 1,
|
|
260
218
|
first_column: this.yylloc.first_column,
|
|
261
|
-
last_column:
|
|
262
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
219
|
+
last_column: g ? (g.length === x.length ? this.yylloc.first_column : 0) + x[x.length - g.length].length - g[0].length : this.yylloc.first_column - u
|
|
220
|
+
}, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - u]), this.yyleng = this.yytext.length, this;
|
|
263
221
|
}, "unput"),
|
|
264
222
|
// When called from action, caches matched text and appends it on next action
|
|
265
|
-
more: /* @__PURE__ */
|
|
223
|
+
more: /* @__PURE__ */ n(function() {
|
|
266
224
|
return this._more = !0, this;
|
|
267
225
|
}, "more"),
|
|
268
226
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
269
|
-
reject: /* @__PURE__ */
|
|
227
|
+
reject: /* @__PURE__ */ n(function() {
|
|
270
228
|
if (this.options.backtrack_lexer)
|
|
271
229
|
this._backtrack = !0;
|
|
272
230
|
else
|
|
@@ -279,29 +237,29 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
279
237
|
return this;
|
|
280
238
|
}, "reject"),
|
|
281
239
|
// retain first n characters of the match
|
|
282
|
-
less: /* @__PURE__ */
|
|
283
|
-
this.unput(this.match.slice(
|
|
240
|
+
less: /* @__PURE__ */ n(function(r) {
|
|
241
|
+
this.unput(this.match.slice(r));
|
|
284
242
|
}, "less"),
|
|
285
243
|
// displays already matched input, i.e. for error messages
|
|
286
|
-
pastInput: /* @__PURE__ */
|
|
287
|
-
var
|
|
288
|
-
return (
|
|
244
|
+
pastInput: /* @__PURE__ */ n(function() {
|
|
245
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
246
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
289
247
|
}, "pastInput"),
|
|
290
248
|
// displays upcoming input, i.e. for error messages
|
|
291
|
-
upcomingInput: /* @__PURE__ */
|
|
292
|
-
var
|
|
293
|
-
return
|
|
249
|
+
upcomingInput: /* @__PURE__ */ n(function() {
|
|
250
|
+
var r = this.match;
|
|
251
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
294
252
|
}, "upcomingInput"),
|
|
295
253
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
296
|
-
showPosition: /* @__PURE__ */
|
|
297
|
-
var
|
|
298
|
-
return
|
|
254
|
+
showPosition: /* @__PURE__ */ n(function() {
|
|
255
|
+
var r = this.pastInput(), u = new Array(r.length + 1).join("-");
|
|
256
|
+
return r + this.upcomingInput() + `
|
|
299
257
|
` + u + "^";
|
|
300
258
|
}, "showPosition"),
|
|
301
259
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
302
|
-
test_match: /* @__PURE__ */
|
|
303
|
-
var
|
|
304
|
-
if (this.options.backtrack_lexer && (
|
|
260
|
+
test_match: /* @__PURE__ */ n(function(r, u) {
|
|
261
|
+
var g, x, A;
|
|
262
|
+
if (this.options.backtrack_lexer && (A = {
|
|
305
263
|
yylineno: this.yylineno,
|
|
306
264
|
yylloc: {
|
|
307
265
|
first_line: this.yylloc.first_line,
|
|
@@ -320,32 +278,32 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
320
278
|
yy: this.yy,
|
|
321
279
|
conditionStack: this.conditionStack.slice(0),
|
|
322
280
|
done: this.done
|
|
323
|
-
}, this.options.ranges && (
|
|
281
|
+
}, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
|
|
324
282
|
first_line: this.yylloc.last_line,
|
|
325
283
|
last_line: this.yylineno + 1,
|
|
326
284
|
first_column: this.yylloc.last_column,
|
|
327
|
-
last_column:
|
|
328
|
-
}, this.yytext +=
|
|
329
|
-
return
|
|
285
|
+
last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
286
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], g = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
|
|
287
|
+
return g;
|
|
330
288
|
if (this._backtrack) {
|
|
331
|
-
for (var
|
|
332
|
-
this[
|
|
289
|
+
for (var o in A)
|
|
290
|
+
this[o] = A[o];
|
|
333
291
|
return !1;
|
|
334
292
|
}
|
|
335
293
|
return !1;
|
|
336
294
|
}, "test_match"),
|
|
337
295
|
// return next match in input
|
|
338
|
-
next: /* @__PURE__ */
|
|
296
|
+
next: /* @__PURE__ */ n(function() {
|
|
339
297
|
if (this.done)
|
|
340
298
|
return this.EOF;
|
|
341
299
|
this._input || (this.done = !0);
|
|
342
|
-
var
|
|
300
|
+
var r, u, g, x;
|
|
343
301
|
this._more || (this.yytext = "", this.match = "");
|
|
344
|
-
for (var
|
|
345
|
-
if (
|
|
346
|
-
if (u =
|
|
347
|
-
if (
|
|
348
|
-
return
|
|
302
|
+
for (var A = this._currentRules(), o = 0; o < A.length; o++)
|
|
303
|
+
if (g = this._input.match(this.rules[A[o]]), g && (!u || g[0].length > u[0].length)) {
|
|
304
|
+
if (u = g, x = o, this.options.backtrack_lexer) {
|
|
305
|
+
if (r = this.test_match(g, A[o]), r !== !1)
|
|
306
|
+
return r;
|
|
349
307
|
if (this._backtrack) {
|
|
350
308
|
u = !1;
|
|
351
309
|
continue;
|
|
@@ -354,7 +312,7 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
354
312
|
} else if (!this.options.flex)
|
|
355
313
|
break;
|
|
356
314
|
}
|
|
357
|
-
return u ? (
|
|
315
|
+
return u ? (r = this.test_match(u, A[x]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
358
316
|
` + this.showPosition(), {
|
|
359
317
|
text: "",
|
|
360
318
|
token: null,
|
|
@@ -362,38 +320,38 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
362
320
|
});
|
|
363
321
|
}, "next"),
|
|
364
322
|
// return next match that has a token
|
|
365
|
-
lex: /* @__PURE__ */
|
|
323
|
+
lex: /* @__PURE__ */ n(function() {
|
|
366
324
|
var u = this.next();
|
|
367
325
|
return u || this.lex();
|
|
368
326
|
}, "lex"),
|
|
369
327
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
370
|
-
begin: /* @__PURE__ */
|
|
328
|
+
begin: /* @__PURE__ */ n(function(u) {
|
|
371
329
|
this.conditionStack.push(u);
|
|
372
330
|
}, "begin"),
|
|
373
331
|
// pop the previously active lexer condition state off the condition stack
|
|
374
|
-
popState: /* @__PURE__ */
|
|
332
|
+
popState: /* @__PURE__ */ n(function() {
|
|
375
333
|
var u = this.conditionStack.length - 1;
|
|
376
334
|
return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
377
335
|
}, "popState"),
|
|
378
336
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
379
|
-
_currentRules: /* @__PURE__ */
|
|
337
|
+
_currentRules: /* @__PURE__ */ n(function() {
|
|
380
338
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
381
339
|
}, "_currentRules"),
|
|
382
340
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
383
|
-
topState: /* @__PURE__ */
|
|
341
|
+
topState: /* @__PURE__ */ n(function(u) {
|
|
384
342
|
return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
|
|
385
343
|
}, "topState"),
|
|
386
344
|
// alias for begin(condition)
|
|
387
|
-
pushState: /* @__PURE__ */
|
|
345
|
+
pushState: /* @__PURE__ */ n(function(u) {
|
|
388
346
|
this.begin(u);
|
|
389
347
|
}, "pushState"),
|
|
390
348
|
// return the number of states currently on the stack
|
|
391
|
-
stateStackSize: /* @__PURE__ */
|
|
349
|
+
stateStackSize: /* @__PURE__ */ n(function() {
|
|
392
350
|
return this.conditionStack.length;
|
|
393
351
|
}, "stateStackSize"),
|
|
394
352
|
options: { "case-insensitive": !0 },
|
|
395
|
-
performAction: /* @__PURE__ */
|
|
396
|
-
switch (
|
|
353
|
+
performAction: /* @__PURE__ */ n(function(u, g, x, A) {
|
|
354
|
+
switch (x) {
|
|
397
355
|
case 0:
|
|
398
356
|
break;
|
|
399
357
|
case 1:
|
|
@@ -498,51 +456,51 @@ Expecting ` + ut.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : mt =
|
|
|
498
456
|
rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:xychart\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
|
|
499
457
|
conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 24, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 23, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 25, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 }, acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, title: { rules: [], inclusive: !1 }, md_string: { rules: [], inclusive: !1 }, string: { rules: [28, 29], inclusive: !1 }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 21, 22, 26, 27, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], inclusive: !0 } }
|
|
500
458
|
};
|
|
501
|
-
return
|
|
459
|
+
return W;
|
|
502
460
|
}();
|
|
503
|
-
$.lexer =
|
|
461
|
+
$.lexer = Lt;
|
|
504
462
|
function N() {
|
|
505
463
|
this.yy = {};
|
|
506
464
|
}
|
|
507
|
-
return
|
|
465
|
+
return n(N, "Parser"), N.prototype = $, $.Parser = N, new N();
|
|
508
466
|
}();
|
|
509
|
-
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
return
|
|
467
|
+
mt.parser = mt;
|
|
468
|
+
var _i = mt;
|
|
469
|
+
function bt(s) {
|
|
470
|
+
return s.type === "bar";
|
|
513
471
|
}
|
|
514
|
-
|
|
515
|
-
function
|
|
516
|
-
return
|
|
472
|
+
n(bt, "isBarPlot");
|
|
473
|
+
function St(s) {
|
|
474
|
+
return s.type === "band";
|
|
517
475
|
}
|
|
518
|
-
|
|
519
|
-
function
|
|
520
|
-
return
|
|
476
|
+
n(St, "isBandAxisData");
|
|
477
|
+
function q(s) {
|
|
478
|
+
return s.type === "linear";
|
|
521
479
|
}
|
|
522
|
-
|
|
523
|
-
var
|
|
480
|
+
n(q, "isLinearAxisData");
|
|
481
|
+
var G, Ht = (G = class {
|
|
524
482
|
constructor(t) {
|
|
525
483
|
this.parentGroup = t;
|
|
526
484
|
}
|
|
527
485
|
getMaxDimension(t, i) {
|
|
528
486
|
if (!this.parentGroup)
|
|
529
487
|
return {
|
|
530
|
-
width: t.reduce((
|
|
488
|
+
width: t.reduce((c, d) => Math.max(d.length, c), 0) * i,
|
|
531
489
|
height: i
|
|
532
490
|
};
|
|
533
|
-
const
|
|
491
|
+
const e = {
|
|
534
492
|
width: 0,
|
|
535
493
|
height: 0
|
|
536
|
-
},
|
|
537
|
-
for (const
|
|
538
|
-
const
|
|
539
|
-
|
|
494
|
+
}, a = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
|
|
495
|
+
for (const c of t) {
|
|
496
|
+
const d = gi(a, 1, c), m = d ? d.width : c.length * i, b = d ? d.height : i;
|
|
497
|
+
e.width = Math.max(e.width, m), e.height = Math.max(e.height, b);
|
|
540
498
|
}
|
|
541
|
-
return
|
|
499
|
+
return a.remove(), e;
|
|
542
500
|
}
|
|
543
|
-
},
|
|
544
|
-
constructor(t, i,
|
|
545
|
-
this.axisConfig = t, this.title = i, this.textDimensionCalculator =
|
|
501
|
+
}, n(G, "TextDimensionCalculatorWithFont"), G), Ft = 0.7, Ot = 0.2, Q, Ut = (Q = class {
|
|
502
|
+
constructor(t, i, e, a) {
|
|
503
|
+
this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = a, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
|
|
546
504
|
}
|
|
547
505
|
setRange(t) {
|
|
548
506
|
this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
|
|
@@ -567,39 +525,39 @@ var j, Ht = (j = class {
|
|
|
567
525
|
);
|
|
568
526
|
}
|
|
569
527
|
recalculateOuterPaddingToDrawBar() {
|
|
570
|
-
|
|
528
|
+
Ft * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Ft * this.getTickDistance() / 2)), this.recalculateScale();
|
|
571
529
|
}
|
|
572
530
|
calculateSpaceIfDrawnHorizontally(t) {
|
|
573
531
|
let i = t.height;
|
|
574
532
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
575
|
-
const
|
|
576
|
-
this.outerPadding = Math.min(
|
|
577
|
-
const
|
|
578
|
-
this.labelTextHeight =
|
|
533
|
+
const e = this.getLabelDimension(), a = Ot * t.width;
|
|
534
|
+
this.outerPadding = Math.min(e.width / 2, a);
|
|
535
|
+
const c = e.height + this.axisConfig.labelPadding * 2;
|
|
536
|
+
this.labelTextHeight = e.height, c <= i && (i -= c, this.showLabel = !0);
|
|
579
537
|
}
|
|
580
538
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
581
|
-
const
|
|
539
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
582
540
|
[this.title],
|
|
583
541
|
this.axisConfig.titleFontSize
|
|
584
|
-
),
|
|
585
|
-
this.titleTextHeight =
|
|
542
|
+
), a = e.height + this.axisConfig.titlePadding * 2;
|
|
543
|
+
this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
|
|
586
544
|
}
|
|
587
545
|
this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
|
|
588
546
|
}
|
|
589
547
|
calculateSpaceIfDrawnVertical(t) {
|
|
590
548
|
let i = t.width;
|
|
591
549
|
if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
|
|
592
|
-
const
|
|
593
|
-
this.outerPadding = Math.min(
|
|
594
|
-
const
|
|
595
|
-
|
|
550
|
+
const e = this.getLabelDimension(), a = Ot * t.height;
|
|
551
|
+
this.outerPadding = Math.min(e.height / 2, a);
|
|
552
|
+
const c = e.width + this.axisConfig.labelPadding * 2;
|
|
553
|
+
c <= i && (i -= c, this.showLabel = !0);
|
|
596
554
|
}
|
|
597
555
|
if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
|
|
598
|
-
const
|
|
556
|
+
const e = this.textDimensionCalculator.getMaxDimension(
|
|
599
557
|
[this.title],
|
|
600
558
|
this.axisConfig.titleFontSize
|
|
601
|
-
),
|
|
602
|
-
this.titleTextHeight =
|
|
559
|
+
), a = e.height + this.axisConfig.titlePadding * 2;
|
|
560
|
+
this.titleTextHeight = e.height, a <= i && (i -= a, this.showTitle = !0);
|
|
603
561
|
}
|
|
604
562
|
this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
|
|
605
563
|
}
|
|
@@ -646,8 +604,8 @@ var j, Ht = (j = class {
|
|
|
646
604
|
t.push({
|
|
647
605
|
type: "path",
|
|
648
606
|
groupTexts: ["left-axis", "ticks"],
|
|
649
|
-
data: this.getTickValues().map((
|
|
650
|
-
path: `M ${i},${this.getScaleValue(
|
|
607
|
+
data: this.getTickValues().map((e) => ({
|
|
608
|
+
path: `M ${i},${this.getScaleValue(e)} L ${i - this.axisConfig.tickLength},${this.getScaleValue(e)}`,
|
|
651
609
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
652
610
|
strokeWidth: this.axisConfig.tickWidth
|
|
653
611
|
}))
|
|
@@ -704,8 +662,8 @@ var j, Ht = (j = class {
|
|
|
704
662
|
t.push({
|
|
705
663
|
type: "path",
|
|
706
664
|
groupTexts: ["bottom-axis", "ticks"],
|
|
707
|
-
data: this.getTickValues().map((
|
|
708
|
-
path: `M ${this.getScaleValue(
|
|
665
|
+
data: this.getTickValues().map((e) => ({
|
|
666
|
+
path: `M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i + this.axisConfig.tickLength}`,
|
|
709
667
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
710
668
|
strokeWidth: this.axisConfig.tickWidth
|
|
711
669
|
}))
|
|
@@ -762,8 +720,8 @@ var j, Ht = (j = class {
|
|
|
762
720
|
t.push({
|
|
763
721
|
type: "path",
|
|
764
722
|
groupTexts: ["top-axis", "ticks"],
|
|
765
|
-
data: this.getTickValues().map((
|
|
766
|
-
path: `M ${this.getScaleValue(
|
|
723
|
+
data: this.getTickValues().map((e) => ({
|
|
724
|
+
path: `M ${this.getScaleValue(e)},${i + this.boundingRect.height - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)} L ${this.getScaleValue(e)},${i + this.boundingRect.height - this.axisConfig.tickLength - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0)}`,
|
|
767
725
|
strokeFill: this.axisThemeConfig.tickColor,
|
|
768
726
|
strokeWidth: this.axisConfig.tickWidth
|
|
769
727
|
}))
|
|
@@ -793,15 +751,15 @@ var j, Ht = (j = class {
|
|
|
793
751
|
throw Error("Drawing of right axis is not implemented");
|
|
794
752
|
return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
|
|
795
753
|
}
|
|
796
|
-
},
|
|
797
|
-
constructor(t, i,
|
|
798
|
-
super(t,
|
|
754
|
+
}, n(Q, "BaseAxis"), Q), K, ki = (K = class extends Ut {
|
|
755
|
+
constructor(t, i, e, a, c) {
|
|
756
|
+
super(t, a, c, i), this.categories = e, this.scale = Wt().domain(this.categories).range(this.getRange());
|
|
799
757
|
}
|
|
800
758
|
setRange(t) {
|
|
801
759
|
super.setRange(t);
|
|
802
760
|
}
|
|
803
761
|
recalculateScale() {
|
|
804
|
-
this.scale =
|
|
762
|
+
this.scale = Wt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Xt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
805
763
|
}
|
|
806
764
|
getTickValues() {
|
|
807
765
|
return this.categories;
|
|
@@ -809,9 +767,9 @@ var j, Ht = (j = class {
|
|
|
809
767
|
getScaleValue(t) {
|
|
810
768
|
return this.scale(t) ?? this.getRange()[0];
|
|
811
769
|
}
|
|
812
|
-
},
|
|
813
|
-
constructor(t, i,
|
|
814
|
-
super(t,
|
|
770
|
+
}, n(K, "BandAxis"), K), Z, Ti = (Z = class extends Ut {
|
|
771
|
+
constructor(t, i, e, a, c) {
|
|
772
|
+
super(t, a, c, i), this.domain = e, this.scale = zt().domain(this.domain).range(this.getRange());
|
|
815
773
|
}
|
|
816
774
|
getTickValues() {
|
|
817
775
|
return this.scale.ticks();
|
|
@@ -823,27 +781,27 @@ var j, Ht = (j = class {
|
|
|
823
781
|
getScaleValue(t) {
|
|
824
782
|
return this.scale(t);
|
|
825
783
|
}
|
|
826
|
-
},
|
|
827
|
-
function
|
|
828
|
-
const
|
|
829
|
-
return
|
|
784
|
+
}, n(Z, "LinearAxis"), Z);
|
|
785
|
+
function At(s, t, i, e) {
|
|
786
|
+
const a = new Ht(e);
|
|
787
|
+
return St(s) ? new ki(
|
|
830
788
|
t,
|
|
831
789
|
i,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
) : new
|
|
790
|
+
s.categories,
|
|
791
|
+
s.title,
|
|
792
|
+
a
|
|
793
|
+
) : new Ti(
|
|
836
794
|
t,
|
|
837
795
|
i,
|
|
838
|
-
[
|
|
839
|
-
|
|
840
|
-
|
|
796
|
+
[s.min, s.max],
|
|
797
|
+
s.title,
|
|
798
|
+
a
|
|
841
799
|
);
|
|
842
800
|
}
|
|
843
|
-
|
|
844
|
-
var
|
|
845
|
-
constructor(t, i,
|
|
846
|
-
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData =
|
|
801
|
+
n(At, "getAxis");
|
|
802
|
+
var J, Ri = (J = class {
|
|
803
|
+
constructor(t, i, e, a) {
|
|
804
|
+
this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = a, this.boundingRect = {
|
|
847
805
|
x: 0,
|
|
848
806
|
y: 0,
|
|
849
807
|
width: 0,
|
|
@@ -857,8 +815,8 @@ var Z, Pi = (Z = class {
|
|
|
857
815
|
const i = this.textDimensionCalculator.getMaxDimension(
|
|
858
816
|
[this.chartData.title],
|
|
859
817
|
this.chartConfig.titleFontSize
|
|
860
|
-
),
|
|
861
|
-
return i.width <=
|
|
818
|
+
), e = Math.max(i.width, t.width), a = i.height + 2 * this.chartConfig.titlePadding;
|
|
819
|
+
return i.width <= e && i.height <= a && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = e, this.boundingRect.height = a, this.showChartTitle = !0), {
|
|
862
820
|
width: this.boundingRect.width,
|
|
863
821
|
height: this.boundingRect.height
|
|
864
822
|
};
|
|
@@ -882,23 +840,23 @@ var Z, Pi = (Z = class {
|
|
|
882
840
|
]
|
|
883
841
|
}), t;
|
|
884
842
|
}
|
|
885
|
-
},
|
|
886
|
-
function $t(
|
|
887
|
-
const
|
|
888
|
-
return new
|
|
843
|
+
}, n(J, "ChartTitle"), J);
|
|
844
|
+
function $t(s, t, i, e) {
|
|
845
|
+
const a = new Ht(e);
|
|
846
|
+
return new Ri(a, s, t, i);
|
|
889
847
|
}
|
|
890
|
-
|
|
891
|
-
var tt,
|
|
892
|
-
constructor(t, i,
|
|
893
|
-
this.plotData = t, this.xAxis = i, this.yAxis =
|
|
848
|
+
n($t, "getChartTitleComponent");
|
|
849
|
+
var tt, Di = (tt = class {
|
|
850
|
+
constructor(t, i, e, a, c) {
|
|
851
|
+
this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = a, this.plotIndex = c;
|
|
894
852
|
}
|
|
895
853
|
getDrawableElement() {
|
|
896
|
-
const t = this.plotData.data.map((
|
|
897
|
-
this.xAxis.getScaleValue(
|
|
898
|
-
this.yAxis.getScaleValue(
|
|
854
|
+
const t = this.plotData.data.map((e) => [
|
|
855
|
+
this.xAxis.getScaleValue(e[0]),
|
|
856
|
+
this.yAxis.getScaleValue(e[1])
|
|
899
857
|
]);
|
|
900
858
|
let i;
|
|
901
|
-
return this.orientation === "horizontal" ? i =
|
|
859
|
+
return this.orientation === "horizontal" ? i = Bt().y((e) => e[0]).x((e) => e[1])(t) : i = Bt().x((e) => e[0]).y((e) => e[1])(t), i ? [
|
|
902
860
|
{
|
|
903
861
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
904
862
|
type: "path",
|
|
@@ -912,24 +870,24 @@ var tt, Li = (tt = class {
|
|
|
912
870
|
}
|
|
913
871
|
] : [];
|
|
914
872
|
}
|
|
915
|
-
},
|
|
916
|
-
constructor(t, i,
|
|
917
|
-
this.barData = t, this.boundingRect = i, this.xAxis =
|
|
873
|
+
}, n(tt, "LinePlot"), tt), it, vi = (it = class {
|
|
874
|
+
constructor(t, i, e, a, c, d) {
|
|
875
|
+
this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = a, this.orientation = c, this.plotIndex = d;
|
|
918
876
|
}
|
|
919
877
|
getDrawableElement() {
|
|
920
|
-
const t = this.barData.data.map((
|
|
921
|
-
this.xAxis.getScaleValue(
|
|
922
|
-
this.yAxis.getScaleValue(
|
|
923
|
-
]),
|
|
878
|
+
const t = this.barData.data.map((c) => [
|
|
879
|
+
this.xAxis.getScaleValue(c[0]),
|
|
880
|
+
this.yAxis.getScaleValue(c[1])
|
|
881
|
+
]), e = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - 0.05), a = e / 2;
|
|
924
882
|
return this.orientation === "horizontal" ? [
|
|
925
883
|
{
|
|
926
884
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
927
885
|
type: "rect",
|
|
928
|
-
data: t.map((
|
|
886
|
+
data: t.map((c) => ({
|
|
929
887
|
x: this.boundingRect.x,
|
|
930
|
-
y:
|
|
931
|
-
height:
|
|
932
|
-
width:
|
|
888
|
+
y: c[0] - a,
|
|
889
|
+
height: e,
|
|
890
|
+
width: c[1] - this.boundingRect.x,
|
|
933
891
|
fill: this.barData.fill,
|
|
934
892
|
strokeWidth: 0,
|
|
935
893
|
strokeFill: this.barData.fill
|
|
@@ -939,11 +897,11 @@ var tt, Li = (tt = class {
|
|
|
939
897
|
{
|
|
940
898
|
groupTexts: ["plot", `bar-plot-${this.plotIndex}`],
|
|
941
899
|
type: "rect",
|
|
942
|
-
data: t.map((
|
|
943
|
-
x:
|
|
944
|
-
y:
|
|
945
|
-
width:
|
|
946
|
-
height: this.boundingRect.y + this.boundingRect.height -
|
|
900
|
+
data: t.map((c) => ({
|
|
901
|
+
x: c[0] - a,
|
|
902
|
+
y: c[1],
|
|
903
|
+
width: e,
|
|
904
|
+
height: this.boundingRect.y + this.boundingRect.height - c[1],
|
|
947
905
|
fill: this.barData.fill,
|
|
948
906
|
strokeWidth: 0,
|
|
949
907
|
strokeFill: this.barData.fill
|
|
@@ -951,9 +909,9 @@ var tt, Li = (tt = class {
|
|
|
951
909
|
}
|
|
952
910
|
];
|
|
953
911
|
}
|
|
954
|
-
},
|
|
955
|
-
constructor(t, i,
|
|
956
|
-
this.chartConfig = t, this.chartData = i, this.chartThemeConfig =
|
|
912
|
+
}, n(it, "BarPlot"), it), et, Pi = (et = class {
|
|
913
|
+
constructor(t, i, e) {
|
|
914
|
+
this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
|
|
957
915
|
x: 0,
|
|
958
916
|
y: 0,
|
|
959
917
|
width: 0,
|
|
@@ -976,111 +934,111 @@ var tt, Li = (tt = class {
|
|
|
976
934
|
if (!(this.xAxis && this.yAxis))
|
|
977
935
|
throw Error("Axes must be passed to render Plots");
|
|
978
936
|
const t = [];
|
|
979
|
-
for (const [i,
|
|
980
|
-
switch (
|
|
937
|
+
for (const [i, e] of this.chartData.plots.entries())
|
|
938
|
+
switch (e.type) {
|
|
981
939
|
case "line":
|
|
982
940
|
{
|
|
983
|
-
const
|
|
984
|
-
|
|
941
|
+
const a = new Di(
|
|
942
|
+
e,
|
|
985
943
|
this.xAxis,
|
|
986
944
|
this.yAxis,
|
|
987
945
|
this.chartConfig.chartOrientation,
|
|
988
946
|
i
|
|
989
947
|
);
|
|
990
|
-
t.push(...
|
|
948
|
+
t.push(...a.getDrawableElement());
|
|
991
949
|
}
|
|
992
950
|
break;
|
|
993
951
|
case "bar":
|
|
994
952
|
{
|
|
995
|
-
const
|
|
996
|
-
|
|
953
|
+
const a = new vi(
|
|
954
|
+
e,
|
|
997
955
|
this.boundingRect,
|
|
998
956
|
this.xAxis,
|
|
999
957
|
this.yAxis,
|
|
1000
958
|
this.chartConfig.chartOrientation,
|
|
1001
959
|
i
|
|
1002
960
|
);
|
|
1003
|
-
t.push(...
|
|
961
|
+
t.push(...a.getDrawableElement());
|
|
1004
962
|
}
|
|
1005
963
|
break;
|
|
1006
964
|
}
|
|
1007
965
|
return t;
|
|
1008
966
|
}
|
|
1009
|
-
},
|
|
1010
|
-
function
|
|
1011
|
-
return new
|
|
967
|
+
}, n(et, "BasePlot"), et);
|
|
968
|
+
function jt(s, t, i) {
|
|
969
|
+
return new Pi(s, t, i);
|
|
1012
970
|
}
|
|
1013
|
-
|
|
1014
|
-
var st,
|
|
1015
|
-
constructor(t, i,
|
|
971
|
+
n(jt, "getPlotComponent");
|
|
972
|
+
var st, Li = (st = class {
|
|
973
|
+
constructor(t, i, e, a) {
|
|
1016
974
|
this.chartConfig = t, this.chartData = i, this.componentStore = {
|
|
1017
|
-
title: $t(t, i,
|
|
1018
|
-
plot:
|
|
1019
|
-
xAxis:
|
|
975
|
+
title: $t(t, i, e, a),
|
|
976
|
+
plot: jt(t, i, e),
|
|
977
|
+
xAxis: At(
|
|
1020
978
|
i.xAxis,
|
|
1021
979
|
t.xAxis,
|
|
1022
980
|
{
|
|
1023
|
-
titleColor:
|
|
1024
|
-
labelColor:
|
|
1025
|
-
tickColor:
|
|
1026
|
-
axisLineColor:
|
|
981
|
+
titleColor: e.xAxisTitleColor,
|
|
982
|
+
labelColor: e.xAxisLabelColor,
|
|
983
|
+
tickColor: e.xAxisTickColor,
|
|
984
|
+
axisLineColor: e.xAxisLineColor
|
|
1027
985
|
},
|
|
1028
|
-
|
|
986
|
+
a
|
|
1029
987
|
),
|
|
1030
|
-
yAxis:
|
|
988
|
+
yAxis: At(
|
|
1031
989
|
i.yAxis,
|
|
1032
990
|
t.yAxis,
|
|
1033
991
|
{
|
|
1034
|
-
titleColor:
|
|
1035
|
-
labelColor:
|
|
1036
|
-
tickColor:
|
|
1037
|
-
axisLineColor:
|
|
992
|
+
titleColor: e.yAxisTitleColor,
|
|
993
|
+
labelColor: e.yAxisLabelColor,
|
|
994
|
+
tickColor: e.yAxisTickColor,
|
|
995
|
+
axisLineColor: e.yAxisLineColor
|
|
1038
996
|
},
|
|
1039
|
-
|
|
997
|
+
a
|
|
1040
998
|
)
|
|
1041
999
|
};
|
|
1042
1000
|
}
|
|
1043
1001
|
calculateVerticalSpace() {
|
|
1044
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1002
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
|
|
1045
1003
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1046
1004
|
), m = this.componentStore.plot.calculateSpace({
|
|
1047
|
-
width:
|
|
1048
|
-
height:
|
|
1005
|
+
width: c,
|
|
1006
|
+
height: d
|
|
1049
1007
|
});
|
|
1050
1008
|
t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
|
|
1051
1009
|
width: this.chartConfig.width,
|
|
1052
1010
|
height: i
|
|
1053
|
-
}),
|
|
1011
|
+
}), a = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("bottom"), m = this.componentStore.xAxis.calculateSpace({
|
|
1054
1012
|
width: t,
|
|
1055
1013
|
height: i
|
|
1056
1014
|
}), i -= m.height, this.componentStore.yAxis.setAxisPosition("left"), m = this.componentStore.yAxis.calculateSpace({
|
|
1057
1015
|
width: t,
|
|
1058
1016
|
height: i
|
|
1059
|
-
}),
|
|
1060
|
-
width:
|
|
1061
|
-
height:
|
|
1062
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1017
|
+
}), e = m.width, t -= m.width, t > 0 && (c += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1018
|
+
width: c,
|
|
1019
|
+
height: d
|
|
1020
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: e, y: a }), this.componentStore.xAxis.setRange([e, e + c]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: a + d }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: a }), this.chartData.plots.some((b) => bt(b)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1063
1021
|
}
|
|
1064
1022
|
calculateHorizontalSpace() {
|
|
1065
|
-
let t = this.chartConfig.width, i = this.chartConfig.height,
|
|
1023
|
+
let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, a = 0, c = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), m = Math.floor(
|
|
1066
1024
|
i * this.chartConfig.plotReservedSpacePercent / 100
|
|
1067
|
-
),
|
|
1068
|
-
width:
|
|
1025
|
+
), b = this.componentStore.plot.calculateSpace({
|
|
1026
|
+
width: d,
|
|
1069
1027
|
height: m
|
|
1070
1028
|
});
|
|
1071
|
-
t -=
|
|
1029
|
+
t -= b.width, i -= b.height, b = this.componentStore.title.calculateSpace({
|
|
1072
1030
|
width: this.chartConfig.width,
|
|
1073
1031
|
height: i
|
|
1074
|
-
}),
|
|
1032
|
+
}), e = b.height, i -= b.height, this.componentStore.xAxis.setAxisPosition("left"), b = this.componentStore.xAxis.calculateSpace({
|
|
1075
1033
|
width: t,
|
|
1076
1034
|
height: i
|
|
1077
|
-
}), t -=
|
|
1035
|
+
}), t -= b.width, a = b.width, this.componentStore.yAxis.setAxisPosition("top"), b = this.componentStore.yAxis.calculateSpace({
|
|
1078
1036
|
width: t,
|
|
1079
1037
|
height: i
|
|
1080
|
-
}), i -=
|
|
1081
|
-
width:
|
|
1038
|
+
}), i -= b.height, c = e + b.height, t > 0 && (d += t, t = 0), i > 0 && (m += i, i = 0), this.componentStore.plot.calculateSpace({
|
|
1039
|
+
width: d,
|
|
1082
1040
|
height: m
|
|
1083
|
-
}), this.componentStore.plot.setBoundingBoxXY({ x:
|
|
1041
|
+
}), this.componentStore.plot.setBoundingBoxXY({ x: a, y: c }), this.componentStore.yAxis.setRange([a, a + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: a, y: e }), this.componentStore.xAxis.setRange([c, c + m]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: c }), this.chartData.plots.some((P) => bt(P)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
|
|
1084
1042
|
}
|
|
1085
1043
|
calculateSpace() {
|
|
1086
1044
|
this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
|
|
@@ -1093,25 +1051,25 @@ var st, Mi = (st = class {
|
|
|
1093
1051
|
t.push(...i.getDrawableElements());
|
|
1094
1052
|
return t;
|
|
1095
1053
|
}
|
|
1096
|
-
},
|
|
1097
|
-
static build(t, i,
|
|
1098
|
-
return new
|
|
1054
|
+
}, n(st, "Orchestrator"), st), at, Ei = (at = class {
|
|
1055
|
+
static build(t, i, e, a) {
|
|
1056
|
+
return new Li(t, i, e, a).getDrawableElement();
|
|
1099
1057
|
}
|
|
1100
|
-
},
|
|
1101
|
-
function
|
|
1102
|
-
const
|
|
1103
|
-
return Nt(
|
|
1058
|
+
}, n(at, "XYChartBuilder"), at), ot = 0, qt, rt = Tt(), ht = kt(), y = Rt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
|
|
1059
|
+
function kt() {
|
|
1060
|
+
const s = xi(), t = Ct();
|
|
1061
|
+
return Nt(s.xyChart, t.themeVariables.xyChart);
|
|
1104
1062
|
}
|
|
1105
|
-
|
|
1063
|
+
n(kt, "getChartDefaultThemeConfig");
|
|
1106
1064
|
function Tt() {
|
|
1107
|
-
const
|
|
1065
|
+
const s = Ct();
|
|
1108
1066
|
return Nt(
|
|
1109
1067
|
di.xyChart,
|
|
1110
|
-
|
|
1068
|
+
s.xyChart
|
|
1111
1069
|
);
|
|
1112
1070
|
}
|
|
1113
|
-
|
|
1114
|
-
function
|
|
1071
|
+
n(Tt, "getChartDefaultConfig");
|
|
1072
|
+
function Rt() {
|
|
1115
1073
|
return {
|
|
1116
1074
|
yAxis: {
|
|
1117
1075
|
type: "linear",
|
|
@@ -1128,214 +1086,214 @@ function Dt() {
|
|
|
1128
1086
|
plots: []
|
|
1129
1087
|
};
|
|
1130
1088
|
}
|
|
1131
|
-
|
|
1132
|
-
function xt(
|
|
1133
|
-
const t =
|
|
1134
|
-
return
|
|
1089
|
+
n(Rt, "getChartDefaultData");
|
|
1090
|
+
function xt(s) {
|
|
1091
|
+
const t = Ct();
|
|
1092
|
+
return pi(s.trim(), t);
|
|
1135
1093
|
}
|
|
1136
|
-
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1094
|
+
n(xt, "textSanitizer");
|
|
1095
|
+
function Gt(s) {
|
|
1096
|
+
qt = s;
|
|
1139
1097
|
}
|
|
1140
|
-
|
|
1141
|
-
function Qt(
|
|
1142
|
-
|
|
1098
|
+
n(Gt, "setTmpSVGG");
|
|
1099
|
+
function Qt(s) {
|
|
1100
|
+
s === "horizontal" ? rt.chartOrientation = "horizontal" : rt.chartOrientation = "vertical";
|
|
1143
1101
|
}
|
|
1144
|
-
|
|
1145
|
-
function Kt(
|
|
1146
|
-
|
|
1102
|
+
n(Qt, "setOrientation");
|
|
1103
|
+
function Kt(s) {
|
|
1104
|
+
y.xAxis.title = xt(s.text);
|
|
1147
1105
|
}
|
|
1148
|
-
|
|
1149
|
-
function
|
|
1150
|
-
|
|
1106
|
+
n(Kt, "setXAxisTitle");
|
|
1107
|
+
function Dt(s, t) {
|
|
1108
|
+
y.xAxis = { type: "linear", title: y.xAxis.title, min: s, max: t }, gt = !0;
|
|
1151
1109
|
}
|
|
1152
|
-
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1110
|
+
n(Dt, "setXAxisRangeData");
|
|
1111
|
+
function Zt(s) {
|
|
1112
|
+
y.xAxis = {
|
|
1155
1113
|
type: "band",
|
|
1156
|
-
title:
|
|
1157
|
-
categories:
|
|
1114
|
+
title: y.xAxis.title,
|
|
1115
|
+
categories: s.map((t) => xt(t.text))
|
|
1158
1116
|
}, gt = !0;
|
|
1159
1117
|
}
|
|
1160
|
-
|
|
1161
|
-
function
|
|
1162
|
-
|
|
1118
|
+
n(Zt, "setXAxisBand");
|
|
1119
|
+
function Jt(s) {
|
|
1120
|
+
y.yAxis.title = xt(s.text);
|
|
1163
1121
|
}
|
|
1164
|
-
|
|
1165
|
-
function ti(
|
|
1166
|
-
|
|
1122
|
+
n(Jt, "setYAxisTitle");
|
|
1123
|
+
function ti(s, t) {
|
|
1124
|
+
y.yAxis = { type: "linear", title: y.yAxis.title, min: s, max: t }, _t = !0;
|
|
1167
1125
|
}
|
|
1168
|
-
|
|
1169
|
-
function ii(
|
|
1170
|
-
const t = Math.min(...
|
|
1171
|
-
|
|
1126
|
+
n(ti, "setYAxisRangeData");
|
|
1127
|
+
function ii(s) {
|
|
1128
|
+
const t = Math.min(...s), i = Math.max(...s), e = q(y.yAxis) ? y.yAxis.min : 1 / 0, a = q(y.yAxis) ? y.yAxis.max : -1 / 0;
|
|
1129
|
+
y.yAxis = {
|
|
1172
1130
|
type: "linear",
|
|
1173
|
-
title:
|
|
1174
|
-
min: Math.min(
|
|
1175
|
-
max: Math.max(
|
|
1131
|
+
title: y.yAxis.title,
|
|
1132
|
+
min: Math.min(e, t),
|
|
1133
|
+
max: Math.max(a, i)
|
|
1176
1134
|
};
|
|
1177
1135
|
}
|
|
1178
|
-
|
|
1179
|
-
function
|
|
1136
|
+
n(ii, "setYAxisRangeFromPlotData");
|
|
1137
|
+
function vt(s) {
|
|
1180
1138
|
let t = [];
|
|
1181
|
-
if (
|
|
1139
|
+
if (s.length === 0)
|
|
1182
1140
|
return t;
|
|
1183
1141
|
if (!gt) {
|
|
1184
|
-
const i =
|
|
1185
|
-
|
|
1142
|
+
const i = q(y.xAxis) ? y.xAxis.min : 1 / 0, e = q(y.xAxis) ? y.xAxis.max : -1 / 0;
|
|
1143
|
+
Dt(Math.min(i, 1), Math.max(e, s.length));
|
|
1186
1144
|
}
|
|
1187
|
-
if (
|
|
1188
|
-
const i =
|
|
1189
|
-
for (let
|
|
1190
|
-
|
|
1191
|
-
t =
|
|
1145
|
+
if (_t || ii(s), St(y.xAxis) && (t = y.xAxis.categories.map((i, e) => [i, s[e]])), q(y.xAxis)) {
|
|
1146
|
+
const i = y.xAxis.min, e = y.xAxis.max, a = (e - i) / (s.length - 1), c = [];
|
|
1147
|
+
for (let d = i; d <= e; d += a)
|
|
1148
|
+
c.push(`${d}`);
|
|
1149
|
+
t = c.map((d, m) => [d, s[m]]);
|
|
1192
1150
|
}
|
|
1193
1151
|
return t;
|
|
1194
1152
|
}
|
|
1195
|
-
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1153
|
+
n(vt, "transformDataWithoutCategory");
|
|
1154
|
+
function Pt(s) {
|
|
1155
|
+
return wt[s === 0 ? 0 : s % wt.length];
|
|
1198
1156
|
}
|
|
1199
|
-
|
|
1200
|
-
function ei(
|
|
1201
|
-
const i =
|
|
1202
|
-
|
|
1157
|
+
n(Pt, "getPlotColorFromPalette");
|
|
1158
|
+
function ei(s, t) {
|
|
1159
|
+
const i = vt(t);
|
|
1160
|
+
y.plots.push({
|
|
1203
1161
|
type: "line",
|
|
1204
|
-
strokeFill:
|
|
1162
|
+
strokeFill: Pt(ot),
|
|
1205
1163
|
strokeWidth: 2,
|
|
1206
1164
|
data: i
|
|
1207
|
-
}),
|
|
1165
|
+
}), ot++;
|
|
1208
1166
|
}
|
|
1209
|
-
|
|
1210
|
-
function si(
|
|
1211
|
-
const i =
|
|
1212
|
-
|
|
1167
|
+
n(ei, "setLineData");
|
|
1168
|
+
function si(s, t) {
|
|
1169
|
+
const i = vt(t);
|
|
1170
|
+
y.plots.push({
|
|
1213
1171
|
type: "bar",
|
|
1214
|
-
fill:
|
|
1172
|
+
fill: Pt(ot),
|
|
1215
1173
|
data: i
|
|
1216
|
-
}),
|
|
1174
|
+
}), ot++;
|
|
1217
1175
|
}
|
|
1218
|
-
|
|
1219
|
-
function
|
|
1220
|
-
if (
|
|
1176
|
+
n(si, "setBarData");
|
|
1177
|
+
function ai() {
|
|
1178
|
+
if (y.plots.length === 0)
|
|
1221
1179
|
throw Error("No Plot to render, please provide a plot with some data");
|
|
1222
|
-
return
|
|
1180
|
+
return y.title = Yt(), Ei.build(rt, y, ht, qt);
|
|
1223
1181
|
}
|
|
1224
|
-
|
|
1225
|
-
function
|
|
1182
|
+
n(ai, "getDrawableElem");
|
|
1183
|
+
function ni() {
|
|
1226
1184
|
return ht;
|
|
1227
1185
|
}
|
|
1228
|
-
|
|
1229
|
-
function ri() {
|
|
1230
|
-
return ot;
|
|
1231
|
-
}
|
|
1232
|
-
a(ri, "getChartConfig");
|
|
1186
|
+
n(ni, "getChartThemeConfig");
|
|
1233
1187
|
function oi() {
|
|
1234
|
-
return
|
|
1188
|
+
return rt;
|
|
1189
|
+
}
|
|
1190
|
+
n(oi, "getChartConfig");
|
|
1191
|
+
function ri() {
|
|
1192
|
+
return y;
|
|
1235
1193
|
}
|
|
1236
|
-
|
|
1237
|
-
var
|
|
1238
|
-
wi(),
|
|
1239
|
-
}, "clear"),
|
|
1240
|
-
getDrawableElem:
|
|
1241
|
-
clear:
|
|
1242
|
-
setAccTitle:
|
|
1243
|
-
getAccTitle:
|
|
1244
|
-
setDiagramTitle:
|
|
1194
|
+
n(ri, "getXYChartData");
|
|
1195
|
+
var Ii = /* @__PURE__ */ n(function() {
|
|
1196
|
+
wi(), ot = 0, rt = Tt(), y = Rt(), ht = kt(), wt = ht.plotColorPalette.split(",").map((s) => s.trim()), gt = !1, _t = !1;
|
|
1197
|
+
}, "clear"), Vi = {
|
|
1198
|
+
getDrawableElem: ai,
|
|
1199
|
+
clear: Ii,
|
|
1200
|
+
setAccTitle: fi,
|
|
1201
|
+
getAccTitle: yi,
|
|
1202
|
+
setDiagramTitle: mi,
|
|
1245
1203
|
getDiagramTitle: Yt,
|
|
1246
1204
|
getAccDescription: bi,
|
|
1247
1205
|
setAccDescription: Ai,
|
|
1248
1206
|
setOrientation: Qt,
|
|
1249
1207
|
setXAxisTitle: Kt,
|
|
1250
|
-
setXAxisRangeData:
|
|
1251
|
-
setXAxisBand:
|
|
1252
|
-
setYAxisTitle:
|
|
1208
|
+
setXAxisRangeData: Dt,
|
|
1209
|
+
setXAxisBand: Zt,
|
|
1210
|
+
setYAxisTitle: Jt,
|
|
1253
1211
|
setYAxisRangeData: ti,
|
|
1254
1212
|
setLineData: ei,
|
|
1255
1213
|
setBarData: si,
|
|
1256
|
-
setTmpSVGG:
|
|
1257
|
-
getChartThemeConfig:
|
|
1258
|
-
getChartConfig:
|
|
1259
|
-
getXYChartData:
|
|
1260
|
-
},
|
|
1261
|
-
const
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1214
|
+
setTmpSVGG: Gt,
|
|
1215
|
+
getChartThemeConfig: ni,
|
|
1216
|
+
getChartConfig: oi,
|
|
1217
|
+
getXYChartData: ri
|
|
1218
|
+
}, Mi = /* @__PURE__ */ n((s, t, i, e) => {
|
|
1219
|
+
const a = e.db, c = a.getChartThemeConfig(), d = a.getChartConfig(), m = a.getXYChartData().plots[0].data.map((f) => f[1]);
|
|
1220
|
+
function b(f) {
|
|
1221
|
+
return f === "top" ? "text-before-edge" : "middle";
|
|
1264
1222
|
}
|
|
1265
|
-
|
|
1266
|
-
function
|
|
1267
|
-
return
|
|
1223
|
+
n(b, "getDominantBaseLine");
|
|
1224
|
+
function P(f) {
|
|
1225
|
+
return f === "left" ? "start" : f === "right" ? "end" : "middle";
|
|
1268
1226
|
}
|
|
1269
|
-
|
|
1270
|
-
function
|
|
1271
|
-
return `translate(${
|
|
1227
|
+
n(P, "getTextAnchor");
|
|
1228
|
+
function I(f) {
|
|
1229
|
+
return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
|
|
1272
1230
|
}
|
|
1273
|
-
|
|
1274
|
-
` +
|
|
1275
|
-
const
|
|
1276
|
-
Si(
|
|
1277
|
-
const
|
|
1278
|
-
function
|
|
1279
|
-
let
|
|
1280
|
-
for (const [
|
|
1281
|
-
let
|
|
1282
|
-
|
|
1231
|
+
n(I, "getTextTransformation"), Xt.debug(`Rendering xychart chart
|
|
1232
|
+
` + s);
|
|
1233
|
+
const R = Ci(t), L = R.append("g").attr("class", "main"), z = L.append("rect").attr("width", d.width).attr("height", d.height).attr("class", "background");
|
|
1234
|
+
Si(R, d.height, d.width, !0), R.attr("viewBox", `0 0 ${d.width} ${d.height}`), z.attr("fill", c.backgroundColor), a.setTmpSVGG(R.append("g").attr("class", "mermaid-tmp-group"));
|
|
1235
|
+
const F = a.getDrawableElem(), D = {};
|
|
1236
|
+
function V(f) {
|
|
1237
|
+
let C = L, l = "";
|
|
1238
|
+
for (const [M] of f.entries()) {
|
|
1239
|
+
let B = L;
|
|
1240
|
+
M > 0 && D[l] && (B = D[l]), l += f[M], C = D[l], C || (C = D[l] = B.append("g").attr("class", f[M]));
|
|
1283
1241
|
}
|
|
1284
|
-
return
|
|
1242
|
+
return C;
|
|
1285
1243
|
}
|
|
1286
|
-
|
|
1287
|
-
for (const
|
|
1288
|
-
if (
|
|
1244
|
+
n(V, "getGroup");
|
|
1245
|
+
for (const f of F) {
|
|
1246
|
+
if (f.data.length === 0)
|
|
1289
1247
|
continue;
|
|
1290
|
-
const
|
|
1291
|
-
switch (
|
|
1248
|
+
const C = V(f.groupTexts);
|
|
1249
|
+
switch (f.type) {
|
|
1292
1250
|
case "rect":
|
|
1293
|
-
if (
|
|
1294
|
-
if (
|
|
1295
|
-
let
|
|
1296
|
-
const { data:
|
|
1297
|
-
return
|
|
1251
|
+
if (C.selectAll("rect").data(f.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), d.showDataLabel)
|
|
1252
|
+
if (d.chartOrientation === "horizontal") {
|
|
1253
|
+
let l = function(h, k) {
|
|
1254
|
+
const { data: w, label: S } = h;
|
|
1255
|
+
return k * S.length * M <= w.width - 10;
|
|
1298
1256
|
};
|
|
1299
|
-
|
|
1300
|
-
const
|
|
1301
|
-
const { data:
|
|
1302
|
-
let
|
|
1303
|
-
for (; !
|
|
1304
|
-
|
|
1305
|
-
return
|
|
1257
|
+
n(l, "fitsHorizontally");
|
|
1258
|
+
const M = 0.7, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
|
|
1259
|
+
const { data: k } = h;
|
|
1260
|
+
let w = k.height * 0.7;
|
|
1261
|
+
for (; !l(h, w) && w > 0; )
|
|
1262
|
+
w -= 1;
|
|
1263
|
+
return w;
|
|
1306
1264
|
}), X = Math.floor(Math.min(...U));
|
|
1307
|
-
|
|
1265
|
+
C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1308
1266
|
} else {
|
|
1309
|
-
let
|
|
1310
|
-
const { data:
|
|
1311
|
-
return
|
|
1267
|
+
let l = function(h, k, w) {
|
|
1268
|
+
const { data: S, label: $ } = h, N = k * $.length * 0.7, W = S.x + S.width / 2, r = W - N / 2, u = W + N / 2, g = r >= S.x && u <= S.x + S.width, x = S.y + w + k <= S.y + S.height;
|
|
1269
|
+
return g && x;
|
|
1312
1270
|
};
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1315
|
-
const { data:
|
|
1316
|
-
let
|
|
1317
|
-
for (; !
|
|
1318
|
-
|
|
1319
|
-
return
|
|
1271
|
+
n(l, "fitsInBar");
|
|
1272
|
+
const M = 10, B = f.data.map((h, k) => ({ data: h, label: m[k].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = B.map((h) => {
|
|
1273
|
+
const { data: k, label: w } = h;
|
|
1274
|
+
let S = k.width / (w.length * 0.7);
|
|
1275
|
+
for (; !l(h, S, M) && S > 0; )
|
|
1276
|
+
S -= 1;
|
|
1277
|
+
return S;
|
|
1320
1278
|
}), X = Math.floor(Math.min(...U));
|
|
1321
|
-
|
|
1279
|
+
C.selectAll("text").data(B).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + M).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
|
|
1322
1280
|
}
|
|
1323
1281
|
break;
|
|
1324
1282
|
case "text":
|
|
1325
|
-
|
|
1283
|
+
C.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => b(l.verticalPos)).attr("text-anchor", (l) => P(l.horizontalPos)).attr("transform", (l) => I(l)).text((l) => l.text);
|
|
1326
1284
|
break;
|
|
1327
1285
|
case "path":
|
|
1328
|
-
|
|
1286
|
+
C.selectAll("path").data(f.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
|
|
1329
1287
|
break;
|
|
1330
1288
|
}
|
|
1331
1289
|
}
|
|
1332
|
-
}, "draw"),
|
|
1333
|
-
draw:
|
|
1334
|
-
},
|
|
1335
|
-
parser:
|
|
1336
|
-
db:
|
|
1337
|
-
renderer:
|
|
1290
|
+
}, "draw"), Bi = {
|
|
1291
|
+
draw: Mi
|
|
1292
|
+
}, Xi = {
|
|
1293
|
+
parser: _i,
|
|
1294
|
+
db: Vi,
|
|
1295
|
+
renderer: Bi
|
|
1338
1296
|
};
|
|
1339
1297
|
export {
|
|
1340
|
-
|
|
1298
|
+
Xi as diagram
|
|
1341
1299
|
};
|