Embed Custom Zoom/Scale

I’ve worked it out - and actually a more precise method than zoom/center focus.

To achieve a precise zoom and positioning, follow these steps:

  1. Draw a square over the specific area you want to display as your FigJam embed.
  2. Get the node-id of this square.
  3. Make the square transparent and remove its border to hide it from view.
  4. Group all elements on the canvas.
  5. Get the node-id of the entire grouped project.

In this setup, the entire project becomes the parent, while the hidden square becomes the child.

In your embed URL, include the parameters &starting-node-id=XXX:XXX&node-id=XXX:XXX, replacing XXX:XXX with the respective node-ids of the parent (starting-node-id) and the child (node-id).

This means when the embed renders, the hidden square fits the embed window forcing this area into focus regardless of its size or position. Additionally, because the entire group is set as the starting node, elements outside the overflow are not deleted as normal with node-id methods.