Skip to content

Commit

Permalink
fix: remove svg from shape property (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
shikanime authored and manekinekko committed Apr 1, 2019
1 parent 7a72623 commit d435d88
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 568 deletions.
14 changes: 6 additions & 8 deletions packages/sketchapp-parser/src/lib/sketch-style-parser.service.ts
Expand Up @@ -194,18 +194,16 @@ export class SketchStyleParserService {
};

case 'shapePath':
return parent._class !== 'shapeGroup' ? {
shape: this.transformShapeSolid(layer, {
return parent._class !== 'shapeGroup'
? this.transformShapeSolid(layer, {
...this.transformFills(layer.style),
})
} : {};
: {};

case 'shapeGroup':
return {
shape: this.transformShapeGroup(layer, {
...this.transformFills(layer.style),
})
};
return this.transformShapeGroup(layer, {
...this.transformFills(layer.style),
});

case 'triangle':
return this.transformTriangleSolid(layer, {
Expand Down

0 comments on commit d435d88

Please sign in to comment.