gregwar / blocks.js Goto Github PK
View Code? Open in Web Editor NEWJavaScript dataflow graph editor
License: MIT License
JavaScript dataflow graph editor
License: MIT License
It reads:
{
name: "User #",
dimension: "n",
attrs: "output"
}
shouldn't that be
{
name: "User",
label: "User #",
dimension: "n",
attrs: "output"
}
The '#' in the name field causes problems since that ends up in the connectorID and other parts that use the name field
As i understand it is not possible to have circular connections, would it be possible to allow this somehow?
When reducing the size of a variadic I/O, edges are not deleted
Blocks.prototype.perfectScale = function()
{
if (!this.div) {
return;
}
var xMin = null, xMax = null;
var yMin = null, yMax = null;
for (var k in this.blocks) {
var block = this.blocks[k];
if (xMin == null) {
xMin = block.x-15
xMax = block.x+block.width+18;
yMin = block.y-15
yMax = block.y+115;
} else {
xMin = Math.min(xMin, block.x-15);
xMax = Math.max(xMax, block.x+block.width+18);
yMin = Math.min(yMin, block.y-15);
yMax = Math.max(yMax, block.y+115);
}
}
That should hide the parameters
Create a type like * or any compatible with everything
Blocks.js does not allow input-input or output-output connection. The prefix information is redundant.
To let the user chose among some values
Color gradient or arrow
For instance, it could be useful tu add a lot of motors in a row
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.