Fix for Scientific Notation bug in Path

This commit is contained in:
Jason Follas
2012-07-12 18:35:51 -04:00
parent 0b1ddbd530
commit e6031e1bf8
2 changed files with 23 additions and 1 deletions

View File

@@ -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