structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
258 stars 31 forks source link

How to move diagram when zoomed in? #12

Closed pogopaule closed 2 years ago

pogopaule commented 2 years ago

If I zoom into a diagram, how do I then move the diagram with my mouse? Usually I press space and can then "grab" the canvas in similar programs. I have not found any modifier key to do so. Using just the scrollbars to move the canvas horizontally and vertially is quite annoying.

simonbrowndotje commented 2 years ago

Click (on a blank piece of diagram canvas), and drag when you see the hand cursor. Alternatively, you can use the left/right cursor keys.

pogopaule commented 2 years ago

A hand cursor is never shown. I can only select objects or drag them (arrow cursor when I hover).

The up/down/left/right keys work. That helps a lot, thank you.

simonbrowndotje commented 2 years ago

If the diagram is editable (i.e. manual layout), you can now hold down the Alt key to enable canvas dragging. You won't need to do this for diagrams with automatic layout enabled.

pogopaule commented 2 years ago

In my case holding down Alt does not work. Tested it with Firefox and Chrome.

2022-10-28 12:08:56.205  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     : Structurizr Lite
2022-10-28 12:08:56.207  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     : Build: 2844
2022-10-28 12:08:56.208  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     : Built: 2022-10-24T11:03:07Z
2022-10-28 12:08:56.208  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     : structurizr-java: v1.16.0
2022-10-28 12:08:56.218  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     : structurizr-dsl: v1.22.0
simonbrowndotje commented 2 years ago

You'll need to be running the latest version.