@utsp/types 0.8.0 → 0.9.0-nightly.20251211152508.63e8b0d
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 +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -783,6 +783,17 @@ interface IRenderer {
|
|
|
783
783
|
* @param cellHeight - Cell height in pixels (includes spacing)
|
|
784
784
|
*/
|
|
785
785
|
setBitmapFont(font: Map<number, Uint8Array>, charWidth: number, charHeight: number, cellWidth: number, cellHeight: number): void;
|
|
786
|
+
/**
|
|
787
|
+
* Set image font (PNG atlas) for extended character rendering
|
|
788
|
+
* @param imageData - PNG image data as Uint8Array
|
|
789
|
+
* @param glyphWidth - Glyph width in pixels
|
|
790
|
+
* @param glyphHeight - Glyph height in pixels
|
|
791
|
+
* @param cellWidth - Cell width in pixels (includes spacing)
|
|
792
|
+
* @param cellHeight - Cell height in pixels (includes spacing)
|
|
793
|
+
* @param atlasBlocks - Number of 256-char blocks (1, 4, or 16)
|
|
794
|
+
* @returns Promise that resolves when font is loaded
|
|
795
|
+
*/
|
|
796
|
+
setImageFont?(imageData: Uint8Array, glyphWidth: number, glyphHeight: number, cellWidth: number, cellHeight: number, atlasBlocks: 1 | 4 | 16): Promise<void>;
|
|
786
797
|
/**
|
|
787
798
|
* Set color palette
|
|
788
799
|
* @param palette - Array of 256 RGB colors
|
package/package.json
CHANGED