I rely on the bounds and replaced the shapenodes by containernodes.
However, the bound system doesnt seem to work again..
I resize the canvas as follows:
let diagramDOM = document.getElementById('diagram');
let pWidth = diagramDOM.parentElement.getBoundingClientRect().width;
let pHeight = diagramDOM.parentElement.getBoundingClientRect().height;
, pWidth, pHeight);
let pCtdWH = diagram.clientToDoc(new Point(pWidth, pHeight));
let diaBounds = new Rect(0, 0, pCtdWH.x, pCtdWH.y);
diagram.setBounds(diaBounds);
I had 'clientWidth' and 'clientHeight' instead of getBoundingClientRect, but it's the same result. The canvas parent (div) got a height of 938px and a width of 1600. The canvas gets a height of 986px and a width of 1635.
Could this be caused because the div got the css flexbox class? The div got additionally a css property height:100vh.
In the picture though, there is a gap at the bottom and the canvas overlaps the right bound and is being drawn beyond the next html element.
Furthermore, when I stick to container Nodes. Can I nest container nodes into a container node?
Additionally, it'd be a pleasure if you provide an example of how to override a layout arrange algorithm or how to apply a custom one for typescript.
So much is going on under the hood