// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. /* eslint-disable max-len */ // Intialize globals, extract version export {VERSION} from './lib/init'; // Import shaderlib to make sure shader modules are initialized export {getShaderAssembler} from './shaderlib/index'; // Core Library export {COORDINATE_SYSTEM, OPERATION, UNIT} from './lib/constants'; // Effects export {default as LightingEffect} from './effects/lighting/lighting-effect'; export {AmbientLight} from './effects/lighting/ambient-light'; export {DirectionalLight} from './effects/lighting/directional-light'; export {PointLight} from './effects/lighting/point-light'; export {default as _CameraLight} from './effects/lighting/camera-light'; export {default as _SunLight} from './effects/lighting/sun-light'; export {default as PostProcessEffect} from './effects/post-process-effect'; // Passes export {default as _LayersPass} from './passes/layers-pass'; export {default as _PickLayersPass} from './passes/pick-layers-pass'; // Experimental Pure JS (non-React) bindings export {default as Deck} from './lib/deck'; export {default as LayerManager} from './lib/layer-manager'; export {default as Attribute} from './lib/attribute/attribute'; export {default as AttributeManager} from './lib/attribute/attribute-manager'; export {default as Layer} from './lib/layer'; export {default as CompositeLayer} from './lib/composite-layer'; export {default as DeckRenderer} from './lib/deck-renderer'; // Viewports export {default as Viewport} from './viewports/viewport'; export {default as WebMercatorViewport} from './viewports/web-mercator-viewport'; export {default as _GlobeViewport} from './viewports/globe-viewport'; export {default as OrbitViewport} from './viewports/orbit-viewport'; export {default as OrthographicViewport} from './viewports/orthographic-viewport'; export {default as FirstPersonViewport} from './viewports/first-person-viewport'; // Shader modules export { picking, project, project32, gouraudLighting, phongLighting, shadow } from './shaderlib/index'; export {default as View} from './views/view'; export {default as MapView} from './views/map-view'; export {default as FirstPersonView} from './views/first-person-view'; export {default as OrbitView} from './views/orbit-view'; export {default as OrthographicView} from './views/orthographic-view'; export {default as _GlobeView} from './views/globe-view'; // Controllers export {default as Controller} from './controllers/controller'; export {default as MapController} from './controllers/map-controller'; export {default as _GlobeController} from './controllers/globe-controller'; export {default as FirstPersonController} from './controllers/first-person-controller'; export {default as OrbitController} from './controllers/orbit-controller'; export {default as OrthographicController} from './controllers/orthographic-controller'; // Extensions interface export {default as LayerExtension} from './lib/layer-extension'; // Transitions export {TRANSITION_EVENTS} from './controllers/transition-manager'; export {default as TransitionInterpolator} from './transitions/transition-interpolator'; export {default as LinearInterpolator} from './transitions/linear-interpolator'; export {default as FlyToInterpolator} from './transitions/fly-to-interpolator'; // Layer utilities export {default as log} from './utils/log'; export {default as assert} from './utils/assert'; export {createIterable} from './utils/iterable-utils'; export {fp64LowPart} from './utils/math-utils'; export {default as Tesselator} from './utils/tesselator'; // Export? move to luma.gl or math.gl? // Experimental utilities export {fillArray as _fillArray, flatten as _flatten} from './utils/flatten'; // Export? move to luma.gl or math.gl? export {count as _count} from './utils/count'; export {deepEqual as _deepEqual} from './utils/deep-equal'; export {default as _memoize} from './utils/memoize'; export {mergeShaders as _mergeShaders} from './utils/shader'; export {compareProps as _compareProps} from './lifecycle/props'; // Types export type {CoordinateSystem} from './lib/constants'; export type {MapViewState, MapViewProps} from './views/map-view'; export type {FirstPersonViewState, FirstPersonViewProps} from './views/first-person-view'; export type {OrbitViewState, OrbitViewProps} from './views/orbit-view'; export type {OrthographicViewState, OrthographicViewProps} from './views/orthographic-view'; export type {GlobeViewState, GlobeViewProps} from './views/globe-view'; export type {ChangeFlags} from './lib/layer-state'; export type {LayersList, LayerContext} from './lib/layer-manager'; export type {ViewStateMap} from './lib/view-manager'; export type {UpdateParameters} from './lib/layer'; export type {DeckProps} from './lib/deck'; export type { LayerProps, CompositeLayerProps, Accessor, AccessorContext, AccessorFunction, LayerData, LayerDataSource, Unit, Operation, Position, Color, TextureSource, Material } from './types/layer-props'; export type {FilterContext} from './passes/layers-pass'; export type {PickingInfo, GetPickingInfoParams} from './lib/picking/pick-info'; export type {ConstructorOf as _ConstructorOf} from './types/types'; export type {BinaryAttribute} from './lib/attribute/attribute'; export type {Effect, EffectContext, PreRenderOptions, PostRenderOptions} from './lib/effect'; export type {PickingUniforms, ProjectUniforms} from './shaderlib/index'; export type {DefaultProps} from './lifecycle/prop-types'; export type {LayersPassRenderOptions} from './passes/layers-pass'; export type {Widget, WidgetPlacement} from './lib/widget-manager'; export type {LightingEffectProps} from './effects/lighting/lighting-effect'; export type {AmbientLightOptions} from './effects/lighting/ambient-light'; export type {DirectionalLightOptions} from './effects/lighting/directional-light'; export type {PointLightOptions} from './effects/lighting/point-light'; export type {SunLightOptions} from './effects/lighting/sun-light'; export type { ControllerProps, ViewStateChangeParameters, InteractionState } from './controllers/controller'; // INTERNAL, DO NOT USE // @deprecated internal do not use export {default as _Component} from './lifecycle/component'; // @deprecated internal do not use export {default as _ComponentState} from './lifecycle/component-state';