Skip to content

feat: implement type-safe isomorphic coords helpers#1233

Open
shadowusr wants to merge 5 commits intotestplane@9from
users/shadowusr/TESTPLANE-672.update-composite-image-renderer
Open

feat: implement type-safe isomorphic coords helpers#1233
shadowusr wants to merge 5 commits intotestplane@9from
users/shadowusr/TESTPLANE-672.update-composite-image-renderer

Conversation

@shadowusr
Copy link
Copy Markdown
Member

What's done?

Implemented a type system for type-safe coords operations.

With these, it becomes much harder to confuse numbers from different spaces or units.

These helpers are broadly used in the upcoming PRs.

For example:

  • You can't get intersection of rects with different pixelRatios
  • You can't combine two coords, if one is relative to viewport and the other is relative to the whole page
  • You can't get a sum of left and top values without explicit type casting

Copy link
Copy Markdown

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

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: 97b73c48d6

ℹ️ 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 src/browser/isomorphic/geometry.ts Outdated
Comment thread src/browser/isomorphic/geometry.ts Outdated
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1233

commit: 7202a46

@shadowusr shadowusr force-pushed the users/shadowusr/TESTPLANE-672.update-composite-image-renderer branch from a0185c2 to 7202a46 Compare April 13, 2026 14:52
@github-actions
Copy link
Copy Markdown

❌ Testplane run failed

Report

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