UNPKG

@nbxx/nb-input

Version:
44 lines (43 loc) 1.49 kB
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { NbinputConfig, SystemAttachment } from './nbinput.entity'; import { NbinputUploadService } from './nbinput-upload'; export declare class NbinputSignComponent implements AfterViewInit, ControlValueAccessor { private uploader; config: NbinputConfig; private onTouchedCallback; private onChangeCallback; writeValue(val: SystemAttachment): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; scaleRatio(canvasWidth: number, canvasHeight: number, imageWidth: number, imageHeight: number): { width: number; height: number; }; bgImage: string; data: any; canvas: ElementRef; background: ElementRef; onResize(): void; disabled: any; readonly: boolean; isDraw: boolean; editable: boolean; switchEditable(): void; getTrimedImage(): string; onSubmit: EventEmitter<any>; submit(val: SystemAttachment): void; private cx; private bg; ngAfterViewInit(): void; private captureEvents; private drawOnCanvas; initBackground(w: number, h: number): void; clearCanvas(): void; type: any; fileInput: ElementRef; uploadImage(e: any): void; chooseImage(e: any): void; constructor(uploader: NbinputUploadService); }