// 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.ts'; import type {Color, Formatted, Padding, NumberArray, ColorArray, ResolvedImage, VariableAnchorOffsetCollection, ProjectionDefinitionSpecification} from '@maplibre/maplibre-gl-style-spec'; import {StylePropertySpecification} from '@maplibre/maplibre-gl-style-spec'; export type RasterPaintProps = { "raster-opacity": DataConstantProperty, "raster-hue-rotate": DataConstantProperty, "raster-brightness-min": DataConstantProperty, "raster-brightness-max": DataConstantProperty, "raster-saturation": DataConstantProperty, "raster-contrast": DataConstantProperty, "resampling": DataConstantProperty<"linear" | "nearest">, "raster-resampling": DataConstantProperty<"linear" | "nearest">, "raster-fade-duration": DataConstantProperty, }; export type RasterPaintPropsPossiblyEvaluated = { "raster-opacity": number, "raster-hue-rotate": number, "raster-brightness-min": number, "raster-brightness-max": number, "raster-saturation": number, "raster-contrast": number, "resampling": "linear" | "nearest", "raster-resampling": "linear" | "nearest", "raster-fade-duration": number, }; let paint: Properties; const getPaint = (): Properties => paint = paint || new Properties({ "raster-opacity": new DataConstantProperty(styleSpec["paint_raster"]["raster-opacity"] as any as StylePropertySpecification, "raster-opacity"), "raster-hue-rotate": new DataConstantProperty(styleSpec["paint_raster"]["raster-hue-rotate"] as any as StylePropertySpecification, "raster-hue-rotate"), "raster-brightness-min": new DataConstantProperty(styleSpec["paint_raster"]["raster-brightness-min"] as any as StylePropertySpecification, "raster-brightness-min"), "raster-brightness-max": new DataConstantProperty(styleSpec["paint_raster"]["raster-brightness-max"] as any as StylePropertySpecification, "raster-brightness-max"), "raster-saturation": new DataConstantProperty(styleSpec["paint_raster"]["raster-saturation"] as any as StylePropertySpecification, "raster-saturation"), "raster-contrast": new DataConstantProperty(styleSpec["paint_raster"]["raster-contrast"] as any as StylePropertySpecification, "raster-contrast"), "resampling": new DataConstantProperty(styleSpec["paint_raster"]["resampling"] as any as StylePropertySpecification, "resampling"), "raster-resampling": new DataConstantProperty(styleSpec["paint_raster"]["raster-resampling"] as any as StylePropertySpecification, "raster-resampling"), "raster-fade-duration": new DataConstantProperty(styleSpec["paint_raster"]["raster-fade-duration"] as any as StylePropertySpecification, "raster-fade-duration"), }); export default ({ get paint(): Properties { return getPaint() } });