ansimax 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +159 -0
- package/README.es.md +86 -2
- package/README.md +86 -2
- package/dist/index.d.mts +332 -2
- package/dist/index.d.ts +332 -2
- package/dist/index.js +149 -35
- package/dist/index.mjs +147 -35
- package/docs/README.md +110 -0
- package/docs/examples-cjs.md +706 -0
- package/docs/examples-mjs.md +676 -0
- package/docs/examples-ts.md +715 -0
- package/docs/showcase.md +398 -0
- package/examples/all-in-one.cjs +1 -1
- package/examples/all-in-one.mjs +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ declare const sliceAnsi: (str: string, start: number, end?: number) => string;
|
|
|
359
359
|
declare const truncateAnsi: (str: string, width: number, ellipsis?: string) => string;
|
|
360
360
|
declare const padEnd: (str: string, width: number, ch?: string) => string;
|
|
361
361
|
declare const padStart: (str: string, width: number, ch?: string) => string;
|
|
362
|
-
declare const center: (str: string, width: number, ch?: string) => string;
|
|
362
|
+
declare const center$1: (str: string, width: number, ch?: string) => string;
|
|
363
363
|
/** Repeats a string until its visible length reaches the target width. */
|
|
364
364
|
declare const repeatVisible: (str: string, width: number) => string;
|
|
365
365
|
/**
|
|
@@ -960,7 +960,82 @@ interface RenderOptions$1 {
|
|
|
960
960
|
/** Use braille (2×4 sub-char resolution). Overrides halfBlock. */
|
|
961
961
|
braille?: boolean;
|
|
962
962
|
}
|
|
963
|
+
/**
|
|
964
|
+
* Render a 2D grid of pixels (`{r, g, b, a?}` objects) as terminal output
|
|
965
|
+
* using half-block characters (`▀`) to fit two vertical pixels per row.
|
|
966
|
+
* This doubles vertical resolution compared to one-character-per-pixel.
|
|
967
|
+
*
|
|
968
|
+
* @param pixels - 2D grid of pixel objects.
|
|
969
|
+
* @param opts - Render options (scale, background, etc.).
|
|
970
|
+
*
|
|
971
|
+
* @example basic pixel art
|
|
972
|
+
* ```js
|
|
973
|
+
* import { renderPixelArt } from 'ansimax';
|
|
974
|
+
*
|
|
975
|
+
* const heart = [
|
|
976
|
+
* [null, {r:255,g:0,b:0}, null, {r:255,g:0,b:0}, null],
|
|
977
|
+
* [{r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}],
|
|
978
|
+
* [{r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}],
|
|
979
|
+
* [null, {r:255,g:0,b:0}, {r:255,g:0,b:0}, {r:255,g:0,b:0}, null],
|
|
980
|
+
* [null, null, {r:255,g:0,b:0}, null, null],
|
|
981
|
+
* ];
|
|
982
|
+
*
|
|
983
|
+
* console.log(renderPixelArt(heart));
|
|
984
|
+
* ```
|
|
985
|
+
*
|
|
986
|
+
* @example with scale (each pixel rendered as multiple chars)
|
|
987
|
+
* ```js
|
|
988
|
+
* console.log(renderPixelArt(myPixels, { scale: 2 }));
|
|
989
|
+
* // Each pixel becomes 2x2 in the output
|
|
990
|
+
* ```
|
|
991
|
+
*
|
|
992
|
+
* @example with background color (transparent pixels show through)
|
|
993
|
+
* ```js
|
|
994
|
+
* console.log(renderPixelArt(myPixels, {
|
|
995
|
+
* background: { r: 30, g: 30, b: 30 },
|
|
996
|
+
* }));
|
|
997
|
+
* ```
|
|
998
|
+
*
|
|
999
|
+
* @example combined with a sprite from SPRITES
|
|
1000
|
+
* ```js
|
|
1001
|
+
* import { renderPixelArt, SPRITES } from 'ansimax';
|
|
1002
|
+
*
|
|
1003
|
+
* console.log(renderPixelArt(SPRITES.heart.pixels, { scale: 3 }));
|
|
1004
|
+
* ```
|
|
1005
|
+
*/
|
|
963
1006
|
declare const renderPixelArt: (pixels: PixelGrid, opts?: RenderOptions$1) => string;
|
|
1007
|
+
/**
|
|
1008
|
+
* Built-in sprite library — small pre-defined pixel art ready for use.
|
|
1009
|
+
*
|
|
1010
|
+
* Each entry has a `pixels` property containing a `PixelGrid`.
|
|
1011
|
+
*
|
|
1012
|
+
* Currently available: `heart`, `star`, `arrow`, `check`, `x`, `bell`,
|
|
1013
|
+
* `gear`, `bolt`, `flag`, `crown`.
|
|
1014
|
+
*
|
|
1015
|
+
* @example render a built-in sprite
|
|
1016
|
+
* ```js
|
|
1017
|
+
* import { renderPixelArt, SPRITES } from 'ansimax';
|
|
1018
|
+
*
|
|
1019
|
+
* console.log(renderPixelArt(SPRITES.heart.pixels));
|
|
1020
|
+
* console.log(renderPixelArt(SPRITES.star.pixels, { scale: 2 }));
|
|
1021
|
+
* ```
|
|
1022
|
+
*
|
|
1023
|
+
* @example list all available sprites
|
|
1024
|
+
* ```js
|
|
1025
|
+
* console.log('Available sprites:', Object.keys(SPRITES).join(', '));
|
|
1026
|
+
* ```
|
|
1027
|
+
*
|
|
1028
|
+
* @example compose sprites on a canvas
|
|
1029
|
+
* ```js
|
|
1030
|
+
* import { createCanvas, SPRITES } from 'ansimax';
|
|
1031
|
+
*
|
|
1032
|
+
* const canvas = createCanvas(30, 10);
|
|
1033
|
+
* canvas.drawSprite(2, 2, SPRITES.heart.pixels);
|
|
1034
|
+
* canvas.drawSprite(10, 2, SPRITES.star.pixels);
|
|
1035
|
+
* canvas.drawSprite(18, 2, SPRITES.crown.pixels);
|
|
1036
|
+
* canvas.print();
|
|
1037
|
+
* ```
|
|
1038
|
+
*/
|
|
964
1039
|
declare const SPRITES: Record<string, {
|
|
965
1040
|
pixels: PixelGrid;
|
|
966
1041
|
}>;
|
|
@@ -985,6 +1060,78 @@ interface GradientRectOptions {
|
|
|
985
1060
|
/** Render in braille mode for 2× horizontal × 4× vertical resolution. */
|
|
986
1061
|
braille?: boolean;
|
|
987
1062
|
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Render a rectangle filled with a multi-color gradient. Supports horizontal,
|
|
1065
|
+
* vertical, diagonal, arbitrary-angle, radial, and conic gradient styles.
|
|
1066
|
+
*
|
|
1067
|
+
* @param opts - Configuration: dimensions, colors, style, dithering.
|
|
1068
|
+
*
|
|
1069
|
+
* @example horizontal gradient (default)
|
|
1070
|
+
* ```js
|
|
1071
|
+
* import { gradientRect } from 'ansimax';
|
|
1072
|
+
*
|
|
1073
|
+
* console.log(gradientRect({
|
|
1074
|
+
* width: 40, height: 10,
|
|
1075
|
+
* colors: ['#ff0000', '#0000ff'],
|
|
1076
|
+
* }));
|
|
1077
|
+
* ```
|
|
1078
|
+
*
|
|
1079
|
+
* @example vertical gradient with multiple stops
|
|
1080
|
+
* ```js
|
|
1081
|
+
* console.log(gradientRect({
|
|
1082
|
+
* width: 30, height: 15,
|
|
1083
|
+
* colors: ['#ff0000', '#ffff00', '#00ff00', '#0000ff'],
|
|
1084
|
+
* style: 'vertical',
|
|
1085
|
+
* }));
|
|
1086
|
+
* ```
|
|
1087
|
+
*
|
|
1088
|
+
* @example arbitrary angle (45° = bottom-left to top-right)
|
|
1089
|
+
* ```js
|
|
1090
|
+
* console.log(gradientRect({
|
|
1091
|
+
* width: 40, height: 20,
|
|
1092
|
+
* colors: ['#bd93f9', '#ff79c6'],
|
|
1093
|
+
* style: 'diagonal',
|
|
1094
|
+
* angle: 45,
|
|
1095
|
+
* }));
|
|
1096
|
+
* ```
|
|
1097
|
+
*
|
|
1098
|
+
* @example radial gradient (center to edge)
|
|
1099
|
+
* ```js
|
|
1100
|
+
* console.log(gradientRect({
|
|
1101
|
+
* width: 30, height: 15,
|
|
1102
|
+
* colors: ['#ffffff', '#000000'],
|
|
1103
|
+
* style: 'radial',
|
|
1104
|
+
* }));
|
|
1105
|
+
* ```
|
|
1106
|
+
*
|
|
1107
|
+
* @example conic (rainbow wheel) — v1.2.0+
|
|
1108
|
+
* ```js
|
|
1109
|
+
* console.log(gradientRect({
|
|
1110
|
+
* width: 30, height: 15,
|
|
1111
|
+
* colors: ['#ff0000', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff', '#ff0000'],
|
|
1112
|
+
* style: 'conic',
|
|
1113
|
+
* startAngle: 0,
|
|
1114
|
+
* }));
|
|
1115
|
+
* ```
|
|
1116
|
+
*
|
|
1117
|
+
* @example with Bayer dithering for smoother tonal transitions
|
|
1118
|
+
* ```js
|
|
1119
|
+
* console.log(gradientRect({
|
|
1120
|
+
* width: 60, height: 20,
|
|
1121
|
+
* colors: ['#000033', '#ffcc00'],
|
|
1122
|
+
* dither: 'bayer',
|
|
1123
|
+
* }));
|
|
1124
|
+
* ```
|
|
1125
|
+
*
|
|
1126
|
+
* @example braille mode (4× vertical resolution per cell)
|
|
1127
|
+
* ```js
|
|
1128
|
+
* console.log(gradientRect({
|
|
1129
|
+
* width: 60, height: 30,
|
|
1130
|
+
* colors: ['#ff0000', '#0000ff'],
|
|
1131
|
+
* braille: true,
|
|
1132
|
+
* }));
|
|
1133
|
+
* ```
|
|
1134
|
+
*/
|
|
988
1135
|
declare const gradientRect: (opts?: GradientRectOptions) => string;
|
|
989
1136
|
interface CanvasRenderOptions extends RenderOptions$1 {
|
|
990
1137
|
/** Render only the dirty region instead of the whole canvas. Default: false. */
|
|
@@ -1011,6 +1158,61 @@ interface Canvas {
|
|
|
1011
1158
|
/** Deep copy of the current pixel grid. Mutations don't affect the canvas. */
|
|
1012
1159
|
pixels: PixelGrid;
|
|
1013
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Create a mutable in-memory canvas with drawing primitives (line, rect,
|
|
1163
|
+
* circle, sprite). The canvas tracks dirty regions so subsequent renders
|
|
1164
|
+
* can update only changed pixels (useful for animation).
|
|
1165
|
+
*
|
|
1166
|
+
* @param width - Canvas width in pixels (1 to MAX_DIMENSION).
|
|
1167
|
+
* @param height - Canvas height in pixels (1 to MAX_DIMENSION).
|
|
1168
|
+
* @param fillColor - Initial fill (`null` for transparent). Default `null`.
|
|
1169
|
+
* @returns A Canvas object with drawing methods.
|
|
1170
|
+
*
|
|
1171
|
+
* @example draw and render a simple scene
|
|
1172
|
+
* ```js
|
|
1173
|
+
* import { createCanvas } from 'ansimax';
|
|
1174
|
+
*
|
|
1175
|
+
* const canvas = createCanvas(40, 20, { r: 20, g: 20, b: 30 });
|
|
1176
|
+
*
|
|
1177
|
+
* canvas.drawRect(5, 5, 30, 10, { r: 100, g: 200, b: 255 }, true);
|
|
1178
|
+
* canvas.drawCircle(20, 10, 4, { r: 255, g: 200, b: 0 }, true);
|
|
1179
|
+
* canvas.drawLine(0, 0, 39, 19, { r: 255, g: 0, b: 100 });
|
|
1180
|
+
*
|
|
1181
|
+
* canvas.print(); // render and write to stdout
|
|
1182
|
+
* ```
|
|
1183
|
+
*
|
|
1184
|
+
* @example animated frame with dirty-region tracking
|
|
1185
|
+
* ```js
|
|
1186
|
+
* const canvas = createCanvas(60, 30);
|
|
1187
|
+
*
|
|
1188
|
+
* for (let frame = 0; frame < 100; frame++) {
|
|
1189
|
+
* canvas.setPixel(frame % 60, 15, { r: 255, g: 0, b: 0 });
|
|
1190
|
+
*
|
|
1191
|
+
* // Only re-render changed pixels (much faster than full redraw)
|
|
1192
|
+
* process.stdout.write(canvas.render({ dirtyOnly: true }));
|
|
1193
|
+
* await new Promise(r => setTimeout(r, 50));
|
|
1194
|
+
* }
|
|
1195
|
+
* ```
|
|
1196
|
+
*
|
|
1197
|
+
* @example composite sprites
|
|
1198
|
+
* ```js
|
|
1199
|
+
* import { createCanvas, SPRITES } from 'ansimax';
|
|
1200
|
+
*
|
|
1201
|
+
* const canvas = createCanvas(40, 20);
|
|
1202
|
+
* canvas.drawSprite(5, 5, SPRITES.heart.pixels);
|
|
1203
|
+
* canvas.drawSprite(20, 5, SPRITES.star.pixels);
|
|
1204
|
+
* canvas.print();
|
|
1205
|
+
* ```
|
|
1206
|
+
*
|
|
1207
|
+
* @example resize while preserving content
|
|
1208
|
+
* ```js
|
|
1209
|
+
* const canvas = createCanvas(20, 10, { r: 50, g: 50, b: 50 });
|
|
1210
|
+
* canvas.drawCircle(10, 5, 3, { r: 255, g: 0, b: 0 });
|
|
1211
|
+
*
|
|
1212
|
+
* canvas.resize(40, 20); // existing pixels remain in upper-left
|
|
1213
|
+
* canvas.print();
|
|
1214
|
+
* ```
|
|
1215
|
+
*/
|
|
1014
1216
|
declare const createCanvas: (width: number, height: number, fillColor?: Pixel) => Canvas;
|
|
1015
1217
|
declare const images: {
|
|
1016
1218
|
render: (pixels: PixelGrid, opts?: RenderOptions$1) => string;
|
|
@@ -2028,9 +2230,120 @@ declare const vsplit: (blocks: string[], opts?: VsplitOptions) => string;
|
|
|
2028
2230
|
* ```
|
|
2029
2231
|
*/
|
|
2030
2232
|
declare const hsplit: (blocks: string[], opts?: HsplitOptions) => string;
|
|
2233
|
+
interface CenterOptions {
|
|
2234
|
+
/** Total width to center within. Required. */
|
|
2235
|
+
width: number;
|
|
2236
|
+
/**
|
|
2237
|
+
* Vertical alignment if `height` is also specified.
|
|
2238
|
+
* Default `'start'`.
|
|
2239
|
+
*/
|
|
2240
|
+
align?: Alignment;
|
|
2241
|
+
/**
|
|
2242
|
+
* Total height to fit the block into. Optional — if omitted, only
|
|
2243
|
+
* horizontal centering is applied.
|
|
2244
|
+
*/
|
|
2245
|
+
height?: number;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Center a multi-line block horizontally (and optionally vertically)
|
|
2249
|
+
* within a given width/height. Each line is padded with spaces on both
|
|
2250
|
+
* sides; ANSI escapes are preserved.
|
|
2251
|
+
*
|
|
2252
|
+
* @example horizontal centering only
|
|
2253
|
+
* ```js
|
|
2254
|
+
* import { panels } from 'ansimax';
|
|
2255
|
+
*
|
|
2256
|
+
* console.log(panels.center('Hello!', { width: 30 }));
|
|
2257
|
+
* // " Hello! "
|
|
2258
|
+
* ```
|
|
2259
|
+
*
|
|
2260
|
+
* @example multi-line centered in a fixed area
|
|
2261
|
+
* ```js
|
|
2262
|
+
* console.log(panels.center('Line 1\nLine 2\nLine 3', {
|
|
2263
|
+
* width: 30,
|
|
2264
|
+
* height: 7,
|
|
2265
|
+
* align: 'center',
|
|
2266
|
+
* }));
|
|
2267
|
+
* ```
|
|
2268
|
+
*
|
|
2269
|
+
* @example combined with box for a centered card
|
|
2270
|
+
* ```js
|
|
2271
|
+
* import { ascii, panels } from 'ansimax';
|
|
2272
|
+
*
|
|
2273
|
+
* console.log(panels.center(ascii.box('Hello'), { width: 80 }));
|
|
2274
|
+
* // Box appears centered in a 80-wide terminal
|
|
2275
|
+
* ```
|
|
2276
|
+
*/
|
|
2277
|
+
declare const center: (block: string, opts: CenterOptions) => string;
|
|
2278
|
+
interface FrameOptions {
|
|
2279
|
+
/**
|
|
2280
|
+
* Padding (in spaces) between the block content and the inner edge of
|
|
2281
|
+
* the frame. Default `0`.
|
|
2282
|
+
*/
|
|
2283
|
+
padding?: number;
|
|
2284
|
+
/**
|
|
2285
|
+
* Padding above + below the block. If unset, falls back to `padding`.
|
|
2286
|
+
*/
|
|
2287
|
+
paddingY?: number;
|
|
2288
|
+
/**
|
|
2289
|
+
* Padding left + right of the block. If unset, falls back to `padding`.
|
|
2290
|
+
*/
|
|
2291
|
+
paddingX?: number;
|
|
2292
|
+
/**
|
|
2293
|
+
* Top decoration character — e.g. `'─'`, `'═'`, `'━'`, `'·'`.
|
|
2294
|
+
* Default `'─'`.
|
|
2295
|
+
*/
|
|
2296
|
+
topChar?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Bottom decoration character. Default same as `topChar`.
|
|
2299
|
+
*/
|
|
2300
|
+
bottomChar?: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* Optional title shown centered in the top edge.
|
|
2303
|
+
*/
|
|
2304
|
+
title?: string;
|
|
2305
|
+
}
|
|
2306
|
+
/**
|
|
2307
|
+
* Add decorative top/bottom rule lines around a block (lighter than `ascii.box`
|
|
2308
|
+
* which draws four sides). Useful for visual separation without full borders.
|
|
2309
|
+
*
|
|
2310
|
+
* @example simple top/bottom rules
|
|
2311
|
+
* ```js
|
|
2312
|
+
* console.log(panels.frame('Hello world!'));
|
|
2313
|
+
* // ─────────────
|
|
2314
|
+
* // Hello world!
|
|
2315
|
+
* // ─────────────
|
|
2316
|
+
* ```
|
|
2317
|
+
*
|
|
2318
|
+
* @example with title and padding
|
|
2319
|
+
* ```js
|
|
2320
|
+
* console.log(panels.frame('Body content\nMore content', {
|
|
2321
|
+
* title: 'Header',
|
|
2322
|
+
* padding: 1,
|
|
2323
|
+
* }));
|
|
2324
|
+
* // ───── Header ─────
|
|
2325
|
+
* //
|
|
2326
|
+
* // Body content
|
|
2327
|
+
* // More content
|
|
2328
|
+
* //
|
|
2329
|
+
* // ──────────────────
|
|
2330
|
+
* ```
|
|
2331
|
+
*
|
|
2332
|
+
* @example custom decorations
|
|
2333
|
+
* ```js
|
|
2334
|
+
* console.log(panels.frame('Important!', {
|
|
2335
|
+
* topChar: '═',
|
|
2336
|
+
* bottomChar: '═',
|
|
2337
|
+
* padding: 2,
|
|
2338
|
+
* }));
|
|
2339
|
+
* ```
|
|
2340
|
+
*/
|
|
2341
|
+
declare const frame: (block: string, opts?: FrameOptions) => string;
|
|
2031
2342
|
declare const panels: {
|
|
2032
2343
|
vsplit: (blocks: string[], opts?: VsplitOptions) => string;
|
|
2033
2344
|
hsplit: (blocks: string[], opts?: HsplitOptions) => string;
|
|
2345
|
+
center: (block: string, opts: CenterOptions) => string;
|
|
2346
|
+
frame: (block: string, opts?: FrameOptions) => string;
|
|
2034
2347
|
};
|
|
2035
2348
|
|
|
2036
2349
|
/**
|
|
@@ -2071,6 +2384,23 @@ interface PrettyOptions {
|
|
|
2071
2384
|
* Maximum string length before truncation with ellipsis. Default `Infinity`.
|
|
2072
2385
|
*/
|
|
2073
2386
|
maxStringLength?: number;
|
|
2387
|
+
/**
|
|
2388
|
+
* Sort object keys alphabetically. Useful for deterministic diffs (e.g.,
|
|
2389
|
+
* comparing two JSON snapshots) and for visual scanning of large objects.
|
|
2390
|
+
* Default `false` (insertion order preserved).
|
|
2391
|
+
*
|
|
2392
|
+
* @since 1.3.1
|
|
2393
|
+
*/
|
|
2394
|
+
sortKeys?: boolean;
|
|
2395
|
+
/**
|
|
2396
|
+
* Arrays of primitives shorter than this character width (in their
|
|
2397
|
+
* rendered form) are displayed on a single line: `[1, 2, 3]` instead of
|
|
2398
|
+
* three lines. Nested objects/arrays never inline regardless of size.
|
|
2399
|
+
* Set to `0` to disable inlining. Default `60`.
|
|
2400
|
+
*
|
|
2401
|
+
* @since 1.3.1
|
|
2402
|
+
*/
|
|
2403
|
+
inlineArrayMaxLength?: number;
|
|
2074
2404
|
}
|
|
2075
2405
|
/**
|
|
2076
2406
|
* Pretty-print a JavaScript value with colored output suitable for
|
|
@@ -2288,4 +2618,4 @@ declare const ansimax: {
|
|
|
2288
2618
|
configure: (opts?: AnsimaxConfig, meta?: ConfigureOptions) => void;
|
|
2289
2619
|
};
|
|
2290
2620
|
|
|
2291
|
-
export { ASCII_RAMPS, type Alignment, type AnimateGradientController, type AnimateGradientOptions, type AnimationHooks, type AnimationSpeed, type AnsiCode, type AnsimaxConfig, type AsciiRamp, BEL, BG, type BadgeOptions, type BallOptions, type BannerOptions, type BoxOptions, type BoxStyle, type BreatheOptions, DEFAULTS as CONFIG_DEFAULTS, CSI, type Canvas, type CanvasRenderOptions, type ColorChain, type ColorFn, type ColorLevel, type ColorMode, type ColorSupport, type ColumnsOptions, type ConfigChangeListener, type ConfigKey, type ConfigKeyListener, type ConfigureOptions, type CountdownOptions, type CustomOptions, DEFAULT_TERM_COLS, DEFAULT_TERM_ROWS, type DebounceOptions, type DiffType, type Dimensions, type DividerOptions, type DotsOptions, ESC, type EasingFn, type EasingName, type EraseMode, FG, FRAME_MS, type FadeOptions, type FigletFont, type FigletOptions, type FontMap, type FontName, type FrameCallback, type FrameHandle, type FromImageOptions, type GlitchOptions, type Glyph, type GradientOptions, type GradientRectOptions, type HsplitOptions, type PrettyOptions as JsonPrettyOptions, type LineDiff, type LiveController, type LiveOptions, type LoadingBarOptions, type LogoOptions, MENU_CANCELLED, type MemoizeOptions, type MenuInput, type MenuOptions, type MenuOutput, type MenuResult, type MultiLoader, type MultiLoaderItem, OSC, type OnResizeOptions, type OutputBuffer, type ParallelOptions, type ParallelStep, type Pixel, type PixelGrid, type PlayController, type PlayOptions, type PresetName, type ProgressAnimateOptions, type ProgressBarOptions, type ProgressOptions, type PulseOptions, type RGB, type RGBA, type RegisterFontOptions, type RenderOptions$1 as RenderOptions, type ResizeListener, type ReusableGradient, type RevealOptions, SPINNERS, SPRITES, ST, STYLE, type SectionOptions, type SleepOptions, type SlideOptions, type SpinOptions, type SpinnerType, type StatusOptions, type StatusType, type StopFn, type StreamOptions, type TableBorderStyle, type TableOptions, type Task, type TaskResult, type TasksOptions, type Theme, type BannerOpts as ThemeBannerOpts, type ThemeChangeListener, type ThemeInstance, type ThemeStyleName, type TimelineEvent, type TimelineOptions, type TreeData, type TreeDimensions, type TreeNode, type RenderOptions as TreeRenderOptions, type TreeStyle, type TypeDeleteOptions, type TypewriterOptions, type VsplitOptions, type WalkVisitor, type WaveOptions, type WriteAsyncOptions, animate, animateGradient, ascii, bell, bg256, bgRgb, box, canAnimate, cancelTerminalFrame, center, chain, charWidth, clamp, clearAnsiCache, clearColorCache, clearRenderCache, clearThemeColorCache, color, colorLevel, presets as colorPresets, components, compose, configure, countNodes, createCanvas, createGradient, createOutputBuffer, createTheme, cursor, debounce, ansimax as default, diffLines, escapeRegex, fg256, fgRgb, figletText, filterTree, findInTree, flipHorizontal, flipVertical, frames, fromImage, getConfig, getConfigValue, getRenderCacheSize, getSpeedMultiplier, getTerminalHeight, getTerminalWidth, gradient, gradientColor, gradientRect, graphemes, hasFont, hexToRgb, hideCursor, hsplit, images, isHexColor, isNoColor, json, pretty as jsonPretty, lerp, lerpColor, link, listFonts, listPresets, loader, mapTree, measureTree, memoize, nextTick, onConfigChange, onConfigKeyChange, onResize, once, padBoth, padEnd, padStart, panels, parseFiglet, pauseListeners, presetNames, presets, rainbow, registerFont, registerPreset, renderPixelArt, renderTree, renderTreeStream, repeatVisible, requestTerminalFrame, reset, resetColorSupportCache, resetConfig, resetCursorRefCount, resetFramesCursorCount, resetLoaderCursorCount, resetNoColor, resumeListeners, reverseGradient, rgbTo256, rgbToHex, rotate90, safeJson, screen, setNoColor, setTitle, sgr, showCursor, sleep, sleepFrame, sliceAnsi, stripAnsi$1 as stripAnsi, stripAnsi$2 as stripAnsiCodes, stripAnsi as stripAnsiColors, supportsColor, supportsColorLevel, termSize, themes, throttle, tree, trees, truncateAnsi, visibleLen, vsplit, walkTree, withConfig, wordWrap, wrapAnsi, write, writeAsync, writeErr, writeln, writelnErr };
|
|
2621
|
+
export { ASCII_RAMPS, type Alignment, type AnimateGradientController, type AnimateGradientOptions, type AnimationHooks, type AnimationSpeed, type AnsiCode, type AnsimaxConfig, type AsciiRamp, BEL, BG, type BadgeOptions, type BallOptions, type BannerOptions, type BoxOptions, type BoxStyle, type BreatheOptions, DEFAULTS as CONFIG_DEFAULTS, CSI, type Canvas, type CanvasRenderOptions, type CenterOptions, type ColorChain, type ColorFn, type ColorLevel, type ColorMode, type ColorSupport, type ColumnsOptions, type ConfigChangeListener, type ConfigKey, type ConfigKeyListener, type ConfigureOptions, type CountdownOptions, type CustomOptions, DEFAULT_TERM_COLS, DEFAULT_TERM_ROWS, type DebounceOptions, type DiffType, type Dimensions, type DividerOptions, type DotsOptions, ESC, type EasingFn, type EasingName, type EraseMode, FG, FRAME_MS, type FadeOptions, type FigletFont, type FigletOptions, type FontMap, type FontName, type FrameCallback, type FrameHandle, type FrameOptions, type FromImageOptions, type GlitchOptions, type Glyph, type GradientOptions, type GradientRectOptions, type HsplitOptions, type PrettyOptions as JsonPrettyOptions, type LineDiff, type LiveController, type LiveOptions, type LoadingBarOptions, type LogoOptions, MENU_CANCELLED, type MemoizeOptions, type MenuInput, type MenuOptions, type MenuOutput, type MenuResult, type MultiLoader, type MultiLoaderItem, OSC, type OnResizeOptions, type OutputBuffer, type ParallelOptions, type ParallelStep, type Pixel, type PixelGrid, type PlayController, type PlayOptions, type PresetName, type ProgressAnimateOptions, type ProgressBarOptions, type ProgressOptions, type PulseOptions, type RGB, type RGBA, type RegisterFontOptions, type RenderOptions$1 as RenderOptions, type ResizeListener, type ReusableGradient, type RevealOptions, SPINNERS, SPRITES, ST, STYLE, type SectionOptions, type SleepOptions, type SlideOptions, type SpinOptions, type SpinnerType, type StatusOptions, type StatusType, type StopFn, type StreamOptions, type TableBorderStyle, type TableOptions, type Task, type TaskResult, type TasksOptions, type Theme, type BannerOpts as ThemeBannerOpts, type ThemeChangeListener, type ThemeInstance, type ThemeStyleName, type TimelineEvent, type TimelineOptions, type TreeData, type TreeDimensions, type TreeNode, type RenderOptions as TreeRenderOptions, type TreeStyle, type TypeDeleteOptions, type TypewriterOptions, type VsplitOptions, type WalkVisitor, type WaveOptions, type WriteAsyncOptions, animate, animateGradient, ascii, bell, bg256, bgRgb, box, canAnimate, cancelTerminalFrame, center$1 as center, center as centerBlock, chain, charWidth, clamp, clearAnsiCache, clearColorCache, clearRenderCache, clearThemeColorCache, color, colorLevel, presets as colorPresets, components, compose, configure, countNodes, createCanvas, createGradient, createOutputBuffer, createTheme, cursor, debounce, ansimax as default, diffLines, escapeRegex, fg256, fgRgb, figletText, filterTree, findInTree, flipHorizontal, flipVertical, frame, frames, fromImage, getConfig, getConfigValue, getRenderCacheSize, getSpeedMultiplier, getTerminalHeight, getTerminalWidth, gradient, gradientColor, gradientRect, graphemes, hasFont, hexToRgb, hideCursor, hsplit, images, isHexColor, isNoColor, json, pretty as jsonPretty, lerp, lerpColor, link, listFonts, listPresets, loader, mapTree, measureTree, memoize, nextTick, onConfigChange, onConfigKeyChange, onResize, once, padBoth, padEnd, padStart, panels, parseFiglet, pauseListeners, presetNames, presets, rainbow, registerFont, registerPreset, renderPixelArt, renderTree, renderTreeStream, repeatVisible, requestTerminalFrame, reset, resetColorSupportCache, resetConfig, resetCursorRefCount, resetFramesCursorCount, resetLoaderCursorCount, resetNoColor, resumeListeners, reverseGradient, rgbTo256, rgbToHex, rotate90, safeJson, screen, setNoColor, setTitle, sgr, showCursor, sleep, sleepFrame, sliceAnsi, stripAnsi$1 as stripAnsi, stripAnsi$2 as stripAnsiCodes, stripAnsi as stripAnsiColors, supportsColor, supportsColorLevel, termSize, themes, throttle, tree, trees, truncateAnsi, visibleLen, vsplit, walkTree, withConfig, wordWrap, wrapAnsi, write, writeAsync, writeErr, writeln, writelnErr };
|