-
-
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(TS): Group #8455
chore(TS): Group #8455
Conversation
Build Stats
|
commit 7e7e6e7 Merge: 050ea1a d02fbf0 Author: ShaMan123 <[email protected]> Date: Sun Nov 20 15:23:30 2022 +0200 Merge branch 'master' into fix-transformer commit 050ea1a Author: ShaMan123 <[email protected]> Date: Tue Nov 1 08:30:56 2022 +0200 fix mixin parsing commit 44eb941 Author: ShaMan123 <[email protected]> Date: Tue Nov 1 07:45:16 2022 +0200 Update index.mjs commit 450e795 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 23:51:18 2022 +0200 Update CHANGELOG.md commit 9345400 Merge: 459e72f 2c0817b Author: ShaMan123 <[email protected]> Date: Mon Oct 31 23:49:25 2022 +0200 Merge branch 'master' into fix-transformer commit 459e72f Merge: f9071cf 5d95075 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 23:33:32 2022 +0200 Merge branch 'master' into fix-transformer commit f9071cf Author: ShaMan123 <[email protected]> Date: Mon Oct 31 21:52:32 2022 +0200 Update transform_files.mjs commit 6ebf5ff Author: ShaMan123 <[email protected]> Date: Mon Oct 31 20:31:18 2022 +0200 Update transform_files.mjs commit 6433c0b Author: ShaMan123 <[email protected]> Date: Mon Oct 31 20:09:43 2022 +0200 Update transform_files.mjs commit 5793489 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 20:01:55 2022 +0200 Update transform_files.mjs commit 06a12b0 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 19:39:23 2022 +0200 Update transform_files.mjs commit 4111587 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 19:37:41 2022 +0200 Create out.ts commit a2f29c0 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:56:48 2022 +0200 Update transform_files.mjs commit 6587d19 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:49:32 2022 +0200 Update transform_files.mjs commit c3bf999 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:45:46 2022 +0200 Update transform_files.mjs commit 8105167 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:37:17 2022 +0200 Update transform_files.mjs commit b8de8aa Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:34:27 2022 +0200 Update transform_files.mjs commit 2d1d1da Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:22:47 2022 +0200 Update transform_files.mjs commit 781fe55 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:18:01 2022 +0200 Update transform_files.mjs commit daf443f Author: ShaMan123 <[email protected]> Date: Mon Oct 31 18:16:48 2022 +0200 Update transform_files.mjs commit 3c55455 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 17:41:30 2022 +0200 Update transform_files.mjs commit f567fcf Author: ShaMan123 <[email protected]> Date: Mon Oct 31 17:24:54 2022 +0200 Update transform_files.mjs commit 9ab2ea3 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 17:16:13 2022 +0200 Update transform_files.mjs commit b3c73d1 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 17:10:30 2022 +0200 Update transform_files.mjs commit f6d9031 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 16:51:10 2022 +0200 Update transform_files.mjs commit 6208499 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 15:51:00 2022 +0200 Update transform_files.mjs commit 483379a Author: ShaMan123 <[email protected]> Date: Mon Oct 31 13:38:10 2022 +0200 static commit 316ba1a Author: ShaMan123 <[email protected]> Date: Mon Oct 31 13:28:03 2022 +0200 Update transform_files.mjs commit bcb3124 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 12:00:43 2022 +0200 Update transform_files.mjs commit 1d555ad Author: ShaMan123 <[email protected]> Date: Mon Oct 31 11:53:37 2022 +0200 Update transform_files.mjs commit 5a04341 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 11:38:11 2022 +0200 Update transform_files.mjs commit 322c271 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 10:13:37 2022 +0200 Update transform_files.mjs commit 9b7f6f9 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 09:57:55 2022 +0200 Update transform_files.mjs commit e86aa95 Author: ShaMan123 <[email protected]> Date: Mon Oct 31 08:32:27 2022 +0200 Update transform_files.mjs commit f23227f Author: ShaMan123 <[email protected]> Date: Mon Oct 31 08:26:14 2022 +0200 ast!
@asturur do you want me to extract the layout mechanism to a standalone class in a dedicated PR? |
This reverts commit 9f187cb.
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.
Ready to extract layout mechanism or to merge
(obj) => obj instanceof Collection && obj.contains(object, true) | ||
(obj) => | ||
obj instanceof Collection && | ||
(obj as unknown as Collection).contains(object, true) |
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.
TS doesn't manage to cope with this line
_renderControls( | ||
ctx: CanvasRenderingContext2D, | ||
styleOverride?: ControlRenderingStyleOverride, | ||
childrenOverride?: ControlRenderingStyleOverride |
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.
guessed these types
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.
seems correct
* keeps track of the selected objects | ||
* @private | ||
*/ | ||
__objectSelectionMonitor(selected: boolean, opt) { |
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.
opt
can be typed when #8431 is merged
This PR finalizes shapes! |
Once this PR is merged I will convert all Group PRs to TS. |
I would like to do that, because that is the only way for me to settle on what to do with those layout strategies. |
*/ | ||
_onAfterObjectsChange(type: 'added' | 'removed', targets: FabricObject[]) { | ||
// @TODO figure out this change. This part wasn't here before migration. | ||
super._onAfterObjectsChange(type, targets); |
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.
I m merging now, but i wonder why we added this line here.
This adds an extra layout call that we weren't doing before?
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.
Yes, correct.
It was a bug that I fixed in a pending PR so I decided to put it here
Motivation
Description
Migrate Group & ActiveSelection
Changes
fromObject
4e8db1aRect
TObject
stub typesGist
Will have conflicts with #8431 - should resolve with
union
strategy, sort of. I can do itIn Action