Question about NodeEditor "Switch" Node

 From:  wayne hill (WAYNEHILL5202)
9984.12 In reply to 9984.11 
Hi Brian,

On the node javascript, add a ctx.save() before starting the ctx drawing and end with a ctx.restore();

Wayne

code:
SwDPDT2.prototype.onDrawForeground = function(ctx)
{
        ctx.save(); // save the context so we don't mess up others

	this.onDrawVectorSwitch(ctx);
        
        ctx.restore(); // restore context to what it was on entry
};

EDITED: 16 Oct 2020 by WAYNEHILL5202