Skip to content

- make a more robust implementation of detecting size from svg file

  • at first use viewBox attribute if exists, ensure positive integer values from diff of the corner coordinates
  • at second use width and height attribute if exists, ignore percentage values
  • be stable against different letter cases of the attributes

Merge request reports

Loading