@yam8d/m8-sdk 0.5.5 → 0.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yam8d/m8-sdk",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Client SDK for apps that read and drive a Dirtywave M8, inside a yam8d External Apps iframe or standalone over Web Serial, WebUSB or Web MIDI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,6 +38,13 @@ export type GridRows = {
38
38
  };
39
39
  /** The first and last rows that start with a row number, on grid views that have one; else null. */
40
40
  export declare const gridRows: (viewName: string | null, lines: readonly string[]) => GridRows | null;
41
+ /** Whether the navigator knows this view's grid and learns nothing there. */
42
+ export declare const hasFixedGrid: (viewName: string | null) => boolean;
43
+ /**
44
+ * The cells and moves of a fixed grid view's numbered rows (Up/Down keep the column, Left/Right keep the
45
+ * row); null on other views. Moves past the grid's edges are left out.
46
+ */
47
+ export declare const fixedGridLayout: (viewName: string | null, grid: GridRows | null, metrics: M8CellMetrics) => CursorLayout | null;
41
48
  /** A cursor rectangle as the character cells it covers (column, row, width in characters). */
42
49
  export declare const snapToGrid: (rect: CellRect, metrics: M8CellMetrics) => CellRect;
43
50
  /** The screen row of a cursor cell. */