Apply further suggestions from code review.

This commit is contained in:
teymour-aldridge
2020-10-16 17:26:10 +01:00
parent b966ac318e
commit 444c2c2c15
2 changed files with 6 additions and 10 deletions
+6 -6
View File
@@ -2,14 +2,14 @@ import {median as d3_median} from 'd3-array';
import {
polygonArea as d3_polygonArea,
polygonCentroid as d3_polygonCentroid,
polygonHull as d3_polygonHull
polygonHull as d3_polygonHull,
polygonCentroid as d3_polygonCentroid
} from 'd3-polygon';
import {geoVecInterp, geoVecLength} from '../geo';
import {osmNode} from '../osm/node';
import {utilArrayUniq} from '../util';
import {geoVecLengthSquare} from '../geo/vector';
import { geoVecInterp, geoVecLength } from '../geo';
import { osmNode } from '../osm/node';
import { utilArrayUniq } from '../util';
import { geoVecLengthSquare } from '../geo/vector';
export function actionCircularize(wayId, projection, maxAngle) {
-4
View File
@@ -74,8 +74,6 @@ export function uiShortcuts(context) {
.append('span')
.html(function (d) { return t.html(d.text); });
tabs.merge(tabsEnter);
// Update
wrapper.selectAll('.tab')
.classed('active', function (d, i) {
@@ -234,8 +232,6 @@ export function uiShortcuts(context) {
.html(function (d) { return d.text ? t.html(d.text) : '\u00a0'; });
shortcuts.merge(shortcutsEnter);
// Update
wrapper.selectAll('.shortcut-tab')
.style('display', function (d, i) {