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
};
|