Skip to content

fix(core): reject non-finite custom projection inverses - #10835

Merged
ibgreen merged 10 commits into
masterfrom
codex/math-projection-adapter
Nov 8, 2026
Merged

ibgreen merged 10 commits into
masterfrom
codex/math-projection-adapter

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Background

Custom projection views now use math.gl CRS descriptors directly. An inverse converter can return non-finite coordinates without throwing, allowing invalid coordinates to escape from the viewport.

Changes

  • Preserve the descriptor-based viewport and existing package exports.
  • Return invalid coordinates consistently when an inverse converter throws or returns a non-finite value.
  • Cover nonzero camera centers, source CRS conversion, inverse round trips, and equivalent meter and foot target CRSs.
  • Add an unreleased note.

Validation

  • Projection and CRS headless suites: 50 tests passed.
  • yarn build, yarn lint, and yarn test-website passed. The website check reports a pre-existing broken TEST-STATUS anchor.
  • Commit hook: 107 tests passed.
  • GitHub CI passed on the pushed head.

@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no blocking issues were found.

Summary

Custom projection inverses now return [NaN, NaN, NaN] when any returned coordinate is non-finite, matching the existing fallback for thrown errors.

  • Custom projection inverses reject non-finite coordinates.
  • Custom projection tests cover camera centers and equivalent units.

Reviews (7) · Last reviewed commit: "fix(core): retain descriptor projection ..." · Reviewed by Greptile

Comment thread modules/core/src/projection.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af78af8874

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread modules/core/src/projection.ts Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T11:58:08.075167Z af78af8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coveralls

coveralls commented Oct 10, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.369% (-0.01%) from 84.379% — codex/math-projection-adapter into master

@ibgreen
ibgreen requested a review from Pessimistress October 10, 2026 14:09

ibgreen commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

Refreshed this branch by merging current master (bf303a11) independently; the earlier merge conflict is resolved. The refreshed head is 41a7578. The new CI run completed with build failures: master has since changed the math.gl projection import path and CustomProjectionViewport APIs, so this PR needs follow-up adaptation before it is ready for approval. I’m tracking the specific compiler errors and will update the branch accordingly.

Comment thread modules/core/package.json Resolved
Comment thread modules/core/package.json Resolved
Comment thread docs/whats-new.md Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread modules/core/package.json Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

There are 5 total unresolved issues (including 3 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1f6d083. Configure here.

@ibgreen ibgreen changed the title feat(core): math.gl projection alignment (1/3) fix(core): reject non-finite custom projection inverses Nov 8, 2026
@ibgreen
ibgreen merged commit 1d05983 into master Nov 8, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/math-projection-adapter branch November 8, 2026 19:29
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.

2 participants