The MPR mode of OHIF, e.g. as implemented in the 2D MPR button on this site is implemented with vtk.js using this code.