@flourish/facets
Advanced tools
Comparing version 1.0.0-prerelease.2 to 1.0.0-prerelease.3
{ | ||
"name": "@flourish/facets", | ||
"version": "1.0.0-prerelease.2", | ||
"version": "1.0.0-prerelease.3", | ||
"description": "Create grids of things", | ||
@@ -5,0 +5,0 @@ "main": "facets.js", |
@@ -7,4 +7,4 @@ import { select } from "d3-selection"; | ||
gutter_h: 1, | ||
min_width: 200, | ||
max_width: 200, | ||
min_width: 300, | ||
max_width: null, | ||
@@ -127,4 +127,5 @@ columns_fixed: false, | ||
var gutters_w = gutter_w * (cols - 1), | ||
facet_w = Math.max(0, Math.min(state.max_width, (total_width - gutters_w)/cols)), | ||
var max_facet_w = state.max_width || Infinity, | ||
gutters_w = gutter_w * (cols - 1), | ||
facet_w = Math.max(0, Math.min(max_facet_w, (total_width - gutters_w)/cols)), | ||
extra_space = Math.max(0, total_width - (facet_w * cols) - gutters_w); | ||
@@ -131,0 +132,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
100201
2802