GimpUi.Preview.prototype.get_size

function get_size(): [width: Number(gint), height: Number(gint)] {
    // Gjs wrapper for gimp_preview_get_size()
}
  

Since 2.2

width

return location for the preview area width

height

return location for the preview area height