Skip to content

Commit d770fce

Browse files
committed
specify none when exporting svg fill color
1 parent 0debebe commit d770fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/scripts/export/SvgSerializer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ function vectorLayerToSvgNode(vl: VectorLayer, destinationNode: HTMLElement, xml
3333
conditionalAttr(node, 'id', layer.id);
3434
conditionalAttr(node, 'd', layer.pathData.getPathString());
3535
if (layer.fillColor) {
36-
// TODO: is it necessary to specify fill 'none'?
3736
conditionalAttr(node, 'fill', ColorUtil.androidToCssColor(layer.fillColor), '');
37+
} else {
38+
conditionalAttr(node, 'fill', 'none');
3839
}
3940
conditionalAttr(node, 'fill-opacity', layer.fillAlpha, 1);
4041
if (layer.strokeColor) {
41-
// TODO: is it necessary to specify stroke 'none'?
4242
conditionalAttr(node, 'stroke', ColorUtil.androidToCssColor(layer.strokeColor), '');
4343
}
4444
conditionalAttr(node, 'stroke-opacity', layer.strokeAlpha, 1);

0 commit comments

Comments
 (0)