Skip to content

Commit

Permalink
Merge pull request #18799 from Snuffleupagus/rm-more-getCanvas-trackT…
Browse files Browse the repository at this point in the history
…ransform

Remove `trackTransform` arguments from `CachedCanvases.getCanvas`-calls (PR 15281 follow-up)
  • Loading branch information
Snuffleupagus committed Sep 26, 2024
2 parents 3902a14 + fa2d7fc commit 6daaa2f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/display/pattern_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ class RadialAxialShadingPattern extends BaseShadingPattern {
const tmpCanvas = owner.cachedCanvases.getCanvas(
"pattern",
width,
height,
true
height
);

const tmpCtx = tmpCanvas.context;
Expand Down Expand Up @@ -360,8 +359,7 @@ class MeshShadingPattern extends BaseShadingPattern {
const tmpCanvas = cachedCanvases.getCanvas(
"mesh",
paddedWidth,
paddedHeight,
false
paddedHeight
);
const tmpCtx = tmpCanvas.context;

Expand Down Expand Up @@ -556,8 +554,7 @@ class TilingPattern {
const tmpCanvas = owner.cachedCanvases.getCanvas(
"pattern",
dimx.size,
dimy.size,
true
dimy.size
);
const tmpCtx = tmpCanvas.context;
const graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx);
Expand Down Expand Up @@ -614,8 +611,7 @@ class TilingPattern {
const tmpCanvas2 = owner.cachedCanvases.getCanvas(
"pattern-workaround",
xSize,
ySize,
true
ySize
);
const tmpCtx2 = tmpCanvas2.context;
const ii = redrawHorizontally ? Math.floor(width / xstep) : 0;
Expand Down

0 comments on commit 6daaa2f

Please sign in to comment.