mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[api-minor] Add an option to set the max canvas area
This commit is contained in:
parent
e0d934ac9d
commit
e9474f1c84
5 changed files with 35 additions and 3 deletions
|
@ -434,6 +434,11 @@ class FirefoxExternalServices extends DefaultExternalServices {
|
|||
const isInAutomation = FirefoxCom.requestSync("isInAutomation");
|
||||
return shadow(this, "isInAutomation", isInAutomation);
|
||||
}
|
||||
|
||||
static get canvasMaxAreaInBytes() {
|
||||
const maxArea = FirefoxCom.requestSync("getCanvasMaxArea");
|
||||
return shadow(this, "canvasMaxAreaInBytes", maxArea);
|
||||
}
|
||||
}
|
||||
PDFViewerApplication.externalServices = FirefoxExternalServices;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue