mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Remove the default-factories from the viewer components (PR 15811 follow-up)
The changes in PR 15811 have now been included in no less than six official releases, hence it should hopefully be OK to remove this now.
This commit is contained in:
parent
e9ccbd2856
commit
c5e4a22ee0
2 changed files with 0 additions and 66 deletions
|
@ -45,51 +45,8 @@ const pdfjsVersion = PDFJSDev.eval("BUNDLE_VERSION");
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
const pdfjsBuild = PDFJSDev.eval("BUNDLE_BUILD");
|
||||
|
||||
class DefaultAnnotationLayerFactory {
|
||||
constructor() {
|
||||
throw new Error(
|
||||
"The `DefaultAnnotationLayerFactory` has been removed, " +
|
||||
"please use the `annotationMode` option when initializing " +
|
||||
"the `PDFPageView`-instance to control AnnotationLayer rendering."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class DefaultStructTreeLayerFactory {
|
||||
constructor() {
|
||||
throw new Error(
|
||||
"The `DefaultStructTreeLayerFactory` has been removed, " +
|
||||
"this functionality is automatically enabled when the TextLayer is used."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class DefaultTextLayerFactory {
|
||||
constructor() {
|
||||
throw new Error(
|
||||
"The `DefaultTextLayerFactory` has been removed, " +
|
||||
"please use the `textLayerMode` option when initializing " +
|
||||
"the `PDFPageView`-instance to control TextLayer rendering."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class DefaultXfaLayerFactory {
|
||||
constructor() {
|
||||
throw new Error(
|
||||
"The `DefaultXfaLayerFactory` has been removed, " +
|
||||
"please use the `enableXfa` option when calling " +
|
||||
"the `getDocument`-function to control XfaLayer rendering."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
AnnotationLayerBuilder,
|
||||
DefaultAnnotationLayerFactory,
|
||||
DefaultStructTreeLayerFactory,
|
||||
DefaultTextLayerFactory,
|
||||
DefaultXfaLayerFactory,
|
||||
DownloadManager,
|
||||
EventBus,
|
||||
GenericL10n,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue