pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Comments in Snapshots

Open Jaqster opened this issue 4 years ago • 2 comments

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.

microbit-screenshot

Jaqster avatar Nov 29 '20 19:11 Jaqster

It looks like the block comment are not properly taken into account when computing the viewbox of the SVG.

pelikhan avatar Dec 07 '20 16:12 pelikhan

This bug should be reported to Blockly. We use this command to compute the bounding box, and it ignores comments.

const metrics = ws.getBlocksBoundingBox();

pelikhan avatar Dec 07 '20 16:12 pelikhan