import { Layer, LayerProps, LayerDataSource, Unit, Position, Accessor, Color, UpdateParameters, DefaultProps } from '@deck.gl/core'; import { Model } from '@luma.gl/engine'; /** All properties supported by LineLayer. */ export type LineLayerProps = _LineLayerProps & LayerProps; /** Properties added by LineLayer. */ type _LineLayerProps = { data: LayerDataSource; /** * The units of the line width, one of `'meters'`, `'common'`, and `'pixels'`. * @default 'pixels' */ widthUnits?: Unit; /** * The scaling multiplier for the width of each line. * @default 1 */ widthScale?: number; /** * The minimum line width in pixels. * @default 0 */ widthMinPixels?: number; /** * The maximum line width in pixels. * @default Number.MAX_SAFE_INTEGER */ widthMaxPixels?: number; /** * Source position of each object. * @default object => object.sourcePosition */ getSourcePosition?: Accessor; /** * Target position of each object. * @default object => object.targetPosition */ getTargetPosition?: Accessor; /** * The rgba color is in the format of `[r, g, b, [a]]`. * @default [0, 0, 0, 255] */ getColor?: Accessor; /** * Width of each object * @default 1 */ getWidth?: Accessor; }; /** * A layer that renders straight lines joining pairs of source and target coordinates. */ export default class LineLayer extends Layer>> { static layerName: string; static defaultProps: DefaultProps>; state: { model?: Model; }; getBounds(): [number[], number[]] | null; getShaders(): any; get wrapLongitude(): boolean; initializeState(): void; updateState(params: UpdateParameters): void; draw({ uniforms }: { uniforms: any; }): void; protected _getModel(): Model; } export {}; //# sourceMappingURL=line-layer.d.ts.map