Skip to content

Add air text#410

Merged
pearmini merged 3 commits intomainfrom
air-text
Apr 3, 2026
Merged

Add air text#410
pearmini merged 3 commits intomainfrom
air-text

Conversation

@pearmini
Copy link
Copy Markdown
Member

@pearmini pearmini commented Apr 3, 2026

No description provided.

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

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

Deploying api with  Cloudflare Pages  Cloudflare Pages

Latest commit: be672a6
Status: ✅  Deploy successful!
Preview URL: https://03a2102c.charming-a13.pages.dev
Branch Preview URL: https://air-text.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

Adds a new “Air Text” example to the example/ workspace that uses webcam-based body segmentation to carve out “holes” in a text-filled region, plus associated dependency and Vite configuration updates.

Changes:

  • Adds the new example/air-text/ demo (HTML/CSS/JS + helpers + copy) and links it from the examples index.
  • Adds ml5 (and related transitive tfjs stack) plus @chenglou/pretext to the example package.
  • Introduces an example-scoped Vite config to prebundle deps for the new demo.

Reviewed changes

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

Show a summary per file
File Description
pnpm-lock.yaml Locks new dependencies (ml5/tfjs stack, etc.) required by the Air Text demo
example/vite.config.js Adds optimizeDeps settings intended to make ml5/tfjs work in Vite dev
example/package.json Adds dependencies/devDependencies for the example workspace (incl. ml5)
example/index.html Links the new “Air Text” demo from the examples landing page
example/air-text/index.js Implements the Air Text demo logic (layout + webcam segmentation loop)
example/air-text/index.html Adds the Air Text demo page scaffold (stage + hidden video)
example/air-text/index.css Styles the Air Text stage and positioned text spans
example/air-text/helpers.js Adds geometry + masking helpers (contours, clipping, unions)
example/air-text/content.js Adds title/body copy used for layout and fill text

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

Comment thread example/vite.config.js Outdated
Comment thread example/package.json
Comment thread pnpm-lock.yaml
Comment thread example/air-text/index.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pearmini pearmini merged commit a7eebc4 into main Apr 3, 2026
2 checks passed
@pearmini pearmini deleted the air-text branch April 3, 2026 17:25
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