refactor(es modules): remove gloval var lineGen

This commit is contained in:
Azgaar 2022-06-27 01:47:31 +03:00
parent 32d7db765d
commit aa214a7826
17 changed files with 27 additions and 22 deletions

View file

@ -503,7 +503,8 @@ window.BurgsAndStates = (function () {
TIME && console.time("drawStateLabels");
const {cells, features, states} = pack;
const paths = []; // text paths
lineGen.curve(d3.curveBundle.beta(1));
const lineGen = d3.line().curve(d3.curveBundle.beta(1));
const mode = options.stateLabelsMode || "auto";
for (const s of states) {