Skip to content

Commit

Permalink
fixes #66
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Mar 4, 2017
1 parent 50e694e commit 1d47cef
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/app/scripts/import/SvgLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,21 @@ export function loadVectorLayerFromSvgString(svgString: string): VectorLayer {
('fillColor' in context) ? ColorUtil.svgToAndroidColor(context.fillColor) : '#ff000000';
const strokeColor =
('strokeColor' in context) ? ColorUtil.svgToAndroidColor(context.strokeColor) : undefined;
const fillAlpha = ('fillAlpha' in context) ? context.fillAlpha : 1;
const strokeWidth = ('strokeWidth' in context) ? context.strokeWidth : 1;
const strokeAlpha = ('strokeAlpha' in context) ? context.strokeAlpha : 1;
const strokeMiterLimit = ('strokeMiterLimit' in context) ? context.strokeMiterLimit : 4;
return new PathLayer(
makeFinalNodeIdFn(node, 'path'),
pathData,
fillColor,
('fillAlpha' in context) ? context.fillAlpha : undefined,
fillAlpha,
strokeColor,
('strokeAlpha' in context) ? context.strokeAlpha : undefined,
context.strokeWidth || undefined,
context.strokeLinecap || undefined,
context.strokeLinejoin || undefined,
context.strokeMiterLimit || undefined,
strokeAlpha,
strokeWidth,
context.strokeLinecap || 'butt',
context.strokeLinejoin || 'miter',
strokeMiterLimit,
);
}

Expand Down

0 comments on commit 1d47cef

Please sign in to comment.