function IsHorizontalFix(eventBus) {

  CommandInterceptor.call(this, eventBus);

  var elementTypesToUpdate = [
    'bpmn:Participant',
    'bpmn:Lane'
  ];

  this.executed([ 'shape.move', 'shape.create', 'shape.resize' ], function(event) {
    var bo = getBusinessObject(event.context.shape);

    if (isAny(bo, elementTypesToUpdate) && !bo.di.get('isHorizontal')) {

      // set attribute directly to avoid modeling#updateProperty side effects
      bo.di.set('isHorizontal', true);
    }
  });

}
/**
 * A component that makes sure that each created or updated
 * Pool and Lane is assigned an isHorizontal property set to true.
 *
 * @param {EventBus} eventBus
 */
A component that makes sure that each created or updated
Pool and Lane is assigned an isHorizontal property set to true.


A component that makes sure that each created or updated Pool and Lane is assigned an isHorizontal property set to true .
function IsHorizontalFix(eventBus) {
  CommandInterceptor.call(this, eventBus);
  var elementTypesToUpdate = [
    'bpmn:Participant',
    'bpmn:Lane'
  ];
  this.executed([ 'shape.move', 'shape.create', 'shape.resize' ], function(event) {
    var bo = getBusinessObject(event.context.shape);
    if (isAny(bo, elementTypesToUpdate) && !bo.di.get('isHorizontal')) {
      bo.di.set('isHorizontal', true);
    }
  });
}
function IsHorizontalFix ( eventBus ) { CommandInterceptor . call ( this , eventBus ) ; var elementTypesToUpdate = [ 'bpmn:Participant' , 'bpmn:Lane' ] ; this . executed ( [ 'shape.move' , 'shape.create' , 'shape.resize' ] , function ( event ) { var bo = getBusinessObject ( event . context . shape ) ; if ( isAny ( bo , elementTypesToUpdate ) && ! bo . di . get ( 'isHorizontal' ) ) { bo . di . set ( 'isHorizontal' , true ) ; } } ) ; }
A component that makes sure that each created or updated
 Pool and Lane is assigned an isHorizontal property set to true.
A component that makes sure that each created or updated Pool and Lane is assigned an isHorizontal property set to true .
// set attribute directly to avoid modeling#updateProperty side effects