Skip to content

Commit

Permalink
Ignore <symbol> and <defs> (except <style>) (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Sep 10, 2020
1 parent 5ef5dc8 commit 4ceea03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ function initPattern(globals){
// }

//format all appropriate svg elements
_$svg.find("symbol").remove();
_$svg.find("defs > :not(style)").remove();
var $paths = _$svg.find("path");
var $lines = _$svg.find("line");
var $rects = _$svg.find("rect");
Expand Down

0 comments on commit 4ceea03

Please sign in to comment.