Author Topic: [Suggestion] View>Mirror Axis change  (Read 248 times)

Pri Vacy

  • Jr. Member
  • **
  • Posts: 69
[Suggestion] View>Mirror Axis change
on: August 15, 2019, 10:20:42 PM
I attached a picture to better explain the concept.
What do you think?
The main difference is that the document won't change side if you mirror it while zoomed out or when moved to the left (for example when you are working with layers but also want to see the full picture). If the document fills the view, though, there won't be any changes.
Last Edit: August 15, 2019, 10:24:22 PM by Pri Vacy

Pri Vacy

  • Jr. Member
  • **
  • Posts: 69
Re: [Suggestion] View>Mirror Axis change
Reply #1 on: September 09, 2019, 06:35:11 PM
Actually a "+" has to take the place of the "-". Sorry about the inconvenience. It was intended to be an average but for some reasons it was not...
For best results consider "view" as the distance between the toolbars if they're visible, and whole view's width if not.

Uploaded a corrected version
Last Edit: September 09, 2019, 06:39:49 PM by Pri Vacy

Lucky Clan

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • Lucky Clan homepage
Re: [Suggestion] View>Mirror Axis change
Reply #2 on: September 10, 2019, 04:53:21 AM
If I undestand correctly - you mean to take left/right toolbar in to consideration when calculating Mirror pivot point, is it right?

Pri Vacy

  • Jr. Member
  • **
  • Posts: 69
Re: [Suggestion] View>Mirror Axis change
Reply #3 on: September 10, 2019, 09:29:07 AM
Yes, the distance between the toolbars is used when they are both visible (normal mode), the distance between the single toolbar and the edge of the screen is used in painting mode (and when the swatches/sliders bar is hidden) and the total viewport's width is used in fullscreen mode. When zoomed out, an average between the canvas' borders' x coordinates returns the x coordinate of the axis used for mirroring the canvas. I used the distance because it works exactly like the coordinates when the canvas is zoomed out but when the canvas is partially/totally offscreen it's better to use the screen's borders to perform the average, in order for the axis to never be offscreen.
Last Edit: September 10, 2019, 09:32:15 AM by Pri Vacy