Skip to content

Commit

Permalink
Also getting the paths from SVGDefs elements
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Jan 15, 2018
1 parent a0030c0 commit 42cc2a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framer/SVG.coffee
Expand Up @@ -56,6 +56,11 @@ class exports.SVG
children.push(path)
if isTarget then targets[element.id] = path
continue
if element instanceof SVGDefsElement
defsResult = @constructSVGElements(root, element.childNodes, PathClass, GroupClass)
_.extend targets, defsResult.targets
children = children.concat(defsResult.children)
continue
return {targets, children}

@isPath: (path) ->
Expand Down

0 comments on commit 42cc2a3

Please sign in to comment.