UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

7 lines (4 loc) 856 B
import { e } from './chunk-PE6EDL2S.js'; import { AnchorPositions, Quadrilateral } from '@scandit/web-datacapture-core'; var o=class i{get barcode(){return this._barcode}get deltaTime(){return this._deltaTime}get identifier(){return this._identifier}get location(){return this._location}get shouldAnimateFromPreviousToNextState(){return this._shouldAnimateFromPreviousToNextState}get anchorPositions(){return this._anchorPositions}static fromJSON(e$1){let r=new i;return r._deltaTime=e$1.deltaTime,r._identifier=Number.parseInt(e$1.identifier,10),r._shouldAnimateFromPreviousToNextState=e$1.shouldAnimateFromPreviousToNextState,r._barcode=e.fromJSON(e$1.barcode),r._anchorPositions=AnchorPositions.fromJSON(e$1.anchorPositions),r._location=Quadrilateral.fromJSON(e$1.location),r}getAnchorPosition(e){return this._anchorPositions[e]}}; export { o as a };