Skip to content

Commit

Permalink
Scale on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikoat committed Aug 3, 2024
1 parent 5515e4f commit dcd3032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ export class Controls {
});

zoomHandler.translateTo(selection, 0, 0);

zoomHandler.scaleBy(selection, window.devicePixelRatio * 2);
}

// todo create method on the parent which applies transform instead of mutating the object directly.
Expand Down

0 comments on commit dcd3032

Please sign in to comment.