UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

27 lines 926 B
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'; /** * Evaluates an array of colors against a background color and returns the first one that meets the contrast threshold */ export default class NodeDefinition extends Node { static title: string; static type: string; static description: string; inputs: ToInput<{ colors: ColorType[]; background: ColorType; algorithm: ContrastAlgorithm; threshold: number; }>; outputs: ToOutput<{ color: ColorType; sufficient: boolean; contrast: number; index: number; }>; constructor(props: INodeDefinition); execute(): void | Promise<void>; } //# sourceMappingURL=contrastingFromArray.d.ts.map