refactor(paper): drop sheet viewport border + clean stale PaperCanvas docs

The overall "sheet" viewport now IS the paper view, so its own border
rectangle must not be drawn as an entity — filter it out of
paper_sheet_wires_arc (content viewport borders are kept).

Also update the doc comments that still referenced the removed
PaperCanvas widget / paper_canvas_wires to describe the GPU sheet path.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 4.8 committed 2026-06-02 20:33:51 +03:00
1 parent 206ad1a4aa
commit ac4126072c
3 files changed
+38 -36

No files matched your search

+4 -7
View File
@@ -535,18 +535,15 @@ impl Scene {
let canvas = (bounds.width.max(1.0), bounds.height.max(1.0));
let instances = self.active_viewports(canvas.0, canvas.1, model_render_mode);
// Transparent clear — outside drawn geometry the resolve texture
// stays at alpha=0, so the alpha-blended blit reveals whatever the
// underlying widget painted (model layout: container bg; paper
// layout: PaperCanvas sheet — including inside content viewport
// rectangles).
// stays at alpha=0, so the alpha-blended blit reveals the container
// background (model bg, or the desk colour in a paper layout).
let bg_color = [0.0, 0.0, 0.0, 0.0];
let viewports: Vec<ViewportData> = instances
.iter()
.filter_map(|inst| self.viewport_data_for(inst, canvas, hover_region))
.collect();
// Empty viewports → blit nothing. The widget container's
// background (model bg or the PaperCanvas widget below) stays
// visible. This happens in paper layouts without content viewports.
// Empty viewports → blit nothing; the container background (model bg
// or the paper desk colour) stays visible.
Primitive { viewports, bg_color }
}