From 98cf5cb8eee4101eb1975573c6cca70f67e41f99 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 14 Apr 2025 13:54:15 -0700 Subject: [PATCH] feat: Add support for retrieving blocks' drag strategies. (#8893) --- core/block_svg.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/block_svg.ts b/core/block_svg.ts index 18751eb13..b2f6c1c9c 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -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;