Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Canvas: JavaScript Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 [closed]

The site is: http://www.clubloc.com/

And it works in firefox but not in google chrome. Internet explorer also has problems but thats pretty much a given when using HTML5 Canvas.

Anyways I'm trying to figure out why it throws the error: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

When the arrays clearly have all those elements, I even logged their size and it says 100.

Any help/guidance would be greatly appreciated.

like image 611
Travis Avatar asked Dec 28 '22 23:12

Travis


1 Answers

Zneak has the answer right, I just fixed it.

I wasn't doing the radial boundary testing early enough... Canvas doesn't like it if you have a negative radius :-).

Thanks zneak!

like image 142
Travis Avatar answered Dec 31 '22 14:12

Travis