@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 1.08 kB
JavaScript
import{Range as e}from"./Range.js";var t=class t{constructor(e){if(e!=null)return t.all[t.all.findIndex(t=>t.identifier===e)]}static get all(){return t.defaults().SymbologyDescriptions}get activeSymbolCountRange(){return this._activeSymbolCountRange}get defaultSymbolCountRange(){return this._defaultSymbolCountRange}get identifier(){return this._identifier}get isAvailable(){return this._isAvailable}get isColorInvertible(){return this._isColorInvertible}get readableName(){return this._readableName}get supportedExtensions(){return[...this._supportedExtensions]}get symbology(){return this.identifier}static forIdentifier(e){return t.all.findIndex(t=>t.identifier===e)===-1?null:new t(e)}static fromJSON(n){let r=new t;return r._identifier=n.identifier,r._readableName=n.readableName,r._isAvailable=n.isAvailable,r._isColorInvertible=n.isColorInvertible,r._activeSymbolCountRange=e.fromJSON(n.activeSymbolCountRange),r._defaultSymbolCountRange=e.fromJSON(n.defaultSymbolCountRange),r._supportedExtensions=new Set(n.supportedExtensions),r}};export{t as SymbologyDescription};