mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
SVG Importer: ignore viewBox for svg element for now.
This commit is contained in:
parent
a1e38ee52e
commit
485bc83b65
1 changed files with 3 additions and 1 deletions
|
@ -434,7 +434,9 @@ new function() {
|
|||
case 'viewBox':
|
||||
var values = convertStringTo(value, 'array'),
|
||||
rectangle = Rectangle.create.apply(this, values);
|
||||
(item.getDefinition ? item.getDefinition() : item).setBounds(rectangle);
|
||||
// TODO: how to deal with the svg element?
|
||||
if (!name == 'svg')
|
||||
(item.getDefinition ? item.getDefinition() : item).setBounds(rectangle);
|
||||
default:
|
||||
// Not supported yet.
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue