1
0
Fork 0

chore: Port FreeSewing.dev to docusaurus

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.
This commit is contained in:
Joost De Cock 2024-09-28 13:13:48 +02:00
parent 497633d1d3
commit ab3204f9f1
692 changed files with 11037 additions and 20674 deletions

View file

@ -0,0 +1,28 @@
---
title: Hide paths but still show text
---
To hide a path but have its text still shown, add the `hidden` CSS class
to the path's attributes.
You can do this via different methods:
1. [`Path.attr()`](/reference/api/path/attr)
2. [`Path.addClass()`](/reference/api/path/addclass)
3. [`Path.setclass()`](/reference/api/path/setclass)
```mjs
path1.attr('class', 'hidden')
path2.addClass('hidden')
path3.setClass('hidden')
```
Setting the `hidden` CSS class causes the path to be invisible but
still included in the drafted pattern. Because the CSS classes for the
text are independent from the CSS classes for the path, the text
will still appear even though the path is invisible.
(Hiding a path via `Path.hide()` or `Path.setHidden()` will not work
for this purpose.
These methods will cause both the path and its accompanying text to be
omitted when the pattern is drafted.)