Skip to content

Images render as the bottom layer - #31

Open
calumk wants to merge 1 commit into
quickdrawjs:mainfrom
calumk:stacking-images-bottom
Open

calumk wants to merge 1 commit into
quickdrawjs:mainfrom
calumk:stacking-images-bottom

Conversation

@calumk

@calumk calumk commented Nov 1, 2026

Copy link
Copy Markdown

Fixes #30.

Layers the paint order as image, then highlighter, then everything else (z-index still orders within each layer), in the single shapesSorted() comparator shared by screen rendering and exportImage(). Adds tests pinning the layer rule against adversarial z-indexes.

Heads-up: restyles existing boards where images overlap ink or highlighter washes — previously z-ruled, now layered.

Paint order becomes image, then highlighter, then everything else (z-index
still orders within each layer). Images act as the paper of a board, so a
highlighter wash can sit over a photo instead of images interleaving with
ink by z-index.
@vercel

vercel Bot commented Nov 1, 2026

Copy link
Copy Markdown

@calumk is attempting to deploy a commit to the naman's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Images should render as the bottom layer

1 participant