Base key-level defaults around u
This commit is contained in:
parent
9bdcd36d1a
commit
67e01ed4f9
3 changed files with 7 additions and 9 deletions
|
@ -312,11 +312,11 @@ exports.parse = (config, units) => {
|
|||
return filtered
|
||||
}
|
||||
|
||||
exports.visualize = (points) => {
|
||||
exports.visualize = (points, units) => {
|
||||
const models = {}
|
||||
for (const [pname, p] of Object.entries(points)) {
|
||||
const w = (p.meta.width * 19) - 1
|
||||
const h = (p.meta.height * 19) - 1
|
||||
const w = (p.meta.width * units.u) - 1
|
||||
const h = (p.meta.height * units.u) - 1
|
||||
const rect = u.rect(w, h, [-w/2, -h/2])
|
||||
models[pname] = p.position(rect)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue