blit-browser 0.5.0 → 0.5.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/blit_browser.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export class Terminal {
|
|
|
23
23
|
glyph_ops(): Uint32Array;
|
|
24
24
|
icanon(): boolean;
|
|
25
25
|
invalidate_render_cache(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given row wraps to the next (is part of a longer logical line).
|
|
28
|
+
*/
|
|
29
|
+
is_wrapped(row: number): boolean;
|
|
26
30
|
mouse_encoding(): number;
|
|
27
31
|
mouse_mode(): number;
|
|
28
32
|
constructor(rows: number, cols: number, cell_width: number, cell_height: number);
|
|
@@ -66,6 +70,7 @@ export interface InitOutput {
|
|
|
66
70
|
readonly terminal_glyph_ops: (a: number) => [number, number];
|
|
67
71
|
readonly terminal_icanon: (a: number) => number;
|
|
68
72
|
readonly terminal_invalidate_render_cache: (a: number) => void;
|
|
73
|
+
readonly terminal_is_wrapped: (a: number, b: number) => number;
|
|
69
74
|
readonly terminal_mouse_encoding: (a: number) => number;
|
|
70
75
|
readonly terminal_mouse_mode: (a: number) => number;
|
|
71
76
|
readonly terminal_new: (a: number, b: number, c: number, d: number) => number;
|
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-d7aef99f992a3f5e/inline0.js';
|
|
3
3
|
|
|
4
4
|
export class Terminal {
|
|
5
5
|
__destroy_into_raw() {
|
|
@@ -166,6 +166,15 @@ export class Terminal {
|
|
|
166
166
|
invalidate_render_cache() {
|
|
167
167
|
wasm.terminal_invalidate_render_cache(this.__wbg_ptr);
|
|
168
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns true if the given row wraps to the next (is part of a longer logical line).
|
|
171
|
+
* @param {number} row
|
|
172
|
+
* @returns {boolean}
|
|
173
|
+
*/
|
|
174
|
+
is_wrapped(row) {
|
|
175
|
+
const ret = wasm.terminal_is_wrapped(this.__wbg_ptr, row);
|
|
176
|
+
return ret !== 0;
|
|
177
|
+
}
|
|
169
178
|
/**
|
|
170
179
|
* @returns {number}
|
|
171
180
|
*/
|
|
@@ -284,7 +293,7 @@ function __wbg_get_imports() {
|
|
|
284
293
|
__wbg_beginPath_596efed55075dbc3: function(arg0) {
|
|
285
294
|
arg0.beginPath();
|
|
286
295
|
},
|
|
287
|
-
|
|
296
|
+
__wbg_blitFillTextCodePoint_4815f86799f84b66: function(arg0, arg1, arg2, arg3) {
|
|
288
297
|
blitFillTextCodePoint(arg0, arg1 >>> 0, arg2, arg3);
|
|
289
298
|
},
|
|
290
299
|
__wbg_clearRect_ea4f3d34d76f4bc5: function(arg0, arg1, arg2, arg3, arg4) {
|
package/blit_browser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -20,6 +20,7 @@ export const terminal_glyph_atlas_version: (a: number) => number;
|
|
|
20
20
|
export const terminal_glyph_ops: (a: number) => [number, number];
|
|
21
21
|
export const terminal_icanon: (a: number) => number;
|
|
22
22
|
export const terminal_invalidate_render_cache: (a: number) => void;
|
|
23
|
+
export const terminal_is_wrapped: (a: number, b: number) => number;
|
|
23
24
|
export const terminal_mouse_encoding: (a: number) => number;
|
|
24
25
|
export const terminal_mouse_mode: (a: number) => number;
|
|
25
26
|
export const terminal_new: (a: number, b: number, c: number, d: number) => number;
|
package/package.json
CHANGED
/package/snippets/{blit-browser-c379640eb8b1f039 → blit-browser-d7aef99f992a3f5e}/inline0.js
RENAMED
|
File without changes
|