Change bitwise or assignment to boolean assignment
Because `tsc` does not like using bitwise operations on booleans.
This commit is contained in:
@@ -237,12 +237,12 @@ class Triangulation {
|
|||||||
if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
|
if (this.targetProj_.isGlobal() && this.targetWorldWidth_) {
|
||||||
const targetQuadExtent = boundingExtent([a, b, c, d]);
|
const targetQuadExtent = boundingExtent([a, b, c, d]);
|
||||||
const targetCoverageX = getWidth(targetQuadExtent) / this.targetWorldWidth_;
|
const targetCoverageX = getWidth(targetQuadExtent) / this.targetWorldWidth_;
|
||||||
needsSubdivision |=
|
needsSubdivision = targetCoverageX > MAX_TRIANGLE_WIDTH ||
|
||||||
targetCoverageX > MAX_TRIANGLE_WIDTH;
|
needsSubdivision;
|
||||||
}
|
}
|
||||||
if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {
|
if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {
|
||||||
needsSubdivision |=
|
needsSubdivision = sourceCoverageX > MAX_TRIANGLE_WIDTH ||
|
||||||
sourceCoverageX > MAX_TRIANGLE_WIDTH;
|
needsSubdivision;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user