-
-
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
feat(LayoutManager): BREAKING remove shouldResetTransform
logic from layoutManager
#9581
Changes from all commits
d8ee8a5
61e7572
c4c4b44
b1ad2df
312cd17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,9 +146,7 @@ export class ActiveSelection extends Group { | |
} | ||
|
||
/** | ||
* If returns true, deselection is cancelled. | ||
* @since 2.0.0 | ||
* @return {Boolean} [cancel] | ||
* @override remove all objects | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why removing the comment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the jsdoc concats the comments of the super method so there is no need, it is spam There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that is bad, because if i m just reading the codebase i can't concat anything There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And if you hover with your mouse? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah VSCODE does this, i m just not sure how it is supposed to be by the JSDOCS logic |
||
*/ | ||
onDeselect() { | ||
this.removeAll(); | ||
|
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.
The layoutManager.getLayoutResult is not using targets at all, it is using target.getObjects().
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.
hmmm
that is maybe something to discuss
targets are objects that changed (I think it is used only for subscribing)
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.
Adding or removing this line doesn't do anything else than helping TS, is also a bit confusing in the test definition that one test 'LAYOUT_TYPE_INITIALIZATION ' pass empty targets to override this one here while 'LAYOUT_TYPE_IMPERATIVE' doesn't.
Also on my vscode both '[]' and '[rect]' give a red error in typescript.
I will investigate this typing issue right after merging, i don't think a function that doesn't use 'targets' should requires it in the typings