mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-19 17:21:50 +03:00
Fix jshint.
This commit is contained in:
parent
352bfbc3a5
commit
b11edddf68
@ -366,10 +366,10 @@ $.Rect.prototype = {
|
|||||||
var thisSegment = thisSegments[i];
|
var thisSegment = thisSegments[i];
|
||||||
for (var j = 0; j < rectSegments.length; j++) {
|
for (var j = 0; j < rectSegments.length; j++) {
|
||||||
var rectSegment = rectSegments[j];
|
var rectSegment = rectSegments[j];
|
||||||
var point = getIntersection(thisSegment[0], thisSegment[1],
|
var intersect = getIntersection(thisSegment[0], thisSegment[1],
|
||||||
rectSegment[0], rectSegment[1]);
|
rectSegment[0], rectSegment[1]);
|
||||||
if (point) {
|
if (intersect) {
|
||||||
intersectionPoints.push(point);
|
intersectionPoints.push(intersect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -403,8 +403,8 @@ $.Rect.prototype = {
|
|||||||
var maxX = intersectionPoints[0].x;
|
var maxX = intersectionPoints[0].x;
|
||||||
var minY = intersectionPoints[0].y;
|
var minY = intersectionPoints[0].y;
|
||||||
var maxY = intersectionPoints[0].y;
|
var maxY = intersectionPoints[0].y;
|
||||||
for (var i = 1; i < intersectionPoints.length; i++) {
|
for (var k = 1; k < intersectionPoints.length; k++) {
|
||||||
var point = intersectionPoints[i];
|
var point = intersectionPoints[k];
|
||||||
if (point.x < minX) {
|
if (point.x < minX) {
|
||||||
minX = point.x;
|
minX = point.x;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user