UNPKG

@selenite/graph-editor

Version:

A graph editor for visual programming, based on rete and svelte.

36 lines (35 loc) 1.04 kB
import { SolverAPINode } from './SolverAPINode'; export class UpdateVtkOutputNode extends SolverAPINode { constructor({ factory }) { // super('Update VTK Output', '/update_vtk_output', { // height: 300, // width: 180, // factory // }); super({ label: 'Update VTK Output', url: '/update_vtk_output', factory, height: 300, width: 180 }); this.oldAddInData({ name: 'directory', displayName: 'Directory', socketLabel: 'Directory', type: 'string', isRequired: true, control: { type: 'text' } }); this.pythonComponent.addCode('$(solver).updateVtkOutputsName(directory=$(directory))'); // this.addInData({ // name: 'filenames', // displayName: 'File Names', // socketLabel: 'Directory', // type: 'string', // isRequired: true, // }); } }