/*
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 { Base, fromEnum, markType } from "igniteui-react-core/ES2015/type";
import { StringBuilder } from "igniteui-react-core/ES2015/StringBuilder";
/**
 * @hidden
 */
export class ArcVisualData extends Base {
    constructor() {
        super(...arguments);
        this.a = null;
        this.b = null;
    }
    d(a) {
        for (let b of fromEnum(this.a)) {
            b.scaleByViewport(a);
        }
    }
    c() {
        let a = new StringBuilder(0);
        let b = true;
        a.u("{");
        if (this.b != null) {
            if (b) {
                b = false;
            }
            else {
                a.l(", ");
            }
            a.l("leaderLine: ");
            a.u(this.b.serialize());
        }
        if (this.a != null) {
            if (b) {
                b = false;
            }
            else {
                a.l(", ");
            }
            a.u("slices: [");
            for (let c = 0; c < this.a.count; c++) {
                if (c != 0) {
                    a.l(", ");
                }
                a.l(this.a._inner[c].serialize());
            }
        }
        a.u("]}");
        return a.toString();
    }
}
ArcVisualData.$t = markType(ArcVisualData, 'ArcVisualData');
