-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathqrcode-model.d.ts
106 lines (91 loc) · 2.82 KB
/
qrcode-model.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { removeChildElements, refreshCanvasBarcode, exportAsImage } from '../barcode/utility/barcode-util';import { Complex, Property, Component, INotifyPropertyChanged, L10n, Event, EmitType } from '@syncfusion/ej2-base';import { ErrorCorrectionLevel, QRCodeVersion, RenderingMode, BarcodeEvent, BarcodeExportType } from '../barcode/enum/enum';import { DisplayTextModel } from '../barcode/primitives/displaytext-model';import { MarginModel } from '../barcode/primitives/margin-model';import { DisplayText } from '../barcode/primitives/displaytext';import { Margin } from '../barcode/primitives/margin';import { BarcodeRenderer } from '../barcode/rendering/renderer';import { QRCode } from './qr-code-util';import { ValidateEvent } from '../barcode';import { QRCodeLogo } from '../barcode/primitives/icon';import { QRCodeLogoModel } from '../barcode/primitives/icon-model';
import {ComponentModel} from '@syncfusion/ej2-base';
/**
* Interface for a class QRCodeGenerator
*/
export interface QRCodeGeneratorModel extends ComponentModel{
/**
* Defines the height of the QR code model.
*
* @default '100%'
*/
height?: string | number;
/**
* Specifies the logo overlay configuration for the QR code.
*
* @default ''
*/
logo?: QRCodeLogoModel;
/**
* Defines the width of the QR code model.
*
* @default '100%'
*/
width?: string | number;
/**
* Defines the QR code rendering mode.
*
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
*
* @default 'SVG'
*/
mode?: RenderingMode;
/**
* Defines the xDimension of the QR code model.
*
*/
xDimension?: number;
/**
* Defines the error correction level of the QR code.
*
* @aspDefaultValueIgnore
* @aspNumberEnum
* @default undefined
*/
errorCorrectionLevel?: ErrorCorrectionLevel;
/**
* Defines the margin properties for the QR code.
*
* @default ''
*/
margin?: MarginModel;
/**
* Defines the background color of the QR code.
*
* @default 'white'
*/
backgroundColor?: string;
/**
* Triggers if you enter any invalid character.
*
* @event
*/
invalid?: EmitType<Object>;
/**
* Defines the forecolor of the QR code.
*
* @default 'black'
*/
foreColor?: string;
/**
* Defines the text properties for the QR code.
*
* @default ''
*/
displayText?: DisplayTextModel;
/**
* * Defines the version of the QR code.
*
* @aspDefaultValueIgnore
* @aspNumberEnum
* @default undefined
*/
version?: QRCodeVersion;
/**
* Defines the type of barcode to be rendered.
*
* @default undefined
*/
value?: string;
}