From 0a9a5e281abe8c9463c6ad0d36604ad4499bef4c Mon Sep 17 00:00:00 2001 From: Tim McGee Date: Mon, 15 Feb 2016 11:25:22 -0800 Subject: [PATCH] disable eslint for jsPDF. --- widgets/libs/jsPDF/jspdf.debug.js | 401 +++++++++++++++--------------- widgets/libs/jsPDF/jspdf.min.js | 25 +- 2 files changed, 214 insertions(+), 212 deletions(-) diff --git a/widgets/libs/jsPDF/jspdf.debug.js b/widgets/libs/jsPDF/jspdf.debug.js index 691b45f..0d33620 100644 --- a/widgets/libs/jsPDF/jspdf.debug.js +++ b/widgets/libs/jsPDF/jspdf.debug.js @@ -1,3 +1,4 @@ +/*eslint-disable*/ /** @preserve * jsPDF - PDF Document creation from JavaScript * Version 1.1.355-git Built on 2015-12-20T23:21 @@ -2926,13 +2927,13 @@ var jsPDF = (function(global) { /* Destination Magnification Factors See PDF 1.3 Page 386 for meanings and options - + [supported] XYZ (options; left top zoom) Fit (no options) FitH (options: top) FitV (options: left) - + [not supported] FitR FitB @@ -3209,7 +3210,7 @@ var jsPDF = (function(global) { /** * This plugin mimicks the HTML5 Canvas - * + * * The goal is to provide a way for current canvas users to print directly to a PDF. */ @@ -3327,7 +3328,7 @@ var jsPDF = (function(global) { text.style.fontName = fontName; text.style.fontSize = fontSize + 'pt'; try { - text.textContent = txt; + text.textContent = txt; } catch(e) { text.innerText = txt; } @@ -3549,7 +3550,7 @@ var jsPDF = (function(global) { // get final column width columnWidths[header] = jsPDFAPI.arrayMax(columnMinWidths); - + //have to reset columnMinWidths = []; } @@ -3667,7 +3668,7 @@ var jsPDF = (function(global) { /** * This plugin mimicks the HTML5 Canvas's context2d. - * + * * The goal is to provide a way for current canvas implementations to print directly to a PDF. */ @@ -4087,7 +4088,7 @@ var jsPDF = (function(global) { pt.x - this.path[i - 1].x, pt.y - this.path[i - 1].y ]; deltas.push(delta); - break; + break; case 'qct': // convert to bezier var x1 = this.path[i - 1].x + 2.0/3.0 * (pt.x1 - this.path[i - 1].x); @@ -4154,7 +4155,7 @@ var jsPDF = (function(global) { pt.x - this.path[i - 1].x, pt.y - this.path[i - 1].y ]; deltas.push(delta); - break; + break; case 'qct': // convert to bezier var x1 = this.path[i - 1].x + 2.0/3.0 * (pt.x1 - this.path[i - 1].x); @@ -4213,7 +4214,7 @@ var jsPDF = (function(global) { var txtWidth = pdf.getStringUnitWidth(text) * fontSize / pdf.internal.scaleFactor; return txtWidth; }, - + get width(){ return this.getWidth(text); } @@ -4308,18 +4309,18 @@ var jsPDF = (function(global) { } /** - * Return a array of objects that represent bezier curves which approximate the - * circular arc centered at the origin, from startAngle to endAngle (radians) with + * Return a array of objects that represent bezier curves which approximate the + * circular arc centered at the origin, from startAngle to endAngle (radians) with * the specified radius. - * - * Each bezier curve is an object with four points, where x1,y1 and - * x4,y4 are the arc's end points and x2,y2 and x3,y3 are the cubic bezier's + * + * Each bezier curve is an object with four points, where x1,y1 and + * x4,y4 are the arc's end points and x2,y2 and x3,y3 are the cubic bezier's * control points. */ c2d.internal.createArc = function(radius,startAngle,endAngle,anticlockwise) { - var EPSILON = 0.00001; // Roughly 1/1000th of a degree, see below + var EPSILON = 0.00001; // Roughly 1/1000th of a degree, see below // normalize startAngle, endAngle to [-2PI, 2PI] var twoPI = Math.PI * 2; @@ -4332,7 +4333,7 @@ var jsPDF = (function(global) { endAngleN = endAngleN % twoPI; } - // Compute the sequence of arc curves, up to PI/2 at a time. + // Compute the sequence of arc curves, up to PI/2 at a time. // Total arc angle is less than 2PI. var curves = []; var piOverTwo = Math.PI / 2.0; @@ -4351,14 +4352,14 @@ var jsPDF = (function(global) { } /** - * Cubic bezier approximation of a circular arc centered at the origin, + * Cubic bezier approximation of a circular arc centered at the origin, * from (radians) a1 to a2, where a2-a1 < pi/2. The arc's radius is r. - * + * * Returns an object with four points, where x1,y1 and x4,y4 are the arc's end points * and x2,y2 and x3,y3 are the cubic bezier's control points. - * + * * This algorithm is based on the approach described in: - * A. Riškus, "Approximation of a Cubic Bezier Curve by Circular Arcs and Vice Versa," + * A. Riškus, "Approximation of a Cubic Bezier Curve by Circular Arcs and Vice Versa," * Information Technology and Control, 35(4), 2006 pp. 371-378. */ @@ -4382,7 +4383,7 @@ var jsPDF = (function(global) { var x3 = x2; var y3 = -y2; - // Find the arc points' actual locations by computing x1,y1 and x4,y4 + // Find the arc points' actual locations by computing x1,y1 and x4,y4 // and rotating the control points by a + a1 var ar = a + a1; @@ -4655,7 +4656,7 @@ var jsPDF = (function(global) { //float and clearing of floats css["float"] = FloatMap[computedCSSElement("cssFloat")] || "none"; css["clear"] = ClearMap[computedCSSElement("clear")] || "none"; - + css["color"] = computedCSSElement("color"); return css; @@ -4929,7 +4930,7 @@ var jsPDF = (function(global) { } // Only add the text if the text node is in the body element if (cn.ownerDocument.body.contains(cn)){ - renderer.addText(value, fragmentCSS); + renderer.addText(value, fragmentCSS); } } else if (typeof cn === "string") { renderer.addText(cn, fragmentCSS); @@ -5241,11 +5242,11 @@ var jsPDF = (function(global) { // text color var pdfTextColor = this.getPdfColor(style["color"]); if (pdfTextColor !== this.lastTextColor) - { - this.pdf.internal.write(pdfTextColor); + { + this.pdf.internal.write(pdfTextColor); this.lastTextColor = pdfTextColor; } - + //set the word spacing for e.g. justify style if (style['word-spacing'] !== undefined && style['word-spacing'] > 0) { this.pdf.internal.write(style['word-spacing'].toFixed(2), "Tw"); @@ -5253,18 +5254,18 @@ var jsPDF = (function(global) { this.pdf.internal.write("/" + font.id, (defaultFontSize * style["font-size"]).toFixed(2), "Tf", "(" + this.pdf.internal.pdfEscape(text) + ") Tj"); - + //set the word spacing back to neutral => 0 if (style['word-spacing'] !== undefined) { this.pdf.internal.write(0, "Tw"); } }; - + // Accepts #FFFFFF, rgb(int,int,int), or CSS Color Name Renderer.prototype.getPdfColor = function(style) { var textColor; var r,g,b; - + var rx = /rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/; var m = rx.exec(style); if (m != null){ @@ -5286,7 +5287,7 @@ var jsPDF = (function(global) { b = style.substring(5, 7); b = parseInt(b, 16); } - + if ((typeof r === 'string') && /^#[0-9A-Fa-f]{6}$/.test(r)) { var hex = parseInt(r.substr(1), 16); r = (hex >> 16) & 255; @@ -5302,12 +5303,12 @@ var jsPDF = (function(global) { } return textColor; }; - + Renderer.prototype.f3 = function(number) { return number.toFixed(3); // Ie, %.3f }, - - + + Renderer.prototype.renderParagraph = function (cb) { var blockstyle, defaultFontSize, @@ -5352,7 +5353,7 @@ var jsPDF = (function(global) { this.y = 0; paragraphspacing_before = ((blockstyle["margin-top"] || 0) + (blockstyle["padding-top"] || 0)) * fontToUnitRatio; } - + out = this.pdf.internal.write; i = void 0; l = void 0; @@ -5519,10 +5520,10 @@ var jsPDF = (function(global) { return process(this, HTML, isNaN(x) ? 4 : x, isNaN(y) ? 4 : y, settings, callback); }; })(jsPDF.API); -/** ==================================================================== +/** ==================================================================== * jsPDF JavaScript plugin * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -5530,10 +5531,10 @@ var jsPDF = (function(global) { * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -5604,7 +5605,7 @@ var jsPDF = (function(global) { // pdf.internal.write("(page_" + (i + 1) + ")" + dests[i] + " 0 // R"); // } - // + // if (this.outline.root.children.length > 0) { var lines = pdf.outline.render().split(/\r\n/); for (var i = 0; i < lines.length; i++) { @@ -5814,10 +5815,10 @@ var jsPDF = (function(global) { return this; })(jsPDF.API); /**@preserve - * ==================================================================== + * ==================================================================== * jsPDF PNG PlugIn * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -5825,10 +5826,10 @@ var jsPDF = (function(global) { * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -5841,35 +5842,35 @@ var jsPDF = (function(global) { (function(jsPDFAPI) { 'use strict' - + /* * @see http://www.w3.org/TR/PNG-Chunks.html - * + * Color Allowed Interpretation Type Bit Depths - + 0 1,2,4,8,16 Each pixel is a grayscale sample. - + 2 8,16 Each pixel is an R,G,B triple. - + 3 1,2,4,8 Each pixel is a palette index; a PLTE chunk must appear. - + 4 8,16 Each pixel is a grayscale sample, followed by an alpha sample. - + 6 8,16 Each pixel is an R,G,B triple, followed by an alpha sample. */ - + /* * PNG filter method types - * + * * @see http://www.w3.org/TR/PNG-Filters.html * @see http://www.libpng.org/pub/png/book/chapter09.html - * + * * This is what the value 'Predictor' in decode params relates to - * + * * 15 is "optimal prediction", which means the prediction algorithm can change from line to line. * In that case, you actually have to read the first byte off each line for the prediction algorthim (which should be 0-4, corresponding to PDF 10-14) and select the appropriate unprediction algorithm based on that byte. * @@ -5879,7 +5880,7 @@ var jsPDF = (function(global) { 3 Average 4 Paeth */ - + var doesNotHavePngJS = function() { return typeof PNG !== 'function' || typeof FlateStream !== 'function'; } @@ -5893,69 +5894,69 @@ var jsPDF = (function(global) { return inst; } , compressBytes = function(bytes, lineLength, colorsPerPixel, compression) { - + var level = 5, filter_method = filterUp; - + switch(compression) { - + case jsPDFAPI.image_compression.FAST: - + level = 3; filter_method = filterSub; break; - + case jsPDFAPI.image_compression.MEDIUM: - + level = 6; filter_method = filterAverage; break; - + case jsPDFAPI.image_compression.SLOW: - + level = 9; filter_method = filterPaeth;//uses to sum to choose best filter for each line break; } - + bytes = applyPngFilterMethod(bytes, lineLength, colorsPerPixel, filter_method); - + var header = new Uint8Array(createZlibHeader(level)); var checksum = adler32(bytes); - + var deflate = new Deflater(level); var a = deflate.append(bytes); var cBytes = deflate.flush(); - + var len = header.length + a.length + cBytes.length; - + var cmpd = new Uint8Array(len + 4); cmpd.set(header); cmpd.set(a, header.length); cmpd.set(cBytes, header.length + a.length); - + cmpd[len++] = (checksum >>> 24) & 0xff; cmpd[len++] = (checksum >>> 16) & 0xff; cmpd[len++] = (checksum >>> 8) & 0xff; cmpd[len++] = checksum & 0xff; - + return jsPDFAPI.arrayBufferToBinaryString(cmpd); } , createZlibHeader = function(bytes, level){ /* - * @see http://www.ietf.org/rfc/rfc1950.txt for zlib header + * @see http://www.ietf.org/rfc/rfc1950.txt for zlib header */ var cm = 8; var cinfo = Math.LOG2E * Math.log(0x8000) - 8; var cmf = (cinfo << 4) | cm; - + var hdr = cmf << 8; var flevel = Math.min(3, ((level - 1) & 0xff) >> 1); - + hdr |= (flevel << 6); hdr |= 0;//FDICT hdr += 31 - (hdr % 31); - + return [cmf, (hdr & 0xff) & 0xff]; } , adler32 = function(array, param) { @@ -5985,38 +5986,38 @@ var jsPDF = (function(global) { result = new Uint8Array(bytes.length + lines), filter_methods = getFilterMethods(), i = 0, line, prevLine, offset; - + for(; i < lines; i++) { offset = i * lineLength; line = bytes.subarray(offset, offset + lineLength); - + if(filter_method) { result.set(filter_method(line, colorsPerPixel, prevLine), offset + i); - + }else{ - + var j = 0, len = filter_methods.length, results = []; - + for(; j < len; j++) results[j] = filter_methods[j](line, colorsPerPixel, prevLine); - + var ind = getIndexOfSmallestSum(results.concat()); - + result.set(results[ind], offset + i); } - + prevLine = line; } - + return result; } , filterNone = function(line, colorsPerPixel, prevLine) { /*var result = new Uint8Array(line.length + 1); result[0] = 0; result.set(line, 1);*/ - + var result = Array.apply([], line); result.unshift(0); @@ -6027,14 +6028,14 @@ var jsPDF = (function(global) { i = 0, len = line.length, left; - + result[0] = 1; - + for(; i < len; i++) { left = line[i - colorsPerPixel] || 0; result[i + 1] = (line[i] - left + 0x0100) & 0xff; } - + return result; } , filterUp = function(line, colorsPerPixel, prevLine) { @@ -6042,14 +6043,14 @@ var jsPDF = (function(global) { i = 0, len = line.length, up; - + result[0] = 2; - + for(; i < len; i++) { up = prevLine && prevLine[i] || 0; result[i + 1] = (line[i] - up + 0x0100) & 0xff; } - + return result; } , filterAverage = function(line, colorsPerPixel, prevLine) { @@ -6058,15 +6059,15 @@ var jsPDF = (function(global) { len = line.length, left, up; - + result[0] = 3; - + for(; i < len; i++) { left = line[i - colorsPerPixel] || 0; up = prevLine && prevLine[i] || 0; result[i + 1] = (line[i] + 0x0100 - ((left + up) >>> 1)) & 0xff; } - + return result; } , filterPaeth = function(line, colorsPerPixel, prevLine) { @@ -6077,9 +6078,9 @@ var jsPDF = (function(global) { up, upLeft, paeth; - + result[0] = 4; - + for(; i < len; i++) { left = line[i - colorsPerPixel] || 0; up = prevLine && prevLine[i] || 0; @@ -6087,7 +6088,7 @@ var jsPDF = (function(global) { paeth = paethPredictor(left, up, upLeft); result[i + 1] = (line[i] - paeth + 0x0100) & 0xff; } - + return result; } ,paethPredictor = function(left, up, upLeft) { @@ -6096,7 +6097,7 @@ var jsPDF = (function(global) { pLeft = Math.abs(p - left), pUp = Math.abs(p - up), pUpLeft = Math.abs(p - upLeft); - + return (pLeft <= pUp && pLeft <= pUpLeft) ? left : (pUp <= pUpLeft) ? up : upLeft; } , getFilterMethods = function() { @@ -6106,28 +6107,28 @@ var jsPDF = (function(global) { var i = 0, len = arrays.length, sum, min, ind; - + while(i < len) { sum = absSum(arrays[i].slice(1)); - + if(sum < min || !min) { min = sum; ind = i; } - + i++; } - + return ind; } , absSum = function(array) { var i = 0, len = array.length, sum = 0; - + while(i < len) sum += Math.abs(array[i++]); - + return sum; } , logImg = function(img) { @@ -6151,180 +6152,180 @@ var jsPDF = (function(global) { console.log("pixelBitlength: " + img.pixelBitlength); console.log("hasAlphaChannel: " + img.hasAlphaChannel); }; - - - - + + + + jsPDFAPI.processPNG = function(imageData, imageIndex, alias, compression, dataAsBinaryString) { 'use strict' - + var colorSpace = this.color_spaces.DEVICE_RGB, decode = this.decode.FLATE_DECODE, bpc = 8, img, dp, trns, colors, pal, smask; - + /* if(this.isString(imageData)) { - + }*/ - + if(this.isArrayBuffer(imageData)) imageData = new Uint8Array(imageData); - + if(this.isArrayBufferView(imageData)) { - + if(doesNotHavePngJS()) throw new Error("PNG support requires png.js and zlib.js"); - + img = new PNG(imageData); imageData = img.imgData; bpc = img.bits; colorSpace = img.colorSpace; colors = img.colors; - + //logImg(img); - + /* * colorType 6 - Each pixel is an R,G,B triple, followed by an alpha sample. - * + * * colorType 4 - Each pixel is a grayscale sample, followed by an alpha sample. - * + * * Extract alpha to create two separate images, using the alpha as a sMask */ if([4,6].indexOf(img.colorType) !== -1) { - + /* * processes 8 bit RGBA and grayscale + alpha images */ if(img.bits === 8) { - + var pixels = img.pixelBitlength == 32 ? new Uint32Array(img.decodePixels().buffer) : img.pixelBitlength == 16 ? new Uint16Array(img.decodePixels().buffer) : new Uint8Array(img.decodePixels().buffer), len = pixels.length, imgData = new Uint8Array(len * img.colors), alphaData = new Uint8Array(len), pDiff = img.pixelBitlength - img.bits, i = 0, n = 0, pixel, pbl; - + for(; i < len; i++) { pixel = pixels[i]; pbl = 0; - + while(pbl < pDiff) { - + imgData[n++] = ( pixel >>> pbl ) & 0xff; pbl = pbl + img.bits; } - + alphaData[i] = ( pixel >>> pbl ) & 0xff; } } - + /* * processes 16 bit RGBA and grayscale + alpha images */ if(img.bits === 16) { - + var pixels = new Uint32Array(img.decodePixels().buffer), len = pixels.length, imgData = new Uint8Array((len * (32 / img.pixelBitlength) ) * img.colors), alphaData = new Uint8Array(len * (32 / img.pixelBitlength) ), hasColors = img.colors > 1, i = 0, n = 0, a = 0, pixel; - + while(i < len) { pixel = pixels[i++]; - + imgData[n++] = (pixel >>> 0) & 0xFF; - + if(hasColors) { imgData[n++] = (pixel >>> 16) & 0xFF; - + pixel = pixels[i++]; imgData[n++] = (pixel >>> 0) & 0xFF; } - + alphaData[a++] = (pixel >>> 16) & 0xFF; } - + bpc = 8; } - + if(canCompress(compression)) { - + imageData = compressBytes(imgData, img.width * img.colors, img.colors, compression); smask = compressBytes(alphaData, img.width, 1, compression); - + }else{ - + imageData = imgData; smask = alphaData; decode = null; } } - + /* * Indexed png. Each pixel is a palette index. */ if(img.colorType === 3) { - + colorSpace = this.color_spaces.INDEXED; pal = img.palette; - + if(img.transparency.indexed) { - + var trans = img.transparency.indexed; - + var total = 0, i = 0, len = trans.length; for(; i 26); - + return tmp; }, - + listRoman : function(number) { var romanArray = [ "M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I" ], decimal = [ 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 ], roman = "", v, len = romanArray.length; - + if (number <= 0 || number >= 4000) { return number; } - + for (v = 0; v < len; v += 1) { while (number >= decimal[v]) { number -= decimal[v]; roman += romanArray[v]; } } - + return roman; } }; @@ -11803,7 +11804,7 @@ NodeParser.prototype.renderBullet = function(container, bounds){ var list = li.parent; var nodeList = Array.prototype.slice.call(list.node.children); var index = nodeList.indexOf(li.node) + 1; - + var value = this.listItemText(type, index); value += '.'; var left = bounds.left - padding; @@ -11861,7 +11862,7 @@ NodeParser.prototype.renderTextDecoration = function(container, bounds, metrics) NodeParser.prototype.renderAnnotation = function(container, bounds) { if (container.node.nodeName === 'A'){ var href = container.node.getAttribute('href'); - if (href){ + if (href){ var annotations = this.options.canvas.annotations; if (annotations){ annotations.createAnnotation(href, container.bounds); @@ -12814,7 +12815,7 @@ CanvasRenderer.prototype.setVariable = function(property, value) { }; CanvasRenderer.prototype.text = function(text, left, bottom) { - this.ctx.fillText(text, left, bottom); + this.ctx.fillText(text, left, bottom); }; CanvasRenderer.prototype.backgroundRepeatShape = function(imageContainer, backgroundPosition, size, bounds, left, top, width, height, borderData) { @@ -15213,7 +15214,7 @@ function html2pdf (html,pdf,callback) { }; canvas.annotations = pdf.annotations; - + pdf.context2d._pageBreakAt = function(y) { this.pageBreaks.push(y); }; @@ -15232,7 +15233,7 @@ function html2pdf (html,pdf,callback) { var iframe = document.createElement('iframe'); //iframe.style.width = canvas.width; //iframe.src = ""; - //iframe.document.domain = + //iframe.document.domain = document.body.appendChild(iframe); var doc; doc = iframe.contentDocument; @@ -15278,20 +15279,20 @@ function html2pdf (html,pdf,callback) { # PNG.js # Copyright (c) 2011 Devon Govett # MIT LICENSE -# -# Permission is hereby granted, free of charge, to any person obtaining a copy of this -# software and associated documentation files (the "Software"), to deal in the Software -# without restriction, including without limitation the rights to use, copy, modify, merge, -# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of this +# software and associated documentation files (the "Software"), to deal in the Software +# without restriction, including without limitation the rights to use, copy, modify, merge, +# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons # to whom the Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all copies or +# +# The above copyright notice and this permission notice shall be included in all copies or # substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING -# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING +# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ @@ -15959,7 +15960,7 @@ var FlateStream = (function() { 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d, 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000 ]), 5]; - + function error(e) { throw new Error(e) } diff --git a/widgets/libs/jsPDF/jspdf.min.js b/widgets/libs/jsPDF/jspdf.min.js index 30d9bd2..b0df207 100644 --- a/widgets/libs/jsPDF/jspdf.min.js +++ b/widgets/libs/jsPDF/jspdf.min.js @@ -1,4 +1,5 @@ -/** +/*eslint-disable*/ +/** * jsPDF - PDF Document creation from JavaScript * Version 1.1.355-git Built on 2015-12-20T23:21 * CommitID 3a86de3c75 @@ -49,7 +50,7 @@ * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ -/** +/** * jsPDF addImage plugin * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/ * 2013 Chris Dowling, https://github.com/gingerchris @@ -91,7 +92,7 @@ * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ -/** +/** * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria @@ -100,7 +101,7 @@ * 2014 Wolfgang Gassler, https://github.com/woolfg * 2014 Steven Spungin, https://github.com/flamenco */ -/** +/** * jsPDF JavaScript plugin * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com */ @@ -110,25 +111,25 @@ * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */ -/** +/** * jsPDF PNG PlugIn * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb */ -/** +/** * jsPDF split_text_to_size plugin - MIT license. * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com * 2014 Diego Casorran, https://github.com/diegocr */ -/** +/** jsPDF standard_fonts_metrics plugin Copyright (c) 2012 Willow Systems Corporation, willow-systems.com MIT license. */ -/** +/** jsPDF SVG plugin Copyright (c) 2012 Willow Systems Corporation, willow-systems.com */ -/** +/** * jsPDF total_pages plugin * Copyright (c) 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br */ @@ -150,8 +151,8 @@ Copyright (c) 2012 Willow Systems Corporation, willow-systems.com modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. @@ -190,7 +191,7 @@ Copyright (c) 2012 Willow Systems Corporation, willow-systems.com # PNG.js # Copyright (c) 2011 Devon Govett # MIT LICENSE -# +# */ /* * Extracted from pdf.js