danmarshall/deckgl-typings

Support binary data props

bclinkinbeard opened this issue · 1 comments

As described in https://deck.gl/docs/developer-guide/performance#supply-binary-blobs-to-the-data-prop, most layers support the specification of an object like {length: blobLength} as their data prop. This also means the existing data accessor signatures are incomplete. I think the correct form would be (d: D, {index: number, data: {length: number, [index: string]: any}, target: number[]}?) => Position, but I'm not positive.

I think it's the same problem for data.attributes. Is there a workaround?