igniteui-angular-gauges
Version:
Ignite UI Angular gauge components.
109 lines (108 loc) • 3.74 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 { LinearGraphVisualData } from "./LinearGraphVisualData";
import { StringBuilder } from "igniteui-angular-core";
import { markType } from "igniteui-angular-core";
/**
* @hidden
*/
export let LinearGaugeVisualData = /*@__PURE__*/ (() => {
class LinearGaugeVisualData extends LinearGraphVisualData {
constructor() {
super(...arguments);
this._needlePath = null;
this._highlightNeedlePath = null;
this._needle = null;
this._highlightNeedle = null;
}
get needlePath() {
return this._needlePath;
}
set needlePath(a) {
this._needlePath = a;
}
get highlightNeedlePath() {
return this._highlightNeedlePath;
}
set highlightNeedlePath(a) {
this._highlightNeedlePath = a;
}
get needle() {
return this._needle;
}
set needle(a) {
this._needle = a;
}
get highlightNeedle() {
return this._highlightNeedle;
}
set highlightNeedle(a) {
this._highlightNeedle = a;
}
scaleByViewport() {
super.scaleByViewport();
if (this.needlePath != null) {
this.needlePath.scaleByViewport(this.viewport);
}
if (this.highlightNeedlePath != null) {
this.highlightNeedlePath.scaleByViewport(this.viewport);
}
}
serialize() {
let a = super.serialize();
let b = new StringBuilder(0);
let c = a.length == 0;
if (this.needlePath != null) {
if (c) {
c = false;
}
else {
b.l(", ");
}
b.l("needlePath: ");
b.u(this.needlePath.serialize());
}
if (this.needle != null) {
if (c) {
c = false;
}
else {
b.l(", ");
}
b.l("needle: ");
b.u(this.needle.serialize());
}
if (this.highlightNeedlePath != null) {
if (c) {
c = false;
}
else {
b.l(", ");
}
b.l("highlightNeedlePath: ");
b.u(this.highlightNeedlePath.serialize());
}
if (this.highlightNeedle != null) {
if (c) {
c = false;
}
else {
b.l(", ");
}
b.l("highlightNeedle: ");
b.u(this.highlightNeedle.serialize());
}
if (c) {
return a;
}
b.l("}");
return a.substr(0, a.length - 1) + b.toString();
}
}
LinearGaugeVisualData.$t = markType(LinearGaugeVisualData, 'LinearGaugeVisualData', LinearGraphVisualData.$);
return LinearGaugeVisualData;
})();