Render a element for create a graphics

I’m using Angular 7 with bpmn io, so I’m trying render the graphics dynamically.
I’m based from the project: https://github.com/bpmn-io/bpmn-js-example-custom-rendering
But when extend the function BaseRenderer from the javascript I have a problem I need pass the eventBus, my question is how I pass this thing ?

My Code :


My directive of Angular

>import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
> export class DiagramaCorDirective extends BaseRenderer implements OnInit {
> 
>   constructor(private el: ElementRef) {
>     super(InjectioInNames.eventBus, HIGH_PRIORITY);
>     debugger;
>   }

And the function javascript

> export default function BaseRenderer(eventBus, renderPriority) {

The renderer in the example does precisely that.