Files
Artstr-Studio/src
thePR0M3TH3ANandClaude Opus 4.7 06af73aeff Add PNG export to the pixel editor (Phase B)
A new "Export PNG ▾" dropdown in the pixel editor toolbar, available in
both the embedded-layer and standalone editing modes:

- Scale: 1× / 2× / 4× / 8× / 16× / 32× (3-column grid).
- Transparent background on/off (index-0 transparent cells stay
  transparent in the PNG when on; a white fill is laid down first when
  off).
- Optional 1-px grid line overlay at ≥ 2× scale.
- Filename is "<title>_<W>x<H>_<scale>x.png"; toast confirms output
  dimensions.

Self-contained <canvas> → toBlob('image/png') pipeline. Reads the
editor's current working grid for both layer-edit and standalone modes,
so you can export while you're still editing. Settings persist for the
session.

Menu dismissal is strict: opens only on the Export button, closes on
outside click, outside pointerdown (catches drag-starts), Esc, picking
a pixel tool, hitting Done, and after Download. Fixed a default-open
bug where the .pixelExportMenu CSS display:flex was beating the [hidden]
attribute via specificity tie + later-rule-wins — switched to a class-
toggled open state.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-25 15:14:55 -04:00
..
2026-05-20 22:06:50 -04:00
2026-05-15 13:41:42 -04:00