feat: Add support for retrieving blocks' drag strategies. (#8893)

This commit is contained in:
Aaron Dodson
2025-04-14 13:54:15 -07:00
committed by GitHub
parent 7a3eb62142
commit 98cf5cb8ee

View File

@@ -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;