import { CssColor } from '@breadstone/mosaik-themes'; import { QRErrorCorrection } from '../../../Types/QRErrorCorrection'; import { CustomElement } from '../../Abstracts/CustomElement'; import { IQRCodeElementProps } from './IQRCodeElementProps'; declare const QRCodeElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * QR Code - A machine-readable code consisting of an array of black and white squares, typically used for storing URLs or other information that can be scanned by a smartphone camera. * * @csspart canvas - The canvas part. * * @cssprop {String} --qr-code-background-color - The code background color CSS custom property. * @cssprop {String} --qr-code-foreground-color - The code foreground color CSS custom property. * @cssprop {String} --qr-code-padding-bottom - The code padding bottom CSS custom property. * @cssprop {String} --qr-code-padding-left - The code padding left CSS custom property. * @cssprop {String} --qr-code-padding-right - The code padding right CSS custom property. * @cssprop {String} --qr-code-padding-top - The code padding top CSS custom property. * @cssprop {String} --qrcode-background-color - The background color CSS custom property. * @cssprop {String} --qrcode-font-family - The font family CSS custom property. * @cssprop {String} --qrcode-font-letter-spacing - The font letter spacing CSS custom property. * @cssprop {String} --qrcode-font-line-height - The font line height CSS custom property. * @cssprop {String} --qrcode-font-size - The font size CSS custom property. * @cssprop {String} --qrcode-font-text-decoration - The font text decoration CSS custom property. * @cssprop {String} --qrcode-font-text-transform - The font text transform CSS custom property. * @cssprop {String} --qrcode-font-weight - The font weight CSS custom property. * @cssprop {String} --qrcode-foreground-color - The foreground color CSS custom property. * @cssprop {String} --qrcode-gap - The gap CSS custom property. * @cssprop {String} --qrcode-padding-bottom - The padding bottom CSS custom property. * @cssprop {String} --qrcode-padding-left - The padding left CSS custom property. * @cssprop {String} --qrcode-padding-right - The padding right CSS custom property. * @cssprop {String} --qrcode-padding-top - The padding top CSS custom property. * @cssprop {String} --qrcode-shadow - The shadow CSS custom property. * @cssprop {String} --qrcode-shadow-blur - The shadow blur CSS custom property. * @cssprop {String} --qrcode-shadow-color - The shadow color CSS custom property. * @cssprop {String} --qrcode-shadow-offset-x - The shadow offset x CSS custom property. * @cssprop {String} --qrcode-shadow-offset-y - The shadow offset y CSS custom property. * @cssprop {String} --qrcode-shadow-spread - The shadow spread CSS custom property. * @cssprop {String} --qrcode-transition-duration - The transition duration CSS custom property. * @cssprop {String} --qrcode-transition-mode - The transition mode CSS custom property. * @cssprop {String} --qrcode-transition-property - The transition property CSS custom property. * @cssprop {String} --qrcode-translate - The translate CSS custom property. * * @example * ```html * * * * * * * * * ``` * * @public */ export declare class QRCodeElement extends QRCodeElement_base implements IQRCodeElementProps { private _canvas; private _text; private _radius; private _dimension; private _errorCorrection; private _backgroundColor; private _foregroundColor; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `text` property. * * @public */ get text(): string; set text(value: string); /** * Gets or sets the `radius` property. * * @public */ get radius(): number; set radius(value: number); /** * Gets or sets the `dimension` property. * * @public */ get dimension(): number; set dimension(value: number); /** * Gets or sets the `errorCorrection` property. * * @public * @attr */ get errorCorrection(): QRErrorCorrection; set errorCorrection(value: QRErrorCorrection); /** * Gets or sets the `backgroundColor` property of the QR code. * If not set (`null` or `undefind`), the background color will respect the CSS variable `--qr-code-background-color`. * * @public * @attr */ get backgroundColor(): CssColor | null | undefined; set backgroundColor(value: CssColor | null | undefined); /** * Gets or sets the `foregroundColor` property of the QR code. * If not set (`null` or `undefind`), the fill color will respect the CSS variable `--qr-code-foreground-color`. * * @public * @attr */ get foregroundColor(): CssColor | null | undefined; set foregroundColor(value: CssColor | null | undefined); /** * Returns qr code image as data URL (see https://mdn.io/todataurl for the list of possible paramters). * * @public */ toDataURL(imageType?: string, quality?: number): string; /** * Returns qr code image as data URL trimmed from white space. * * @public */ toBlob(): Blob; /** * @protected * @override */ protected onApplyTemplate(): void; /** * @protected */ protected onTextPropertyChanged(_prev?: string, _next?: string): void; /** * @protected */ protected onRadiusPropertyChanged(_prev?: number, _next?: number): void; /** * @protected */ protected onDimensionPropertyChanged(_prev?: number, _next?: number): void; /** * @protected */ protected onErrorCorrectionPropertyChanged(_prev?: QRErrorCorrection, _next?: QRErrorCorrection): void; /** * @protected */ protected onBackgroundColorPropertyChanged(_prev?: CssColor | null, _next?: CssColor | null): void; /** * @protected */ protected onForegroundColorPropertyChanged(_prev?: CssColor | null, _next?: CssColor | null): void; /** * @private */ private invalidate; /** * @private */ private dataURLToBlob; } /** * @public */ export declare namespace QRCodeElement { type Props = IQRCodeElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-qrcode': QRCodeElement; } } export {}; //# sourceMappingURL=QRCodeElement.d.ts.map