All releases

layerchart@2.14.0

layerchart@2.14.0

Minor Changes

  • feat(Chart): Add paddingState to the chart context, so a custom axis (or any mark drawing outside the plot) can reserve() room in padding="auto" and release() it, and read which sides are 'auto' from autoSides (autoPaddingSides is deprecated in its favor) (#1039)

  • feat: Add width and height to shapeLabel()'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" and tickOcclusion no longer fit them at the browser's default font size until a resize (#1039)

  • fix(Axis): Measure tick labels and titles with the lc-text class they're drawn with, so padding="auto" and tickOcclusion fit 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)