From e10b665f3622b51fff87989e604aa0706c35a3c2 Mon Sep 17 00:00:00 2001 From: Benjamin Fan Date: Thu, 8 Feb 2024 12:43:45 -0800 Subject: [PATCH 1/2] fix(markdown): Add missing list property to Attributes and Defs docs --- markdown/dev/reference/api/attributes/en.md | 6 ++++++ markdown/dev/reference/api/defs/en.md | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/markdown/dev/reference/api/attributes/en.md b/markdown/dev/reference/api/attributes/en.md index fb6d194ec25..25a7bb246fd 100644 --- a/markdown/dev/reference/api/attributes/en.md +++ b/markdown/dev/reference/api/attributes/en.md @@ -12,6 +12,12 @@ Attributes new Attributes() The Attributes constructor takes no arguments. +## Properties + +An Attributes object comes with the following property: + +- `list` : The of individual attributes. + ## Methods An Attributes object exposes the following methods: diff --git a/markdown/dev/reference/api/defs/en.md b/markdown/dev/reference/api/defs/en.md index 4e77f0db2f2..8f3271eccca 100644 --- a/markdown/dev/reference/api/defs/en.md +++ b/markdown/dev/reference/api/defs/en.md @@ -7,9 +7,15 @@ The `Defs` object in FreeSewing's core library represents an SVG document's It is not directly exposed, but it is available as the `defs` attribute of an [Svg object](/reference/api/svg/defs). -While the methods exposed by this object are typically only used internally, +While the properties and methods exposed by this object are typically only used internally, they are documented here to facilitate development of plugins. +## Properties + +A Defs object comes with the following property: + +- `list` : The entries of the `defs` element. + ## Defs methods From 74d30ec8b63460d21c7b2765d233f72640b7b2a7 Mon Sep 17 00:00:00 2001 From: Benjamin Fan Date: Sun, 11 Feb 2024 06:23:18 -0800 Subject: [PATCH 2/2] fix(markdown): In Attributes and Defs docs, correct `list` property description --- markdown/dev/reference/api/attributes/en.md | 2 +- markdown/dev/reference/api/defs/en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/dev/reference/api/attributes/en.md b/markdown/dev/reference/api/attributes/en.md index 25a7bb246fd..793a22fe59e 100644 --- a/markdown/dev/reference/api/attributes/en.md +++ b/markdown/dev/reference/api/attributes/en.md @@ -16,7 +16,7 @@ The Attributes constructor takes no arguments. An Attributes object comes with the following property: -- `list` : The of individual attributes. +- `list` : Holds the internal object in which attributes are stored ## Methods An Attributes object exposes the following methods: diff --git a/markdown/dev/reference/api/defs/en.md b/markdown/dev/reference/api/defs/en.md index 8f3271eccca..ef392aa042d 100644 --- a/markdown/dev/reference/api/defs/en.md +++ b/markdown/dev/reference/api/defs/en.md @@ -14,7 +14,7 @@ they are documented here to facilitate development of plugins. A Defs object comes with the following property: -- `list` : The entries of the `defs` element. +- `list` : Holds the internal object in which entries of the `defs` element are stored ## Defs methods