Skip to content

[Suggestion]: Add ability to customize offset value for translate attribute for both coordinates. #150

@vitaliiorlov

Description

@vitaliiorlov

Hello!
In my project, I need to use different values of offset to embed the generated non-standalone QR code into another SVG file.
I need to use Nokogiri to customize this value in generated io.

If it is possible, could you please add ability to set offset for x and y?

lib/rqrcode/export/svg.rb:82

@result << %{<path d="#{path.join}" fill="#{color}" transform="translate(#{offset},#{offset}) scale(#{module_size})"/>}

Thank you!

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