Skip to content

Commit 9be671d

Browse files
Merge pull request #20980 from Snuffleupagus/CanvasExtraState-rm-preInit
Remove unused `preInit` parameter from the `CanvasExtraState` constructor (PR 19043 follow-up)
2 parents 777251d + 39dd02c commit 9be671d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/display/canvas.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@ class CanvasExtraState {
333333

334334
transferMaps = "none";
335335

336-
constructor(width, height, preInit) {
337-
preInit?.(this);
336+
minMax = MIN_MAX_INIT.slice();
338337

338+
constructor(width, height) {
339339
this.clipBox = new Float32Array([0, 0, width, height]);
340-
this.minMax = MIN_MAX_INIT.slice();
341340
}
342341

343342
clone() {

0 commit comments

Comments
 (0)