-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose the scale value from Renderer. (#444)
Rationale: It is possible to set the scale on a PaintCx, but not to restore it to its previous value, and `PaintCx.save()` and `PaintCx.restore()` do not handle it, since it is writing directly to a property of the underlying renderer. Use-case: In order to debug layout issues, it is useful to be able to scale a component's content down, render it that way and observe if there is any painting outside the expected bounds.
- Loading branch information
1 parent
ab28c54
commit 1a4fc03
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters