Skip to content

Switch SVG cartoon overlay from svgutils to drawsvg - #556

Merged
aarmey merged 1 commit into
mainfrom
fix/svgutils-to-drawsvg
Sep 13, 2026
Merged

aarmey merged 1 commit into
mainfrom
fix/svgutils-to-drawsvg

Conversation

@aarmey

@aarmey aarmey commented Sep 13, 2026

Copy link
Copy Markdown
Member

Summary

  • svgutils is unmaintained; this switches overlayCartoon in ddmc/figures/common.py to use drawsvg instead.
  • The base figure and cartoon SVGs are parsed and their inner markup is composed with drawsvg's Drawing/Group/Raw primitives, replicating the same translate/scale transform semantics svgutils previously produced.
  • Swapped the svgutils dependency for drawsvg in pyproject.toml and regenerated uv.lock.

Fixes meyer-lab/lab-internals#68

Test plan

  • uv run fbuild M2 regenerates figure M2 with its missingness-diagram cartoon overlaid, rendered and visually verified
  • uv run ruff check / uv run ruff format --check pass
  • uv run ty check passes
  • uv run pytest — 61 passed

svgutils is unmaintained; drawsvg is actively maintained. overlayCartoon
now composes the base figure and cartoon SVGs directly with drawsvg's
Drawing/Group/Raw primitives instead of svgutils' transform API.

Fixes meyer-lab/lab-internals#68
@aarmey
aarmey merged commit d7d967d into main Sep 13, 2026
2 checks passed
@aarmey
aarmey deleted the fix/svgutils-to-drawsvg branch September 13, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant