@utsp/types 0.17.0-nightly.20260114213208.c9c64d9 → 0.17.0-nightly.20260120215017.712755a

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -941,14 +941,13 @@ interface IRenderer {
941
941
  */
942
942
  getCanvas(): unknown;
943
943
  /**
944
- * Set bitmap font for character rendering
945
- * @param font - Map of character codes to bitmap data (Uint8Array per character)
946
- * @param charWidth - Character width in pixels
947
- * @param charHeight - Character height in pixels
948
- * @param cellWidth - Cell width in pixels (includes spacing)
949
- * @param cellHeight - Cell height in pixels (includes spacing)
944
+ * Set image font structure (allocate texture)
945
+ */
946
+ setImageFontStructure?(glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
947
+ /**
948
+ * Set image font data block
950
949
  */
951
- setBitmapFont(font: Map<number, Uint8Array>, charWidth: number, charHeight: number, cellWidth: number, cellHeight: number): void;
950
+ setImageFontBlock?(blockIndex: number, data: Uint8Array): Promise<void>;
952
951
  /**
953
952
  * Set image font (PNG atlas) for extended character rendering
954
953
  * @param imageData - PNG image data as Uint8Array
@@ -958,6 +957,7 @@ interface IRenderer {
958
957
  * @param cellHeight - Cell height in pixels (includes spacing)
959
958
  * @param atlasBlocks - Number of 256-char blocks (1, 4, or 16)
960
959
  * @returns Promise that resolves when font is loaded
960
+ * @deprecated Use setImageFontStructure and setImageFontBlock
961
961
  */
962
962
  setImageFont?(imageData: Uint8Array, glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
963
963
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utsp/types",
3
- "version": "0.17.0-nightly.20260114213208.c9c64d9",
3
+ "version": "0.17.0-nightly.20260120215017.712755a",
4
4
  "description": "Type definitions and interfaces for UTSP (Universal Tile Stream Protocol)",
5
5
  "author": "THP Software",
6
6
  "license": "MIT",