@deck.gl/layers
Version:
deck.gl core layers
13 lines • 721 B
TypeScript
import type { NumericArray } from '@math.gl/core';
import type { Position } from '@deck.gl/core';
export type NestedPathGeometry = Position[];
export type FlatPathGeometry = NumericArray;
export type PathGeometry = NestedPathGeometry | FlatPathGeometry;
export type NormalizedPathGeometry = FlatPathGeometry[] | FlatPathGeometry;
/**
* Flattens a nested path object
* Cut the feature if needed (globe projection, wrap longitude, etc.)
* Returns a flat array of path positions, or a list of flat arrays representing multiple paths
*/
export declare function normalizePath(path: PathGeometry, size: number, gridResolution?: number, wrapLongitude?: boolean): number[][] | NumericArray;
//# sourceMappingURL=path.d.ts.map