blit-browser 0.7.3 → 0.8.0
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/blit_browser.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export class Terminal {
|
|
|
50
50
|
*/
|
|
51
51
|
overflow_text_op(index: number): any;
|
|
52
52
|
prepare_render_ops(): void;
|
|
53
|
+
scrollback_lines(): number;
|
|
53
54
|
set_ansi_color(idx: number, r: number, g: number, b: number): void;
|
|
54
55
|
set_cell_size(cell_width: number, cell_height: number): void;
|
|
55
56
|
set_default_colors(fg_r: number, fg_g: number, fg_b: number, bg_r: number, bg_g: number, bg_b: number): void;
|
|
@@ -99,6 +100,7 @@ export interface InitOutput {
|
|
|
99
100
|
readonly terminal_overflow_text_op: (a: number, b: number) => any;
|
|
100
101
|
readonly terminal_prepare_render_ops: (a: number) => void;
|
|
101
102
|
readonly terminal_rows: (a: number) => number;
|
|
103
|
+
readonly terminal_scrollback_lines: (a: number) => number;
|
|
102
104
|
readonly terminal_set_ansi_color: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
103
105
|
readonly terminal_set_cell_size: (a: number, b: number, c: number) => void;
|
|
104
106
|
readonly terminal_set_default_colors: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
package/blit_browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @ts-self-types="./blit_browser.d.ts" */
|
|
2
|
-
import { blitFillTextCodePoint } from './snippets/blit-browser-
|
|
2
|
+
import { blitFillTextCodePoint } from './snippets/blit-browser-12f04933223f50b6/inline0.js';
|
|
3
3
|
|
|
4
4
|
export class Terminal {
|
|
5
5
|
__destroy_into_raw() {
|
|
@@ -241,6 +241,13 @@ export class Terminal {
|
|
|
241
241
|
const ret = wasm.terminal_rows(this.__wbg_ptr);
|
|
242
242
|
return ret;
|
|
243
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* @returns {number}
|
|
246
|
+
*/
|
|
247
|
+
scrollback_lines() {
|
|
248
|
+
const ret = wasm.terminal_scrollback_lines(this.__wbg_ptr);
|
|
249
|
+
return ret >>> 0;
|
|
250
|
+
}
|
|
244
251
|
/**
|
|
245
252
|
* @param {number} idx
|
|
246
253
|
* @param {number} r
|
|
@@ -320,7 +327,7 @@ function __wbg_get_imports() {
|
|
|
320
327
|
__wbg_beginPath_596efed55075dbc3: function(arg0) {
|
|
321
328
|
arg0.beginPath();
|
|
322
329
|
},
|
|
323
|
-
|
|
330
|
+
__wbg_blitFillTextCodePoint_4e31578d6efbfa78: function(arg0, arg1, arg2, arg3) {
|
|
324
331
|
blitFillTextCodePoint(arg0, arg1 >>> 0, arg2, arg3);
|
|
325
332
|
},
|
|
326
333
|
__wbg_clearRect_ea4f3d34d76f4bc5: function(arg0, arg1, arg2, arg3, arg4) {
|
package/blit_browser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -30,6 +30,7 @@ export const terminal_overflow_text_count: (a: number) => number;
|
|
|
30
30
|
export const terminal_overflow_text_op: (a: number, b: number) => any;
|
|
31
31
|
export const terminal_prepare_render_ops: (a: number) => void;
|
|
32
32
|
export const terminal_rows: (a: number) => number;
|
|
33
|
+
export const terminal_scrollback_lines: (a: number) => number;
|
|
33
34
|
export const terminal_set_ansi_color: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
34
35
|
export const terminal_set_cell_size: (a: number, b: number, c: number) => void;
|
|
35
36
|
export const terminal_set_default_colors: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
package/package.json
CHANGED
/package/snippets/{blit-browser-6201a0d8f68cda32 → blit-browser-12f04933223f50b6}/inline0.js
RENAMED
|
File without changes
|