Skip to content

[feature request] Set viewBox Bounds during SVG export #99

@davidsara

Description

@davidsara

Hi!
Current API allows to export to SVG using $.model.renderViewToSVG(view, filePath, setViewBox)

Would it be possible to add viewBoxBounds optional parameter to enter min_x, min_y, width and height as seen in GUI?

image

For example:

var viewBoxBounds = {min_x: 0, min_y: 0, width: 1000, height: 495};
$.model.renderViewToSVG(view, "myView.svg", "true", viewBoxBounds);

Thanks, David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions