
Some of these links were actually broken, since they expect to find designs under the `packages/` directory in the current `develop` branch. Other links were technically okay, since they link to old commits, but updating those links may still help to reduce confusion. Also fix a reference to `packages/unice` in a `netlify.toml` file. (Untested, but I don't think this is an actual Netlify configuration.)
22 lines
587 B
Markdown
22 lines
587 B
Markdown
---
|
|
title: Hide paths from an inherited part
|
|
for: developers
|
|
about: When you inherit a part, it comes with a bunch of paths. Here'show to hide them
|
|
---
|
|
|
|
<Note>
|
|
|
|
##### See this example in our source code
|
|
|
|
- [designs/aaron/src/front.js](https://github.com/freesewing/freesewing/blob/3ca5d0edfe54c7ac20aaf3af2f3544aee72f9b99/designs/aaron/src/front.js#L22)
|
|
|
|
</Note>
|
|
|
|
The example below is from Aaron which inherits from Brian.
|
|
|
|
We iterate over the paths and set their render property to false.
|
|
|
|
```js
|
|
// Hide Brian paths
|
|
for (let key of Object.keys(paths)) paths[key].render = false
|
|
```
|