laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
25 lines (24 loc) • 713 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CharRenderInfo = void 0;
const RenderInfo_1 = require("../../renders/RenderInfo");
class CharRenderInfo {
constructor() {
this.char = '';
this.deleted = false;
this.uv = new Array(8);
this.pos = 0;
this.orix = 0;
this.oriy = 0;
this.touchTick = 0;
this.isSpace = false;
}
touch() {
var curLoop = RenderInfo_1.RenderInfo.loopCount;
if (this.touchTick != curLoop) {
this.tex.touchRect(this, curLoop);
}
this.touchTick = curLoop;
}
}
exports.CharRenderInfo = CharRenderInfo;