Skip to content

Commit

Permalink
fix: debug renderer for v10 (#1747)
Browse files Browse the repository at this point in the history
* chore: fix debug renderer for v10

* chore: update TODO
  • Loading branch information
BeksOmega authored Jun 29, 2023
1 parent 5c43038 commit 3914045
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/dev-tools/src/debugDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3914045

Please sign in to comment.