P5-App-Asciio icon indicating copy to clipboard operation
P5-App-Asciio copied to clipboard

Symmetric mirroring of elements

Open qindapao opened this issue 2 years ago • 2 comments

Symmetric mirroring of elements

  • Create 1 axis of symmetry, horizontal or vertical. There can be at most one axis of symmetry in the canvas.
  • Select the element and create a symmetrical mirror element based on the current axis of symmetry, either left or right, or top and bottom
  • Primitive and symmetrical elements are like seeing each other in a mirror. All coordinates and characters are mirror images
  • Since there are specific rules for creating elements, the mirrored elements may appear abnormal. Currently, only the box or circle itself is symmetrical. This can be problematic if you encounter elements that are inherently asymmetrical.
  • A restriction can be made that only elements that are symmetrical can create mirror element objects. Or a certain element has its own symmetry element(Create a new element that is symmetrical to the original element).For example, the progress box itself is asymmetrical.Changing strip directly will definitely cause an exception.We may need to create another mirror box for it.
  ____________
 /           /
( ereh ma i ( 
 \___________\

                     y mirror axis
                         |
                         |
                         |
                         |
                         |
                .-----   |   ------.
               /         |          \
              /          |           \
             '           |            '
        ____________     |     ____________  
        \           \    |    /           /  
         ) i am here )   |   ( ereh ma i (   
        /___________/    |    \___________\  
                         |
                   .---. | .---.
                   |   | | |   |
                   '---' | '---'
                         |



                              ------.
                     c               \
                b                     \
            a                          '
----------------------------------------------------  x mirror axis
            a                          .
                b                     /
                     c               /
                              ------'

qindapao avatar Nov 26 '23 05:11 qindapao

@qindapao

An asymetrical elements, and symetrical, is best handled as new element that nests a copy of the original element.

nkh avatar Dec 07 '23 09:12 nkh

@nkh Ok, I understand what you mean.But this demand is generally of little use. Maybe I will finish it one day in the future.

qindapao avatar Dec 08 '23 02:12 qindapao