Outlines feature complete
This commit is contained in:
parent
066e1a54ea
commit
827cfeea21
8 changed files with 181 additions and 83 deletions
|
@ -1,3 +1,4 @@
|
|||
const m = require('makerjs')
|
||||
const Point = require('./point')
|
||||
|
||||
const assert = exports.assert = (exp, msg) => {
|
||||
|
@ -57,9 +58,8 @@ exports.anchor = (raw, name, points={}, check_unexpected=true, default_point=new
|
|||
a = points[raw.ref].clone()
|
||||
}
|
||||
if (raw.shift !== undefined) {
|
||||
const xyval = wh(raw.shift || [0, 0], name + '.shift')
|
||||
a.x += xyval[0]
|
||||
a.y += xyval[1]
|
||||
let xyval = wh(raw.shift || [0, 0], name + '.shift')
|
||||
a.shift(xyval, true)
|
||||
}
|
||||
if (raw.rotate !== undefined) {
|
||||
a.r += sane(raw.rotate || 0, name + '.rotate', 'number')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue