Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/use custom svg creation #14

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Conversation

papauorg
Copy link
Owner

No description provided.

The initial way of creating the SVG file was using
an external library in which it was not clear on how
certain calculations were done and thus the resulting
scales had some issues with the padding and sometimes
with the cutting rectangle.

This commit now switches the SVG generation to SkiaSharp
for the font paths and custom XML handling to create the
SVG file. All calculations can now be seen in code
(except for creating paths from font files).

Also some tests were added to avoid future regressions.
Turns out clones (using definitions and use in svg) does
not work properly with the plotter software, so this
commit uses <rect> directly instead of referencing
a definition by <use>
Due to the changes in the svg generation small
issues with offsets are fixed in the scales. To
be able to reproduce creating scales they are
migrated once.
@papauorg papauorg merged commit 16d772a into main Jan 13, 2025
1 check passed
@papauorg papauorg deleted the feature/use-custom-svg-creation branch January 13, 2025 20:13
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