SVG parser: Add num() wrapper for <rect> attributes.
This commit is contained in:
parent
a9576e8c8d
commit
2e6ba5f8c0
1 changed files with 2 additions and 2 deletions
|
@ -413,9 +413,9 @@ var parsesvg = func(group, path, options = nil)
|
||||||
|
|
||||||
var cfg = {};
|
var cfg = {};
|
||||||
if( rx != nil )
|
if( rx != nil )
|
||||||
cfg["border-radius"] = [rx, ry];
|
cfg["border-radius"] = [num(rx), num(ry)];
|
||||||
|
|
||||||
stack[-1].rect(x, y, width, height, cfg);
|
stack[-1].rect(num(x), num(y), num(width), num(height), cfg);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
parsePath(attr['d']);
|
parsePath(attr['d']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue