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

Fix bounds #922

Closed
wants to merge 4 commits into from
Closed

Conversation

adrianhartanto0
Copy link

To close #848. I am not completely sure if this is the best solution. There is one test case in droptarget-spec.js that fails and I'm not rather sure how to fix it. Waiting for your comments. I haven't deleted Entity in this case. I'll do it once this solution is alright

Adrian and others added 4 commits February 15, 2018 12:00
…ite Bounding Rect

allows to properly takes in account anchor and transform for any me.Sprite object (including me.GUI), including proper detection of pointer Events.

this is first partial implementation only for me.Sprite objects, as applying the same to the base me.Renderable class will trigger further breaking changes in me.Entity

TODO :
- me.Renderable class, including me.Entity
- properly fix the debugPanel (Sprite BB drawing is off for now)
@obiot
Copy link
Member

obiot commented Feb 21, 2018

Hi Adrian, looks good !

Couple of things :

  • I see you removed the body drawing from the debugPanel, this should now be added back in case its' existing on any renderable :)
  • let's not remove me.Entity, to at least provide some backward compatibility in terms of API
  • draggable should work, I will look into it, also keep in mind that isKinematic needs to be set to false to enable pointer event

@obiot
Copy link
Member

obiot commented Feb 21, 2018

I also commented on the other pull request (I see this one also includes the changes on me.Sprite, so let's try to close the other one first, so that this one can reflect it too)

@obiot
Copy link
Member

obiot commented Jul 22, 2020

see #1008

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

Successfully merging this pull request may close these issues.

2 participants