UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

53 lines (52 loc) 1.27 kB
import { IgxCaptureImageSettings } from "./igx-capture-image-settings"; export class IgxImageCapturedEventArgs { constructor() { } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } /** * Gets the captured image as Base64. */ get base64Data() { return this.i.base64Data; } /** * Gets the captured image. */ get image() { return this.i.image; } /** * Gets the settings used to capture the image. */ get settings() { const r = this.i.settings; if (r == null) { return null; } if (!r.externalObject) { let e = new IgxCaptureImageSettings(); if (r.$type) { e._implementation = r; } else { if (e.i.setNativeElement) { e.i.setNativeElement(r); } } r.externalObject = e; } return r.externalObject; } }