pxt
pxt copied to clipboard
Comments in Snapshots
It would be really nice to show the comments in Snapshots.
This is a common Educator scenario - taking a snapshot of workspace code with annotations as teaching materials.
It looks like the block comment are not properly taken into account when computing the viewbox of the SVG.
This bug should be reported to Blockly. We use this command to compute the bounding box, and it ignores comments.
const metrics = ws.getBlocksBoundingBox();