Change bitwise or assignment to boolean assignment

Because `tsc` does not like using bitwise operations on booleans.
This commit is contained in:
William Wall
2018-09-19 12:57:02 -06:00
parent d44ba929ab
commit a4aaab5e32

View File

@@ -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;
} }
} }