GimpUi.Preview.prototype.get_position

function get_position(): [x: Number(gint), y: Number(gint)] {
    // Gjs wrapper for gimp_preview_get_position()
}
  

Since 2.2

x

return location for the horizontal offset

y

return location for the vertical offset