@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
26 lines • 945 B
TypeScript
import { Color as ColorType, ContrastAlgorithmType } from '../../types.js';
import { INodeDefinition, Node } from '../../programmatic/node.js';
import { ToInput } from "../../programmatic/input.js";
import { ToOutput } from "../../programmatic/output.js";
import Color from 'colorjs.io';
export declare const contrastCheck: (foreground: Color, background: Color, algorithm: any) => number;
export default class NodeDefinition extends Node {
static title: string;
static type: string;
static description: string;
inputs: ToInput<{
foreground: ColorType;
background: ColorType;
algorithm: ContrastAlgorithmType;
threshold: number;
precision: number;
}>;
outputs: ToOutput<{
color: ColorType;
alpha: number;
contrast: number;
}>;
constructor(props: INodeDefinition);
execute(): void | Promise<void>;
}
//# sourceMappingURL=contrastingAlpha.d.ts.map