From 2ada188f8844c89d51172fd97ce6b144da20b02c Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Thu, 12 Feb 2026 10:22:13 -0800 Subject: [PATCH] chore: Fix typo in `getRelativeToSurfaceXY()` (#9586) --- packages/blockly/core/block_svg.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/blockly/core/block_svg.ts b/packages/blockly/core/block_svg.ts index 68c8823d6..54bef4948 100644 --- a/packages/blockly/core/block_svg.ts +++ b/packages/blockly/core/block_svg.ts @@ -354,8 +354,8 @@ export class BlockSvg * @returns Object with .x and .y properties in workspace coordinates. */ override getRelativeToSurfaceXY(): Coordinate { - const layerManger = this.workspace.getLayerManager(); - if (!layerManger) { + const layerManager = this.workspace.getLayerManager(); + if (!layerManager) { throw new Error( 'Cannot calculate position because the workspace has not been appended', ); @@ -371,7 +371,7 @@ export class BlockSvg x += xy.x; y += xy.y; element = element.parentNode as SVGElement; - } while (element && !layerManger.hasLayer(element)); + } while (element && !layerManager.hasLayer(element)); } return new Coordinate(x, y); }