UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

270 lines (269 loc) 8.56 kB
import { HeatTileGenerator as HeatTileGenerator_internal } from "./HeatTileGenerator"; import { colorToString, stringToColor, ensureBool } from "./componentUtil"; var IgxHeatTileGenerator = /** @class */ /*@__PURE__*/ (function () { function IgxHeatTileGenerator() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); } IgxHeatTileGenerator.prototype.createImplementation = function () { return new HeatTileGenerator_internal(); }; Object.defineProperty(IgxHeatTileGenerator.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgxHeatTileGenerator.prototype.onImplementationCreated = function () { }; IgxHeatTileGenerator.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); }; Object.defineProperty(IgxHeatTileGenerator.prototype, "scaleColors", { get: function () { if (this.i.scaleColors == null) { return null; } var c = []; for (var i = 0; i < this.i.scaleColors.length; i++) { c.push(colorToString(this.i.scaleColors[i])); } return c; }, set: function (v) { if (v == null) { this.i.scaleColors = null; return; } var c = []; for (var i = 0; i < v.length; i++) { c.push(stringToColor(v[i])); } this.i.scaleColors = c; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "yValues", { get: function () { return this.i.k; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.k = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "xValues", { get: function () { return this.i.j; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.j = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "values", { get: function () { return this.i.i; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.i = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "minimumColor", { get: function () { return colorToString(this.i.by); }, set: function (v) { this.i.by = stringToColor(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "maximumColor", { get: function () { return colorToString(this.i.bx); }, set: function (v) { this.i.bx = stringToColor(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "scaleColorOffsets", { get: function () { return this.i.g; }, set: function (v) { if (v && !Array.isArray(v) && typeof (v) == "string") { var re = /\s*(?:,|\s|$)\s*/gm; v = v.split(re); } this.i.g = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "blurRadius", { get: function () { return this.i.ap; }, set: function (v) { this.i.ap = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "maxBlurRadius", { get: function () { return this.i.ar; }, set: function (v) { this.i.ar = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "useBlurRadiusAdjustedForZoom", { get: function () { return this.i.u; }, set: function (v) { this.i.u = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "useGlobalMinMax", { get: function () { return this.i.v; }, set: function (v) { this.i.v = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "useGlobalMinMaxAdjustedForZoom", { get: function () { return this.i.w; }, set: function (v) { this.i.w = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "minimumValue", { get: function () { return this.i.at; }, set: function (v) { this.i.at = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "maximumValue", { get: function () { return this.i.as; }, set: function (v) { this.i.as = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "logarithmBase", { get: function () { return this.i.aq; }, set: function (v) { this.i.aq = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "useLogarithmicScale", { get: function () { return this.i.x; }, set: function (v) { this.i.x = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "useWebWorkers", { get: function () { return this.i.y; }, set: function (v) { this.i.y = ensureBool(v); }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "webWorkerScriptPath", { get: function () { return this.i.bi; }, set: function (v) { this.i.bi = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgxHeatTileGenerator.prototype, "webWorkerInstance", { get: function () { return this.i.az; }, set: function (v) { this.i.az = v; }, enumerable: false, configurable: true }); IgxHeatTileGenerator.prototype.findByName = function (name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; }; IgxHeatTileGenerator.prototype.destroy = function () { this.i.bo(); }; IgxHeatTileGenerator.prototype.getTile = function (z, x, y, onCreated, onCreating, zoomChanging, existingImage) { this.i.getTile(z, x, y, onCreated, onCreating, zoomChanging, existingImage); }; IgxHeatTileGenerator.prototype.cancelTile = function (z, x, y) { this.i.cancelTile(z, x, y); }; return IgxHeatTileGenerator; }()); export { IgxHeatTileGenerator };