How to define my own interactorstyle of vtkplanewidget?

I use vtkPlanewidget to add a plane widget in the rendering window. The default interaction style of this plane widget is to select the plane with the left mouse button to translate the plane, and to select the normal axis with the left mouse button to change the normal vector of the plane.
But I want to customize the interaction method of the plane widget, such as clicking the plane part of the plane component, the plane can change its direction and be parallel to the display screen, and the left mouse button (the default is the middle button) clicks on the normal axis to translate the plane in the normal direction part.

any sugesstion would be helpful~

Since you don’t say anything else, this is how I did mine in JavaScript

I changed the source code of vtkPlaneWidget.cxx , it worked.
thank you very much!