annotate web/lib/onecolor.d.ts @ 2405:69ca2b2fc133

overcomplicated attempt at persisting the pane layout in the rdf graph this was hard because we have to somehow wait for the graph to load before config'ing the panes
author drewp@bigasterisk.com
date Fri, 17 May 2024 16:58:26 -0700
parents 4556eebe5d73
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2241
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
1 type ColorFormat = "hex" | "rgb" | "hsl" | "hsv";
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
2 interface Color {
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
3 clone(): this;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
4 toString(format?: ColorFormat): string;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
5 toJSON(): string;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
6 value(): number;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
7 value(v: number): this;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
8 hex(): string;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
9 }
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
10
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
11 declare function color(value: any): Color;
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
12
8d6792a6ffdb use onecolor in TS
drewp@bigasterisk.com
parents:
diff changeset
13 export = color;