diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1245862cb..47d6cbb99 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,6 +1,6 @@ -name: Continous Integration +name: Continuous Integration -on: [push, pull_request] +on: [pull_request_target] jobs: test-saucelabs: @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 20 cache: npm @@ -34,9 +34,9 @@ jobs: name: Node.js ${{ matrix.node-version }} test steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm @@ -57,9 +57,9 @@ jobs: name: Typings tests (typescript@${{ matrix.ts-version.ts }}) steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 20 cache: npm @@ -77,9 +77,9 @@ jobs: name: Lint steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: 20 cache: npm diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 8ff181147..6535c407c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,8 +11,8 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index d2741e435..f5551edf7 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.' diff --git a/.sauce.yml b/.sauce.yml deleted file mode 100644 index 2c32444cd..000000000 --- a/.sauce.yml +++ /dev/null @@ -1,4 +0,0 @@ -addons: - sauce_connect: - username: jspdf - access_key: 522494eb-e777-4583-87c5-616a74cbf64d diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 506c6d2e8..8f3cc92c3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,7 +52,7 @@ preparing a pull request please follow these guidelines: - You may now (and should!) use modern JavaScript everywhere. The build step will transpile it. Most of the sources are still in ES5, but all new code should be written in ES6+. - When using newer EcmaScript or Browser APIs make sure the required polyfills are listed in - `src/polyfills.js`. At the moment, the library must still run in IE11! + `src/polyfills.js`. - Run `npm run prettier` before committing. - Don't update the files in `dist` in regular pull requests. These are usually only updated when creating a new release. - For the commit message, follow these guidelines: diff --git a/README.md b/README.md index 4ffb01872..d188678fe 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ yarn add jspdf Alternatively, load it from a CDN: ```html - + ``` Or always get latest version via [unpkg](https://unpkg.com/browse/jspdf/) @@ -178,7 +178,7 @@ Alternatively, you can load the prebundled polyfill file. This is not recommende loading polyfills multiple times. Might still be nifty for small applications or quick POCs. ```html - + ``` ## Use of Unicode Characters / UTF-8: diff --git a/bower.json b/bower.json index 0ef090449..eb85b3643 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jspdf", - "version": "2.5.2", + "version": "3.0.0", "homepage": "https://github.com/mrrio/jspdf", "description": "PDF Document creation from JavaScript", "main": [ @@ -19,7 +19,7 @@ "optionalDependencies": { "canvg": "^3.0.6", "core-js": "^3.6.0", - "dompurify": "^2.0.12", + "dompurify": "^3.2.4", "html2canvas": "^1.0.0-rc.5" }, "devDependencies": { diff --git a/dist/jspdf.es.js b/dist/jspdf.es.js index d8d215a1a..eb058bc4f 100644 --- a/dist/jspdf.es.js +++ b/dist/jspdf.es.js @@ -1,7 +1,7 @@ /** @license * * jsPDF - PDF Document creation from JavaScript - * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z + * Version 3.0.0 Built on 2025-02-19T09:26:58.791Z * CommitID 00000000 * * Copyright (c) 2010-2021 James Hall , https://github.com/MrRio/jsPDF @@ -6679,7 +6679,7 @@ jsPDF.API = { * @memberof jsPDF# */ -jsPDF.version = "2.5.2"; +jsPDF.version = "3.0.0"; var jsPDFAPI = jsPDF.API; var scaleFactor = 1; diff --git a/dist/jspdf.es.min.js b/dist/jspdf.es.min.js index c18fef20a..91b5d8e79 100644 --- a/dist/jspdf.es.min.js +++ b/dist/jspdf.es.min.js @@ -1,7 +1,7 @@ /** @license * * jsPDF - PDF Document creation from JavaScript - * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z + * Version 3.0.0 Built on 2025-02-19T09:26:58.791Z * CommitID 00000000 * * Copyright (c) 2010-2021 James Hall , https://github.com/MrRio/jsPDF @@ -83,7 +83,7 @@ function d(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=g(r,n,i,a,e[0],7,-680876936),a * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt * https://github.com/foliojs/pdfkit/blob/master/lib/security.js * http://www.fpdf.org/en/script/script37.php - */var k={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==k.perm)throw new Error("Invalid permission: "+t);i+=k[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=x(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function F(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n126)e+="#"+("0"+i.toString(16)).slice(-2);else e+=t[n]}return e}function C(e){if("object"!==t(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var i=Math.random().toString(35);return r[t][i]=[e,!!n],i},this.unsubscribe=function(t){for(var e in r)if(r[e][t])return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var s in r[t]){var c=r[t][s];try{c[0].apply(e,i)}catch(t){n.console&&a.error("jsPDF PubSub Error",t.message,t)}c[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function j(t){if(!(this instanceof j))return new j(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,O.call(this,n,i)}function M(t,e,r,n,i){if(!(this instanceof M))return new M(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,O.call(this,n,i)}function E(e){var r,i="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],s=arguments[2],c=arguments[3],u=[],d=1,p=16,g="S",m=null;"object"===t(e=e||{})&&(i=e.orientation,o=e.unit||o,s=e.format||s,c=e.compress||e.compressPdf||c,null!==(m=e.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),d="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(r=e.precision),void 0!==e.floatPrecision&&(p=e.floatPrecision),g=e.defaultPathOperation||"S"),u=e.filters||(!0===c?["FlateEncode"]:u),o=o||"mm",i=(""+(i||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=C;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var A=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},S=x.COMPAT;function _(){this.saveGraphicsState(),lt(new Vt(_t,0,0,-_t,0,Rr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),g="n",S=x.ADVANCED}function P(){this.restoreGraphicsState(),g="S",S=x.COMPAT}var k=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=S===x.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.compatAPI=function(t){var e=S===x.ADVANCED;return e&&P.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},y.isAdvancedAPI=function(){return S===x.ADVANCED};var O,q=function(t){if(S!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=y.roundToPrecision=y.__private__.roundToPrecision=function(t,e){var n=r||e;if(isNaN(t)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};O=y.hpf=y.__private__.hpf="number"==typeof p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,p)}:"smart"===p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var R=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return D(t,2)},T=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return D(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===x.COMPAT?t*_t:S===x.ADVANCED?t:void 0},z=function(t){return S===x.COMPAT?Rr()-t:S===x.ADVANCED?t:void 0},H=function(t){return U(z(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(r=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==m&&(Ye=new I(m.userPermissions,m.userPassword,m.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,Q(n),"'",Q(i),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),a].join("")},X=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,at=[],ot=[],st=!1,ct=nt,ut=function(){et=0,it=0,nt=[],rt=[],at=[],Qt=Kt(),te=Kt()};y.__private__.setCustomOutputDestination=function(t){st=!0,ct=t};var ht=function(t){st||(ct=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,ct=nt};var lt=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,ct.push(t),ct},ft=y.__private__.write=function(t){return lt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return pt};var gt=e.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return gt=S===x.ADVANCED?t/_t:t,this};var mt,vt=y.__private__.getFontSize=y.getFontSize=function(){return S===x.COMPAT?gt:gt*_t},bt=e.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return bt=t,this},y.__private__.getR2L=y.getR2L=function(){return bt};var yt,wt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))mt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');mt=t}else mt=parseInt(t,10)};y.__private__.getZoomMode=function(){return mt};var Nt,Lt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var At=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');Nt=t};y.__private__.getLayoutMode=function(){return Nt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return wt(t),At(e),Lt(r),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},y.__private__.getDocumentProperties=function(){return xt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var St,_t,Pt,kt,It,Ft={},Ct={},jt=[],Ot={},Bt={},Mt={},Et={},qt=null,Dt=0,Rt=[],Tt=new C(y),Ut=e.hotfixes||[],zt={},Ht={},Wt=[],Vt=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)if("string"==typeof n)r=n+" "+s[0];else switch(e.precision){case 2:r=R(n/255)+" "+s[0];break;case 3:default:r=T(n/255)+" "+s[0]}else if(void 0===o||"object"===t(o)){if(o&&!isNaN(o.a)&&0===o.a)return r=["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)r=[n,i,a,s[1]].join(" ");else switch(e.precision){case 2:r=[R(n/255),R(i/255),R(a/255),s[1]].join(" ");break;default:case 3:r=[T(n/255),T(i/255),T(a/255),s[1]].join(" ")}}else if("string"==typeof n)r=[n,i,a,o,s[2]].join(" ");else switch(e.precision){case 2:r=[R(n),R(i),R(a),R(o),s[2]].join(" ");break;case 3:default:r=[T(n),T(i),T(a),T(o),s[2]].join(" ")}return r},ne=y.__private__.getFilters=function(){return u},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(s=Ye.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(c=void 0!==E.API.processDataByFilters?E.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var l=0;l>"),0!==c.data.length&&(lt("stream"),lt(s(c.data)),lt("endstream"))},ae=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Zt(n,!0),lt("<>"),lt("endobj");var a=r.join("\n");return S===x.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:ne(),objectId:i}),lt("endobj"),n},oe=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Dt;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Dt;t++)r.push(ae({number:t,data:ot[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),lt("<>"),lt("endobj"),Tt.publish("postPutPages")},se=function(t){Tt.publish("putFont",{font:t,out:lt,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),lt("<<"),lt("/Type /Font"),lt("/BaseFont /"+F(t.postScriptName)),lt("/Subtype /Type1"),"string"==typeof t.encoding&<("/Encoding /"+t.encoding),lt("/FirstChar 32"),lt("/LastChar 255"),lt(">>"),lt("endobj"))},ce=function(){for(var t in Ft)Ft.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&se(Ft[t])},ue=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[O(t.x),O(t.y),O(t.x+t.width),O(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),lt("endobj")},he=function(){for(var t in zt)zt.hasOwnProperty(t)&&ue(zt[t])},le=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var h=t[c].offset,l=(r-h)/(t[c+1].offset-h),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-l)*f[0]+l*d[0]).toString(16))+tt(Math.round((1-l)*f[1]+l*d[1]).toString(16))+tt(Math.round((1-l)*f[2]+l*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var r=Xt(),n=le(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),lt("endobj"),t.objectNumber=Xt(),lt("<< /ShadingType "+t.type),lt("/ColorSpace /DeviceRGB");var a="/Coords ["+O(parseFloat(t.coords[0]))+" "+O(parseFloat(t.coords[1]))+" ";2===t.type?a+=O(parseFloat(t.coords[2]))+" "+O(parseFloat(t.coords[3])):a+=O(parseFloat(t.coords[2]))+" "+O(parseFloat(t.coords[3]))+" "+O(parseFloat(t.coords[4]))+" "+O(parseFloat(t.coords[5])),lt(a+="]"),t.matrix&<("/Matrix ["+t.matrix.toString()+"]"),lt("/Function "+r+" 0 R"),lt("/Extend [true true]"),lt(">>"),lt("endobj")},de=function(t,e){var r=Kt(),n=Xt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(O).join(" ")+"]"}),i.push({key:"XStep",value:O(t.xStep)}),i.push({key:"YStep",value:O(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),lt("endobj")},pe=function(t){var e;for(e in Ot)Ot.hasOwnProperty(e)&&(Ot[e]instanceof B?fe(Ot[e]):Ot[e]instanceof M&&de(Ot[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),lt("<<"),t)switch(e){case"opacity":lt("/ca "+R(t[e]));break;case"stroke-opacity":lt("/CA "+R(t[e]))}lt(">>"),lt("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in lt("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&<("/"+t+" "+zt[t].objectNumber+" 0 R");Tt.publish("putXobjectDict"),lt(">>")},be=function(){Ye.oid=Xt(),lt("<<"),lt("/Filter /Standard"),lt("/V "+Ye.v),lt("/R "+Ye.r),lt("/U <"+Ye.toHexString(Ye.U)+">"),lt("/O <"+Ye.toHexString(Ye.O)+">"),lt("/P "+Ye.P),lt(">>"),lt("endobj")},ye=function(){for(var t in lt("/Font <<"),Ft)Ft.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&<("/"+t+" "+Ft[t].objectNumber+" 0 R");lt(">>")},we=function(){if(Object.keys(Ot).length>0){for(var t in lt("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof B&&Ot[t].objectNumber>=0&<("/"+t+" "+Ot[t].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),lt(">>")}},Ne=function(t){if(Object.keys(Ot).length>0){for(var e in lt("/Pattern <<"),Ot)Ot.hasOwnProperty(e)&&Ot[e]instanceof y.TilingPattern&&Ot[e].objectNumber>=0&&Ot[e].objectNumber>")}},Le=function(){if(Object.keys(Mt).length>0){var t;for(t in lt("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&<("/"+t+" "+Mt[t].objectNumber+" 0 R");Tt.publish("putGStateDict"),lt(">>")}},Ae=function(t){Zt(t.resourcesOid,!0),lt("<<"),lt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(t.objectOid),Le(),ve(),lt(">>"),lt("endobj")},xe=function(){var t=[];ce(),me(),he(),pe(t),Tt.publish("putResources"),t.forEach(Ae),Ae({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources")},Se=function(){Tt.publish("putAdditionalObjects");for(var t=0;t>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(h),s.push(u-(h<<8))}return String.fromCharCode.apply(void 0,s)},Ce=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Fe(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=y.__private__.beginPage=function(t){ot[++Dt]=[],Rt[Dt]={objId:0,contentsObjId:0,userUnit:Number(d),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Me(Dt),ht(ot[$])},Oe=function(t,e){var r,n,o;switch(i=e||i,"string"==typeof t&&(r=A(t.toLowerCase()),Array.isArray(r)&&(n=r[0],o=r[1])),Array.isArray(t)&&(n=t[0]*_t,o=t[1]*_t),isNaN(n)&&(n=s[0],o=s[1]),(n>14400||o>14400)&&(a.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),o=Math.min(14400,o)),s=[n,o],i.substr(0,1)){case"l":o>n&&(s=[o,n]);break;case"p":n>o&&(s=[o,n])}je(s),pr(fr),lt(Lr),0!==kr&<(kr+" J"),0!==Ir&<(Ir+" j"),Tt.publish("addPage",{pageNumber:Dt})},Be=function(t){t>0&&t<=Dt&&(ot.splice(t,1),Rt.splice(t,1),Dt--,$>Dt&&($=Dt),this.setPage($))},Me=function(t){t>0&&t<=Dt&&($=t)},Ee=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return ot.length-1},qe=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:Ft[St].fontName,e=void 0!==e?e:Ft[St].fontStyle,n=t.toLowerCase(),void 0!==Ct[n]&&void 0!==Ct[n][e]?i=Ct[n][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?i=Ct[t][e]:!1===r.disableWarning&&a.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=Ct.times[e])&&(i=Ct.times.normal),i},De=y.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==m&&(e=Ye.encryptor(t,0)),lt("<<"),lt("/Producer ("+Ce(e("jsPDF "+E.version))+")"),xt)xt.hasOwnProperty(r)&&xt[r]&<("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ce(e(xt[r]))+")");lt("/CreationDate ("+Ce(e(W))+")"),lt(">>"),lt("endobj")},Re=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),lt("<<"),lt("/Type /Catalog"),lt("/Pages "+e+" 0 R"),mt||(mt="fullwidth"),mt){case"fullwidth":lt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":lt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":lt("/OpenAction [3 0 R /Fit]");break;case"original":lt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+mt;"%"===r.substr(r.length-1)&&(mt=parseInt(mt)/100),"number"==typeof mt&<("/OpenAction [3 0 R /XYZ null null "+R(mt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":lt("/PageLayout /OneColumn");break;case"single":lt("/PageLayout /SinglePage");break;case"two":case"twoleft":lt("/PageLayout /TwoColumnLeft");break;case"tworight":lt("/PageLayout /TwoColumnRight")}yt&<("/PageMode /"+yt),Tt.publish("putCatalog"),lt(">>"),lt("endobj")},Te=y.__private__.putTrailer=function(){lt("trailer"),lt("<<"),lt("/Size "+(et+1)),lt("/Root "+et+" 0 R"),lt("/Info "+(et-1)+" 0 R"),null!==m&<("/Encrypt "+Ye.oid+" 0 R"),lt("/ID [ <"+V+"> <"+V+"> ]"),lt(">>")},Ue=y.__private__.putHeader=function(){lt("%PDF-"+w),lt("%ºß¬à")},ze=y.__private__.putXRef=function(){var t="0000000000";lt("xref"),lt("0 "+(et+1)),lt("0000000000 65535 f ");for(var e=1;e<=et;e++){"function"==typeof rt[e]?lt((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?lt((t+rt[e]).slice(-10)+" 00000 n "):lt("0000000000 00000 n ")}},He=y.__private__.buildDocument=function(){ut(),ht(nt),Tt.publish("buildDocument"),Ue(),oe(),Se(),xe(),null!==m&&be(),De(),Re();var t=it;return ze(),Te(),lt("startxref"),lt(""+t),lt("%%EOF"),ht(ot[$]),nt.join("\n")},We=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ve=y.output=y.__private__.output=Ie((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":y.save(e.filename);break;case"arraybuffer":return dt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(We(He()))||void 0;a.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",i=He();try{r=h(i)}catch(t){r=h(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(n)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(o=e.pdfObjectUrl,s="");var c=' diff --git a/docs/Matrix.html b/docs/Matrix.html index 4c9261ed8..685a10447 100644 --- a/docs/Matrix.html +++ b/docs/Matrix.html @@ -1753,7 +1753,7 @@

toString
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/global.html b/docs/global.html index fe12a22a6..ec962f573 100644 --- a/docs/global.html +++ b/docs/global.html @@ -2198,7 +2198,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/index.html b/docs/index.html index e7475fd9b..abcc46263 100644 --- a/docs/index.html +++ b/docs/index.html @@ -76,7 +76,7 @@

Install

yarn add jspdf

Alternatively, load it from a CDN:

-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.2/jspdf.umd.min.js"></script>
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/jspdf.umd.min.js"></script>
 

Or always get latest version via unpkg

<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
@@ -181,7 +181,7 @@ 

Polyfills

Alternatively, you can load the prebundled polyfill file. This is not recommended, since you might end up loading polyfills multiple times. Might still be nifty for small applications or quick POCs.

-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.2/polyfills.umd.js"></script>
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.0/polyfills.umd.js"></script>
 

Use of Unicode Characters / UTF-8:

The 14 standard fonts in PDF are limited to the ASCII-codepage. If you want to use UTF-8 you have to integrate a @@ -280,7 +280,7 @@

License (MIT)


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/jsPDF-API.GState.html b/docs/jsPDF-API.GState.html index af218598f..4d1ef97e3 100644 --- a/docs/jsPDF-API.GState.html +++ b/docs/jsPDF-API.GState.html @@ -219,7 +219,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/jsPDF-API.ShadingPattern.html b/docs/jsPDF-API.ShadingPattern.html index 00ee0bb7b..f6db25d31 100644 --- a/docs/jsPDF-API.ShadingPattern.html +++ b/docs/jsPDF-API.ShadingPattern.html @@ -380,7 +380,7 @@

Extends


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/jsPDF-API.TilingPattern.html b/docs/jsPDF-API.TilingPattern.html index d320c875c..43cf8cf13 100644 --- a/docs/jsPDF-API.TilingPattern.html +++ b/docs/jsPDF-API.TilingPattern.html @@ -378,7 +378,7 @@

Extends


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/jsPDF.html b/docs/jsPDF.html index a39b4ebab..13944b92a 100644 --- a/docs/jsPDF.html +++ b/docs/jsPDF.html @@ -15276,7 +15276,7 @@

(inner)
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/jspdf.js.html b/docs/jspdf.js.html index a5009dc29..925d94231 100644 --- a/docs/jspdf.js.html +++ b/docs/jspdf.js.html @@ -6171,7 +6171,7 @@

jspdf.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_BMPDecoder.js.html b/docs/libs_BMPDecoder.js.html index edb74344e..f967fc12f 100644 --- a/docs/libs_BMPDecoder.js.html +++ b/docs/libs_BMPDecoder.js.html @@ -335,7 +335,7 @@

libs/BMPDecoder.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_Blob.js.html b/docs/libs_Blob.js.html index 99cfa5635..1a1a17946 100644 --- a/docs/libs_Blob.js.html +++ b/docs/libs_Blob.js.html @@ -459,26 +459,6 @@

libs/Blob.js

} function fixFileAndXHR() { - var isIE = - !!global.ActiveXObject || - ("-ms-scroll-limit" in document.documentElement.style && - "-ms-ime-align" in document.documentElement.style); - - // Monkey patched - // IE don't set Content-Type header on XHR whose body is a typed Blob - // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383 - var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send; - if (isIE && _send) { - XMLHttpRequest.prototype.send = function(data) { - if (data instanceof Blob) { - this.setRequestHeader("Content-Type", data.type); - _send.call(this, data); - } else { - _send.call(this, data); - } - }; - } - try { new File([], ""); } catch (e) { @@ -542,7 +522,7 @@

libs/Blob.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_WebPDecoder.js.html b/docs/libs_WebPDecoder.js.html index 5074b21e7..ecb2fea2c 100644 --- a/docs/libs_WebPDecoder.js.html +++ b/docs/libs_WebPDecoder.js.html @@ -5508,7 +5508,7 @@

libs/WebPDecoder.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_bidiEngine.js.html b/docs/libs_bidiEngine.js.html index c07120fb7..296bc6dfa 100644 --- a/docs/libs_bidiEngine.js.html +++ b/docs/libs_bidiEngine.js.html @@ -2746,7 +2746,7 @@

libs/bidiEngine.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_md5.js.html b/docs/libs_md5.js.html index b6196e0c2..acefd15b3 100644 --- a/docs/libs_md5.js.html +++ b/docs/libs_md5.js.html @@ -280,7 +280,7 @@

libs/md5.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_pdfname.js.html b/docs/libs_pdfname.js.html index 659926f09..6f8369ef8 100644 --- a/docs/libs_pdfname.js.html +++ b/docs/libs_pdfname.js.html @@ -105,7 +105,7 @@

libs/pdfname.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_pdfsecurity.js.html b/docs/libs_pdfsecurity.js.html index 0a9b12865..76a7a09dc 100644 --- a/docs/libs_pdfsecurity.js.html +++ b/docs/libs_pdfsecurity.js.html @@ -218,7 +218,7 @@

libs/pdfsecurity.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_rc4.js.html b/docs/libs_rc4.js.html index 286c419eb..df81afae2 100644 --- a/docs/libs_rc4.js.html +++ b/docs/libs_rc4.js.html @@ -115,7 +115,7 @@

libs/rc4.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/libs_rgbcolor.js.html b/docs/libs_rgbcolor.js.html index dbec04d6e..71a521ac3 100644 --- a/docs/libs_rgbcolor.js.html +++ b/docs/libs_rgbcolor.js.html @@ -295,7 +295,7 @@

libs/rgbcolor.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormButton.html b/docs/module-AcroForm-AcroFormButton.html index bc0fe1d5f..9feb6369f 100644 --- a/docs/module-AcroForm-AcroFormButton.html +++ b/docs/module-AcroForm-AcroFormButton.html @@ -1841,7 +1841,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormCheckBox.html b/docs/module-AcroForm-AcroFormCheckBox.html index 0a28d3219..565fa9c4e 100644 --- a/docs/module-AcroForm-AcroFormCheckBox.html +++ b/docs/module-AcroForm-AcroFormCheckBox.html @@ -2318,7 +2318,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormChoiceField.html b/docs/module-AcroForm-AcroFormChoiceField.html index 0ed1212bb..7a2269ea9 100644 --- a/docs/module-AcroForm-AcroFormChoiceField.html +++ b/docs/module-AcroForm-AcroFormChoiceField.html @@ -1841,7 +1841,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormComboBox.html b/docs/module-AcroForm-AcroFormComboBox.html index dc3e7082e..0cae609f7 100644 --- a/docs/module-AcroForm-AcroFormComboBox.html +++ b/docs/module-AcroForm-AcroFormComboBox.html @@ -2975,7 +2975,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormEditBox.html b/docs/module-AcroForm-AcroFormEditBox.html index f0fdc2e69..518e25d86 100644 --- a/docs/module-AcroForm-AcroFormEditBox.html +++ b/docs/module-AcroForm-AcroFormEditBox.html @@ -2977,7 +2977,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormField.html b/docs/module-AcroForm-AcroFormField.html index 6bc8e0e5f..d710c1e9c 100644 --- a/docs/module-AcroForm-AcroFormField.html +++ b/docs/module-AcroForm-AcroFormField.html @@ -184,7 +184,7 @@

new Acro
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormListBox.html b/docs/module-AcroForm-AcroFormListBox.html index da32b2196..b30421e70 100644 --- a/docs/module-AcroForm-AcroFormListBox.html +++ b/docs/module-AcroForm-AcroFormListBox.html @@ -2973,7 +2973,7 @@

Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormPDFObject.html b/docs/module-AcroForm-AcroFormPDFObject.html index 7830f3a63..7fba16f21 100644 --- a/docs/module-AcroForm-AcroFormPDFObject.html +++ b/docs/module-AcroForm-AcroFormPDFObject.html @@ -180,7 +180,7 @@

new
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormPasswordField.html b/docs/module-AcroForm-AcroFormPasswordField.html index e70970c18..de68e204c 100644 --- a/docs/module-AcroForm-AcroFormPasswordField.html +++ b/docs/module-AcroForm-AcroFormPasswordField.html @@ -2468,7 +2468,7 @@

Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormPushButton.html b/docs/module-AcroForm-AcroFormPushButton.html index b12eada5d..54216fc58 100644 --- a/docs/module-AcroForm-AcroFormPushButton.html +++ b/docs/module-AcroForm-AcroFormPushButton.html @@ -2318,7 +2318,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormRadioButton.html b/docs/module-AcroForm-AcroFormRadioButton.html index 9ae1da303..bf0695baa 100644 --- a/docs/module-AcroForm-AcroFormRadioButton.html +++ b/docs/module-AcroForm-AcroFormRadioButton.html @@ -2318,7 +2318,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm-AcroFormTextField.html b/docs/module-AcroForm-AcroFormTextField.html index f9fbc0385..4428bbc2b 100644 --- a/docs/module-AcroForm-AcroFormTextField.html +++ b/docs/module-AcroForm-AcroFormTextField.html @@ -1841,7 +1841,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-AcroForm.html b/docs/module-AcroForm.html index 7570a3eb2..4ec004b83 100644 --- a/docs/module-AcroForm.html +++ b/docs/module-AcroForm.html @@ -937,7 +937,7 @@

(inner)
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-addImage.html b/docs/module-addImage.html index 89bc7b730..f6b89a5dc 100644 --- a/docs/module-addImage.html +++ b/docs/module-addImage.html @@ -2292,7 +2292,7 @@
Type:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-annotations.html b/docs/module-annotations.html index d7c643b7b..305857b63 100644 --- a/docs/module-annotations.html +++ b/docs/module-annotations.html @@ -945,7 +945,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-arabic.html b/docs/module-arabic.html index 63125823d..3dc7c9003 100644 --- a/docs/module-arabic.html +++ b/docs/module-arabic.html @@ -327,7 +327,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-autoprint.html b/docs/module-autoprint.html index 66a3820bf..e5e879c3a 100644 --- a/docs/module-autoprint.html +++ b/docs/module-autoprint.html @@ -258,7 +258,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-bmp_support.html b/docs/module-bmp_support.html index 15960e67d..f33f40f4b 100644 --- a/docs/module-bmp_support.html +++ b/docs/module-bmp_support.html @@ -173,7 +173,7 @@

bmp_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-canvas-Canvas.html b/docs/module-canvas-Canvas.html index ef6c30d10..645b46ae0 100644 --- a/docs/module-canvas-Canvas.html +++ b/docs/module-canvas-Canvas.html @@ -180,7 +180,7 @@

new Canvas
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-canvas.html b/docs/module-canvas.html index 743a8cdce..f12a68d26 100644 --- a/docs/module-canvas.html +++ b/docs/module-canvas.html @@ -564,7 +564,7 @@

(inner) toD
- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-cell.html b/docs/module-cell.html index 2b0ddf95e..7de3bfb9f 100644 --- a/docs/module-cell.html +++ b/docs/module-cell.html @@ -1619,7 +1619,7 @@

Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-context2d.html b/docs/module-context2d.html index df809bef5..469219c19 100644 --- a/docs/module-context2d.html +++ b/docs/module-context2d.html @@ -6082,7 +6082,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-fileloading.html b/docs/module-fileloading.html index 53cc167b0..33a789c6d 100644 --- a/docs/module-fileloading.html +++ b/docs/module-fileloading.html @@ -477,7 +477,7 @@
Parameters:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-gif_support.html b/docs/module-gif_support.html index c66bc8157..a2e23a3a5 100644 --- a/docs/module-gif_support.html +++ b/docs/module-gif_support.html @@ -173,7 +173,7 @@

gif_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-html.html b/docs/module-html.html index 3d3c60a4d..9db2ec680 100644 --- a/docs/module-html.html +++ b/docs/module-html.html @@ -1136,7 +1136,7 @@
Properties:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-javascript.html b/docs/module-javascript.html index b3ce5f311..346907f2f 100644 --- a/docs/module-javascript.html +++ b/docs/module-javascript.html @@ -327,7 +327,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-jpeg_support.html b/docs/module-jpeg_support.html index f9b620320..c2ef36350 100644 --- a/docs/module-jpeg_support.html +++ b/docs/module-jpeg_support.html @@ -173,7 +173,7 @@

jpeg_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-outline.html b/docs/module-outline.html index 280adf72d..aca321a05 100644 --- a/docs/module-outline.html +++ b/docs/module-outline.html @@ -174,7 +174,7 @@

outline


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-png_support.html b/docs/module-png_support.html index b4edf223e..f17bc3a9e 100644 --- a/docs/module-png_support.html +++ b/docs/module-png_support.html @@ -173,7 +173,7 @@

png_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-rgba_support.html b/docs/module-rgba_support.html index b88005b7e..a68d5201e 100644 --- a/docs/module-rgba_support.html +++ b/docs/module-rgba_support.html @@ -173,7 +173,7 @@

rgba_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-setLanguage.html b/docs/module-setLanguage.html index bfdba929a..696a3def9 100644 --- a/docs/module-setLanguage.html +++ b/docs/module-setLanguage.html @@ -339,7 +339,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-split_text_to_size.html b/docs/module-split_text_to_size.html index f8b6b5e99..a1d919859 100644 --- a/docs/module-split_text_to_size.html +++ b/docs/module-split_text_to_size.html @@ -749,7 +749,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-standard_fonts_metrics.html b/docs/module-standard_fonts_metrics.html index 44da4c5ce..5ded1dac3 100644 --- a/docs/module-standard_fonts_metrics.html +++ b/docs/module-standard_fonts_metrics.html @@ -183,7 +183,7 @@

standard_fonts_metrics


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-svg.html b/docs/module-svg.html index ee342155a..c04d3fce2 100644 --- a/docs/module-svg.html +++ b/docs/module-svg.html @@ -485,7 +485,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-total_pages.html b/docs/module-total_pages.html index 4da2a52a8..5fd76bc78 100644 --- a/docs/module-total_pages.html +++ b/docs/module-total_pages.html @@ -331,7 +331,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-ttfsupport.html b/docs/module-ttfsupport.html index ae03da67f..a4a732658 100644 --- a/docs/module-ttfsupport.html +++ b/docs/module-ttfsupport.html @@ -92,7 +92,7 @@

ttfsupport


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-utf8.html b/docs/module-utf8.html index 8cbe58a36..ee3e239ab 100644 --- a/docs/module-utf8.html +++ b/docs/module-utf8.html @@ -92,7 +92,7 @@

utf8


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-vFS.html b/docs/module-vFS.html index b7f4ba757..e92214e50 100644 --- a/docs/module-vFS.html +++ b/docs/module-vFS.html @@ -677,7 +677,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-viewerpreferences.html b/docs/module-viewerpreferences.html index 18f32fc0b..841d83b18 100644 --- a/docs/module-viewerpreferences.html +++ b/docs/module-viewerpreferences.html @@ -429,7 +429,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-webp_support.html b/docs/module-webp_support.html index b81804a86..d2a4fc7bd 100644 --- a/docs/module-webp_support.html +++ b/docs/module-webp_support.html @@ -173,7 +173,7 @@

webp_support


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/module-xmp_metadata.html b/docs/module-xmp_metadata.html index f1c3effe2..00086cdeb 100644 --- a/docs/module-xmp_metadata.html +++ b/docs/module-xmp_metadata.html @@ -277,7 +277,7 @@
Returns:

- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:16 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_acroform.js.html b/docs/modules_acroform.js.html index 36ab00e05..2e17cffb9 100644 --- a/docs/modules_acroform.js.html +++ b/docs/modules_acroform.js.html @@ -3233,7 +3233,7 @@

modules/acroform.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_addimage.js.html b/docs/modules_addimage.js.html index 7498f80c3..45d697a18 100644 --- a/docs/modules_addimage.js.html +++ b/docs/modules_addimage.js.html @@ -1080,7 +1080,7 @@

modules/addimage.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_annotations.js.html b/docs/modules_annotations.js.html index 90252a39b..80a4d8c0b 100644 --- a/docs/modules_annotations.js.html +++ b/docs/modules_annotations.js.html @@ -462,7 +462,7 @@

modules/annotations.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_arabic.js.html b/docs/modules_arabic.js.html index d34cbfec7..1dbea430b 100644 --- a/docs/modules_arabic.js.html +++ b/docs/modules_arabic.js.html @@ -434,7 +434,7 @@

modules/arabic.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_autoprint.js.html b/docs/modules_autoprint.js.html index f8e7f87c9..754839525 100644 --- a/docs/modules_autoprint.js.html +++ b/docs/modules_autoprint.js.html @@ -116,7 +116,7 @@

modules/autoprint.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_bmp_support.js.html b/docs/modules_bmp_support.js.html index 57ac1f8ac..eccaf32f3 100644 --- a/docs/modules_bmp_support.js.html +++ b/docs/modules_bmp_support.js.html @@ -94,7 +94,7 @@

modules/bmp_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_canvas.js.html b/docs/modules_canvas.js.html index 2ffd010c8..1fb463de2 100644 --- a/docs/modules_canvas.js.html +++ b/docs/modules_canvas.js.html @@ -205,7 +205,7 @@

modules/canvas.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_cell.js.html b/docs/modules_cell.js.html index 852b20cf1..0a05848f8 100644 --- a/docs/modules_cell.js.html +++ b/docs/modules_cell.js.html @@ -733,7 +733,7 @@

modules/cell.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_context2d.js.html b/docs/modules_context2d.js.html index 79f40c48b..2e66f9f7a 100644 --- a/docs/modules_context2d.js.html +++ b/docs/modules_context2d.js.html @@ -2738,7 +2738,7 @@

modules/context2d.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_fileloading.js.html b/docs/modules_fileloading.js.html index 0dc1aea64..d5caf1107 100644 --- a/docs/modules_fileloading.js.html +++ b/docs/modules_fileloading.js.html @@ -178,7 +178,7 @@

modules/fileloading.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_gif_support.js.html b/docs/modules_gif_support.js.html index 672578da0..7b9daac1f 100644 --- a/docs/modules_gif_support.js.html +++ b/docs/modules_gif_support.js.html @@ -98,7 +98,7 @@

modules/gif_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_html.js.html b/docs/modules_html.js.html index b45def846..31f3f31b8 100644 --- a/docs/modules_html.js.html +++ b/docs/modules_html.js.html @@ -1149,7 +1149,7 @@

modules/html.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_javascript.js.html b/docs/modules_javascript.js.html index d250f42cb..973a550e9 100644 --- a/docs/modules_javascript.js.html +++ b/docs/modules_javascript.js.html @@ -123,7 +123,7 @@

modules/javascript.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_jpeg_support.js.html b/docs/modules_jpeg_support.js.html index 16f661989..a3fffbe79 100644 --- a/docs/modules_jpeg_support.js.html +++ b/docs/modules_jpeg_support.js.html @@ -167,7 +167,7 @@

modules/jpeg_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_outline.js.html b/docs/modules_outline.js.html index b662c8310..c4b4d2b7a 100644 --- a/docs/modules_outline.js.html +++ b/docs/modules_outline.js.html @@ -331,7 +331,7 @@

modules/outline.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_png_support.js.html b/docs/modules_png_support.js.html index 1e2927bfd..1fb8def52 100644 --- a/docs/modules_png_support.js.html +++ b/docs/modules_png_support.js.html @@ -548,7 +548,7 @@

modules/png_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_rgba_support.js.html b/docs/modules_rgba_support.js.html index 67ff14eaf..39d29658b 100644 --- a/docs/modules_rgba_support.js.html +++ b/docs/modules_rgba_support.js.html @@ -137,7 +137,7 @@

modules/rgba_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_setlanguage.js.html b/docs/modules_setlanguage.js.html index eaa141d55..2a05ddacd 100644 --- a/docs/modules_setlanguage.js.html +++ b/docs/modules_setlanguage.js.html @@ -307,7 +307,7 @@

modules/setlanguage.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_split_text_to_size.js.html b/docs/modules_split_text_to_size.js.html index 7a863d8bc..ebdd47438 100644 --- a/docs/modules_split_text_to_size.js.html +++ b/docs/modules_split_text_to_size.js.html @@ -451,7 +451,7 @@

modules/split_text_to_size.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_standard_fonts_metrics.js.html b/docs/modules_standard_fonts_metrics.js.html index 4698e3d58..75e04624a 100644 --- a/docs/modules_standard_fonts_metrics.js.html +++ b/docs/modules_standard_fonts_metrics.js.html @@ -363,7 +363,7 @@

modules/standard_fonts_metrics.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_svg.js.html b/docs/modules_svg.js.html index 34cfdf8b3..fef65af1f 100644 --- a/docs/modules_svg.js.html +++ b/docs/modules_svg.js.html @@ -212,7 +212,7 @@

modules/svg.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_total_pages.js.html b/docs/modules_total_pages.js.html index ddbbeb4d9..363963fa5 100644 --- a/docs/modules_total_pages.js.html +++ b/docs/modules_total_pages.js.html @@ -129,7 +129,7 @@

modules/total_pages.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_ttfsupport.js.html b/docs/modules_ttfsupport.js.html index d162b3f53..67778056a 100644 --- a/docs/modules_ttfsupport.js.html +++ b/docs/modules_ttfsupport.js.html @@ -130,7 +130,7 @@

modules/ttfsupport.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_utf8.js.html b/docs/modules_utf8.js.html index 0bea5383a..bac482de9 100644 --- a/docs/modules_utf8.js.html +++ b/docs/modules_utf8.js.html @@ -429,7 +429,7 @@

modules/utf8.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_vfs.js.html b/docs/modules_vfs.js.html index f92103c0b..f2aa68435 100644 --- a/docs/modules_vfs.js.html +++ b/docs/modules_vfs.js.html @@ -133,7 +133,7 @@

modules/vfs.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_viewerpreferences.js.html b/docs/modules_viewerpreferences.js.html index ed154b2db..3ee204800 100644 --- a/docs/modules_viewerpreferences.js.html +++ b/docs/modules_viewerpreferences.js.html @@ -429,7 +429,7 @@

modules/viewerpreferences.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_webp_support.js.html b/docs/modules_webp_support.js.html index 53c0be24d..5dae862cb 100644 --- a/docs/modules_webp_support.js.html +++ b/docs/modules_webp_support.js.html @@ -95,7 +95,7 @@

modules/webp_support.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/docs/modules_xmp_metadata.js.html b/docs/modules_xmp_metadata.js.html index aa1a12268..1402aaf85 100644 --- a/docs/modules_xmp_metadata.js.html +++ b/docs/modules_xmp_metadata.js.html @@ -164,7 +164,7 @@

modules/xmp_metadata.js


- Documentation generated by JSDoc 3.6.4 on Tue Sep 17 2024 15:30:15 GMT+0200 (Central European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.4 on Wed Feb 19 2025 10:27:15 GMT+0100 (Central European Standard Time) using the docdash theme.
diff --git a/examples/PDF.js/build/pdf.js b/examples/PDF.js/build/pdf.js index a061175b1..6920fbe8f 100644 --- a/examples/PDF.js/build/pdf.js +++ b/examples/PDF.js/build/pdf.js @@ -17864,11 +17864,10 @@ var userAgent = (typeof navigator !== "undefined" && navigator.userAgent) || ""; - var isIE = /Trident/.test(userAgent); var isIOSChrome = /CriOS/.test(userAgent); (function checkOnBlobSupport() { - if (isIE || isIOSChrome) { + if (isIOSChrome) { compatibilityParams.disableCreateObjectURL = true; } })(); diff --git a/examples/PDF.js/pdfobject.js b/examples/PDF.js/pdfobject.js index a218e415b..206cca7b0 100644 --- a/examples/PDF.js/pdfobject.js +++ b/examples/PDF.js/pdfobject.js @@ -38,7 +38,6 @@ ua = window.navigator.userAgent, //declare booleans supportsPDFs, - isIE, supportsPdfMimeType = typeof navigator.mimeTypes["application/pdf"] !== "undefined", supportsPdfActiveX, @@ -85,16 +84,6 @@ return ax; }; - //IE11 still uses ActiveX for Adobe Reader, but IE 11 doesn't expose - //window.ActiveXObject the same way previous versions of IE did - //window.ActiveXObject will evaluate to false in IE 11, but "ActiveXObject" in window evaluates to true - //so check the first one for older IE, and the second for IE11 - //FWIW, MS Edge (replacing IE11) does not support ActiveX at all, both will evaluate false - //Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed - isIE = function() { - return !!(window.ActiveXObject || "ActiveXObject" in window); - }; - //If either ActiveX support for "AcroPDF.PDF" or "PDF.PdfCtrl" are found, return true //Constructed as a method (not a prop) to avoid unneccesarry overhead -- will only be evaluated if needed supportsPdfActiveX = function() { @@ -110,9 +99,7 @@ //Modern versions of Firefox come bundled with PDFJS (isFirefoxWithPDFJS || //Browsers that still support the original MIME type check - supportsPdfMimeType || - //Pity the poor souls still using IE - (isIE() && supportsPdfActiveX())); + supportsPdfMimeType); //Create a fragment identifier for using PDF Open parameters when embedding PDF buildFragmentString = function(pdfParams) { diff --git a/examples/js/ace.js b/examples/js/ace.js index 3fd7cef36..bd0559384 100644 --- a/examples/js/ace.js +++ b/examples/js/ace.js @@ -984,19 +984,6 @@ (t.isWin = r == "win"), (t.isMac = r == "mac"), (t.isLinux = r == "linux"), - (t.isIE = - navigator.appName == "Microsoft Internet Explorer" || - navigator.appName.indexOf("MSAppHost") >= 0 - ? parseFloat( - (i.match( - /(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/ - ) || [])[1] - ) - : parseFloat( - (i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) || - [])[1] - )), - (t.isOldIE = t.isIE && t.isIE < 9), (t.isGecko = t.isMozilla = (window.Controllers || window.controllers) && window.navigator.product === "Gecko"), @@ -1167,15 +1154,6 @@ : e.detail > 1 ? (o++, o > 4 && (o = 1)) : (o = 1); - if (i.isIE) { - var c = Math.abs(e.clientX - u) > 5 || Math.abs(e.clientY - a) > 5; - if (!f || c) o = 1; - f && clearTimeout(f), - (f = setTimeout(function() { - f = null; - }, n[o - 1] || 600)), - o == 1 && ((u = e.clientX), (a = e.clientY)); - } (e._clicks = o), r[s]("mousedown", e); if (o > 4) o = 0; else if (o > 1) return r[s](l[o], e); @@ -1196,8 +1174,7 @@ l = { 2: "dblclick", 3: "tripleclick", 4: "quadclick" }; Array.isArray(e) || (e = [e]), e.forEach(function(e) { - t.addListener(e, "mousedown", c), - i.isOldIE && t.addListener(e, "dblclick", h); + t.addListener(e, "mousedown", c); }); }); var u = @@ -1251,7 +1228,7 @@ s || (f(), r(window, "focus", f)); } }); - if (typeof window == "object" && window.postMessage && !i.isOldIE) { + if (typeof window == "object" && window.postMessage) { var l = 1; t.nextTick = function(e, n) { n = n || window; @@ -1427,7 +1404,6 @@ s = e("../lib/dom"), o = e("../lib/lang"), u = i.isChrome < 18, - a = i.isIE, f = function(e, t) { function b(e) { if (h) return; @@ -1447,15 +1423,12 @@ } function R() { clearTimeout(q), - (q = setTimeout( - function() { - p && ((n.style.cssText = p), (p = "")), - t.renderer.$keepTextAreaAtCursor == null && - ((t.renderer.$keepTextAreaAtCursor = !0), - t.renderer.$moveTextAreaToCursor()); - }, - i.isOldIE ? 200 : 0 - )); + (q = setTimeout(function() { + p && ((n.style.cssText = p), (p = "")), + t.renderer.$keepTextAreaAtCursor == null && + ((t.renderer.$keepTextAreaAtCursor = !0), + t.renderer.$moveTextAreaToCursor()); + }, 0)); } var n = s.createElement("textarea"); (n.className = "ace_text-input"), @@ -1465,7 +1438,6 @@ n.setAttribute("autocapitalize", "off"), n.setAttribute("spellcheck", !1), (n.style.opacity = "0"), - i.isOldIE && (n.style.top = "-1000px"), e.insertBefore(n, e.firstChild); var f = "", l = !1, @@ -1529,27 +1501,6 @@ } catch (n) {} return !t || t.parentElement() != e ? !1 : t.text == e.value; })); - if (i.isOldIE) { - var S = !1, - x = function(e) { - if (S) return; - var t = n.value; - if (h || !t || t == f) return; - if (e && t == f[0]) return T.schedule(); - A(t), (S = !0), w(), (S = !1); - }, - T = o.delayedCall(x); - r.addListener(n, "propertychange", x); - var N = { 13: 1, 27: 1 }; - r.addListener(n, "keyup", function(e) { - h && (!n.value || N[e.keyCode]) && setTimeout(F, 0); - if ((n.value.charCodeAt(0) || 0) < 129) return T.call(); - h ? j() : B(); - }), - r.addListener(n, "keydown", function(e) { - T.schedule(50); - }); - } var C = function(e) { l ? (l = !1) @@ -1591,7 +1542,7 @@ M = function(e, t, n) { var r = e.clipboardData || window.clipboardData; if (!r || u) return; - var i = a || n ? "Text" : "text/plain"; + var i = n ? "Text" : "text/plain"; try { return t ? r.setData(i, t) !== !1 : r.getData(i); } catch (e) { @@ -1619,9 +1570,7 @@ H = function(e) { var s = M(e); typeof s == "string" - ? (s && t.onPaste(s, e), - i.isIE && setTimeout(b), - r.preventDefault(e)) + ? (s && t.onPaste(s, e), r.preventDefault(e)) : ((n.value = ""), (c = !0)); }; r.addCommandKeyListener(n, t.onCommandKey.bind(t)), @@ -1723,14 +1672,12 @@ this.moveToMouse(e, !0); }), (this.moveToMouse = function(e, o) { - if (!o && i.isOldIE) return; p || (p = n.style.cssText), (n.style.cssText = (o ? "z-index:100000;" : "") + "height:" + n.style.height + - ";" + - (i.isIE ? "opacity:0.1;" : "")); + ";"); var u = t.container.getBoundingClientRect(), a = s.computedStyle(t.container), f = u.top + (parseInt(a.borderTopWidth) || 0), @@ -1745,7 +1692,7 @@ t.renderer.$keepTextAreaAtCursor && (t.renderer.$keepTextAreaAtCursor = null), clearTimeout(q), - i.isWin && !i.isOldIE && r.capture(t.container, h, R); + i.isWin && r.capture(t.container, h, R); }), (this.onContextMenuClose = R); var q, @@ -2493,15 +2440,6 @@ }), (this.onMouseDrag = function(e) { var t = this.editor.container; - if (s.isIE && this.state == "dragReady") { - var n = l( - this.mousedownEvent.x, - this.mousedownEvent.y, - this.x, - this.y - ); - n > 3 && t.dragDrop(); - } if (this.state === "dragWait") { var n = l( this.mousedownEvent.x, @@ -2972,10 +2910,6 @@ ), r.addListener(u, "mousedown", n), r.addListener(f, "mousedown", n), - i.isIE && - e.renderer.scrollBarV && - (r.addListener(e.renderer.scrollBarV.element, "mousedown", n), - r.addListener(e.renderer.scrollBarH.element, "mousedown", n)), e.on("mousemove", function(n) { if (t.state || t.$dragDelay || !t.$dragEnabled) return; var r = e.renderer.screenToTextCoordinates(n.x, n.y), @@ -3042,10 +2976,6 @@ f = function() { s[s.state] && s[s.state](), (s.$mouseMoved = !1); }; - if (i.isOldIE && e.domEvent.type == "dblclick") - return setTimeout(function() { - a(e); - }); (s.$onCaptureMouseMove = o), (s.releaseMouse = r.capture(this.editor.container, o, a)); var l = setInterval(f, 20); @@ -12306,7 +12236,7 @@ (e.visibility = "hidden"), (e.position = "absolute"), (e.whiteSpace = "pre"), - o.isIE < 8 ? (e["font-family"] = "inherit") : (e.font = "inherit"), + (e.font = "inherit"), (e.overflow = t ? "hidden" : "visible"); }), (this.checkForSizeChanges = function() { @@ -12416,7 +12346,7 @@ var g = function(e, t) { var n = this; (this.container = e || i.createElement("div")), - (this.$keepTextAreaAtCursor = !o.isOldIE), + (this.$keepTextAreaAtCursor = true), i.addCssClass(this.container, "ace_editor"), this.setTheme(t), (this.$gutter = i.createElement("div")), diff --git a/examples/js/pdfobject.min.js b/examples/js/pdfobject.min.js index b0b37d7f9..b5a639653 100644 --- a/examples/js/pdfobject.min.js +++ b/examples/js/pdfobject.min.js @@ -22,7 +22,6 @@ var pdfobjectversion = "2.1.1", ua = window.navigator.userAgent, supportsPDFs, - isIE, supportsPdfMimeType = typeof navigator.mimeTypes["application/pdf"] !== "undefined", supportsPdfActiveX, @@ -58,17 +57,7 @@ } return ax; }; - isIE = function() { - return !!(window.ActiveXObject || "ActiveXObject" in window); - }; - supportsPdfActiveX = function() { - return !!(createAXO("AcroPDF.PDF") || createAXO("PDF.PdfCtrl")); - }; - supportsPDFs = - !isIOS && - (isFirefoxWithPDFJS || - supportsPdfMimeType || - (isIE() && supportsPdfActiveX())); + supportsPDFs = !isIOS && (isFirefoxWithPDFJS || supportsPdfMimeType); buildFragmentString = function(pdfParams) { var string = "", prop; diff --git a/package-lock.json b/package-lock.json index 78b8f657d..2b83e1721 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "jspdf", - "version": "2.5.2", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jspdf", - "version": "2.5.2", + "version": "3.0.0", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.23.2", + "@babel/runtime": "^7.26.0", "atob": "^2.1.2", "btoa": "^1.2.1", "fflate": "^0.8.1" @@ -37,7 +37,6 @@ "jasmine": "3.5.0", "jasmine-core": "3.5.0", "jasmine-expect": "4.0.3", - "js-yaml": "3.13.1", "jsdoc": "^3.6.3", "karma": "5.1.0", "karma-babel-preprocessor": "8.0.1", @@ -71,7 +70,7 @@ "optionalDependencies": { "canvg": "^3.0.6", "core-js": "^3.6.0", - "dompurify": "^2.5.4", + "dompurify": "^3.2.4", "html2canvas": "^1.0.0-rc.5" } }, @@ -1576,11 +1575,15 @@ } }, "node_modules/@babel/runtime": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", - "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz", + "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", + "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/runtime-corejs3": { @@ -1851,6 +1854,13 @@ "@types/node": "*" } }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, "node_modules/@types/yauzl": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz", @@ -4667,10 +4677,14 @@ } }, "node_modules/dompurify": { - "version": "2.5.6", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.6.tgz", - "integrity": "sha512-zUTaUBO8pY4+iJMPE1B9XlO2tXVYIcEA4SNGtvDELzTSCQO7RzH+j7S180BmhmJId78lqGU2z19vgVx2Sxs/PQ==", - "optional": true + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.4.tgz", + "integrity": "sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optional": true, + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } }, "node_modules/dot-case": { "version": "3.0.3", @@ -7098,19 +7112,6 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/js2xmlparser": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz", @@ -10192,10 +10193,11 @@ "dev": true }, "node_modules/rollup": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.21.0.tgz", - "integrity": "sha512-BEGgy+wSzux7Ycq58pRiWEOBZaXRXTuvzl1gsm7gqmsAHxkWf9nyA5V2LN9fGSHhhDQd0/C13iRzSh4bbIpWZQ==", + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", "dev": true, + "license": "MIT", "bin": { "rollup": "dist/bin/rollup" }, @@ -10203,7 +10205,7 @@ "node": ">=10.0.0" }, "optionalDependencies": { - "fsevents": "~2.1.2" + "fsevents": "~2.3.2" } }, "node_modules/rollup-plugin-commonjs": { @@ -10332,6 +10334,21 @@ "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", "dev": true }, + "node_modules/rollup/node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", diff --git a/package.json b/package.json index 4eea1bf21..f3844e930 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jspdf", - "version": "2.5.2", + "version": "3.0.0", "homepage": "https://github.com/mrrio/jspdf", "description": "PDF Document creation from JavaScript", "main": "dist/jspdf.node.min.js", @@ -23,7 +23,7 @@ "url": "https://github.com/MrRio/jsPDF.git" }, "dependencies": { - "@babel/runtime": "^7.23.2", + "@babel/runtime": "^7.26.0", "atob": "^2.1.2", "btoa": "^1.2.1", "fflate": "^0.8.1" @@ -31,7 +31,7 @@ "optionalDependencies": { "canvg": "^3.0.6", "core-js": "^3.6.0", - "dompurify": "^2.5.4", + "dompurify": "^3.2.4", "html2canvas": "^1.0.0-rc.5" }, "devDependencies": { @@ -57,7 +57,6 @@ "jasmine": "3.5.0", "jasmine-core": "3.5.0", "jasmine-expect": "4.0.3", - "js-yaml": "3.13.1", "jsdoc": "^3.6.3", "karma": "5.1.0", "karma-babel-preprocessor": "8.0.1", @@ -111,7 +110,6 @@ "generate-docs": "jsdoc -c jsdoc.json --readme README.md" }, "browserslist": [ - "last 2 versions", - "IE 11" + "last 2 versions" ] } diff --git a/src/libs/Blob.js b/src/libs/Blob.js index 00e4049cd..2b24189ac 100644 --- a/src/libs/Blob.js +++ b/src/libs/Blob.js @@ -415,26 +415,6 @@ if (strTag) { } function fixFileAndXHR() { - var isIE = - !!global.ActiveXObject || - ("-ms-scroll-limit" in document.documentElement.style && - "-ms-ime-align" in document.documentElement.style); - - // Monkey patched - // IE don't set Content-Type header on XHR whose body is a typed Blob - // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6047383 - var _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send; - if (isIE && _send) { - XMLHttpRequest.prototype.send = function(data) { - if (data instanceof Blob) { - this.setRequestHeader("Content-Type", data.type); - _send.call(this, data); - } else { - _send.call(this, data); - } - }; - } - try { new File([], ""); } catch (e) { diff --git a/test/karma.common.conf.js b/test/karma.common.conf.js index b5d38546e..924f9d36d 100644 --- a/test/karma.common.conf.js +++ b/test/karma.common.conf.js @@ -27,7 +27,7 @@ var karmaConfig = { // if true, Karma captures browsers, runs the tests and exits singleRun: false, - browsers: ["Chrome", "Firefox", "IE"], + browsers: ["Chrome", "Firefox"], // Concurrency level // how many browser should be started simultaneous diff --git a/test/saucelabs/karma.conf.js b/test/saucelabs/karma.conf.js index 2a43f93eb..a23cc822a 100644 --- a/test/saucelabs/karma.conf.js +++ b/test/saucelabs/karma.conf.js @@ -1,16 +1,8 @@ // Karma configuration "use strict"; -const yaml = require("js-yaml"); -const fs = require("fs"); const karmaConfig = require("../karma.common.conf.js"); const browsers = { - sl_ie_11: { - base: "SauceLabs", - browserName: "internet explorer", - platform: "Windows 10", - version: "11" - }, sl_chrome: { base: "SauceLabs", browserName: "chrome", @@ -25,7 +17,6 @@ const browsers = { }; module.exports = config => { - // Use ENV vars or .sauce.yml to get credentials if ( !( process.env.SAUCE_USERNAME && @@ -33,16 +24,9 @@ module.exports = config => { process.env.SAUCE_ACCESS_KEY.length > 5 ) ) { - if (!fs.existsSync(".sauce.yml")) { // eslint-disable-next-line no-console - console.log("Create a .sauce.yml with your credentials"); + console.error("Saucelabs credentials are missing. Define the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables."); process.exit(1); - } else { - let sauceConfig = yaml.safeLoad(fs.readFileSync(".sauce.yml", "utf8")); - process.env.SAUCE_USERNAME = sauceConfig.addons.sauce_connect.username; - process.env.SAUCE_ACCESS_KEY = - sauceConfig.addons.sauce_connect.access_key; - } } config.set({ ...karmaConfig, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy