@selenite/graph-editor
Version:
A graph editor for visual programming, based on rete and svelte.
18 lines (17 loc) • 595 B
JavaScript
import { ObjectAPINode } from '../../ObjectAPINode';
export class SolverAPINode extends ObjectAPINode {
// constructor(name: string, url: string, { factory, height = 218, width = undefined }: NodeParams) {
constructor(params) {
const { label = '', url = '', factory, height = 218, width = undefined } = params;
super({
...params,
label: label,
url: '/makutu/solver' + url,
height: height,
width: width,
objectKey: 'solver',
objectLabel: 'Solver',
factory
});
}
}