blockly > dragging > BlockDragStrategy
dragging.BlockDragStrategy class
Signature:
export declare class BlockDragStrategy implements IDragStrategy
Implements: IDragStrategy
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| (not declared) | ||
| (not declared) | How far in from the edges of the workspace to position newly placed blocks. |
Methods
Method | Modifiers | Description |
|---|---|---|
Moves the block and updates any connection previews. | ||
Cleans up any state at the end of the drag. Applies any pending connections. | ||
Get the nearest valid candidate connection in traversal order. | ||
| Get the radius to use when searching for a nearby valid connection. | |
| Returns the block to use for the current drag operation. This may create and return a newly instantiated block when e.g. dragging from a flyout. | |
Returns true if the block is currently movable. False otherwise. | ||
Moves the block back to where it was at the beginning of the drag, including reconnecting connections. | ||
| Get whether the drag should act on a single block or a block stack. | |
Handles any setup for starting the drag, including disconnecting the block from any parent blocks. |