Closed 370417 closed 3 years ago
Thanks.
Tested (arrows, circles, annotation glyphs, flipping, resizing) and looks good. Somehow promotion and drop auto shapes look slightly off. I doubt it's a fundamental issue, but we should probably figure it out before merging.
It seems like Chrome and Firefox refuse to understand non-integer sizes. Chrome just sets the width and height to 1. Firefox makes the entire image invisible. Desktop Safari surprisingly handles it well.
Fixed by setting the size at 1 by 1 and using a transform to scale the image.
Ah, strange. Can confirm using the transform fixes this.
Changes shapes and custom-shapes to use user coordinates instead of viewport (px) units. This lets us skip
renderSvg
on resize and fixes #197. I never actually found out what caused that bug.Minified, 26431 -> 26183 byes. Barely 0.9% smaller.