combo widget now supports callback to get possible values

This commit is contained in:
tamat
2018-12-17 16:46:57 +01:00
parent b2667a5f59
commit f22f2c965e
5 changed files with 548 additions and 484 deletions

View File

@@ -64,6 +64,13 @@ Subgraph.prototype.onDrawTitle = function(ctx)
ctx.fill();
}
Subgraph.prototype.onDblClick = function(e,pos,graphcanvas)
{
var that = this;
setTimeout(function(){ graphcanvas.openSubgraph( that.subgraph ); },10 );
}
Subgraph.prototype.onMouseDown = function(e,pos,graphcanvas)
{
if( !this.flags.collapsed && pos[0] > this.size[0] - LiteGraph.NODE_TITLE_HEIGHT && pos[1] < 0 )