2019-04-29 09:01:51 +02:00
|
|
|
import React from "react";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import Workbench from ".";
|
|
|
|
import freesewing from "@freesewing/core";
|
2019-04-30 16:20:43 +02:00
|
|
|
|
|
|
|
const config = {
|
|
|
|
name: "aaron",
|
|
|
|
version: "0.1",
|
|
|
|
design: "Joost De Cock",
|
|
|
|
code: "Joost De Cock",
|
|
|
|
department: "menswear",
|
|
|
|
type: "pattern",
|
|
|
|
difficulty: 1,
|
|
|
|
tags: ["story", "test"],
|
|
|
|
optionGroups: {
|
|
|
|
fit: ["armholeDrop", "backlineBend"]
|
|
|
|
},
|
|
|
|
measurements: ["bicepsCircumference", "centerBackNeckToWaist"],
|
|
|
|
parts: ["base"],
|
|
|
|
options: {
|
|
|
|
armholeDrop: { pct: 10, min: 1, max: 75 },
|
|
|
|
backlineBend: { mm: 50, min: 50, max: 100 }
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const gist = {
|
|
|
|
settings: {
|
|
|
|
embed: true,
|
|
|
|
sa: 10,
|
|
|
|
complete: true,
|
|
|
|
paperless: false,
|
|
|
|
locale: "en",
|
|
|
|
units: "metric",
|
|
|
|
margin: 2,
|
|
|
|
options: {
|
|
|
|
armholeDrop: 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2019-04-29 09:01:51 +02:00
|
|
|
|
|
|
|
const props = {
|
|
|
|
freesewing,
|
2019-05-01 10:43:39 +02:00
|
|
|
Pattern: () => "aaron",
|
2019-04-30 16:20:43 +02:00
|
|
|
config,
|
|
|
|
from: gist
|
2019-04-29 09:01:51 +02:00
|
|
|
};
|
2019-04-29 10:43:45 +02:00
|
|
|
|
2019-04-30 16:20:43 +02:00
|
|
|
storiesOf("Workbench", module)
|
|
|
|
.add("Metric", () => <Workbench {...props} units="metric" />)
|
|
|
|
.add("Imperial", () => <Workbench {...props} units="imperial" />);
|