Skip to content

Latest commit

 

History

History
69 lines (38 loc) · 1.89 KB

CHANGELOG.md

File metadata and controls

69 lines (38 loc) · 1.89 KB

v2.0.8 (08/31/2022)

  • Convert path's A/a command to bezier curve so that the bounding is more accurate
  • Separate tspan bounding handling functions for browser/node env

v2.0.7

  • Add a new Matrix util and migrate the code which uses the old simple matrix string parser;
  • Expand transform attribute of <path /> if calculating true bounding.

v2.0.6 (12/09/2019)

Fix an error when font-size of tspan is undefined.

v2.0.5 (11/27/2019)

Fix an error when parsing scientific notation like this "l-1.4e-1-38.4-29.3-1.7e-1-31.3,32.1"

v2.0.4 (11/18/2019)

Support adjacent fractional numbers without leading zeros, e.g. "l.495.495-3.181 3.182"

v2.0.3 (06/17/2019)

Fix wrong bounding box if a path segment's control/anchor points points lies on the same horizontal/vertical line

v2.0.2 (09/12/2017)

Fix elementObject doesn't return a gradient object in lib/element_object.js due to mixed letter case.

v2.0.1 (09/06/2017)

Fix wrong bounding box of <polygon> and <polyline> if their points attribute starts with spaces.

v2.0.0 (06/23/2017)

boundingOfImage method accepts an <image> node as parameter.

v1.3.1 (04/11/2017)

No need to trim font size value.

v1.3.0 (02/28/2017)

Refactor and more elements support.

  • Add an option for returning true bounding box of <ellipse> with transform property;
  • Support <text> bounding;
  • Support <linearGradient> and <radialGradient> boundings;
  • Use element object to eliminate differences between browser DOM element and cheerio node.

v1.2.0 (01/23/2017)

Add image bounding.

v1.1.1 (03/31/2016)

Add true bounding box option for the generic boundingRectOfShape method.

v1.1.0 (03/28/2016)

Add shouldReturnTrueBounding option for boundingRectOfPath.

v1.0.1 (12/31/2015)

Fix the following bugs.

  • Return 0 when <rect> element is missing x or y property;
  • Check numbers using scientific notation.