@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 759 B
JavaScript
import{Barcode as e}from"./Barcode.js";import{AnchorPositions as t,Quadrilateral as n}from"@scandit/web-datacapture-core";var r=class r{get barcode(){return this._barcode}get identifier(){return this._identifier}get location(){return this._location}get shouldAnimateFromPreviousToNextState(){return this._shouldAnimateFromPreviousToNextState}get anchorPositions(){return this._anchorPositions}static fromJSON(i){let a=new r;return a._identifier=Number.parseInt(i.identifier,10),a._shouldAnimateFromPreviousToNextState=i.shouldAnimateFromPreviousToNextState,a._barcode=e.fromJSON(i.barcode),a._anchorPositions=t.fromJSON(i.anchorPositions),a._location=n.fromJSON(i.location),a}getAnchorPosition(e){return this._anchorPositions[e]}};export{r as TrackedBarcode};