How to configure camera to display X Y slices directions

Hey, I’m working on a little viewer that display image slices of a VTI file, (AXIAL, CORONAL, SAGITTAL), Using the example below I was able to display Z direction, but it doesn’t work for X and Y, I know I must change camera position and orientation, I tried camera.setPosition() and camera.getOrientationWXYZ() and camera.setViewUp() with some random values because I don’t know what I must enter as parameters, I’m not sure about the functions I must use as well.

https://github.com/KitwareMedical/vtk.js-examples/blob/master/src/image-slicing.js

This is what what I was looking for: it is working:

//For X
    camera.setPosition(1,0,0);
    camera.setDirectionOfProjection(-1,0,0)
    camera.().roll(-90);

//For Y
    camera.setPosition(0,1,0);
    camera.setDirectionOfProjection(0,-1,0)