mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
fix: Codify component weights with toolbox in front of flyouts. (#8432)
This commit is contained in:
@@ -224,6 +224,16 @@ export class ComponentManager {
|
||||
}
|
||||
|
||||
export namespace ComponentManager {
|
||||
export enum ComponentWeight {
|
||||
// The toolbox weight is lower (higher precedence) than the flyout, so that
|
||||
// if both are under the pointer, the toolbox takes precedence even though
|
||||
// the flyout's drag target area is large enough to include the toolbox.
|
||||
TOOLBOX_WEIGHT = 0,
|
||||
FLYOUT_WEIGHT = 1,
|
||||
TRASHCAN_WEIGHT = 2,
|
||||
ZOOM_CONTROLS_WEIGHT = 3,
|
||||
}
|
||||
|
||||
/** An object storing component information. */
|
||||
export interface ComponentDatum {
|
||||
component: IComponent;
|
||||
@@ -232,4 +242,6 @@ export namespace ComponentManager {
|
||||
}
|
||||
}
|
||||
|
||||
export type ComponentWeight = ComponentManager.ComponentWeight;
|
||||
export const ComponentWeight = ComponentManager.ComponentWeight;
|
||||
export type ComponentDatum = ComponentManager.ComponentDatum;
|
||||
|
||||
Reference in New Issue
Block a user