update
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
github: mafintosh
|
||||
tidelift: "npm/pump"
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
module.exports={C:{"52":0.0019,"72":0.0038,"78":0.05507,"90":0.0019,"91":0.0019,"107":0.0057,"115":0.05697,"127":0.0019,"128":0.02469,"129":0.0019,"132":0.0038,"133":0.0076,"134":0.0019,"135":0.10445,"136":0.64186,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 130 131 137 138 139 140 3.5 3.6"},D:{"39":0.0019,"40":0.0019,"41":0.0019,"42":0.0019,"43":0.0019,"45":0.0019,"46":0.0019,"47":0.0019,"48":0.0019,"49":0.0038,"50":0.0019,"51":0.0019,"52":0.0019,"54":0.0019,"55":0.0019,"56":0.0076,"57":0.0019,"58":0.0019,"59":0.0019,"60":0.0019,"62":0.0019,"63":0.0019,"64":0.0019,"65":0.0019,"66":0.0095,"68":0.0038,"69":0.02849,"70":0.0019,"72":0.02279,"73":0.04368,"74":0.0019,"75":0.01519,"76":0.01709,"79":0.06267,"80":0.03798,"81":0.05887,"83":0.10634,"84":0.01709,"86":0.01709,"87":0.07406,"88":0.01519,"89":0.0019,"90":0.02469,"91":0.01899,"93":0.0019,"94":0.04558,"95":0.01139,"98":0.07216,"100":0.02849,"101":0.0019,"102":0.0019,"103":0.08356,"109":0.60008,"110":0.03608,"111":0.03038,"113":0.01329,"114":0.03228,"116":0.02469,"118":0.06647,"119":0.08925,"120":0.0019,"121":0.01519,"122":0.0076,"123":0.02469,"124":0.0038,"125":0.03798,"126":0.0076,"127":0.0019,"128":0.09685,"129":0.0038,"130":0.03038,"131":0.15952,"132":0.27346,"133":2.34716,"134":4.44936,"135":0.0019,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 44 53 61 67 71 77 78 85 92 96 97 99 104 105 106 107 108 112 115 117 136 137 138"},F:{"28":0.0019,"46":0.0019,"60":0.01329,"79":0.0019,"82":0.0019,"87":0.0019,"88":0.0019,"95":0.03988,"110":0.0019,"112":0.0019,"113":0.0019,"114":0.0019,"116":0.03988,"117":0.66845,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.0019,"14":0.0019,"17":0.0019,"18":0.0019,"84":0.0095,"89":0.0038,"90":0.0019,"92":0.01519,"100":0.0019,"109":0.0095,"114":0.0038,"125":0.0057,"126":0.0019,"129":0.0019,"130":0.03038,"131":0.0095,"132":0.01709,"133":0.9571,"134":1.95217,_:"12 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.2 18.0","13.1":0.0038,"14.1":0.01709,"15.4":0.0095,"15.6":0.01709,"16.3":0.0019,"16.6":0.01709,"17.1":0.0019,"17.3":0.0038,"17.4":0.0038,"17.5":0.03418,"17.6":0.03608,"18.1":0.0076,"18.2":0.0057,"18.3":0.09115,"18.4":0.0019},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00334,"5.0-5.1":0,"6.0-6.1":0.01002,"7.0-7.1":0.00668,"8.1-8.4":0,"9.0-9.2":0.00501,"9.3":0.02339,"10.0-10.2":0.00167,"10.3":0.03842,"11.0-11.2":0.17707,"11.3-11.4":0.01169,"12.0-12.1":0.00668,"12.2-12.5":0.16537,"13.0-13.1":0.00334,"13.2":0.00501,"13.3":0.00668,"13.4-13.7":0.02339,"14.0-14.4":0.05846,"14.5-14.8":0.07016,"15.0-15.1":0.03842,"15.2-15.3":0.03842,"15.4":0.04677,"15.5":0.05345,"15.6-15.8":0.65815,"16.0":0.09354,"16.1":0.1921,"16.2":0.10023,"16.3":0.17372,"16.4":0.03842,"16.5":0.07183,"16.6-16.7":0.78009,"17.0":0.04677,"17.1":0.08352,"17.2":0.06348,"17.3":0.08853,"17.4":0.17707,"17.5":0.39422,"17.6-17.7":1.14424,"18.0":0.32072,"18.1":1.04903,"18.2":0.46939,"18.3":9.81041,"18.4":0.14533},P:{"4":0.07339,"20":0.03145,"22":0.01048,"23":0.02097,"24":0.04193,"25":0.04193,"26":0.14677,"27":0.6395,_:"21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.11532,"11.1-11.2":0.05242,"17.0":0.07339},I:{"0":0.03234,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.00073,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.0081,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0162},Q:{_:"14.9"},O:{"0":0.04861},H:{"0":0.02},L:{"0":66.48457}};
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const SourceCode = require("./source-code");
|
||||
|
||||
module.exports = {
|
||||
SourceCode,
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _awaitAsyncGenerator;
|
||||
var _OverloadYield = require("./OverloadYield.js");
|
||||
function _awaitAsyncGenerator(value) {
|
||||
return new _OverloadYield.default(value, 0);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=awaitAsyncGenerator.js.map
|
||||
@@ -0,0 +1,415 @@
|
||||
/**
|
||||
Basic foreground colors.
|
||||
|
||||
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
|
||||
*/
|
||||
declare type ForegroundColor =
|
||||
| 'black'
|
||||
| 'red'
|
||||
| 'green'
|
||||
| 'yellow'
|
||||
| 'blue'
|
||||
| 'magenta'
|
||||
| 'cyan'
|
||||
| 'white'
|
||||
| 'gray'
|
||||
| 'grey'
|
||||
| 'blackBright'
|
||||
| 'redBright'
|
||||
| 'greenBright'
|
||||
| 'yellowBright'
|
||||
| 'blueBright'
|
||||
| 'magentaBright'
|
||||
| 'cyanBright'
|
||||
| 'whiteBright';
|
||||
|
||||
/**
|
||||
Basic background colors.
|
||||
|
||||
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
|
||||
*/
|
||||
declare type BackgroundColor =
|
||||
| 'bgBlack'
|
||||
| 'bgRed'
|
||||
| 'bgGreen'
|
||||
| 'bgYellow'
|
||||
| 'bgBlue'
|
||||
| 'bgMagenta'
|
||||
| 'bgCyan'
|
||||
| 'bgWhite'
|
||||
| 'bgGray'
|
||||
| 'bgGrey'
|
||||
| 'bgBlackBright'
|
||||
| 'bgRedBright'
|
||||
| 'bgGreenBright'
|
||||
| 'bgYellowBright'
|
||||
| 'bgBlueBright'
|
||||
| 'bgMagentaBright'
|
||||
| 'bgCyanBright'
|
||||
| 'bgWhiteBright';
|
||||
|
||||
/**
|
||||
Basic colors.
|
||||
|
||||
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
|
||||
*/
|
||||
declare type Color = ForegroundColor | BackgroundColor;
|
||||
|
||||
declare type Modifiers =
|
||||
| 'reset'
|
||||
| 'bold'
|
||||
| 'dim'
|
||||
| 'italic'
|
||||
| 'underline'
|
||||
| 'inverse'
|
||||
| 'hidden'
|
||||
| 'strikethrough'
|
||||
| 'visible';
|
||||
|
||||
declare namespace chalk {
|
||||
/**
|
||||
Levels:
|
||||
- `0` - All colors disabled.
|
||||
- `1` - Basic 16 colors support.
|
||||
- `2` - ANSI 256 colors support.
|
||||
- `3` - Truecolor 16 million colors support.
|
||||
*/
|
||||
type Level = 0 | 1 | 2 | 3;
|
||||
|
||||
interface Options {
|
||||
/**
|
||||
Specify the color support for Chalk.
|
||||
|
||||
By default, color support is automatically detected based on the environment.
|
||||
|
||||
Levels:
|
||||
- `0` - All colors disabled.
|
||||
- `1` - Basic 16 colors support.
|
||||
- `2` - ANSI 256 colors support.
|
||||
- `3` - Truecolor 16 million colors support.
|
||||
*/
|
||||
level?: Level;
|
||||
}
|
||||
|
||||
/**
|
||||
Return a new Chalk instance.
|
||||
*/
|
||||
type Instance = new (options?: Options) => Chalk;
|
||||
|
||||
/**
|
||||
Detect whether the terminal supports color.
|
||||
*/
|
||||
interface ColorSupport {
|
||||
/**
|
||||
The color level used by Chalk.
|
||||
*/
|
||||
level: Level;
|
||||
|
||||
/**
|
||||
Return whether Chalk supports basic 16 colors.
|
||||
*/
|
||||
hasBasic: boolean;
|
||||
|
||||
/**
|
||||
Return whether Chalk supports ANSI 256 colors.
|
||||
*/
|
||||
has256: boolean;
|
||||
|
||||
/**
|
||||
Return whether Chalk supports Truecolor 16 million colors.
|
||||
*/
|
||||
has16m: boolean;
|
||||
}
|
||||
|
||||
interface ChalkFunction {
|
||||
/**
|
||||
Use a template string.
|
||||
|
||||
@remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341))
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
log(chalk`
|
||||
CPU: {red ${cpu.totalPercent}%}
|
||||
RAM: {green ${ram.used / ram.total * 100}%}
|
||||
DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
|
||||
`);
|
||||
```
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`)
|
||||
```
|
||||
*/
|
||||
(text: TemplateStringsArray, ...placeholders: unknown[]): string;
|
||||
|
||||
(...text: unknown[]): string;
|
||||
}
|
||||
|
||||
interface Chalk extends ChalkFunction {
|
||||
/**
|
||||
Return a new Chalk instance.
|
||||
*/
|
||||
Instance: Instance;
|
||||
|
||||
/**
|
||||
The color support for Chalk.
|
||||
|
||||
By default, color support is automatically detected based on the environment.
|
||||
|
||||
Levels:
|
||||
- `0` - All colors disabled.
|
||||
- `1` - Basic 16 colors support.
|
||||
- `2` - ANSI 256 colors support.
|
||||
- `3` - Truecolor 16 million colors support.
|
||||
*/
|
||||
level: Level;
|
||||
|
||||
/**
|
||||
Use HEX value to set text color.
|
||||
|
||||
@param color - Hexadecimal value representing the desired color.
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
chalk.hex('#DEADED');
|
||||
```
|
||||
*/
|
||||
hex(color: string): Chalk;
|
||||
|
||||
/**
|
||||
Use keyword color value to set text color.
|
||||
|
||||
@param color - Keyword value representing the desired color.
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
chalk.keyword('orange');
|
||||
```
|
||||
*/
|
||||
keyword(color: string): Chalk;
|
||||
|
||||
/**
|
||||
Use RGB values to set text color.
|
||||
*/
|
||||
rgb(red: number, green: number, blue: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HSL values to set text color.
|
||||
*/
|
||||
hsl(hue: number, saturation: number, lightness: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HSV values to set text color.
|
||||
*/
|
||||
hsv(hue: number, saturation: number, value: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HWB values to set text color.
|
||||
*/
|
||||
hwb(hue: number, whiteness: number, blackness: number): Chalk;
|
||||
|
||||
/**
|
||||
Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color.
|
||||
|
||||
30 <= code && code < 38 || 90 <= code && code < 98
|
||||
For example, 31 for red, 91 for redBright.
|
||||
*/
|
||||
ansi(code: number): Chalk;
|
||||
|
||||
/**
|
||||
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
|
||||
*/
|
||||
ansi256(index: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HEX value to set background color.
|
||||
|
||||
@param color - Hexadecimal value representing the desired color.
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
chalk.bgHex('#DEADED');
|
||||
```
|
||||
*/
|
||||
bgHex(color: string): Chalk;
|
||||
|
||||
/**
|
||||
Use keyword color value to set background color.
|
||||
|
||||
@param color - Keyword value representing the desired color.
|
||||
|
||||
@example
|
||||
```
|
||||
import chalk = require('chalk');
|
||||
|
||||
chalk.bgKeyword('orange');
|
||||
```
|
||||
*/
|
||||
bgKeyword(color: string): Chalk;
|
||||
|
||||
/**
|
||||
Use RGB values to set background color.
|
||||
*/
|
||||
bgRgb(red: number, green: number, blue: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HSL values to set background color.
|
||||
*/
|
||||
bgHsl(hue: number, saturation: number, lightness: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HSV values to set background color.
|
||||
*/
|
||||
bgHsv(hue: number, saturation: number, value: number): Chalk;
|
||||
|
||||
/**
|
||||
Use HWB values to set background color.
|
||||
*/
|
||||
bgHwb(hue: number, whiteness: number, blackness: number): Chalk;
|
||||
|
||||
/**
|
||||
Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color.
|
||||
|
||||
30 <= code && code < 38 || 90 <= code && code < 98
|
||||
For example, 31 for red, 91 for redBright.
|
||||
Use the foreground code, not the background code (for example, not 41, nor 101).
|
||||
*/
|
||||
bgAnsi(code: number): Chalk;
|
||||
|
||||
/**
|
||||
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
|
||||
*/
|
||||
bgAnsi256(index: number): Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Resets the current color chain.
|
||||
*/
|
||||
readonly reset: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Make text bold.
|
||||
*/
|
||||
readonly bold: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Emitting only a small amount of light.
|
||||
*/
|
||||
readonly dim: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Make text italic. (Not widely supported)
|
||||
*/
|
||||
readonly italic: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Make text underline. (Not widely supported)
|
||||
*/
|
||||
readonly underline: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Inverse background and foreground colors.
|
||||
*/
|
||||
readonly inverse: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Prints the text, but makes it invisible.
|
||||
*/
|
||||
readonly hidden: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Puts a horizontal line through the center of the text. (Not widely supported)
|
||||
*/
|
||||
readonly strikethrough: Chalk;
|
||||
|
||||
/**
|
||||
Modifier: Prints the text only when Chalk has a color support level > 0.
|
||||
Can be useful for things that are purely cosmetic.
|
||||
*/
|
||||
readonly visible: Chalk;
|
||||
|
||||
readonly black: Chalk;
|
||||
readonly red: Chalk;
|
||||
readonly green: Chalk;
|
||||
readonly yellow: Chalk;
|
||||
readonly blue: Chalk;
|
||||
readonly magenta: Chalk;
|
||||
readonly cyan: Chalk;
|
||||
readonly white: Chalk;
|
||||
|
||||
/*
|
||||
Alias for `blackBright`.
|
||||
*/
|
||||
readonly gray: Chalk;
|
||||
|
||||
/*
|
||||
Alias for `blackBright`.
|
||||
*/
|
||||
readonly grey: Chalk;
|
||||
|
||||
readonly blackBright: Chalk;
|
||||
readonly redBright: Chalk;
|
||||
readonly greenBright: Chalk;
|
||||
readonly yellowBright: Chalk;
|
||||
readonly blueBright: Chalk;
|
||||
readonly magentaBright: Chalk;
|
||||
readonly cyanBright: Chalk;
|
||||
readonly whiteBright: Chalk;
|
||||
|
||||
readonly bgBlack: Chalk;
|
||||
readonly bgRed: Chalk;
|
||||
readonly bgGreen: Chalk;
|
||||
readonly bgYellow: Chalk;
|
||||
readonly bgBlue: Chalk;
|
||||
readonly bgMagenta: Chalk;
|
||||
readonly bgCyan: Chalk;
|
||||
readonly bgWhite: Chalk;
|
||||
|
||||
/*
|
||||
Alias for `bgBlackBright`.
|
||||
*/
|
||||
readonly bgGray: Chalk;
|
||||
|
||||
/*
|
||||
Alias for `bgBlackBright`.
|
||||
*/
|
||||
readonly bgGrey: Chalk;
|
||||
|
||||
readonly bgBlackBright: Chalk;
|
||||
readonly bgRedBright: Chalk;
|
||||
readonly bgGreenBright: Chalk;
|
||||
readonly bgYellowBright: Chalk;
|
||||
readonly bgBlueBright: Chalk;
|
||||
readonly bgMagentaBright: Chalk;
|
||||
readonly bgCyanBright: Chalk;
|
||||
readonly bgWhiteBright: Chalk;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Main Chalk object that allows to chain styles together.
|
||||
Call the last one as a method with a string argument.
|
||||
Order doesn't matter, and later styles take precedent in case of a conflict.
|
||||
This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
|
||||
*/
|
||||
declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
|
||||
supportsColor: chalk.ColorSupport | false;
|
||||
Level: chalk.Level;
|
||||
Color: Color;
|
||||
ForegroundColor: ForegroundColor;
|
||||
BackgroundColor: BackgroundColor;
|
||||
Modifiers: Modifiers;
|
||||
stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false};
|
||||
};
|
||||
|
||||
export = chalk;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"C L M G N O P","2":"0 9 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 nC LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC qC rC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC"},E:{"2":"J PB K D E F A B C L M G sC SC tC uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C"},F:{"2":"0 1 2 3 4 5 6 7 8 F B C G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 4C 5C 6C 7C FC kC 8C GC"},G:{"2":"E SC 9C lC AD BD CD DD","132":"ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC"},H:{"2":"WD"},I:{"2":"LC J I XD YD ZD aD lC bD cD"},J:{"2":"D","132":"A"},K:{"2":"A B C H FC kC","132":"GC"},L:{"2":"I"},M:{"2":"EC"},N:{"2":"A B"},O:{"2":"HC"},P:{"2":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"2":"oD"},R:{"2":"pD"},S:{"2":"qD rD"}},B:6,C:"AC-3 (Dolby Digital) and EC-3 (Dolby Digital Plus) codecs",D:false};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","2":"C L"},C:{"1":"0 9 nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"1 2 3 4 5 6 7 8 nC LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB qC rC"},D:{"1":"0 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","2":"1 2 3 4 5 6 7 8 J PB K D E F A B C L M G N O P QB RB SB"},E:{"1":"C L M G FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"J PB K D E F A B sC SC tC uC vC wC TC"},F:{"1":"0 1 2 3 4 5 6 7 8 O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N 4C 5C 6C 7C FC kC 8C GC"},G:{"2":"E SC 9C lC AD BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC"},H:{"2":"WD"},I:{"2":"LC J I XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"2":"A B C H FC kC GC"},L:{"2":"I"},M:{"2":"EC"},N:{"2":"A B"},O:{"2":"HC"},P:{"2":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"2":"pD"},S:{"2":"qD rD"}},B:7,C:"Directory selection from file input",D:true};
|
||||
@@ -0,0 +1,140 @@
|
||||
/**
|
||||
* @fileoverview Rule to flag blocks with no reason to exist
|
||||
* @author Brandon Mills
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "Disallow unnecessary nested blocks",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-lone-blocks",
|
||||
},
|
||||
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
redundantBlock: "Block is redundant.",
|
||||
redundantNestedBlock: "Nested block is redundant.",
|
||||
},
|
||||
},
|
||||
|
||||
create(context) {
|
||||
// A stack of lone blocks to be checked for block-level bindings
|
||||
const loneBlocks = [];
|
||||
let ruleDef;
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Reports a node as invalid.
|
||||
* @param {ASTNode} node The node to be reported.
|
||||
* @returns {void}
|
||||
*/
|
||||
function report(node) {
|
||||
const messageId =
|
||||
node.parent.type === "BlockStatement" ||
|
||||
node.parent.type === "StaticBlock"
|
||||
? "redundantNestedBlock"
|
||||
: "redundantBlock";
|
||||
|
||||
context.report({
|
||||
node,
|
||||
messageId,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for any occurrence of a BlockStatement in a place where lists of statements can appear
|
||||
* @param {ASTNode} node The node to check
|
||||
* @returns {boolean} True if the node is a lone block.
|
||||
*/
|
||||
function isLoneBlock(node) {
|
||||
return (
|
||||
node.parent.type === "BlockStatement" ||
|
||||
node.parent.type === "StaticBlock" ||
|
||||
node.parent.type === "Program" ||
|
||||
// Don't report blocks in switch cases if the block is the only statement of the case.
|
||||
(node.parent.type === "SwitchCase" &&
|
||||
!(
|
||||
node.parent.consequent[0] === node &&
|
||||
node.parent.consequent.length === 1
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the enclosing block of the current node for block-level bindings,
|
||||
* and "marks it" as valid if any.
|
||||
* @param {ASTNode} node The current node to check.
|
||||
* @returns {void}
|
||||
*/
|
||||
function markLoneBlock(node) {
|
||||
if (loneBlocks.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const block = node.parent;
|
||||
|
||||
if (loneBlocks.at(-1) === block) {
|
||||
loneBlocks.pop();
|
||||
}
|
||||
}
|
||||
|
||||
// Default rule definition: report all lone blocks
|
||||
ruleDef = {
|
||||
BlockStatement(node) {
|
||||
if (isLoneBlock(node)) {
|
||||
report(node);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
// ES6: report blocks without block-level bindings, or that's only child of another block
|
||||
if (context.languageOptions.ecmaVersion >= 2015) {
|
||||
ruleDef = {
|
||||
BlockStatement(node) {
|
||||
if (isLoneBlock(node)) {
|
||||
loneBlocks.push(node);
|
||||
}
|
||||
},
|
||||
"BlockStatement:exit"(node) {
|
||||
if (loneBlocks.length > 0 && loneBlocks.at(-1) === node) {
|
||||
loneBlocks.pop();
|
||||
report(node);
|
||||
} else if (
|
||||
(node.parent.type === "BlockStatement" ||
|
||||
node.parent.type === "StaticBlock") &&
|
||||
node.parent.body.length === 1
|
||||
) {
|
||||
report(node);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
ruleDef.VariableDeclaration = function (node) {
|
||||
if (node.kind !== "var") {
|
||||
markLoneBlock(node);
|
||||
}
|
||||
};
|
||||
|
||||
ruleDef.FunctionDeclaration = function (node) {
|
||||
if (sourceCode.getScope(node).isStrict) {
|
||||
markLoneBlock(node);
|
||||
}
|
||||
};
|
||||
|
||||
ruleDef.ClassDeclaration = markLoneBlock;
|
||||
}
|
||||
|
||||
return ruleDef;
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "json-stable-stringify-without-jsonify",
|
||||
"version": "1.0.1",
|
||||
"description": "deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
"tape": "~1.0.4"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test/*.js"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/*.js",
|
||||
"browsers": [
|
||||
"ie/8..latest",
|
||||
"ff/5", "ff/latest",
|
||||
"chrome/15", "chrome/latest",
|
||||
"safari/latest",
|
||||
"opera/latest"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/samn/json-stable-stringify.git"
|
||||
},
|
||||
"homepage": "https://github.com/samn/json-stable-stringify",
|
||||
"keywords": [
|
||||
"json",
|
||||
"stringify",
|
||||
"deterministic",
|
||||
"hash",
|
||||
"sort",
|
||||
"stable"
|
||||
],
|
||||
"author": {
|
||||
"name": "James Halliday",
|
||||
"email": "mail@substack.net",
|
||||
"url": "http://substack.net"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = loadBlockHoistPlugin;
|
||||
function _traverse() {
|
||||
const data = require("@babel/traverse");
|
||||
_traverse = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
var _plugin = require("../config/plugin.js");
|
||||
let LOADED_PLUGIN;
|
||||
const blockHoistPlugin = {
|
||||
name: "internal.blockHoist",
|
||||
visitor: {
|
||||
Block: {
|
||||
exit({
|
||||
node
|
||||
}) {
|
||||
node.body = performHoisting(node.body);
|
||||
}
|
||||
},
|
||||
SwitchCase: {
|
||||
exit({
|
||||
node
|
||||
}) {
|
||||
node.consequent = performHoisting(node.consequent);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
function performHoisting(body) {
|
||||
let max = Math.pow(2, 30) - 1;
|
||||
let hasChange = false;
|
||||
for (let i = 0; i < body.length; i++) {
|
||||
const n = body[i];
|
||||
const p = priority(n);
|
||||
if (p > max) {
|
||||
hasChange = true;
|
||||
break;
|
||||
}
|
||||
max = p;
|
||||
}
|
||||
if (!hasChange) return body;
|
||||
return stableSort(body.slice());
|
||||
}
|
||||
function loadBlockHoistPlugin() {
|
||||
if (!LOADED_PLUGIN) {
|
||||
LOADED_PLUGIN = new _plugin.default(Object.assign({}, blockHoistPlugin, {
|
||||
visitor: _traverse().default.explode(blockHoistPlugin.visitor)
|
||||
}), {});
|
||||
}
|
||||
return LOADED_PLUGIN;
|
||||
}
|
||||
function priority(bodyNode) {
|
||||
const priority = bodyNode == null ? void 0 : bodyNode._blockHoist;
|
||||
if (priority == null) return 1;
|
||||
if (priority === true) return 2;
|
||||
return priority;
|
||||
}
|
||||
function stableSort(body) {
|
||||
const buckets = Object.create(null);
|
||||
for (let i = 0; i < body.length; i++) {
|
||||
const n = body[i];
|
||||
const p = priority(n);
|
||||
const bucket = buckets[p] || (buckets[p] = []);
|
||||
bucket.push(n);
|
||||
}
|
||||
const keys = Object.keys(buckets).map(k => +k).sort((a, b) => b - a);
|
||||
let index = 0;
|
||||
for (const key of keys) {
|
||||
const bucket = buckets[key];
|
||||
for (const n of bucket) {
|
||||
body[index++] = n;
|
||||
}
|
||||
}
|
||||
return body;
|
||||
}
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=block-hoist-plugin.js.map
|
||||
@@ -0,0 +1,16 @@
|
||||
export namespace CharacterType {
|
||||
let SPACE: number;
|
||||
let ALPHA_LETTER: number;
|
||||
let PUNCT: number;
|
||||
let HAN_LETTER: number;
|
||||
let KATAKANA_LETTER: number;
|
||||
let HIRAGANA_LETTER: number;
|
||||
let HALFWIDTH_KATAKANA_LETTER: number;
|
||||
let THAI_LETTER: number;
|
||||
}
|
||||
/**
|
||||
* This function is based on the word-break detection implemented in:
|
||||
* https://hg.mozilla.org/mozilla-central/file/tip/intl/lwbrk/WordBreaker.cpp
|
||||
*/
|
||||
export function getCharacterType(charCode: any): number;
|
||||
export function getNormalizeWithNFKC(): any;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,37 @@
|
||||
# `react`
|
||||
|
||||
React is a JavaScript library for creating user interfaces.
|
||||
|
||||
The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
|
||||
|
||||
**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { useState } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
function Counter() {
|
||||
const [count, setCount] = useState(0);
|
||||
return (
|
||||
<>
|
||||
<h1>{count}</h1>
|
||||
<button onClick={() => setCount(count + 1)}>
|
||||
Increment
|
||||
</button>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const root = createRoot(document.getElementById('root'));
|
||||
root.render(<Counter />);
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
See https://react.dev/
|
||||
|
||||
## API
|
||||
|
||||
See https://react.dev/reference/react
|
||||
@@ -0,0 +1,16 @@
|
||||
// Generated by LiveScript 1.6.0
|
||||
(function(){
|
||||
var VERSION, parseType, parsedTypeCheck, typeCheck;
|
||||
VERSION = '0.4.0';
|
||||
parseType = require('./parse-type');
|
||||
parsedTypeCheck = require('./check');
|
||||
typeCheck = function(type, input, options){
|
||||
return parsedTypeCheck(parseType(type), input, options);
|
||||
};
|
||||
module.exports = {
|
||||
VERSION: VERSION,
|
||||
typeCheck: typeCheck,
|
||||
parsedTypeCheck: parsedTypeCheck,
|
||||
parseType: parseType
|
||||
};
|
||||
}).call(this);
|
||||
@@ -0,0 +1,55 @@
|
||||
// YAML error class. http://stackoverflow.com/questions/8458984
|
||||
//
|
||||
'use strict';
|
||||
|
||||
|
||||
function formatError(exception, compact) {
|
||||
var where = '', message = exception.reason || '(unknown reason)';
|
||||
|
||||
if (!exception.mark) return message;
|
||||
|
||||
if (exception.mark.name) {
|
||||
where += 'in "' + exception.mark.name + '" ';
|
||||
}
|
||||
|
||||
where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';
|
||||
|
||||
if (!compact && exception.mark.snippet) {
|
||||
where += '\n\n' + exception.mark.snippet;
|
||||
}
|
||||
|
||||
return message + ' ' + where;
|
||||
}
|
||||
|
||||
|
||||
function YAMLException(reason, mark) {
|
||||
// Super constructor
|
||||
Error.call(this);
|
||||
|
||||
this.name = 'YAMLException';
|
||||
this.reason = reason;
|
||||
this.mark = mark;
|
||||
this.message = formatError(this, false);
|
||||
|
||||
// Include stack trace in error object
|
||||
if (Error.captureStackTrace) {
|
||||
// Chrome and NodeJS
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
} else {
|
||||
// FF, IE 10+ and Safari 6+. Fallback for others
|
||||
this.stack = (new Error()).stack || '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Inherit from Error
|
||||
YAMLException.prototype = Object.create(Error.prototype);
|
||||
YAMLException.prototype.constructor = YAMLException;
|
||||
|
||||
|
||||
YAMLException.prototype.toString = function toString(compact) {
|
||||
return this.name + ': ' + formatError(this, compact);
|
||||
};
|
||||
|
||||
|
||||
module.exports = YAMLException;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"F A B mC","8":"K D E"},B:{"1":"0 9 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","2":"C L M G N O P"},C:{"1":"0 9 mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC","2":"nC","8":"1 2 3 4 5 6 7 8 LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB qC rC","194":"kB lB"},D:{"1":"0 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC","8":"J PB K D E F A B","257":"1 2 3 4 5 6 7 8 QB RB SB TB UB VB WB XB YB","769":"C L M G N O P"},E:{"1":"C L M G GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","8":"J PB sC SC tC","257":"K D E F A uC vC wC","1025":"B TC FC"},F:{"1":"0 1 2 3 4 5 6 7 8 G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"C FC kC 8C GC","8":"F B 4C 5C 6C 7C"},G:{"1":"E BD CD DD ED FD JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","8":"SC 9C lC AD","1025":"GD HD ID"},H:{"8":"WD"},I:{"1":"J I aD lC bD cD","8":"LC XD YD ZD"},J:{"1":"A","8":"D"},K:{"1":"H","8":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:1,C:"Details & Summary elements",D:true};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,212 @@
|
||||
export class CanvasGraphics {
|
||||
constructor(canvasCtx: any, commonObjs: any, objs: any, canvasFactory: any, filterFactory: any, { optionalContentConfig, markedContentStack }: {
|
||||
optionalContentConfig: any;
|
||||
markedContentStack?: null | undefined;
|
||||
}, annotationCanvasMap: any, pageColors: any);
|
||||
ctx: any;
|
||||
current: CanvasExtraState;
|
||||
stateStack: any[];
|
||||
pendingClip: {} | {} | null;
|
||||
pendingEOFill: boolean;
|
||||
res: any;
|
||||
xobjs: any;
|
||||
commonObjs: any;
|
||||
objs: any;
|
||||
canvasFactory: any;
|
||||
filterFactory: any;
|
||||
groupStack: any[];
|
||||
processingType3: any;
|
||||
baseTransform: any;
|
||||
baseTransformStack: any[];
|
||||
groupLevel: number;
|
||||
smaskStack: any[];
|
||||
smaskCounter: number;
|
||||
tempSMask: any;
|
||||
suspendedCtx: any;
|
||||
contentVisible: boolean;
|
||||
markedContentStack: never[];
|
||||
optionalContentConfig: any;
|
||||
cachedCanvases: CachedCanvases;
|
||||
cachedPatterns: Map<any, any>;
|
||||
annotationCanvasMap: any;
|
||||
viewportScale: number;
|
||||
outputScaleX: number;
|
||||
outputScaleY: number;
|
||||
pageColors: any;
|
||||
_cachedScaleForStroking: number[];
|
||||
_cachedGetSinglePixelWidth: number | null;
|
||||
_cachedBitmapsMap: Map<any, any>;
|
||||
getObject(data: any, fallback?: null): any;
|
||||
beginDrawing({ transform, viewport, transparency, background, }: {
|
||||
transform: any;
|
||||
viewport: any;
|
||||
transparency?: boolean | undefined;
|
||||
background?: null | undefined;
|
||||
}): void;
|
||||
compositeCtx: any;
|
||||
transparentCanvas: any;
|
||||
executeOperatorList(operatorList: any, executionStartIdx: any, continueCallback: any, stepper: any): any;
|
||||
endDrawing(): void;
|
||||
_scaleImage(img: any, inverseTransform: any): {
|
||||
img: any;
|
||||
paintWidth: any;
|
||||
paintHeight: any;
|
||||
};
|
||||
_createMaskCanvas(img: any): {
|
||||
canvas: any;
|
||||
offsetX: number;
|
||||
offsetY: number;
|
||||
};
|
||||
setLineWidth(width: any): void;
|
||||
setLineCap(style: any): void;
|
||||
setLineJoin(style: any): void;
|
||||
setMiterLimit(limit: any): void;
|
||||
setDash(dashArray: any, dashPhase: any): void;
|
||||
setRenderingIntent(intent: any): void;
|
||||
setFlatness(flatness: any): void;
|
||||
setGState(states: any): void;
|
||||
get inSMaskMode(): boolean;
|
||||
checkSMaskState(): void;
|
||||
/**
|
||||
* Soft mask mode takes the current main drawing canvas and replaces it with
|
||||
* a temporary canvas. Any drawing operations that happen on the temporary
|
||||
* canvas need to be composed with the main canvas that was suspended (see
|
||||
* `compose()`). The temporary canvas also duplicates many of its operations
|
||||
* on the suspended canvas to keep them in sync, so that when the soft mask
|
||||
* mode ends any clipping paths or transformations will still be active and in
|
||||
* the right order on the canvas' graphics state stack.
|
||||
*/
|
||||
beginSMaskMode(): void;
|
||||
endSMaskMode(): void;
|
||||
compose(dirtyBox: any): void;
|
||||
composeSMask(ctx: any, smask: any, layerCtx: any, layerBox: any): void;
|
||||
genericComposeSMask(maskCtx: any, layerCtx: any, width: any, height: any, subtype: any, backdrop: any, transferMap: any, layerOffsetX: any, layerOffsetY: any, maskOffsetX: any, maskOffsetY: any): void;
|
||||
save(): void;
|
||||
restore(): void;
|
||||
transform(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
||||
constructPath(ops: any, args: any, minMax: any): void;
|
||||
closePath(): void;
|
||||
stroke(consumePath?: boolean): void;
|
||||
closeStroke(): void;
|
||||
fill(consumePath?: boolean): void;
|
||||
eoFill(): void;
|
||||
fillStroke(): void;
|
||||
eoFillStroke(): void;
|
||||
closeFillStroke(): void;
|
||||
closeEOFillStroke(): void;
|
||||
endPath(): void;
|
||||
clip(): void;
|
||||
eoClip(): void;
|
||||
beginText(): void;
|
||||
endText(): void;
|
||||
setCharSpacing(spacing: any): void;
|
||||
setWordSpacing(spacing: any): void;
|
||||
setHScale(scale: any): void;
|
||||
setLeading(leading: any): void;
|
||||
setFont(fontRefName: any, size: any): void;
|
||||
setTextRenderingMode(mode: any): void;
|
||||
setTextRise(rise: any): void;
|
||||
moveText(x: any, y: any): void;
|
||||
setLeadingMoveText(x: any, y: any): void;
|
||||
setTextMatrix(a: any, b: any, c: any, d: any, e: any, f: any): void;
|
||||
nextLine(): void;
|
||||
paintChar(character: any, x: any, y: any, patternTransform: any): void;
|
||||
get isFontSubpixelAAEnabled(): any;
|
||||
showText(glyphs: any): void;
|
||||
showType3Text(glyphs: any): void;
|
||||
setCharWidth(xWidth: any, yWidth: any): void;
|
||||
setCharWidthAndBounds(xWidth: any, yWidth: any, llx: any, lly: any, urx: any, ury: any): void;
|
||||
getColorN_Pattern(IR: any): any;
|
||||
setStrokeColorN(...args: any[]): void;
|
||||
setFillColorN(...args: any[]): void;
|
||||
setStrokeRGBColor(r: any, g: any, b: any): void;
|
||||
setStrokeTransparent(): void;
|
||||
setFillRGBColor(r: any, g: any, b: any): void;
|
||||
setFillTransparent(): void;
|
||||
_getPattern(objId: any, matrix?: null): any;
|
||||
shadingFill(objId: any): void;
|
||||
beginInlineImage(): void;
|
||||
beginImageData(): void;
|
||||
paintFormXObjectBegin(matrix: any, bbox: any): void;
|
||||
paintFormXObjectEnd(): void;
|
||||
beginGroup(group: any): void;
|
||||
endGroup(group: any): void;
|
||||
beginAnnotation(id: any, rect: any, transform: any, matrix: any, hasOwnCanvas: any): void;
|
||||
annotationCanvas: any;
|
||||
endAnnotation(): void;
|
||||
paintImageMaskXObject(img: any): void;
|
||||
paintImageMaskXObjectRepeat(img: any, scaleX: any, skewX: number | undefined, skewY: number | undefined, scaleY: any, positions: any): void;
|
||||
paintImageMaskXObjectGroup(images: any): void;
|
||||
paintImageXObject(objId: any): void;
|
||||
paintImageXObjectRepeat(objId: any, scaleX: any, scaleY: any, positions: any): void;
|
||||
applyTransferMapsToCanvas(ctx: any): any;
|
||||
applyTransferMapsToBitmap(imgData: any): any;
|
||||
paintInlineImageXObject(imgData: any): void;
|
||||
paintInlineImageXObjectGroup(imgData: any, map: any): void;
|
||||
paintSolidColorImageMask(): void;
|
||||
markPoint(tag: any): void;
|
||||
markPointProps(tag: any, properties: any): void;
|
||||
beginMarkedContent(tag: any): void;
|
||||
beginMarkedContentProps(tag: any, properties: any): void;
|
||||
endMarkedContent(): void;
|
||||
beginCompat(): void;
|
||||
endCompat(): void;
|
||||
consumePath(clipBox: any): void;
|
||||
getSinglePixelWidth(): number;
|
||||
getScaleForStroking(): number[];
|
||||
rescaleAndStroke(saveRestore: any): void;
|
||||
isContentVisible(): boolean;
|
||||
#private;
|
||||
}
|
||||
declare class CanvasExtraState {
|
||||
constructor(width: any, height: any);
|
||||
alphaIsShape: boolean;
|
||||
fontSize: number;
|
||||
fontSizeScale: number;
|
||||
textMatrix: number[];
|
||||
textMatrixScale: number;
|
||||
fontMatrix: number[];
|
||||
leading: number;
|
||||
x: number;
|
||||
y: number;
|
||||
lineX: number;
|
||||
lineY: number;
|
||||
charSpacing: number;
|
||||
wordSpacing: number;
|
||||
textHScale: number;
|
||||
textRenderingMode: number;
|
||||
textRise: number;
|
||||
fillColor: string;
|
||||
strokeColor: string;
|
||||
patternFill: boolean;
|
||||
fillAlpha: number;
|
||||
strokeAlpha: number;
|
||||
lineWidth: number;
|
||||
activeSMask: any;
|
||||
transferMaps: string;
|
||||
clone(): any;
|
||||
setCurrentPoint(x: any, y: any): void;
|
||||
updatePathMinMax(transform: any, x: any, y: any): void;
|
||||
minX: any;
|
||||
minY: any;
|
||||
maxX: any;
|
||||
maxY: any;
|
||||
updateRectMinMax(transform: any, rect: any): void;
|
||||
updateScalingPathMinMax(transform: any, minMax: any): void;
|
||||
updateCurvePathMinMax(transform: any, x0: any, y0: any, x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, minMax: any): void;
|
||||
getPathBoundingBox(pathType?: string, transform?: null): any[];
|
||||
updateClipFromPath(): void;
|
||||
isEmptyClip(): boolean;
|
||||
startNewPathAndClipBox(box: any): void;
|
||||
clipBox: any;
|
||||
getClippedPathBoundingBox(pathType?: string, transform?: null): number[] | null;
|
||||
}
|
||||
declare class CachedCanvases {
|
||||
constructor(canvasFactory: any);
|
||||
canvasFactory: any;
|
||||
cache: any;
|
||||
getCanvas(id: any, width: any, height: any): any;
|
||||
delete(id: any): void;
|
||||
clear(): void;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user