layerchart
layerchart copied to clipboard
[Pattern] Improve canvas resolution
Currently Pattern appears to display at a lower resolution/DPI when used within <Canvas> vs <Svg>
| Svg | Canvas |
|---|---|
(ignore the rounded Rect difference - #481).
Attempted to use scaleCanvas() like we use for the main Canvas but it would only result in a larger pattern being displayed:
I tried to scale it back down with patternCtx.scale(...) but nothing would produce the desired result.
One use case ATM is using Pattern with AnnotationRange, and the lower resolution isn't overly obvious.
| Svg | Canvas |
|---|---|