this.pendingClip = null;
this.res = null;
this.xobjs = null;
- this.ScratchCanvas = ScratchCanvas;
this.objs = objs;
this.textLayer = textLayer;
if (canvasCtx) {
// scale the image to the unit square
ctx.scale(1 / w, -1 / h);
- var tmpCanvas = new this.ScratchCanvas(w, h);
+ var tmpCanvas = new ScratchCanvas(w, h);
var tmpCtx = tmpCanvas.getContext('2d');
var fillColor = this.current.fillColor;
// scale the image to the unit square
ctx.scale(1 / w, -1 / h);
- var tmpCanvas = new this.ScratchCanvas(w, h);
+ var tmpCanvas = new ScratchCanvas(w, h);
var tmpCtx = tmpCanvas.getContext('2d');
this.putBinaryImageData(tmpCtx, imgData, w, h);