Skip to content

baseunit ignored in disvg when viewbox parameter is provided #215

@maria-korosteleva

Description

@maria-korosteleva

I'm trying to save my list of paths to svg using 'cm' as units. I call disvg with viewport and baseunit parameters set (but not dimentions). The baseunit value is ignored and svg is created in px instead of cm.

It seems like the bug is in this expression, which needs to include baseunit parameter into the dimensions definition:

dimensions = viewbox.split(' ')[2:4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions