UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

1 lines 548 B
var p={barcodeCapture:"smartScanSelection",sparkScan:"smartScanSelectionForSparkScan"},a=class o{constructor(e){this.type=e;}static forMode(e){let r=e,t=p[r.type];if(t)return new o(t);let c=r.type.charAt(0).toUpperCase()+r.type.slice(1);throw new Error(`SmartScanSelection overlay is not supported for ${c} mode.`)}setBrush(e){this.brush=e;}setErrorBrush(e){this.errorBrush=e;}toJSONObject(){var e,r;return {type:this.type,brush:(e=this.brush)==null?void 0:e.toJSONObject(),errorBrush:(r=this.errorBrush)==null?void 0:r.toJSONObject()}}};export{a};