adapt pad creation arguments to new format

This commit is contained in:
King Kévin 2015-09-02 10:03:14 +02:00
parent 608f4f580a
commit f0acef68ff
1 changed files with 5 additions and 5 deletions

View File

@ -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