Merge pull request #15699 from Snuffleupagus/isOffscreenCanvasSupported-Annotation

Move the `_isOffscreenCanvasSupported` property to the base `Annotation` class
This commit is contained in:
Jonas Jenwald 2022-11-15 17:18:03 +01:00 committed by GitHub
commit c7d6ab2f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,6 +524,7 @@ class Annotation {
this.data.pageIndex = params.pageIndex;
}
this._isOffscreenCanvasSupported = params.isOffscreenCanvasSupported;
this._fallbackFontDict = null;
this._needAppearances = false;
}
@ -1519,7 +1520,6 @@ class WidgetAnnotation extends Annotation {
const data = this.data;
this.ref = params.ref;
this._needAppearances = params.needAppearances;
this._isOffscreenCanvasSupported = params.isOffscreenCanvasSupported;
data.annotationType = AnnotationType.WIDGET;
if (data.fieldName === undefined) {