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

Blockly Workspace Minimap

Open aleverdes opened this issue 5 years ago • 4 comments
trafficstars

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

A significant portion of the user interaction with Blockly is moving around the canvas. There are only two ways to move: "touch-way" in which we move in the direction we need with the cursor and holding LMB, and "zoom-way" in which we first zoom out at max distance, center the camera at the desired position, and then zoom in.

Both paths are not fully convenient, and it is difficult not to call this workflow "slow".

Describe the solution you'd like

I suggest adding a minimap to Blockly like Photoshop or Miro. It will allow you to see the entire canvas as a whole and move around it. This will speed up the movement of the user across the canvas at times.

Additional context

Here are some pictures below:

My Blockly Workspace Minimap concept

blockly-minimap

Photoshop navigator panel

photoshop-navigator-panel

Miro minimap

miro-minimap

aleverdes avatar Jul 29 '20 06:07 aleverdes

Related issue: https://github.com/google/blockly/issues/2729 Broken demo: https://blockly-demo.appspot.com/static/demos/minimap/index.html Code: https://github.com/google/blockly/tree/master/demos/minimap

NeilFraser avatar Jul 29 '20 14:07 NeilFraser

I believe ardublock does this as well

poproar avatar Jul 31 '20 18:07 poproar

Any update on when the minimap demo might be fixed? It would be a great addition to the functionality, really handy for navigating highly populated workspaces.

thoughtforma avatar Nov 30 '20 13:11 thoughtforma

Hello everybody, Abby forwarded me to this issue, because I was wondering if something like this already existed in Blockly.
It would be a very nice addition to Blockly, but I completely understand this might not be at the top of your team's todo list ... Kind regards, Bart

bartbutenaers avatar Jul 12 '21 19:07 bartbutenaers

Here is another implementation: https://github.com/microsoft/jacdac-docs/blob/6a9e7bdd78b71de2e42c3990d30cb392e40872c1/src/components/blockly/BlockMinimap.tsx#L206

koenvanwijk avatar Dec 07 '22 03:12 koenvanwijk

This exists! https://www.npmjs.com/package/@blockly/workspace-minimap

BeksOmega avatar Aug 30 '23 20:08 BeksOmega