adapt pad creation arguments to new format
This commit is contained in:
parent
608f4f580a
commit
f0acef68ff
10
cvlp_lib.js
10
cvlp_lib.js
|
@ -29,14 +29,14 @@ function cvlp_arc(x, y, radius, start, angle, thickness, round=true) {
|
|||
}
|
||||
|
||||
// create a set of elements with an pad element
|
||||
function cvlp_pad(number, x1, y1, x2, y2, thickness, clearance, soldermask, round=true) {
|
||||
function cvlp_pad(number, x, y, width, height, thickness, clearance, soldermask, round=true) {
|
||||
var pad = {}
|
||||
pad.type = "pad"
|
||||
pad.number = number
|
||||
pad.x1 = x1
|
||||
pad.y1 = y1
|
||||
pad.x2 = x2
|
||||
pad.y2 = y2
|
||||
pad.x = x
|
||||
pad.y = y
|
||||
pad.width = width
|
||||
pad.height = height
|
||||
pad.thickness = thickness
|
||||
pad.clearance = clearance
|
||||
pad.soldermask = soldermask
|
||||
|
|
Loading…
Reference in New Issue