From b602f2163b13b05e61873452be96c6bc94f320de Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Wed, 16 Aug 2023 16:56:54 -0700 Subject: [PATCH] feat: add accessors for the workspace svg group and block canvas (#7394) --- core/workspace_svg.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index fd056a2a8..4c531f35a 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -694,6 +694,15 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg { return this.injectionDiv!; } + /** + * Returns the SVG group for the workspace. + * + * @returns The SVG group for the workspace. + */ + getSvgGroup(): Element { + return this.svgGroup_; + } + /** * Get the SVG block canvas for the workspace. *