adjust width/height of a specified block to its content
id | string|number | block ID |
mode | string | property to adjust ("width", or "height") |
$$("diagram").adjustItem("root", "width");
If the mode
parameter is not specified, the height of a specified block will be adjusted.