UNPKG

@animech-public/playcanvas

Version:
2 lines (1 loc) 1.23 kB
import{Component as t}from"../component.js";class i extends t{constructor(t,i){super(t,i),this._minWidth=0,this._minHeight=0,this._maxWidth=null,this._maxHeight=null,this._fitWidthProportion=0,this._fitHeightProportion=0,this._excludeFromLayout=!1}set minWidth(t){t!==this._minWidth&&(this._minWidth=t,this.fire("resize"))}get minWidth(){return this._minWidth}set minHeight(t){t!==this._minHeight&&(this._minHeight=t,this.fire("resize"))}get minHeight(){return this._minHeight}set maxWidth(t){t!==this._maxWidth&&(this._maxWidth=t,this.fire("resize"))}get maxWidth(){return this._maxWidth}set maxHeight(t){t!==this._maxHeight&&(this._maxHeight=t,this.fire("resize"))}get maxHeight(){return this._maxHeight}set fitWidthProportion(t){t!==this._fitWidthProportion&&(this._fitWidthProportion=t,this.fire("resize"))}get fitWidthProportion(){return this._fitWidthProportion}set fitHeightProportion(t){t!==this._fitHeightProportion&&(this._fitHeightProportion=t,this.fire("resize"))}get fitHeightProportion(){return this._fitHeightProportion}set excludeFromLayout(t){t!==this._excludeFromLayout&&(this._excludeFromLayout=t,this.fire("resize"))}get excludeFromLayout(){return this._excludeFromLayout}}export{i as LayoutChildComponent};