1
0
Fork 0

Exporting work from Bea

This commit is contained in:
joostdecock 2018-07-10 12:21:17 +00:00 committed by Joost De Cock
parent 575875f3b3
commit 76f5d03a86
11 changed files with 265 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

View file

@ -0,0 +1 @@
lib/

View file

@ -0,0 +1,74 @@
const config = {
"parts": [
"backBlock",
"frontBlock",
"sleeveBlock"
],
"measurements": [
"bicepsCircumference",
"centerBackNeckToWaist",
"chestCircumference",
"naturalWaistToHip",
"neckCircumference",
"shoulderSlope",
"shoulderToShoulder",
"hipsCircumference",
"shoulderToWrist",
"wristCircumference"
],
"options": [
{
"id": "chestEase",
"min": -40,
"max": 160,
"std": 30
},
{
"id": "bicepsEase",
"min": 30,
"max": 80,
"std": 50
},
{
"id": "cuffEase",
"min": 0,
"max": 100,
"std": 45
},
{
"id": "lengthBonus",
"min": -40,
"max": 120,
"std": 0
},
{
"id": "sleeveLengthBonus",
"min": -40,
"max": 80,
"std": 0
},
{
"id": "armholeDepthFactor",
"type": "percentage",
"min": 50,
"max": 65,
"std": 50
},
{
"id": "sleevecapHeightFactor",
"type": "percentage",
"min": 35,
"max": 75,
"std": 55
},
{
"id": "acrossBackFactor",
"type": "percentage",
"min": 93,
"max": 99,
"std": 96
}
]
}
export default config;

18
packages/brian/dist/config/config.d.ts vendored Normal file
View file

@ -0,0 +1,18 @@
declare const config: {
"parts": string[];
"measurements": string[];
"options": ({
"id": string;
"min": number;
"max": number;
"std": number;
"type"?: undefined;
} | {
"id": string;
"type": string;
"min": number;
"max": number;
"std": number;
})[];
};
export default config;

75
packages/brian/dist/config/config.js vendored Normal file
View file

@ -0,0 +1,75 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var config = {
"parts": [
"backBlock",
"frontBlock",
"sleeveBlock"
],
"measurements": [
"bicepsCircumference",
"centerBackNeckToWaist",
"chestCircumference",
"naturalWaistToHip",
"neckCircumference",
"shoulderSlope",
"shoulderToShoulder",
"hipsCircumference",
"shoulderToWrist",
"wristCircumference"
],
"options": [
{
"id": "chestEase",
"min": -40,
"max": 160,
"std": 30
},
{
"id": "bicepsEase",
"min": 30,
"max": 80,
"std": 50
},
{
"id": "cuffEase",
"min": 0,
"max": 100,
"std": 45
},
{
"id": "lengthBonus",
"min": -40,
"max": 120,
"std": 0
},
{
"id": "sleeveLengthBonus",
"min": -40,
"max": 80,
"std": 0
},
{
"id": "armholeDepthFactor",
"type": "percentage",
"min": 50,
"max": 65,
"std": 50
},
{
"id": "sleevecapHeightFactor",
"type": "percentage",
"min": 35,
"max": 75,
"std": 55
},
{
"id": "acrossBackFactor",
"type": "percentage",
"min": 93,
"max": 99,
"std": 96
}
]
};
exports.default = config;

1
packages/brian/dist/index.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export {};

12
packages/brian/dist/index.js vendored Normal file
View file

@ -0,0 +1,12 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var freesewing_1 = __importDefault(require("freesewing"));
var config_1 = __importDefault(require("./config/config"));
console.log(config_1.default);
var brian = new freesewing_1.default.pattern(config_1.default);
//brian.test('hello world');
//brian.draft = function(options: {}): void {
console.log(brian);

13
packages/brian/index.ts Normal file
View file

@ -0,0 +1,13 @@
import Freesewing from 'freesewing'
import config from './config/config'
console.log(config);
var brian = new Freesewing.pattern(config);
//brian.test('hello world');
//brian.draft = function(options: {}): void {
console.log(brian);

20
packages/brian/package-lock.json generated Normal file
View file

@ -0,0 +1,20 @@
{
"name": "@freesewing/brian",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/node": {
"version": "10.5.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.2.tgz",
"integrity": "sha512-m9zXmifkZsMHZBOyxZWilMwmTlpC8x5Ty360JKTiXvlXZfBWYpsg9ZZvP/Ye+iZUh+Q+MxDLjItVTWIsfwz+8Q==",
"dev": true
},
"typescript": {
"version": "2.9.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz",
"integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==",
"dev": true
}
}
}

View file

@ -0,0 +1,28 @@
{
"name": "@freesewing/brian",
"version": "0.0.1",
"description": "A basic body block for menswear",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"build-watch": "tsc -w",
"run": "nodemon node dist/index.js",
"run-watch": "nodemon node dist/index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/joostdecock/brian.git"
},
"author": "Joost De Cock <joost@decock.org> (https://twitter.com/j__st)",
"license": "MIT",
"bugs": {
"url": "https://github.com/joostdecock/brian/issues"
},
"homepage": "https://github.com/joostdecock/brian#readme",
"dependencies": {},
"devDependencies": {
"typescript": "^2.9.2",
"@types/node": "^10.5.2"
}
}

View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"strict": true,
"esModuleInterop": true
}
}