Skip to content

meshpad:0.1.1 - #5727

Merged
elegaanz merged 47 commits into
typst:mainfrom
13Stokes31:meshpad-0.1.1
Sep 1, 2026
Merged

meshpad:0.1.1#5727
elegaanz merged 47 commits into
typst:mainfrom
13Stokes31:meshpad-0.1.1

Conversation

@13Stokes31

Copy link
Copy Markdown
Contributor

Adds meshpad 0.1.1 — a patch release that validates the numeric arguments of
grid-paper. No change to what it draws.

Until now only kind and lines were checked. step: 0 failed with Typst's
"cannot divide by zero" pointing inside the package, major-every: 0 with
"divisor must not be zero", and a negative step, a negative or fractional
major-every, and a zero or negative size all compiled in silence and drew
nonsense. Each of those now raises a meshpad: message that says what was
expected and what it got, before anything is drawn.

Two details worth noting, since size and step accept both plain numbers and
Typst lengths. Positivity is tested against the zero of the value's own type, as
a length and an integer cannot be compared. And the type check is "all lengths
or all plain numbers" rather than "all the same type", so the documented
size: (6, 4) with step: 0.5 — an int/float mix — keeps working; what is
rejected is mixing a length with a plain number, which used to fail deep inside
CeTZ with "cannot add length and float".

The must-fail cases are now an actual battery (tests/errors.sh, 10 cases each
asserting its own message); they previously sat commented out and never ran.

0.1.0 is untouched; this adds packages/preview/meshpad/0.1.1/.

I have read the submission guidelines; the package compiles, has a README with
examples, a LICENSE, and a valid typst.toml.

@typst-package-check typst-package-check Bot added the update A package update. label Aug 31, 2026
@elegaanz elegaanz self-assigned this Sep 1, 2026
@elegaanz

elegaanz commented Sep 1, 2026

Copy link
Copy Markdown
Member

Thank you.

@elegaanz
elegaanz merged commit d058bb4 into typst:main Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update A package update.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants