beto-rodriguez / LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
https://livecharts.dev
MIT License
4.38k stars 572 forks source link

Simplify Drawing API #1705

Open beto-rodriguez opened 3 days ago

beto-rodriguez commented 3 days ago

This PR simplifies the API in the core of the library that handles drawing.

A lot of objects in the core of the library use the generic argument TDrawingContext this argument in most of the cases is not necessary, that was added in early stages of the library, now it's time to refactor the code to make it cleaner.

There should not be breaking changes for the final user, but if you are using the LiveCharts API to draw directly on the canvas, then probably something will brake :(