Class for a trash can.
The workspace to sit in.
The trashcan flyout.
The unique id for this component that is used to register with the ComponentManager.
Current open/close state of the lid.
Hides the component. Called in Blockly.hideChaff.
Whether only popups should be closed. Flyouts should not be closed if this is true.
Inspect the contents of the trash.
Closes the trashcan flyout.
Flip the lid shut. Called externally after a drag.
Returns true if the trashcan contents-flyout is currently open.
True if the trashcan contents-flyout is currently open.
Empties the trashcan's contents. If the contents-flyout is currently open it will be closed.
Initializes the trash can.
Handles when a cursor with a block or bubble enters this drag target.
The block or bubble currently being dragged.
Handles when a cursor with a block or bubble exits this drag target.
The block or bubble currently being dragged.
Handles when a cursor with a block or bubble is dragged over this drag target.
The block or bubble currently being dragged.
Handles when a block or bubble is dropped on this component. Should not handle delete here.
The block or bubble currently being dragged.
Opens the trashcan flyout.
Returns whether the provided block or bubble should not be moved after being dropped on this component. If true, the element will return to where it was when the drag started.
The block or bubble currently being dragged.
Whether the block or bubble provided should be returned to drag start.
Returns whether the provided block or bubble would be deleted if dropped on this area. This method should check if the element is deletable and is always called before onDragEnter/onDragOver/onDragExit.
The block or bubble currently being dragged.
Whether the element could could connect to another.
Whether the element provided would be deleted if dropped on this area.
Fake class which should be extended to avoid inheriting static properties