igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
54 lines (53 loc) • 1.63 kB
JavaScript
import { fromRect, toRect } from "./componentUtil";
/**
* Provides data for rectangle changed events.
*/
var IgxRectChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgxRectChangedEventArgs() {
}
Object.defineProperty(IgxRectChangedEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgxRectChangedEventArgs.prototype.onImplementationCreated = function () {
};
IgxRectChangedEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
};
Object.defineProperty(IgxRectChangedEventArgs.prototype, "oldRect", {
/**
* Gets the rectangle before the change.
*/
get: function () {
return fromRect(this.i.oldRect);
},
set: function (v) {
this.i.oldRect = toRect(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxRectChangedEventArgs.prototype, "newRect", {
/**
* Gets the new rectangle.
*/
get: function () {
return fromRect(this.i.newRect);
},
set: function (v) {
this.i.newRect = toRect(v);
},
enumerable: false,
configurable: true
});
return IgxRectChangedEventArgs;
}());
export { IgxRectChangedEventArgs };