mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
feat: Add support for retrieving blocks' drag strategies. (#8893)
This commit is contained in:
@@ -1743,6 +1743,16 @@ export class BlockSvg
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the drag strategy currently in use by this block.
|
||||
*
|
||||
* @internal
|
||||
* @returns This block's drag strategy.
|
||||
*/
|
||||
getDragStrategy(): IDragStrategy {
|
||||
return this.dragStrategy;
|
||||
}
|
||||
|
||||
/** Sets the drag strategy for this block. */
|
||||
setDragStrategy(dragStrategy: IDragStrategy) {
|
||||
this.dragStrategy = dragStrategy;
|
||||
|
||||
Reference in New Issue
Block a user