function BpmnInteractionEvents(eventBus, interactionEvents) {

  this._interactionEvents = interactionEvents;

  var self = this;

  eventBus.on([
    'interactionEvents.createHit',
    'interactionEvents.updateHit'
  ], function(context) {
    var element = context.element,
        gfx = context.gfx;

    if (is(element, 'bpmn:Lane')) {
      return self.createParticipantHit(element, gfx);
    } else

    if (is(element, 'bpmn:Participant')) {
      if (isExpanded(element)) {
        return self.createParticipantHit(element, gfx);
      } else {
        return self.createDefaultHit(element, gfx);
      }
    } else

    if (is(element, 'bpmn:SubProcess')) {
      if (isExpanded(element)) {
        return self.createSubProcessHit(element, gfx);
      } else {
        return self.createDefaultHit(element, gfx);
      }
    }
  });

}
/**
 * BPMN-specific hit zones and interaction fixes.
 *
 * @param {EventBus} eventBus
 * @param {InteractionEvents} interactionEvents
 */
BPMN-specific hit zones and interaction fixes.
BPMN - specific hit zones and interaction fixes .
function BpmnInteractionEvents(eventBus, interactionEvents) {
  this._interactionEvents = interactionEvents;
  var self = this;
  eventBus.on([
    'interactionEvents.createHit',
    'interactionEvents.updateHit'
  ], function(context) {
    var element = context.element,
        gfx = context.gfx;
    if (is(element, 'bpmn:Lane')) {
      return self.createParticipantHit(element, gfx);
    } else
    if (is(element, 'bpmn:Participant')) {
      if (isExpanded(element)) {
        return self.createParticipantHit(element, gfx);
      } else {
        return self.createDefaultHit(element, gfx);
      }
    } else
    if (is(element, 'bpmn:SubProcess')) {
      if (isExpanded(element)) {
        return self.createSubProcessHit(element, gfx);
      } else {
        return self.createDefaultHit(element, gfx);
      }
    }
  });
}
function BpmnInteractionEvents ( eventBus , interactionEvents ) { this . _interactionEvents = interactionEvents ; var self = this ; eventBus . on ( [ 'interactionEvents.createHit' , 'interactionEvents.updateHit' ] , function ( context ) { var element = context . element , gfx = context . gfx ; if ( is ( element , 'bpmn:Lane' ) ) { return self . createParticipantHit ( element , gfx ) ; } else if ( is ( element , 'bpmn:Participant' ) ) { if ( isExpanded ( element ) ) { return self . createParticipantHit ( element , gfx ) ; } else { return self . createDefaultHit ( element , gfx ) ; } } else if ( is ( element , 'bpmn:SubProcess' ) ) { if ( isExpanded ( element ) ) { return self . createSubProcessHit ( element , gfx ) ; } else { return self . createDefaultHit ( element , gfx ) ; } } } ) ; }
BPMN-specific hit zones and interaction fixes.
BPMN - specific hit zones and interaction fixes .