Draw Fancy Stackup

Draw the PCB stackup. Needs KiCad 7 or newer. To specify the position and size of the drawing you can use two methods.
You can specify it using the pos_x, pos_y, width and layer options.
But you can also create a group called kibot_fancy_stackup. If you don’t know how to create a group consult Creating a group in your PCB. After running this preflight the rectangle will contain the stackup.
Note that the height is not determined by the group height, but by the number of layers and spacing between layers.

Used dicts