fix(docs): Howtos documentation corrections and updates
This commit is contained in:
parent
04da277fd2
commit
24f7776840
25 changed files with 46 additions and 43 deletions
|
@ -2,18 +2,19 @@
|
|||
title: Accessing measurements
|
||||
---
|
||||
|
||||
Measurements are available on the `measurements` key of from the object passed
|
||||
[Measurements](/reference/measurements) are available on the `measurements` key of from the object passed
|
||||
to your part's draft method. You can destructure them for easy access.
|
||||
|
||||
```design/src/part.mjs
|
||||
function draftPart = ({
|
||||
// highlight-start
|
||||
measurements,
|
||||
measurements,
|
||||
// highlight-end
|
||||
part
|
||||
}) {
|
||||
|
||||
// Do something here
|
||||
const a = measurements.chest
|
||||
const b = measurements['hips']
|
||||
|
||||
return part
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue