maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
55 lines (47 loc) • 3.19 kB
text/typescript
// This file is generated. Edit build/generate-style-code.ts, then run 'npm run codegen'.
/* eslint-disable */
import {latest as styleSpec} from '@maplibre/maplibre-gl-style-spec';
import {
Properties,
DataConstantProperty,
DataDrivenProperty,
CrossFadedDataDrivenProperty,
CrossFadedProperty,
ColorRampProperty,
PossiblyEvaluatedPropertyValue,
CrossFaded
} from '../properties';
import type {Color, Formatted, Padding, NumberArray, ColorArray, ResolvedImage, VariableAnchorOffsetCollection} from '@maplibre/maplibre-gl-style-spec';
import {StylePropertySpecification} from '@maplibre/maplibre-gl-style-spec';
export type FillExtrusionPaintProps = {
"fill-extrusion-opacity": DataConstantProperty<number>,
"fill-extrusion-color": DataDrivenProperty<Color>,
"fill-extrusion-translate": DataConstantProperty<[number, number]>,
"fill-extrusion-translate-anchor": DataConstantProperty<"map" | "viewport">,
"fill-extrusion-pattern": CrossFadedDataDrivenProperty<ResolvedImage>,
"fill-extrusion-height": DataDrivenProperty<number>,
"fill-extrusion-base": DataDrivenProperty<number>,
"fill-extrusion-vertical-gradient": DataConstantProperty<boolean>,
};
export type FillExtrusionPaintPropsPossiblyEvaluated = {
"fill-extrusion-opacity": number,
"fill-extrusion-color": PossiblyEvaluatedPropertyValue<Color>,
"fill-extrusion-translate": [number, number],
"fill-extrusion-translate-anchor": "map" | "viewport",
"fill-extrusion-pattern": PossiblyEvaluatedPropertyValue<CrossFaded<ResolvedImage>>,
"fill-extrusion-height": PossiblyEvaluatedPropertyValue<number>,
"fill-extrusion-base": PossiblyEvaluatedPropertyValue<number>,
"fill-extrusion-vertical-gradient": boolean,
};
let paint: Properties<FillExtrusionPaintProps>;
const getPaint = () => paint = paint || new Properties({
"fill-extrusion-opacity": new DataConstantProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-opacity"] as any as StylePropertySpecification),
"fill-extrusion-color": new DataDrivenProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-color"] as any as StylePropertySpecification),
"fill-extrusion-translate": new DataConstantProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-translate"] as any as StylePropertySpecification),
"fill-extrusion-translate-anchor": new DataConstantProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-translate-anchor"] as any as StylePropertySpecification),
"fill-extrusion-pattern": new CrossFadedDataDrivenProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-pattern"] as any as StylePropertySpecification),
"fill-extrusion-height": new DataDrivenProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-height"] as any as StylePropertySpecification),
"fill-extrusion-base": new DataDrivenProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-base"] as any as StylePropertySpecification),
"fill-extrusion-vertical-gradient": new DataConstantProperty(styleSpec["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"] as any as StylePropertySpecification),
});
export default ({ get paint() { return getPaint() } });