Skip to content

Switch SVG cartoon overlay from svgutils to drawsvg - #1012

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

aarmey merged 1 commit into
masterfrom
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 lineage/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/rotate 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 S01 regenerates a figure with the cartoon overlay applied, rendered and visually verified
  • uv run ruff check / uv run ruff format --check pass
  • uv run pytest — 67 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 3b98936 into master 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