maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
55 lines (47 loc) • 3.15 kB
text/typescript
// 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';
import type {Color, Formatted, Padding, NumberArray, ColorArray, ResolvedImage, VariableAnchorOffsetCollection} from '@maplibre/maplibre-gl-style-spec';
import {StylePropertySpecification} from '@maplibre/maplibre-gl-style-spec';
export type HillshadePaintProps = {
"hillshade-illumination-direction": DataConstantProperty<NumberArray>,
"hillshade-illumination-altitude": DataConstantProperty<NumberArray>,
"hillshade-illumination-anchor": DataConstantProperty<"map" | "viewport">,
"hillshade-exaggeration": DataConstantProperty<number>,
"hillshade-shadow-color": DataConstantProperty<ColorArray>,
"hillshade-highlight-color": DataConstantProperty<ColorArray>,
"hillshade-accent-color": DataConstantProperty<Color>,
"hillshade-method": DataConstantProperty<"standard" | "basic" | "combined" | "igor" | "multidirectional">,
};
export type HillshadePaintPropsPossiblyEvaluated = {
"hillshade-illumination-direction": NumberArray,
"hillshade-illumination-altitude": NumberArray,
"hillshade-illumination-anchor": "map" | "viewport",
"hillshade-exaggeration": number,
"hillshade-shadow-color": ColorArray,
"hillshade-highlight-color": ColorArray,
"hillshade-accent-color": Color,
"hillshade-method": "standard" | "basic" | "combined" | "igor" | "multidirectional",
};
let paint: Properties<HillshadePaintProps>;
const getPaint = () => paint = paint || new Properties({
"hillshade-illumination-direction": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-illumination-direction"] as any as StylePropertySpecification),
"hillshade-illumination-altitude": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-illumination-altitude"] as any as StylePropertySpecification),
"hillshade-illumination-anchor": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-illumination-anchor"] as any as StylePropertySpecification),
"hillshade-exaggeration": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-exaggeration"] as any as StylePropertySpecification),
"hillshade-shadow-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-shadow-color"] as any as StylePropertySpecification),
"hillshade-highlight-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-highlight-color"] as any as StylePropertySpecification),
"hillshade-accent-color": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-accent-color"] as any as StylePropertySpecification),
"hillshade-method": new DataConstantProperty(styleSpec["paint_hillshade"]["hillshade-method"] as any as StylePropertySpecification),
});
export default ({ get paint() { return getPaint() } });