Name anonymous functions for debugging purposes.
It also makes profiling more convenient.
This commit is contained in:
parent
481f242b5a
commit
335e86359d
10
pdf.js
10
pdf.js
@ -6466,7 +6466,7 @@ var PDFFunction = (function pDFFunction() {
|
|||||||
return out;
|
return out;
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
constructStiched: function(fn, dict, xref) {
|
constructStiched: function pDFFunctionConstructStiched(fn, dict, xref) {
|
||||||
var domain = dict.get('Domain');
|
var domain = dict.get('Domain');
|
||||||
var range = dict.get('Range');
|
var range = dict.get('Range');
|
||||||
|
|
||||||
@ -6485,8 +6485,8 @@ var PDFFunction = (function pDFFunction() {
|
|||||||
var bounds = dict.get('Bounds');
|
var bounds = dict.get('Bounds');
|
||||||
var encode = dict.get('Encode');
|
var encode = dict.get('Encode');
|
||||||
|
|
||||||
this.func = function(args) {
|
this.func = function pDFFunctionConstructStichedFunc(args) {
|
||||||
var clip = function(v, min, max) {
|
var clip = function pDFFunctionConstructStichedFuncClip(v, min, max) {
|
||||||
if (v > max)
|
if (v > max)
|
||||||
v = max;
|
v = max;
|
||||||
else if (v < min)
|
else if (v < min)
|
||||||
@ -6519,9 +6519,9 @@ var PDFFunction = (function pDFFunction() {
|
|||||||
return fns[i].func([v2]);
|
return fns[i].func([v2]);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
constructPostScript: function() {
|
constructPostScript: function pDFFunctionConstructPostScript() {
|
||||||
TODO('unhandled type of function');
|
TODO('unhandled type of function');
|
||||||
this.func = function() {
|
this.func = function pDFFunctionConstructPostScriptFunc() {
|
||||||
return [255, 105, 180];
|
return [255, 105, 180];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user