Skip to main content

Home > blockly > VerticalFlyout

VerticalFlyout class

Class for a flyout.

Signature:

export declare class VerticalFlyout extends Flyout 

Extends: Flyout

Constructors

ConstructorModifiersDescription
(constructor)(workspaceOptions)Constructs a new instance of the VerticalFlyout class

Properties

PropertyModifiersTypeDescription
registryNamestaticstringThe name of the vertical flyout in the registry.

Methods

MethodModifiersDescription
getClientRect()Returns the bounding rectangle of the drag target area in pixel units relative to viewport.
getX()Calculates the x coordinate for the flyout position.
getY()Calculates the y coordinate for the flyout position.
isDragTowardWorkspace(currentDragDeltaXY)Determine if a drag delta is toward the workspace, based on the position and orientation of the flyout. This is used in determineDragIntention_ to determine if a new block should be created or if the flyout should scroll.
layout_(contents)protectedLay out the blocks in the flyout.
position()Move the flyout to the edge of the workspace.
reflowInternal_()protectedCompute width of flyout. For RTL: Lay out the blocks and buttons to be right-aligned.
scrollToStart()Scroll the flyout to the top.
setMetrics_(xyRatio)protectedSets the translation of the flyout to match the scrollbars.
wheel_(e)protectedScroll the flyout.