Greetings,
I am trying to programatically add swimlanes to the diagram. When I try to add a lane like so:
diagram.add({ header: { width: 50, height: 50, fillColor: '#C7D4DF', fontSize: 11 }, height: 60, width: 140, fillColor: '#f5f5f5', offsetX: 70, offsetY: 30, orientation: 'horizontal', isLane: true })
there is an error in the console and nothing is added. When I try to add a phase like so:
diagram.add({ type: 'phase', lineWidth: 1, lineDashArray: '3,3', lineColor: '#A9A9A9', parent: '', orientation: 'vertical', label: { text: '' } })
the browser becomes unresponsive. I am using "add" and not "addPhase" because this is for free drawing by the user.
Am I doing something wrong or are these bugs?
Thanks.