@webskill/sdk 0.21.0 → 0.22.0
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/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +1012 -130
- package/dist/{approval-DwN2o2QG.js → approval-DWQlDPbY.js} +102 -16
- package/dist/arc-8U_6NQWm.js +130 -0
- package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
- package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
- package/dist/array-DQfpQNY8.js +8 -0
- package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
- package/dist/browser.d.ts +444 -48
- package/dist/browser.js +1771 -91
- package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
- package/dist/channel-CZxxLrG7.js +9 -0
- package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
- package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
- package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
- package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
- package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
- package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
- package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
- package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
- package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
- package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
- package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
- package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
- package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
- package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
- package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
- package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
- package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
- package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
- package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
- package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
- package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
- package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
- package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
- package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
- package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
- package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
- package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
- package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
- package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
- package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
- package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
- package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
- package/dist/defaultLocale-B_EoOkSF.js +249 -0
- package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
- package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
- package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
- package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
- package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
- package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
- package/dist/dist-UajCDt3n.js +92 -0
- package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
- package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
- package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
- package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/{toolSource-C9oNuKmr.js → geometry-wx5ZTYzi.js} +162 -12
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +3 -3
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-B8Tgmpwh.d.ts → index-BiO9_XRk.d.ts} +2 -2
- package/dist/{index-CYLt5u4L.d.ts → index-CjwdZQOS.d.ts} +700 -12
- package/dist/{index-DHopiH_m.d.ts → index-YPd8ZSEa.d.ts} +156 -9
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
- package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
- package/dist/init-CMOIWdg-.js +16 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
- package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
- package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
- package/dist/katex-BcRRvyh_.js +26465 -0
- package/dist/{kind-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
- package/dist/line-LgV8iVMV.js +48 -0
- package/dist/linear-BWKR0Tqd.js +393 -0
- package/dist/linkedDocument-CIuh_Yp0.js +416 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
- package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
- package/dist/mermaid.core-DMtwGCHy.js +1756 -0
- package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
- package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
- package/dist/ordinal-CxA6GHQS.js +84 -0
- package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
- package/dist/path-C27Z2Bjv.js +106 -0
- package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
- package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
- package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
- package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
- package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
- package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
- package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
- package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
- package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
- package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
- package/dist/rough.cjs-AmDd_NQk.js +1395 -0
- package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
- package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
- package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
- package/dist/{skillVersionStore-B24Jjjry-BkOk9wI_.d.ts → skillVersionStore-B24Jjjry-BY1H7Krp.d.ts} +1 -1
- package/dist/src-NkhI3UMl.js +2653 -0
- package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
- package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
- package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +1 -1
- package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
- package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
- package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
- package/dist/{types-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BM5FI9oN.d.ts} +59 -8
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +3718 -77
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
- package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
- package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
- package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
- package/dist/{webSkillApi-Cib6G-94.js → webSkillApi-Dy-Zjv0y.js} +1 -1
- package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
- package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
- package/package.json +1 -1
- package/dist/linkedDocument-C0gj1sMq.js +0 -245
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
|
|
2
|
+
function formatDecimal_default(x) {
|
|
3
|
+
return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
|
|
4
|
+
}
|
|
5
|
+
function formatDecimalParts(x, p) {
|
|
6
|
+
if (!isFinite(x) || x === 0) return null;
|
|
7
|
+
var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i);
|
|
8
|
+
return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1)];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
|
|
13
|
+
function exponent_default(x) {
|
|
14
|
+
return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
|
|
19
|
+
function formatGroup_default(grouping, thousands) {
|
|
20
|
+
return function(value, width) {
|
|
21
|
+
var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
|
|
22
|
+
while (i > 0 && g > 0) {
|
|
23
|
+
if (length + g + 1 > width) g = Math.max(1, width - length);
|
|
24
|
+
t.push(value.substring(i -= g, i + g));
|
|
25
|
+
if ((length += g + 1) > width) break;
|
|
26
|
+
g = grouping[j = (j + 1) % grouping.length];
|
|
27
|
+
}
|
|
28
|
+
return t.reverse().join(thousands);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
|
|
34
|
+
function formatNumerals_default(numerals) {
|
|
35
|
+
return function(value) {
|
|
36
|
+
return value.replace(/[0-9]/g, function(i) {
|
|
37
|
+
return numerals[+i];
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
|
|
44
|
+
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
45
|
+
function formatSpecifier(specifier) {
|
|
46
|
+
if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
|
|
47
|
+
var match;
|
|
48
|
+
return new FormatSpecifier({
|
|
49
|
+
fill: match[1],
|
|
50
|
+
align: match[2],
|
|
51
|
+
sign: match[3],
|
|
52
|
+
symbol: match[4],
|
|
53
|
+
zero: match[5],
|
|
54
|
+
width: match[6],
|
|
55
|
+
comma: match[7],
|
|
56
|
+
precision: match[8] && match[8].slice(1),
|
|
57
|
+
trim: match[9],
|
|
58
|
+
type: match[10]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
formatSpecifier.prototype = FormatSpecifier.prototype;
|
|
62
|
+
function FormatSpecifier(specifier) {
|
|
63
|
+
this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
|
|
64
|
+
this.align = specifier.align === void 0 ? ">" : specifier.align + "";
|
|
65
|
+
this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
|
|
66
|
+
this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
|
|
67
|
+
this.zero = !!specifier.zero;
|
|
68
|
+
this.width = specifier.width === void 0 ? void 0 : +specifier.width;
|
|
69
|
+
this.comma = !!specifier.comma;
|
|
70
|
+
this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
|
|
71
|
+
this.trim = !!specifier.trim;
|
|
72
|
+
this.type = specifier.type === void 0 ? "" : specifier.type + "";
|
|
73
|
+
}
|
|
74
|
+
FormatSpecifier.prototype.toString = function() {
|
|
75
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
|
|
80
|
+
function formatTrim_default(s) {
|
|
81
|
+
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) switch (s[i]) {
|
|
82
|
+
case ".":
|
|
83
|
+
i0 = i1 = i;
|
|
84
|
+
break;
|
|
85
|
+
case "0":
|
|
86
|
+
if (i0 === 0) i0 = i;
|
|
87
|
+
i1 = i;
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
if (!+s[i]) break out;
|
|
91
|
+
if (i0 > 0) i0 = 0;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
|
|
99
|
+
var prefixExponent;
|
|
100
|
+
function formatPrefixAuto_default(x, p) {
|
|
101
|
+
var d = formatDecimalParts(x, p);
|
|
102
|
+
if (!d) return prefixExponent = void 0, x.toPrecision(p);
|
|
103
|
+
var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length;
|
|
104
|
+
return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
|
|
109
|
+
function formatRounded_default(x, p) {
|
|
110
|
+
var d = formatDecimalParts(x, p);
|
|
111
|
+
if (!d) return x + "";
|
|
112
|
+
var coefficient = d[0], exponent = d[1];
|
|
113
|
+
return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0");
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
|
|
118
|
+
var formatTypes_default = {
|
|
119
|
+
"%": (x, p) => (x * 100).toFixed(p),
|
|
120
|
+
"b": (x) => Math.round(x).toString(2),
|
|
121
|
+
"c": (x) => x + "",
|
|
122
|
+
"d": formatDecimal_default,
|
|
123
|
+
"e": (x, p) => x.toExponential(p),
|
|
124
|
+
"f": (x, p) => x.toFixed(p),
|
|
125
|
+
"g": (x, p) => x.toPrecision(p),
|
|
126
|
+
"o": (x) => Math.round(x).toString(8),
|
|
127
|
+
"p": (x, p) => formatRounded_default(x * 100, p),
|
|
128
|
+
"r": formatRounded_default,
|
|
129
|
+
"s": formatPrefixAuto_default,
|
|
130
|
+
"X": (x) => Math.round(x).toString(16).toUpperCase(),
|
|
131
|
+
"x": (x) => Math.round(x).toString(16)
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
|
|
136
|
+
function identity_default(x) {
|
|
137
|
+
return x;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
|
|
142
|
+
var map = Array.prototype.map;
|
|
143
|
+
var prefixes = [
|
|
144
|
+
"y",
|
|
145
|
+
"z",
|
|
146
|
+
"a",
|
|
147
|
+
"f",
|
|
148
|
+
"p",
|
|
149
|
+
"n",
|
|
150
|
+
"µ",
|
|
151
|
+
"m",
|
|
152
|
+
"",
|
|
153
|
+
"k",
|
|
154
|
+
"M",
|
|
155
|
+
"G",
|
|
156
|
+
"T",
|
|
157
|
+
"P",
|
|
158
|
+
"E",
|
|
159
|
+
"Z",
|
|
160
|
+
"Y"
|
|
161
|
+
];
|
|
162
|
+
function locale_default(locale) {
|
|
163
|
+
var group = locale.grouping === void 0 || locale.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale.grouping, Number), locale.thousands + ""), currencyPrefix = locale.currency === void 0 ? "" : locale.currency[0] + "", currencySuffix = locale.currency === void 0 ? "" : locale.currency[1] + "", decimal = locale.decimal === void 0 ? "." : locale.decimal + "", numerals = locale.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale.numerals, String)), percent = locale.percent === void 0 ? "%" : locale.percent + "", minus = locale.minus === void 0 ? "−" : locale.minus + "", nan = locale.nan === void 0 ? "NaN" : locale.nan + "";
|
|
164
|
+
function newFormat(specifier, options) {
|
|
165
|
+
specifier = formatSpecifier(specifier);
|
|
166
|
+
var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
|
|
167
|
+
if (type === "n") comma = true, type = "g";
|
|
168
|
+
else if (!formatTypes_default[type]) precision === void 0 && (precision = 12), trim = true, type = "g";
|
|
169
|
+
if (zero || fill === "0" && align === "=") zero = true, fill = "0", align = "=";
|
|
170
|
+
var prefix = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : "");
|
|
171
|
+
var formatType = formatTypes_default[type], maybeSuffix = /[defgprs%]/.test(type);
|
|
172
|
+
precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
|
|
173
|
+
function format(value) {
|
|
174
|
+
var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
|
|
175
|
+
if (type === "c") {
|
|
176
|
+
valueSuffix = formatType(value) + valueSuffix;
|
|
177
|
+
value = "";
|
|
178
|
+
} else {
|
|
179
|
+
value = +value;
|
|
180
|
+
var valueNegative = value < 0 || 1 / value < 0;
|
|
181
|
+
value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
|
|
182
|
+
if (trim) value = formatTrim_default(value);
|
|
183
|
+
if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
|
|
184
|
+
valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
|
|
185
|
+
valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
|
|
186
|
+
if (maybeSuffix) {
|
|
187
|
+
i = -1, n = value.length;
|
|
188
|
+
while (++i < n) if (c = value.charCodeAt(i), 48 > c || c > 57) {
|
|
189
|
+
valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
|
|
190
|
+
value = value.slice(0, i);
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (comma && !zero) value = group(value, Infinity);
|
|
196
|
+
var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
|
|
197
|
+
if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
|
|
198
|
+
switch (align) {
|
|
199
|
+
case "<":
|
|
200
|
+
value = valuePrefix + value + valueSuffix + padding;
|
|
201
|
+
break;
|
|
202
|
+
case "=":
|
|
203
|
+
value = valuePrefix + padding + value + valueSuffix;
|
|
204
|
+
break;
|
|
205
|
+
case "^":
|
|
206
|
+
value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
|
|
207
|
+
break;
|
|
208
|
+
default:
|
|
209
|
+
value = padding + valuePrefix + value + valueSuffix;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
return numerals(value);
|
|
213
|
+
}
|
|
214
|
+
format.toString = function() {
|
|
215
|
+
return specifier + "";
|
|
216
|
+
};
|
|
217
|
+
return format;
|
|
218
|
+
}
|
|
219
|
+
function formatPrefix(specifier, value) {
|
|
220
|
+
var e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] });
|
|
221
|
+
return function(value) {
|
|
222
|
+
return f(k * value);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
return {
|
|
226
|
+
format: newFormat,
|
|
227
|
+
formatPrefix
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
|
|
233
|
+
var locale;
|
|
234
|
+
var format;
|
|
235
|
+
var formatPrefix;
|
|
236
|
+
defaultLocale({
|
|
237
|
+
thousands: ",",
|
|
238
|
+
grouping: [3],
|
|
239
|
+
currency: ["$", ""]
|
|
240
|
+
});
|
|
241
|
+
function defaultLocale(definition) {
|
|
242
|
+
locale = locale_default(definition);
|
|
243
|
+
format = locale.format;
|
|
244
|
+
formatPrefix = locale.formatPrefix;
|
|
245
|
+
return locale;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
//#endregion
|
|
249
|
+
export { exponent_default as i, formatPrefix as n, formatSpecifier as r, format as t };
|