-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathicon.ts
32 lines (29 loc) · 1.29 KB
/
icon.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
import { Property, ChildProperty } from '@syncfusion/ej2-base';
/**
* Specifies the logo overlay configuration for the QR code.
*/
export class QRCodeLogo extends ChildProperty<QRCodeLogo> {
/**
* Specifies the source for the logo image. This can be a path to a local file, a URL to a remote file, or a Base64-encoded image string. The logo is placed at the center of the QR code.
*
* @default ''
*/
@Property('')
public imageSource : string;
/**
* Sets the width of the logo in pixels. If not specified, the logo's width will default to 30% of the QR code's dimensions. If the specified width exceeds 30% of the QR code's dimensions, the width will be restricted to 30%.
* Depending on the size of the overlay, you might need to raise the errorCorrectionLevel to "High".
*
* @default 0
*/
@Property(0)
public width: number;
/**
* Sets the height of the logo in pixels. If not specified, the logo's height will default to 30% of the QR code's dimensions. If the specified height exceeds 30% of the QR code's dimensions, the height will be restricted to 30%.
* Depending on the size of the overlay, you might need to raise the errorCorrectionLevel to "High".
*
* @default 0
*/
@Property(0)
public height: number;
}