Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Also getting the paths from SVGDefs elements
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+5
−0
framer/SVG.coffee
|
@@ -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) -> |
|
|