@utsp/types 0.16.1 → 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.
- package/dist/index.d.ts +7 -7
- 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
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
*
|
|
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
|
-
|
|
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