UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

93 lines (92 loc) 2.55 kB
/* 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-angular-core"; import { StringBuilder } from "igniteui-angular-core"; /** * @hidden */ export class TreemapVisualData extends Base { constructor() { super(...arguments); this._nodes = null; this._name = null; this._viewport = null; } static { this.$t = markType(TreemapVisualData, 'TreemapVisualData'); } get nodes() { return this._nodes; } set nodes(a) { this._nodes = a; } get name() { return this._name; } set name(a) { this._name = a; } scaleByViewport() { if (this.nodes != null) { for (let a of fromEnum(this.nodes)) { a.f(this.viewport); } } } serialize() { let a = new StringBuilder(0); let b = true; a.u("{"); if (this.nodes != null) { if (b) { b = false; } else { a.m(", "); } let c = true; a.m("Nodes: ["); for (let d of fromEnum(this.nodes)) { if (c) { c = false; } else { a.m(", "); } a.u(d.e()); } a.u("]"); } if (this.name != null) { if (b) { b = false; } else { a.m(", "); } a.m("name: '"); a.m(this.name); a.u("'"); } if (b) { b = false; } else { a.m(", "); } a.m("viewport: {"); a.m("left: " + this.viewport.left + ", top: " + this.viewport.top + ", width: " + this.viewport.width + ", height: " + this.viewport.height); a.u("}"); a.u("}"); return a.toString(); } get viewport() { return this._viewport; } set viewport(a) { this._viewport = a; } }