igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
84 lines (83 loc) • 3.02 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 { ObservableCollection$1 } from "igniteui-angular-core";
import { UserBaseAnnotation } from "./UserBaseAnnotation";
import { markType } from "igniteui-angular-core";
import { List$1 } from "igniteui-angular-core";
/**
* @hidden
*/
export let UserAnnotationCollection = /*@__PURE__*/ (() => {
class UserAnnotationCollection extends ObservableCollection$1 {
constructor() {
super(UserBaseAnnotation.$, 0);
this.collectionResetting = null;
}
p() {
if (this.collectionResetting != null) {
this.collectionResetting(this, null);
}
super.p();
}
ae(a) {
let b = new List$1(UserBaseAnnotation.$, 0);
for (let c = 0; c < this.count - 1; c++) {
let d = this._inner[c];
if (d.k == a) {
b.add(d);
}
}
return b;
}
removeAll1(a) {
for (let b = this.count - 1; b >= 0; b--) {
let c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
}
}
}
removeFirst(a) {
for (let b = 0; b < this.count - 1; b++) {
let c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
return;
}
}
}
removeLast(a) {
for (let b = this.count - 1; b >= 0; b--) {
let c = this._inner[b];
if (c.k == a) {
this.removeAt(b);
return;
}
}
}
replaceFirst(a, b) {
for (let c = 0; c < this.count - 1; c++) {
let d = this._inner[c];
if (d.k == a) {
this._inner[c] = b;
return;
}
}
}
replaceLast(a, b) {
for (let c = this.count - 1; c >= 0; c--) {
let d = this._inner[c];
if (d.k == a) {
this._inner[c] = b;
return;
}
}
}
}
UserAnnotationCollection.$t = markType(UserAnnotationCollection, 'UserAnnotationCollection', ObservableCollection$1.$.specialize(UserBaseAnnotation.$));
return UserAnnotationCollection;
})();