From 54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 28 Dec 2012 00:17:04 +0100 Subject: Added image size as arguments --- src/container.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/container.js b/src/container.js index 74f28c2..9e73758 100644 --- a/src/container.js +++ b/src/container.js @@ -87,8 +87,9 @@ SVG.Container = { return e; }, - image: function(s) { - var e = new SVG.Image().load(s); + image: function(s, w, h) { + w = w != null ? w : 100; + var e = new SVG.Image().load(s).size(w, h != null ? h : w); this.add(e); return e; -- cgit v1.2.3