mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Apply further suggestions from code review.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user