laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
30 lines (29 loc) • 848 B
TypeScript
import { TextTexture } from "./TextTexture";
import { Point } from "../../maths/Point";
/**
* 文字贴图的大图集。
*/
export declare class TextAtlas {
texWidth: number;
texHeight: number;
private atlasgrid;
texture: TextTexture | null;
charMaps: any;
static atlasGridW: number;
constructor();
setProtecteDist(d: number): void;
/**
* 如果返回null,则表示无法加入了
* 分配的时候优先选择最接近自己高度的节点
* @param w
* @param h
* @return
*/
getAEmpty(w: number, h: number, pt: Point): boolean;
/**
* 大图集格子单元的占用率,老的也算上了。只是表示这个大图集还能插入多少东西。
*/
get usedRate(): number;
destroy(): void;
printDebugInfo(): void;
}