kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
20 lines (18 loc) • 2.41 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createEffect = createEffect;
var _constants = require("@kepler.gl/constants");
var _lightingEffect = _interopRequireDefault(require("./lighting-effect"));
var _postProcessingEffect = _interopRequireDefault(require("./post-processing-effect"));
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
function createEffect(params) {
if ((params === null || params === void 0 ? void 0 : params.type) === _constants.LIGHT_AND_SHADOW_EFFECT.type) {
return new _lightingEffect["default"](params);
}
return new _postProcessingEffect["default"](params);
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfY29uc3RhbnRzIiwicmVxdWlyZSIsIl9saWdodGluZ0VmZmVjdCIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJfcG9zdFByb2Nlc3NpbmdFZmZlY3QiLCJjcmVhdGVFZmZlY3QiLCJwYXJhbXMiLCJ0eXBlIiwiTElHSFRfQU5EX1NIQURPV19FRkZFQ1QiLCJMaWdodGluZ0VmZmVjdCIsIlBvc3RQcm9jZXNzRWZmZWN0Il0sInNvdXJjZXMiOlsiLi4vc3JjL3V0aWxzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIFNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBNSVRcbi8vIENvcHlyaWdodCBjb250cmlidXRvcnMgdG8gdGhlIGtlcGxlci5nbCBwcm9qZWN0XG5cbmltcG9ydCB7RWZmZWN0IGFzIEVmZmVjdEludGVyZmFjZSwgRWZmZWN0UHJvcHNQYXJ0aWFsfSBmcm9tICdAa2VwbGVyLmdsL3R5cGVzJztcbmltcG9ydCB7TElHSFRfQU5EX1NIQURPV19FRkZFQ1R9IGZyb20gJ0BrZXBsZXIuZ2wvY29uc3RhbnRzJztcblxuaW1wb3J0IExpZ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