flowgraphjs
v0.1.0
Published
High-performance WebGL node canvas library
Readme
flowgraphjs
High-performance WebGL node canvas library.
Install
npm install flowgraphjsUsage
import { FlowGraph } from 'flowgraphjs';
const fg = new FlowGraph({
container: document.getElementById('canvas')!,
statusIcons: { success: '/success.png', error: '/error.png' }
});
const n1 = fg.addNode({
id: 'A', type: 'node',
position: { x: 100, y: 100 },
size: { width: 140, height: 100 },
label: 'Start',
inputs: [], outputs: [{ id: 'out0_A', nodeId: 'A', type: 'output', index: 0, position: { x:0, y:0 } }],
selected: false,
color: { r: 0.3, g: 0.5, b: 0.8, a: 1 }
});Build library
npm run build:libOutputs ESM and type declarations to dist/.
