gantt-renderer 0.12.3 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/locales/load.mjs.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
## [0.12.5](https://github.com/doberkofler/gantt-renderer/compare/v0.12.4...v0.12.5) (2026-06-17)
|
|
2
|
+
|
|
1
3
|
## [0.12.3](https://github.com/doberkofler/gantt-renderer/compare/v0.12.2...v0.12.3) (2026-05-31)
|
|
2
4
|
|
|
3
5
|
## [0.12.2](https://github.com/doberkofler/gantt-renderer/compare/v0.12.1...v0.12.2) (2026-05-30)
|
package/dist/index.mjs
CHANGED
|
@@ -1571,14 +1571,14 @@ function visibleColumns(columns) {
|
|
|
1571
1571
|
return columns.filter((c) => c.visible !== false);
|
|
1572
1572
|
}
|
|
1573
1573
|
const GRID_COLUMN_FR_MIN_WIDTH = 120;
|
|
1574
|
-
const PX_RE = /^(
|
|
1575
|
-
const FR_RE = /^(
|
|
1574
|
+
const PX_RE = /^(?<value>\d+(?:\.\d+)?)px$/u;
|
|
1575
|
+
const FR_RE = /^(?<value>\d+(?:\.\d+)?)fr$/u;
|
|
1576
1576
|
function parseColumnMinWidth(width) {
|
|
1577
1577
|
const trimmed = width.trim();
|
|
1578
1578
|
const pxMatch = PX_RE.exec(trimmed);
|
|
1579
|
-
if (pxMatch) return parseFloat(pxMatch[
|
|
1579
|
+
if (pxMatch) return parseFloat(pxMatch.groups?.["value"] ?? "0");
|
|
1580
1580
|
const frMatch = FR_RE.exec(trimmed);
|
|
1581
|
-
if (frMatch) return parseFloat(frMatch[
|
|
1581
|
+
if (frMatch) return parseFloat(frMatch.groups?.["value"] ?? "0") * 120;
|
|
1582
1582
|
return 0;
|
|
1583
1583
|
}
|
|
1584
1584
|
/**
|