提交 10cfeb3d 编写于 作者: L Lazar Laszlo

Corrected Length to length

上级 7080fbc1
......@@ -31,7 +31,7 @@ GridSampler.checkAndNudgePoints=function( image, points)
var height = qrcode.height;
// Check and nudge points from start until we see some that are OK:
var nudged = true;
for (var offset = 0; offset < points.Length && nudged; offset += 2)
for (var offset = 0; offset < points.length && nudged; offset += 2)
{
var x = Math.floor (points[offset]);
var y = Math.floor( points[offset + 1]);
......@@ -63,7 +63,7 @@ GridSampler.checkAndNudgePoints=function( image, points)
}
// Check and nudge points from end:
nudged = true;
for (var offset = points.Length - 2; offset >= 0 && nudged; offset -= 2)
for (var offset = points.length - 2; offset >= 0 && nudged; offset -= 2)
{
var x = Math.floor( points[offset]);
var y = Math.floor( points[offset + 1]);
......@@ -149,4 +149,4 @@ GridSampler.sampleGridx=function( image, dimension, p1ToX, p1ToY, p2ToX, p2
var transform = PerspectiveTransform.quadrilateralToQuadrilateral(p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY, p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY);
return GridSampler.sampleGrid3(image, dimension, transform);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册