(str, defs)
| 26906 | |
| 26907 | var urlRegex = /url\(\s*#(.*?)\)/; |
| 26908 | function getPaint(str, defs) { |
| 26909 | // if (str === 'none') { |
| 26910 | // return; |
| 26911 | // } |
| 26912 | var urlMatch = defs && str && str.match(urlRegex); |
| 26913 | if (urlMatch) { |
| 26914 | var url = trim(urlMatch[1]); |
| 26915 | var def = defs[url]; |
| 26916 | return def; |
| 26917 | } |
| 26918 | return str; |
| 26919 | } |
| 26920 | |
| 26921 | var transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g; |
| 26922 |
no test coverage detected