Skip to content

Commit

Permalink
refactor!: Update flyouts to use inflaters. (#8601)
Browse files Browse the repository at this point in the history
* refactor: Update flyouts to use inflaters.

* fix: Specify an axis when creating flyout separators.

* chore: Remove unused import.

* chore: Fix tests.

* chore: Update documentation.

* chore: Improve code readability.

* refactor: Use null instead of undefined.
  • Loading branch information
gonfunko authored Oct 2, 2024
1 parent e5c1a89 commit e777086
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 704 deletions.
12 changes: 12 additions & 0 deletions core/blockly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ import {
} from './field_variable.js';
import {Flyout} from './flyout_base.js';
import {FlyoutButton} from './flyout_button.js';
import {FlyoutSeparator} from './flyout_separator.js';
import {IFlyoutInflater} from './interfaces/i_flyout_inflater.js';
import {BlockFlyoutInflater} from './block_flyout_inflater.js';
import {ButtonFlyoutInflater} from './button_flyout_inflater.js';
import {LabelFlyoutInflater} from './label_flyout_inflater.js';
import {SeparatorFlyoutInflater} from './separator_flyout_inflater.js';
import {HorizontalFlyout} from './flyout_horizontal.js';
import {FlyoutMetricsManager} from './flyout_metrics_manager.js';
import {VerticalFlyout} from './flyout_vertical.js';
Expand Down Expand Up @@ -510,6 +516,12 @@ export {
export {Flyout};
export {FlyoutButton};
export {FlyoutMetricsManager};
export {FlyoutSeparator};
export {IFlyoutInflater};
export {BlockFlyoutInflater};
export {ButtonFlyoutInflater};
export {LabelFlyoutInflater};
export {SeparatorFlyoutInflater};
export {CodeGenerator};
export {CodeGenerator as Generator}; // Deprecated name, October 2022.
export {Gesture};
Expand Down
Loading

0 comments on commit e777086

Please sign in to comment.