How to set viewport for multiple sticky note?

  • 10 August 2022
  • 1 reply
  • 24 views

Badge +2

Hi everyone

I have to set the viewport for multiple widgets.

As you can see on this video, when I click the button, the board viewport have to change.

Well it works on SDK 1.1 now.

I used this code for get left, top, right and bottom value.

But on SDK 2.0, the left, top, right, bottom parameter is no longer available.

Please let me know how can I fix this issue.

Thank you

 


1 reply

Userlevel 5

In V2, you can use zoomTo, and pass an array of the items you would like to zoom the viewport to! Here is the docs: https://developers.miro.com/docs/viewport_viewport#zoomto

Reply