Basis in Currency Swap

I can’t figure out what negative and positive bases are in a currency swap.

How do we know where to adjust the basis and what generated these bases?