Canvas:JavaScript未捕获错误:INDEX_SIZE_ERR:DOM异常1 [英] Canvas: JavaScript Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
问题描述
它可以在firefox中使用,但不能在google chrome。互联网浏览器也有问题,但是使用HTML5 Canvas时给出的很多。
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.
无论如何我试图找出为什么它会抛出错误:
Uncaught错误:INDEX_SIZE_ERR:DOM异常1
Anyways I'm trying to figure out why it throws the error: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
当数组清楚地包含所有这些元素时,我甚至记录了它们的大小,并表示为100。
When the arrays clearly have all those elements, I even logged their size and it says 100.
任何帮助/指导都将非常感谢。
Any help/guidance would be greatly appreciated.
推荐答案
Zneak有答案, 。
Zneak has the answer right, I just fixed it.
我没有早期进行径向边界测试...
Canvas不喜欢它,如果你有一个负半径:-)。
I wasn't doing the radial boundary testing early enough... Canvas doesn't like it if you have a negative radius :-).
感谢zneak!
这篇关于Canvas:JavaScript未捕获错误:INDEX_SIZE_ERR:DOM异常1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!