Skip to content

Commit c4440bd

Browse files
committed
chore: Fix typo in getRelativeToSurfaceXY()
1 parent 87afe3e commit c4440bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/blockly/core/block_svg.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ export class BlockSvg
354354
* @returns Object with .x and .y properties in workspace coordinates.
355355
*/
356356
override getRelativeToSurfaceXY(): Coordinate {
357-
const layerManger = this.workspace.getLayerManager();
358-
if (!layerManger) {
357+
const layerManager = this.workspace.getLayerManager();
358+
if (!layerManager) {
359359
throw new Error(
360360
'Cannot calculate position because the workspace has not been appended',
361361
);
@@ -371,7 +371,7 @@ export class BlockSvg
371371
x += xy.x;
372372
y += xy.y;
373373
element = element.parentNode as SVGElement;
374-
} while (element && !layerManger.hasLayer(element));
374+
} while (element && !layerManager.hasLayer(element));
375375
}
376376
return new Coordinate(x, y);
377377
}

0 commit comments

Comments
 (0)