Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No warnings, added tests, added viewBox option #2

Merged
merged 10 commits into from
Sep 3, 2018

Conversation

nkezhaya
Copy link
Contributor

No description provided.

@siliconavengers
Copy link
Contributor

Thanks for the PR. I do agree that the options should be keyword list instead of map. However, existing user might still be using map as the options. I have tried that using map as an options will break the SVG generation due to the following code in svg.ex:

dimension_attrs =
      if Keyword.get(options, :viewbox, false) do
        ~s(viewBox="0 0 #{dimension} #{dimension}")
      else
        ~s(width="#{dimension}" height="#{dimension}")
      end

Can we still continue to support using map as options and add a deprecation warning or fix the above code to allow reading from map instead?

@nkezhaya
Copy link
Contributor Author

nkezhaya commented Sep 3, 2018

@siliconavengers Fixed.

@siliconavengers
Copy link
Contributor

@whitepaperclip Thanks. Will merge and update the hex package soon.

@siliconavengers siliconavengers merged commit 8128cf6 into SiliconJungles:master Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants