mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +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'), '-');
|
||||
// add commas so that it's easy to split
|
||||
str = str.replace(new RegExp('-', 'g'), ',-');
|
||||
str = str.replace(new RegExp('e,-', 'g'), 'e-');
|
||||
var p = str.split(',');
|
||||
if(p.length > 0 && p[0] === '') {
|
||||
p.shift();
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user