maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
61 lines (51 loc) • 2.82 kB
text/typescript
// This file is generated. Edit build/generate-style-code.ts, then run 'npm run codegen'.
/* eslint-disable */
import styleSpec from '../../style-spec/reference/latest';
import {
Properties,
DataConstantProperty,
DataDrivenProperty,
CrossFadedDataDrivenProperty,
CrossFadedProperty,
ColorRampProperty,
PossiblyEvaluatedPropertyValue,
CrossFaded
} from '../properties';
import type Color from '../../style-spec/util/color';
import type Padding from '../../style-spec/util/padding';
import type Formatted from '../../style-spec/expression/types/formatted';
import type ResolvedImage from '../../style-spec/expression/types/resolved_image';
import {StylePropertySpecification} from '../../style-spec/style-spec';
export type RasterPaintProps = {
"raster-opacity": DataConstantProperty<number>,
"raster-hue-rotate": DataConstantProperty<number>,
"raster-brightness-min": DataConstantProperty<number>,
"raster-brightness-max": DataConstantProperty<number>,
"raster-saturation": DataConstantProperty<number>,
"raster-contrast": DataConstantProperty<number>,
"raster-resampling": DataConstantProperty<"linear" | "nearest">,
"raster-fade-duration": DataConstantProperty<number>,
};
export type RasterPaintPropsPossiblyEvaluated = {
"raster-opacity": number,
"raster-hue-rotate": number,
"raster-brightness-min": number,
"raster-brightness-max": number,
"raster-saturation": number,
"raster-contrast": number,
"raster-resampling": "linear" | "nearest",
"raster-fade-duration": number,
};
const paint: Properties<RasterPaintProps> = new Properties({
"raster-opacity": new DataConstantProperty(styleSpec["paint_raster"]["raster-opacity"] as any as StylePropertySpecification),
"raster-hue-rotate": new DataConstantProperty(styleSpec["paint_raster"]["raster-hue-rotate"] as any as StylePropertySpecification),
"raster-brightness-min": new DataConstantProperty(styleSpec["paint_raster"]["raster-brightness-min"] as any as StylePropertySpecification),
"raster-brightness-max": new DataConstantProperty(styleSpec["paint_raster"]["raster-brightness-max"] as any as StylePropertySpecification),
"raster-saturation": new DataConstantProperty(styleSpec["paint_raster"]["raster-saturation"] as any as StylePropertySpecification),
"raster-contrast": new DataConstantProperty(styleSpec["paint_raster"]["raster-contrast"] as any as StylePropertySpecification),
"raster-resampling": new DataConstantProperty(styleSpec["paint_raster"]["raster-resampling"] as any as StylePropertySpecification),
"raster-fade-duration": new DataConstantProperty(styleSpec["paint_raster"]["raster-fade-duration"] as any as StylePropertySpecification),
});
export default ({ paint } as {
paint: Properties<RasterPaintProps>
});