1
0
Fork 0

New point methods

This commit is contained in:
joostdecock 2018-07-12 07:37:52 +00:00
parent c761e5d157
commit 11785baf1f
22 changed files with 81 additions and 407 deletions

View file

@ -37,3 +37,29 @@ export interface DraftConfig {
scope?: string[];
theme?: string;
}
declare namespace Pattern {
export type OptionType = "measure" | "percentage" | "angle" | "choice" | "constant";
export interface Option {
id: string;
val: number;
type?: string;
onlyIf?: {
option: string;
oneOf: number[];
}
min?: number;
max?: number;
options?: {
[index: number]: string;
}
}
export interface Config {
parts: string[];
measurements: string[];
options: Option[];
[propName: string]: any;
}
}