euclid.js
euclid.js copied to clipboard
globalAlpha seems not to be restored properly after function call
Bug
when calling e.g. drawCanvas with a opacity setting, the globalAlpha value of the context remains changed to that value after the method call.
Expected behaviour
The global alpha should not be altered by the method, or at least restored to the previouse value.
Workaround
this.context.save();
drawCanvas(this.context, geoElement, optionsWithOpacityValue);
this.context.restore();