nkh / P5-App-Asciio

Plain ASCII diagram
https://nkh.github.io/P5-App-Asciio/
53 stars 4 forks source link

Some scrollbar implementation done which will need to be revisited if necessary: #115

Closed qindapao closed 1 year ago

qindapao commented 1 year ago
          Some scrollbar implementation done which will need to be revisited if necessary:

Originally posted by @nkh in https://github.com/nkh/P5-App-Asciio/issues/1#issuecomment-1441853375

qindapao commented 1 year ago

@nkh

https://github.com/qindapao/P5-App-Asciio/commit/f54568f88df6b76e82169770a81255489b95e8b9

Now room in and out can automatically adjust the size of the canvas.

  1. Elements that are on the edge display correctly when zoomed in
  2. The number of grids displayed on the canvas remains fixed to reduce memory consumption
qindapao commented 1 year ago

@nkh

If you have the following two values in your personal configuration file, please be sure to update them, otherwise it may not be displayed because the canvas is too large. Now these two values represent the number of grids.

CANVAS_WIDTH => 200,
CANVAS_HEIGHT => 150,
nkh commented 1 year ago

@qindapao merged, good job.