mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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)
|
if (!transform)
|
||||||
break;
|
break;
|
||||||
// Command come before the '(', values after
|
// Command come before the '(', values after
|
||||||
var parts = transform.split('('),
|
var parts = transform.split(/\(\s*/),
|
||||||
command = parts[0],
|
command = parts[0],
|
||||||
v = parts[1].split(/[\s,]+/g);
|
v = parts[1].split(/[\s,]+/g);
|
||||||
// Convert values to floats
|
// Convert values to floats
|
||||||
|
|
Loading…
Reference in a new issue