blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Screenshot download plugin

Open rachel-fenichel opened this issue 5 years ago • 3 comments

Category Plugin

Component

`@blockly/plugin-screenshot

Is your feature request related to a problem? Please describe.

Screenshots are a good way to communicate about code. We can generate a screenshot from within blockly.

Describe the solution you'd like

  • A right click option on the workspace that lets you download a screenshot of the whole workspace.
  • A right-click option on blocks that lets you download a screenshot of the given block.

Describe alternatives you've considered

Only allow screenshots of individual blocks.

APIs needed in core Blockly

  • Possibly https://github.com/google/blockly/issues/3237

Additional context

  • https://github.com/google/blockly/issues/2914
  • https://github.com/google/blockly/issues/3238
  • #245 discusses a smaller project, which is adding it only as a developer tool

Needs discussion

  • API
  • Tests
  • Cross-browser compatibility. The way it is currently implemented in core Blockly doesn't work on some browsers.

rachel-fenichel avatar Apr 30 '20 22:04 rachel-fenichel

@samelhusseini to comment on what needs to be done to make the existing code ready to publish.

rachel-fenichel avatar Apr 30 '20 22:04 rachel-fenichel

Hi - I was wondering if this was considered? We've implemented a plugin for this which we are currently using locally but trying to decide whether the Blockly team want this as a first-party plugin or shall we publish it as a third-party plugin?

Thanks

xtheshumanator avatar Oct 25 '21 09:10 xtheshumanator

Hello! We would love to see your screenshot plugin as a third-party plugin! Just a reminder, for third party plugins we are still more than happy to do code reviews, answer any questions you might have, and promote the plugin in our release notes at the end of the quarter. Just let us know if there is any way we can help.

Thanks for the question and definitely looking forward to seeing this as a plugin!

alschmiedt avatar Oct 26 '21 17:10 alschmiedt