laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
20 lines (19 loc) • 510 B
JavaScript
import { Pool } from "../../utils/Pool";
export 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.recover("BoundsStyle", this.reset());
}
static create() {
return Pool.getItemByClass("BoundsStyle", BoundsStyle);
}
}