igniteui-react-core
Version:
Ignite UI React Core.
78 lines (77 loc) • 2.48 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 { FrameworkElement } from "./FrameworkElement";
import { markType } from "./type";
/**
* @hidden
*/
export let TextBlock = /*@__PURE__*/ (() => {
class TextBlock extends FrameworkElement {
constructor() {
super(...arguments);
this.ag = false;
this.ah = 0;
this.ak = null;
this.ao = null;
this.af = true;
this.ae = null;
this.ad = null;
this.ab = null;
this.ac = null;
this.ai = -1;
}
get al() {
return this.ak;
}
set al(a) {
if (this.ak != a) {
this.af = true;
this.ak = a;
}
}
an(a, b) {
if (this.ai == -1) {
return null;
}
if (!this.af) {
if (this.ab[this.ai] == a) {
return this.ae[this.ai];
}
}
for (let c = 0; c < 5; c++) {
let d = this.ai - c;
if (d < 0) {
d = (5) + d;
}
if (b != this.ac[d] || a != this.ab[d] || this.ak != this.ad[d]) {
continue;
}
return this.ae[d];
}
return null;
}
am(a, b, c) {
if (this.ai == -1) {
this.ad = new Array(5);
this.ab = new Array(5);
this.ac = new Array(5);
this.ae = new Array(5);
}
this.ai++;
if (this.ai > 5 - 1) {
this.ai = 0;
}
this.ad[this.ai] = this.ak;
this.ab[this.ai] = a;
this.ac[this.ai] = b;
this.ae[this.ai] = c;
this.af = false;
}
}
TextBlock.$t = /*@__PURE__*/ markType(TextBlock, 'TextBlock', FrameworkElement.$);
return TextBlock;
})();