From d5805dc3cdf0694c1c01051818e062540b62dec9 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 19 Jan 2017 19:08:44 +0530 Subject: [PATCH] import textDirection instead of caching first time rtl detection --- modules/svg/labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/svg/labels.js b/modules/svg/labels.js index dfb0ce40e..94811840c 100644 --- a/modules/svg/labels.js +++ b/modules/svg/labels.js @@ -1,6 +1,7 @@ import * as d3 from 'd3'; import _ from 'lodash'; import rbush from 'rbush'; +import { textDirection } from '../util/locale'; import { geoExtent, @@ -355,7 +356,6 @@ export function svgLabels(projection, context) { var coord = projection(entity.loc), margin = 2, - textDirection = detected.textDirection, offset = pointOffsets[textDirection], p = { height: height,