MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / isMovable

Method isMovable

packages/blockly/core/block.ts:833–841  ·  view source on GitHub ↗

* Get whether this block is movable or not. * * @returns True if movable. * @internal

()

Source from the content-addressed store, hash-verified

831 * @internal
832 */
833 isMovable(): boolean {
834 return (
835 this.movable &&
836 !this.isInFlyout &&
837 !this.shadow &&
838 !this.isDeadOrDying() &&
839 !this.workspace.isReadOnly()
840 );
841 }
842
843 /**
844 * Return whether this block's own movable property is true or false.

Callers

nothing calls this directly

Calls 2

isDeadOrDyingMethod · 0.95
isReadOnlyMethod · 0.80

Tested by

no test coverage detected