// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import {MapView, FirstPersonView, MapController} from '@deck.gl/core'; // Rename so that unused constants are not stripped at end of build import {GL as GLConstants} from '@luma.gl/core/webgl-constants'; import * as deckglLayers from '@deck.gl/layers'; export const log = console; // eslint-disable-line export function calculateRadius({base, exponent}) { return Math.pow(base, exponent); } export const JSON_CONFIGURATION = { log, // a map of all layers that should be exposes as JSONLayers classes: Object.assign({MapView, FirstPersonView}, deckglLayers), // Functions that should be executed by JSON converter functions: Object.assign({calculateRadius}), // Enumerations that should be available to JSON parser // Will be resolved as `.` enumerations: { GL: GLConstants }, constants: { MapController } };