igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
86 lines (85 loc) • 3.19 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { ObservableCollection$1 } from "igniteui-react-core";
import { UserBaseAnnotation } from "./UserBaseAnnotation";
import { markType } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
/**
* @hidden
*/
var UserAnnotationCollection = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(UserAnnotationCollection, _super);
function UserAnnotationCollection() {
var _this = _super.call(this, UserBaseAnnotation.$, 0) || this;
_this.collectionResetting = null;
return _this;
}
UserAnnotationCollection.prototype.p = function () {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
_super.prototype.p.call(this);
};
UserAnnotationCollection.prototype.ae = function (a) {
var b = new List$1(UserBaseAnnotation.$, 0);
for (var c = 0; c < this.count - 1; c++) {
var d = this._inner[c];
if (d.k == a) {
b.add(d);
}
}
return b;
};
UserAnnotationCollection.prototype.removeAll1 = function (a) {
for (var b = this.count - 1; b >= 0; b--) {
var c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
}
}
};
UserAnnotationCollection.prototype.removeFirst = function (a) {
for (var b = 0; b < this.count - 1; b++) {
var c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
return;
}
}
};
UserAnnotationCollection.prototype.removeLast = function (a) {
for (var b = this.count - 1; b >= 0; b--) {
var c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
return;
}
}
};
UserAnnotationCollection.prototype.replaceFirst = function (a, b) {
for (var c = 0; c < this.count - 1; c++) {
var d = this._inner[c];
if (d.k == a) {
this._inner[c] = b;
return;
}
}
};
UserAnnotationCollection.prototype.replaceLast = function (a, b) {
for (var c = this.count - 1; c >= 0; c--) {
var d = this._inner[c];
if (d.k == a) {
this._inner[c] = b;
return;
}
}
};
UserAnnotationCollection.$t = markType(UserAnnotationCollection, 'UserAnnotationCollection', ObservableCollection$1.$.specialize(UserBaseAnnotation.$));
return UserAnnotationCollection;
}(ObservableCollection$1));
export { UserAnnotationCollection };