Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No nullable dp #1746

Merged
merged 12 commits into from
Dec 27, 2024
Merged

No nullable dp #1746

merged 12 commits into from
Dec 27, 2024

Conversation

Changed LegendTextSize and TooltipTextSize properties in LiveChartsSettings and IChartView from nullable doubles to non-nullable doubles with default values. Updated WithLegendTextSize and WithTooltipTextSize methods to accept non-nullable double parameters.
Modified LegendTextSize and TooltipTextSize properties in SKCartesianChart, SKPieChart, SKPolarChart, SKDefaultLegend, and SKDefaultTooltip from nullable double? to non-nullable double. Removed null checks and default value assignments in SKDefaultLegend and SKDefaultTooltip as these properties are now guaranteed to have a value.
Updated TooltipTextSizeProperty and LegendTextSizeProperty in
CartesianChart, PieChart, and PolarChart classes from double? to
double. Modified getters to return default values from
LiveCharts.DefaultSettings when necessary. Updated Avalonia
property registrations accordingly.
Changed the types of _legendTextSize and _tooltipTextSize fields and properties in the Chart class from double? to double. This ensures these fields and properties cannot hold null values, simplifying their handling and avoiding potential null reference issues.
Modified LegendTextSize and TooltipTextSize properties in Chart.cs
from nullable double (double?) to non-nullable double (double).
Updated DependencyProperty.Register calls and property definitions
to reflect this change, ensuring type consistency and avoiding
potential null value issues.
Changed LegendTextSize and TooltipTextSize in Chart class from
nullable double to non-nullable double. This ensures these
properties always have a value, preventing null reference
issues. Default values are set to LiveCharts.DefaultSettings.
Modified _legendTextSize and _tooltipTextSize fields and
properties in the Chart class from double? to double. This
ensures these fields and properties always hold a valid
double value, eliminating the possibility of null values.
Updated LegendTextSizeProperty and TooltipTextSizeProperty in CartesianChart, PieChart, and PolarChart to use double instead of object. Changed LegendTextSize and TooltipTextSize properties from nullable double? to non-nullable double. Getters now return default values from LiveCharts.DefaultSettings if null. Ensures type safety and default values for text size properties.
Updated LegendTextSize and TooltipTextSize properties in CartesianChart, PieChart, and PolarChart classes. Changed DependencyProperty registration type from object to double. Removed nullable type for these properties, now using non-nullable double. Added fallback to default settings if values are not set, ensuring consistent type and default values.
Updated LegendTextSize and TooltipTextSize properties in CartesianChart, PieChart, and PolarChart classes to use non-nullable double. Modified DependencyProperty registration for LegendTextSizeProperty and TooltipTextSizeProperty to change type from object to double. Getters now return default values from LiveCharts.DefaultSettings if property values are null.
@beto-rodriguez beto-rodriguez merged commit 4a0275b into dev Dec 27, 2024
2 of 4 checks passed
@beto-rodriguez beto-rodriguez deleted the no-nullable-dp branch December 27, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant