@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering
168 lines (167 loc) • 4.51 kB
TypeScript
import type { HSLA, RGBA } from './type';
export declare const named: {
aliceblue: string;
antiquewhite: string;
aqua: string;
aquamarine: string;
azure: string;
beige: string;
bisque: string;
black: string;
blanchedalmond: string;
blue: string;
blueviolet: string;
brown: string;
burlywood: string;
burntsienna: string;
cadetblue: string;
chartreuse: string;
chocolate: string;
coral: string;
cornflowerblue: string;
cornsilk: string;
crimson: string;
cyan: string;
darkblue: string;
darkcyan: string;
darkgoldenrod: string;
darkgray: string;
darkgreen: string;
darkgrey: string;
darkkhaki: string;
darkmagenta: string;
darkolivegreen: string;
darkorange: string;
darkorchid: string;
darkred: string;
darksalmon: string;
darkseagreen: string;
darkslateblue: string;
darkslategray: string;
darkslategrey: string;
darkturquoise: string;
darkviolet: string;
deeppink: string;
deepskyblue: string;
dimgray: string;
dimgrey: string;
dodgerblue: string;
firebrick: string;
floralwhite: string;
forestgreen: string;
fuchsia: string;
gainsboro: string;
ghostwhite: string;
gold: string;
goldenrod: string;
gray: string;
green: string;
greenyellow: string;
grey: string;
honeydew: string;
hotpink: string;
indianred: string;
indigo: string;
ivory: string;
khaki: string;
lavender: string;
lavenderblush: string;
lawngreen: string;
lemonchiffon: string;
lightblue: string;
lightcoral: string;
lightcyan: string;
lightgoldenrodyellow: string;
lightgray: string;
lightgreen: string;
lightgrey: string;
lightpink: string;
lightsalmon: string;
lightseagreen: string;
lightskyblue: string;
lightslategray: string;
lightslategrey: string;
lightsteelblue: string;
lightyellow: string;
lime: string;
limegreen: string;
linen: string;
magenta: string;
maroon: string;
mediumaquamarine: string;
mediumblue: string;
mediumorchid: string;
mediumpurple: string;
mediumseagreen: string;
mediumslateblue: string;
mediumspringgreen: string;
mediumturquoise: string;
mediumvioletred: string;
midnightblue: string;
mintcream: string;
mistyrose: string;
moccasin: string;
navajowhite: string;
navy: string;
oldlace: string;
olive: string;
olivedrab: string;
orange: string;
orangered: string;
orchid: string;
palegoldenrod: string;
palegreen: string;
paleturquoise: string;
palevioletred: string;
papayawhip: string;
peachpuff: string;
peru: string;
pink: string;
plum: string;
powderblue: string;
purple: string;
rebeccapurple: string;
red: string;
rosybrown: string;
royalblue: string;
saddlebrown: string;
salmon: string;
sandybrown: string;
seagreen: string;
seashell: string;
sienna: string;
silver: string;
skyblue: string;
slateblue: string;
slategray: string;
slategrey: string;
snow: string;
springgreen: string;
steelblue: string;
tan: string;
teal: string;
thistle: string;
tomato: string;
turquoise: string;
violet: string;
wheat: string;
white: string;
whitesmoke: string;
yellow: string;
yellowgreen: string;
};
export declare function hue2rgb(m1: number, m2: number, h: number): number;
export declare function rgba2hsla(rgba: RGBA): HSLA;
export declare function rgba2hsla(r: number, g: number, b: number, a?: number): HSLA;
export declare function hsla2rgba(hsla: HSLA): RGBA;
export declare function hsla2rgba(h: number, s: number, l: number, a?: number): RGBA;
export declare function randomHex(): string;
export declare function invert(rgba: RGBA, bw: boolean): RGBA;
export declare function invert(hex: string, bw: boolean): string;
export declare function hex2rgb(hex: string): [number, number, number];
export declare function rgb2hex(r: number, g: number, b: number): string;
export declare function lum(color: RGBA | string, amt: number): RGBA | string;
export declare function lighten(rgba: RGBA, amt: number): RGBA;
export declare function lighten(hex: string, amt: number): string;
export declare function darken(rgba: RGBA, amt: number): RGBA;
export declare function darken(hex: string, amt: number): string;