Apps submit mutli-plane images with glyphs, rather than mere images

This commit is contained in:
James Babcock committed 2026-08-16 21:01:20 -07:00
1 parent df85fb4072
commit fdf683761e
22 files changed
+348 -101

No files matched your search

+3 -2
View File
@@ -1,4 +1,5 @@
import { GrayImage } from "../graphics/image";
import { singlePlane, type Plane } from "../graphics/plane";
import {
noopLayerActions,
LayerStack,
@@ -61,8 +62,8 @@ export class WindowMenu {
}
/** Paint the window content with the menu over it (content alone if closed). */
paint(): GrayImage {
return this.stack ? this.stack.paint() : this.options.paintBase();
paint(): Plane[] {
return this.stack ? this.stack.paint() : singlePlane(this.options.paintBase());
}
/** Route an input event to the menu; the menu closes by popping itself. */