Permalink
Browse files

Also getting the paths from SVGDefs elements

  • Loading branch information...
nvh committed Jan 15, 2018
1 parent a0030c0 commit 42cc2a37238c32a7132f6c943fe604b7a2138bbd
Showing with 5 additions and 0 deletions.
  1. +5 −0 framer/SVG.coffee
View
@@ -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) ->

0 comments on commit 42cc2a3

Please sign in to comment.