Convert Vega-Lite padding to figure_state_t margins.
When autosize is "none" with "contains": "padding", the spec width/height is the data rectangle and padding is added around it. We expand the canvas to total = data + padding and compute margins as fractions of that total.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(padding_t), | intent(in) | :: | pad | |||
| type(figure_state_t), | intent(inout) | :: | state | |||
| character(len=*), | intent(in), | optional | :: | autosize_type |