Skip to content

Update canvas API#405

Merged
pearmini merged 4 commits intomainfrom
cm-canvas
Apr 1, 2026
Merged

Update canvas API#405
pearmini merged 4 commits intomainfrom
cm-canvas

Conversation

@pearmini
Copy link
Copy Markdown
Member

@pearmini pearmini commented Apr 1, 2026

No description provided.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 1, 2026

Deploying api with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0a8f5a4
Status: ✅  Deploy successful!
Preview URL: https://f37dfd86.charming-a13.pages.dev
Branch Preview URL: https://cm-canvas.charming-a13.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the canvas API surface by adding small drawing helpers, and refreshes the docs and manual test page to demonstrate the new canvas capabilities via a selectable examples harness.

Changes:

  • Added canvas drawing helpers (strokeLine, fillCircle, strokeCircle, strokeEllipse, fillEllipse) alongside context2d.
  • Replaced the single-page canvas test HTML with an example selector UI and modularized examples under test/examples/.
  • Expanded canvas documentation and API index entries to cover the new helpers.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/index.html Replaced static canvas checks with an interactive example selector and renderer.
test/examples/index.js Added an examples registry exporting each canvas demo function.
test/examples/canvas-*.js Added individual example modules demonstrating context2d and new drawing helpers.
src/canvas/index.js Introduced new canvas drawing helper exports.
docs/canvas.md Expanded canvas documentation with rationale and new API sections/examples.
docs/api-index.md Added the new canvas helpers to the API index.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pearmini pearmini merged commit a3c847a into main Apr 1, 2026
2 checks passed
@pearmini pearmini deleted the cm-canvas branch April 1, 2026 23:48
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