v1.0.12
Added 1
- CSS Color 4/5 support at every canvas color site, matching Chrome
Changed 3
- Update dependency skia-canvas to v4
- Build Skia with Chrome's CPU raster defines and blitters
- Update Rust toolchain to v1.99.1
Fixed 16
- Preserve fractional global alpha through native paints
- Preserve pattern snapshots and honor current image sampling quality
- Enable dithering for gradient fill and stroke paints
- Retain display-p3 backing surfaces through context acquisition and resize
- Match Chrome WebIDL conversion for ImageData, getContext and createPattern
- Match Chrome for hsl() colors and gradient edge cases
- Match Chrome for ImageData patterns and SvgCanvas reads
- Reset style getters on resize, tag AVIF color and produce exact PDF alpha
- Match Chrome for alpha:false, clearRect and 'copy' composition
- Draw Image sources from Chrome's decode-cache levels
- Make non-finite argument handling crash-safe, and correct ImageData sizes and DOMMatrixInit
- Match Chrome for WebIDL conversion, arity checks and exceptions
- Make ImageData and get/put/createImageData work like Chrome
- Make paths, clips, roundRect and setTransform work like Chrome
- Make style getters, shadowColor and canvas sizes work like Chrome
- Make gradients and SVG conic export work like Chrome
From @napi-rs/canvas
What's Changed
- fix(canvas): preserve fractional global alpha through native paints by @natew in https://github.com/Brooooooklyn/canvas/pull/1355
- fix(canvas): preserve pattern snapshots and honor current image sampling quality by @natew in https://github.com/Brooooooklyn/canvas/pull/1357
- fix(canvas): enable dithering for gradient fill and stroke paints by @natew in https://github.com/Brooooooklyn/canvas/pull/1358
- fix: retain display-p3 backing surfaces through context acquisition and resize by @natew in https://github.com/Brooooooklyn/canvas/pull/1359
- chore(deps): update dependency skia-canvas to v4 by @renovate[bot] in https://github.com/Brooooooklyn/canvas/pull/1356
- fix(canvas): WebIDL conversion for ImageData, getContext, createPattern by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1361
- fix(canvas): match Chrome for hsl() colors and gradient edge cases by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1362
- fix(canvas): ImageData patterns and SvgCanvas reads like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1363
- fix: reset style getters on resize, tag AVIF color, exact PDF alpha by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1364
- fix(canvas): match Chrome for alpha:false, clearRect and 'copy' by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1365
- feat(skia): build Skia with Chrome's CPU raster defines and blitters by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1366
- fix(canvas): draw Image sources from Chrome's decode-cache levels by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1367
- chore(deps): update rust to v1.99.1 by @renovate[bot] in https://github.com/Brooooooklyn/canvas/pull/1369
- fix: crash-safe non-finite args, ImageData sizes, DOMMatrixInit by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1372
- fix(canvas): WebIDL conversion, arity checks and exceptions like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1373
- fix(imagedata): ImageData and get/put/createImageData work like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1374
- fix(canvas): paths, clips, roundRect and setTransform work like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1375
- fix(canvas): style getters, shadowColor and canvas sizes like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1376
- fix(canvas): gradients and SVG conic export work like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1377
- feat(color): CSS Color 4/5 at every canvas color site, like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1378
- fix(canvas): compositing, shadows, drawCanvas and filters like Chrome by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1379
- fix(codecs): Chrome's encoders, AVIF decode, data: URLs and SVG images by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1380
- fix(canvas): parse fonts, lay out and measure text like Blink by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1381
- feat(canvas): rasterize text like Chrome with CoreText and Fontations by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1382
- feat(canvas): float16 canvas storage and float ImageData formats by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1383
- feat(svg): draw SVG images like Chrome: CSS, var(), , by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1384
- fix(deps): update rust crate font-types to v0.12.7 by @renovate[bot] in https://github.com/Brooooooklyn/canvas/pull/1386
- fix(deps): pin font-types back to Skia's 0.12.0 by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1388
- feat(canvas): write DPI and text metadata in toBuffer, encode and encodeSync by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1390
- feat: chrome/m157 by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1391
- chore: remove the benchmark by @Brooooooklyn in https://github.com/Brooooooklyn/canvas/pull/1393
New Contributors
- @natew made their first contribution in https://github.com/Brooooooklyn/canvas/pull/1355
Full Changelog: https://github.com/Brooooooklyn/canvas/compare/v1.0.11...v1.0.12