laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
24 lines (23 loc) • 666 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoundsStyle = void 0;
const Pool_1 = require("../../utils/Pool");
class BoundsStyle {
reset() {
if (this.bounds)
this.bounds.recover();
if (this.userBounds)
this.userBounds.recover();
this.bounds = null;
this.userBounds = null;
this.temBM = null;
return this;
}
recover() {
Pool_1.Pool.recover("BoundsStyle", this.reset());
}
static create() {
return Pool_1.Pool.getItemByClass("BoundsStyle", BoundsStyle);
}
}
exports.BoundsStyle = BoundsStyle;