construction: Ant-man test
This commit is contained in:
parent
9ad7de8e3b
commit
0fa35178e2
5 changed files with 18 additions and 22 deletions
|
@ -1,7 +1,6 @@
|
|||
/** Pattern parts */
|
||||
export default {
|
||||
name: "brian",
|
||||
parts: ["back", "front", "_sleeve"],
|
||||
measurements: [
|
||||
"bicepsCircumference",
|
||||
"centerBackNeckToWaist",
|
||||
|
@ -16,11 +15,10 @@ export default {
|
|||
],
|
||||
options: {
|
||||
// Constants
|
||||
shoulderSlopeReduction: { val: 0, type: "constant" },
|
||||
// TODO shoulderSlopeReduction: { val: 0, type: "constant" },
|
||||
collarFactor: { val: 4.8, type: "constant" },
|
||||
|
||||
// Measures
|
||||
cuffEase: { val: 45, min: 0, max: 100, type: "measure" },
|
||||
lengthBonus: { val: 0, min: -40, max: 120, type: "measure" },
|
||||
shoulderEase: { val: 0, min: -20, max: 60, type: "measure" },
|
||||
sleeveLengthBonus: { val: 0, min: -40, max: 80, type: "measure" },
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
<script type="text/javascript" src="dist/browser.js"></script>
|
||||
<script type="text/javascript" src="tmp/theme.js"></script>
|
||||
<script type="text/javascript" src="tmp/designer.js"></script>
|
||||
<script type="text/javascript" src="tmp/models.js"></script>
|
||||
<script type="text/javascript" src="tmp/antmantest.js"></script>
|
||||
<script>
|
||||
var debug = {
|
||||
name: 'debug',
|
||||
|
@ -24,32 +26,26 @@
|
|||
}
|
||||
}
|
||||
};
|
||||
console.log('models', freesewing.models);
|
||||
var pattern = freesewing.patterns.brian
|
||||
.with(debug)
|
||||
.with(freesewing.plugins.theme)
|
||||
// .with(freesewing.plugins.designer)
|
||||
pattern.settings.measurements = {
|
||||
bicepsCircumference: 335,
|
||||
centerBackNeckToWaist: 480,
|
||||
chestCircumference: 1080,
|
||||
hipsCircumference: 950,
|
||||
naturalWaistToHip: 120,
|
||||
neckCircumference: 420,
|
||||
shoulderSlope: 55,
|
||||
shoulderToShoulder: 470,
|
||||
shoulderToWrist: 700,
|
||||
wristCircumference: 190
|
||||
};
|
||||
|
||||
//pattern.settings.paperless = true;
|
||||
pattern.settings.sa = 10;
|
||||
pattern.settings.paperless = true;
|
||||
|
||||
pattern.settings.measurements = freesewing.models.manSize36;
|
||||
|
||||
pattern.settings.sa = 10;
|
||||
pattern.settings.units = 'metric';
|
||||
pattern.settings.sample = {
|
||||
type: 'measurement',
|
||||
measurement: 'shoulderToShoulder'
|
||||
}
|
||||
//pattern.sampleOption('sleeveWidthGuarantee');
|
||||
pattern.sampleMeasurement('bicepsCircumference');
|
||||
//pattern.sampleOption('chestEase');
|
||||
//pattern.sampleMeasurement('bicepsCircumference');
|
||||
pattern.sampleModels(freesewing.antmantest);
|
||||
//pattern.draft();
|
||||
document.getElementById("svg").innerHTML = pattern.render();
|
||||
|
||||
function pointHover(evt) {
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
"description": "Freesewing pattern for a basic body block for menswear",
|
||||
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/freesewing/pattern-brian#readme",
|
||||
"repository": "github:freesewing/pattern-brian",
|
||||
"homepage": "https://github.com/freesewing/brian#readme",
|
||||
"repository": "github:freesewing/brian",
|
||||
"bugs": {
|
||||
"url": "https://github.com/freesewing/pattern-brian/issues"
|
||||
"url": "https://github.com/freesewing/brian/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"freesewing",
|
||||
|
|
1
packages/brian/tmp/antmantest.js
Symbolic link
1
packages/brian/tmp/antmantest.js
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../antmantest/dist/browser.js
|
1
packages/brian/tmp/models.js
Symbolic link
1
packages/brian/tmp/models.js
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../models/dist/browser.js
|
Loading…
Add table
Add a link
Reference in a new issue