feat(snapseries): Initial release
This commit is contained in:
parent
10c764d7fe
commit
969d5ecf9f
9 changed files with 253 additions and 0 deletions
21
CHANGELOG.md
21
CHANGELOG.md
|
@ -20,6 +20,16 @@
|
|||
- Added measurements for dolls & giants to Workbench measurments selector
|
||||
- Added sampling for dolls & giants to Workbench tests
|
||||
|
||||
### core
|
||||
|
||||
#### Added
|
||||
|
||||
- Added support for snapped percentage options See https://github.com/freesewing/freesewing/discussions/1331
|
||||
|
||||
#### Changed
|
||||
|
||||
- Pattern.on() is now chainable as it returns the Pattern object
|
||||
|
||||
### hortensia
|
||||
|
||||
#### Changed
|
||||
|
@ -88,6 +98,17 @@
|
|||
- Changed the `boxPleatWidth` option type from `mm` to `pct`
|
||||
- Changed the `boxPleatFold` option type from `mm` to `pct`
|
||||
|
||||
#### Fixed
|
||||
|
||||
- Support drafting of non-human measurements (dolls & giants) Closes [#1318](https://github.com/freesewing/freesewing/issues/1318)
|
||||
- Fix issue with armhole introduced with the S3 options in Brian Closes
|
||||
|
||||
### snapseries
|
||||
|
||||
#### Added
|
||||
|
||||
- Initial release of `@freesewing/snapseries` wich holds commonly used series of snap values for percentage options
|
||||
|
||||
### theo
|
||||
|
||||
#### Changed
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
unreleased:
|
||||
|
||||
Added:
|
||||
core:
|
||||
- Added support for snapped percentage options
|
||||
See https://github.com/freesewing/freesewing/discussions/1331
|
||||
snapseries:
|
||||
- Initial release of `@freesewing/snapseries` wich holds
|
||||
commonly used series of snap values for percentage options
|
||||
|
||||
Changed:
|
||||
charlie:
|
||||
- Changed the `waistbandWidth` option type from `mm` to `pct`
|
||||
|
|
|
@ -65,6 +65,7 @@ sandy: 'A FreeSewing pattern for a circle skirt'
|
|||
shin: 'A FreeSewing pattern for swim trunks'
|
||||
simon: 'A FreeSewing pattern for a button down shirt'
|
||||
simone: 'A FreeSewing pattern for a button down shirt (Simone = Simon for people with breasts)'
|
||||
snapseries: 'A FreeSewing package for common values for snapped percentage options'
|
||||
strapi: "Freesewing's Strapi instance"
|
||||
sven: 'A FreeSewing pattern for a straightforward sweater'
|
||||
tamiko: 'A FreeSewing pattern for a zero-waste top'
|
||||
|
|
|
@ -19,6 +19,7 @@ namedExports:
|
|||
- models
|
||||
- pattern-info
|
||||
- mui-theme
|
||||
- snapseries
|
||||
packageJson:
|
||||
benjamin:
|
||||
author: woutervdub (https://github.com/woutervdub)
|
||||
|
|
15
packages/snapseries/CHANGELOG.md
Normal file
15
packages/snapseries/CHANGELOG.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Change log for: @freesewing/snapseries
|
||||
|
||||
|
||||
## unreleased (NaN-NaN-NaN)
|
||||
|
||||
### Added
|
||||
|
||||
- Initial release of `@freesewing/snapseries` wich holds commonly used series of snap values for percentage options
|
||||
|
||||
|
||||
This is the **initial release**, and the start of this change log.
|
||||
|
||||
> Prior to version 2, FreeSewing was not a JavaScript project.
|
||||
> As such, that history is out of scope for this change log.
|
||||
|
118
packages/snapseries/README.md
Normal file
118
packages/snapseries/README.md
Normal file
|
@ -0,0 +1,118 @@
|
|||

|
||||
<p align='center'><a
|
||||
href="https://www.npmjs.com/package/@freesewing/snapseries"
|
||||
title="@freesewing/snapseries on NPM"
|
||||
><img src="https://img.shields.io/npm/v/@freesewing/snapseries.svg"
|
||||
alt="@freesewing/snapseries on NPM"/>
|
||||
</a><a
|
||||
href="https://opensource.org/licenses/MIT"
|
||||
title="License: MIT"
|
||||
><img src="https://img.shields.io/npm/l/@freesewing/snapseries.svg?label=License"
|
||||
alt="License: MIT"/>
|
||||
</a><a
|
||||
href="https://deepscan.io/dashboard#view=project&tid=2114&pid=2993&bid=23256"
|
||||
title="Code quality on DeepScan"
|
||||
><img src="https://deepscan.io/api/teams/2114/projects/2993/branches/23256/badge/grade.svg"
|
||||
alt="Code quality on DeepScan"/>
|
||||
</a><a
|
||||
href="https://github.com/freesewing/freesewing/issues?q=is%3Aissue+is%3Aopen+label%3Apkg%3Asnapseries"
|
||||
title="Open issues tagged pkg:snapseries"
|
||||
><img src="https://img.shields.io/github/issues/freesewing/freesewing/pkg:snapseries.svg?label=Issues"
|
||||
alt="Open issues tagged pkg:snapseries"/>
|
||||
</a><a
|
||||
href="https://todo.freesewing.org/"
|
||||
title="Project board"
|
||||
><img src="https://img.shields.io/badge/%F3%A0%80%A0-Project%20board-9775fa.svg?logo=github&logoColor=white&logoWidth=15"
|
||||
alt="Project board"/>
|
||||
</a></p><p align='center'><a
|
||||
href="https://twitter.com/freesewing_org"
|
||||
title="Follow @freesewing_org on Twitter"
|
||||
><img src="https://img.shields.io/badge/%F3%A0%80%A0-Follow%20us-blue.svg?logo=twitter&logoColor=white&logoWidth=15"
|
||||
alt="Follow @freesewing_org on Twitter"/>
|
||||
</a><a
|
||||
href="https://chat.freesewing.org"
|
||||
title="Chat with us on Discord"
|
||||
><img src="https://img.shields.io/discord/698854858052075530?label=Chat%20on%20Discord"
|
||||
alt="Chat with us on Discord"/>
|
||||
</a><a
|
||||
href="https://freesewing.org/patrons/join"
|
||||
title="Become a FreeSewing Patron"
|
||||
><img src="https://img.shields.io/badge/%F3%A0%80%A0-Support%20us-blueviolet.svg?logo=cash-app&logoColor=white&logoWidth=15"
|
||||
alt="Become a FreeSewing Patron"/>
|
||||
</a><a
|
||||
href="https://instagram.com/freesewing_org"
|
||||
title="Follow @freesewing_org on Twitter"
|
||||
><img src="https://img.shields.io/badge/%F3%A0%80%A0-Follow%20us-E4405F.svg?logo=instagram&logoColor=white&logoWidth=15"
|
||||
alt="Follow @freesewing_org on Twitter"/>
|
||||
</a></p>
|
||||
|
||||
# @freesewing/snapseries
|
||||
|
||||
A FreeSewing package for common values for snapped percentage options
|
||||
|
||||
|
||||
|
||||
## What am I looking at? 🤔
|
||||
|
||||
This repository is our *monorepo*
|
||||
holding [all our NPM packages](https://freesewing.dev/reference/packages/).
|
||||
|
||||
This folder holds: @freesewing/snapseries
|
||||
|
||||
## About FreeSewing 💀
|
||||
|
||||
Where the world of makers and developers collide, that's where you'll find FreeSewing.
|
||||
|
||||
If you're a maker, checkout [freesewing.org](https://freesewing.org/) where you can generate
|
||||
our sewing patterns adapted to your measurements.
|
||||
|
||||
If you're a developer, our documentation is on [freesewing.dev](https://freesewing.dev/).
|
||||
Our [core library](https://freesewing.dev/reference/api/) is a *batteries-included* toolbox
|
||||
for parametric design of sewing patterns. But we also provide a range
|
||||
of [plugins](https://freesewing.dev/reference/plugins/) that further extend the
|
||||
functionality of the platform.
|
||||
|
||||
If you have NodeJS installed, you can try it right now by running:
|
||||
|
||||
```bash
|
||||
npx create-freesewing-pattern
|
||||
```
|
||||
|
||||
Or, consult our getting started guides
|
||||
for [Linux](https://freesewing.dev/tutorials/getting-started-linux/),
|
||||
[MacOS](https://freesewing.dev/tutorials/getting-started-mac/),
|
||||
or [Windows](https://freesewing.dev/tutorials/getting-started-windows/).
|
||||
|
||||
We also have a [pattern design tutorial](https://freesewing.dev/tutorials/pattern-design/) that
|
||||
walks you through your first parametric design,
|
||||
and [a friendly community](https://freesewing.org/community/where/) with
|
||||
people who can help you when you get stuck.
|
||||
|
||||
## Support FreeSewing: Become a patron 🥰
|
||||
|
||||
FreeSewing is an open source project run by a community,
|
||||
and financially supported by our patrons.
|
||||
|
||||
If you feel what we do is worthwhile, and you can spend a few coind without
|
||||
hardship, then you should [join us and become a patron](https://freesewing.org/community/join).
|
||||
|
||||
## Links 👩💻
|
||||
|
||||
- 💻 Makers website: [freesewing.org](https://freesewing.org)
|
||||
- 💻 Developers website: [freesewing.dev](https://freesewing.dev)
|
||||
- 💬 Chat: On Discord via [discord.freesewing.org](https://discord.freesewing.org/)
|
||||
- ✅ Todo list/Kanban board: On Github via [todo.freesewing.org](https://todo.freesewing.org/)
|
||||
- 🐦 Twitter: [@freesewing_org](https://twitter.com/freesewing_org)
|
||||
- 📷 Instagram: [@freesewing_org](https://instagram.com/freesewing_org)
|
||||
|
||||
## License: MIT 🤓
|
||||
|
||||
© [Joost De Cock](https://github.com/joostdecock).
|
||||
See [the license file](https://github.com/freesewing/freesewing/blob/develop/LICENSE) for details.
|
||||
|
||||
## Where to get help 🤯
|
||||
|
||||
Our [chatrooms on Discord](https://chat.freesewing.org/) are the best place to ask questions,
|
||||
share your feedback, or just hang out.
|
||||
|
||||
If you want to report a problem, please [create an issue](https://github.com/freesewing/freesewing/issues/new).
|
55
packages/snapseries/package.json
Normal file
55
packages/snapseries/package.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"name": "@freesewing/snapseries",
|
||||
"version": "2.18.0",
|
||||
"description": "A FreeSewing package for common values for snapped percentage options",
|
||||
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
|
||||
"homepage": "https://freesewing.org/",
|
||||
"repository": "github:freesewing/freesewing",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/freesewing/freesewing/issues"
|
||||
},
|
||||
"funding": {
|
||||
"type": "individual",
|
||||
"url": "https://freesewing.org/patrons/join"
|
||||
},
|
||||
"keywords": [
|
||||
"freesewing",
|
||||
"design",
|
||||
"diy",
|
||||
"fashion",
|
||||
"made to measure",
|
||||
"parametric design",
|
||||
"sewing"
|
||||
],
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build": "rollup -c",
|
||||
"test": "echo \"snapseries: No tests configured. Perhaps you'd like to do this?\" && exit 0",
|
||||
"pubtest": "npm publish --registry http://localhost:6662",
|
||||
"pubforce": "npm publish",
|
||||
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
|
||||
"start": "rollup -c -w"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"files": [
|
||||
"dist/*",
|
||||
"README.md",
|
||||
"package.json"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"tag": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.0.0",
|
||||
"npm": ">=6"
|
||||
},
|
||||
"rollup": {
|
||||
"exports": "named"
|
||||
}
|
||||
}
|
29
packages/snapseries/rollup.config.js
Normal file
29
packages/snapseries/rollup.config.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import json from '@rollup/plugin-json'
|
||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||
import { name, version, description, author, license, main, module, rollup } from './package.json'
|
||||
|
||||
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
const output = [
|
||||
{
|
||||
banner,
|
||||
file: main,
|
||||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
exports: rollup.exports,
|
||||
},
|
||||
]
|
||||
if (typeof module !== 'undefined')
|
||||
output.push({
|
||||
banner,
|
||||
file: module,
|
||||
format: 'es',
|
||||
sourcemap: true,
|
||||
})
|
||||
|
||||
export default {
|
||||
input: 'src/index.js',
|
||||
output,
|
||||
plugins: [peerDepsExternal(), resolve({ modulesOnly: true }), commonjs(), json()],
|
||||
}
|
5
packages/snapseries/src/index.js
Normal file
5
packages/snapseries/src/index.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Common width for elastics
|
||||
export const elastics = {
|
||||
metric: [3.5, 5, 10, 12, 20, 25, 30, 40, 50, 60, 80, 100, 120],
|
||||
imperial: [3.175, 6.35, 9.525, 12.7, 15.24, 19.05, 25.4, 30.48, 50.8, 76.2, 88.9, 101.6, 127],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue