mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
feat: add accessors for the workspace svg group and block canvas (#7394)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user