UNPKG

maplibre-gl

Version:

BSD licensed community fork of mapbox-gl, a WebGL interactive maps library

46 lines (36 loc) 1.7 kB
// 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 BackgroundPaintProps = { "background-color": DataConstantProperty<Color>, "background-pattern": CrossFadedProperty<ResolvedImage>, "background-opacity": DataConstantProperty<number>, }; export type BackgroundPaintPropsPossiblyEvaluated = { "background-color": Color, "background-pattern": CrossFaded<ResolvedImage>, "background-opacity": number, }; const paint: Properties<BackgroundPaintProps> = new Properties({ "background-color": new DataConstantProperty(styleSpec["paint_background"]["background-color"] as any as StylePropertySpecification), "background-pattern": new CrossFadedProperty(styleSpec["paint_background"]["background-pattern"] as any as StylePropertySpecification), "background-opacity": new DataConstantProperty(styleSpec["paint_background"]["background-opacity"] as any as StylePropertySpecification), }); export default ({ paint } as { paint: Properties<BackgroundPaintProps> });