How Can I sync the camera between AUTODESK FORGE VIEWER and three js scene?

const cameraPose = useRef({
position: new THREE.Vector3(
data.images[data.images.length - 1].canvasPosition.x,
30,
data.images[data.images.length - 1].canvasPosition.y
),
quaternion: new THREE.Quaternion(),
});

both are using this state