Releases (265)

layerchart@2.16.0

layerchart@2.16.0

Minor Changes

  • feat(Chart): Add lazy to build a chart only once its container nears the viewport, with a placeholder snippet shown until then and a lazy setting to make it the default for every chart (#996)

Patch Changes

  • fix: Read data keys containing a period (e.g. y="temp.max") as a flat key before falling back to a nested path (#1040) (#1043)

@layerchart/webgl@2.15.0

@layerchart/webgl@2.15.0

Minor Changes

  • feat: Support nearly all of LayerChart's components, including the simplified charts (BarChart, LineChart, ...), facets, radial charts, clip paths, gradients, patterns, and Blur (#1036)

  • feat: Marks take core's props, including motion, draw, markers, dashes, classes, series props, and pointer events (#1036)

  • feat: Layer-agnostic marks and Layer (type="webgl"), drawing core's versions in Svg, Canvas, and Html layers so one chart can switch between all four; import WebGL-only marks from @layerchart/webgl/webgl (#1036)

  • feat: Re-export all of layerchart, so a chart needs only @layerchart/webgl (#1036)

Patch Changes

  • fix: Marks look as they do in a Canvas layer, including default colors, class styles, axes, text, isometric charts, and geo fills (#1036)

  • perf(Text): Reuse label paintings, so charts with many labels drag faster (#1036)

  • Updated dependencies [e87111f, e87111f, e87111f, e87111f, e87111f]:

    • layerchart@2.15.0

layerchart@2.15.0

layerchart@2.15.0

Minor Changes

  • feat: layerchart/base exports the layer-agnostic bases of LayerChart's marks and charts, and settings.layer accepts webgl, for @layerchart/webgl (#1036)

Patch Changes

  • fix: Restore LinearGradient and Pattern fills and strokes in Canvas layers (#1036)

  • fix(Canvas): Paints marks mounted after their siblings (ex. inside an {#if}) where they're declared (like Svg), rather than on top (#1036)

  • fix(LinearGradient): Lay out across each shape it paints in Canvas and Html layers (with x1 / y1 / x2 / y2 and rotate), as in Svg (#1036)

  • fix: Marks draw nothing outside an Svg, Canvas, or Html layer rather than throw, and GeoPoint draws in an Html layer (#1036)

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)

layerchart@2.13.0

layerchart@2.13.0

Minor Changes

  • feat(Labels): Add layout="shape" to label each GeoJSON feature or series area where it has the most room (#1023)

  • feat: Add shapeLabel() util to find where to label a shape (the point inside it farthest from its edges), with aspect, fit (the largest circle, or square or rectangle), centroidWeight, minDistance and prefer options (#1023)

  • feat(Voronoi): Add clip to cut cells to a shape (ex. a GeoJSON feature) (#1023)

Patch Changes

  • fix(Area): Fade the other areas while a legend item for a c category is hovered, as lines, points and bars do (#1023)

  • fix(GeoTile): Draw part of a loaded ancestor's image in a tile's place while its own loads, rather than leaving it empty. (#1024)

  • fix(Labels): Type data as an array of the items its value and fill accessors receive (#1023)

  • fix: Top each stackExpand stack at exactly 100%, so the axis no longer rounds up to 110% (#1023)

  • fix(TransformContext): zoomTo(center, rect) fits the whole rect in view, rather than only its height in a wide chart (or width in a tall one) (#1023)

@layerchart/webgl@2.13.0

@layerchart/webgl@2.13.0

Patch Changes

  • fix(GeoTile): Raise detailed tiles from elevation two zooms up, so turning a 3D view doesn't keep reloading it (#1024)

  • fix(GeoTile): Keep coarser tiles from showing through sharper ones in low ground (ex. a canyon) while tiles load (#1024)

  • fix(GeoTile): Stop zooming out from leaving holes while tiles load (#1024)

  • fix(WebGL): Pan a perspective view by dragging the ground under the pointer, rather than by a fixed amount that lags behind farther terrain (#1024)

  • fix(WebGL): Turn a zoomed-in perspective view about where it last zoomed towards, rather than about a point that drifts off beside the camera (#1024)

  • fix(WebGL): Zoom a perspective view towards what's under the pointer, rather than towards a fixed point that can be inside the terrain (#1024)

  • Updated dependencies [396a23d, 3597609, 396a23d, 396a23d, 396a23d, 396a23d, 396a23d, 396a23d]:

    • layerchart@2.13.0

layerchart@2.12.0

layerchart@2.12.0

Minor Changes

  • feat(Chart): Support padding="auto" (or per side, ex. padding={{ left: 'auto' }}) to fit the axis tick labels and title (#1011)

  • feat(Treemap): Add selected prop to zoom into a node without distorting tiles or padding (#1017)

Patch Changes

  • fix(Chart): Allow padding derived from the bound xDomain / yDomain without a derived_references_self error (#1009) (#1011)

  • fix(Axis): Measure tickOcclusion labels in the font they render in, so labels enlarged by a class (ex. text-lg) don't overlap (#1011)

  • chore: Remove d3-dsv, d3-geo-polygon and d3-sankey dependencies, dropping 12 packages (~2.9 MB) from installs, including the command-line-only commander, iconv-lite and rw, and older duplicate versions of d3-array, d3-shape and d3-path (sankeyGraphFromCsv() no longer handles quoted fields) (#1010)

Previous
Page 1 of 27
Next