PathLayer constructor takes in LayerProps instead of PathLayerProps
chingmunn opened this issue · 0 comments
chingmunn commented
const layers = [
new PathLayer({
...
getPath: (d) => ...
})
]
Typescript raises an error:
Object literal may only specify known properties, and 'getPath' does not exist in type 'LayerProps<...>'.
Upon inspection of deck.gl__layers/index.d.ts
, noticed that constructor for PathLayer is not defined, which perhaps is needed:
export default class PathLayer<D, P extends PathLayerProps<D> = PathLayerProps<D>> extends Layer<D, P> {
// constructor(props: PathLayerProps<D>);
getShaders(): any;
initializeState(params: any): void;
draw({ uniforms }: { uniforms: any }): void;
_getModel(gl: any): any;
calculatePositions(attribute: any): void;
calculateSegmentTypes(attribute: any): void;
}