Skip to content

Commit

Permalink
fix image max size
Browse files Browse the repository at this point in the history
  • Loading branch information
leaferjs committed Nov 30, 2023
1 parent 53b494e commit ac3978f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/partner/paint/src/paint/image/pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function createPattern(ui: IUI, paint: ILeafPaint, pixelRatio: number): b
if (maxSize > imageSize) maxSize = imageSize
}

if (size > maxSize) imageScale = size / maxSize
if (size > maxSize) imageScale = Math.sqrt(size / maxSize)

if (imageScale) {
scaleX /= imageScale
Expand Down

0 comments on commit ac3978f

Please sign in to comment.