Skip to content

Commit

Permalink
#46 fixed typings
Browse files Browse the repository at this point in the history
  • Loading branch information
werthdavid committed Oct 13, 2021
1 parent 69015fa commit aa3d595
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-kjua",
"description": "Angular QR-Code generator component.",
"version": "1.13.1",
"version": "1.13.2",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
14 changes: 7 additions & 7 deletions src/app/modules/ngx-kjua/ngx-kjua.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class NgxKjuaComponent implements AfterViewInit, OnChanges {
* pixel-ratio; undefined for devicePixelRatio
*/
@Input()
ratio = undefined;
ratio: number | null = undefined;

/**
* code color
Expand Down Expand Up @@ -109,13 +109,13 @@ export class NgxKjuaComponent implements AfterViewInit, OnChanges {
* label/image size and pos in pc= 0..100
*/
@Input()
mSize = 30;
mSize: number|number[] = 30;
@Input()
mPosX = 50;
mPosX: number|number[] = 50;
@Input()
mPosY = 50;
mPosY: number|number[] = 50;
@Input()
image = undefined;
image: null | HTMLImageElement | string = undefined;
@Input()
imageAsCode = false;

Expand Down Expand Up @@ -143,13 +143,13 @@ export class NgxKjuaComponent implements AfterViewInit, OnChanges {
* the qr-code (which is either an img or a canvas)
*/
@Input()
cssClass;
cssClass: string;

/**
* an optional HTML-ID-attribute for the element (works only with render-mode SVG and image)
*/
@Input()
elementId;
elementId: string;

@Output()
codeFinished = new EventEmitter<any>();
Expand Down

0 comments on commit aa3d595

Please sign in to comment.