mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
SVG Importer: fillcolor of path items should default to black.
This commit is contained in:
parent
485bc83b65
commit
56c90839ab
1 changed files with 3 additions and 0 deletions
|
@ -350,6 +350,9 @@ new function() {
|
||||||
var name = svg.style[i];
|
var name = svg.style[i];
|
||||||
item = applyAttribute(item, svg, name, svg.style[Base.camelize(name)]);
|
item = applyAttribute(item, svg, name, svg.style[Base.camelize(name)]);
|
||||||
}
|
}
|
||||||
|
// Path items receive a black fill color by default:
|
||||||
|
if (item instanceof Path && !item.getFillColor())
|
||||||
|
item.setFillColor(new GrayColor(1));
|
||||||
for (var i = 0, l = svg.attributes.length; i < l; i++) {
|
for (var i = 0, l = svg.attributes.length; i < l; i++) {
|
||||||
var attr = svg.attributes[i];
|
var attr = svg.attributes[i];
|
||||||
item = applyAttribute(item, svg, attr.name, attr.value);
|
item = applyAttribute(item, svg, attr.name, attr.value);
|
||||||
|
|
Loading…
Reference in a new issue