Skip to content

feat: expose point order#246

Merged
flekschas merged 3 commits intomainfrom
flekschas/feat-expose-point-order
May 8, 2026
Merged

feat: expose point order#246
flekschas merged 3 commits intomainfrom
flekschas/feat-expose-point-order

Conversation

@flekschas
Copy link
Copy Markdown
Owner

This PR introduces pointOrder to allow changing the draw order without having to re-upload data

Description

What was changed in this pull request?

Added a pointOrder property (null | number[]) that controls point draw order by reordering entries in normalPointsIndexBuffer. When set, the array specifies the sequence in which points are rendered (first = behind, last = on top), with missing indices appended sequentially; the ordering is preserved through filter()/unfilter() and resets automatically when draw() is called with different-length data.

Example

point-order

Why is this PR necessary?

Fixes #162

Checklist

  • Provided a concise title as a semantic commit message (e.g. "fix: correctly handle undefined properties")
  • CHANGELOG.md updated
  • Tests added or updated
  • Documentation in README.md added or updated
  • Example(s) added or updated
  • Screenshot, gif, or video attached for visual changes

@flekschas flekschas merged commit c6fbf3b into main May 8, 2026
2 checks passed
@flekschas flekschas deleted the flekschas/feat-expose-point-order branch May 8, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: sort values

1 participant