Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) {
controlsManager.showAll(false);
// currently only ROTATE_AXIS is supported for VIEW_FACING mode
// this is the most useful one
if (
UNSUPPORTED_INTERACTIVE_MARKER_ORIENTATION_MODES.indexOf(
orientationMode,
) !== -1 &&
interactionMode === INTERACTIVE_MARKER_INTERACTION_MODES.ROTATE_AXIS
) {
object.userData.handlesControlsMap = {
...object.userData.handlesControlsMap,
[DEFAULT_HANDLE_GROUP_NAME.ER]: controlName,
};
controlsManager.showByNames([DEFAULT_HANDLE_GROUP_NAME.ER], true);
return;
}
let handles = [];
switch (interactionMode) {
case INTERACTIVE_MARKER_INTERACTION_MODES.NONE:
case INTERACTIVE_MARKER_INTERACTION_MODES.MENU:
case INTERACTIVE_MARKER_INTERACTION_MODES.BUTTON: {
break;
}
case INTERACTIVE_MARKER_INTERACTION_MODES.MOVE_AXIS: {
handles = [
DEFAULT_HANDLE_GROUP_NAME.XPT,
DEFAULT_HANDLE_GROUP_NAME.XNT,
];