mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
SVG Importer: more work on Symbol importing.
This commit is contained in:
parent
2cc56c767e
commit
f92e842644
1 changed files with 5 additions and 2 deletions
|
@ -84,7 +84,7 @@ new function() {
|
|||
if (compound && item instanceof CompoundPath) {
|
||||
group.addChildren(item.removeChildren());
|
||||
item.remove();
|
||||
} else {
|
||||
} else if (!(item instanceof Symbol)) {
|
||||
group.addChild(item);
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +421,10 @@ new function() {
|
|||
item.setRampPoint(isPercentage ? value / 100 : value);
|
||||
break;
|
||||
case 'xlink:href':
|
||||
item = definitions[value.substr(1)].clone();
|
||||
var definition = definitions[value.substr(1)];
|
||||
// Use place if we're dealing with a symbol:
|
||||
item = definition.place ? definition.place() : definition.clone();
|
||||
break;
|
||||
default:
|
||||
// Not supported yet.
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue