pencil2: Readme update
This commit is contained in:
parent
b209c264fb
commit
8ce40de9e3
2 changed files with 92 additions and 55 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
<p align="center">
|
||||||
|
<a title="Go to freesewing.org" href="https://freesewing.org/"><img src="https://freesewing.org/img/logo/black.svg" align="center" width="150px" alt="Freesewing logo"/></a>
|
||||||
|
</p>
|
||||||
|
<h4 align="center"><em> <a title="Go to freesewing.org" href="https://freesewing.org/">freesewing</a></em>
|
||||||
|
<br><sup>a library for made-to-measure sewing patterns</sup>
|
||||||
|
</h4>
|
||||||
|
|
||||||
# Models
|
# Models
|
||||||
A set of body measurement data for a range of standard models/sizes.
|
A set of body measurement data for a range of standard models/sizes.
|
||||||
|
|
||||||
|
@ -9,6 +16,8 @@ npm install --save @freesewing/models
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
In node.js:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { manSize38 } from @freesewing/models
|
import { manSize38 } from @freesewing/models
|
||||||
```
|
```
|
||||||
|
@ -30,6 +39,20 @@ The example above gives you:
|
||||||
wristCircumference: 185
|
wristCircumference: 185
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In the browser, this will register as `freesewing.models`:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script type="text/javascript" src="https://unpkg.com/freesewing"></script>
|
||||||
|
<script type="text/javascript" src="https://unpkg.com/@freesewing/models"></script>
|
||||||
|
<script type="text/javascript" src="https://unpkg.com/@freesewing/pattern-brian"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var pattern = freesewing.patterns.brian;
|
||||||
|
pattern.settings.measurements = freesewing.models.manSize38;
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
## Units
|
## Units
|
||||||
|
|
||||||
All measurements are in mm.
|
All measurements are in mm.
|
||||||
|
@ -42,3 +65,17 @@ All measurements are in mm.
|
||||||
- manSize40
|
- manSize40
|
||||||
- manSize42
|
- manSize42
|
||||||
- manSize44
|
- manSize44
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
To build this, run:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
## License: MIT
|
||||||
|
|
||||||
|
See [the license file](https://github.com/freesewing/plugin-theme/blob/master/LICENSE)
|
||||||
|
for details.
|
||||||
|
|
||||||
|
|
|
@ -1,74 +1,74 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
manSize34: {
|
manSize34: {
|
||||||
bicepsCircumference: 335,
|
bicepsCircumference: 335,
|
||||||
centerBackNeckToWaist: 489,
|
centerBackNeckToWaist: 489,
|
||||||
chestCircumference: 849,
|
chestCircumference: 849,
|
||||||
hipsCircumference: 722,
|
hipsCircumference: 722,
|
||||||
naturalWaistToHip: 100,
|
naturalWaistToHip: 100,
|
||||||
neckCircumference: 366,
|
neckCircumference: 366,
|
||||||
shoulderSlope: 43,
|
shoulderSlope: 43,
|
||||||
shoulderToShoulder: 419,
|
shoulderToShoulder: 419,
|
||||||
shoulderToWrist: 670,
|
shoulderToWrist: 670,
|
||||||
wristCircumference: 175
|
wristCircumference: 175
|
||||||
},
|
},
|
||||||
manSize36: {
|
manSize36: {
|
||||||
bicepsCircumference: 290,
|
bicepsCircumference: 290,
|
||||||
centerBackNeckToWaist: 492,
|
centerBackNeckToWaist: 492,
|
||||||
chestCircumference: 907,
|
chestCircumference: 907,
|
||||||
hipsCircumference: 780,
|
hipsCircumference: 780,
|
||||||
naturalWaistToHip: 105,
|
naturalWaistToHip: 105,
|
||||||
neckCircumference: 378,
|
neckCircumference: 378,
|
||||||
shoulderSlope: 46,
|
shoulderSlope: 46,
|
||||||
shoulderToShoulder: 431,
|
shoulderToShoulder: 431,
|
||||||
shoulderToWrist: 675,
|
shoulderToWrist: 675,
|
||||||
wristCircumference: 180
|
wristCircumference: 180
|
||||||
},
|
},
|
||||||
manSize38: {
|
manSize38: {
|
||||||
bicepsCircumference: 305,
|
bicepsCircumference: 305,
|
||||||
centerBackNeckToWaist: 495,
|
centerBackNeckToWaist: 495,
|
||||||
chestCircumference: 965,
|
chestCircumference: 965,
|
||||||
hipsCircumference: 838,
|
hipsCircumference: 838,
|
||||||
naturalWaistToHip: 110,
|
naturalWaistToHip: 110,
|
||||||
neckCircumference: 391,
|
neckCircumference: 391,
|
||||||
shoulderSlope: 49,
|
shoulderSlope: 49,
|
||||||
shoulderToShoulder: 444,
|
shoulderToShoulder: 444,
|
||||||
shoulderToWrist: 680,
|
shoulderToWrist: 680,
|
||||||
wristCircumference: 185
|
wristCircumference: 185
|
||||||
},
|
},
|
||||||
manSize40: {
|
manSize40: {
|
||||||
bicepsCircumference: 320,
|
bicepsCircumference: 320,
|
||||||
centerBackNeckToWaist: 498,
|
centerBackNeckToWaist: 498,
|
||||||
chestCircumference: 1023,
|
chestCircumference: 1023,
|
||||||
hipsCircumference: 896,
|
hipsCircumference: 896,
|
||||||
naturalWaistToHip: 115,
|
naturalWaistToHip: 115,
|
||||||
neckCircumference: 404,
|
neckCircumference: 404,
|
||||||
shoulderSlope: 52,
|
shoulderSlope: 52,
|
||||||
shoulderToShoulder: 457,
|
shoulderToShoulder: 457,
|
||||||
shoulderToWrist: 685,
|
shoulderToWrist: 685,
|
||||||
wristCircumference: 190
|
wristCircumference: 190
|
||||||
},
|
},
|
||||||
manSize42: {
|
manSize42: {
|
||||||
bicepsCircumference: 335,
|
bicepsCircumference: 335,
|
||||||
centerBackNeckToWaist: 501,
|
centerBackNeckToWaist: 501,
|
||||||
chestCircumference: 1081,
|
chestCircumference: 1081,
|
||||||
hipsCircumference: 895,
|
hipsCircumference: 895,
|
||||||
naturalWaistToHip: 120,
|
naturalWaistToHip: 120,
|
||||||
neckCircumference: 416,
|
neckCircumference: 416,
|
||||||
shoulderSlope: 55,
|
shoulderSlope: 55,
|
||||||
shoulderToShoulder: 470,
|
shoulderToShoulder: 470,
|
||||||
shoulderToWrist: 690,
|
shoulderToWrist: 690,
|
||||||
wristCircumference: 195
|
wristCircumference: 195
|
||||||
},
|
},
|
||||||
manSize44: {
|
manSize44: {
|
||||||
bicepsCircumference: 350,
|
bicepsCircumference: 350,
|
||||||
centerBackNeckToWaist: 505,
|
centerBackNeckToWaist: 505,
|
||||||
chestCircumference: 1139,
|
chestCircumference: 1139,
|
||||||
hipsCircumference: 1012,
|
hipsCircumference: 1012,
|
||||||
naturalWaistToHip: 125,
|
naturalWaistToHip: 125,
|
||||||
neckCircumference: 429,
|
neckCircumference: 429,
|
||||||
shoulderSlope: 58,
|
shoulderSlope: 58,
|
||||||
shoulderToShoulder: 483,
|
shoulderToShoulder: 483,
|
||||||
shoulderToWrist: 700,
|
shoulderToWrist: 700,
|
||||||
wristCircumference: 200
|
wristCircumference: 200
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue