Centering globe on a custom position

I’m building a Cesium application where external user interface is paint on top of the map, but leaving enough space for globe itself.

I want to then move the globe a bit more on the right, to have it “centered” in the user perspective.

After searching a bit, I found that widget.camera.lookLeft can do this, but the API is quite complex as amount parameter in radiants and so this value change based on different screen resolutions.

How can this problem be solved? Ideally speaking, I would like to define the rect of my working area and center the globe there.

1 Like

As reference