✨ New point methods
This commit is contained in:
parent
c761e5d157
commit
11785baf1f
22 changed files with 81 additions and 407 deletions
26
lib/types.ts
26
lib/types.ts
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue