Skip to main content

Home > blockly > IBubble

IBubble interface

A bubble interface.

Signature:

export interface IBubble extends IDraggable, IContextMenu, IFocusableNode 

Extends: IDraggable, IContextMenu, IFocusableNode

Methods

MethodDescription
dispose()Dispose of this bubble.
getRelativeToSurfaceXY()Return the coordinates of the top-left corner of this bubble's body relative to the drawing surface's origin (0,0), in workspace units.
getSvgRoot()Return the root node of the bubble's SVG group.
moveDuringDrag(newLoc)Move this bubble during a drag.
moveTo(x, y)Move the bubble to the specified location in workspace coordinates.
setDeleteStyle(enable)Update the style of this bubble when it is dragged over a delete area.
setDragging(dragging)Sets whether or not this bubble is being dragged.