UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

29 lines 864 B
import { Curve } from '../../types.js'; import { INodeDefinition, ToInput, ToOutput } from '../../index.js'; import { Node } from '../../programmatic/node.js'; export default class NodeDefinition extends Node { static title: string; static type: string; static description: string; inputs: ToInput<{ /** * The curve to sample */ curve: Curve; /** * The sample point to evaluate the curve at. This should be a value between 0 and 1 */ sample: number; }>; outputs: ToOutput<{ /** * A 2D vector representing the value of the curve at the sample point */ value: [number, number]; x: number; y: number; }>; constructor(props: INodeDefinition); execute(): void | Promise<void>; } //# sourceMappingURL=sample.d.ts.map