function addToolState(element, toolType, measurementData) {
  var toolStateManager = getElementToolStateManager(element);

  toolStateManager.add(element, toolType, measurementData);

  var eventType = _events2.default.MEASUREMENT_ADDED;
  var eventData = {
    toolType: toolType,
    element: element,
    measurementData: measurementData
  };

  (0, _triggerEvent2.default)(element, eventType, eventData);
}
// As modules that restore saved state
As modules that restore saved state
As modules that restore saved state
function addToolState(element, toolType, measurementData) {
  var toolStateManager = getElementToolStateManager(element);
  toolStateManager.add(element, toolType, measurementData);
  var eventType = _events2.default.MEASUREMENT_ADDED;
  var eventData = {
    toolType: toolType,
    element: element,
    measurementData: measurementData
  };
  (0, _triggerEvent2.default)(element, eventType, eventData);
}
function addToolState ( element , toolType , measurementData ) { var toolStateManager = getElementToolStateManager ( element ) ; toolStateManager . add ( element , toolType , measurementData ) ; var eventType = _events2 . default . MEASUREMENT_ADDED ; var eventData = { toolType : toolType , element : element , measurementData : measurementData } ; ( 0 , _triggerEvent2 . default ) ( element , eventType , eventData ) ; }
As modules that restore saved state
As modules that restore saved state