UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

17 lines 565 B
import { Node } from '../../programmatic/node.js'; import { NumberSchema } from '../../schemas/index.js'; export default class NodeDefinition extends Node { static title = 'Number'; static type = 'studio.tokens.preview.number'; static description = 'Previews a number'; constructor(props) { super(props); this.addInput('value', { type: { ...NumberSchema, default: 0 } }); this.addInput('precision', { type: { ...NumberSchema, default: 2 } }); } } //# sourceMappingURL=number.js.map