EvenHub compatibility for iOS

This commit is contained in:
James Babcock committed 2026-09-19 00:48:26 -07:00
1 parent 617cdc39eb
commit 7e58c7c05f
40 files changed
+629 -176

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { grayImageFromPacket } from './image-files';
import { fromData } from './kotlin-data';
import type { GrayImage } from '../graphics/image';
declare const FaceclawGraphics: any;
export function loadIconImage(path: string, maxWidth: number, maxHeight: number): GrayImage | null {
const data = FaceclawGraphics.decodeImageFileMaxWidthMaxHeight(path, Math.round(maxWidth), Math.round(maxHeight));
return data ? grayImageFromPacket(fromData(data)) : null;
}