Event for element created

Which events can be captured in the event bus?

Is there any event triggered when an element is created?

Hello @santosguilherme,

to know which events are fired you need to check the source code, since we don’t have this documented. Regarding created shapes you should use the CommandInterceptor to hook in the life-cycle of ‘shape.create’ that suits you.

You can read more about the life-cycle of modeling actions in the CommandStack documentation.

Cheers,
Ricardo

Can you show an example without Node.js and browserify?

Resolved, I found the events inspecting the “eventBus._listeners”, it shows all events attached to EventBus.