@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
40 lines • 1.03 kB
TypeScript
import { Color } from '../../types.js';
import { ColorSpace } from './lib/spaces.js';
import { INodeDefinition, ToInput, ToOutput } from '../../index.js';
import { Node } from '../../programmatic/node.js';
export default class DestructColorNode extends Node {
static title: string;
static type: string;
static description: string;
inputs: ToInput<{
/**
* The color to deconstruct
*/
color: Color;
}>;
outputs: ToOutput<{
/**
* The color space of the input color
*/
space: ColorSpace;
/**
* The first channel value
*/
a: number;
/**
* The second channel value
*/
b: number;
/**
* The third channel value
*/
c: number;
/**
* The fourth channel value (alpha)
*/
alpha?: number;
}>;
constructor(props: INodeDefinition);
execute(): void | Promise<void>;
}
//# sourceMappingURL=deconstruct.d.ts.map