code: function addToolState(element, toolType, measurementData) {
    const toolStateManager = getElementToolStateManager(element);
  
    toolStateManager.add(element, toolType, measurementData);
  
    const eventType = EVENTS.MEASUREMENT_ADDED;
    const eventData = {
      toolType,
      element,
      measurementData,
    };
  
    triggerEvent(element, eventType, eventData);
  }
docs: Adds tool state to the toolStateManager, this is done by tools as well
  as modules that restore saved state.
  @public
  @method addToolState
  
  @param  {HTMLElement} element  The element.
  @param  {string} toolType      The toolType of the state.
  @param  {Object} measurementData The data to store in the state.
  @returns {undefined}