Releases (263)

@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)

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)
Previous
Page 1 of 27
Next