igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
64 lines (63 loc) • 2.25 kB
JavaScript
import { CaptureImageFormat_$type } from "./CaptureImageFormat";
import { CaptureImageSettings as CaptureImageSettings_internal } from "./CaptureImageSettings";
import { ensureEnum, ensureBool } from "./componentUtil";
var IgxCaptureImageSettings = /** @class */ /*@__PURE__*/ (function () {
function IgxCaptureImageSettings() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgxCaptureImageSettings.prototype.createImplementation = function () {
return new CaptureImageSettings_internal();
};
Object.defineProperty(IgxCaptureImageSettings.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgxCaptureImageSettings.prototype.onImplementationCreated = function () {
};
IgxCaptureImageSettings.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
};
Object.defineProperty(IgxCaptureImageSettings.prototype, "format", {
get: function () {
return this.i.a;
},
set: function (v) {
this.i.a = ensureEnum(CaptureImageFormat_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxCaptureImageSettings.prototype, "addToClipboard", {
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = ensureBool(v);
},
enumerable: false,
configurable: true
});
IgxCaptureImageSettings.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
return IgxCaptureImageSettings;
}());
export { IgxCaptureImageSettings };