Miro logo

Miro Interview Question Bank

Miro is a collaborative online whiteboard platform for teams to brainstorm, diagram and plan together on an infinite canvas.

Showing 3 of 3
Coding
Single reportFree preview

Position Canvas and Viewport-Pinned Widgets on an Infinite Board

Given a viewport (size, pan, zoom) and a list of widgets that are either canvas-pinned or viewport-pinned with a normalized 0–1 anchor, return each widget's top-left screen position. Canvas widgets use the pan-zoom transform; viewport widgets interpolate the anchor against the viewport size minus the widget size so they stay fully visible.

SWE
math
array
frontend
easy
0 related discussions