Skip to main content

How to set viewport for multiple sticky note?

  • August 10, 2022
  • 1 reply
  • 32 views

Forum|alt.badge.img+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

https://www.loom.com/share/81a308eba2eb48f8ac448e2275345477

 

Was it helpful?

1 reply

Addison Schultz
Mironeer

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