mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-13 16:40:05 +01:00
Generalize asym usage
This commit is contained in:
parent
40406fbc03
commit
cf9007aa50
9 changed files with 36 additions and 19 deletions
|
|
@ -281,9 +281,9 @@ exports.parse = (config, points, outlines, units) => {
|
|||
for (const [f_name, f] of Object.entries(footprints_config)) {
|
||||
const name = `pcbs.${pcb_name}.footprints.${f_name}`
|
||||
a.sane(f, name, 'object')()
|
||||
const mirror = a.sane(f.mirror || false, `${name}.mirror`, 'boolean')()
|
||||
const where = filter(f.where, `${name}.where`, points, units, mirror)
|
||||
delete f.mirror
|
||||
const asym = a.asym(f.asym || 'source', `${name}.asym`)
|
||||
const where = filter(f.where, `${name}.where`, points, units, asym)
|
||||
delete f.asym
|
||||
delete f.where
|
||||
for (const w of where) {
|
||||
footprints.push(footprint_factory(f, name, w))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue