Update object axes after rotating

I am rotating an 3D object in three.js on the X and Y axes by click dragging and using the method rotateOnAxis . After I rotate, I want to reset the axes so that when I click drag again, it’s as if the axes are in their original directions. How can I accomplish this? Thank you for any tips.

Why don’t you store the original orientation (e.g. Object3D.quaternion) and just restore it when necessary?

Thank you @Mugen87. I will look into that. I found this example (thanks to your suggestion) that might be what I need: https://github.com/defmech/Three.js-Object-Rotation-with-Quaternion.