@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
33 lines • 1.07 kB
TypeScript
import { Color, INodeDefinition, ToInput, ToOutput } from '../../index.js';
import { Node } from '../../programmatic/node.js';
export declare enum ColorBlindnessTypes {
TRITANOPIA = "tritanopia",
TRITANOMALY = "tritanomaly",
DEUTERANOPIA = "deuteranopia",
DEUTERANOMALY = "deuteranomaly",
PROTANOPIA = "protanopia",
PROTANOMALY = "protanomaly",
ACHROMATOPSIA = "achromatopsia",
ACHROMATOMALY = "achromatomaly"
}
/**
* Converts provided colors to the colors as perceived by the specified color blindness type.
*/
export default class NodeDefinition extends Node {
static title: string;
static type: string;
static description: string;
inputs: ToInput<{
color: Color;
type: ColorBlindnessTypes;
}>;
outputs: ToOutput<{
/**
* The calculated color contrast based on the input color and the specified color blindness type.
*/
value: Color;
}>;
constructor(props: INodeDefinition);
execute(): void | Promise<void>;
}
//# sourceMappingURL=colorBlindness.d.ts.map