x3dom doesn't have option to disable rotation. But you can add modify their source code to do it. I did this for one of my projects:
// add disableRotation option
var validParams = array_to_object([
// ...
'disableRotation',
// ...
]);
// disable rotation onDrag
x3dom.Viewarea.prototype.onDrag = function (x, y, buttonState) {
// ...
if (this._doc.properties.getProperty('disableRotation', 'false') === 'true' && buttonState === 1) {
return;
}
}
// append this to your x3d tag
x3d.append("param")
.attr("name", "disableRotation")
.attr("value", "false");
See this example for how to draw axes on screen: