Please export `getAccessorFromBuffer`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- api
Research direction
Start in modules/core/src/utils/iterable-utils.js at getAccessorFromBuffer and trace how createIterable is exported from @deck.gl/core. Check the package's public export entry points and existing tests, then verify that consumers can import getAccessorFromBuffer while preserving its documented accessor behavior.
Written by the indexing model from the issue text.
Description
Target Use case
I am working on a CompositeLayer that needs to iterate though the data in the CPU on updateState before passing to the render method. While it would be technically possible to require the data to be in a particular format, or otherwise handle the processing of that data prior to passing to the layer, I would prefer that the data format be flexible and consistent with other layers that I'm building.
For that reason, I am trying to implement the accessor pattern inside the updateState method, and would like it to be able to accept binary attributes, whether they are as a luma Buffer or a TypedArray, and the various props to handle interleaved data, as well as falling back to the getPosition accessor function that is optionally passed.
I noticed the getAccessorFromBuffer function here:
https://github.com/visgl/deck.gl/blob/8.6-release/modules/core/src/utils/iterable-utils.js
Yet, it is not exported by @deck.gl/core (yet createIterable is).
It would be helpful if either that was exported, or otherwise some general pattern were provided for iterating over an accessor in a CompositeLayer.
It would make it possible to iterate over an accessor in a CompositeLayer, regardless of how the data is passed, allowing for all layers in a project to accept the same inputs.
Proposed feature
Export getAccessorFromBuffer.
To Do List
- Add label and assign to milestone
- Coding
- Doc update
- What’s new update
- Test
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from visgl/deck.gl
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·