Can someone help me remove -x ,-y & -z from transform controls from the latest library, so i could use the custom transform controls

[How to make transform controls not to move with camera]
This was original question i asked years before.

I got help on this topic three years ago, but now the code is changed a lot for original transform controls, i am finding it hard to understand since geometry is not my strong hold.