Revert "chore: Linting for markdown and js"
This reverts commit 1c92e0f655
.
This commit is contained in:
parent
994874fa72
commit
cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions
|
@ -1,9 +1,8 @@
|
|||
***
|
||||
|
||||
---
|
||||
title: Using attributes
|
||||
for: developers
|
||||
about: Show s you have to use attributes on points, paths, and snippets
|
||||
-----------------------------------------------------------------------
|
||||
---
|
||||
|
||||
Points, Paths, and Snippets all have [attributes](/reference/api/attributes/) that you can use to
|
||||
influence how they behave.
|
||||
|
@ -15,7 +14,7 @@ paths.example.attributes.add('class', 'lining dashed');
|
|||
```
|
||||
|
||||
Because it's so common to set attributes, Points, Paths and Snippets all have
|
||||
the `attr()` helper method.
|
||||
the `attr()` helper method.
|
||||
|
||||
Not only is less more, the method is also *chainable*, which allows you to do this:
|
||||
|
||||
|
@ -34,12 +33,12 @@ The [adding-text](/concepts/adding-text) documentation explains this in detail.
|
|||
|
||||
<Tip>
|
||||
|
||||
When rendering, FreeSewing will output all your attributes. This gives you the
|
||||
When rendering, FreeSewing will output all your attributes. This gives you the
|
||||
possiblity to use any valid attribute to control the appearance.
|
||||
|
||||
This is also why we use the *data-* prefix for those attributes that have
|
||||
special meaning within FreeSewing, such as `data-text`. Adding a `text` attribute
|
||||
would result in invalid SVG as there is no such thing as a text attribute. But `data-text`
|
||||
is fine because the `data-` prefix indicates it is a [custom attribute](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/data-\*).
|
||||
is fine because the `data-` prefix indicates it is a [custom attribute](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/data-*).
|
||||
|
||||
</Tip>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue