Files
iD/modules/index.js
Bryan Housel 4d0ef1bafc Export only the d3 functions we use in tests
(re: #4379)

This trims a bit more off the iD bundle size
2020-02-22 15:07:09 -05:00

39 lines
1.0 KiB
JavaScript

export * from './actions/index';
export * from './behavior/index';
export * from './core/index';
export * from './geo/index';
export * from './modes/index';
export * from './operations/index';
export * from './osm/index';
export * from './presets/index';
export * from './renderer/index';
export * from './services/index';
export * from './svg/index';
export * from './ui/fields/index';
export * from './ui/intro/index';
export * from './ui/panels/index';
export * from './ui/panes/index';
export * from './ui/sections/index';
export * from './ui/settings/index';
export * from './ui/index';
export * from './util/index';
export * from './validations/index';
export let debug = false;
// reexport just what our tests use, see #4379
import * as D3 from 'd3';
export let d3 = {
customEvent: D3.customEvent,
dispatch: D3.dispatch,
event: D3.event,
geoMercator: D3.geoMercator,
geoProjection: D3.geoProjection,
polygonArea: D3.polygonArea,
polygonCentroid: D3.polygonCentroid,
select: D3.select,
selectAll: D3.selectAll,
timerFlush: D3.timerFlush
};