Skip to content

refactor: update renderGLTFToPNG function and dependencies in packagejson#296

Merged
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:replace-renderGLTFToPNGBufferFromGLBBuffer
Jun 14, 2026
Merged

refactor: update renderGLTFToPNG function and dependencies in packagejson#296
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:replace-renderGLTFToPNGBufferFromGLBBuffer

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

This pull request updates the poppygl dependency and refactors the test code to use the new renderGLTFToPNGFromGLB API, replacing the deprecated renderGLTFToPNGBufferFromGLBBuffer. It also updates the expected return type from Buffer to Uint8Array where appropriate.

Dependency update:

  • Updated poppygl from version ^0.0.20 to ^0.0.24 in package.json to use the latest features and API changes.

Test code refactoring for new API:

  • Replaced all imports and usages of renderGLTFToPNGBufferFromGLBBuffer with renderGLTFToPNGFromGLB in tests/helpers/render-footprint.ts, tests/snapshots/footprint-plated-hole.test.tsx, and tests/snapshots/jstzh1_5mm.test.tsx. [1] [2] [3]
  • Updated the return type of renderFootprint and renderComponentTopView from Promise<Buffer> to Promise<Uint8Array> to match the new API. [1] [2]
  • Updated all calls to the rendering function to use the new renderGLTFToPNGFromGLB API in the relevant test files. [1] [2] [3] [4]

@rushabhcodes rushabhcodes requested a review from seveibar as a code owner June 11, 2026 07:04
Copilot AI review requested due to automatic review settings June 11, 2026 07:04
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
jscad-electronics Ready Ready Preview, Comment Jun 11, 2026 7:04am

Request Review

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MustafaMulla29 MustafaMulla29 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Am not sure why we need this to change, take approval from rishabh as well!

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@rushabhcodes rushabhcodes merged commit 49b6fdd into tscircuit:main Jun 14, 2026
6 checks passed
@rushabhcodes rushabhcodes deleted the replace-renderGLTFToPNGBufferFromGLBBuffer branch June 14, 2026 22:49
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants