Skip to content

Releases: lukem512/normalize-svg-coords

normalize-svg-coords v1.0.9

08 Jun 10:41

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Bumped version for NPM, no further changes.

normalize-svg-coords v1.0.8

08 Jun 10:35

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Check for a diff of 0 in the scale function to avoid NaN values
  • Updated svg-path-bounds dependency
  • Updated should return a normalized elliptic arcs test to reflect modified results from dependency

normalize-svg-coords v1.0.7

01 Sep 09:18

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Correctly parse line (V, v, H and h) instructions

normalize-svg-coords v1.0.6

24 Jul 20:06

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Correctly parse elliptic arc (A and a) instructions

normalize-svg-coords v1.0.5

24 Jul 14:44

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Fixed tests in v1.0.4

normalize-svg-coords v1.0.4

24 Jul 14:39

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

This release is working but the tests are failing. Please see v1.0.5.

Changes

  • Correct segmented list format
  • Fixed (actually, broke) tests

normalize-svg-coords v1.0.3

24 Jul 13:53

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Add tests for min and max parameters
  • Add parameter asList to output as segmented list
  • Infer viewBox using svg-path-bounds

normalize-svg-coords v1.0.2

19 Jul 16:08

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Honour min and max params

normalize-svg-coords v1.0.1

19 Jul 15:37

Choose a tag to compare

Normalize coordinates in an SVG path to a specified range.

Changes

  • Accepts array type viewboxes thanks to @dfcreative
  • No longer validates path length