layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

[Pattern] Improve canvas resolution

Open techniq opened this issue 8 months ago • 0 comments

Currently Pattern appears to display at a lower resolution/DPI when used within <Canvas> vs <Svg>

Svg Canvas
Image Image

(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
Image Image

techniq avatar May 01 '25 20:05 techniq