layerchart@2.4.0
Minor Changes
-
feat(Axis): Add
tickOcclusionto drop ticks whose labels would overlap, measured at the size they render (including rotation), withpriorityof'end'(default),'start', or'start-end'to choose which survive (#909) -
feat(utils): Add
rotateand multiline support togetTextRect, so a rotated or stacked<Text>can be measured foroccludewithout the caller reproducing<Text>'s pivot (#909)
Patch Changes
-
fix(Area): Apply
mask,filter, andclip-pathto thelinepath as well as the fill (unless overrideden byline={{...}}) (#909) -
fix(Calendar): Adjust month labels after recent Text verticalAnchor improvements (#909)
-
fix(Calendar): Size cells to fit
monthPath, which can extend past the last cell when the range ends mid-month (#909) -
perf(Chart): Measure the container before building the subtree, so marks are only built once (#909)
-
fix(downloadImage, downloadSvg): Inline
stop-color/stop-opacityso gradients don't export as solid black (#909) -
fix(Chart): Return
undefinedfromxGet/yGetwhen that axis has no accessor, instead of throwingaccessor is not a function(#909) -
fix(Spline, Area): Animate each path when the mark is split by
z, whichmotionpreviously skipped — segments split by a style function are still redrawn outright (#909) -
fix(Path, Spline): Render
endContentwithout adrawtransition (#909)