1
0

Make spread: 0 possible

Instead of defaulting to 'u' / 19
This commit is contained in:
Michael van Eerd 2021-08-13 23:15:42 +02:00 committed by Bán Dénes
parent 38a8fc5be8
commit 21e173e703

View File

@ -61,7 +61,7 @@ const render_zone = exports._render_zone = (zone_name, zone, anchor, global_key,
'number'
)(units)
col.spread = a.sane(
col.spread || (first_col ? 0 : 'u'),
col.spread !== undefined ? col.spread : (first_col ? 0 : 'u'),
`points.zones.${zone_name}.columns.${col_name}.spread`,
'number'
)(units)
@ -323,4 +323,4 @@ exports.visualize = (points, units) => {
models[pname] = p.position(rect)
}
return {models: models}
}
}