UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

21 lines 669 B
import { AnySchema, BooleanSchema } from '../../schemas/index.js'; import { Node } from '../../programmatic/node.js'; export default class NodeDefinition extends Node { static title = 'Logical Not'; static type = 'studio.tokens.logic.not'; static description = 'Not node allows you to negate a boolean value.'; constructor(props) { super(props); this.addInput('value', { type: AnySchema }); this.addOutput('value', { type: BooleanSchema }); } execute() { const { value } = this.getAllInputs(); this.outputs.value.set(!value); } } //# sourceMappingURL=not.js.map