ExportSettingsSVGString
Defined in: figmaPluginTypes.ts:4241
https://www.figma.com/plugin-docs/api/ExportSettings
readonlyoptionalcolorProfile:"DOCUMENT"|"SRGB"|"DISPLAY_P3_V4"
Defined in: figmaPluginTypes.ts:4226
ExportSettingsSVGBase.colorProfile
readonlyoptionalcontentsOnly:boolean
Defined in: figmaPluginTypes.ts:4207
ExportSettingsSVGBase.contentsOnly
readonlyformat:"SVG_STRING"
Defined in: figmaPluginTypes.ts:4245
The string literal "SVG_STRING" representing the export format.
readonlyoptionalsuffix:string
Defined in: figmaPluginTypes.ts:4209
readonlyoptionalsvgIdAttribute:boolean
Defined in: figmaPluginTypes.ts:4221
Whether to include layer names as ID attributes in the SVG. This can be useful as a way to reference particular elements, but increases the size of the SVG. SVG features that require IDs to function, such as masks and gradients, will always have IDs. Defaults to false.
ExportSettingsSVGBase.svgIdAttribute
readonlyoptionalsvgOutlineText:boolean
Defined in: figmaPluginTypes.ts:4217
Whether text elements are rendered as outlines (vector paths) or as <text> elements in SVGs. Defaults to true.
Rendering text elements as outlines guarantees that the text looks exactly the same in the SVG as it does in the browser/inside Figma.
Exporting as <text> allows text to be selectable inside SVGs and generally makes the SVG easier to read. However, this relies on the browser’s rendering engine which can vary between browsers and/or operating systems. As such, visual accuracy is not guaranteed as the result could look different than in Figma.
ExportSettingsSVGBase.svgOutlineText
readonlyoptionalsvgSimplifyStroke:boolean
Defined in: figmaPluginTypes.ts:4225
Whether to export inside and outside strokes as an approximation of the original to simplify the output. Otherwise, it uses a more precise but more bloated masking technique. This is needed because SVGs only support center strokes. Defaults to true.
ExportSettingsSVGBase.svgSimplifyStroke
readonlyoptionaluseAbsoluteBounds:boolean
Defined in: figmaPluginTypes.ts:4208