- 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
- 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.
Fix an error when font-size of tspan is undefined.
Fix an error when parsing scientific notation like this "l-1.4e-1-38.4-29.3-1.7e-1-31.3,32.1"
Support adjacent fractional numbers without leading zeros, e.g. "l.495.495-3.181 3.182"
Fix wrong bounding box if a path segment's control/anchor points points lies on the same horizontal/vertical line
Fix elementObject
doesn't return a gradient object in lib/element_object.js
due to mixed letter case.
Fix wrong bounding box of <polygon>
and <polyline>
if their points
attribute starts with spaces.
boundingOfImage
method accepts an <image>
node as parameter.
No need to trim font size value.
Refactor and more elements support.
- Add an option for returning true bounding box of
<ellipse>
withtransform
property; - Support
<text>
bounding; - Support
<linearGradient>
and<radialGradient>
boundings; - Use element object to eliminate differences between browser DOM element and cheerio node.
Add image bounding.
Add true bounding box option for the generic boundingRectOfShape
method.
Add shouldReturnTrueBounding
option for boundingRectOfPath
.
Fix the following bugs.
- Return
0
when<rect>
element is missingx
ory
property; - Check numbers using scientific notation.