import{freeze as t}from"./utils/freeze.js";var i=function(){function DOMRectReadOnly(i,h,e,o){return this.x=i,this.y=h,this.width=e,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,t(this)}return DOMRectReadOnly.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},DOMRectReadOnly.fromRect=function(t){return new DOMRectReadOnly(t.x,t.y,t.width,t.height)},DOMRectReadOnly}();export{i as DOMRectReadOnly};