// 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 FillLayoutProps = { "fill-sort-key": DataDrivenProperty, }; export type FillLayoutPropsPossiblyEvaluated = { "fill-sort-key": PossiblyEvaluatedPropertyValue, }; let layout: Properties; const getLayout = (): Properties => layout = layout || new Properties({ "fill-sort-key": new DataDrivenProperty(styleSpec["layout_fill"]["fill-sort-key"] as any as StylePropertySpecification, "fill-sort-key"), }); export type FillPaintProps = { "fill-antialias": DataConstantProperty, "fill-opacity": DataDrivenProperty, "fill-layer-opacity": DataConstantProperty, "fill-color": DataDrivenProperty, "fill-outline-color": DataDrivenProperty, "fill-translate": DataConstantProperty<[number, number]>, "fill-translate-anchor": DataConstantProperty<"map" | "viewport">, "fill-pattern": CrossFadedDataDrivenProperty, }; export type FillPaintPropsPossiblyEvaluated = { "fill-antialias": boolean, "fill-opacity": PossiblyEvaluatedPropertyValue, "fill-layer-opacity": number, "fill-color": PossiblyEvaluatedPropertyValue, "fill-outline-color": PossiblyEvaluatedPropertyValue, "fill-translate": [number, number], "fill-translate-anchor": "map" | "viewport", "fill-pattern": PossiblyEvaluatedPropertyValue>, }; let paint: Properties; const getPaint = (): Properties => paint = paint || new Properties({ "fill-antialias": new DataConstantProperty(styleSpec["paint_fill"]["fill-antialias"] as any as StylePropertySpecification, "fill-antialias"), "fill-opacity": new DataDrivenProperty(styleSpec["paint_fill"]["fill-opacity"] as any as StylePropertySpecification, "fill-opacity"), "fill-layer-opacity": new DataConstantProperty(styleSpec["paint_fill"]["fill-layer-opacity"] as any as StylePropertySpecification, "fill-layer-opacity"), "fill-color": new DataDrivenProperty(styleSpec["paint_fill"]["fill-color"] as any as StylePropertySpecification, "fill-color"), "fill-outline-color": new DataDrivenProperty(styleSpec["paint_fill"]["fill-outline-color"] as any as StylePropertySpecification, "fill-outline-color"), "fill-translate": new DataConstantProperty(styleSpec["paint_fill"]["fill-translate"] as any as StylePropertySpecification, "fill-translate"), "fill-translate-anchor": new DataConstantProperty(styleSpec["paint_fill"]["fill-translate-anchor"] as any as StylePropertySpecification, "fill-translate-anchor"), "fill-pattern": new CrossFadedDataDrivenProperty(styleSpec["paint_fill"]["fill-pattern"] as any as StylePropertySpecification, "fill-pattern"), }); export default ({ get paint(): Properties { return getPaint() }, get layout(): Properties { return getLayout() } });