// 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 LineLayoutProps = { "line-cap": DataDrivenProperty<"butt" | "round" | "square">, "line-join": DataDrivenProperty<"bevel" | "round" | "miter">, "line-miter-limit": DataDrivenProperty, "line-round-limit": DataDrivenProperty, "line-sort-key": DataDrivenProperty, }; export type LineLayoutPropsPossiblyEvaluated = { "line-cap": PossiblyEvaluatedPropertyValue<"butt" | "round" | "square">, "line-join": PossiblyEvaluatedPropertyValue<"bevel" | "round" | "miter">, "line-miter-limit": PossiblyEvaluatedPropertyValue, "line-round-limit": PossiblyEvaluatedPropertyValue, "line-sort-key": PossiblyEvaluatedPropertyValue, }; let layout: Properties; const getLayout = (): Properties => layout = layout || new Properties({ "line-cap": new DataDrivenProperty(styleSpec["layout_line"]["line-cap"] as any as StylePropertySpecification, "line-cap"), "line-join": new DataDrivenProperty(styleSpec["layout_line"]["line-join"] as any as StylePropertySpecification, "line-join"), "line-miter-limit": new DataDrivenProperty(styleSpec["layout_line"]["line-miter-limit"] as any as StylePropertySpecification, "line-miter-limit"), "line-round-limit": new DataDrivenProperty(styleSpec["layout_line"]["line-round-limit"] as any as StylePropertySpecification, "line-round-limit"), "line-sort-key": new DataDrivenProperty(styleSpec["layout_line"]["line-sort-key"] as any as StylePropertySpecification, "line-sort-key"), }); export type LinePaintProps = { "line-opacity": DataDrivenProperty, "line-layer-opacity": DataConstantProperty, "line-color": DataDrivenProperty, "line-translate": DataConstantProperty<[number, number]>, "line-translate-anchor": DataConstantProperty<"map" | "viewport">, "line-width": DataDrivenProperty, "line-gap-width": DataDrivenProperty, "line-offset": DataDrivenProperty, "line-blur": DataDrivenProperty, "line-dasharray": CrossFadedDataDrivenProperty, "line-pattern": CrossFadedDataDrivenProperty, "line-gradient": ColorRampProperty, }; export type LinePaintPropsPossiblyEvaluated = { "line-opacity": PossiblyEvaluatedPropertyValue, "line-layer-opacity": number, "line-color": PossiblyEvaluatedPropertyValue, "line-translate": [number, number], "line-translate-anchor": "map" | "viewport", "line-width": PossiblyEvaluatedPropertyValue, "line-gap-width": PossiblyEvaluatedPropertyValue, "line-offset": PossiblyEvaluatedPropertyValue, "line-blur": PossiblyEvaluatedPropertyValue, "line-dasharray": PossiblyEvaluatedPropertyValue>, "line-pattern": PossiblyEvaluatedPropertyValue>, "line-gradient": ColorRampProperty, }; let paint: Properties; const getPaint = (): Properties => paint = paint || new Properties({ "line-opacity": new DataDrivenProperty(styleSpec["paint_line"]["line-opacity"] as any as StylePropertySpecification, "line-opacity"), "line-layer-opacity": new DataConstantProperty(styleSpec["paint_line"]["line-layer-opacity"] as any as StylePropertySpecification, "line-layer-opacity"), "line-color": new DataDrivenProperty(styleSpec["paint_line"]["line-color"] as any as StylePropertySpecification, "line-color"), "line-translate": new DataConstantProperty(styleSpec["paint_line"]["line-translate"] as any as StylePropertySpecification, "line-translate"), "line-translate-anchor": new DataConstantProperty(styleSpec["paint_line"]["line-translate-anchor"] as any as StylePropertySpecification, "line-translate-anchor"), "line-width": new DataDrivenProperty(styleSpec["paint_line"]["line-width"] as any as StylePropertySpecification, "line-width"), "line-gap-width": new DataDrivenProperty(styleSpec["paint_line"]["line-gap-width"] as any as StylePropertySpecification, "line-gap-width"), "line-offset": new DataDrivenProperty(styleSpec["paint_line"]["line-offset"] as any as StylePropertySpecification, "line-offset"), "line-blur": new DataDrivenProperty(styleSpec["paint_line"]["line-blur"] as any as StylePropertySpecification, "line-blur"), "line-dasharray": new CrossFadedDataDrivenProperty(styleSpec["paint_line"]["line-dasharray"] as any as StylePropertySpecification, "line-dasharray"), "line-pattern": new CrossFadedDataDrivenProperty(styleSpec["paint_line"]["line-pattern"] as any as StylePropertySpecification, "line-pattern"), "line-gradient": new ColorRampProperty(styleSpec["paint_line"]["line-gradient"] as any as StylePropertySpecification, "line-gradient"), }); export default ({ get paint(): Properties { return getPaint() }, get layout(): Properties { return getLayout() } });