svg command can now specify an ID

This commit is contained in:
Andy Meneely
2014-07-23 09:35:10 -04:00
parent a59a3a5790
commit 9784d928d1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -27,10 +27,10 @@ module Squib
# @param width: the pixel width that the image should scale to. SVG scaling is done with vectors, so the scaling should be smooth. When set to `:native`, uses the DPI and units of the loaded SVG document.
# @param height: the pixel width that the image should scale to. SVG scaling is done with vectors, so the scaling should be smooth. When set to `:native`, uses the DPI and units of the loaded SVG document.
# @api public
def svg(range: :all, file: nil, x: 0, y: 0, width: :native, height: :native)
def svg(range: :all, file: nil, id: nil, x: 0, y: 0, width: :native, height: :native)
range = rangeify(range)
file = fileify(file)
range.each{ |i| @cards[i].svg(file, x, y, width, height) }
range.each{ |i| @cards[i].svg(file, id, x, y, width, height) }
end
end