/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
///
import { HandlerFunction, JsonObject, JsonValue, QueryFormData } from '@superset-ui/core';
import { PolygonLayer } from '@deck.gl/layers';
import getPointsFromPolygon from '../../utils/getPointsFromPolygon';
import { Viewport } from '../../utils/fitViewport';
import { TooltipProps } from '../../components/Tooltip';
export declare function getLayer(formData: PolygonFormData, payload: JsonObject, onAddFilter: HandlerFunction, setTooltip: (tooltip: TooltipProps['tooltip']) => void, selected: JsonObject[], onSelect: (value: JsonValue) => void): PolygonLayer boolean;
onHover: (o: JsonObject) => boolean;
pickable: boolean;
id: `path-layer-${any}`;
data: any[];
filled: any;
stroked: any;
getPolygon: typeof getPointsFromPolygon;
getFillColor: (d: JsonObject) => [number, number, number, number];
getLineColor: [any, any, any, number];
getLineWidth: any;
extruded: any;
lineWidthUnits: any;
getElevation: (d: any) => any;
elevationScale: any;
fp64: boolean;
}>;
export type PolygonFormData = QueryFormData & {
break_points: string[];
num_buckets: string;
linear_color_scheme: string | string[];
opacity: number;
};
export type DeckGLPolygonProps = {
formData: PolygonFormData;
payload: JsonObject;
setControlValue: (control: string, value: JsonValue) => void;
viewport: Viewport;
onAddFilter: HandlerFunction;
width: number;
height: number;
};
declare const _default: import("react").MemoExoticComponent<(props: DeckGLPolygonProps) => import("react").JSX.Element>;
export default _default;
//# sourceMappingURL=Polygon.d.ts.map