See the 2022 Blockly Developer Summit site here.

Namespace: bumpObjects

Methods

bumpIntoBounds

static

bumpIntoBounds(workspace, scrollMetrics, object) returns boolean

Bumps the given object that has passed out of bounds.

Parameter

workspace

Blockly.WorkspaceSvg

The workspace containing the object.

Value must not be null.

scrollMetrics

Blockly.MetricsManager.ContainerRegion

Scroll metrics in workspace coordinates.

Value must not be null.

object

Blockly.IBoundedElement

The object to bump.

Value must not be null.

Returns

boolean True if block was bumped.

bumpIntoBoundsHandler

static

bumpIntoBoundsHandler(workspace) returns function()

Creates a handler for bumping objects when they cross fixed bounds.

Parameter

workspace

Blockly.WorkspaceSvg

The workspace to handle.

Value must not be null.

Returns

function(Blockly.Events.Abstract) The event handler.

bumpTopObjectsIntoBounds

static

bumpTopObjectsIntoBounds(workspace)

Bumps the top objects in the given workspace into bounds.

Parameter

workspace

Blockly.WorkspaceSvg

The workspace.

Value must not be null.