From 3914045ab25ffbf05c25c3b7e17fee7963e4ec60 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Thu, 29 Jun 2023 15:45:53 -0700 Subject: [PATCH] fix: debug renderer for v10 (#1747) * chore: fix debug renderer for v10 * chore: update TODO --- plugins/dev-tools/src/debugDrawer.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/dev-tools/src/debugDrawer.js b/plugins/dev-tools/src/debugDrawer.js index 7053af0449..5d0ceb9fa6 100644 --- a/plugins/dev-tools/src/debugDrawer.js +++ b/plugins/dev-tools/src/debugDrawer.js @@ -207,11 +207,14 @@ export class DebugDrawer { colour = 'goldenrod'; fill = colour; } + // TODO(blockly/7227): This method is still internal, so we're going to + // have continual problems. We should consider making it public. + const offset = conn.getOffsetInBlock(); this.debugElements_.push(Blockly.utils.dom.createSvgElement('circle', { 'class': 'blockRenderDebug', - 'cx': conn.offsetInBlock_.x, - 'cy': conn.offsetInBlock_.y, + 'cx': offset.x, + 'cy': offset.y, 'r': size, 'fill': fill, 'stroke': colour,