igniteui-react-core
Version:
Ignite UI React Core.
65 lines (64 loc) • 1.93 kB
JavaScript
import { fromRect, toRect } from "./componentUtil";
/**
* Provides data for rectangle changed events.
*/
var IgrRectChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrRectChangedEventArgs() {
this.mounted = false;
}
Object.defineProperty(IgrRectChangedEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRectChangedEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrRectChangedEventArgs.prototype.onImplementationCreated = function () {
};
IgrRectChangedEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrRectChangedEventArgs.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(IgrRectChangedEventArgs.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 IgrRectChangedEventArgs;
}());
export { IgrRectChangedEventArgs };