code: function getToolState(element, toolType) {
    const toolStateManager = getElementToolStateManager(element);
  
    return toolStateManager.get(element, toolType);
  }
docs: Returns tool specific state of an element. Used by tools as well as modules
  that save state persistently
  @export
  @public
  @method
  @name getToolState
  
  @param  {HTMLElement} element The element.
  @param  {string} toolType The toolType of the state.
  @returns {Object}          The element's state for the given toolType.