diff --git a/index.js b/index.js index f5c487f00..99334d49e 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,16 @@ import runSetup from './src/setup'; import setupOptions from './src/options'; import setupAPI from './src/api'; import * as Constants from './src/constants'; +import * as CommonSelectors from './src/lib/common_selectors'; +import constrainFeatureMovement from './src/lib/constrain_feature_movement'; +import createSupplementaryPoints from './src/lib/create_supplementary_points'; +import createVertex from './src/lib/create_vertex'; +import doubleClickZoom from './src/lib/double_click_zoom'; +import featuresAt from './src/lib/features_at'; +import isEventAtCoordinates from './src/lib/is_event_at_coordinates'; +import mouseEventPoint from './src/lib/mouse_event_point'; +import moveFeatures from './src/lib/move_features'; +import StringSet from './src/lib/string_set'; const setupDraw = function(options, api) { options = setupOptions(options); @@ -30,4 +40,18 @@ function MapboxDraw(options) { import modes from './src/modes/index'; MapboxDraw.modes = modes; +export { + Constants, + CommonSelectors, + constrainFeatureMovement, + createSupplementaryPoints, + createVertex, + doubleClickZoom, + featuresAt, + isEventAtCoordinates, + mouseEventPoint, + moveFeatures, + StringSet +}; + export default MapboxDraw;