@vizejs/fresco-native 0.343.0 → 0.347.7
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/index.d.ts +35 -1
- package/index.js +2 -0
- package/package.json +1 -1
- package/vize-fresco.darwin-arm64.node +0 -0
- package/vize-fresco.darwin-x64.node +0 -0
- package/vize-fresco.linux-arm64-gnu.node +0 -0
- package/vize-fresco.linux-arm64-musl.node +0 -0
- package/vize-fresco.linux-x64-gnu.node +0 -0
- package/vize-fresco.linux-x64-musl.node +0 -0
- package/vize-fresco.win32-arm64-msvc.node +0 -0
- package/vize-fresco.win32-x64-msvc.node +0 -0
package/index.d.ts
CHANGED
|
@@ -78,6 +78,17 @@ export interface FlexStyleNapi {
|
|
|
78
78
|
/** Flush the terminal buffer. */
|
|
79
79
|
export declare function flushTerminal(): void
|
|
80
80
|
|
|
81
|
+
/** Flush the terminal buffer and return exact presentation telemetry. */
|
|
82
|
+
export declare function flushTerminalMeasured(): FrameOutputTelemetryNapi
|
|
83
|
+
|
|
84
|
+
/** Exact output cost of one NAPI-driven terminal frame. */
|
|
85
|
+
export interface FrameOutputTelemetryNapi {
|
|
86
|
+
/** Cells differing from the previous frame, including wide continuations. */
|
|
87
|
+
changedCells: bigint
|
|
88
|
+
/** Bytes accepted by the configured terminal writer. */
|
|
89
|
+
bytesWritten: bigint
|
|
90
|
+
}
|
|
91
|
+
|
|
81
92
|
/** Get all layout results. */
|
|
82
93
|
export declare function getAllLayouts(): Array<LayoutResultNapi>
|
|
83
94
|
|
|
@@ -90,7 +101,12 @@ export declare function getLastRenderLayouts(): Array<LayoutResultNapi>
|
|
|
90
101
|
/** Get layout result for a node. */
|
|
91
102
|
export declare function getLayout(id: number): LayoutResultNapi | null
|
|
92
103
|
|
|
93
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Resolve the complete standard-output capability profile.
|
|
106
|
+
*
|
|
107
|
+
* Size discovery falls back to positive `COLUMNS` and `LINES` values, then
|
|
108
|
+
* 80x24. The result therefore remains available for redirected output.
|
|
109
|
+
*/
|
|
94
110
|
export declare function getTerminalInfo(): TerminalInfoNapi
|
|
95
111
|
|
|
96
112
|
/** Hide cursor. */
|
|
@@ -300,6 +316,24 @@ export interface TerminalInfoNapi {
|
|
|
300
316
|
colors: boolean
|
|
301
317
|
/** Whether true color (24-bit) is supported */
|
|
302
318
|
trueColor: boolean
|
|
319
|
+
/** Maximum color depth: monochrome, ansi-16, ansi-256, or true-color */
|
|
320
|
+
colorDepth: string
|
|
321
|
+
/** Stable explanation for the selected color depth */
|
|
322
|
+
colorReason: string
|
|
323
|
+
/** Whether Unicode presentation is enabled */
|
|
324
|
+
unicode: boolean
|
|
325
|
+
/** Stable explanation for Unicode or ASCII presentation */
|
|
326
|
+
unicodeReason: string
|
|
327
|
+
/** Whether interactive terminal modes are safe */
|
|
328
|
+
interactive: boolean
|
|
329
|
+
/** Stable explanation for interactive-mode selection */
|
|
330
|
+
interactiveReason: string
|
|
331
|
+
/** Whether standard output is redirected */
|
|
332
|
+
redirected: boolean
|
|
333
|
+
/** Whether the current viewport selects the narrow layout */
|
|
334
|
+
narrow: boolean
|
|
335
|
+
/** Width below which the narrow layout is selected */
|
|
336
|
+
narrowWidth: number
|
|
303
337
|
}
|
|
304
338
|
|
|
305
339
|
/** Terminal initialization options for NAPI. */
|
package/index.js
CHANGED
|
@@ -324,6 +324,7 @@ const {
|
|
|
324
324
|
getTerminalInfo,
|
|
325
325
|
clearScreen,
|
|
326
326
|
flushTerminal,
|
|
327
|
+
flushTerminalMeasured,
|
|
327
328
|
syncTerminalSize,
|
|
328
329
|
} = nativeBinding;
|
|
329
330
|
|
|
@@ -363,4 +364,5 @@ module.exports.restoreTerminal = restoreTerminal;
|
|
|
363
364
|
module.exports.getTerminalInfo = getTerminalInfo;
|
|
364
365
|
module.exports.clearScreen = clearScreen;
|
|
365
366
|
module.exports.flushTerminal = flushTerminal;
|
|
367
|
+
module.exports.flushTerminalMeasured = flushTerminalMeasured;
|
|
366
368
|
module.exports.syncTerminalSize = syncTerminalSize;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|