@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 1.29 kB
JavaScript
import {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-HFXWQGKV.js';import {Color}from'@scandit/web-datacapture-core';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this._defaultBackgroundColor=Color.fromHex("#000000");this._defaultTextColor=Color.fromHex("#FFFFFF");let t=this.attachShadow({mode:"open"});t.innerHTML=d(),t.append(e$1()),this.containerElement=t.querySelector(a),this.textElement=t.querySelector(c);}static create(){return e.register(),document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}set icon(t){g(this,t);}get icon(){return f(this)}get backgroundColor(){return h(this,this._defaultBackgroundColor)}set backgroundColor(t){i(this,t);}get text(){return n(this.textElement)}set text(t){o(this.textElement,t);}get textColor(){return j(this,this._defaultTextColor)}set textColor(t){k(this,t);}get textSize(){return l(this)}set textSize(t){m(this,t);}connectedCallback(){this.backgroundColor=this.backgroundColor,this.textColor=this.textColor;}};e.tag="scandit-barcode-ar-info-annotation-footer";var x=e;export{x as a};