Stanislav Makarov

Results 2 issues of Stanislav Makarov

**Type of PR:** enhancement **PR checklist:** - [x] Addresses an existing issue: fixes #873 - [ ] Includes tests - [ ] Documentation update **Overview of change:** Migration to `fancy-canvas@2`.

breaking change

[`addListener`](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener) and [`removeListener`](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener) methods of [`MediaQueryList`](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList) are deprecated for years, but are still called by [`device-pixel-ratio.ts`](https://github.com/tradingview/fancy-canvas/blob/7ece7601f05b624496f485cee65789ad691427df/src/device-pixel-ratio.ts#L42). We should switch to `addEventListener`/`removeEventListener`.