LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.dev
BSD 2-Clause "Simplified" License
4.36k stars 217 forks source link

LibWeb: Initial support for dashed lines in Canvas #275

Closed simonkrauter closed 6 days ago

simonkrauter commented 6 days ago

Implement setLineDash() and getLineDash() in CanvasPathDrawingStyles, which write/read from the CanvasState object. This doesn't implement the actual drawing of a dashed line, but at least sites using the Chart.js library no longer fail with an exception. Unfortunately the Painter classes don't support dashed/dotted lines based on segments yet.