@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
27 lines • 864 B
TypeScript
import { Color as ColorType } from '../../types.js';
import { ContrastAlgorithm } from '../../types/index.js';
import { INodeDefinition, Node } from '../../programmatic/node.js';
import { ToInput, ToOutput } from '../../programmatic/index.js';
/**
* Performs a contrast calculation between two colors using APCA-W3 calcs
*/
export default class NodeDefinition extends Node {
static title: string;
static type: string;
static description: string;
inputs: ToInput<{
a: ColorType;
b: ColorType;
background: ColorType;
algorithm: ContrastAlgorithm;
threshold: number;
}>;
outputs: ToOutput<{
color: ColorType;
sufficient: boolean;
contrast: number;
}>;
constructor(props: INodeDefinition);
execute(): void | Promise<void>;
}
//# sourceMappingURL=contrasting.d.ts.map