mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -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':
|
case 'viewBox':
|
||||||
var values = convertStringTo(value, 'array'),
|
var values = convertStringTo(value, 'array'),
|
||||||
rectangle = Rectangle.create.apply(this, values);
|
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:
|
default:
|
||||||
// Not supported yet.
|
// Not supported yet.
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue