mirror of
https://github.com/konvajs/konva.git
synced 2026-01-05 09:04:40 +08:00
Fix for Scientific Notation bug in Path
This commit is contained in:
@@ -130,6 +130,7 @@ Kinetic.Path = Kinetic.Shape.extend({
|
|||||||
str = str.replace(new RegExp(',-', 'g'), '-');
|
str = str.replace(new RegExp(',-', 'g'), '-');
|
||||||
// add commas so that it's easy to split
|
// add commas so that it's easy to split
|
||||||
str = str.replace(new RegExp('-', 'g'), ',-');
|
str = str.replace(new RegExp('-', 'g'), ',-');
|
||||||
|
str = str.replace(new RegExp('e,-', 'g'), 'e-');
|
||||||
var p = str.split(',');
|
var p = str.split(',');
|
||||||
if(p.length > 0 && p[0] === '') {
|
if(p.length > 0 && p[0] === '') {
|
||||||
p.shift();
|
p.shift();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user