mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Merge branch 'master' of https://github.com/paperjs/paper.js
* 'master' of https://github.com/paperjs/paper.js: Fix regression in importing SVG viewBox.
This commit is contained in:
commit
ca2bfb8cab
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ new function() {
|
|||
// TODO: implement preserveAspectRatio attribute
|
||||
// viewBox will be applied both to the group that's created for the
|
||||
// content in Symbol.definition, and the Symbol itself.
|
||||
var rect = Rectangle.create.apply(this, convertValue(value, 'array')),
|
||||
var rect = new Rectangle(convertValue(value, 'array')),
|
||||
size = getSize(node, 'width', 'height', true);
|
||||
if (item instanceof Group) {
|
||||
// This is either a top-level svg node, or the container for a
|
||||
|
|
Loading…
Reference in a new issue