mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Convert lodah-es and d3 to named imports for core
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import _ from 'lodash';
|
||||
import { coreDifference } from './difference';
|
||||
import _map from 'lodash-es/map';
|
||||
import rbush from 'rbush';
|
||||
|
||||
import { coreDifference } from './difference';
|
||||
|
||||
|
||||
export function coreTree(head) {
|
||||
var rtree = rbush(),
|
||||
@@ -59,7 +60,7 @@ export function coreTree(head) {
|
||||
updateParents(entity, insertions, {});
|
||||
}
|
||||
|
||||
rtree.load(_.map(insertions, entityBBox));
|
||||
rtree.load(_map(insertions, entityBBox));
|
||||
|
||||
return tree;
|
||||
};
|
||||
@@ -87,7 +88,7 @@ export function coreTree(head) {
|
||||
insertions[entity.id] = entity;
|
||||
});
|
||||
|
||||
rtree.load(_.map(insertions, entityBBox));
|
||||
rtree.load(_map(insertions, entityBBox));
|
||||
}
|
||||
|
||||
return rtree.search(extent.bbox()).map(function(bbox) {
|
||||
|
||||
Reference in New Issue
Block a user