Hey Stephen, So, hate to do this, but Path Math is still throwing the same error for me with the updated Path Math code. Here's the function I'm calling PathMath.tosegments from: mapObjects = function(obj,type){
var colStart,colEnd,rowStart,rowEnd,x,y,
pageID = obj.get('pageid');
colStart=Math.floor((obj.get('left')-obj.get('width')/2)/70);
colEnd=Math.ceil((obj.get('left')+obj.get('width')/2)/70);
rowStart=Math.floor((obj.get('top')-obj.get('height')/2)/70);
rowEnd=Math.ceil((obj.get('top')+obj.get('height')/2)/70);
for(y=_.clone(rowStart);y<rowEnd;y++){
for(x=_.clone(colStart);x<colEnd;x++){
maps[pageID][x+'X'+y]=maps[pageID][y][x]||{};
maps[pageID][x+'X'+y]['object']=maps[pageID][y][x]['object']||[];
maps[pageID][x+'X'+y]['object'].push(obj.id);
maps[pageID][x+'X'+y]['x']=x;
maps[pageID][x+'X'+y]['y']=y;
}
}
}, Ignore this, had an incorrect declaration in there that just resulted in a very similar error.