1
0
Fork 0

Exporting work from bea

This commit is contained in:
joostdecock 2018-07-10 12:20:53 +00:00
parent d80287c8f8
commit 145272c546
17 changed files with 232 additions and 1952 deletions

26
lib/types.ts Normal file
View file

@ -0,0 +1,26 @@
export interface PatternOption {
type?: "measure" | "percentage" | "angle" | "choice";
onlyIf?: {
option: string;
oneOf: number[];
}
min?: number;
max?: number;
std: number;
options?: {
[index: number]: string;
}
}
export interface PatternConfig {
parts: string[];
measurements: string[];
options: PatternOption[];
[propName: string]: any;
}
export type Pattern = {
parts: string[];
measurements: string[];
config: PatternConfig;
}