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

How could items in groupItems communicate/interact #130

Open
helloearth012 opened this issue Jul 4, 2017 · 0 comments
Open

How could items in groupItems communicate/interact #130

helloearth012 opened this issue Jul 4, 2017 · 0 comments

Comments

@helloearth012
Copy link

My groupItems has two items: rectangle and point

  1. When insert, I would draw a rectangle, after this action is done, I hope a point could be drew automatically in the bottom left corner of this rectangle.
  2. After insertion is done, it's visualization phase. No matter how I move/resize the rectangle, the point should always in the bottom left corner of this rectangle. But I should be able to slide the point on the bottom line of the rectangle.

Above operation involves communication between groupItems, since point needs to know the coordinates of rectangle to draw. However, in current code, it seems even for groupItems, each item is isolated. How could I make two items interact and communicate in current framework.

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

No branches or pull requests

1 participant