Draw 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, height and layer options.
But you can also create a group called kibot_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

Used dicts