publ-echo 0.0.34 → 0.0.35
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.
|
@@ -5,7 +5,7 @@ export function calcGridColWidth(positionParams) {
|
|
|
5
5
|
export function calcGridItemWHPx(gridUnits, colOrRowSize, marginPx) {
|
|
6
6
|
if (!Number.isFinite(gridUnits))
|
|
7
7
|
return gridUnits;
|
|
8
|
-
return Math.
|
|
8
|
+
return Math.ceil(colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx);
|
|
9
9
|
}
|
|
10
10
|
export var resolveRowHeight = function (rowHeight, width) {
|
|
11
11
|
return typeof rowHeight === "number" ? rowHeight : rowHeight(width);
|