blit-browser 0.8.1 → 0.9.1

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
@@ -55,6 +55,7 @@ export class Terminal {
55
55
  set_cell_size(cell_width: number, cell_height: number): void;
56
56
  set_default_colors(fg_r: number, fg_g: number, fg_b: number, bg_r: number, bg_g: number, bg_b: number): void;
57
57
  set_font_family(font_family: string): void;
58
+ set_font_size(font_size: number): void;
58
59
  title(): string;
59
60
  readonly cols: number;
60
61
  readonly cursor_col: number;
@@ -105,6 +106,7 @@ export interface InitOutput {
105
106
  readonly terminal_set_cell_size: (a: number, b: number, c: number) => void;
106
107
  readonly terminal_set_default_colors: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
107
108
  readonly terminal_set_font_family: (a: number, b: number, c: number) => void;
109
+ readonly terminal_set_font_size: (a: number, b: number) => void;
108
110
  readonly terminal_title: (a: number) => [number, number];
109
111
  readonly wasm_memory: () => any;
110
112
  readonly __wbindgen_exn_store: (a: 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-3468b04a38985509/inline0.js';
2
+ import { blitFillTextCodePoint } from './snippets/blit-browser-c6beedc6262a4663/inline0.js';
3
3
 
4
4
  export class Terminal {
5
5
  __destroy_into_raw() {
@@ -283,6 +283,12 @@ export class Terminal {
283
283
  const len0 = WASM_VECTOR_LEN;
284
284
  wasm.terminal_set_font_family(this.__wbg_ptr, ptr0, len0);
285
285
  }
286
+ /**
287
+ * @param {number} font_size
288
+ */
289
+ set_font_size(font_size) {
290
+ wasm.terminal_set_font_size(this.__wbg_ptr, font_size);
291
+ }
286
292
  /**
287
293
  * @returns {string}
288
294
  */
@@ -327,7 +333,7 @@ function __wbg_get_imports() {
327
333
  __wbg_beginPath_596efed55075dbc3: function(arg0) {
328
334
  arg0.beginPath();
329
335
  },
330
- __wbg_blitFillTextCodePoint_ceff72ca6d2a2c4b: function(arg0, arg1, arg2, arg3) {
336
+ __wbg_blitFillTextCodePoint_d25d8530d2317713: function(arg0, arg1, arg2, arg3) {
331
337
  blitFillTextCodePoint(arg0, arg1 >>> 0, arg2, arg3);
332
338
  },
333
339
  __wbg_clearRect_ea4f3d34d76f4bc5: function(arg0, arg1, arg2, arg3, arg4) {
Binary file
@@ -35,6 +35,7 @@ export const terminal_set_ansi_color: (a: number, b: number, c: number, d: numbe
35
35
  export const terminal_set_cell_size: (a: number, b: number, c: number) => void;
36
36
  export const terminal_set_default_colors: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
37
37
  export const terminal_set_font_family: (a: number, b: number, c: number) => void;
38
+ export const terminal_set_font_size: (a: number, b: number) => void;
38
39
  export const terminal_title: (a: number) => [number, number];
39
40
  export const wasm_memory: () => any;
40
41
  export const __wbindgen_exn_store: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blit-browser",
3
- "version": "0.8.1",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "Low-latency terminal streaming — browser WASM renderer",
6
6
  "main": "blit_browser.js",