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