function activateFreehandTool(element, toolIndex) {
  var toolData = (0, _toolState.getToolState)(element, referencedToolType);
  var activated = false;

  for (var i = 0; i < toolData.data.length; i++) {
    if (i === toolIndex) {
      toolData.data[i].active = true;
    } else {
      toolData.data[i].active = false;
    }
  }

  return activated;
}
/**
* Activate the selected freehand tool and deactivate others.
*
* @param {Object} element - The parent element of the freehand tool.
* @param {Number} toolIndex - The ID of the freehand tool.
* @return {Boolean} True if the tool was activated
*/
Activate the selected freehand tool and deactivate others.
Activate the selected freehand tool and deactivate others .
function activateFreehandTool(element, toolIndex) {
  var toolData = (0, _toolState.getToolState)(element, referencedToolType);
  var activated = false;
  for (var i = 0; i < toolData.data.length; i++) {
    if (i === toolIndex) {
      toolData.data[i].active = true;
    } else {
      toolData.data[i].active = false;
    }
  }
  return activated;
}
function activateFreehandTool ( element , toolIndex ) { var toolData = ( 0 , _toolState . getToolState ) ( element , referencedToolType ) ; var activated = false ; for ( var i = 0 ; i < toolData . data . length ; i ++ ) { if ( i === toolIndex ) { toolData . data [ i ] . active = true ; } else { toolData . data [ i ] . active = false ; } } return activated ; }
Activate the selected freehand tool and deactivate others.
Activate the selected freehand tool and deactivate others .