Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symmetric mirroring of elements #169

Open
qindapao opened this issue Nov 26, 2023 · 2 comments
Open

Symmetric mirroring of elements #169

qindapao opened this issue Nov 26, 2023 · 2 comments

Comments

@qindapao
Copy link
Collaborator

qindapao commented Nov 26, 2023

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               /
                              ------'
@nkh
Copy link
Owner

nkh commented Dec 7, 2023

@qindapao

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

@qindapao
Copy link
Collaborator Author

qindapao commented Dec 8, 2023

@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.

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

No branches or pull requests

2 participants