You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, then I still get problems with another sample for defining custom uniforms, because what I pass into super.draw({uniforms: [...]} is incomplete; it requires the optional fields (parameters, context, moduleParameters) to be set.
I'm not sure if these are bugs in the typings or wether these are expected changes (while I expect some change to add types, this convoluted style to define the new layer looks like bad design).
Figuring this out on my own took longer than it should have taken.
There should be a sample to guide users in the right direction, and to assure them that they are using the deck.gl as intended in their TypeScript projects.
The text was updated successfully, but these errors were encountered:
This simple bit of code from the deck.gl docs won't work when copied naively:
this.context
not foundthis.setState
not foundthis.props
not foundLooking at the existing typings, it looks like I need something convoluted like:
However, then I still get problems with another sample for defining custom uniforms, because what I pass into
super.draw({uniforms: [...]}
is incomplete; it requires the optional fields (parameters
,context
,moduleParameters
) to be set.I'm not sure if these are bugs in the typings or wether these are expected changes (while I expect some change to add types, this convoluted style to define the new layer looks like bad design).
Figuring this out on my own took longer than it should have taken.
There should be a sample to guide users in the right direction, and to assure them that they are using the deck.gl as intended in their TypeScript projects.
The text was updated successfully, but these errors were encountered: