2023-10-29 11:51:13 +01:00
|
|
|
---
|
|
|
|
title: Defs
|
|
|
|
---
|
|
|
|
|
|
|
|
The `Defs` object in FreeSewing's core library represents an SVG document's
|
|
|
|
[`defs` element](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs).
|
|
|
|
It is not directly exposed, but it is available as the `defs` attribute
|
|
|
|
of an [Svg object](/reference/api/svg/defs).
|
|
|
|
|
2024-02-08 12:43:45 -08:00
|
|
|
While the properties and methods exposed by this object are typically only used internally,
|
2023-10-29 11:51:13 +01:00
|
|
|
they are documented here to facilitate development of plugins.
|
|
|
|
|
2024-02-08 12:43:45 -08:00
|
|
|
## Properties
|
|
|
|
|
|
|
|
A Defs object comes with the following property:
|
|
|
|
|
2024-02-11 06:23:18 -08:00
|
|
|
- `list` : Holds the internal object in which entries of the `defs` element are stored
|
2024-02-08 12:43:45 -08:00
|
|
|
|
2023-10-29 11:51:13 +01:00
|
|
|
## Defs methods
|
|
|
|
|
2024-01-29 08:43:38 -08:00
|
|
|
<ReadMore />
|
2023-10-29 11:51:13 +01:00
|
|
|
|