From a7d6954ad908eade0ce06743bbe3379d1ab34ed2 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 14 Aug 2023 17:38:44 +0000 Subject: [PATCH] feat: add accessors for the workspace svg group and block canvas --- core/workspace_svg.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index a3979e3ae32..04cb83449e5 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -693,6 +693,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. *