feat: drive a tracer bullet through spec, layout, svg and pdf #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/m1-tracer-bullet"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
primitives, SVG preview, pdf-lib download
top, so neither renderer can derive one independently
first line of core
13 and M1 has no widget to put in it
Test plan
pnpm testgreen: 22 tests over layout, both renderers and the boundarypnpm lint,pnpm buildgreen;pnpm devserves the sheetevery coordinate mm * 2.8346 of its SVG value, /Helvetica not embedded, 969
bytes
Applied the review findings in a0c1b7b..af06934, one commit each. Tests (22), tsc and eslint all pass.
PT_PER_MMnow derives from72 / 25.4. The truncated 2.8346 sized the MediaBox at 595.266pt rather than exact A4, which can trigger fit-to-page scaling on print.heightOfreservesfontSize * lineHeight, so at the default 1.2 every glyph sat flush at the top of its line box with all the spacing below it.Inkis a hex template-literal type, andinkToColorrejects malformed hex with a named error.ink: 'red'used to render fine in SVG and blow up insidergb()at export.Left alone:
void download(sheet)inApp.tsxstill drops render failures on the floor. That wants real error surfacing, not a.catchthat logs.