Casey Duckering

Results 64 comments of Casey Duckering

I see the same `TypeError` issue on this file: [Sample MIDI file](https://github.com/mido/mido/files/7533306/Hakuouki.Shinsengumi.Kitan.-.Sakurabana.mid.zip)

For any element that is a subclass of `DrawingParentElement`, `hasContent = False` only disables children and throws that error. This is intended to warn against incorrect SVGs but looks to...

`FilterItem.hasContent = True` would also work. If you make a pull request fixing it, I'll merge it and publish a new version within a few days.

Thanks for your input. There currently isn't a preferred way to specify transforms. I like your idea of changing each transform to the coordinate system but I haven't done this...

That's not the intended way to flip the y-coordinate. See #11 for a better way. The reason for the try/except was to allow values with units like "50%" to be...

I am aware. All the camel case method and argument names should also be snake case. Fixing any of these would break backwards compatibility so will only be fixed in...

This could be solved for simple geometry but I don't think drawSvg is well suited to solve this for many cases. The main problem is you are allowed to add...

You have a good point that an SVG rendering library could be used to determine the bounding box. After a quick search, I found the `cairosvg.bounding_box` module that might be...

It looks like Cairo can do this too but it may not be supported in CairoSVG. https://pycairo.readthedocs.io/en/latest/reference/surfaces.html#class-recordingsurface-surface https://stackoverflow.com/questions/53838231/cairo-pdf-bounding-box

### Solution using Cairo Now you got me interested in the problem... Here is a mostly complete solution. The constants may need to be tweaked to get good results for...