CLI-based BPMN model generation

Continuing the discussion from Make/modify model programmatically:

Is it possible to specify a label directly when creating an element through the cli interface (bpmn-js-cli)?
When I use the cli.setLabel() method after creating the element, it takes more and more time depending on how many elements I have already created and this slows down my application…

Kind regards,
René

When I use the cli.setLabel() method after creating the element, it takes more and more time depending on how many elements I have already created and this slows down my application

Could you provide us with a test case that shows the slowdown you’re describing?

I forgot to add some background information. I use the BPMN modeler in a C# Winforms Application. As a result, the BPMN modeler runs in a WinForms WebBrowser Control.

I found out, when I disable the “ScrollBars” of the WebBrowser control, the slowdown disappears.

As a result, I solved the problem. Fingers crossed, that it now works in all conditions and also with huge models.

Thanks for the perfect support and the very quick responses in this forum!