chore(deps): update vico to v3.3.0-next.2 - #6596
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3.0-next.1→3.3.0-next.23.3.0-next.1→3.3.0-next.2Release Notes
patrykandpatrick/vico (com.patrykandpatrick.vico:compose-m3)
v3.3.0-next.2Overview
Changes
CartesianChartHostandPieChartHostgain achartAreaHeightparameter, which sets the default height of the coordinate system (for Cartesian charts) or the default pie diameter (for pie charts). The legend, the marker, the axis margins, and other components now add to this height rather than being fitted inside a capped total height. The defaults are 192 dp for Cartesian charts and 232 dp for pie charts.Modifier.heightand similar still constrain the component bounds.MeasuringContext.canvasSizein favor ofMeasuringContext.canvasWidth. WithchartAreaHeight, the canvas height isn’t necessarily known during measuring. When drawing, read the full size fromDrawingContext.canvasSize, narrowing your receiver fromMeasuringContexttoDrawingContextwhere needed. See the deprecation messages for more.BaseAxis.Size.Fraction. Its main use case—keeping the chart area’s height constant as the x-axis height changes—is now served bychartAreaHeight. Relatedly,HorizontalAxis’s automatic-height cap is now a fixed 64 dp instead of a fraction of the canvas height.3.3.0-next.1breaking changes. AllVicoScrollStateconstructor parameters now have defaults, matchingrememberVicoScrollState, so direct construction no longer requiresxSnapStepandsnapAnimationSpec.titlePositionmoved to the end of theHorizontalAxisandVerticalAxisfactory,copy, and constructor signatures, so positional calls that passtickPositionandlineDrawingOrderkeep compiling.minXorxStepchanges),VicoScrollStaterecomputes the scroll value so the same x-coordinates stay on screen, keeping prepended history from jumping the viewport to the start edge. The correction runs during measurement, so the adjusted value is used by the frame that draws the new data, and it works in both LTR and RTL layouts.VicoScrollStatescroll-position regressions. The scroll anchor no longer drifts by the trimmed amount when data is removed from the start side while the scroll is pinned to the end, and a zoom’s stale scroll compensation is no longer applied when a pinch transitions straight into a pan or fling.UpdateReceiverleak when a chart’s identity changes. Registration, transformation, and unregistration withCartesianChartModelProducernow use the effect-stable chart ID rather than a value that mutates on recomposition.PieChartslice spacing, which now yields a constant-width gap for both donuts and holeless pies instead of widening toward the outer edge or collapsing at the center.PieChartnow reserves vertical space forSliceLabel.Outsidelabels instead of shrinking the pie to fit them inside the chart bounds.pieSeriesin favor ofpieModel, aligning the pie API with thecandlestick,column, andlinetransaction functions.ShapeComponentdrawing performance. ResolvedOutlines are now drawn directly instead of being replayed into a reusablePath, so rectangles and rounded rectangles skip path construction entirely.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.