-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: Add a BlockFlyoutInflater class. #8591
Conversation
core/block_flyout_inflater.ts
Outdated
private capacityFilter: (e: AbstractEvent) => void; | ||
|
||
constructor() { | ||
this.capacityFilter = (event: AbstractEvent) => { |
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.
Why is the capacity filter defined in the constructor instead of just another method?
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.
Because we need this
bound, but updated it to use the wrapper pattern used elsewhere thoughout the codebase.
The basics
The details
Resolves
Fixes #8541 and fixes #8542.
Proposed Changes
This PR adds a concrete implementation of IFlyoutInflater responsible for creating blocks in the flyout. It also includes the existing capacity filtering logic. Because recycling is not used in core, recycling support is not included; it will be added in a subclass in the continuous toolbox plugin.