@scandit/web-datacapture-core
Version:
Scandit Data Capture SDK for the Web
1 lines • 622 B
JavaScript
import {a}from'./chunk-ENYHCJGH.js';var r=class e{constructor(i,n,o,u){this._left=i,this._top=n,this._right=o,this._bottom=u;}static get zero(){return new e(new a(0,"pixel"),new a(0,"pixel"),new a(0,"pixel"),new a(0,"pixel"))}get left(){return this._left}get right(){return this._right}get top(){return this._top}get bottom(){return this._bottom}static fromJSON(i){return new e(a.fromJSON(i.left),a.fromJSON(i.top),a.fromJSON(i.right),a.fromJSON(i.bottom))}toJSONObject(){return {left:this.left.toJSONObject(),right:this.right.toJSONObject(),top:this.top.toJSONObject(),bottom:this.bottom.toJSONObject()}}};export{r as a};