Repository navigation
layerchart@2.14.0
Minor Changes
-
feat(Chart): Add
paddingStateto the chart context, so a custom axis (or any mark drawing outside the plot) canreserve()room inpadding="auto"andrelease()it, and read which sides are'auto'fromautoSides(autoPaddingSidesis deprecated in its favor) (#1039) -
feat: Add
widthandheighttoshapeLabel()'s result, the size of the room it found (ex. for an image placed there) (#1032)
Patch Changes
-
fix(Axis): Measure labels again once styles injected on mount land (ex. Vite's dev server pre-bundling layerchart), so
padding="auto"andtickOcclusionno longer fit them at the browser's default font size until a resize (#1039) -
fix(Axis): Measure tick labels and titles with the
lc-textclass they're drawn with, sopadding="auto"andtickOcclusionfit labels sized through.lc-text(ex. shadcn-svelte's chart container) (#1038) (#1039) -
fix(Labels): Fade the other series'
layout="shape"labels while one is highlighted (ex. by hovering the legend), as their areas do (#1032)