1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 52× 1× 87× 87× 87× 87× 652× 652× 652× 652× 641× 641× 641× 641× 625× 625× 16× 16× 641× 641× 641× 1× 641× 641× 1× 20665× 1× 9× 1× 1× 1× | /* istanbul ignore next */ var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); define(["require", "exports", "../../common/utils/helper", "./column-base"], function (require, exports, helper_1, column_base_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var HiloSeries = (function (_super) { __extends(HiloSeries, _super); function HiloSeries() { return _super !== null && _super.apply(this, arguments) || this; } HiloSeries.prototype.render = function (series) { var region; var sideBySideInfo = this.getSideBySideInfo(series); var argsData; for (var _i = 0, _a = series.points; _i < _a.length; _i++) { var point = _a[_i]; point.symbolLocations = []; point.regions = []; if (point.visible && helper_1.withInRange(series.points[point.index - 1], point, series.points[point.index + 1], series)) { region = this.getRectangle(point.xValue + sideBySideInfo.median, point.high, point.xValue + sideBySideInfo.median, point.low, series); argsData = this.triggerPointRenderEvent(series, point); Eif (!argsData.cancel) { if (!series.chart.requireInvertedAxis) { region.width = argsData.border.width; region.x = region.x - (region.width / 2); } else { region.height = argsData.border.width; region.y = region.y - (region.height / 2); } argsData.border.width = 0; this.updateSymbolLocation(point, region, series); this.drawRectangle(series, point, region, argsData); } } } }; HiloSeries.prototype.triggerPointRenderEvent = function (series, point) { var border = { color: series.fill, width: Math.max(series.border.width, 2) }; return _super.prototype.triggerEvent.call(this, series, point, series.interior, border); }; HiloSeries.prototype.getModuleName = function () { return 'HiloSeries'; }; HiloSeries.prototype.doAnimation = function (series) { this.animate(series); }; HiloSeries.prototype.destroy = function (chart) { }; return HiloSeries; }(column_base_1.ColumnBase)); exports.HiloSeries = HiloSeries; }); |