import { LayerExtension } from '@deck.gl/core'; import type { Layer, LayerContext, DefaultProps, Accessor, AccessorFunction, TextureSource, UpdateParameters } from '@deck.gl/core'; export type FillStyleExtensionProps = { /** Cheap toggle to enable/disable pattern fill. Requires the `pattern` option to be on. * @default true */ fillPatternEnabled?: boolean; /** Sprite image url or texture that packs all your patterns into one layout. */ fillPatternAtlas?: string | TextureSource; /** Pattern names mapped to pattern definitions, or a url that points to a JSON file. */ fillPatternMapping?: string | Record; /** * Whether to treat the patterns as transparency masks. * @default true */ fillPatternMask?: boolean; /** Accessor for the name of the pattern. */ getFillPattern?: AccessorFunction; /** Accessor for the scale of the pattern, relative to the original size. If the pattern is 24 x 24 pixels, scale `1` roughly yields 24 meters. * @default 1 */ getFillPatternScale?: Accessor; /** * Accessor for the offset of the pattern, relative to the original size. Offset `[0.5, 0.5]` shifts the pattern alignment by half. * @default [0, 0] */ getFillPatternOffset?: Accessor; }; export type FillStyleExtensionOptions = { /** If `true`, adds the ability to tile the filled area with a pattern. * @default false */ pattern: boolean; }; /** Adds selected features to layers that render a "fill", such as the `PolygonLayer` and `ScatterplotLayer`. */ export default class FillStyleExtension extends LayerExtension { static defaultProps: DefaultProps>; static extensionName: string; constructor({ pattern }?: Partial); isEnabled(layer: Layer): boolean; getShaders(this: Layer, extension: this): any; initializeState(this: Layer, context: LayerContext, extension: this): void; updateState(this: Layer, { props, oldProps }: UpdateParameters>, extension: this): void; draw(this: Layer, params: any, extension: this): void; finalizeState(this: Layer): void; getPatternFrame(this: Layer, name: string): any[]; } //# sourceMappingURL=fill-style-extension.d.ts.map