[api-major] Remove some deprecated constants
All of the these constants have been deprecated for a while, and with the upcoming *major* version this seems like a good time to remove them. For the string-constants we can simply remove them, but the number-constants are left commented out since we don't want to re-number the list to prevent third-party breakage.
This commit is contained in:
parent
3dc9b427b9
commit
484e81ef6e
@ -278,6 +278,8 @@ const CMapCompressionType = {
|
|||||||
const OPS = {
|
const OPS = {
|
||||||
// Intentionally start from 1 so it is easy to spot bad operators that will be
|
// Intentionally start from 1 so it is easy to spot bad operators that will be
|
||||||
// 0's.
|
// 0's.
|
||||||
|
// PLEASE NOTE: We purposely keep any removed operators commented out, since
|
||||||
|
// re-numbering the list would risk breaking third-party users.
|
||||||
dependency: 1,
|
dependency: 1,
|
||||||
setLineWidth: 2,
|
setLineWidth: 2,
|
||||||
setLineCap: 3,
|
setLineCap: 3,
|
||||||
@ -355,14 +357,11 @@ const OPS = {
|
|||||||
paintFormXObjectEnd: 75,
|
paintFormXObjectEnd: 75,
|
||||||
beginGroup: 76,
|
beginGroup: 76,
|
||||||
endGroup: 77,
|
endGroup: 77,
|
||||||
/** @deprecated unused */
|
// beginAnnotations: 78,
|
||||||
beginAnnotations: 78,
|
// endAnnotations: 79,
|
||||||
/** @deprecated unused */
|
|
||||||
endAnnotations: 79,
|
|
||||||
beginAnnotation: 80,
|
beginAnnotation: 80,
|
||||||
endAnnotation: 81,
|
endAnnotation: 81,
|
||||||
/** @deprecated unused */
|
// paintJpegXObject: 82,
|
||||||
paintJpegXObject: 82,
|
|
||||||
paintImageMaskXObject: 83,
|
paintImageMaskXObject: 83,
|
||||||
paintImageMaskXObjectGroup: 84,
|
paintImageMaskXObjectGroup: 84,
|
||||||
paintImageXObject: 85,
|
paintImageXObject: 85,
|
||||||
@ -375,15 +374,11 @@ const OPS = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const UNSUPPORTED_FEATURES = {
|
const UNSUPPORTED_FEATURES = {
|
||||||
/** @deprecated unused */
|
|
||||||
unknown: "unknown",
|
|
||||||
forms: "forms",
|
forms: "forms",
|
||||||
javaScript: "javaScript",
|
javaScript: "javaScript",
|
||||||
signatures: "signatures",
|
signatures: "signatures",
|
||||||
smask: "smask",
|
smask: "smask",
|
||||||
shadingPattern: "shadingPattern",
|
shadingPattern: "shadingPattern",
|
||||||
/** @deprecated unused */
|
|
||||||
font: "font",
|
|
||||||
errorTilingPattern: "errorTilingPattern",
|
errorTilingPattern: "errorTilingPattern",
|
||||||
errorExtGState: "errorExtGState",
|
errorExtGState: "errorExtGState",
|
||||||
errorXObject: "errorXObject",
|
errorXObject: "errorXObject",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user