publ-echo 0.0.41 → 0.0.42

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.
@@ -1,14 +1,18 @@
1
1
  export function calcGridColWidth(positionParams) {
2
2
  var margin = positionParams.margin, containerPadding = positionParams.containerPadding, containerWidth = positionParams.containerWidth, cols = positionParams.cols;
3
- console.log('calcGridColWidth called', { margin: margin, containerPadding: containerPadding, containerWidth: containerWidth, cols: cols });
3
+ // console.log('calcGridColWidth called',{ margin, containerPadding, containerWidth, cols} );
4
4
  return ((containerWidth - margin[0] * (cols - 1) - containerPadding[0] * 2) / cols);
5
5
  }
6
6
  export function calcGridItemWHPx(gridUnits, colOrRowSize, marginPx) {
7
7
  if (!Number.isFinite(gridUnits))
8
8
  return gridUnits;
9
- console.log('calcGridItemWHPx called', { colOrRowSize: colOrRowSize, gridUnits: gridUnits, marginPx: marginPx });
10
- console.log('calcGridItemWHPx result: ', Math.round(colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx));
11
- return Math.round(colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx);
9
+ // console.log('calcGridItemWHPx called',{ colOrRowSize,
10
+ // gridUnits,
11
+ // marginPx });
12
+ // console.log('calcGridItemWHPx result: ', Math.round(
13
+ // colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx
14
+ // ))
15
+ return Number((colOrRowSize * gridUnits + Math.max(0, gridUnits - 1) * marginPx).toFixed(1));
12
16
  }
13
17
  export var resolveRowHeight = function (rowHeight, width) {
14
18
  return typeof rowHeight === "number" ? rowHeight : rowHeight(width);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",