forked from 1b-agent/opencadstudio-upstream
feat(underlay): render PDF underlays end-to-end
PDF underlays only drew their clip outline / insertion cross; the page itself never appeared. The chain now runs: the definition's file path resolves with the raster-image fallbacks (as stored, relative to the drawing, basename next to the drawing — attach-time relative paths go stale), the page rasterises through the system pdftoppm (poppler) at 150 dpi — no new crate; missing tool degrades to the outline — cached per (path, page) including negative results, and the pixels feed the existing image pipeline as an ImageModel: 1 underlay unit = 1 PDF inch (px/dpi × entity scale), rotated about the insertion, fade as opacity, the clip polygon (non-inverted) as the textured region. Draw-order, layer visibility and per-viewport freezes ride the generic image path; in-place edits rebuild through the shared image seed. When the page renders, the wire path draws its frame with an interior pick surface instead of the lone cross, so selection covers the visible page. wasm keeps the outline placeholder (no external process). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ac0a6ac150
commit
1e913e9e78
7 files changed
+322
-16
No files matched your search
@@ -4,6 +4,7 @@ pub mod hatch_model;
|
||||
pub mod hatch_patterns;
|
||||
pub mod image_model;
|
||||
pub mod ole_pres;
|
||||
pub mod pdf_raster;
|
||||
pub mod mesh_model;
|
||||
pub mod solid_model;
|
||||
pub mod object;
|
||||
Reference in new issue
Block a user