Defined in: packages/core/src/export/serializeSvg.ts:20
| Property |
Type |
Default value |
Description |
fitToContent? |
boolean |
true |
Replace the viewBox with the bounding box of the drawing plus padding, so the file shows the whole figure rather than whatever part was panned into view. |
padding? |
number |
10 |
Padding around the content when fitting, in user units. |
background? |
string |
undefined |
Background fill behind the drawing (e.g. "white"); none when omitted. |