merri-ment/lazy-line-painter

TypeError: n is undefined

EvilDonkeyLondon opened this issue · 0 comments

I get the error TypeError: n is undefined in Firefox and Uncaught TypeError: Cannot read property 'x' of undefined in Chrome.

This is what I'm using

var pathObj = {
"move-down": {
"strokepath": [
{
"path": "M0.9,22.9C0.9,10.7,10.8,0.8,23,0.8c12.2,0,22.1,9.9,22.1,22.1S35.2,45,23,45S0.9,35.1,0.9,22.9",
"duration": 600
},
{
"path": "M0.9,22.9C0.9,22.9,0.9,22.9,0.9,22.9",
"duration": 600
},
{
"path": "M33.2,18.3l-10,10l-10-10c-0.3-0.3-0.8-0.3-1.1,0s-0.3,0.8,0,1.1L22.7,30c0.1,0.1,0.3,0.2,0.5,0.2 s0.4-0.1,0.5-0.2l10.6-10.6c0.3-0.3,0.3-0.8,0-1.1C34,18,33.5,18,33.2,18.3z",
"duration": 600
}
],
"dimensions": {
"width": 46,
"height": 46
}
}
};

$('#move-down').lazylinepainter({
    "svgData": pathObj,
    "strokeWidth": 2,
    "strokeColor": "#e09b99"
}).lazylinepainter('paint');

What is wrong with my code?