@petal-nexus/toolkit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -12
- package/dist/petal-toolkit.cjs10.js +1 -1
- package/dist/petal-toolkit.cjs11.js +1 -1
- package/dist/petal-toolkit.cjs1123.js +1 -1
- package/dist/petal-toolkit.cjs1125.js +1 -1
- package/dist/petal-toolkit.cjs1128.js +1 -1
- package/dist/petal-toolkit.cjs12.js +1 -1
- package/dist/petal-toolkit.cjs13.js +1 -1
- package/dist/petal-toolkit.cjs1320.js +1 -1
- package/dist/petal-toolkit.cjs1320.js.map +1 -1
- package/dist/petal-toolkit.cjs1321.js +1 -1
- package/dist/petal-toolkit.cjs1321.js.map +1 -1
- package/dist/petal-toolkit.cjs1322.js +1 -2
- package/dist/petal-toolkit.cjs1322.js.map +1 -1
- package/dist/petal-toolkit.cjs1325.js +1 -1
- package/dist/petal-toolkit.cjs1327.js +1 -1
- package/dist/petal-toolkit.cjs1328.js +1 -1
- package/dist/petal-toolkit.cjs1329.js +1 -1
- package/dist/petal-toolkit.cjs1329.js.map +1 -1
- package/dist/petal-toolkit.cjs1330.js +1 -1
- package/dist/petal-toolkit.cjs1330.js.map +1 -1
- package/dist/petal-toolkit.cjs1331.js +2 -1
- package/dist/petal-toolkit.cjs1331.js.map +1 -1
- package/dist/petal-toolkit.cjs1332.js +1 -1
- package/dist/petal-toolkit.cjs1332.js.map +1 -1
- package/dist/petal-toolkit.cjs1333.js +1 -1
- package/dist/petal-toolkit.cjs1333.js.map +1 -1
- package/dist/petal-toolkit.cjs1334.js +1 -1
- package/dist/petal-toolkit.cjs1334.js.map +1 -1
- package/dist/petal-toolkit.cjs1335.js +1 -1
- package/dist/petal-toolkit.cjs1346.js +1 -1
- package/dist/petal-toolkit.cjs1347.js +1 -1
- package/dist/petal-toolkit.cjs1348.js +1 -1
- package/dist/petal-toolkit.cjs14.js +1 -1
- package/dist/petal-toolkit.cjs15.js +1 -1
- package/dist/petal-toolkit.cjs18.js +1 -1
- package/dist/petal-toolkit.cjs19.js +1 -1
- package/dist/petal-toolkit.cjs22.js +1 -1
- package/dist/petal-toolkit.cjs24.js +1 -1
- package/dist/petal-toolkit.cjs25.js +1 -1
- package/dist/petal-toolkit.cjs26.js +1 -1
- package/dist/petal-toolkit.cjs27.js +1 -1
- package/dist/petal-toolkit.cjs30.js +1 -1
- package/dist/petal-toolkit.cjs31.js +1 -1
- package/dist/petal-toolkit.cjs32.js +1 -1
- package/dist/petal-toolkit.cjs34.js +1 -1
- package/dist/petal-toolkit.cjs35.js +1 -1
- package/dist/petal-toolkit.cjs36.js +1 -1
- package/dist/petal-toolkit.cjs37.js +1 -1
- package/dist/petal-toolkit.cjs38.js +1 -1
- package/dist/petal-toolkit.cjs4.js +1 -1
- package/dist/petal-toolkit.cjs40.js +1 -1
- package/dist/petal-toolkit.cjs41.js +1 -1
- package/dist/petal-toolkit.cjs42.js +1 -1
- package/dist/petal-toolkit.cjs43.js +1 -1
- package/dist/petal-toolkit.cjs44.js +1 -1
- package/dist/petal-toolkit.cjs45.js +1 -1
- package/dist/petal-toolkit.cjs47.js +1 -1
- package/dist/petal-toolkit.cjs48.js +1 -1
- package/dist/petal-toolkit.cjs5.js +1 -1
- package/dist/petal-toolkit.cjs50.js +1 -1
- package/dist/petal-toolkit.cjs52.js +1 -1
- package/dist/petal-toolkit.cjs6.js +1 -1
- package/dist/petal-toolkit.cjs682.js +1 -1
- package/dist/petal-toolkit.cjs684.js +1 -1
- package/dist/petal-toolkit.cjs7.js +1 -1
- package/dist/petal-toolkit.cjs715.js +1 -1
- package/dist/petal-toolkit.cjs719.js +1 -1
- package/dist/petal-toolkit.cjs721.js +1 -1
- package/dist/petal-toolkit.cjs726.js +1 -1
- package/dist/petal-toolkit.cjs734.js +1 -1
- package/dist/petal-toolkit.cjs752.js +1 -1
- package/dist/petal-toolkit.cjs764.js +1 -1
- package/dist/petal-toolkit.cjs787.js +1 -1
- package/dist/petal-toolkit.cjs8.js +1 -1
- package/dist/petal-toolkit.cjs847.js +1 -1
- package/dist/petal-toolkit.cjs848.js +1 -1
- package/dist/petal-toolkit.cjs850.js +1 -1
- package/dist/petal-toolkit.cjs851.js +1 -1
- package/dist/petal-toolkit.cjs854.js +1 -1
- package/dist/petal-toolkit.cjs859.js +1 -1
- package/dist/petal-toolkit.cjs861.js +1 -1
- package/dist/petal-toolkit.cjs864.js +1 -1
- package/dist/petal-toolkit.cjs866.js +1 -1
- package/dist/petal-toolkit.cjs867.js +1 -1
- package/dist/petal-toolkit.cjs868.js +1 -1
- package/dist/petal-toolkit.cjs870.js +1 -1
- package/dist/petal-toolkit.cjs874.js +1 -1
- package/dist/petal-toolkit.cjs9.js +1 -1
- package/dist/petal-toolkit.es10.js +3 -3
- package/dist/petal-toolkit.es11.js +3 -3
- package/dist/petal-toolkit.es1123.js +1 -1
- package/dist/petal-toolkit.es1125.js +1 -1
- package/dist/petal-toolkit.es1128.js +1 -1
- package/dist/petal-toolkit.es12.js +3 -3
- package/dist/petal-toolkit.es13.js +2 -2
- package/dist/petal-toolkit.es1320.js +2 -34
- package/dist/petal-toolkit.es1320.js.map +1 -1
- package/dist/petal-toolkit.es1321.js +2 -52
- package/dist/petal-toolkit.es1321.js.map +1 -1
- package/dist/petal-toolkit.es1322.js +2 -48
- package/dist/petal-toolkit.es1322.js.map +1 -1
- package/dist/petal-toolkit.es1324.js +2 -2
- package/dist/petal-toolkit.es1325.js +2 -2
- package/dist/petal-toolkit.es1326.js +2 -2
- package/dist/petal-toolkit.es1327.js +2 -2
- package/dist/petal-toolkit.es1328.js +2 -2
- package/dist/petal-toolkit.es1329.js +52 -2
- package/dist/petal-toolkit.es1329.js.map +1 -1
- package/dist/petal-toolkit.es1330.js +95 -2
- package/dist/petal-toolkit.es1330.js.map +1 -1
- package/dist/petal-toolkit.es1331.js +48 -2
- package/dist/petal-toolkit.es1331.js.map +1 -1
- package/dist/petal-toolkit.es1332.js +34 -17
- package/dist/petal-toolkit.es1332.js.map +1 -1
- package/dist/petal-toolkit.es1333.js +2 -95
- package/dist/petal-toolkit.es1333.js.map +1 -1
- package/dist/petal-toolkit.es1334.js +17 -2
- package/dist/petal-toolkit.es1334.js.map +1 -1
- package/dist/petal-toolkit.es1335.js +2 -2
- package/dist/petal-toolkit.es1338.js +2 -2
- package/dist/petal-toolkit.es1339.js +2 -2
- package/dist/petal-toolkit.es1340.js +2 -2
- package/dist/petal-toolkit.es1341.js +2 -2
- package/dist/petal-toolkit.es1343.js +2 -2
- package/dist/petal-toolkit.es1344.js +2 -2
- package/dist/petal-toolkit.es1346.js +2 -2
- package/dist/petal-toolkit.es1347.js +2 -2
- package/dist/petal-toolkit.es1348.js +2 -2
- package/dist/petal-toolkit.es14.js +2 -2
- package/dist/petal-toolkit.es15.js +2 -2
- package/dist/petal-toolkit.es18.js +3 -3
- package/dist/petal-toolkit.es19.js +3 -3
- package/dist/petal-toolkit.es22.js +2 -2
- package/dist/petal-toolkit.es24.js +2 -2
- package/dist/petal-toolkit.es25.js +2 -2
- package/dist/petal-toolkit.es26.js +2 -2
- package/dist/petal-toolkit.es27.js +3 -3
- package/dist/petal-toolkit.es30.js +1 -1
- package/dist/petal-toolkit.es31.js +2 -2
- package/dist/petal-toolkit.es32.js +2 -2
- package/dist/petal-toolkit.es34.js +2 -2
- package/dist/petal-toolkit.es35.js +1 -1
- package/dist/petal-toolkit.es36.js +2 -2
- package/dist/petal-toolkit.es37.js +2 -2
- package/dist/petal-toolkit.es38.js +1 -1
- package/dist/petal-toolkit.es4.js +2 -2
- package/dist/petal-toolkit.es40.js +2 -2
- package/dist/petal-toolkit.es41.js +2 -2
- package/dist/petal-toolkit.es42.js +2 -2
- package/dist/petal-toolkit.es43.js +2 -2
- package/dist/petal-toolkit.es44.js +3 -3
- package/dist/petal-toolkit.es45.js +2 -2
- package/dist/petal-toolkit.es47.js +2 -2
- package/dist/petal-toolkit.es48.js +1 -1
- package/dist/petal-toolkit.es5.js +2 -2
- package/dist/petal-toolkit.es50.js +1 -1
- package/dist/petal-toolkit.es52.js +2 -2
- package/dist/petal-toolkit.es6.js +3 -3
- package/dist/petal-toolkit.es682.js +1 -1
- package/dist/petal-toolkit.es684.js +1 -1
- package/dist/petal-toolkit.es7.js +2 -2
- package/dist/petal-toolkit.es715.js +1 -1
- package/dist/petal-toolkit.es719.js +1 -1
- package/dist/petal-toolkit.es721.js +1 -1
- package/dist/petal-toolkit.es726.js +1 -1
- package/dist/petal-toolkit.es734.js +1 -1
- package/dist/petal-toolkit.es752.js +1 -1
- package/dist/petal-toolkit.es764.js +1 -1
- package/dist/petal-toolkit.es787.js +1 -1
- package/dist/petal-toolkit.es8.js +1 -1
- package/dist/petal-toolkit.es847.js +1 -1
- package/dist/petal-toolkit.es848.js +1 -1
- package/dist/petal-toolkit.es850.js +1 -1
- package/dist/petal-toolkit.es851.js +1 -1
- package/dist/petal-toolkit.es854.js +1 -1
- package/dist/petal-toolkit.es859.js +1 -1
- package/dist/petal-toolkit.es861.js +1 -1
- package/dist/petal-toolkit.es864.js +1 -1
- package/dist/petal-toolkit.es866.js +1 -1
- package/dist/petal-toolkit.es867.js +1 -1
- package/dist/petal-toolkit.es868.js +1 -1
- package/dist/petal-toolkit.es870.js +1 -1
- package/dist/petal-toolkit.es874.js +1 -1
- package/dist/petal-toolkit.es9.js +3 -3
- package/package.json +1 -1
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
function m(e) {
|
|
2
|
+
return typeof e == "number" ? e > 1e12 ? Math.floor(e / 1e3) : e : Math.floor(e.getTime() / 1e3);
|
|
3
|
+
}
|
|
4
|
+
function u(e) {
|
|
5
|
+
return e > 1e12 ? new Date(e) : new Date(e * 1e3);
|
|
6
|
+
}
|
|
7
|
+
function f(e, t) {
|
|
8
|
+
const n = u(e);
|
|
9
|
+
if (t) {
|
|
10
|
+
const [i, o] = t, r = (o - i) / 3600;
|
|
11
|
+
if (r < 1)
|
|
12
|
+
return n.toLocaleTimeString("en-US", {
|
|
13
|
+
hour: "numeric",
|
|
14
|
+
minute: "2-digit",
|
|
15
|
+
second: "2-digit"
|
|
16
|
+
});
|
|
17
|
+
if (r < 24)
|
|
18
|
+
return n.toLocaleTimeString("en-US", {
|
|
19
|
+
hour: "numeric",
|
|
20
|
+
minute: "2-digit"
|
|
21
|
+
});
|
|
22
|
+
if (r < 168)
|
|
23
|
+
return n.toLocaleDateString("en-US", {
|
|
24
|
+
month: "short",
|
|
25
|
+
day: "numeric",
|
|
26
|
+
hour: "numeric",
|
|
27
|
+
minute: "2-digit"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return n.toLocaleDateString("en-US", { month: "short", day: "numeric" });
|
|
31
|
+
}
|
|
14
32
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
c as roundToNice
|
|
33
|
+
f as formatAxisLabel,
|
|
34
|
+
u as fromUnixTimestamp,
|
|
35
|
+
m as toUnixTimestamp
|
|
19
36
|
};
|
|
20
37
|
//# sourceMappingURL=petal-toolkit.es1332.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"petal-toolkit.es1332.js","sources":["../src/utils/
|
|
1
|
+
{"version":3,"file":"petal-toolkit.es1332.js","sources":["../src/utils/dateUtils.ts"],"sourcesContent":["/**\n * Shared Date Utilities\n *\n * Common date utilities used across charts.\n * Import from here instead of duplicating in each component.\n */\n\n/**\n * Convert a Date object or millisecond timestamp to Unix timestamp (seconds)\n *\n * SciChart uses Unix timestamps (seconds since epoch) for date axes.\n * This handles both Date objects and millisecond timestamps.\n *\n * @example\n * toUnixTimestamp(new Date('2024-01-15')) // 1705276800\n * toUnixTimestamp(1705276800000) // 1705276800 (already in ms, converts to seconds)\n * toUnixTimestamp(1705276800) // 1705276800 (already in seconds, returns as-is)\n */\nexport function toUnixTimestamp(date: Date | number): number {\n if (typeof date === 'number') {\n // If it's already a Unix timestamp (seconds), return as-is\n // If it's a millisecond timestamp (> year 2001 in seconds), convert\n if (date > 1_000_000_000_000) {\n return Math.floor(date / 1000);\n }\n return date;\n }\n return Math.floor(date.getTime() / 1000);\n}\n\n/**\n * Convert Unix timestamp (seconds) back to Date object\n *\n * @example\n * fromUnixTimestamp(1705276800) // Date('2024-01-15')\n */\nexport function fromUnixTimestamp(timestamp: number): Date {\n // Handle both seconds and milliseconds\n if (timestamp > 1_000_000_000_000) {\n return new Date(timestamp);\n }\n return new Date(timestamp * 1000);\n}\n\n/**\n * Format a date for display on chart axes\n *\n * @example\n * formatChartDate(new Date('2024-01-15')) // 'Jan 15'\n */\nexport function formatChartDate(date: Date | number): string {\n const d = typeof date === 'number' ? fromUnixTimestamp(date) : date;\n return d.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n });\n}\n\n/**\n * Format a date with full precision\n *\n * @example\n * formatChartDateFull(new Date('2024-01-15')) // 'Jan 15, 2024'\n */\nexport function formatChartDateFull(date: Date | number): string {\n const d = typeof date === 'number' ? fromUnixTimestamp(date) : date;\n return d.toLocaleDateString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n}\n\n/**\n * Format a date with time\n *\n * @example\n * formatChartDateTime(new Date('2024-01-15T14:30:00')) // 'Jan 15, 2:30 PM'\n */\nexport function formatChartDateTime(date: Date | number): string {\n const d = typeof date === 'number' ? fromUnixTimestamp(date) : date;\n return d.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n}\n\n/**\n * Get the start of a day (midnight) for a given date\n */\nexport function startOfDay(date: Date): Date {\n const d = new Date(date);\n d.setHours(0, 0, 0, 0);\n return d;\n}\n\n/**\n * Get the end of a day (23:59:59.999) for a given date\n */\nexport function endOfDay(date: Date): Date {\n const d = new Date(date);\n d.setHours(23, 59, 59, 999);\n return d;\n}\n\n/**\n * Smart format for chart axis labels - auto-detects granularity from data range\n *\n * Determines the appropriate format based on the time span of the data:\n * - Sub-hour range: show time with seconds (e.g., \"2:30:45 PM\")\n * - 1-24 hours: show time only (e.g., \"2:30 PM\")\n * - 1-7 days: show date + time (e.g., \"Jan 15, 2:30 PM\")\n * - > 7 days: show date only (e.g., \"Jan 15\")\n *\n * @param timestamp - Unix timestamp (seconds)\n * @param dataRange - Optional: [minTimestamp, maxTimestamp] to help detect granularity\n *\n * @example\n * // With daily data range\n * formatAxisLabel(1705276800, [1704672000, 1705881600]) // \"Jan 15\"\n *\n * // With intraday range (few hours)\n * formatAxisLabel(1705276800, [1705273200, 1705284000]) // \"2:30 PM\"\n *\n * // With sub-hour range (seconds precision)\n * formatAxisLabel(1705276845, [1705276800, 1705278000]) // \"2:30:45 PM\"\n */\nexport function formatAxisLabel(timestamp: number, dataRange?: [number, number]): string {\n const d = fromUnixTimestamp(timestamp);\n\n // If we have a data range, use it to detect granularity\n if (dataRange) {\n const [min, max] = dataRange;\n const rangeSeconds = max - min;\n const rangeHours = rangeSeconds / 3600;\n\n if (rangeHours < 1) {\n // Sub-hour range: show time with seconds\n return d.toLocaleTimeString('en-US', {\n hour: 'numeric',\n minute: '2-digit',\n second: '2-digit',\n });\n } else if (rangeHours < 24) {\n // Intraday: show time only\n return d.toLocaleTimeString('en-US', {\n hour: 'numeric',\n minute: '2-digit',\n });\n } else if (rangeHours < 24 * 7) {\n // Multi-day but < 1 week: show date + time\n return d.toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n }\n }\n\n // Default: date only (for daily+ data or when range unknown)\n return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n}\n"],"names":["toUnixTimestamp","date","fromUnixTimestamp","timestamp","formatAxisLabel","dataRange","d","min","max","rangeHours"],"mappings":"AAkBO,SAASA,EAAgBC,GAA6B;AAC3D,SAAI,OAAOA,KAAS,WAGdA,IAAO,OACF,KAAK,MAAMA,IAAO,GAAI,IAExBA,IAEF,KAAK,MAAMA,EAAK,QAAA,IAAY,GAAI;AACzC;AAQO,SAASC,EAAkBC,GAAyB;AAEzD,SAAIA,IAAY,OACP,IAAI,KAAKA,CAAS,IAEpB,IAAI,KAAKA,IAAY,GAAI;AAClC;AAuFO,SAASC,EAAgBD,GAAmBE,GAAsC;AACvF,QAAMC,IAAIJ,EAAkBC,CAAS;AAGrC,MAAIE,GAAW;AACb,UAAM,CAACE,GAAKC,CAAG,IAAIH,GAEbI,KADeD,IAAMD,KACO;AAElC,QAAIE,IAAa;AAEf,aAAOH,EAAE,mBAAmB,SAAS;AAAA,QACnC,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,QAAQ;AAAA,MAAA,CACT;AACH,QAAWG,IAAa;AAEtB,aAAOH,EAAE,mBAAmB,SAAS;AAAA,QACnC,MAAM;AAAA,QACN,QAAQ;AAAA,MAAA,CACT;AACH,QAAWG,IAAa;AAEtB,aAAOH,EAAE,mBAAmB,SAAS;AAAA,QACnC,OAAO;AAAA,QACP,KAAK;AAAA,QACL,MAAM;AAAA,QACN,QAAQ;AAAA,MAAA,CACT;AAAA,EAEL;AAGA,SAAOA,EAAE,mBAAmB,SAAS,EAAE,OAAO,SAAS,KAAK,WAAW;AACzE;"}
|
|
@@ -1,98 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function h(e, n) {
|
|
3
|
-
const {
|
|
4
|
-
xValues: i,
|
|
5
|
-
yValues: c,
|
|
6
|
-
name: r,
|
|
7
|
-
color: o,
|
|
8
|
-
strokeThickness: a = 3,
|
|
9
|
-
pointMarker: s = {}
|
|
10
|
-
} = n, {
|
|
11
|
-
size: l = 8,
|
|
12
|
-
strokeColor: d = "#FFFFFF",
|
|
13
|
-
strokeThickness: k = 2
|
|
14
|
-
} = s, u = new t.XyDataSeries(e, {
|
|
15
|
-
xValues: i,
|
|
16
|
-
yValues: c,
|
|
17
|
-
dataSeriesName: r
|
|
18
|
-
});
|
|
19
|
-
return new t.FastLineRenderableSeries(e, {
|
|
20
|
-
dataSeries: u,
|
|
21
|
-
stroke: o,
|
|
22
|
-
strokeThickness: a,
|
|
23
|
-
pointMarker: new t.EllipsePointMarker(e, {
|
|
24
|
-
width: l,
|
|
25
|
-
height: l,
|
|
26
|
-
fill: o,
|
|
27
|
-
stroke: d,
|
|
28
|
-
strokeThickness: k
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function y(e, n) {
|
|
33
|
-
const {
|
|
34
|
-
xValues: i,
|
|
35
|
-
yValues: c,
|
|
36
|
-
name: r,
|
|
37
|
-
color: o,
|
|
38
|
-
dataPointWidth: a = 0.6,
|
|
39
|
-
opacity: s = 0.8
|
|
40
|
-
} = n, l = Math.round(s * 255).toString(16).padStart(2, "0").toUpperCase(), d = new t.XyDataSeries(e, {
|
|
41
|
-
xValues: i,
|
|
42
|
-
yValues: c,
|
|
43
|
-
dataSeriesName: r
|
|
44
|
-
});
|
|
45
|
-
return new t.FastColumnRenderableSeries(e, {
|
|
46
|
-
dataSeries: d,
|
|
47
|
-
fill: o + l,
|
|
48
|
-
stroke: o,
|
|
49
|
-
strokeThickness: 0,
|
|
50
|
-
dataPointWidth: a
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function p(e, n) {
|
|
54
|
-
const { xValues: i, series: c, groupId: r, dataPointWidth: o = 0.6 } = n, a = new t.StackedColumnCollection(e);
|
|
55
|
-
a.dataPointWidth = o;
|
|
56
|
-
for (const s of c) {
|
|
57
|
-
const l = new t.XyDataSeries(e, {
|
|
58
|
-
xValues: i,
|
|
59
|
-
yValues: s.yValues,
|
|
60
|
-
dataSeriesName: s.name
|
|
61
|
-
}), d = new t.StackedColumnRenderableSeries(e, {
|
|
62
|
-
dataSeries: l,
|
|
63
|
-
fill: s.color,
|
|
64
|
-
stroke: s.color,
|
|
65
|
-
strokeThickness: 0,
|
|
66
|
-
stackedGroupId: r
|
|
67
|
-
});
|
|
68
|
-
a.add(d);
|
|
69
|
-
}
|
|
70
|
-
return a;
|
|
71
|
-
}
|
|
72
|
-
function f(e, n) {
|
|
73
|
-
const {
|
|
74
|
-
y: i,
|
|
75
|
-
color: c,
|
|
76
|
-
label: r,
|
|
77
|
-
strokeThickness: o = 1,
|
|
78
|
-
dashed: a = !0
|
|
79
|
-
} = n;
|
|
80
|
-
e.annotations.add(
|
|
81
|
-
new t.HorizontalLineAnnotation({
|
|
82
|
-
y1: i,
|
|
83
|
-
stroke: c,
|
|
84
|
-
strokeThickness: o,
|
|
85
|
-
strokeDashArray: a ? [5, 5] : void 0,
|
|
86
|
-
annotationLayer: t.EAnnotationLayer.BelowChart,
|
|
87
|
-
showLabel: !!r,
|
|
88
|
-
labelValue: r
|
|
89
|
-
})
|
|
90
|
-
);
|
|
91
|
-
}
|
|
1
|
+
var r = {};
|
|
92
2
|
export {
|
|
93
|
-
|
|
94
|
-
y as createBarSeries,
|
|
95
|
-
h as createLineSeries,
|
|
96
|
-
p as createStackedCollection
|
|
3
|
+
r as __exports
|
|
97
4
|
};
|
|
98
5
|
//# sourceMappingURL=petal-toolkit.es1333.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"petal-toolkit.es1333.js","sources":[
|
|
1
|
+
{"version":3,"file":"petal-toolkit.es1333.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
const o = (t) => {
|
|
2
|
+
const n = Math.abs(t), r = t < 0 ? "-" : t > 0 ? "+" : "";
|
|
3
|
+
return n >= 1e9 ? `${r}$${(n / 1e9).toFixed(2)}B` : n >= 1e6 ? `${r}$${(n / 1e6).toFixed(2)}M` : n >= 1e3 ? `${r}$${(n / 1e3).toFixed(1)}K` : `${r}$${n.toFixed(2)}`;
|
|
4
|
+
}, i = (t) => (t >= 0 ? "+" : "") + new Intl.NumberFormat("en-US", {
|
|
5
|
+
style: "currency",
|
|
6
|
+
currency: "USD",
|
|
7
|
+
minimumFractionDigits: 2,
|
|
8
|
+
maximumFractionDigits: 2
|
|
9
|
+
}).format(Math.abs(t)), s = (t) => `${t >= 0 ? "+" : ""}${t.toFixed(2)}%`, c = (t) => {
|
|
10
|
+
if (t === 0) return 0;
|
|
11
|
+
const n = Math.abs(t), r = Math.pow(10, Math.floor(Math.log10(n))), e = Math.ceil(n / r) * r;
|
|
12
|
+
return t < 0 ? -e : e;
|
|
13
|
+
};
|
|
2
14
|
export {
|
|
3
|
-
|
|
15
|
+
o as formatCurrency,
|
|
16
|
+
i as formatCurrencyFull,
|
|
17
|
+
s as formatPercent,
|
|
18
|
+
c as roundToNice
|
|
4
19
|
};
|
|
5
20
|
//# sourceMappingURL=petal-toolkit.es1334.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"petal-toolkit.es1334.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"petal-toolkit.es1334.js","sources":["../src/utils/formatters.ts"],"sourcesContent":["/**\n * Shared Formatting Utilities\n *\n * Common number/currency/percent formatters used across charts.\n * Import from here instead of duplicating in each component.\n */\n\n/**\n * Format currency value with abbreviated suffixes (K, M, B)\n * Includes sign prefix for gains/losses\n *\n * @example\n * formatCurrency(1234567) // '+$1.23M'\n * formatCurrency(-5000) // '-$5.0K'\n * formatCurrency(50) // '+$50.00'\n */\nexport const formatCurrency = (val: number): string => {\n const absValue = Math.abs(val);\n const sign = val < 0 ? '-' : val > 0 ? '+' : '';\n\n if (absValue >= 1_000_000_000) {\n return `${sign}$${(absValue / 1_000_000_000).toFixed(2)}B`;\n }\n if (absValue >= 1_000_000) {\n return `${sign}$${(absValue / 1_000_000).toFixed(2)}M`;\n }\n if (absValue >= 1_000) {\n return `${sign}$${(absValue / 1_000).toFixed(1)}K`;\n }\n return `${sign}$${absValue.toFixed(2)}`;\n};\n\n/**\n * Format currency value without sign prefix\n * Uses abbreviated suffixes (K, M, B)\n *\n * @example\n * formatCurrencyNoSign(1234567) // '$1.23M'\n * formatCurrencyNoSign(-5000) // '-$5.0K'\n */\nexport const formatCurrencyNoSign = (val: number): string => {\n const absValue = Math.abs(val);\n const sign = val < 0 ? '-' : '';\n\n if (absValue >= 1_000_000_000) {\n return `${sign}$${(absValue / 1_000_000_000).toFixed(2)}B`;\n }\n if (absValue >= 1_000_000) {\n return `${sign}$${(absValue / 1_000_000).toFixed(2)}M`;\n }\n if (absValue >= 1_000) {\n return `${sign}$${(absValue / 1_000).toFixed(1)}K`;\n }\n return `${sign}$${absValue.toFixed(2)}`;\n};\n\n/**\n * Format currency with full precision using Intl.NumberFormat\n * Includes sign prefix for gains/losses\n *\n * @example\n * formatCurrencyFull(1234.56) // '+$1,234.56'\n * formatCurrencyFull(-567.89) // '-$567.89'\n */\nexport const formatCurrencyFull = (val: number): string => {\n const sign = val >= 0 ? '+' : '';\n return sign + new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }).format(Math.abs(val));\n};\n\n/**\n * Format currency with full precision, no sign prefix\n *\n * @example\n * formatCurrencyFullNoSign(1234.56) // '$1,234.56'\n * formatCurrencyFullNoSign(-567.89) // '-$567.89'\n */\nexport const formatCurrencyFullNoSign = (val: number): string => {\n return new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n }).format(val);\n};\n\n/**\n * Format percentage with sign prefix\n *\n * @example\n * formatPercent(12.34) // '+12.34%'\n * formatPercent(-5.67) // '-5.67%'\n */\nexport const formatPercent = (val: number): string => {\n const sign = val >= 0 ? '+' : '';\n return `${sign}${val.toFixed(2)}%`;\n};\n\n/**\n * Format percentage without sign prefix\n *\n * @example\n * formatPercentNoSign(12.34) // '12.34%'\n * formatPercentNoSign(-5.67) // '-5.67%'\n */\nexport const formatPercentNoSign = (val: number): string => {\n return `${val.toFixed(2)}%`;\n};\n\n/**\n * Format volume with abbreviated suffixes (K, M, B)\n *\n * @example\n * formatVolume(1500000) // '1.50M'\n * formatVolume(75000) // '75.0K'\n * formatVolume(500) // '500'\n */\nexport const formatVolume = (val: number): string => {\n const absValue = Math.abs(val);\n\n if (absValue >= 1_000_000_000) {\n return `${(val / 1_000_000_000).toFixed(2)}B`;\n }\n if (absValue >= 1_000_000) {\n return `${(val / 1_000_000).toFixed(2)}M`;\n }\n if (absValue >= 1_000) {\n return `${(val / 1_000).toFixed(1)}K`;\n }\n return val.toFixed(0);\n};\n\n/**\n * Format number with abbreviated suffixes (K, M, B)\n * Generic version without currency symbol\n *\n * @example\n * formatNumber(1234567) // '1.23M'\n * formatNumber(5000) // '5.0K'\n */\nexport const formatNumber = (val: number): string => {\n const absValue = Math.abs(val);\n const sign = val < 0 ? '-' : '';\n\n if (absValue >= 1_000_000_000) {\n return `${sign}${(absValue / 1_000_000_000).toFixed(2)}B`;\n }\n if (absValue >= 1_000_000) {\n return `${sign}${(absValue / 1_000_000).toFixed(2)}M`;\n }\n if (absValue >= 1_000) {\n return `${sign}${(absValue / 1_000).toFixed(1)}K`;\n }\n return `${sign}${absValue.toFixed(2)}`;\n};\n\n/**\n * Format number with full precision using Intl.NumberFormat\n *\n * @example\n * formatNumberFull(1234567) // '1,234,567'\n */\nexport const formatNumberFull = (val: number, decimals: number = 0): string => {\n return new Intl.NumberFormat('en-US', {\n minimumFractionDigits: decimals,\n maximumFractionDigits: decimals,\n }).format(val);\n};\n\n/**\n * Round to a \"nice\" number for display (caps, axis ranges, etc)\n *\n * @example\n * roundToNice(123) // 200\n * roundToNice(4567) // 5000\n */\nexport const roundToNice = (value: number): number => {\n if (value === 0) return 0;\n const absValue = Math.abs(value);\n const magnitude = Math.pow(10, Math.floor(Math.log10(absValue)));\n const rounded = Math.ceil(absValue / magnitude) * magnitude;\n return value < 0 ? -rounded : rounded;\n};"],"names":["formatCurrency","val","absValue","sign","formatCurrencyFull","formatPercent","roundToNice","value","magnitude","rounded"],"mappings":"AAgBO,MAAMA,IAAiB,CAACC,MAAwB;AACrD,QAAMC,IAAW,KAAK,IAAID,CAAG,GACvBE,IAAOF,IAAM,IAAI,MAAMA,IAAM,IAAI,MAAM;AAE7C,SAAIC,KAAY,MACP,GAAGC,CAAI,KAAKD,IAAW,KAAe,QAAQ,CAAC,CAAC,MAErDA,KAAY,MACP,GAAGC,CAAI,KAAKD,IAAW,KAAW,QAAQ,CAAC,CAAC,MAEjDA,KAAY,MACP,GAAGC,CAAI,KAAKD,IAAW,KAAO,QAAQ,CAAC,CAAC,MAE1C,GAAGC,CAAI,IAAID,EAAS,QAAQ,CAAC,CAAC;AACvC,GAkCaE,IAAqB,CAACH,OACpBA,KAAO,IAAI,MAAM,MAChB,IAAI,KAAK,aAAa,SAAS;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,CACxB,EAAE,OAAO,KAAK,IAAIA,CAAG,CAAC,GA0BZI,IAAgB,CAACJ,MAErB,GADMA,KAAO,IAAI,MAAM,EAChB,GAAGA,EAAI,QAAQ,CAAC,CAAC,KAiFpBK,IAAc,CAACC,MAA0B;AACpD,MAAIA,MAAU,EAAG,QAAO;AACxB,QAAML,IAAW,KAAK,IAAIK,CAAK,GACzBC,IAAY,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK,MAAMN,CAAQ,CAAC,CAAC,GACzDO,IAAU,KAAK,KAAKP,IAAWM,CAAS,IAAIA;AAClD,SAAOD,IAAQ,IAAI,CAACE,IAAUA;AAChC;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import { memo as M, useEffect as V } from "react";
|
|
3
3
|
import { s as x } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as D } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as D } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as L, createNumericYAxis as X } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as j, addLegendModifier as z } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as j, addLegendModifier as z } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as r } from "./petal-toolkit.es58.js";
|
|
8
8
|
function W(g) {
|
|
9
9
|
switch (g) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { memo as B, useEffect as N } from "react";
|
|
3
3
|
import { s as e } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as V } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as V } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as X, createNumericYAxis as z } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as Q, addLegendModifier as j } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as Q, addLegendModifier as j } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as w } from "./petal-toolkit.es58.js";
|
|
8
8
|
function H(k) {
|
|
9
9
|
switch (k) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
2
|
import { memo as A, useEffect as L } from "react";
|
|
3
3
|
import { s as k } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as v } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as v } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as V, createNumericYAxis as w, labelFormatters as E } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { createStackedCollection as I } from "./petal-toolkit.
|
|
7
|
-
import { addStandardModifiers as M, addLegendModifier as N } from "./petal-toolkit.
|
|
6
|
+
import { createStackedCollection as I } from "./petal-toolkit.es1330.js";
|
|
7
|
+
import { addStandardModifiers as M, addLegendModifier as N } from "./petal-toolkit.es1331.js";
|
|
8
8
|
import { tooltipFormatters as b } from "./petal-toolkit.es58.js";
|
|
9
9
|
function j(m) {
|
|
10
10
|
switch (m) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { memo as D, useEffect as A } from "react";
|
|
3
3
|
import { s as T } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as v } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as v } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as L, createNumericYAxis as k } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addReferenceLine as M, createLineSeries as N } from "./petal-toolkit.
|
|
7
|
-
import { addStandardModifiers as V, addLegendModifier as j } from "./petal-toolkit.
|
|
6
|
+
import { addReferenceLine as M, createLineSeries as N } from "./petal-toolkit.es1330.js";
|
|
7
|
+
import { addStandardModifiers as V, addLegendModifier as j } from "./petal-toolkit.es1331.js";
|
|
8
8
|
import { tooltipFormatters as w } from "./petal-toolkit.es58.js";
|
|
9
9
|
function z(u) {
|
|
10
10
|
switch (u) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as j } from "react/jsx-runtime";
|
|
2
2
|
import { memo as g, useEffect as D } from "react";
|
|
3
3
|
import { s as e } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as F } from "./petal-toolkit.
|
|
5
|
-
import { addStandardModifiers as L, addLegendModifier as M } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as F } from "./petal-toolkit.es1329.js";
|
|
5
|
+
import { addStandardModifiers as L, addLegendModifier as M } from "./petal-toolkit.es1331.js";
|
|
6
6
|
function T(c) {
|
|
7
7
|
switch (c) {
|
|
8
8
|
case "light":
|
|
@@ -2,9 +2,9 @@ import { jsx as G } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as N, useEffect as V } from "react";
|
|
3
3
|
import { s as o } from "./petal-toolkit.es59.js";
|
|
4
4
|
import { TOOLTIP_STYLE as b } from "./petal-toolkit.es54.js";
|
|
5
|
-
import { useFinancialChartSetup as Z } from "./petal-toolkit.
|
|
5
|
+
import { useFinancialChartSetup as Z } from "./petal-toolkit.es1329.js";
|
|
6
6
|
import { createCategoryXAxis as I, createNumericYAxis as O } from "./petal-toolkit.es55.js";
|
|
7
|
-
import { addLegendModifier as X } from "./petal-toolkit.
|
|
7
|
+
import { addLegendModifier as X } from "./petal-toolkit.es1331.js";
|
|
8
8
|
function _(m) {
|
|
9
9
|
switch (m) {
|
|
10
10
|
case "light":
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
2
|
import { memo as G, useEffect as E } from "react";
|
|
3
3
|
import { s as r } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as D } from "./petal-toolkit.
|
|
5
|
-
import { addStandardModifiers as M, addLegendModifier as B } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as D } from "./petal-toolkit.es1329.js";
|
|
5
|
+
import { addStandardModifiers as M, addLegendModifier as B } from "./petal-toolkit.es1331.js";
|
|
6
6
|
function N(m) {
|
|
7
7
|
switch (m) {
|
|
8
8
|
case "light":
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
2
|
import { memo as T, useEffect as N } from "react";
|
|
3
3
|
import { s as r } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as G } from "./petal-toolkit.
|
|
5
|
-
import { addStandardModifiers as V, addLegendModifier as j } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as G } from "./petal-toolkit.es1329.js";
|
|
5
|
+
import { addStandardModifiers as V, addLegendModifier as j } from "./petal-toolkit.es1331.js";
|
|
6
6
|
function B(e) {
|
|
7
7
|
switch (e) {
|
|
8
8
|
case "light":
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import { memo as k, useEffect as A } from "react";
|
|
3
3
|
import { s as m } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as V } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as V } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as Y, createNumericYAxis as D, labelFormatters as E } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addReferenceLine as H, createLineSeries as M } from "./petal-toolkit.
|
|
7
|
-
import { addStandardModifiers as N, addLegendModifier as R } from "./petal-toolkit.
|
|
6
|
+
import { addReferenceLine as H, createLineSeries as M } from "./petal-toolkit.es1330.js";
|
|
7
|
+
import { addStandardModifiers as N, addLegendModifier as R } from "./petal-toolkit.es1331.js";
|
|
8
8
|
import { tooltipFormatters as X } from "./petal-toolkit.es58.js";
|
|
9
9
|
function j(d) {
|
|
10
10
|
switch (d) {
|
|
@@ -2,7 +2,7 @@ import { jsxs as te, jsx as re } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as Fe, useId as Ie, useRef as F, useEffect as xe } from "react";
|
|
3
3
|
import { s as t } from "./petal-toolkit.es59.js";
|
|
4
4
|
import { getThemeFromPreset as Ue, getFinancialChartColors as $e } from "./petal-toolkit.es60.js";
|
|
5
|
-
import { toUnixTimestamp as ge, formatAxisLabel as je } from "./petal-toolkit.
|
|
5
|
+
import { toUnixTimestamp as ge, formatAxisLabel as je } from "./petal-toolkit.es1332.js";
|
|
6
6
|
import { DEFAULT_MACD_PARAMS as Pe, calculateMACD as Ge } from "./petal-toolkit.es16.js";
|
|
7
7
|
import { DEFAULT_RSI_PERIOD as _e, calculateRSI as Xe } from "./petal-toolkit.es17.js";
|
|
8
8
|
import { calculateEMA as ye, calculateSMA as be } from "./petal-toolkit.es53.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
|
2
2
|
import { memo as k, useEffect as T } from "react";
|
|
3
3
|
import { s as o } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as U } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as U } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createNumericYAxis as B } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as I } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as I } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as V } from "./petal-toolkit.es58.js";
|
|
8
8
|
function Y(h) {
|
|
9
9
|
switch (h) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as z } from "react/jsx-runtime";
|
|
2
2
|
import { memo as L, useEffect as N } from "react";
|
|
3
3
|
import { s as l } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as U } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as U } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as j, createNumericYAxis as B } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as T } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as T } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as X } from "./petal-toolkit.es58.js";
|
|
8
8
|
function Y(d) {
|
|
9
9
|
switch (d) {
|
|
@@ -2,9 +2,9 @@ import { jsx as q } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as J, useEffect as K } from "react";
|
|
3
3
|
import { s as r } from "./petal-toolkit.es59.js";
|
|
4
4
|
import { TOOLTIP_STYLE as L } from "./petal-toolkit.es54.js";
|
|
5
|
-
import { useFinancialChartSetup as Q } from "./petal-toolkit.
|
|
5
|
+
import { useFinancialChartSetup as Q } from "./petal-toolkit.es1329.js";
|
|
6
6
|
import { createCategoryXAxis as U } from "./petal-toolkit.es55.js";
|
|
7
|
-
import { addLegendModifier as ee } from "./petal-toolkit.
|
|
7
|
+
import { addLegendModifier as ee } from "./petal-toolkit.es1331.js";
|
|
8
8
|
function re(m) {
|
|
9
9
|
switch (m) {
|
|
10
10
|
case "light":
|
|
@@ -2,7 +2,7 @@ import { jsx as b } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as A, useEffect as g } from "react";
|
|
3
3
|
import { s as e } from "./petal-toolkit.es59.js";
|
|
4
4
|
import { createRolloverTooltip as y, tooltipFormatters as B } from "./petal-toolkit.es54.js";
|
|
5
|
-
import { useFinancialChartSetup as v } from "./petal-toolkit.
|
|
5
|
+
import { useFinancialChartSetup as v } from "./petal-toolkit.es1329.js";
|
|
6
6
|
function $(a) {
|
|
7
7
|
switch (a) {
|
|
8
8
|
case "light":
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
2
|
import { memo as W, useEffect as B } from "react";
|
|
3
3
|
import { s as p } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as E } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as E } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as N, createNumericYAxis as O, labelFormatters as L } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as M, addLegendModifier as V } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as M, addLegendModifier as V } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as f } from "./petal-toolkit.es58.js";
|
|
8
8
|
function X(b) {
|
|
9
9
|
switch (b) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { memo as T, useEffect as X } from "react";
|
|
3
3
|
import { s as i } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as R } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as R } from "./petal-toolkit.es1329.js";
|
|
5
5
|
import { createCategoryXAxis as _, createNumericYAxis as S, labelFormatters as b } from "./petal-toolkit.es55.js";
|
|
6
|
-
import { addStandardModifiers as j, addLegendModifier as P } from "./petal-toolkit.
|
|
6
|
+
import { addStandardModifiers as j, addLegendModifier as P } from "./petal-toolkit.es1331.js";
|
|
7
7
|
import { tooltipFormatters as p } from "./petal-toolkit.es58.js";
|
|
8
8
|
function z(d) {
|
|
9
9
|
switch (d) {
|
|
@@ -5,7 +5,7 @@ import { jsx as Y } from "react/jsx-runtime";
|
|
|
5
5
|
import { memo as ee, useId as oe, useRef as $, useEffect as te } from "react";
|
|
6
6
|
import { s as t } from "./petal-toolkit.es59.js";
|
|
7
7
|
import { getThemeFromPreset as re } from "./petal-toolkit.es60.js";
|
|
8
|
-
import { formatCurrency as U, formatCurrencyFull as R, formatPercent as ae, roundToNice as _ } from "./petal-toolkit.
|
|
8
|
+
import { formatCurrency as U, formatCurrencyFull as R, formatPercent as ae, roundToNice as _ } from "./petal-toolkit.es1334.js";
|
|
9
9
|
function ie(i) {
|
|
10
10
|
switch (i) {
|
|
11
11
|
case "light":
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import { memo as D, useEffect as N } from "react";
|
|
3
3
|
import { s as e } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as v } from "./petal-toolkit.
|
|
5
|
-
import { addStandardModifiers as M, addLegendModifier as T } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as v } from "./petal-toolkit.es1329.js";
|
|
5
|
+
import { addStandardModifiers as M, addLegendModifier as T } from "./petal-toolkit.es1331.js";
|
|
6
6
|
function B(f) {
|
|
7
7
|
switch (f) {
|
|
8
8
|
case "light":
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as ee } from "react/jsx-runtime";
|
|
2
2
|
import { memo as ae, useEffect as te } from "react";
|
|
3
3
|
import { s as a } from "./petal-toolkit.es59.js";
|
|
4
|
-
import { useFinancialChartSetup as se } from "./petal-toolkit.
|
|
5
|
-
import { addStandardModifiers as oe, addLegendModifier as re } from "./petal-toolkit.
|
|
4
|
+
import { useFinancialChartSetup as se } from "./petal-toolkit.es1329.js";
|
|
5
|
+
import { addStandardModifiers as oe, addLegendModifier as re } from "./petal-toolkit.es1331.js";
|
|
6
6
|
function ie(k) {
|
|
7
7
|
switch (k) {
|
|
8
8
|
case "light":
|