calculate diagrama args on client