Apply label baseline hack to Firefox 70+ (close #7044)

This commit is contained in:
Quincy Morgan
2019-11-13 15:36:22 -05:00
parent a397b0c876
commit bc0d83b5cd
+3 -1
View File
@@ -18,7 +18,9 @@ import { utilDisplayName, utilDisplayNameForPath, utilEntitySelector } from '../
export function svgLabels(projection, context) {
var path = d3_geoPath(projection);
var detected = utilDetect();
var baselineHack = (detected.ie || detected.browser.toLowerCase() === 'edge');
var baselineHack = (detected.ie ||
detected.browser.toLowerCase() === 'edge' ||
(detected.browser.toLowerCase() === 'firefox' && detected.version >= 70));
var _rdrawn = new RBush();
var _rskipped = new RBush();
var _textWidthCache = {};