Skip to content

Add zooming & fix frame sizing#206

Open
westito wants to merge 2 commits into
aloisdeniel:masterfrom
westito:add-zooming
Open

Add zooming & fix frame sizing#206
westito wants to merge 2 commits into
aloisdeniel:masterfrom
westito:add-zooming

Conversation

@westito
Copy link
Copy Markdown

@westito westito commented Nov 1, 2022

  • device_frame: I fixed the size handling of device frames. The specified frameSize and the painted dimensions were twice as big as should be. This is necessary to eliminate scaling. The behaviour can be changed by DeviceFrame(fitContainer) parameter. The default value is true, so nothing changes to current users. If fitContainer set to false, the screenSize is used to calculate whole device frame (scales by ratio of screenSize and screenPath).
  • device_preview: I added a zoom control to the tool panel. Defaults to fit the screen, so nothing changes to current users. When zoom enabled, the device frame is wrapped into a InteractiveViewer with scaling disabled (scaling handled by zoom control). The device can be moved outside the frame and panning is ignored inside that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant