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

Make shape Objects editable after their placement on the Canvas #12

Open
filkovsp opened this issue Jun 17, 2020 · 2 comments
Open

Make shape Objects editable after their placement on the Canvas #12

filkovsp opened this issue Jun 17, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@filkovsp
Copy link
Owner

No description provided.

@filkovsp filkovsp added the enhancement New feature or request label Jun 17, 2020
@filkovsp filkovsp added this to the Enhanced user-experience milestone Jun 17, 2020
@filkovsp
Copy link
Owner Author

filkovsp commented Jun 17, 2020

couple example how to define if click point is in-/on/out- side the shape's area:

@filkovsp
Copy link
Owner Author

Create a method in each (suitable) shape, called catch().
Method should receive an argument - object {x, y} for the click-point.
Method should return true if shape catches the coordinates {x, y}, which means point is on a border or inside the shape.
Method should return false if point is outside the shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant