1
0
Fork 0

fix(docs): Howtos documentation corrections and updates

This commit is contained in:
Benjamin F 2022-12-22 17:24:59 -08:00
parent 04da277fd2
commit 24f7776840
25 changed files with 46 additions and 43 deletions

View file

@ -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
}