Releases (259)

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)

layerchart@2.11.0

layerchart@2.11.0

Minor Changes

  • feat(Chart): Add perspective and orthographic views for 3D layers (ex. @layerchart/webgl) (#985)

  • feat(Chart): Add MarkInfo.zExtent, so a mark's own heights widen an automatic zDomain (#985)

  • feat: Export binCells, binGrid, and isScaleLinear for drawing marks in other layers (ex. @layerchart/webgl) (#985)

  • feat(TransformContext): Add rotationExtent (or rotateExtent / tiltExtent) to limit how far a drag turns a view or globe, and pass the turned rotation to constrain (#985)

Patch Changes

  • fix(TransformContext): Don't zoom in on the double click two quick drags make (#985)

  • fix(Highlight): Follow a domain pan or zoom at once rather than springing after it (#985)

  • fix(Axis): Space ticks evenly along every axis of an isometric chart, rather than wider along x (#985)

  • fix(Chart): Turn a panned isometric view about what's in the middle rather than the floor's center (#985)

  • refactor(isometric): Rename the view's impl to isometric, and IsometricImpl to Isometric (the old type name kept, deprecated) (#985)

  • fix(Spline, Area): Color by a numeric data key (stroke="value") without splitting into a line per value (#985)

  • fix(TooltipContext): Rebuild a quadtree tooltip once a domain pan or zoom settles, rather than at every step (#985)

  • fix(TransformContext): Zoom on a slightly diagonal shift scroll (ex. a trackpad swipe) rather than panning a domain sideways (#985)

  • fix(Tooltip): Appear at the pointer when shown again (ex. after a drag), rather than gliding from where it was last (#985)

@layerchart/webgl@2.11.0

@layerchart/webgl@2.11.0

Minor Changes

  • feat: New @layerchart/webgl package, drawing data-dense 2D charts and 3D views (perspective, lights and shadows, surfaces, globes, map terrain) with WebGL (#985)

layerchart@2.10.1

layerchart@2.10.1

Patch Changes

  • fix(Brush): Style the region and handle cursors with CSS instead of Tailwind classes (#991)

  • chore: Replace tailwind-merge with clsx (~42 KB smaller) (#991)

layerchart@2.10.0

layerchart@2.10.0

Minor Changes

  • chore: Require Svelte ^5.57.0, using Svelte's createContext in place of runed's Context (#969)

Patch Changes

  • fix(dagre): Publish type declarations for dagreGraph, dagreAncestors, and dagreDescendants (#969)

  • chore: Exclude tests, benchmarks, and screenshots from the published package (1.5 MB → 550 KB packed) (#969)

  • fix: Remove the runed dependency so npm installs work with both SvelteKit 2 and 3 (#969)

layerchart@2.9.2

layerchart@2.9.2

Patch Changes

  • perf(Chart): Batch mark registration so mounting many marks no longer scales with the square of the mark count (#971)

  • fix(Html): Clip at the chart's edge, as the SVG layer does, so content in the padding or panned and zoomed into view is no longer cut off (#982)

layerchart@2.9.1

layerchart@2.9.1

Patch Changes

  • fix(Chart): Facet a series' own data so each panel shows only its rows (#964)
Previous
Page 1 of 26
Next