mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #4824 from yurydelendik/movecs
Moves colorspace.js and function.js into core/
This commit is contained in:
commit
002607502c
14 changed files with 143 additions and 174 deletions
|
@ -531,11 +531,6 @@ var Util = PDFJS.Util = (function UtilClosure() {
|
|||
return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
|
||||
};
|
||||
|
||||
Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
|
||||
var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
|
||||
return Util.makeCssRgb(rgb);
|
||||
};
|
||||
|
||||
// Concatenates two transformation matrices together and returns the result.
|
||||
Util.transform = function Util_transform(m1, m2) {
|
||||
return [
|
||||
|
@ -968,20 +963,6 @@ function isRef(v) {
|
|||
return v instanceof Ref;
|
||||
}
|
||||
|
||||
function isPDFFunction(v) {
|
||||
var fnDict;
|
||||
if (typeof v != 'object') {
|
||||
return false;
|
||||
} else if (isDict(v)) {
|
||||
fnDict = v;
|
||||
} else if (isStream(v)) {
|
||||
fnDict = v.dict;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return fnDict.has('FunctionType');
|
||||
}
|
||||
|
||||
/**
|
||||
* Promise Capability object.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue