-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
chore(): expose __corner
=> getActiveControl()
#9102
Conversation
Build Stats
|
@jiayihu I think this is good enough
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming suggestion are welcome (corener is misleading, a control can be anywhere)
besides that DONE
Sometimes you can have an active control without an active object, e.g. a hover button that can be clicked without first selecting the object. So ideally it should be Maybe the same method can be added to the canvas as this: getActiveControl() {
return this.getActiveObject()?.getActiveControl() ?? this._currentTransform?.target.getActiveControl()
} |
Good point
|
Motivation
I need to access
__corner
for many cases, sync interaction managers, selection etc.Description
expose
getActiveControl()
- naming might be betterChanges
Gist
In Action