first commit
This commit is contained in:
21
node_modules/@pdf-lib/standard-fonts/LICENSE.md
generated
vendored
Normal file
21
node_modules/@pdf-lib/standard-fonts/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Andrew Dillon
|
||||
|
||||
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 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,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
83
node_modules/@pdf-lib/standard-fonts/README.md
generated
vendored
Normal file
83
node_modules/@pdf-lib/standard-fonts/README.md
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
<h1>
|
||||
standard-fonts
|
||||
|
||||
<br />
|
||||
|
||||
<!-- NPM Version -->
|
||||
<a href="https://www.npmjs.com/package/standard-fonts">
|
||||
<img
|
||||
src="https://img.shields.io/npm/v/@pdf-lib/standard-fonts.svg?style=flat-square"
|
||||
alt="NPM Version"
|
||||
/>
|
||||
</a>
|
||||
|
||||
<!-- Prettier Badge -->
|
||||
<a href="https://prettier.io/">
|
||||
<img
|
||||
src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"
|
||||
alt="Prettier Badge"
|
||||
/>
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
> Collection of metrics and encodings for the standard 14 PDF fonts
|
||||
|
||||
This project is a fork of [`afm`](https://github.com/chbrown/afm) and was created for use in [`pdf-lib`](https://github.com/Hopding/pdf-lib). This forks exists for two primary reasons:
|
||||
|
||||
1. The original project did not include mappings from Unicode to WinAnsi/ZapfDingbats/Symbol encodings.
|
||||
2. The font metrics included in the original project were uncompressed (not ideal for usage in `pdf-lib`).
|
||||
|
||||
## Usage
|
||||
```js
|
||||
import { Font, FontNames, Encodings } from '@pdf-lib/standard-fonts';
|
||||
|
||||
const codePoint = '∑'.charCodeAt(0);
|
||||
|
||||
const glyph = Encodings.Symbol.encodeUnicodeCodePoint(codePoint);
|
||||
glyph // => { code: 229, name: 'summation' }
|
||||
|
||||
const font = Font.load(FontNames.Symbol);
|
||||
const width = font.getWidthOfGlyph(glyph.name);
|
||||
width // => 713
|
||||
```
|
||||
|
||||
## Installation
|
||||
### NPM Module
|
||||
To install the latest stable version:
|
||||
```bash
|
||||
# With npm
|
||||
npm install --save @pdf-lib/standard-fonts
|
||||
|
||||
# With yarn
|
||||
yarn add @pdf-lib/standard-fonts
|
||||
```
|
||||
This assumes you're using [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/lang/en/) as your package manager.
|
||||
|
||||
### UMD Module
|
||||
You can also download `@pdf-lib/standard-fonts` as a UMD module from [unpkg](https://unpkg.com/#/). The UMD builds have been compiled to ES5, so they should work [in any modern browser](https://caniuse.com/#feat=es5). UMD builds are useful if you aren't using a package manager or module bundler. For example, you can use them directly in the `<script>` tag of an HTML page.
|
||||
|
||||
The following builds are available:
|
||||
|
||||
* https://unpkg.com/@pdf-lib/standard-fonts/dist/standard-fonts.js
|
||||
* https://unpkg.com/@pdf-lib/standard-fonts/dist/standard-fonts.min.js
|
||||
|
||||
When using a UMD build, you will have access to a global `window.StandardFonts` variable. This variable contains the classes and enums exported by `@pdf-lib/standard-fonts`. For example:
|
||||
|
||||
```javascript
|
||||
// NPM module
|
||||
import { Font, FontNames, Encodings } from '@pdf-lib/standard-fonts';
|
||||
const font = Font.load(FontNames.HelveticaBold);
|
||||
const encoding = Encodings.WinAnsi;
|
||||
|
||||
// UMD module
|
||||
var font = StandardFonts.Font.load(StandardFonts.FontNames.HelveticaBold);
|
||||
var encoding = StandardFonts.Encodings.WinAnsi;
|
||||
```
|
||||
|
||||
## License
|
||||
[MIT](https://choosealicense.com/licenses/mit/)
|
||||
|
||||
## Original Repo's License
|
||||
|
||||
Copyright 2015–2018 Christopher Brown.
|
||||
[MIT Licensed](https://chbrown.github.io/licenses/MIT/#2015-2018).
|
||||
7023
node_modules/@pdf-lib/standard-fonts/dist/standard-fonts.js
generated
vendored
Normal file
7023
node_modules/@pdf-lib/standard-fonts/dist/standard-fonts.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/dist/standard-fonts.min.js
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/dist/standard-fonts.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Courier-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Courier-Bold.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlC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hC0o5J3kqvkTsGyY6gwBHlqmHtqBh2x77UI9QimVS75PljgMAjXDEljn0QNjvMlZIAju/pF0NH95VcFshSgnB3Ug+LhMkwYoVKOAUS+T2kZIG2DVcYInLXDTQkKUYHelH6kuGcEcbPE26aRPNklKOEQpNcCQHPp6k4jc5UYbRtkM7T4HcVsAvADWLtEGnq/M9t2G9e2Aw8xEM1CCQ4QDWq28cnKrmDHTAwcvgYNh1HJSqEKumdvVDlPDFOwjU8UyTpZZ4tTBohzYUSMaRAmdggBNgKLmzVsYGLjXbyujb6lm70CGSmnB1PsWJHuSYhQfupq/ioxBTRngkEaRuQEP3ICIPb/kAq/Axo6ZUEaQFFSStxwa/eDpiARDND4kqhIE+BG1Btp7hjKCjh6UKYt2xk7MkmMJ8PCMlGNy5XiSdvc6wYjYtIp5pSGBRTo9Z45R6Asw4bQ8HgrYhEJmTFsk6pWvyPfJOj4HiXNGFFQJw1hOCVaYgChNUOGcA6tD0DZCMSdDczMBDa5TFVWDqWn5i/yB+BByqARcGhx6ziqXVD4Ii2TqZmnLi8AS3L8dGqRoBIzwkM0LmXNpOAOKTNKbKciPBvg8XdZJ6RDoHEKO5meuGdDzmOiQMTrt0d63SVfAIDBJtgIwwaUvN7ps8l1r7v0I5lKPRUEV+rcqfaHlDvJH4FSdVBVCjk8IiXp87Jv/Ib90s/dk6gshTfPv8Zfv/wDUfBK2"
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/Courier-BoldOblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Courier-BoldOblique.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90C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esH7LiC3bAjDzGFiua8fih8BwcsFOE8woqIrmgWQ2Cj3czWzLdqYFeg3Bmd2pNusVSyTNJG+N8SlB+AhRNSGdUgtR9whYU6k5x1fwJWDZIdYYADy1SD23BQ669dqEekaktF3yfLHAYBGqGBbAuoAdGWMkZEQR3/0g6mr+8qmBUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2j7IuGcEMqHibdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4CuzfbfhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA="
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/Courier-Oblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Courier-Oblique.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWVtT2zgU/isZP+3OhE5Iy/UtDaHNFhI2IdDS4UGxFUeLbKW6AKHT/77Hhnbb1fnUFw98x9K5fzpyvmZDU1Wy9tlxdnUenChlZ3e//+awc7B32D/Kutmpq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0VSVyy9Xw0kpOcWG8yPl+K+iyJVn/LduFOV3GaOBmuDvUpbCh0iIwakxJQybD0rlg/ZAVX7ADZuQxtljRjMcPhWfggJ0inFdQEckFzWoQfLyb2ZLpTg30GoQzu1Nr0lWWSp5J2hjnU4LyE6BoQjqjEqTuE7agUPeKq+ZPwLJBqjMEWLRILdqCRa69dqEekaktF3yfLHAYBGqGBbAuoAUjrOSECIK7fyQdzb9/r2BUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2T7IuGcEMqHiXdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4Cuz/bbhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNR8eaOBgfv8trTmTtbsHcjKUjkw9b4DyR6nGCVQV/NXkRGoKQscMigyN2DBDYjYy0cu8Als5JkJZQhJQSd5y6PRD56OSDBA40OiKkGAn1BrIN1TlBF09KBMOaQZOzFNjiXAwxOpPZMrz5O0fzAJRsSmVcwnDQUsMuk5c4RCX4AJp+VxKmBLhcyYNk/UK1+RH5J1fAYS560oZCUsY7lMsMIYRGmMCucMWE1BWwvNnAzNzQQ0uElVVA2mpsVv8gfiI5FDJeBScuglq1xS+SDMk6mbpi0viCW4XzsMSNEQGBEgmxcq59JwAjaySW8mID8G4LN0WSelA7DnAHI0P3NNwT5PiQ4ZodMe6b5LugIGgXGyFYAJPn25MWWT79pw30cwlwYsoq3Qr1XpCy13kD8Bp+rkVhRyfEIo1OOj0PwOedvNPkhbXwhlm1+Pb7/9C/NFF2U="
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/Courier.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Courier.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugA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XPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"
|
||||
24
node_modules/@pdf-lib/standard-fonts/es/Encoding.d.ts
generated
vendored
Normal file
24
node_modules/@pdf-lib/standard-fonts/es/Encoding.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
declare type EncodingCharCode = number;
|
||||
declare type EncodingCharName = string;
|
||||
interface UnicodeMappings {
|
||||
[unicodeCodePoint: number]: [EncodingCharCode, EncodingCharName];
|
||||
}
|
||||
declare type EncodingNames = 'Symbol' | 'ZapfDingbats' | 'WinAnsi';
|
||||
declare class Encoding {
|
||||
name: EncodingNames;
|
||||
supportedCodePoints: number[];
|
||||
private unicodeMappings;
|
||||
constructor(name: EncodingNames, unicodeMappings: UnicodeMappings);
|
||||
canEncodeUnicodeCodePoint: (codePoint: number) => boolean;
|
||||
encodeUnicodeCodePoint: (codePoint: number) => {
|
||||
code: number;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
export declare type EncodingType = Encoding;
|
||||
export declare const Encodings: {
|
||||
Symbol: Encoding;
|
||||
ZapfDingbats: Encoding;
|
||||
WinAnsi: Encoding;
|
||||
};
|
||||
export {};
|
||||
34
node_modules/@pdf-lib/standard-fonts/es/Encoding.js
generated
vendored
Normal file
34
node_modules/@pdf-lib/standard-fonts/es/Encoding.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/* tslint:disable max-classes-per-file */
|
||||
import { decompressJson, padStart } from './utils';
|
||||
import AllEncodingsCompressed from './all-encodings.compressed.json';
|
||||
var decompressedEncodings = decompressJson(AllEncodingsCompressed);
|
||||
var allUnicodeMappings = JSON.parse(decompressedEncodings);
|
||||
var Encoding = /** @class */ (function () {
|
||||
function Encoding(name, unicodeMappings) {
|
||||
var _this = this;
|
||||
this.canEncodeUnicodeCodePoint = function (codePoint) {
|
||||
return codePoint in _this.unicodeMappings;
|
||||
};
|
||||
this.encodeUnicodeCodePoint = function (codePoint) {
|
||||
var mapped = _this.unicodeMappings[codePoint];
|
||||
if (!mapped) {
|
||||
var str = String.fromCharCode(codePoint);
|
||||
var hexCode = "0x" + padStart(codePoint.toString(16), 4, '0');
|
||||
var msg = _this.name + " cannot encode \"" + str + "\" (" + hexCode + ")";
|
||||
throw new Error(msg);
|
||||
}
|
||||
return { code: mapped[0], name: mapped[1] };
|
||||
};
|
||||
this.name = name;
|
||||
this.supportedCodePoints = Object.keys(unicodeMappings)
|
||||
.map(Number)
|
||||
.sort(function (a, b) { return a - b; });
|
||||
this.unicodeMappings = unicodeMappings;
|
||||
}
|
||||
return Encoding;
|
||||
}());
|
||||
export var Encodings = {
|
||||
Symbol: new Encoding('Symbol', allUnicodeMappings.symbol),
|
||||
ZapfDingbats: new Encoding('ZapfDingbats', allUnicodeMappings.zapfdingbats),
|
||||
WinAnsi: new Encoding('WinAnsi', allUnicodeMappings.win1252),
|
||||
};
|
||||
83
node_modules/@pdf-lib/standard-fonts/es/Font.d.ts
generated
vendored
Normal file
83
node_modules/@pdf-lib/standard-fonts/es/Font.d.ts
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
declare const compressedJsonForFontName: {
|
||||
'Courier': string;
|
||||
'Courier-Bold': string;
|
||||
'Courier-Oblique': string;
|
||||
'Courier-BoldOblique': string;
|
||||
'Helvetica': string;
|
||||
'Helvetica-Bold': string;
|
||||
'Helvetica-Oblique': string;
|
||||
'Helvetica-BoldOblique': string;
|
||||
'Times-Roman': string;
|
||||
'Times-Bold': string;
|
||||
'Times-Italic': string;
|
||||
'Times-BoldItalic': string;
|
||||
'Symbol': string;
|
||||
'ZapfDingbats': string;
|
||||
};
|
||||
export declare enum FontNames {
|
||||
Courier = "Courier",
|
||||
CourierBold = "Courier-Bold",
|
||||
CourierOblique = "Courier-Oblique",
|
||||
CourierBoldOblique = "Courier-BoldOblique",
|
||||
Helvetica = "Helvetica",
|
||||
HelveticaBold = "Helvetica-Bold",
|
||||
HelveticaOblique = "Helvetica-Oblique",
|
||||
HelveticaBoldOblique = "Helvetica-BoldOblique",
|
||||
TimesRoman = "Times-Roman",
|
||||
TimesRomanBold = "Times-Bold",
|
||||
TimesRomanItalic = "Times-Italic",
|
||||
TimesRomanBoldItalic = "Times-BoldItalic",
|
||||
Symbol = "Symbol",
|
||||
ZapfDingbats = "ZapfDingbats"
|
||||
}
|
||||
export declare type IFontNames = FontNames | keyof typeof compressedJsonForFontName;
|
||||
export interface ICharMetrics {
|
||||
/** Decimal value of default character code (-1 if not encoded) */
|
||||
/** Width of character */
|
||||
WX: number;
|
||||
/** Character name (aka Glyph name) */
|
||||
N: string;
|
||||
}
|
||||
/**
|
||||
* [name_1 name_2 number_x]:
|
||||
* Name of the first character in the kerning pair followed by the name of the
|
||||
* second character followed by the kerning amount in the x direction
|
||||
* (y is zero). The kerning amount is specified in the units of the character
|
||||
* coordinate system.
|
||||
*/
|
||||
export declare type IKernPair = [string, string, number];
|
||||
export declare class Font {
|
||||
static load: (fontName: IFontNames) => Font;
|
||||
Comment: string;
|
||||
FontName: string;
|
||||
FullName: string;
|
||||
FamilyName: string;
|
||||
Weight: string;
|
||||
CharacterSet: string;
|
||||
Version: string;
|
||||
Notice: string;
|
||||
EncodingScheme: string;
|
||||
ItalicAngle: number;
|
||||
UnderlinePosition: number;
|
||||
UnderlineThickness: number;
|
||||
CapHeight: number | void;
|
||||
XHeight: number | void;
|
||||
Ascender: number | void;
|
||||
Descender: number | void;
|
||||
StdHW: number;
|
||||
StdVW: number;
|
||||
IsFixedPitch: boolean;
|
||||
/**
|
||||
* [llx lly urx ury]:
|
||||
* Font bounding box where llx, lly, urx, and ury are all numbers.
|
||||
*/
|
||||
FontBBox: [number, number, number, number];
|
||||
CharMetrics: ICharMetrics[];
|
||||
KernPairs: IKernPair[];
|
||||
private CharWidths;
|
||||
private KernPairXAmounts;
|
||||
private constructor();
|
||||
getWidthOfGlyph: (glyphName: string) => number | void;
|
||||
getXAxisKerningForPair: (leftGlyphName: string, rightGlyphName: string) => number | void;
|
||||
}
|
||||
export {};
|
||||
83
node_modules/@pdf-lib/standard-fonts/es/Font.js
generated
vendored
Normal file
83
node_modules/@pdf-lib/standard-fonts/es/Font.js
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
import { decompressJson } from './utils';
|
||||
import CourierBoldCompressed from './Courier-Bold.compressed.json';
|
||||
import CourierBoldObliqueCompressed from './Courier-BoldOblique.compressed.json';
|
||||
import CourierObliqueCompressed from './Courier-Oblique.compressed.json';
|
||||
import CourierCompressed from './Courier.compressed.json';
|
||||
import HelveticaBoldCompressed from './Helvetica-Bold.compressed.json';
|
||||
import HelveticaBoldObliqueCompressed from './Helvetica-BoldOblique.compressed.json';
|
||||
import HelveticaObliqueCompressed from './Helvetica-Oblique.compressed.json';
|
||||
import HelveticaCompressed from './Helvetica.compressed.json';
|
||||
import TimesBoldCompressed from './Times-Bold.compressed.json';
|
||||
import TimesBoldItalicCompressed from './Times-BoldItalic.compressed.json';
|
||||
import TimesItalicCompressed from './Times-Italic.compressed.json';
|
||||
import TimesRomanCompressed from './Times-Roman.compressed.json';
|
||||
import SymbolCompressed from './Symbol.compressed.json';
|
||||
import ZapfDingbatsCompressed from './ZapfDingbats.compressed.json';
|
||||
// prettier-ignore
|
||||
var compressedJsonForFontName = {
|
||||
'Courier': CourierCompressed,
|
||||
'Courier-Bold': CourierBoldCompressed,
|
||||
'Courier-Oblique': CourierObliqueCompressed,
|
||||
'Courier-BoldOblique': CourierBoldObliqueCompressed,
|
||||
'Helvetica': HelveticaCompressed,
|
||||
'Helvetica-Bold': HelveticaBoldCompressed,
|
||||
'Helvetica-Oblique': HelveticaObliqueCompressed,
|
||||
'Helvetica-BoldOblique': HelveticaBoldObliqueCompressed,
|
||||
'Times-Roman': TimesRomanCompressed,
|
||||
'Times-Bold': TimesBoldCompressed,
|
||||
'Times-Italic': TimesItalicCompressed,
|
||||
'Times-BoldItalic': TimesBoldItalicCompressed,
|
||||
'Symbol': SymbolCompressed,
|
||||
'ZapfDingbats': ZapfDingbatsCompressed,
|
||||
};
|
||||
export var FontNames;
|
||||
(function (FontNames) {
|
||||
FontNames["Courier"] = "Courier";
|
||||
FontNames["CourierBold"] = "Courier-Bold";
|
||||
FontNames["CourierOblique"] = "Courier-Oblique";
|
||||
FontNames["CourierBoldOblique"] = "Courier-BoldOblique";
|
||||
FontNames["Helvetica"] = "Helvetica";
|
||||
FontNames["HelveticaBold"] = "Helvetica-Bold";
|
||||
FontNames["HelveticaOblique"] = "Helvetica-Oblique";
|
||||
FontNames["HelveticaBoldOblique"] = "Helvetica-BoldOblique";
|
||||
FontNames["TimesRoman"] = "Times-Roman";
|
||||
FontNames["TimesRomanBold"] = "Times-Bold";
|
||||
FontNames["TimesRomanItalic"] = "Times-Italic";
|
||||
FontNames["TimesRomanBoldItalic"] = "Times-BoldItalic";
|
||||
FontNames["Symbol"] = "Symbol";
|
||||
FontNames["ZapfDingbats"] = "ZapfDingbats";
|
||||
})(FontNames || (FontNames = {}));
|
||||
var fontCache = {};
|
||||
var Font = /** @class */ (function () {
|
||||
function Font() {
|
||||
var _this = this;
|
||||
this.getWidthOfGlyph = function (glyphName) {
|
||||
return _this.CharWidths[glyphName];
|
||||
};
|
||||
this.getXAxisKerningForPair = function (leftGlyphName, rightGlyphName) {
|
||||
return (_this.KernPairXAmounts[leftGlyphName] || {})[rightGlyphName];
|
||||
};
|
||||
}
|
||||
Font.load = function (fontName) {
|
||||
var cachedFont = fontCache[fontName];
|
||||
if (cachedFont)
|
||||
return cachedFont;
|
||||
var json = decompressJson(compressedJsonForFontName[fontName]);
|
||||
var font = Object.assign(new Font(), JSON.parse(json));
|
||||
font.CharWidths = font.CharMetrics.reduce(function (acc, metric) {
|
||||
acc[metric.N] = metric.WX;
|
||||
return acc;
|
||||
}, {});
|
||||
font.KernPairXAmounts = font.KernPairs.reduce(function (acc, _a) {
|
||||
var name1 = _a[0], name2 = _a[1], width = _a[2];
|
||||
if (!acc[name1])
|
||||
acc[name1] = {};
|
||||
acc[name1][name2] = width;
|
||||
return acc;
|
||||
}, {});
|
||||
fontCache[fontName] = font;
|
||||
return font;
|
||||
};
|
||||
return Font;
|
||||
}());
|
||||
export { Font };
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-Bold.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-BoldOblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-BoldOblique.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-Oblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica-Oblique.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Helvetica.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Symbol.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Symbol.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZv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1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb"
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/Times-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Times-Bold.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Times-BoldItalic.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Times-BoldItalic.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Times-Italic.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Times-Italic.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/Times-Roman.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/Times-Roman.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/es/ZapfDingbats.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/ZapfDingbats.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJxtmNtu20YQhl+F4F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+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="
|
||||
1
node_modules/@pdf-lib/standard-fonts/es/all-encodings.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/es/all-encodings.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/@pdf-lib/standard-fonts/es/index.d.ts
generated
vendored
Normal file
2
node_modules/@pdf-lib/standard-fonts/es/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Font';
|
||||
export * from './Encoding';
|
||||
2
node_modules/@pdf-lib/standard-fonts/es/index.js
generated
vendored
Normal file
2
node_modules/@pdf-lib/standard-fonts/es/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Font';
|
||||
export * from './Encoding';
|
||||
3
node_modules/@pdf-lib/standard-fonts/es/utils.d.ts
generated
vendored
Normal file
3
node_modules/@pdf-lib/standard-fonts/es/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export declare const decodeFromBase64: (base64: string) => Uint8Array;
|
||||
export declare const decompressJson: (compressedJson: string) => string;
|
||||
export declare const padStart: (value: string, length: number, padChar: string) => string;
|
||||
62
node_modules/@pdf-lib/standard-fonts/es/utils.js
generated
vendored
Normal file
62
node_modules/@pdf-lib/standard-fonts/es/utils.js
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* The `chars`, `lookup`, and `decodeFromBase64` members of this file are
|
||||
* licensed under the following:
|
||||
*
|
||||
* base64-arraybuffer
|
||||
* https://github.com/niklasvh/base64-arraybuffer
|
||||
*
|
||||
* Copyright (c) 2012 Niklas von Hertzen
|
||||
* Licensed under the MIT license.
|
||||
*
|
||||
*/
|
||||
import pako from 'pako';
|
||||
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
// Use a lookup table to find the index.
|
||||
var lookup = new Uint8Array(256);
|
||||
for (var i = 0; i < chars.length; i++) {
|
||||
lookup[chars.charCodeAt(i)] = i;
|
||||
}
|
||||
export var decodeFromBase64 = function (base64) {
|
||||
var bufferLength = base64.length * 0.75;
|
||||
var len = base64.length;
|
||||
var i;
|
||||
var p = 0;
|
||||
var encoded1;
|
||||
var encoded2;
|
||||
var encoded3;
|
||||
var encoded4;
|
||||
if (base64[base64.length - 1] === '=') {
|
||||
bufferLength--;
|
||||
if (base64[base64.length - 2] === '=') {
|
||||
bufferLength--;
|
||||
}
|
||||
}
|
||||
var bytes = new Uint8Array(bufferLength);
|
||||
for (i = 0; i < len; i += 4) {
|
||||
encoded1 = lookup[base64.charCodeAt(i)];
|
||||
encoded2 = lookup[base64.charCodeAt(i + 1)];
|
||||
encoded3 = lookup[base64.charCodeAt(i + 2)];
|
||||
encoded4 = lookup[base64.charCodeAt(i + 3)];
|
||||
bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
|
||||
bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
|
||||
bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
|
||||
}
|
||||
return bytes;
|
||||
};
|
||||
var arrayToString = function (array) {
|
||||
var str = '';
|
||||
for (var i = 0; i < array.length; i++) {
|
||||
str += String.fromCharCode(array[i]);
|
||||
}
|
||||
return str;
|
||||
};
|
||||
export var decompressJson = function (compressedJson) {
|
||||
return arrayToString(pako.inflate(decodeFromBase64(compressedJson)));
|
||||
};
|
||||
export var padStart = function (value, length, padChar) {
|
||||
var padding = '';
|
||||
for (var idx = 0, len = length - value.length; idx < len; idx++) {
|
||||
padding += padChar;
|
||||
}
|
||||
return padding + value;
|
||||
};
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-Bold.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlCW+mkrrPBXr/X+4/gciPz25qszQbhyeyKjG2XZb3ewR+9Xi/sMdVO5k+ebHemcaHzW/57p3/y+qQbPk967We//TxoP191hoVeUWexs44q25nUuTZbbYSj4o9OZ6hUZ97osZ05WTJ3AQ37jMOqQtblIt9QG7lWycKJuhCmeJGGhSOxffccyqPj/W728eXX4cFJNxvavAmRyQbH++HnGf34vdc/etXNFq54d50NXh+2X6/C137v+CnQH8gZmYdQfP6WXX8MCppQTYMlditCBL53/wfTQ65EFeNfvQ6erlQsqX21akJc1rGs0EoJE+NbMnlToZFAVEFkQ3iABW2uGH3CUK1ojUTgMWEbjfaWeUp5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Pb/kAq/Axo6ZUEaQFFSStxwa/eDpiARDND4kqhIE+BG1Btp7hjKCjh6UKYt2xk7MkmMJ8PCMlGNy5XiSdvc6wYjYtIp5pSGBRTo9Z45R6Asw4bQ8HgrYhEJmTFsk6pWvyPfJOj4HiXNGFFQJw1hOCVaYgChNUOGcA6tD0DZCMSdDczMBDa5TFVWDqWn5i/yB+BByqARcGhx6ziqXVD4Ii2TqZmnLi8AS3L8dGqRoBIzwkM0LmXNpOAOKTNKbKciPBvg8XdZJ6RDoHEKO5meuGdDzmOiQMTrt0d63SVfAIDBJtgIwwaUvN7ps8l1r7v0I5lKPRUEV+rcqfaHlDvJH4FSdVBVCjk8IiXp87Jv/Ib90s/dk6gshTfPv8Zfv/wDUfBK2"
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-BoldOblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-BoldOblique.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90Cof1KWmdTu7e4S4N+pBFhfK5+vsxNsgu9lwLazIvbRz2Tw7evCyLmQxM5Won809PTUP2cnnnYOj7s7eQa97fNjvHvd2v3SzBS21WtXywjjllakbRb3eT4LLtcpva+lcdkJPZlfSunZZ1uu9ftXr9UjFxHiVP7my2drGh84f+Z+d3f5xv0uf/V77udt+vm4/jzqDwixlZ751XlauM65zYzfGCi+LV53OQOvOrNnHdWbSSXtHKOkZ0apC1eU8X8s2dO0mcy/qQtjiRUoLh2Lz7jmWB4cUto8vv/Zf97vZwOVNhGx2crhHP8/kj987uxShbO6Ld9fZyfF++/WKvu72Dp/i/EF6q3I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0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA="
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-Oblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Courier-Oblique.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWVtT2zgU/isZP+3OhE5Iy/UtDaHNFhI2IdDS4UGxFUeLbKW6AKHT/77Hhnbb1fnUFw98x9K5fzpyvmZDU1Wy9tlxdnUenChlZ3e//+awc7B32D/Kutmpqf1EVJJeGJpglbQ706VWX4JshEHrX4Wdn4SiUnr7q5jga6nKdaPvXBYqVISMvdAqH9Slpjd3dvuEuFP1KIsL5fN1duxtkN1suBZW5F7auWxWjx69rAtZzEwl6hc73741j9nx553+QXenv9frHr456h729m672YJetVrV8sI45ZWpG0W93k+Cy7XK72rpXHZMK7MraV37WtbrvX7V6/VIxcR4lT87s9naxovOH/mfnd2jw6MuPY967XO3ffbb5+v2edAZFGYpO/Ot87JynXGdG7sxVnhZvOp0Blp3Zs1urjOTTtp7QknbiN4qVF3O87VsQ9huMveiLoQtvkvpxaHYvH+J6d4+Be/j9//e9Pe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XgBrF0hB4Cuz/bbhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNR8eaOBgfv8trTmTtbsHcjKUjkw9b4DyR6nGCVQV/NXkRGoKQscMigyN2DBDYjYy0cu8Als5JkJZQhJQSd5y6PRD56OSDBA40OiKkGAn1BrIN1TlBF09KBMOaQZOzFNjiXAwxOpPZMrz5O0fzAJRsSmVcwnDQUsMuk5c4RCX4AJp+VxKmBLhcyYNk/UK1+RH5J1fAYS560oZCUsY7lMsMIYRGmMCucMWE1BWwvNnAzNzQQ0uElVVA2mpsVv8gfiI5FDJeBScuglq1xS+SDMk6mbpi0viCW4XzsMSNEQGBEgmxcq59JwAjaySW8mID8G4LN0WSelA7DnAHI0P3NNwT5PiQ4ZodMe6b5LugIGgXGyFYAJPn25MWWT79pw30cwlwYsoq3Qr1XpCy13kD8Bp+rkVhRyfEIo1OOj0PwOedvNPkhbXwhlm1+Pb7/9C/NFF2U="
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Courier.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Courier.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndB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QXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"
|
||||
24
node_modules/@pdf-lib/standard-fonts/lib/Encoding.d.ts
generated
vendored
Normal file
24
node_modules/@pdf-lib/standard-fonts/lib/Encoding.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
declare type EncodingCharCode = number;
|
||||
declare type EncodingCharName = string;
|
||||
interface UnicodeMappings {
|
||||
[unicodeCodePoint: number]: [EncodingCharCode, EncodingCharName];
|
||||
}
|
||||
declare type EncodingNames = 'Symbol' | 'ZapfDingbats' | 'WinAnsi';
|
||||
declare class Encoding {
|
||||
name: EncodingNames;
|
||||
supportedCodePoints: number[];
|
||||
private unicodeMappings;
|
||||
constructor(name: EncodingNames, unicodeMappings: UnicodeMappings);
|
||||
canEncodeUnicodeCodePoint: (codePoint: number) => boolean;
|
||||
encodeUnicodeCodePoint: (codePoint: number) => {
|
||||
code: number;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
export declare type EncodingType = Encoding;
|
||||
export declare const Encodings: {
|
||||
Symbol: Encoding;
|
||||
ZapfDingbats: Encoding;
|
||||
WinAnsi: Encoding;
|
||||
};
|
||||
export {};
|
||||
39
node_modules/@pdf-lib/standard-fonts/lib/Encoding.js
generated
vendored
Normal file
39
node_modules/@pdf-lib/standard-fonts/lib/Encoding.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/* tslint:disable max-classes-per-file */
|
||||
var utils_1 = require("./utils");
|
||||
var all_encodings_compressed_json_1 = __importDefault(require("./all-encodings.compressed.json"));
|
||||
var decompressedEncodings = utils_1.decompressJson(all_encodings_compressed_json_1.default);
|
||||
var allUnicodeMappings = JSON.parse(decompressedEncodings);
|
||||
var Encoding = /** @class */ (function () {
|
||||
function Encoding(name, unicodeMappings) {
|
||||
var _this = this;
|
||||
this.canEncodeUnicodeCodePoint = function (codePoint) {
|
||||
return codePoint in _this.unicodeMappings;
|
||||
};
|
||||
this.encodeUnicodeCodePoint = function (codePoint) {
|
||||
var mapped = _this.unicodeMappings[codePoint];
|
||||
if (!mapped) {
|
||||
var str = String.fromCharCode(codePoint);
|
||||
var hexCode = "0x" + utils_1.padStart(codePoint.toString(16), 4, '0');
|
||||
var msg = _this.name + " cannot encode \"" + str + "\" (" + hexCode + ")";
|
||||
throw new Error(msg);
|
||||
}
|
||||
return { code: mapped[0], name: mapped[1] };
|
||||
};
|
||||
this.name = name;
|
||||
this.supportedCodePoints = Object.keys(unicodeMappings)
|
||||
.map(Number)
|
||||
.sort(function (a, b) { return a - b; });
|
||||
this.unicodeMappings = unicodeMappings;
|
||||
}
|
||||
return Encoding;
|
||||
}());
|
||||
exports.Encodings = {
|
||||
Symbol: new Encoding('Symbol', allUnicodeMappings.symbol),
|
||||
ZapfDingbats: new Encoding('ZapfDingbats', allUnicodeMappings.zapfdingbats),
|
||||
WinAnsi: new Encoding('WinAnsi', allUnicodeMappings.win1252),
|
||||
};
|
||||
83
node_modules/@pdf-lib/standard-fonts/lib/Font.d.ts
generated
vendored
Normal file
83
node_modules/@pdf-lib/standard-fonts/lib/Font.d.ts
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
declare const compressedJsonForFontName: {
|
||||
'Courier': string;
|
||||
'Courier-Bold': string;
|
||||
'Courier-Oblique': string;
|
||||
'Courier-BoldOblique': string;
|
||||
'Helvetica': string;
|
||||
'Helvetica-Bold': string;
|
||||
'Helvetica-Oblique': string;
|
||||
'Helvetica-BoldOblique': string;
|
||||
'Times-Roman': string;
|
||||
'Times-Bold': string;
|
||||
'Times-Italic': string;
|
||||
'Times-BoldItalic': string;
|
||||
'Symbol': string;
|
||||
'ZapfDingbats': string;
|
||||
};
|
||||
export declare enum FontNames {
|
||||
Courier = "Courier",
|
||||
CourierBold = "Courier-Bold",
|
||||
CourierOblique = "Courier-Oblique",
|
||||
CourierBoldOblique = "Courier-BoldOblique",
|
||||
Helvetica = "Helvetica",
|
||||
HelveticaBold = "Helvetica-Bold",
|
||||
HelveticaOblique = "Helvetica-Oblique",
|
||||
HelveticaBoldOblique = "Helvetica-BoldOblique",
|
||||
TimesRoman = "Times-Roman",
|
||||
TimesRomanBold = "Times-Bold",
|
||||
TimesRomanItalic = "Times-Italic",
|
||||
TimesRomanBoldItalic = "Times-BoldItalic",
|
||||
Symbol = "Symbol",
|
||||
ZapfDingbats = "ZapfDingbats"
|
||||
}
|
||||
export declare type IFontNames = FontNames | keyof typeof compressedJsonForFontName;
|
||||
export interface ICharMetrics {
|
||||
/** Decimal value of default character code (-1 if not encoded) */
|
||||
/** Width of character */
|
||||
WX: number;
|
||||
/** Character name (aka Glyph name) */
|
||||
N: string;
|
||||
}
|
||||
/**
|
||||
* [name_1 name_2 number_x]:
|
||||
* Name of the first character in the kerning pair followed by the name of the
|
||||
* second character followed by the kerning amount in the x direction
|
||||
* (y is zero). The kerning amount is specified in the units of the character
|
||||
* coordinate system.
|
||||
*/
|
||||
export declare type IKernPair = [string, string, number];
|
||||
export declare class Font {
|
||||
static load: (fontName: IFontNames) => Font;
|
||||
Comment: string;
|
||||
FontName: string;
|
||||
FullName: string;
|
||||
FamilyName: string;
|
||||
Weight: string;
|
||||
CharacterSet: string;
|
||||
Version: string;
|
||||
Notice: string;
|
||||
EncodingScheme: string;
|
||||
ItalicAngle: number;
|
||||
UnderlinePosition: number;
|
||||
UnderlineThickness: number;
|
||||
CapHeight: number | void;
|
||||
XHeight: number | void;
|
||||
Ascender: number | void;
|
||||
Descender: number | void;
|
||||
StdHW: number;
|
||||
StdVW: number;
|
||||
IsFixedPitch: boolean;
|
||||
/**
|
||||
* [llx lly urx ury]:
|
||||
* Font bounding box where llx, lly, urx, and ury are all numbers.
|
||||
*/
|
||||
FontBBox: [number, number, number, number];
|
||||
CharMetrics: ICharMetrics[];
|
||||
KernPairs: IKernPair[];
|
||||
private CharWidths;
|
||||
private KernPairXAmounts;
|
||||
private constructor();
|
||||
getWidthOfGlyph: (glyphName: string) => number | void;
|
||||
getXAxisKerningForPair: (leftGlyphName: string, rightGlyphName: string) => number | void;
|
||||
}
|
||||
export {};
|
||||
88
node_modules/@pdf-lib/standard-fonts/lib/Font.js
generated
vendored
Normal file
88
node_modules/@pdf-lib/standard-fonts/lib/Font.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var utils_1 = require("./utils");
|
||||
var Courier_Bold_compressed_json_1 = __importDefault(require("./Courier-Bold.compressed.json"));
|
||||
var Courier_BoldOblique_compressed_json_1 = __importDefault(require("./Courier-BoldOblique.compressed.json"));
|
||||
var Courier_Oblique_compressed_json_1 = __importDefault(require("./Courier-Oblique.compressed.json"));
|
||||
var Courier_compressed_json_1 = __importDefault(require("./Courier.compressed.json"));
|
||||
var Helvetica_Bold_compressed_json_1 = __importDefault(require("./Helvetica-Bold.compressed.json"));
|
||||
var Helvetica_BoldOblique_compressed_json_1 = __importDefault(require("./Helvetica-BoldOblique.compressed.json"));
|
||||
var Helvetica_Oblique_compressed_json_1 = __importDefault(require("./Helvetica-Oblique.compressed.json"));
|
||||
var Helvetica_compressed_json_1 = __importDefault(require("./Helvetica.compressed.json"));
|
||||
var Times_Bold_compressed_json_1 = __importDefault(require("./Times-Bold.compressed.json"));
|
||||
var Times_BoldItalic_compressed_json_1 = __importDefault(require("./Times-BoldItalic.compressed.json"));
|
||||
var Times_Italic_compressed_json_1 = __importDefault(require("./Times-Italic.compressed.json"));
|
||||
var Times_Roman_compressed_json_1 = __importDefault(require("./Times-Roman.compressed.json"));
|
||||
var Symbol_compressed_json_1 = __importDefault(require("./Symbol.compressed.json"));
|
||||
var ZapfDingbats_compressed_json_1 = __importDefault(require("./ZapfDingbats.compressed.json"));
|
||||
// prettier-ignore
|
||||
var compressedJsonForFontName = {
|
||||
'Courier': Courier_compressed_json_1.default,
|
||||
'Courier-Bold': Courier_Bold_compressed_json_1.default,
|
||||
'Courier-Oblique': Courier_Oblique_compressed_json_1.default,
|
||||
'Courier-BoldOblique': Courier_BoldOblique_compressed_json_1.default,
|
||||
'Helvetica': Helvetica_compressed_json_1.default,
|
||||
'Helvetica-Bold': Helvetica_Bold_compressed_json_1.default,
|
||||
'Helvetica-Oblique': Helvetica_Oblique_compressed_json_1.default,
|
||||
'Helvetica-BoldOblique': Helvetica_BoldOblique_compressed_json_1.default,
|
||||
'Times-Roman': Times_Roman_compressed_json_1.default,
|
||||
'Times-Bold': Times_Bold_compressed_json_1.default,
|
||||
'Times-Italic': Times_Italic_compressed_json_1.default,
|
||||
'Times-BoldItalic': Times_BoldItalic_compressed_json_1.default,
|
||||
'Symbol': Symbol_compressed_json_1.default,
|
||||
'ZapfDingbats': ZapfDingbats_compressed_json_1.default,
|
||||
};
|
||||
var FontNames;
|
||||
(function (FontNames) {
|
||||
FontNames["Courier"] = "Courier";
|
||||
FontNames["CourierBold"] = "Courier-Bold";
|
||||
FontNames["CourierOblique"] = "Courier-Oblique";
|
||||
FontNames["CourierBoldOblique"] = "Courier-BoldOblique";
|
||||
FontNames["Helvetica"] = "Helvetica";
|
||||
FontNames["HelveticaBold"] = "Helvetica-Bold";
|
||||
FontNames["HelveticaOblique"] = "Helvetica-Oblique";
|
||||
FontNames["HelveticaBoldOblique"] = "Helvetica-BoldOblique";
|
||||
FontNames["TimesRoman"] = "Times-Roman";
|
||||
FontNames["TimesRomanBold"] = "Times-Bold";
|
||||
FontNames["TimesRomanItalic"] = "Times-Italic";
|
||||
FontNames["TimesRomanBoldItalic"] = "Times-BoldItalic";
|
||||
FontNames["Symbol"] = "Symbol";
|
||||
FontNames["ZapfDingbats"] = "ZapfDingbats";
|
||||
})(FontNames = exports.FontNames || (exports.FontNames = {}));
|
||||
var fontCache = {};
|
||||
var Font = /** @class */ (function () {
|
||||
function Font() {
|
||||
var _this = this;
|
||||
this.getWidthOfGlyph = function (glyphName) {
|
||||
return _this.CharWidths[glyphName];
|
||||
};
|
||||
this.getXAxisKerningForPair = function (leftGlyphName, rightGlyphName) {
|
||||
return (_this.KernPairXAmounts[leftGlyphName] || {})[rightGlyphName];
|
||||
};
|
||||
}
|
||||
Font.load = function (fontName) {
|
||||
var cachedFont = fontCache[fontName];
|
||||
if (cachedFont)
|
||||
return cachedFont;
|
||||
var json = utils_1.decompressJson(compressedJsonForFontName[fontName]);
|
||||
var font = Object.assign(new Font(), JSON.parse(json));
|
||||
font.CharWidths = font.CharMetrics.reduce(function (acc, metric) {
|
||||
acc[metric.N] = metric.WX;
|
||||
return acc;
|
||||
}, {});
|
||||
font.KernPairXAmounts = font.KernPairs.reduce(function (acc, _a) {
|
||||
var name1 = _a[0], name2 = _a[1], width = _a[2];
|
||||
if (!acc[name1])
|
||||
acc[name1] = {};
|
||||
acc[name1][name2] = width;
|
||||
return acc;
|
||||
}, {});
|
||||
fontCache[fontName] = font;
|
||||
return font;
|
||||
};
|
||||
return Font;
|
||||
}());
|
||||
exports.Font = Font;
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-Bold.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-BoldOblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-BoldOblique.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-Oblique.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica-Oblique.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Helvetica.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Symbol.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Symbol.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRf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3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb"
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Bold.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Bold.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Times-BoldItalic.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Times-BoldItalic.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Italic.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Italic.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Roman.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/Times-Roman.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/@pdf-lib/standard-fonts/lib/ZapfDingbats.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/ZapfDingbats.compressed.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"eJxtmNtu20YQhl+F4FULyMGeD7pz3AY1ChtG7NpFA18w1NomIlECSRcxgrx7SVk7+wOdG8H5OJydf2Z2d5gf9cV+t0v9VK/r+6vXsXlOlbHe28paq229qj/t++m62aXZ4J/m8PRb1z9/baZxefK63Z6eXN5dVMvTCh83u277xr/6kLrnl2XNq7TpXnczuZyabdee98/b2VzM/x4/dd/T5qab2pd6PQ2vaVVfvDRD005puE3Lu7eH1HbN9hTjx4/77/X6y5lcnUmjVzHIVVDicVX/1W/SsO36dLMfu6nb9/X6TAoBD+5euvZbn8axXtuZ36dhPJrVQqgPQoh5hev91LWLkIv94W1Ygq9+aX+tZAx2tfz64284/sblN/rqfLP/mqrbt3FKu7G67Nv9cNgPzZQ2H6rz7bb6vLgZq89pTMO/M/xfEqturJpqSM/d7GJIm2oamk3aNcO3av80O5xh3yyKmm1193ZIT02bqovTKjP+MAf++7zsZvZ3276kYyWWXB0z99S18/PbafPHQ71W4fjn/fxnFO+ZvkrT0LVzTr78qB/+nk38bHM9exgP8zr1z9U7jt6840YW5uSJKcZOCaBBnKgm5mU8MVNYyMwWFvO7Ukagkmgg6sDWQ5yFFqjzUrLEaQ3BEmiwNsMSaZS0vgWfOkPHWQowNeTUc0kumnxZvsgPxlGai6VTGUqAVCTQ6QkWnc77DKEiLktSUBJKqHIQZ86d8gCpHYoiEzMsb1ubYy8vW50DChB5ZhGqrijD0EqUIeiaEHIfCg5Kpuu0ApiToaGPSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w=="
|
||||
1
node_modules/@pdf-lib/standard-fonts/lib/all-encodings.compressed.json
generated
vendored
Normal file
1
node_modules/@pdf-lib/standard-fonts/lib/all-encodings.compressed.json
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/@pdf-lib/standard-fonts/lib/index.d.ts
generated
vendored
Normal file
2
node_modules/@pdf-lib/standard-fonts/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './Font';
|
||||
export * from './Encoding';
|
||||
7
node_modules/@pdf-lib/standard-fonts/lib/index.js
generated
vendored
Normal file
7
node_modules/@pdf-lib/standard-fonts/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("./Font"));
|
||||
__export(require("./Encoding"));
|
||||
3
node_modules/@pdf-lib/standard-fonts/lib/utils.d.ts
generated
vendored
Normal file
3
node_modules/@pdf-lib/standard-fonts/lib/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export declare const decodeFromBase64: (base64: string) => Uint8Array;
|
||||
export declare const decompressJson: (compressedJson: string) => string;
|
||||
export declare const padStart: (value: string, length: number, padChar: string) => string;
|
||||
67
node_modules/@pdf-lib/standard-fonts/lib/utils.js
generated
vendored
Normal file
67
node_modules/@pdf-lib/standard-fonts/lib/utils.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/*
|
||||
* The `chars`, `lookup`, and `decodeFromBase64` members of this file are
|
||||
* licensed under the following:
|
||||
*
|
||||
* base64-arraybuffer
|
||||
* https://github.com/niklasvh/base64-arraybuffer
|
||||
*
|
||||
* Copyright (c) 2012 Niklas von Hertzen
|
||||
* Licensed under the MIT license.
|
||||
*
|
||||
*/
|
||||
var pako_1 = __importDefault(require("pako"));
|
||||
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
// Use a lookup table to find the index.
|
||||
var lookup = new Uint8Array(256);
|
||||
for (var i = 0; i < chars.length; i++) {
|
||||
lookup[chars.charCodeAt(i)] = i;
|
||||
}
|
||||
exports.decodeFromBase64 = function (base64) {
|
||||
var bufferLength = base64.length * 0.75;
|
||||
var len = base64.length;
|
||||
var i;
|
||||
var p = 0;
|
||||
var encoded1;
|
||||
var encoded2;
|
||||
var encoded3;
|
||||
var encoded4;
|
||||
if (base64[base64.length - 1] === '=') {
|
||||
bufferLength--;
|
||||
if (base64[base64.length - 2] === '=') {
|
||||
bufferLength--;
|
||||
}
|
||||
}
|
||||
var bytes = new Uint8Array(bufferLength);
|
||||
for (i = 0; i < len; i += 4) {
|
||||
encoded1 = lookup[base64.charCodeAt(i)];
|
||||
encoded2 = lookup[base64.charCodeAt(i + 1)];
|
||||
encoded3 = lookup[base64.charCodeAt(i + 2)];
|
||||
encoded4 = lookup[base64.charCodeAt(i + 3)];
|
||||
bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
|
||||
bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
|
||||
bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
|
||||
}
|
||||
return bytes;
|
||||
};
|
||||
var arrayToString = function (array) {
|
||||
var str = '';
|
||||
for (var i = 0; i < array.length; i++) {
|
||||
str += String.fromCharCode(array[i]);
|
||||
}
|
||||
return str;
|
||||
};
|
||||
exports.decompressJson = function (compressedJson) {
|
||||
return arrayToString(pako_1.default.inflate(exports.decodeFromBase64(compressedJson)));
|
||||
};
|
||||
exports.padStart = function (value, length, padChar) {
|
||||
var padding = '';
|
||||
for (var idx = 0, len = length - value.length; idx < len; idx++) {
|
||||
padding += padChar;
|
||||
}
|
||||
return padding + value;
|
||||
};
|
||||
55
node_modules/@pdf-lib/standard-fonts/package.json
generated
vendored
Normal file
55
node_modules/@pdf-lib/standard-fonts/package.json
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "@pdf-lib/standard-fonts",
|
||||
"version": "1.0.0",
|
||||
"description": "Metrics for the Standard 14 PDF fonts and their encodings",
|
||||
"main": "lib/index.js",
|
||||
"unpkg": "dist/standard-fonts.min.js",
|
||||
"module": "es/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"make": "node Makefile.js",
|
||||
"lint": "node Makefile.js lint",
|
||||
"clean": "node Makefile.js clean",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"afmToJson": "node Makefile.js afmToJson",
|
||||
"encodingsToJson": "node Makefile.js encodingsToJson",
|
||||
"releaseNext": "node Makefile.js releaseNext",
|
||||
"releaseLatest": "node Makefile.js releaseLatest"
|
||||
},
|
||||
"repository": "https://github.com/Hopding/standard-fonts.git",
|
||||
"keywords": [
|
||||
"afm",
|
||||
"adobe",
|
||||
"font",
|
||||
"metrics",
|
||||
"ascii",
|
||||
"pdf"
|
||||
],
|
||||
"author": "Andrew Dillon <andrew.dillon.j@gmail.com>",
|
||||
"contributors": [
|
||||
"Christopher Brown <io@henrian.com> (http://henrian.com)"
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/Hopding/standard-fonts",
|
||||
"dependencies": {
|
||||
"pako": "^1.0.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/mz": "^0.0.32",
|
||||
"@types/node": "^10.5.1",
|
||||
"@types/pako": "^1.0.0",
|
||||
"base64-arraybuffer": "^0.1.5",
|
||||
"mz": "^2.7.0",
|
||||
"prettier": "^1.15.3",
|
||||
"rollup": "^0.68.2",
|
||||
"rollup-plugin-commonjs": "^9.2.0",
|
||||
"rollup-plugin-json": "^3.1.0",
|
||||
"rollup-plugin-node-resolve": "^4.0.0",
|
||||
"rollup-plugin-terser": "^3.0.0",
|
||||
"shelljs": "^0.8.3",
|
||||
"ts-node": "^7.0.1",
|
||||
"tslint": "^5.12.0",
|
||||
"tslint-config-prettier": "^1.17.0",
|
||||
"typescript": "^2.9.2"
|
||||
}
|
||||
}
|
||||
21
node_modules/@pdf-lib/upng/LICENSE
generated
vendored
Normal file
21
node_modules/@pdf-lib/upng/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Photopea
|
||||
|
||||
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 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,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
143
node_modules/@pdf-lib/upng/README.md
generated
vendored
Normal file
143
node_modules/@pdf-lib/upng/README.md
generated
vendored
Normal file
@@ -0,0 +1,143 @@
|
||||
<h1>
|
||||
upng
|
||||
|
||||
<br />
|
||||
|
||||
<!-- NPM Version -->
|
||||
<a href="https://www.npmjs.com/package/@pdf-lib/upng">
|
||||
<img
|
||||
src="https://img.shields.io/npm/v/png-ts.svg?style=flat-square"
|
||||
alt="NPM Version"
|
||||
/>
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
> A small, fast and advanced PNG / APNG encoder and decoder
|
||||
|
||||
This project is a fork of [`UPNG.js`](https://github.com/photopea/UPNG.js) and was created for use in [`pdf-lib`](https://github.com/Hopding/pdf-lib). The maintainer of the original repo does not publish it to NPM. That is the primary purpose of this fork. In addition, an `index.d.ts` file has been added (copied directly from [`@types/upng-js`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/upng-js/index.d.ts)) to makes TypeScript definitions available without requiring additional packages to be installed.
|
||||
|
||||
## Example of `UPNG.toRGBA8`
|
||||
```javascript
|
||||
// Import the UPNG class
|
||||
import UPNG from '@pdf-lib/upng';
|
||||
|
||||
// Create a UPNG object
|
||||
const pngImage = UPNG.decode(/* Uint8Array containing bytes of PNG image */);
|
||||
|
||||
// `pixels` is a 1D array (in rgba order) of decoded pixel data
|
||||
const pixels = pngImage.UPNG.toRGBA8();
|
||||
```
|
||||
|
||||
## Installation
|
||||
### NPM Module
|
||||
To install the latest stable version:
|
||||
```bash
|
||||
# With npm
|
||||
npm install --save @pdf-lib/upng
|
||||
|
||||
# With yarn
|
||||
yarn add @pdf-lib/upng
|
||||
```
|
||||
This assumes you're using [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/lang/en/) as your package manager.
|
||||
|
||||
### UMD Module
|
||||
You can also download `@pdf-lib/upng` as a UMD module from [unpkg](https://unpkg.com/#/). The UMD builds have been compiled to ES5, so they should work [in any modern browser](https://caniuse.com/#feat=es5). UMD builds are useful if you aren't using a package manager or module bundler. For example, you can use them directly in the `<script>` tag of an HTML page.
|
||||
|
||||
The following builds are available:
|
||||
|
||||
* https://unpkg.com/@pdf-lib/upng/dist/UPNG.js
|
||||
* https://unpkg.com/@pdf-lib/upng/dist/UPNG.min.js
|
||||
|
||||
When using a UMD build, you will have access to a global `window.UPNG` variable. This variable contains the `UPNG` class exported by `@pdf-lib/upng`. For example:
|
||||
|
||||
```javascript
|
||||
// NPM module
|
||||
import UPNG from '@pdf-lib/upng';
|
||||
const pngImage = UPNG.decode(/* ... */)
|
||||
|
||||
// UMD module
|
||||
var pngImage = window.UPNG.decode(/* ... */)
|
||||
```
|
||||
|
||||
|
||||
## Encoder
|
||||
|
||||
UPNG.js supports APNG and the interface expects "frames". Regular PNG is just a single-frame animation (single-item array).
|
||||
|
||||
#### `UPNG.encode(imgs, w, h, cnum, [dels])`
|
||||
* `imgs`: array of frames. A frame is an ArrayBuffer containing the pixel data (RGBA, 8 bits per channel)
|
||||
* `w`, `h` : width and height of the image
|
||||
* `cnum`: number of colors in the result; 0: all colors (lossless PNG)
|
||||
* `dels`: array of millisecond delays for each frame (only when 2 or more frames)
|
||||
* returns an ArrayBuffer with binary data of a PNG file
|
||||
|
||||
UPNG.js can do a lossy minification of PNG files, similar to [TinyPNG](https://tinypng.com/) and other tools. It performed quantization with [k-means algorithm](https://en.wikipedia.org/wiki/K-means_clustering) in the past, but now we use [K-d trees](https://en.wikipedia.org/wiki/K-d_tree).
|
||||
|
||||
Lossy compression is allowed by the last parameter `cnum`. Set it to zero for a lossless compression, or write the number of allowed colors in the image. Smaller values produce smaller files. **Or just use 0 for lossless / 256 for lossy.**
|
||||
|
||||
// Read RGBA from canvas and encode with UPNG
|
||||
var dta = ctx.getImageData(0,0,200,300).data; // ctx is Context2D of a Canvas
|
||||
// dta = new Uint8Array(200 * 300 * 4); // or generate pixels manually
|
||||
var png = UPNG.encode([dta.buffer], 200, 300, 0); console.log(new Uint8Array(png));
|
||||
|
||||
#### `UPNG.encodeLL(imgs, w, h, cc, ac, depth, [dels])` - low-level encode
|
||||
* `imgs`: array of frames. A frame is an ArrayBuffer containing the pixel data (corresponding to following parameters)
|
||||
* `w`, `h` : width and height of the image
|
||||
* `cc`, `ac`: number of color channels (1 or 3) and alpha channels (0 or 1)
|
||||
* `depth`: bit depth of pixel data (1, 2, 4, 8, 16)
|
||||
* `dels`: array of millisecond delays for each frame (only when 2 or more frames)
|
||||
* returns an ArrayBuffer with binary data of a PNG file
|
||||
|
||||
This function does not do any optimizations, it just stores what you give it. There are two cases when it is useful:
|
||||
* saving 16-bit colors (note, that PNG is big-endian, unlike Uint16Array in JS)
|
||||
* your image is too large, and "expanding" to 8-bit RGBA would use too much memory (e.g. 4-bit grayscale 50,000 x 50,000 = 1.25 GB, 8-bit RGBA would be 10 GB)
|
||||
|
||||
## Decoder
|
||||
|
||||
Supports all color types (including Grayscale and Palettes), all channel depths (1, 2, 4, 8, 16), interlaced images etc. Opens PNGs which other libraries can not open (tested with [PngSuite](http://www.schaik.com/pngsuite/)).
|
||||
|
||||
#### `UPNG.decode(buffer)`
|
||||
* `buffer`: ArrayBuffer containing the PNG file
|
||||
* returns an image object with following properties:
|
||||
* * `width`: the width of the image
|
||||
* * `height`: the height of the image
|
||||
* * `depth`: number of bits per channel
|
||||
* * `ctype`: color type of the file (Truecolor, Grayscale, Palette ...)
|
||||
* * `frames`: additional info about frames (frame delays etc.)
|
||||
* * `tabs`: additional chunks of the PNG file
|
||||
* * `data`: pixel data of the image
|
||||
|
||||
PNG files may have a various number of channels and a various color depth. The interpretation of `data` depends on the current color type and color depth (see the [PNG specification](https://www.w3.org/TR/PNG/)).
|
||||
|
||||
#### `UPNG.toRGBA8(img)`
|
||||
* `img`: PNG image object (returned by UPNG.decode())
|
||||
* returns an array of frames. A frame is ArrayBuffer of the image in RGBA format, 8 bits per channel.
|
||||
|
||||
### Example
|
||||
var img = UPNG.decode(buff); // put ArrayBuffer of the PNG file into UPNG.decode
|
||||
var rgba = UPNG.toRGBA8(img)[0]; // UPNG.toRGBA8 returns array of frames, size: width * height * 4 bytes.
|
||||
|
||||
PNG format uses the Inflate algorithm. Right now, UPNG.js calls [Pako.js](https://github.com/nodeca/pako) for the Inflate and Deflate method.
|
||||
|
||||
## Quantizer
|
||||
|
||||
UPNG.js contains a very good Quantizer of 4-component 8-bit vectors (i.e. pixels). It can be used to generate nice color palettes (e.g. Photopea uses UPNG.js to make palettes for GIF images).
|
||||
|
||||
Quantization consists of two important steps: Finding a nice palette and Finding the closest color in the palette for each sample (non-trivial for large palettes). UPNG perfroms both steps.
|
||||
|
||||
var res = UPNG.quantize(data, psize);
|
||||
|
||||
* `data`: ArrayBuffer of samples (byte length is a multiple of four)
|
||||
* `psize` : Palette size (how many colors you want to have)
|
||||
|
||||
The result object "res" has following properties:
|
||||
|
||||
* `abuf`: ArrayBuffer corresponding to `data`, where colors are remapped by a palette
|
||||
* `inds`: Uint8Array : the index of a color for each sample (only when `psize`<=256)
|
||||
* `plte`: Array : the Palette - a list of colors, `plte[i].est.q` and `plte[i].est.rgba` is the color value
|
||||
|
||||
### FAQ
|
||||
|
||||
- To get one common palette for multiple images (e.g. frames of the animation), concatenate them into one array `data`.
|
||||
- When working with less than four components, set the remaining components to a constant value (e.g. to zero)
|
||||
- When working with transparency, premultiply color components by transparency (otherwise, rgba(1,1,1,0) would be closer to rgba(1,1,1,1) than to rgba(0,0,0,0) - transparent mapped to white instead of transparent)
|
||||
1027
node_modules/@pdf-lib/upng/UPNG.js
generated
vendored
Normal file
1027
node_modules/@pdf-lib/upng/UPNG.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2017
node_modules/@pdf-lib/upng/cjs/UPNG.js
generated
vendored
Normal file
2017
node_modules/@pdf-lib/upng/cjs/UPNG.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7832
node_modules/@pdf-lib/upng/dist/UPNG.js
generated
vendored
Normal file
7832
node_modules/@pdf-lib/upng/dist/UPNG.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7832
node_modules/@pdf-lib/upng/dist/UPNG.min.js
generated
vendored
Normal file
7832
node_modules/@pdf-lib/upng/dist/UPNG.min.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
88
node_modules/@pdf-lib/upng/index.d.ts
generated
vendored
Normal file
88
node_modules/@pdf-lib/upng/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
// ------------------------------------------- //
|
||||
// //
|
||||
// Copied from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/upng-js/index.d.ts
|
||||
// //
|
||||
// ------------------------------------------- //
|
||||
|
||||
// Type definitions for upng-js 2.1
|
||||
// Project: https://github.com/photopea/UPNG.js
|
||||
// Definitions by: York Yao <https://github.com/plantain-00>, Sophie Kirschner <https://github.com/pineapplemachine>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface ImageFrameRect {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
|
||||
export interface ImageFrame {
|
||||
rect: ImageFrameRect;
|
||||
delay: number;
|
||||
dispose: number;
|
||||
blend: number;
|
||||
}
|
||||
|
||||
export interface ImageTabACTL {
|
||||
num_frames: number;
|
||||
num_plays: number;
|
||||
}
|
||||
|
||||
export interface ImageTabText {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export interface ImageTabs {
|
||||
acTL?: ImageTabACTL;
|
||||
pHYs?: number[];
|
||||
cHRM?: number[];
|
||||
tEXt?: ImageTabText;
|
||||
iTXt?: ImageTabText;
|
||||
PLTE?: number[];
|
||||
hIST?: number[];
|
||||
tRNS?: number | number[]; // Depends on ctype
|
||||
gAMA?: number;
|
||||
sRGB?: number;
|
||||
bKGD?: number | number[]; // Depends on ctype
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
width: number;
|
||||
height: number;
|
||||
depth: number;
|
||||
ctype: number;
|
||||
frames: ImageFrame[];
|
||||
tabs: ImageTabs;
|
||||
data: ArrayBuffer;
|
||||
}
|
||||
|
||||
export interface QuantizeResult {
|
||||
abuf: ArrayBuffer;
|
||||
inds: Uint8Array;
|
||||
// Type is complicated and I am too lazy to work it out right now, sorry!
|
||||
plte: any[];
|
||||
}
|
||||
|
||||
export function encode(
|
||||
imgs: ArrayBuffer[],
|
||||
w: number,
|
||||
h: number,
|
||||
cnum: number,
|
||||
dels?: number[],
|
||||
): ArrayBuffer;
|
||||
|
||||
export function encodeLL(
|
||||
imgs: ArrayBuffer[],
|
||||
w: number,
|
||||
h: number,
|
||||
cc: number,
|
||||
ac: number,
|
||||
depth: number,
|
||||
dels?: number[],
|
||||
): ArrayBuffer;
|
||||
|
||||
export function decode(buffer: ArrayBuffer): Image;
|
||||
|
||||
export function toRGBA8(out: Image): ArrayBuffer[];
|
||||
|
||||
export function quantize(data: ArrayBuffer, psize: number): QuantizeResult;
|
||||
54
node_modules/@pdf-lib/upng/package.json
generated
vendored
Normal file
54
node_modules/@pdf-lib/upng/package.json
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "@pdf-lib/upng",
|
||||
"license": "MIT",
|
||||
"version": "1.0.1",
|
||||
"description": "Small, fast and advanced PNG / APNG encoder and decoder",
|
||||
"main": "cjs/UPNG.js",
|
||||
"unpkg": "dist/UPNG.min.js",
|
||||
"module": "UPNG.js",
|
||||
"types": "index.d.ts",
|
||||
"files": [
|
||||
"cjs/",
|
||||
"dist/",
|
||||
"UPNG.js",
|
||||
"index.d.ts",
|
||||
"LICENSE.md",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"yarn.lock"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "yarn build:cjs && yarn build:umd && yarn build:umd:min",
|
||||
"build:cjs": "babel --plugins @babel/plugin-transform-modules-commonjs --out-dir cjs UPNG.js",
|
||||
"build:umd": "rollup --config rollup.config.js --file dist/UPNG.js",
|
||||
"build:umd:min": "rollup --config rollup.config.js --file dist/UPNG.min.js --environment MINIFY"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Hopding/upng"
|
||||
},
|
||||
"author": "photopea (https://github.com/photopea)",
|
||||
"contributors": [
|
||||
"Andrew Dillon (https://github.com/Hopding)",
|
||||
"Scimonster (https://github.com/Scimonster)"
|
||||
],
|
||||
"bugs": "https://github.com/Hopding/upng/issues",
|
||||
"keywords": [
|
||||
"png",
|
||||
"apng",
|
||||
"image",
|
||||
"conversion"
|
||||
],
|
||||
"dependencies": {
|
||||
"pako": "^1.0.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
|
||||
"@rollup/plugin-commonjs": "^11.0.0",
|
||||
"@rollup/plugin-node-resolve": "^7.1.1",
|
||||
"rollup": "^1.31.1",
|
||||
"rollup-plugin-terser": "^5.1.3"
|
||||
}
|
||||
}
|
||||
1423
node_modules/@pdf-lib/upng/yarn.lock
generated
vendored
Normal file
1423
node_modules/@pdf-lib/upng/yarn.lock
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user