mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Correctly handle white-space before first matrix value when handling transform SVG attribute.
Closes #531.
This commit is contained in:
parent
943034f2c4
commit
7f6bb63683
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ new function() {
|
|||
if (!transform)
|
||||
break;
|
||||
// Command come before the '(', values after
|
||||
var parts = transform.split('('),
|
||||
var parts = transform.split(/\(\s*/),
|
||||
command = parts[0],
|
||||
v = parts[1].split(/[\s,]+/g);
|
||||
// Convert values to floats
|
||||
|
|
Loading…
Reference in a new issue