Name anonymous functions in canvas.js.
This commit is contained in:
parent
8f3448e9a8
commit
a7690dea0a
@ -541,8 +541,7 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Color
|
// Color
|
||||||
setStrokeColorSpace:
|
setStrokeColorSpace: function canvasGraphicsSetStrokeColorSpace(raw) {
|
||||||
function canvasGraphicsSetStrokeColorSpacefunction(raw) {
|
|
||||||
this.current.strokeColorSpace = ColorSpace.fromIR(raw);
|
this.current.strokeColorSpace = ColorSpace.fromIR(raw);
|
||||||
},
|
},
|
||||||
setFillColorSpace: function canvasGraphicsSetFillColorSpace(raw) {
|
setFillColorSpace: function canvasGraphicsSetFillColorSpace(raw) {
|
||||||
@ -553,7 +552,7 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
var color = cs.getRgb(arguments);
|
var color = cs.getRgb(arguments);
|
||||||
this.setStrokeRGBColor.apply(this, color);
|
this.setStrokeRGBColor.apply(this, color);
|
||||||
},
|
},
|
||||||
getColorN_IR_Pattern: function(IR, cs) {
|
getColorN_IR_Pattern: function canvasGraphicsGetColorN_IR_Pattern(IR, cs) {
|
||||||
if (IR[0] == 'TilingPattern') {
|
if (IR[0] == 'TilingPattern') {
|
||||||
var args = IR[1];
|
var args = IR[1];
|
||||||
var base = cs.base;
|
var base = cs.base;
|
||||||
@ -669,8 +668,8 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
error('Should not call beginImageData');
|
error('Should not call beginImageData');
|
||||||
},
|
},
|
||||||
|
|
||||||
paintFormXObjectBegin:
|
paintFormXObjectBegin: function canvasGraphicsPaintFormXObjectBegin(matrix,
|
||||||
function canvasGraphicsPaintFormXObject(matrix, bbox) {
|
bbox) {
|
||||||
this.save();
|
this.save();
|
||||||
|
|
||||||
if (matrix && isArray(matrix) && 6 == matrix.length)
|
if (matrix && isArray(matrix) && 6 == matrix.length)
|
||||||
@ -685,11 +684,11 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
paintFormXObjectEnd: function() {
|
paintFormXObjectEnd: function canvasGraphicsPaintFormXObjectEnd() {
|
||||||
this.restore();
|
this.restore();
|
||||||
},
|
},
|
||||||
|
|
||||||
paintJpegXObject: function(objId, w, h) {
|
paintJpegXObject: function canvasGraphicsPaintJpegXObject(objId, w, h) {
|
||||||
var image = this.objs.get(objId);
|
var image = this.objs.get(objId);
|
||||||
if (!image) {
|
if (!image) {
|
||||||
error('Dependent image isn\'t ready yet');
|
error('Dependent image isn\'t ready yet');
|
||||||
@ -708,7 +707,8 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
this.restore();
|
this.restore();
|
||||||
},
|
},
|
||||||
|
|
||||||
paintImageMaskXObject: function(imgArray, inverseDecode, width, height) {
|
paintImageMaskXObject: function canvasGraphicsPaintImageMaskXObject(
|
||||||
|
imgArray, inverseDecode, width, height) {
|
||||||
function applyStencilMask(buffer, inverseDecode) {
|
function applyStencilMask(buffer, inverseDecode) {
|
||||||
var imgArrayPos = 0;
|
var imgArrayPos = 0;
|
||||||
var i, j, mask, buf;
|
var i, j, mask, buf;
|
||||||
@ -756,7 +756,7 @@ var CanvasGraphics = (function canvasGraphics() {
|
|||||||
this.restore();
|
this.restore();
|
||||||
},
|
},
|
||||||
|
|
||||||
paintImageXObject: function(imgData) {
|
paintImageXObject: function canvasGraphicsPaintImageXObject(imgData) {
|
||||||
this.save();
|
this.save();
|
||||||
var ctx = this.ctx;
|
var ctx = this.ctx;
|
||||||
var w = imgData.width;
|
var w = imgData.width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user