cad-editor/src/scene
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 7d68eb0f10 fix(paper): size inch paper-space sheets in their own units
Some layouts lay out paper space in inches (viewports and drawing limits
in inch units), but paper_width/height and plot margins are always
millimetres. paper_limits() drew the sheet at the mm size, 25.4x too
large, so the drawing shrank into the corner and the printable-area
dashes ran 25.4x too long.

Infer the mm->paper-space unit factor per layout from the limits/paper
ratio (plot_paper_units records the plot output unit and can disagree,
so it is not used). Scale the sheet, the printable-area margins and its
dash pattern by it. PDF export recovers physical mm by dividing back,
leaving millimetre layouts byte-identical.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-20 17:13:01 +03:00
..
cache feat(polyline): smooth per-segment taper for varying-width wide polylines 2026-07-20 16:36:06 +03:00
convert feat(polyline): smooth per-segment taper for varying-width wide polylines 2026-07-20 16:36:06 +03:00
model feat(polyline): smooth per-segment taper for varying-width wide polylines 2026-07-20 16:36:06 +03:00
pick fix(pick): catch a wide polyline on its band, not just its centreline 2026-07-17 15:22:56 +03:00
pipeline feat(polyline): smooth per-segment taper for varying-width wide polylines 2026-07-20 16:36:06 +03:00
text feat(polyline): smooth per-segment taper for varying-width wide polylines 2026-07-20 16:36:06 +03:00
view refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
annotative.rs feat(annotative): synthesize per-object contexts + editable UI 2026-07-13 22:38:29 +03:00
camera_ops.rs feat(scene): draw nonprint light, camera and geo-location glyphs 2026-07-19 22:15:40 +03:00
entity.rs feat(polyline): Polyline2D width band + tube, and block-instance shader bands 2026-07-20 16:04:03 +03:00
group_layer.rs feat(ui): bulk layer on/off, lock, freeze, transparency + Ctrl+A (#236) 2026-07-03 16:06:10 +03:00
layout.rs feat(layout): reopen a drawing in the space it was saved in 2026-07-12 01:01:40 +03:00
mod.rs fix(paper): size inch paper-space sheets in their own units 2026-07-20 17:13:01 +03:00
modify.rs perf(undo): record entity deltas instead of cloning the whole document 2026-07-15 11:11:17 +03:00
mspace.rs feat(nav): turntable orbit, selection/cursor pivot, Shift+MMB rotate (#229) 2026-07-01 21:58:04 +03:00
page_setup.rs fix(io): resolve root named-objects dict robustly on foreign DWGs 2026-07-13 16:28:21 +03:00
paper.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
preview.rs fix(stretch): free crossing-window corners from Ortho, draw filled marquee (#291) 2026-07-10 13:32:32 +03:00
project.rs refactor(viewport): unify content-viewport clipping on the stencil path 2026-07-20 11:06:28 +03:00
scene_markers.rs feat(scene): draw nonprint light, camera and geo-location glyphs 2026-07-19 22:15:40 +03:00
selection.rs perf(undo): record entity deltas instead of cloning the whole document 2026-07-15 11:11:17 +03:00