
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
35 lines
912 B
Text
35 lines
912 B
Text
---
|
|
title: Attributes
|
|
---
|
|
|
|
An Attributes object holds attributes for a variety of other objects.
|
|
|
|
## Signature
|
|
|
|
```js
|
|
Attributes new Attributes()
|
|
```
|
|
|
|
The Attributes constructor takes no arguments.
|
|
|
|
## Properties
|
|
|
|
An Attributes object comes with the following property:
|
|
|
|
- `list` : Holds the internal object in which attributes are stored
|
|
|
|
## Methods
|
|
An Attributes object exposes the following methods:
|
|
|
|
<ReadMore />
|
|
|
|
## Notes
|
|
|
|
Attributes are attached to [`Point`](/reference/api/point),
|
|
[`Path`](/reference/api/path), and [`Snippet`](/reference/api/snippet) objects,
|
|
as well as the internal [`Svg`](/reference/api/svg) object.
|
|
|
|
All of these have an instantiated Attributes object in their `attributes`
|
|
property, as well as a number of (chainable) helper methods to manipulate the
|
|
attributes. You will typically use these higher-level method and thus are
|
|
unlikely to interact with an Attributes object directly.
|