code: function clearToolState(element, toolType) {
    const toolStateManager = getElementToolStateManager(element);
    const toolData = toolStateManager.get(element, toolType);
  
    // If any toolData actually exists, clear it
    if (toolData !== undefined) {
      toolData.data = [];
    }
  }
docs: Removes all toolState from the toolStateManager corresponding to
  the toolType and element.
  @public
  @method clearToolState
  
  @param  {HTMLElement} element  The element.
  @param  {string} toolType      The toolType of the state.
  @returns {undefined}