@scandit/web-datacapture-core
Version:
Scandit Data Capture SDK for the Web
1 lines • 630 B
JavaScript
import {a}from'./chunk-KAFNKP6O.js';var i=class e{constructor(t,r,p,a){this._topLeft=t,this._topRight=r,this._bottomRight=p,this._bottomLeft=a;}get topLeft(){return this._topLeft}get topRight(){return this._topRight}get bottomRight(){return this._bottomRight}get bottomLeft(){return this._bottomLeft}static fromJSON(t){return new e(a.fromJSON(t.topLeft),a.fromJSON(t.topRight),a.fromJSON(t.bottomRight),a.fromJSON(t.bottomLeft))}toJSONObject(){return {topLeft:this.topLeft.toJSONObject(),topRight:this.topRight.toJSONObject(),bottomLeft:this.bottomLeft.toJSONObject(),bottomRight:this.bottomRight.toJSONObject()}}};export{i as a};