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

Improve __repr__ and Viewbox #117

Merged
merged 15 commits into from
Aug 22, 2021
Merged

Improve __repr__ and Viewbox #117

merged 15 commits into from
Aug 22, 2021

Commits on Aug 13, 2021

  1. Improve __repr__ and Viewbox

    1. Viewbox `init` now handles various forms of arguments so it can recreate from a repr:
        * "x y w h"
        * x=x etc.
    2. Viewbox creates a correct better `repr`.
    3. SVGImage adds missing attributes, puts the href (which is potentially huge) last and (I hope this is correct) puts the href attribute in quotations so that the end is easily parseable.
    Sophist-UK authored Aug 13, 2021
    Configuration menu
    Copy the full SHA
    57f52cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b3241e View commit details
    Browse the repository at this point in the history
  3. SVG attribute is preserveAspectRatio

    Since `**kwargs` are often converted using attribute name, we need to use `preserveAspectRatio` everywhere instead of `preserve_aspect_ratio`.
    
    We also need to convert "none" to `None`.
    Sophist-UK authored Aug 13, 2021
    Configuration menu
    Copy the full SHA
    0e29472 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f7ddac2 View commit details
    Browse the repository at this point in the history
  5. Fix bug if args is empty

    Sophist-UK authored Aug 13, 2021
    Configuration menu
    Copy the full SHA
    9bb8149 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b5e2d7b View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Configuration menu
    Copy the full SHA
    997e09c View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. Configuration menu
    Copy the full SHA
    e1ef4f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6df48b6 View commit details
    Browse the repository at this point in the history
  3. Remove image_width/height from repr

    These are NOT part of the SVG 2.0 spec.
    Sophist-UK authored Aug 20, 2021
    Configuration menu
    Copy the full SHA
    9e595fa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40cfbf5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2021

  1. Address review comments

    Sophist-UK authored Aug 21, 2021
    Configuration menu
    Copy the full SHA
    7d0defe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1bd62fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    13a9438 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ec0d65 View commit details
    Browse the repository at this point in the history