Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
ActionAidWeb
/
View File Name :
16-es2015.caabfbe9fcd2ac18acc4.js
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[16],{ /***/ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-normalized.component.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-normalized.component.js ***! \*************************************************************************************************/ /*! exports provided: AreaChartNormalizedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaChartNormalizedComponent", function() { return AreaChartNormalizedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AreaChartNormalizedComponent = /** @class */ (function (_super) { __extends(AreaChartNormalizedComponent, _super); function AreaChartNormalizedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.showGridLines = true; _this.curve = d3_shape__WEBPACK_IMPORTED_MODULE_2__["curveLinear"]; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.tooltipDisabled = false; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.timelineHeight = 50; _this.timelinePadding = 10; return _this; } AreaChartNormalizedComponent.prototype.update = function () { var _this = this; _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.timeline) { this.dims.height -= this.timelineHeight + this.margin[2] + this.timelinePadding; } this.xDomain = this.getXDomain(); if (this.filteredDomain) { this.xDomain = this.filteredDomain; } this.yDomain = this.getYDomain(); this.seriesDomain = this.getSeriesDomain(); this.xScale = this.getXScale(this.xDomain, this.dims.width); this.yScale = this.getYScale(this.yDomain, this.dims.height); var _loop_1 = function (i) { var val = this_1.xSet[i]; var d0 = 0; var total = 0; for (var _i = 0, _a = this_1.results; _i < _a.length; _i++) { var group = _a[_i]; var d = group.series.find(function (item) { var a = item.name; var b = val; if (_this.scaleType === 'time') { a = a.valueOf(); b = b.valueOf(); } return a === b; }); if (d) { total += d.value; } } for (var _b = 0, _c = this_1.results; _b < _c.length; _b++) { var group = _c[_b]; var d = group.series.find(function (item) { var a = item.name; var b = val; if (_this.scaleType === 'time') { a = a.valueOf(); b = b.valueOf(); } return a === b; }); if (d) { d.d0 = d0; d.d1 = d0 + d.value; d0 += d.value; } else { d = { name: val, value: 0, d0: d0, d1: d0 }; group.series.push(d); } if (total > 0) { d.d0 = (d.d0 * 100) / total; d.d1 = (d.d1 * 100) / total; } else { d.d0 = 0; d.d1 = 0; } } }; var this_1 = this; for (var i = 0; i < this.xSet.length; i++) { _loop_1(i); } this.updateTimeline(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; this.clipPathId = 'clip' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_6__["id"])().toString(); this.clipPath = "url(#" + this.clipPathId + ")"; }; AreaChartNormalizedComponent.prototype.updateTimeline = function () { if (this.timeline) { this.timelineWidth = this.dims.width; this.timelineXDomain = this.getXDomain(); this.timelineXScale = this.getXScale(this.timelineXDomain, this.timelineWidth); this.timelineYScale = this.getYScale(this.yDomain, this.timelineHeight); this.timelineTransform = "translate(" + this.dims.xOffset + ", " + -this.margin[2] + ")"; } }; AreaChartNormalizedComponent.prototype.getXDomain = function () { var values = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getUniqueXDomainValues"])(this.results); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getScaleType"])(values); var domain = []; if (this.scaleType === 'time') { var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); domain = [new Date(min), new Date(max)]; this.xSet = values.slice().sort(function (a, b) { var aDate = a.getTime(); var bDate = b.getTime(); if (aDate > bDate) return 1; if (bDate > aDate) return -1; return 0; }); } else if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); domain = [min, max]; // Use compare function to sort numbers numerically this.xSet = values.slice().sort(function (a, b) { return a - b; }); } else { domain = values; this.xSet = values; } return domain; }; AreaChartNormalizedComponent.prototype.getYDomain = function () { return [0, 100]; }; AreaChartNormalizedComponent.prototype.getSeriesDomain = function () { return this.results.map(function (d) { return d.name; }); }; AreaChartNormalizedComponent.prototype.getXScale = function (domain, width) { var scale; if (this.scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleTime"])(); } else if (this.scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])(); } else if (this.scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scalePoint"])().padding(0.1); } scale.range([0, width]).domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartNormalizedComponent.prototype.getYScale = function (domain, height) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([height, 0]) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartNormalizedComponent.prototype.updateDomain = function (domain) { this.filteredDomain = domain; this.xDomain = this.filteredDomain; this.xScale = this.getXScale(this.xDomain, this.dims.width); }; AreaChartNormalizedComponent.prototype.updateHoveredVertical = function (item) { this.hoveredVertical = item.value; this.deactivateAll(); }; AreaChartNormalizedComponent.prototype.hideCircles = function () { this.hoveredVertical = null; this.deactivateAll(); }; AreaChartNormalizedComponent.prototype.onClick = function (data, series) { if (series) { data.series = series.name; } this.select.emit(data); }; AreaChartNormalizedComponent.prototype.trackBy = function (index, item) { return item.name; }; AreaChartNormalizedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.seriesDomain; } else { domain = this.yDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; AreaChartNormalizedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.seriesDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.yDomain; opts.colors = this.colors.scale; } return opts; }; AreaChartNormalizedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; AreaChartNormalizedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; AreaChartNormalizedComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; AreaChartNormalizedComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; AreaChartNormalizedComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartNormalizedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartNormalizedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "timeline", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartNormalizedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartNormalizedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartNormalizedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartNormalizedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartNormalizedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartNormalizedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartNormalizedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartNormalizedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartNormalizedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartNormalizedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartNormalizedComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('seriesTooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartNormalizedComponent.prototype, "seriesTooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], AreaChartNormalizedComponent.prototype, "hideCircles", null); AreaChartNormalizedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-area-chart-normalized', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [activeEntries]=\"activeEntries\"\n [gradient]=\"gradient\"\n normalized=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [showPercentage]=\"true\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results\">\n <svg:g\n ngx-charts-circle-series\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n normalized=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], AreaChartNormalizedComponent); return AreaChartNormalizedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=area-chart-normalized.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-stacked.component.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-stacked.component.js ***! \**********************************************************************************************/ /*! exports provided: AreaChartStackedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaChartStackedComponent", function() { return AreaChartStackedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AreaChartStackedComponent = /** @class */ (function (_super) { __extends(AreaChartStackedComponent, _super); function AreaChartStackedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.showGridLines = true; _this.curve = d3_shape__WEBPACK_IMPORTED_MODULE_2__["curveLinear"]; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.tooltipDisabled = false; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.timelineHeight = 50; _this.timelinePadding = 10; return _this; } AreaChartStackedComponent.prototype.update = function () { var _this = this; _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.timeline) { this.dims.height -= this.timelineHeight + this.margin[2] + this.timelinePadding; } this.xDomain = this.getXDomain(); if (this.filteredDomain) { this.xDomain = this.filteredDomain; } this.yDomain = this.getYDomain(); this.seriesDomain = this.getSeriesDomain(); this.xScale = this.getXScale(this.xDomain, this.dims.width); this.yScale = this.getYScale(this.yDomain, this.dims.height); var _loop_1 = function (i) { var val = this_1.xSet[i]; var d0 = 0; for (var _i = 0, _a = this_1.results; _i < _a.length; _i++) { var group = _a[_i]; var d = group.series.find(function (item) { var a = item.name; var b = val; if (_this.scaleType === 'time') { a = a.valueOf(); b = b.valueOf(); } return a === b; }); if (d) { d.d0 = d0; d.d1 = d0 + d.value; d0 += d.value; } else { d = { name: val, value: 0, d0: d0, d1: d0 }; group.series.push(d); } } }; var this_1 = this; for (var i = 0; i < this.xSet.length; i++) { _loop_1(i); } this.updateTimeline(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; this.clipPathId = 'clip' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_6__["id"])().toString(); this.clipPath = "url(#" + this.clipPathId + ")"; }; AreaChartStackedComponent.prototype.updateTimeline = function () { if (this.timeline) { this.timelineWidth = this.dims.width; this.timelineXDomain = this.getXDomain(); this.timelineXScale = this.getXScale(this.timelineXDomain, this.timelineWidth); this.timelineYScale = this.getYScale(this.yDomain, this.timelineHeight); this.timelineTransform = "translate(" + this.dims.xOffset + ", " + -this.margin[2] + ")"; } }; AreaChartStackedComponent.prototype.getXDomain = function () { var values = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getUniqueXDomainValues"])(this.results); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getScaleType"])(values); var domain = []; if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); } var min; var max; if (this.scaleType === 'time' || this.scaleType === 'linear') { min = this.xScaleMin ? this.xScaleMin : Math.min.apply(Math, values); max = this.xScaleMax ? this.xScaleMax : Math.max.apply(Math, values); } if (this.scaleType === 'time') { domain = [new Date(min), new Date(max)]; this.xSet = values.slice().sort(function (a, b) { var aDate = a.getTime(); var bDate = b.getTime(); if (aDate > bDate) return 1; if (bDate > aDate) return -1; return 0; }); } else if (this.scaleType === 'linear') { domain = [min, max]; // Use compare function to sort numbers numerically this.xSet = values.slice().sort(function (a, b) { return a - b; }); } else { domain = values; this.xSet = values; } return domain; }; AreaChartStackedComponent.prototype.getYDomain = function () { var _this = this; var domain = []; var _loop_2 = function (i) { var val = this_2.xSet[i]; var sum = 0; for (var _i = 0, _a = this_2.results; _i < _a.length; _i++) { var group = _a[_i]; var d = group.series.find(function (item) { var a = item.name; var b = val; if (_this.scaleType === 'time') { a = a.valueOf(); b = b.valueOf(); } return a === b; }); if (d) { sum += d.value; } } domain.push(sum); }; var this_2 = this; for (var i = 0; i < this.xSet.length; i++) { _loop_2(i); } var min = this.yScaleMin ? this.yScaleMin : Math.min.apply(Math, [0].concat(domain)); var max = this.yScaleMax ? this.yScaleMax : Math.max.apply(Math, domain); return [min, max]; }; AreaChartStackedComponent.prototype.getSeriesDomain = function () { return this.results.map(function (d) { return d.name; }); }; AreaChartStackedComponent.prototype.getXScale = function (domain, width) { var scale; if (this.scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleTime"])(); } else if (this.scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])(); } else if (this.scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scalePoint"])().padding(0.1); } scale.range([0, width]).domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartStackedComponent.prototype.getYScale = function (domain, height) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([height, 0]) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartStackedComponent.prototype.updateDomain = function (domain) { this.filteredDomain = domain; this.xDomain = this.filteredDomain; this.xScale = this.getXScale(this.xDomain, this.dims.width); }; AreaChartStackedComponent.prototype.updateHoveredVertical = function (item) { this.hoveredVertical = item.value; this.deactivateAll(); }; AreaChartStackedComponent.prototype.hideCircles = function () { this.hoveredVertical = null; this.deactivateAll(); }; AreaChartStackedComponent.prototype.onClick = function (data, series) { if (series) { data.series = series.name; } this.select.emit(data); }; AreaChartStackedComponent.prototype.trackBy = function (index, item) { return item.name; }; AreaChartStackedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.seriesDomain; } else { domain = this.yDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; AreaChartStackedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.seriesDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.yDomain; opts.colors = this.colors.scale; } return opts; }; AreaChartStackedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; AreaChartStackedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; AreaChartStackedComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; AreaChartStackedComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; AreaChartStackedComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartStackedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartStackedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "timeline", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartStackedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartStackedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartStackedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartStackedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartStackedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartStackedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartStackedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "xScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartStackedComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartStackedComponent.prototype, "yScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartStackedComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartStackedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartStackedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartStackedComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('seriesTooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartStackedComponent.prototype, "seriesTooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], AreaChartStackedComponent.prototype, "hideCircles", null); AreaChartStackedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-area-chart-stacked', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [activeEntries]=\"activeEntries\"\n stacked=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-circle-series\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n stacked=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], AreaChartStackedComponent); return AreaChartStackedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=area-chart-stacked.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.component.js": /*!**************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.component.js ***! \**************************************************************************************/ /*! exports provided: AreaChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaChartComponent", function() { return AreaChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AreaChartComponent = /** @class */ (function (_super) { __extends(AreaChartComponent, _super); function AreaChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.baseValue = 'auto'; _this.showGridLines = true; _this.curve = d3_shape__WEBPACK_IMPORTED_MODULE_2__["curveLinear"]; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.tooltipDisabled = false; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.timelineHeight = 50; _this.timelinePadding = 10; return _this; } AreaChartComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.timeline) { this.dims.height -= this.timelineHeight + this.margin[2] + this.timelinePadding; } this.xDomain = this.getXDomain(); if (this.filteredDomain) { this.xDomain = this.filteredDomain; } this.yDomain = this.getYDomain(); this.seriesDomain = this.getSeriesDomain(); this.xScale = this.getXScale(this.xDomain, this.dims.width); this.yScale = this.getYScale(this.yDomain, this.dims.height); this.updateTimeline(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + ", " + this.margin[0] + ")"; this.clipPathId = 'clip' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_6__["id"])().toString(); this.clipPath = "url(#" + this.clipPathId + ")"; }; AreaChartComponent.prototype.updateTimeline = function () { if (this.timeline) { this.timelineWidth = this.dims.width; this.timelineXDomain = this.getXDomain(); this.timelineXScale = this.getXScale(this.timelineXDomain, this.timelineWidth); this.timelineYScale = this.getYScale(this.yDomain, this.timelineHeight); this.timelineTransform = "translate(" + this.dims.xOffset + ", " + -this.margin[2] + ")"; } }; AreaChartComponent.prototype.getXDomain = function () { var values = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getUniqueXDomainValues"])(this.results); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getScaleType"])(values); var domain = []; if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); } var min; var max; if (this.scaleType === 'time' || this.scaleType === 'linear') { min = this.xScaleMin ? this.xScaleMin : Math.min.apply(Math, values); max = this.xScaleMax ? this.xScaleMax : Math.max.apply(Math, values); } if (this.scaleType === 'time') { domain = [new Date(min), new Date(max)]; this.xSet = values.slice().sort(function (a, b) { var aDate = a.getTime(); var bDate = b.getTime(); if (aDate > bDate) return 1; if (bDate > aDate) return -1; return 0; }); } else if (this.scaleType === 'linear') { domain = [min, max]; // Use compare function to sort numbers numerically this.xSet = values.slice().sort(function (a, b) { return a - b; }); } else { domain = values; this.xSet = values; } return domain; }; AreaChartComponent.prototype.getYDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.value)) { domain.push(d.value); } } } var values = domain.slice(); if (!this.autoScale) { values.push(0); } if (this.baseValue !== 'auto') { values.push(this.baseValue); } var min = this.yScaleMin ? this.yScaleMin : Math.min.apply(Math, values); var max = this.yScaleMax ? this.yScaleMax : Math.max.apply(Math, values); return [min, max]; }; AreaChartComponent.prototype.getSeriesDomain = function () { return this.results.map(function (d) { return d.name; }); }; AreaChartComponent.prototype.getXScale = function (domain, width) { var scale; if (this.scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleTime"])(); } else if (this.scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])(); } else if (this.scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scalePoint"])().padding(0.1); } scale.range([0, width]).domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartComponent.prototype.getYScale = function (domain, height) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([height, 0]) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; AreaChartComponent.prototype.getScaleType = function (values) { var date = true; var num = true; for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { var value = values_1[_i]; if (!this.isDate(value)) { date = false; } if (typeof value !== 'number') { num = false; } } if (date) { return 'time'; } if (num) { return 'linear'; } return 'ordinal'; }; AreaChartComponent.prototype.isDate = function (value) { if (value instanceof Date) { return true; } return false; }; AreaChartComponent.prototype.updateDomain = function (domain) { this.filteredDomain = domain; this.xDomain = this.filteredDomain; this.xScale = this.getXScale(this.xDomain, this.dims.width); }; AreaChartComponent.prototype.updateHoveredVertical = function (item) { this.hoveredVertical = item.value; this.deactivateAll(); }; AreaChartComponent.prototype.hideCircles = function () { this.hoveredVertical = null; this.deactivateAll(); }; AreaChartComponent.prototype.onClick = function (data, series) { if (series) { data.series = series.name; } this.select.emit(data); }; AreaChartComponent.prototype.trackBy = function (index, item) { return item.name; }; AreaChartComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.seriesDomain; } else { domain = this.yDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; AreaChartComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.seriesDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.yDomain; opts.colors = this.colors.scale; } return opts; }; AreaChartComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; AreaChartComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; AreaChartComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; AreaChartComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; AreaChartComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "state", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "baseValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "autoScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "timeline", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AreaChartComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaChartComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "xScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaChartComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartComponent.prototype, "yScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AreaChartComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AreaChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('seriesTooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AreaChartComponent.prototype, "seriesTooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], AreaChartComponent.prototype, "hideCircles", null); AreaChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-area-chart', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [baseValue]=\"baseValue\"\n [colors]=\"colors\"\n [data]=\"series\"\n [activeEntries]=\"activeEntries\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results\">\n <svg:g\n ngx-charts-circle-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [baseValue]=\"baseValue\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], AreaChartComponent); return AreaChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=area-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.module.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.module.js ***! \***********************************************************************************/ /*! exports provided: AreaChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaChartModule", function() { return AreaChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _area_chart_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area-chart.component */ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.component.js"); /* harmony import */ var _area_chart_normalized_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./area-chart-normalized.component */ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-normalized.component.js"); /* harmony import */ var _area_chart_stacked_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./area-chart-stacked.component */ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart-stacked.component.js"); /* harmony import */ var _area_series_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./area-series.component */ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-series.component.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var AreaChartModule = /** @class */ (function () { function AreaChartModule() { } AreaChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_5__["ChartCommonModule"]], declarations: [ _area_chart_component__WEBPACK_IMPORTED_MODULE_1__["AreaChartComponent"], _area_chart_normalized_component__WEBPACK_IMPORTED_MODULE_2__["AreaChartNormalizedComponent"], _area_chart_stacked_component__WEBPACK_IMPORTED_MODULE_3__["AreaChartStackedComponent"], _area_series_component__WEBPACK_IMPORTED_MODULE_4__["AreaSeriesComponent"] ], exports: [ _area_chart_component__WEBPACK_IMPORTED_MODULE_1__["AreaChartComponent"], _area_chart_normalized_component__WEBPACK_IMPORTED_MODULE_2__["AreaChartNormalizedComponent"], _area_chart_stacked_component__WEBPACK_IMPORTED_MODULE_3__["AreaChartStackedComponent"], _area_series_component__WEBPACK_IMPORTED_MODULE_4__["AreaSeriesComponent"] ] }) ], AreaChartModule); return AreaChartModule; }()); //# sourceMappingURL=area-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-series.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/area-chart/area-series.component.js ***! \***************************************************************************************/ /*! exports provided: AreaSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaSeriesComponent", function() { return AreaSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _utils_sort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/sort */ "./node_modules/@swimlane/ngx-charts/release/utils/sort.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AreaSeriesComponent = /** @class */ (function () { function AreaSeriesComponent() { this.baseValue = 'auto'; this.stacked = false; this.normalized = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } AreaSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; AreaSeriesComponent.prototype.update = function () { var _this = this; this.updateGradient(); var currentArea; var startingArea; var xProperty = function (d) { var label = d.name; return _this.xScale(label); }; if (this.stacked || this.normalized) { currentArea = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(xProperty) .y0(function (d, i) { return _this.yScale(d.d0); }) .y1(function (d, i) { return _this.yScale(d.d1); }); startingArea = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(xProperty) .y0(function (d) { return _this.yScale.range()[0]; }) .y1(function (d) { return _this.yScale.range()[0]; }); } else { currentArea = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(xProperty) .y0(function () { return _this.baseValue === 'auto' ? _this.yScale.range()[0] : _this.yScale(_this.baseValue); }) .y1(function (d) { return _this.yScale(d.value); }); startingArea = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(xProperty) .y0(function (d) { return _this.baseValue === 'auto' ? _this.yScale.range()[0] : _this.yScale(_this.baseValue); }) .y1(function (d) { return _this.baseValue === 'auto' ? _this.yScale.range()[0] : _this.yScale(_this.baseValue); }); } currentArea.curve(this.curve); startingArea.curve(this.curve); this.opacity = .8; var data = this.data.series; if (this.scaleType === 'linear') { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_2__["sortLinear"])(data, 'name'); } else if (this.scaleType === 'time') { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_2__["sortByTime"])(data, 'name'); } else { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_2__["sortByDomain"])(data, 'name', 'asc', this.xScale.domain()); } this.path = currentArea(data); this.startingPath = startingArea(data); }; AreaSeriesComponent.prototype.updateGradient = function () { if (this.colors.scaleType === 'linear') { this.hasGradient = true; if (this.stacked || this.normalized) { var d0values = this.data.series.map(function (d) { return d.d0; }); var d1values = this.data.series.map(function (d) { return d.d1; }); var max = Math.max.apply(Math, d1values); var min = Math.min.apply(Math, d0values); this.gradientStops = this.colors.getLinearGradientStops(max, min); } else { var values = this.data.series.map(function (d) { return d.value; }); var max = Math.max.apply(Math, values); this.gradientStops = this.colors.getLinearGradientStops(max); } } else { this.hasGradient = false; this.gradientStops = undefined; } }; AreaSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item !== undefined; }; AreaSeriesComponent.prototype.isInactive = function (entry) { if (!this.activeEntries || this.activeEntries.length === 0) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item === undefined; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "baseValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaSeriesComponent.prototype, "stacked", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaSeriesComponent.prototype, "normalized", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], AreaSeriesComponent.prototype, "select", void 0); AreaSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-area-series]', template: "\n <svg:g ngx-charts-area\n class=\"area-series\"\n [data]=\"data\"\n [path]=\"path\"\n [fill]=\"colors.getColor(data.name)\"\n [stops]=\"gradientStops\"\n [startingPath]=\"startingPath\"\n [opacity]=\"opacity\"\n [gradient]=\"gradient || hasGradient\"\n [animations]=\"animations\"\n [class.active]=\"isActive(data)\"\n [class.inactive]=\"isInactive(data)\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], AreaSeriesComponent); return AreaSeriesComponent; }()); //# sourceMappingURL=area-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-chart.module.js": /*!*********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-chart.module.js ***! \*********************************************************************************/ /*! exports provided: BarChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarChartModule", function() { return BarChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _bar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar.component.js"); /* harmony import */ var _bar_horizontal_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bar-horizontal.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal.component.js"); /* harmony import */ var _bar_horizontal_2d_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bar-horizontal-2d.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-2d.component.js"); /* harmony import */ var _bar_horizontal_normalized_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./bar-horizontal-normalized.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-normalized.component.js"); /* harmony import */ var _bar_horizontal_stacked_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./bar-horizontal-stacked.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-stacked.component.js"); /* harmony import */ var _bar_vertical_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bar-vertical.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical.component.js"); /* harmony import */ var _bar_vertical_2d_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./bar-vertical-2d.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-2d.component.js"); /* harmony import */ var _bar_vertical_normalized_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./bar-vertical-normalized.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-normalized.component.js"); /* harmony import */ var _bar_vertical_stacked_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./bar-vertical-stacked.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-stacked.component.js"); /* harmony import */ var _series_horizontal_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./series-horizontal.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/series-horizontal.component.js"); /* harmony import */ var _series_vertical_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./series-vertical.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/series-vertical.component.js"); /* harmony import */ var _bar_label_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./bar-label.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-label.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var BarChartModule = /** @class */ (function () { function BarChartModule() { } BarChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _bar_component__WEBPACK_IMPORTED_MODULE_2__["BarComponent"], _bar_horizontal_component__WEBPACK_IMPORTED_MODULE_3__["BarHorizontalComponent"], _bar_horizontal_2d_component__WEBPACK_IMPORTED_MODULE_4__["BarHorizontal2DComponent"], _bar_horizontal_normalized_component__WEBPACK_IMPORTED_MODULE_5__["BarHorizontalNormalizedComponent"], _bar_horizontal_stacked_component__WEBPACK_IMPORTED_MODULE_6__["BarHorizontalStackedComponent"], _bar_vertical_component__WEBPACK_IMPORTED_MODULE_7__["BarVerticalComponent"], _bar_vertical_2d_component__WEBPACK_IMPORTED_MODULE_8__["BarVertical2DComponent"], _bar_vertical_normalized_component__WEBPACK_IMPORTED_MODULE_9__["BarVerticalNormalizedComponent"], _bar_vertical_stacked_component__WEBPACK_IMPORTED_MODULE_10__["BarVerticalStackedComponent"], _bar_label_component__WEBPACK_IMPORTED_MODULE_13__["BarLabelComponent"], _series_horizontal_component__WEBPACK_IMPORTED_MODULE_11__["SeriesHorizontal"], _series_vertical_component__WEBPACK_IMPORTED_MODULE_12__["SeriesVerticalComponent"] ], exports: [ _bar_component__WEBPACK_IMPORTED_MODULE_2__["BarComponent"], _bar_horizontal_component__WEBPACK_IMPORTED_MODULE_3__["BarHorizontalComponent"], _bar_horizontal_2d_component__WEBPACK_IMPORTED_MODULE_4__["BarHorizontal2DComponent"], _bar_horizontal_normalized_component__WEBPACK_IMPORTED_MODULE_5__["BarHorizontalNormalizedComponent"], _bar_horizontal_stacked_component__WEBPACK_IMPORTED_MODULE_6__["BarHorizontalStackedComponent"], _bar_vertical_component__WEBPACK_IMPORTED_MODULE_7__["BarVerticalComponent"], _bar_vertical_2d_component__WEBPACK_IMPORTED_MODULE_8__["BarVertical2DComponent"], _bar_vertical_normalized_component__WEBPACK_IMPORTED_MODULE_9__["BarVerticalNormalizedComponent"], _bar_vertical_stacked_component__WEBPACK_IMPORTED_MODULE_10__["BarVerticalStackedComponent"], _bar_label_component__WEBPACK_IMPORTED_MODULE_13__["BarLabelComponent"], _series_horizontal_component__WEBPACK_IMPORTED_MODULE_11__["SeriesHorizontal"], _series_vertical_component__WEBPACK_IMPORTED_MODULE_12__["SeriesVerticalComponent"] ] }) ], BarChartModule); return BarChartModule; }()); //# sourceMappingURL=bar-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-2d.component.js": /*!********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-2d.component.js ***! \********************************************************************************************/ /*! exports provided: BarHorizontal2DComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarHorizontal2DComponent", function() { return BarHorizontal2DComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarHorizontal2DComponent = /** @class */ (function (_super) { __extends(BarHorizontal2DComponent, _super); function BarHorizontal2DComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.groupPadding = 16; _this.barPadding = 8; _this.roundDomains = false; _this.roundEdges = true; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxWidth = { negative: 0, positive: 0 }; return _this; } BarHorizontal2DComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxWidth = { negative: 0, positive: 0 }; } this.margin = [10, 20 + this.dataLabelMaxWidth.positive, 10, 20 + this.dataLabelMaxWidth.negative]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valuesDomain = this.getValueDomain(); this.groupScale = this.getGroupScale(); this.innerScale = this.getInnerScale(); this.valueScale = this.getValueScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; BarHorizontal2DComponent.prototype.getGroupScale = function () { var spacing = this.groupDomain.length / (this.dims.height / this.groupPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.height]) .paddingInner(spacing) .paddingOuter(spacing / 2) .domain(this.groupDomain); }; BarHorizontal2DComponent.prototype.getInnerScale = function () { var height = this.groupScale.bandwidth(); var spacing = this.innerDomain.length / (height / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, height]) .paddingInner(spacing) .domain(this.innerDomain); }; BarHorizontal2DComponent.prototype.getValueScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.valuesDomain); return this.roundDomains ? scale.nice() : scale; }; BarHorizontal2DComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarHorizontal2DComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarHorizontal2DComponent.prototype.getValueDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.value)) { domain.push(d.value); } } } var min = Math.min.apply(Math, [0].concat(domain)); var max = this.xScaleMax ? Math.max.apply(Math, [this.xScaleMax].concat(domain)) : Math.max.apply(Math, [0].concat(domain)); return [min, max]; }; BarHorizontal2DComponent.prototype.groupTransform = function (group) { return "translate(0, " + this.groupScale(group.label) + ")"; }; BarHorizontal2DComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarHorizontal2DComponent.prototype.trackBy = function (index, item) { return item.name; }; BarHorizontal2DComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valuesDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarHorizontal2DComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valuesDomain; opts.colors = this.colors.scale; } return opts; }; BarHorizontal2DComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarHorizontal2DComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarHorizontal2DComponent.prototype.onDataLabelMaxWidthChanged = function (event, groupIndex) { var _this = this; if (event.size.negative) { this.dataLabelMaxWidth.negative = Math.max(this.dataLabelMaxWidth.negative, event.size.width); } else { this.dataLabelMaxWidth.positive = Math.max(this.dataLabelMaxWidth.positive, event.size.width); } if (groupIndex === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarHorizontal2DComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarHorizontal2DComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontal2DComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontal2DComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontal2DComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontal2DComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontal2DComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontal2DComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontal2DComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontal2DComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "groupPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontal2DComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontal2DComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontal2DComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontal2DComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontal2DComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarHorizontal2DComponent.prototype, "tooltipTemplate", void 0); BarHorizontal2DComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-horizontal-2d', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-grid-panel-series\n [xScale]=\"valueScale\"\n [yScale]=\"groupScale\"\n [data]=\"results\"\n [dims]=\"dims\"\n orient=\"horizontal\"\n ></svg:g>\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"valueScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"groupScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n [yAxisOffset]=\"dataLabelMaxWidth.negative\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n *ngFor=\"let group of results; let index = index; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n >\n <svg:g\n ngx-charts-series-horizontal\n [xScale]=\"valueScale\"\n [activeEntries]=\"activeEntries\"\n [yScale]=\"innerScale\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [seriesName]=\"group.name\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n (dataLabelWidthChanged)=\"onDataLabelMaxWidthChanged($event, index)\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarHorizontal2DComponent); return BarHorizontal2DComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-horizontal-2d.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-normalized.component.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-normalized.component.js ***! \****************************************************************************************************/ /*! exports provided: BarHorizontalNormalizedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarHorizontalNormalizedComponent", function() { return BarHorizontalNormalizedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarHorizontalNormalizedComponent = /** @class */ (function (_super) { __extends(BarHorizontalNormalizedComponent, _super); function BarHorizontalNormalizedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; return _this; } BarHorizontalNormalizedComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valueDomain = this.getValueDomain(); this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; BarHorizontalNormalizedComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarHorizontalNormalizedComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarHorizontalNormalizedComponent.prototype.getValueDomain = function () { return [0, 100]; }; BarHorizontalNormalizedComponent.prototype.getYScale = function () { var spacing = this.groupDomain.length / (this.dims.height / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.height]) .paddingInner(spacing) .domain(this.groupDomain); }; BarHorizontalNormalizedComponent.prototype.getXScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.valueDomain); return this.roundDomains ? scale.nice() : scale; }; BarHorizontalNormalizedComponent.prototype.groupTransform = function (group) { return "translate(0, " + this.yScale(group.name) + ")"; }; BarHorizontalNormalizedComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarHorizontalNormalizedComponent.prototype.trackBy = function (index, item) { return item.name; }; BarHorizontalNormalizedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valueDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarHorizontalNormalizedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valueDomain; opts.colors = this.colors.scale; } return opts; }; BarHorizontalNormalizedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarHorizontalNormalizedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarHorizontalNormalizedComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarHorizontalNormalizedComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalNormalizedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalNormalizedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalNormalizedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalNormalizedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalNormalizedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalNormalizedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalNormalizedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalNormalizedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalNormalizedComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalNormalizedComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalNormalizedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalNormalizedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarHorizontalNormalizedComponent.prototype, "tooltipTemplate", void 0); BarHorizontalNormalizedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-horizontal-normalized', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n *ngFor=\"let group of results; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n >\n <svg:g\n ngx-charts-series-horizontal\n type=\"normalized\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [activeEntries]=\"activeEntries\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [seriesName]=\"group.name\"\n [animations]=\"animations\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n [noBarWhenZero]=\"noBarWhenZero\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarHorizontalNormalizedComponent); return BarHorizontalNormalizedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-horizontal-normalized.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-stacked.component.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal-stacked.component.js ***! \*************************************************************************************************/ /*! exports provided: BarHorizontalStackedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarHorizontalStackedComponent", function() { return BarHorizontalStackedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarHorizontalStackedComponent = /** @class */ (function (_super) { __extends(BarHorizontalStackedComponent, _super); function BarHorizontalStackedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxWidth = { negative: 0, positive: 0 }; return _this; } BarHorizontalStackedComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxWidth = { negative: 0, positive: 0 }; } this.margin = [10, 20 + this.dataLabelMaxWidth.positive, 10, 20 + this.dataLabelMaxWidth.negative]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valueDomain = this.getValueDomain(); this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; BarHorizontalStackedComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarHorizontalStackedComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarHorizontalStackedComponent.prototype.getValueDomain = function () { var domain = []; var smallest = 0; var biggest = 0; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; var smallestSum = 0; var biggestSum = 0; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (d.value < 0) { smallestSum += d.value; } else { biggestSum += d.value; } smallest = d.value < smallest ? d.value : smallest; biggest = d.value > biggest ? d.value : biggest; } domain.push(smallestSum); domain.push(biggestSum); } domain.push(smallest); domain.push(biggest); var min = Math.min.apply(Math, [0].concat(domain)); var max = this.xScaleMax ? Math.max.apply(Math, [this.xScaleMax].concat(domain)) : Math.max.apply(Math, domain); return [min, max]; }; BarHorizontalStackedComponent.prototype.getYScale = function () { var spacing = this.groupDomain.length / (this.dims.height / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.height]) .paddingInner(spacing) .domain(this.groupDomain); }; BarHorizontalStackedComponent.prototype.getXScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.valueDomain); return this.roundDomains ? scale.nice() : scale; }; BarHorizontalStackedComponent.prototype.groupTransform = function (group) { return "translate(0, " + this.yScale(group.name) + ")"; }; BarHorizontalStackedComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarHorizontalStackedComponent.prototype.trackBy = function (index, item) { return item.name; }; BarHorizontalStackedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valueDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarHorizontalStackedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valueDomain; opts.colors = this.colors.scale; } return opts; }; BarHorizontalStackedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarHorizontalStackedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarHorizontalStackedComponent.prototype.onDataLabelMaxWidthChanged = function (event, groupIndex) { var _this = this; if (event.size.negative) { this.dataLabelMaxWidth.negative = Math.max(this.dataLabelMaxWidth.negative, event.size.width); } else { this.dataLabelMaxWidth.positive = Math.max(this.dataLabelMaxWidth.positive, event.size.width); } if (groupIndex === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarHorizontalStackedComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarHorizontalStackedComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalStackedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalStackedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalStackedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalStackedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalStackedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalStackedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalStackedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalStackedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalStackedComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalStackedComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalStackedComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalStackedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalStackedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarHorizontalStackedComponent.prototype, "tooltipTemplate", void 0); BarHorizontalStackedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-horizontal-stacked', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n [yAxisOffset]=\"dataLabelMaxWidth.negative\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n *ngFor=\"let group of results; let index = index; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n >\n <svg:g\n ngx-charts-series-horizontal\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [activeEntries]=\"activeEntries\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [seriesName]=\"group.name\"\n [animations]=\"animations\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n (dataLabelWidthChanged)=\"onDataLabelMaxWidthChanged($event, index)\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarHorizontalStackedComponent); return BarHorizontalStackedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-horizontal-stacked.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-horizontal.component.js ***! \*****************************************************************************************/ /*! exports provided: BarHorizontalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarHorizontalComponent", function() { return BarHorizontalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarHorizontalComponent = /** @class */ (function (_super) { __extends(BarHorizontalComponent, _super); function BarHorizontalComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.roundEdges = true; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxWidth = { negative: 0, positive: 0 }; return _this; } BarHorizontalComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxWidth = { negative: 0, positive: 0 }; } this.margin = [10, 20 + this.dataLabelMaxWidth.positive, 10, 20 + this.dataLabelMaxWidth.negative]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; BarHorizontalComponent.prototype.getXScale = function () { this.xDomain = this.getXDomain(); var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.xDomain); return this.roundDomains ? scale.nice() : scale; }; BarHorizontalComponent.prototype.getYScale = function () { this.yDomain = this.getYDomain(); var spacing = this.yDomain.length / (this.dims.height / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleBand"])() .rangeRound([0, this.dims.height]) .paddingInner(spacing) .domain(this.yDomain); }; BarHorizontalComponent.prototype.getXDomain = function () { var values = this.results.map(function (d) { return d.value; }); var min = this.xScaleMin ? Math.min.apply(Math, [this.xScaleMin].concat(values)) : Math.min.apply(Math, [0].concat(values)); var max = this.xScaleMax ? Math.max.apply(Math, [this.xScaleMax].concat(values)) : Math.max.apply(Math, [0].concat(values)); return [min, max]; }; BarHorizontalComponent.prototype.getYDomain = function () { return this.results.map(function (d) { return d.label; }); }; BarHorizontalComponent.prototype.onClick = function (data) { this.select.emit(data); }; BarHorizontalComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.yDomain; } else { domain = this.xDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_3__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarHorizontalComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.yDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.xDomain; opts.colors = this.colors.scale; } return opts; }; BarHorizontalComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarHorizontalComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarHorizontalComponent.prototype.onDataLabelMaxWidthChanged = function (event) { var _this = this; if (event.size.negative) { this.dataLabelMaxWidth.negative = Math.max(this.dataLabelMaxWidth.negative, event.size.width); } else { this.dataLabelMaxWidth.positive = Math.max(this.dataLabelMaxWidth.positive, event.size.width); } if (event.index === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarHorizontalComponent.prototype.onActivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarHorizontalComponent.prototype.onDeactivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarHorizontalComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarHorizontalComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarHorizontalComponent.prototype, "xScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarHorizontalComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarHorizontalComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarHorizontalComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarHorizontalComponent.prototype, "tooltipTemplate", void 0); BarHorizontalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-horizontal', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n [yAxisOffset]=\"dataLabelMaxWidth.negative\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-series-horizontal\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [series]=\"results\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [activeEntries]=\"activeEntries\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n (dataLabelWidthChanged)=\"onDataLabelMaxWidthChanged($event)\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], BarHorizontalComponent); return BarHorizontalComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_4__["BaseChartComponent"])); //# sourceMappingURL=bar-horizontal.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-label.component.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-label.component.js ***! \************************************************************************************/ /*! exports provided: BarLabelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarLabelComponent", function() { return BarLabelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarLabelComponent = /** @class */ (function () { function BarLabelComponent(element) { this.dimensionsChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.horizontalPadding = 2; this.verticalPadding = 5; this.element = element.nativeElement; } BarLabelComponent.prototype.ngOnChanges = function (changes) { this.update(); }; BarLabelComponent.prototype.getSize = function () { var h = this.element.getBoundingClientRect().height; var w = this.element.getBoundingClientRect().width; return { height: h, width: w, negative: this.value < 0 }; }; BarLabelComponent.prototype.ngAfterViewInit = function () { this.dimensionsChanged.emit(this.getSize()); }; BarLabelComponent.prototype.update = function () { if (this.valueFormatting) { this.formatedValue = this.valueFormatting(this.value); } else { this.formatedValue = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_1__["formatLabel"])(this.value); } if (this.orientation === 'horizontal') { this.x = this.barX + this.barWidth; // if the value is negative then it's on the left of the x0. // we need to put the data label in front of the bar if (this.value < 0) { this.x = this.x - this.horizontalPadding; this.textAnchor = 'end'; } else { this.x = this.x + this.horizontalPadding; this.textAnchor = 'start'; } this.y = this.barY + this.barHeight / 2; } else { // orientation must be "vertical" this.x = this.barX + this.barWidth / 2; this.y = this.barY + this.barHeight; if (this.value < 0) { this.y = this.y + this.verticalPadding; this.textAnchor = 'end'; } else { this.y = this.y - this.verticalPadding; this.textAnchor = 'start'; } this.transform = "rotate(-45, " + this.x + " , " + this.y + ")"; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "barX", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "barY", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "barWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "barHeight", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarLabelComponent.prototype, "orientation", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarLabelComponent.prototype, "dimensionsChanged", void 0); BarLabelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-bar-label]', template: " \n <svg:text \n class=\"textDataLabel\" \n alignment-baseline=\"middle\" \n [attr.text-anchor]=\"textAnchor\"\n [attr.transform]=\"transform\"\n [attr.x]=\"x\" \n [attr.y]=\"y\">\n {{formatedValue}} \n </svg:text> \n\n ", styleUrls: ['./bar-label.component.css'], changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], BarLabelComponent); return BarLabelComponent; }()); //# sourceMappingURL=bar-label.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-2d.component.js": /*!******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-2d.component.js ***! \******************************************************************************************/ /*! exports provided: BarVertical2DComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarVertical2DComponent", function() { return BarVertical2DComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarVertical2DComponent = /** @class */ (function (_super) { __extends(BarVertical2DComponent, _super); function BarVertical2DComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.scaleType = 'ordinal'; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.groupPadding = 16; _this.barPadding = 8; _this.roundDomains = false; _this.roundEdges = true; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxHeight = { negative: 0, positive: 0 }; return _this; } BarVertical2DComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxHeight = { negative: 0, positive: 0 }; } this.margin = [10 + this.dataLabelMaxHeight.positive, 20, 10 + this.dataLabelMaxHeight.negative, 20]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.showDataLabel) { this.dims.height -= this.dataLabelMaxHeight.negative; } this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valuesDomain = this.getValueDomain(); this.groupScale = this.getGroupScale(); this.innerScale = this.getInnerScale(); this.valueScale = this.getValueScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + (this.margin[0] + this.dataLabelMaxHeight.negative) + ")"; }; BarVertical2DComponent.prototype.onDataLabelMaxHeightChanged = function (event, groupIndex) { var _this = this; if (event.size.negative) { this.dataLabelMaxHeight.negative = Math.max(this.dataLabelMaxHeight.negative, event.size.height); } else { this.dataLabelMaxHeight.positive = Math.max(this.dataLabelMaxHeight.positive, event.size.height); } if (groupIndex === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarVertical2DComponent.prototype.getGroupScale = function () { var spacing = this.groupDomain.length / (this.dims.height / this.groupPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.width]) .paddingInner(spacing) .paddingOuter(spacing / 2) .domain(this.groupDomain); }; BarVertical2DComponent.prototype.getInnerScale = function () { var width = this.groupScale.bandwidth(); var spacing = this.innerDomain.length / (width / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, width]) .paddingInner(spacing) .domain(this.innerDomain); }; BarVertical2DComponent.prototype.getValueScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([this.dims.height, 0]) .domain(this.valuesDomain); return this.roundDomains ? scale.nice() : scale; }; BarVertical2DComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarVertical2DComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarVertical2DComponent.prototype.getValueDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.value)) { domain.push(d.value); } } } var min = Math.min.apply(Math, [0].concat(domain)); var max = this.yScaleMax ? Math.max.apply(Math, [this.yScaleMax].concat(domain)) : Math.max.apply(Math, [0].concat(domain)); return [min, max]; }; BarVertical2DComponent.prototype.groupTransform = function (group) { return "translate(" + this.groupScale(group.label) + ", 0)"; }; BarVertical2DComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarVertical2DComponent.prototype.trackBy = function (index, item) { return item.name; }; BarVertical2DComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valuesDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarVertical2DComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valuesDomain; opts.colors = this.colors.scale; } return opts; }; BarVertical2DComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarVertical2DComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarVertical2DComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarVertical2DComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVertical2DComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVertical2DComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVertical2DComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVertical2DComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVertical2DComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVertical2DComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVertical2DComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVertical2DComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "groupPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVertical2DComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVertical2DComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVertical2DComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVertical2DComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVertical2DComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarVertical2DComponent.prototype, "tooltipTemplate", void 0); BarVertical2DComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-vertical-2d', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-grid-panel-series\n [xScale]=\"groupScale\"\n [yScale]=\"valueScale\"\n [data]=\"results\"\n [dims]=\"dims\"\n orient=\"vertical\"\n ></svg:g>\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"groupScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n [xAxisOffset]=\"dataLabelMaxHeight.negative\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"valueScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-series-vertical\n *ngFor=\"let group of results; let index = index; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n [activeEntries]=\"activeEntries\"\n [xScale]=\"innerScale\"\n [yScale]=\"valueScale\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [seriesName]=\"group.name\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n (dataLabelHeightChanged)=\"onDataLabelMaxHeightChanged($event, index)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarVertical2DComponent); return BarVertical2DComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-vertical-2d.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-normalized.component.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-normalized.component.js ***! \**************************************************************************************************/ /*! exports provided: BarVerticalNormalizedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarVerticalNormalizedComponent", function() { return BarVerticalNormalizedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarVerticalNormalizedComponent = /** @class */ (function (_super) { __extends(BarVerticalNormalizedComponent, _super); function BarVerticalNormalizedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; return _this; } BarVerticalNormalizedComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valueDomain = this.getValueDomain(); this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; BarVerticalNormalizedComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarVerticalNormalizedComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarVerticalNormalizedComponent.prototype.getValueDomain = function () { return [0, 100]; }; BarVerticalNormalizedComponent.prototype.getXScale = function () { var spacing = this.groupDomain.length / (this.dims.width / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.width]) .paddingInner(spacing) .domain(this.groupDomain); }; BarVerticalNormalizedComponent.prototype.getYScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([this.dims.height, 0]) .domain(this.valueDomain); return this.roundDomains ? scale.nice() : scale; }; BarVerticalNormalizedComponent.prototype.groupTransform = function (group) { return "translate(" + this.xScale(group.name) + ", 0)"; }; BarVerticalNormalizedComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarVerticalNormalizedComponent.prototype.trackBy = function (index, item) { return item.name; }; BarVerticalNormalizedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valueDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarVerticalNormalizedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valueDomain; opts.colors = this.colors.scale; } return opts; }; BarVerticalNormalizedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarVerticalNormalizedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarVerticalNormalizedComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarVerticalNormalizedComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalNormalizedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalNormalizedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalNormalizedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalNormalizedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalNormalizedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalNormalizedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalNormalizedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalNormalizedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalNormalizedComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalNormalizedComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalNormalizedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalNormalizedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarVerticalNormalizedComponent.prototype, "tooltipTemplate", void 0); BarVerticalNormalizedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-vertical-normalized', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n *ngFor=\"let group of results; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n >\n <svg:g\n ngx-charts-series-vertical\n type=\"normalized\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [activeEntries]=\"activeEntries\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [seriesName]=\"group.name\"\n [animations]=\"animations\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarVerticalNormalizedComponent); return BarVerticalNormalizedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-vertical-normalized.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-stacked.component.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical-stacked.component.js ***! \***********************************************************************************************/ /*! exports provided: BarVerticalStackedComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarVerticalStackedComponent", function() { return BarVerticalStackedComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarVerticalStackedComponent = /** @class */ (function (_super) { __extends(BarVerticalStackedComponent, _super); function BarVerticalStackedComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxHeight = { negative: 0, positive: 0 }; return _this; } BarVerticalStackedComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxHeight = { negative: 0, positive: 0 }; } this.margin = [10 + this.dataLabelMaxHeight.positive, 20, 10 + this.dataLabelMaxHeight.negative, 20]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.showDataLabel) { this.dims.height -= this.dataLabelMaxHeight.negative; } this.formatDates(); this.groupDomain = this.getGroupDomain(); this.innerDomain = this.getInnerDomain(); this.valueDomain = this.getValueDomain(); this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + (this.margin[0] + this.dataLabelMaxHeight.negative) + ")"; }; BarVerticalStackedComponent.prototype.getGroupDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.label)) { domain.push(group.label); } } return domain; }; BarVerticalStackedComponent.prototype.getInnerDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.label)) { domain.push(d.label); } } } return domain; }; BarVerticalStackedComponent.prototype.getValueDomain = function () { var domain = []; var smallest = 0; var biggest = 0; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; var smallestSum = 0; var biggestSum = 0; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (d.value < 0) { smallestSum += d.value; } else { biggestSum += d.value; } smallest = d.value < smallest ? d.value : smallest; biggest = d.value > biggest ? d.value : biggest; } domain.push(smallestSum); domain.push(biggestSum); } domain.push(smallest); domain.push(biggest); var min = Math.min.apply(Math, [0].concat(domain)); var max = this.yScaleMax ? Math.max.apply(Math, [this.yScaleMax].concat(domain)) : Math.max.apply(Math, domain); return [min, max]; }; BarVerticalStackedComponent.prototype.getXScale = function () { var spacing = this.groupDomain.length / (this.dims.width / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleBand"])() .rangeRound([0, this.dims.width]) .paddingInner(spacing) .domain(this.groupDomain); }; BarVerticalStackedComponent.prototype.getYScale = function () { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([this.dims.height, 0]) .domain(this.valueDomain); return this.roundDomains ? scale.nice() : scale; }; BarVerticalStackedComponent.prototype.onDataLabelMaxHeightChanged = function (event, groupIndex) { var _this = this; if (event.size.negative) { this.dataLabelMaxHeight.negative = Math.max(this.dataLabelMaxHeight.negative, event.size.height); } else { this.dataLabelMaxHeight.positive = Math.max(this.dataLabelMaxHeight.positive, event.size.height); } if (groupIndex === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarVerticalStackedComponent.prototype.groupTransform = function (group) { return "translate(" + this.xScale(group.name) + ", 0)"; }; BarVerticalStackedComponent.prototype.onClick = function (data, group) { if (group) { data.series = group.name; } this.select.emit(data); }; BarVerticalStackedComponent.prototype.trackBy = function (index, item) { return item.name; }; BarVerticalStackedComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.innerDomain; } else { domain = this.valueDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarVerticalStackedComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.innerDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.valueDomain; opts.colors = this.colors.scale; } return opts; }; BarVerticalStackedComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarVerticalStackedComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarVerticalStackedComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarVerticalStackedComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalStackedComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalStackedComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalStackedComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalStackedComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalStackedComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalStackedComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalStackedComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalStackedComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalStackedComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalStackedComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalStackedComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalStackedComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalStackedComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarVerticalStackedComponent.prototype, "tooltipTemplate", void 0); BarVerticalStackedComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-vertical-stacked', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, undefined, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, undefined, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n [xAxisOffset]=\"dataLabelMaxHeight.negative\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n *ngFor=\"let group of results; let index = index; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [attr.transform]=\"groupTransform(group)\"\n >\n <svg:g\n ngx-charts-series-vertical\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [activeEntries]=\"activeEntries\"\n [colors]=\"colors\"\n [series]=\"group.series\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [seriesName]=\"group.name\"\n [animations]=\"animations\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event, group)\"\n (activate)=\"onActivate($event, group)\"\n (deactivate)=\"onDeactivate($event, group)\"\n (dataLabelHeightChanged)=\"onDataLabelMaxHeightChanged($event, index)\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: '*' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' })) ]) ]) ] }) ], BarVerticalStackedComponent); return BarVerticalStackedComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=bar-vertical-stacked.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-vertical.component.js ***! \***************************************************************************************/ /*! exports provided: BarVerticalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarVerticalComponent", function() { return BarVerticalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarVerticalComponent = /** @class */ (function (_super) { __extends(BarVerticalComponent, _super); function BarVerticalComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.tooltipDisabled = false; _this.showGridLines = true; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.barPadding = 8; _this.roundDomains = false; _this.roundEdges = true; _this.showDataLabel = false; _this.noBarWhenZero = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.dataLabelMaxHeight = { negative: 0, positive: 0 }; return _this; } BarVerticalComponent.prototype.update = function () { _super.prototype.update.call(this); if (!this.showDataLabel) { this.dataLabelMaxHeight = { negative: 0, positive: 0 }; } this.margin = [10 + this.dataLabelMaxHeight.positive, 20, 10 + this.dataLabelMaxHeight.negative, 20]; this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.formatDates(); if (this.showDataLabel) { this.dims.height -= this.dataLabelMaxHeight.negative; } this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + (this.margin[0] + this.dataLabelMaxHeight.negative) + ")"; }; BarVerticalComponent.prototype.getXScale = function () { this.xDomain = this.getXDomain(); var spacing = this.xDomain.length / (this.dims.width / this.barPadding + 1); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleBand"])() .range([0, this.dims.width]) .paddingInner(spacing) .domain(this.xDomain); }; BarVerticalComponent.prototype.getYScale = function () { this.yDomain = this.getYDomain(); var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([this.dims.height, 0]) .domain(this.yDomain); return this.roundDomains ? scale.nice() : scale; }; BarVerticalComponent.prototype.getXDomain = function () { return this.results.map(function (d) { return d.label; }); }; BarVerticalComponent.prototype.getYDomain = function () { var values = this.results.map(function (d) { return d.value; }); var min = this.yScaleMin ? Math.min.apply(Math, [this.yScaleMin].concat(values)) : Math.min.apply(Math, [0].concat(values)); if (this.yAxisTicks && !this.yAxisTicks.some(isNaN)) { min = Math.min.apply(Math, [min].concat(this.yAxisTicks)); } var max = this.yScaleMax ? Math.max.apply(Math, [this.yScaleMax].concat(values)) : Math.max.apply(Math, [0].concat(values)); if (this.yAxisTicks && !this.yAxisTicks.some(isNaN)) { max = Math.max.apply(Math, [max].concat(this.yAxisTicks)); } return [min, max]; }; BarVerticalComponent.prototype.onClick = function (data) { this.select.emit(data); }; BarVerticalComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.xDomain; } else { domain = this.yDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_3__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; BarVerticalComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.xDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.yDomain; opts.colors = this.colors.scale; } return opts; }; BarVerticalComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BarVerticalComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BarVerticalComponent.prototype.onDataLabelMaxHeightChanged = function (event) { var _this = this; if (event.size.negative) { this.dataLabelMaxHeight.negative = Math.max(this.dataLabelMaxHeight.negative, event.size.height); } else { this.dataLabelMaxHeight.positive = Math.max(this.dataLabelMaxHeight.positive, event.size.height); } if (event.index === this.results.length - 1) { setTimeout(function () { return _this.update(); }); } }; BarVerticalComponent.prototype.onActivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; BarVerticalComponent.prototype.onDeactivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarVerticalComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarVerticalComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "barPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarVerticalComponent.prototype, "yScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarVerticalComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarVerticalComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BarVerticalComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BarVerticalComponent.prototype, "tooltipTemplate", void 0); BarVerticalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bar-vertical', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n [xAxisOffset]=\"dataLabelMaxHeight.negative\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-series-vertical\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [series]=\"results\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [activeEntries]=\"activeEntries\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n (select)=\"onClick($event)\"\n (dataLabelHeightChanged)=\"onDataLabelMaxHeightChanged($event)\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], BarVerticalComponent); return BarVerticalComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_4__["BaseChartComponent"])); //# sourceMappingURL=bar-vertical.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar.component.js": /*!******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/bar.component.js ***! \******************************************************************************/ /*! exports provided: BarComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarComponent", function() { return BarComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _common_shape_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/shape.helper */ "./node_modules/@swimlane/ngx-charts/release/common/shape.helper.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BarComponent = /** @class */ (function () { function BarComponent(element) { this.roundEdges = true; this.gradient = false; this.offset = 0; this.isActive = false; this.animations = true; this.noBarWhenZero = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; this.hasGradient = false; this.hideBar = false; this.element = element.nativeElement; } BarComponent.prototype.ngOnChanges = function (changes) { if (!this.initialized) { this.loadAnimation(); this.initialized = true; } else { this.update(); } }; BarComponent.prototype.update = function () { this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_3__["id"])().toString(); this.gradientFill = "url(#" + this.gradientId + ")"; if (this.gradient || this.stops) { this.gradientStops = this.getGradient(); this.hasGradient = true; } else { this.hasGradient = false; } this.updatePathEl(); this.checkToHideBar(); }; BarComponent.prototype.loadAnimation = function () { this.path = this.getStartingPath(); setTimeout(this.update.bind(this), 100); }; BarComponent.prototype.updatePathEl = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.bar'); var path = this.getPath(); if (this.animations) { node .transition() .duration(500) .attr('d', path); } else { node.attr('d', path); } }; BarComponent.prototype.getGradient = function () { if (this.stops) { return this.stops; } return [ { offset: 0, color: this.fill, opacity: this.getStartOpacity() }, { offset: 100, color: this.fill, opacity: 1 } ]; }; BarComponent.prototype.getStartingPath = function () { if (!this.animations) { return this.getPath(); } var radius = this.getRadius(); var path; if (this.roundEdges) { if (this.orientation === 'vertical') { radius = Math.min(this.height, radius); path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y + this.height, this.width, 1, 0, this.edges); } else if (this.orientation === 'horizontal') { radius = Math.min(this.width, radius); path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y, 1, this.height, 0, this.edges); } } else { if (this.orientation === 'vertical') { path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y + this.height, this.width, 1, 0, this.edges); } else if (this.orientation === 'horizontal') { path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y, 1, this.height, 0, this.edges); } } return path; }; BarComponent.prototype.getPath = function () { var radius = this.getRadius(); var path; if (this.roundEdges) { if (this.orientation === 'vertical') { radius = Math.min(this.height, radius); path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y, this.width, this.height, radius, this.edges); } else if (this.orientation === 'horizontal') { radius = Math.min(this.width, radius); path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y, this.width, this.height, radius, this.edges); } } else { path = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(this.x, this.y, this.width, this.height, radius, this.edges); } return path; }; BarComponent.prototype.getRadius = function () { var radius = 0; if (this.roundEdges && this.height > 5 && this.width > 5) { radius = Math.floor(Math.min(5, this.height / 2, this.width / 2)); } return radius; }; BarComponent.prototype.getStartOpacity = function () { if (this.roundEdges) { return 0.2; } else { return 0.5; } }; Object.defineProperty(BarComponent.prototype, "edges", { get: function () { var edges = [false, false, false, false]; if (this.roundEdges) { if (this.orientation === 'vertical') { if (this.data.value > 0) { edges = [true, true, false, false]; } else { edges = [false, false, true, true]; } } else if (this.orientation === 'horizontal') { if (this.data.value > 0) { edges = [false, true, false, true]; } else { edges = [true, false, true, false]; } } } return edges; }, enumerable: true, configurable: true }); BarComponent.prototype.onMouseEnter = function () { this.activate.emit(this.data); }; BarComponent.prototype.onMouseLeave = function () { this.deactivate.emit(this.data); }; BarComponent.prototype.checkToHideBar = function () { this.hideBar = this.noBarWhenZero && ((this.orientation === 'vertical' && this.height === 0) || (this.orientation === 'horizontal' && this.width === 0)); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarComponent.prototype, "x", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BarComponent.prototype, "y", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarComponent.prototype, "orientation", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BarComponent.prototype, "offset", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarComponent.prototype, "isActive", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BarComponent.prototype, "stops", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BarComponent.prototype, "ariaLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BarComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BarComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BarComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BarComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], BarComponent.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], BarComponent.prototype, "onMouseLeave", null); BarComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-bar]', template: "\n <svg:defs *ngIf=\"hasGradient\">\n <svg:g ngx-charts-svg-linear-gradient [orientation]=\"orientation\" [name]=\"gradientId\" [stops]=\"gradientStops\" />\n </svg:defs>\n <svg:path\n class=\"bar\"\n stroke=\"none\"\n role=\"img\"\n tabIndex=\"-1\"\n [class.active]=\"isActive\"\n [class.hidden]=\"hideBar\"\n [attr.d]=\"path\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.fill]=\"hasGradient ? gradientFill : fill\"\n (click)=\"select.emit(data)\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], BarComponent); return BarComponent; }()); //# sourceMappingURL=bar.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/series-horizontal.component.js": /*!********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/series-horizontal.component.js ***! \********************************************************************************************/ /*! exports provided: SeriesHorizontal */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SeriesHorizontal", function() { return SeriesHorizontal; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); /* harmony import */ var _series_vertical_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./series-vertical.component */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/series-vertical.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SeriesHorizontal = /** @class */ (function () { function SeriesHorizontal() { this.barsForDataLabels = []; this.type = 'standard'; this.tooltipDisabled = false; this.animations = true; this.showDataLabel = false; this.noBarWhenZero = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.dataLabelWidthChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } SeriesHorizontal.prototype.ngOnChanges = function (changes) { this.update(); }; SeriesHorizontal.prototype.update = function () { var _this = this; var _a; this.updateTooltipSettings(); var d0 = (_a = {}, _a[_series_vertical_component__WEBPACK_IMPORTED_MODULE_3__["D0Types"].positive] = 0, _a[_series_vertical_component__WEBPACK_IMPORTED_MODULE_3__["D0Types"].negative] = 0, _a); var d0Type; d0Type = _series_vertical_component__WEBPACK_IMPORTED_MODULE_3__["D0Types"].positive; var total; if (this.type === 'normalized') { total = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return sum + d; }, 0); } var xScaleMin = Math.max(this.xScale.domain()[0], 0); this.bars = this.series.map(function (d, index) { var value = d.value; var label = _this.getLabel(d); var formattedLabel = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(label); var roundEdges = _this.roundEdges; d0Type = value > 0 ? _series_vertical_component__WEBPACK_IMPORTED_MODULE_3__["D0Types"].positive : _series_vertical_component__WEBPACK_IMPORTED_MODULE_3__["D0Types"].negative; var bar = { value: value, label: label, roundEdges: roundEdges, data: d, formattedLabel: formattedLabel }; bar.height = _this.yScale.bandwidth(); if (_this.type === 'standard') { bar.width = Math.abs(_this.xScale(value) - _this.xScale(xScaleMin)); if (value < 0) { bar.x = _this.xScale(value); } else { bar.x = _this.xScale(xScaleMin); } bar.y = _this.yScale(label); } else if (_this.type === 'stacked') { var offset0 = d0[d0Type]; var offset1 = offset0 + value; d0[d0Type] += value; bar.width = _this.xScale(offset1) - _this.xScale(offset0); bar.x = _this.xScale(offset0); bar.y = 0; bar.offset0 = offset0; bar.offset1 = offset1; } else if (_this.type === 'normalized') { var offset0 = d0[d0Type]; var offset1 = offset0 + value; d0[d0Type] += value; if (total > 0) { offset0 = (offset0 * 100) / total; offset1 = (offset1 * 100) / total; } else { offset0 = 0; offset1 = 0; } bar.width = _this.xScale(offset1) - _this.xScale(offset0); bar.x = _this.xScale(offset0); bar.y = 0; bar.offset0 = offset0; bar.offset1 = offset1; value = (offset1 - offset0).toFixed(2) + '%'; } if (_this.colors.scaleType === 'ordinal') { bar.color = _this.colors.getColor(label); } else { if (_this.type === 'standard') { bar.color = _this.colors.getColor(value); bar.gradientStops = _this.colors.getLinearGradientStops(value); } else { bar.color = _this.colors.getColor(bar.offset1); bar.gradientStops = _this.colors.getLinearGradientStops(bar.offset1, bar.offset0); } } var tooltipLabel = formattedLabel; bar.ariaLabel = formattedLabel + ' ' + value.toLocaleString(); if (_this.seriesName) { tooltipLabel = _this.seriesName + " \u2022 " + formattedLabel; bar.data.series = _this.seriesName; bar.ariaLabel = _this.seriesName + ' ' + bar.ariaLabel; } bar.tooltipText = _this.tooltipDisabled ? undefined : "\n <span class=\"tooltip-label\">" + tooltipLabel + "</span>\n <span class=\"tooltip-val\">" + value.toLocaleString() + "</span>\n "; return bar; }); this.updateDataLabels(); }; SeriesHorizontal.prototype.updateDataLabels = function () { var _this = this; if (this.type === 'stacked') { this.barsForDataLabels = []; var section = {}; section.series = this.seriesName; var totalPositive = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return (d > 0 ? sum + d : sum); }, 0); var totalNegative = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return (d < 0 ? sum + d : sum); }, 0); section.total = totalPositive + totalNegative; section.x = 0; section.y = 0; // if total is positive then we show it on the right, otherwise on the left if (section.total > 0) { section.width = this.xScale(totalPositive); } else { section.width = this.xScale(totalNegative); } section.height = this.yScale.bandwidth(); this.barsForDataLabels.push(section); } else { this.barsForDataLabels = this.series.map(function (d) { var section = {}; section.series = _this.seriesName ? _this.seriesName : d.label; section.total = d.value; section.x = _this.xScale(0); section.y = _this.yScale(d.label); section.width = _this.xScale(section.total) - _this.xScale(0); section.height = _this.yScale.bandwidth(); return section; }); } }; SeriesHorizontal.prototype.updateTooltipSettings = function () { this.tooltipPlacement = this.tooltipDisabled ? undefined : 'top'; this.tooltipType = this.tooltipDisabled ? undefined : 'tooltip'; }; SeriesHorizontal.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name && entry.series === d.series; }); return item !== undefined; }; SeriesHorizontal.prototype.getLabel = function (dataItem) { if (dataItem.label) { return dataItem.label; } return dataItem.name; }; SeriesHorizontal.prototype.trackBy = function (index, bar) { return bar.label; }; SeriesHorizontal.prototype.trackDataLabelBy = function (index, barLabel) { return index + '#' + barLabel.series + '#' + barLabel.total; }; SeriesHorizontal.prototype.click = function (data) { this.select.emit(data); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "type", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "series", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SeriesHorizontal.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SeriesHorizontal.prototype, "seriesName", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], SeriesHorizontal.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesHorizontal.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesHorizontal.prototype, "dataLabelWidthChanged", void 0); SeriesHorizontal = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-series-horizontal]', template: "\n <svg:g\n ngx-charts-bar\n *ngFor=\"let bar of bars; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [width]=\"bar.width\"\n [height]=\"bar.height\"\n [x]=\"bar.x\"\n [y]=\"bar.y\"\n [fill]=\"bar.color\"\n [stops]=\"bar.gradientStops\"\n [data]=\"bar.data\"\n [orientation]=\"'horizontal'\"\n [roundEdges]=\"bar.roundEdges\"\n (select)=\"click($event)\"\n [gradient]=\"gradient\"\n [isActive]=\"isActive(bar.data)\"\n [ariaLabel]=\"bar.ariaLabel\"\n [animations]=\"animations\"\n (activate)=\"activate.emit($event)\"\n (deactivate)=\"deactivate.emit($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"tooltipPlacement\"\n [tooltipType]=\"tooltipType\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : bar.tooltipText\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"bar.data\"\n [noBarWhenZero]=\"noBarWhenZero\"\n ></svg:g>\n <svg:g *ngIf=\"showDataLabel\">\n <svg:g\n ngx-charts-bar-label\n *ngFor=\"let b of barsForDataLabels; let i = index; trackBy: trackDataLabelBy\"\n [barX]=\"b.x\"\n [barY]=\"b.y\"\n [barWidth]=\"b.width\"\n [barHeight]=\"b.height\"\n [value]=\"b.total\"\n [valueFormatting]=\"dataLabelFormatting\"\n [orientation]=\"'horizontal'\"\n (dimensionsChanged)=\"dataLabelWidthChanged.emit({ size: $event, index: i })\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], SeriesHorizontal); return SeriesHorizontal; }()); //# sourceMappingURL=series-horizontal.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bar-chart/series-vertical.component.js": /*!******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bar-chart/series-vertical.component.js ***! \******************************************************************************************/ /*! exports provided: D0Types, SeriesVerticalComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D0Types", function() { return D0Types; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SeriesVerticalComponent", function() { return SeriesVerticalComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var D0Types; (function (D0Types) { D0Types["positive"] = "positive"; D0Types["negative"] = "negative"; })(D0Types || (D0Types = {})); var SeriesVerticalComponent = /** @class */ (function () { function SeriesVerticalComponent() { this.type = 'standard'; this.tooltipDisabled = false; this.animations = true; this.showDataLabel = false; this.noBarWhenZero = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.dataLabelHeightChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.barsForDataLabels = []; } SeriesVerticalComponent.prototype.ngOnChanges = function (changes) { this.update(); }; SeriesVerticalComponent.prototype.update = function () { var _this = this; var _a; this.updateTooltipSettings(); var width; if (this.series.length) { width = this.xScale.bandwidth(); } width = Math.round(width); var yScaleMin = Math.max(this.yScale.domain()[0], 0); var d0 = (_a = {}, _a[D0Types.positive] = 0, _a[D0Types.negative] = 0, _a); var d0Type = D0Types.positive; var total; if (this.type === 'normalized') { total = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return sum + d; }, 0); } this.bars = this.series.map(function (d, index) { var value = d.value; var label = _this.getLabel(d); var formattedLabel = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(label); var roundEdges = _this.roundEdges; d0Type = value > 0 ? D0Types.positive : D0Types.negative; var bar = { value: value, label: label, roundEdges: roundEdges, data: d, width: width, formattedLabel: formattedLabel, height: 0, x: 0, y: 0 }; if (_this.type === 'standard') { bar.height = Math.abs(_this.yScale(value) - _this.yScale(yScaleMin)); bar.x = _this.xScale(label); if (value < 0) { bar.y = _this.yScale(0); } else { bar.y = _this.yScale(value); } } else if (_this.type === 'stacked') { var offset0 = d0[d0Type]; var offset1 = offset0 + value; d0[d0Type] += value; bar.height = _this.yScale(offset0) - _this.yScale(offset1); bar.x = 0; bar.y = _this.yScale(offset1); bar.offset0 = offset0; bar.offset1 = offset1; } else if (_this.type === 'normalized') { var offset0 = d0[d0Type]; var offset1 = offset0 + value; d0[d0Type] += value; if (total > 0) { offset0 = (offset0 * 100) / total; offset1 = (offset1 * 100) / total; } else { offset0 = 0; offset1 = 0; } bar.height = _this.yScale(offset0) - _this.yScale(offset1); bar.x = 0; bar.y = _this.yScale(offset1); bar.offset0 = offset0; bar.offset1 = offset1; value = (offset1 - offset0).toFixed(2) + '%'; } if (_this.colors.scaleType === 'ordinal') { bar.color = _this.colors.getColor(label); } else { if (_this.type === 'standard') { bar.color = _this.colors.getColor(value); bar.gradientStops = _this.colors.getLinearGradientStops(value); } else { bar.color = _this.colors.getColor(bar.offset1); bar.gradientStops = _this.colors.getLinearGradientStops(bar.offset1, bar.offset0); } } var tooltipLabel = formattedLabel; bar.ariaLabel = formattedLabel + ' ' + value.toLocaleString(); if (_this.seriesName) { tooltipLabel = _this.seriesName + " \u2022 " + formattedLabel; bar.data.series = _this.seriesName; bar.ariaLabel = _this.seriesName + ' ' + bar.ariaLabel; } bar.tooltipText = _this.tooltipDisabled ? undefined : "\n <span class=\"tooltip-label\">" + tooltipLabel + "</span>\n <span class=\"tooltip-val\">" + value.toLocaleString() + "</span>\n "; return bar; }); this.updateDataLabels(); }; SeriesVerticalComponent.prototype.updateDataLabels = function () { var _this = this; if (this.type === 'stacked') { this.barsForDataLabels = []; var section = {}; section.series = this.seriesName; var totalPositive = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return (d > 0 ? sum + d : sum); }, 0); var totalNegative = this.series.map(function (d) { return d.value; }).reduce(function (sum, d) { return (d < 0 ? sum + d : sum); }, 0); section.total = totalPositive + totalNegative; section.x = 0; section.y = 0; if (section.total > 0) { section.height = this.yScale(totalPositive); } else { section.height = this.yScale(totalNegative); } section.width = this.xScale.bandwidth(); this.barsForDataLabels.push(section); } else { this.barsForDataLabels = this.series.map(function (d) { var section = {}; section.series = _this.seriesName ? _this.seriesName : d.label; section.total = d.value; section.x = _this.xScale(d.label); section.y = _this.yScale(0); section.height = _this.yScale(section.total) - _this.yScale(0); section.width = _this.xScale.bandwidth(); return section; }); } }; SeriesVerticalComponent.prototype.updateTooltipSettings = function () { this.tooltipPlacement = this.tooltipDisabled ? undefined : 'top'; this.tooltipType = this.tooltipDisabled ? undefined : 'tooltip'; }; SeriesVerticalComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name && entry.series === d.series; }); return item !== undefined; }; SeriesVerticalComponent.prototype.onClick = function (data) { this.select.emit(data); }; SeriesVerticalComponent.prototype.getLabel = function (dataItem) { if (dataItem.label) { return dataItem.label; } return dataItem.name; }; SeriesVerticalComponent.prototype.trackBy = function (index, bar) { return bar.label; }; SeriesVerticalComponent.prototype.trackDataLabelBy = function (index, barLabel) { return index + '#' + barLabel.series + '#' + barLabel.total; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "type", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "series", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SeriesVerticalComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SeriesVerticalComponent.prototype, "seriesName", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], SeriesVerticalComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "roundEdges", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "showDataLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "dataLabelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], SeriesVerticalComponent.prototype, "noBarWhenZero", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], SeriesVerticalComponent.prototype, "dataLabelHeightChanged", void 0); SeriesVerticalComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-series-vertical]', template: "\n <svg:g\n ngx-charts-bar\n *ngFor=\"let bar of bars; trackBy: trackBy\"\n [@animationState]=\"'active'\"\n [@.disabled]=\"!animations\"\n [width]=\"bar.width\"\n [height]=\"bar.height\"\n [x]=\"bar.x\"\n [y]=\"bar.y\"\n [fill]=\"bar.color\"\n [stops]=\"bar.gradientStops\"\n [data]=\"bar.data\"\n [orientation]=\"'vertical'\"\n [roundEdges]=\"bar.roundEdges\"\n [gradient]=\"gradient\"\n [ariaLabel]=\"bar.ariaLabel\"\n [isActive]=\"isActive(bar.data)\"\n (select)=\"onClick($event)\"\n (activate)=\"activate.emit($event)\"\n (deactivate)=\"deactivate.emit($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"tooltipPlacement\"\n [tooltipType]=\"tooltipType\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : bar.tooltipText\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"bar.data\"\n [noBarWhenZero]=\"noBarWhenZero\"\n [animations]=\"animations\"\n ></svg:g>\n <svg:g *ngIf=\"showDataLabel\">\n <svg:g\n ngx-charts-bar-label\n *ngFor=\"let b of barsForDataLabels; let i = index; trackBy: trackDataLabelBy\"\n [barX]=\"b.x\"\n [barY]=\"b.y\"\n [barWidth]=\"b.width\"\n [barHeight]=\"b.height\"\n [value]=\"b.total\"\n [valueFormatting]=\"dataLabelFormatting\"\n [orientation]=\"'vertical'\"\n (dimensionsChanged)=\"dataLabelHeightChanged.emit({ size: $event, index: i })\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], SeriesVerticalComponent); return SeriesVerticalComponent; }()); //# sourceMappingURL=series-vertical.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.component.js": /*!******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.component.js ***! \******************************************************************************************/ /*! exports provided: BubbleChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BubbleChartComponent", function() { return BubbleChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); /* harmony import */ var _bubble_chart_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bubble-chart.utils */ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.utils.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BubbleChartComponent = /** @class */ (function (_super) { __extends(BubbleChartComponent, _super); function BubbleChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.showGridLines = true; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.xAxis = true; _this.yAxis = true; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.maxRadius = 10; _this.minRadius = 3; _this.schemeType = 'ordinal'; _this.tooltipDisabled = false; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.scaleType = 'linear'; _this.margin = [10, 20, 10, 20]; _this.bubblePadding = [0, 0, 0, 0]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.activeEntries = []; return _this; } BubbleChartComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); this.seriesDomain = this.results.map(function (d) { return d.name; }); this.rDomain = this.getRDomain(); this.xDomain = this.getXDomain(); this.yDomain = this.getYDomain(); this.transform = "translate(" + this.dims.xOffset + "," + this.margin[0] + ")"; var colorDomain = this.schemeType === 'ordinal' ? this.seriesDomain : this.rDomain; this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_5__["ColorHelper"](this.scheme, this.schemeType, colorDomain, this.customColors); this.data = this.results; this.minRadius = Math.max(this.minRadius, 1); this.maxRadius = Math.max(this.maxRadius, 1); this.rScale = this.getRScale(this.rDomain, [this.minRadius, this.maxRadius]); this.bubblePadding = [0, 0, 0, 0]; this.setScales(); this.bubblePadding = this.getBubblePadding(); this.setScales(); this.legendOptions = this.getLegendOptions(); this.clipPathId = 'clip' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_8__["id"])().toString(); this.clipPath = "url(#" + this.clipPathId + ")"; }; BubbleChartComponent.prototype.hideCircles = function () { this.deactivateAll(); }; BubbleChartComponent.prototype.onClick = function (data, series) { if (series) { data.series = series.name; } this.select.emit(data); }; BubbleChartComponent.prototype.getBubblePadding = function () { var yMin = 0; var xMin = 0; var yMax = this.dims.height; var xMax = this.dims.width; for (var _i = 0, _a = this.data; _i < _a.length; _i++) { var s = _a[_i]; for (var _b = 0, _c = s.series; _b < _c.length; _b++) { var d = _c[_b]; var r = this.rScale(d.r); var cx = this.xScaleType === 'linear' ? this.xScale(Number(d.x)) : this.xScale(d.x); var cy = this.yScaleType === 'linear' ? this.yScale(Number(d.y)) : this.yScale(d.y); xMin = Math.max(r - cx, xMin); yMin = Math.max(r - cy, yMin); yMax = Math.max(cy + r, yMax); xMax = Math.max(cx + r, xMax); } } xMax = Math.max(xMax - this.dims.width, 0); yMax = Math.max(yMax - this.dims.height, 0); return [yMin, xMax, yMax, xMin]; }; BubbleChartComponent.prototype.setScales = function () { var width = this.dims.width; if (this.xScaleMin === undefined && this.xScaleMax === undefined) { width = width - this.bubblePadding[1]; } var height = this.dims.height; if (this.yScaleMin === undefined && this.yScaleMax === undefined) { height = height - this.bubblePadding[2]; } this.xScale = this.getXScale(this.xDomain, width); this.yScale = this.getYScale(this.yDomain, height); }; BubbleChartComponent.prototype.getYScale = function (domain, height) { return Object(_bubble_chart_utils__WEBPACK_IMPORTED_MODULE_7__["getScale"])(domain, [height, this.bubblePadding[0]], this.yScaleType, this.roundDomains); }; BubbleChartComponent.prototype.getXScale = function (domain, width) { return Object(_bubble_chart_utils__WEBPACK_IMPORTED_MODULE_7__["getScale"])(domain, [this.bubblePadding[3], width], this.xScaleType, this.roundDomains); }; BubbleChartComponent.prototype.getRScale = function (domain, range) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range(range) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; BubbleChartComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], position: this.legendPosition, title: undefined }; if (opts.scaleType === 'ordinal') { opts.domain = this.seriesDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.rDomain; opts.colors = this.colors.scale; } return opts; }; BubbleChartComponent.prototype.getXDomain = function () { var values = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (!values.includes(d.x)) { values.push(d.x); } } } this.xScaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_6__["getScaleType"])(values); return Object(_bubble_chart_utils__WEBPACK_IMPORTED_MODULE_7__["getDomain"])(values, this.xScaleType, this.autoScale, this.xScaleMin, this.xScaleMax); }; BubbleChartComponent.prototype.getYDomain = function () { var values = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (!values.includes(d.y)) { values.push(d.y); } } } this.yScaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_6__["getScaleType"])(values); return Object(_bubble_chart_utils__WEBPACK_IMPORTED_MODULE_7__["getDomain"])(values, this.yScaleType, this.autoScale, this.yScaleMin, this.yScaleMax); }; BubbleChartComponent.prototype.getRDomain = function () { var min = Infinity; var max = -Infinity; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; var value = Number(d.r) || 1; min = Math.min(min, value); max = Math.max(max, value); } } return [min, max]; }; BubbleChartComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; BubbleChartComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; BubbleChartComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; BubbleChartComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; BubbleChartComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; BubbleChartComponent.prototype.trackBy = function (index, item) { return item.name; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleChartComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleChartComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleChartComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleChartComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BubbleChartComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], BubbleChartComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BubbleChartComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BubbleChartComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "maxRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "minRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "autoScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "xScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "yScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleChartComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BubbleChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], BubbleChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BubbleChartComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], BubbleChartComponent.prototype, "hideCircles", null); BubbleChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-bubble-chart', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [activeEntries]=\"activeEntries\"\n [legendOptions]=\"legendOptions\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"bubble-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [showGridLines]=\"showGridLines\"\n [dims]=\"dims\"\n [xScale]=\"xScale\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n />\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [showGridLines]=\"showGridLines\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n />\n <svg:rect\n class=\"bubble-chart-area\"\n x=\"0\"\n y=\"0\"\n [attr.width]=\"dims.width\"\n [attr.height]=\"dims.height\"\n style=\"fill: rgb(255, 0, 0); opacity: 0; cursor: 'auto';\"\n (mouseenter)=\"deactivateAll()\"\n />\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of data; trackBy: trackBy\" [@animationState]=\"'active'\">\n <svg:g\n ngx-charts-bubble-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [rScale]=\"rScale\"\n [xScaleType]=\"xScaleType\"\n [yScaleType]=\"yScaleType\"\n [xAxisLabel]=\"xAxisLabel\"\n [yAxisLabel]=\"yAxisLabel\"\n [colors]=\"colors\"\n [data]=\"series\"\n [activeEntries]=\"activeEntries\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css'], changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], BubbleChartComponent); return BubbleChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__["BaseChartComponent"])); //# sourceMappingURL=bubble-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.module.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.module.js ***! \***************************************************************************************/ /*! exports provided: BubbleChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BubbleChartModule", function() { return BubbleChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _bubble_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bubble-chart.component */ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.component.js"); /* harmony import */ var _bubble_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bubble-series.component */ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-series.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var BubbleChartModule = /** @class */ (function () { function BubbleChartModule() { } BubbleChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _bubble_chart_component__WEBPACK_IMPORTED_MODULE_2__["BubbleChartComponent"], _bubble_series_component__WEBPACK_IMPORTED_MODULE_3__["BubbleSeriesComponent"] ], exports: [ _bubble_chart_component__WEBPACK_IMPORTED_MODULE_2__["BubbleChartComponent"], _bubble_series_component__WEBPACK_IMPORTED_MODULE_3__["BubbleSeriesComponent"] ] }) ], BubbleChartModule); return BubbleChartModule; }()); //# sourceMappingURL=bubble-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.utils.js": /*!**************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.utils.js ***! \**************************************************************************************/ /*! exports provided: getDomain, getScale */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDomain", function() { return getDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScale", function() { return getScale; }); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); function getDomain(values, scaleType, autoScale, minVal, maxVal) { var domain = []; if (scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); if (!autoScale) { values.push(0); } } if (scaleType === 'time' || scaleType === 'linear') { var min = minVal ? minVal : Math.min.apply(Math, values); var max = maxVal ? maxVal : Math.max.apply(Math, values); domain = [min, max]; } else { domain = values; } return domain; } function getScale(domain, range, scaleType, roundDomains) { var scale; if (scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_0__["scaleTime"])() .range(range) .domain(domain); } else if (scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_0__["scaleLinear"])() .range(range) .domain(domain); if (roundDomains) { scale = scale.nice(); } } else if (scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_0__["scalePoint"])() .range([range[0], range[1]]) .domain(domain); } return scale; } //# sourceMappingURL=bubble-chart.utils.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-series.component.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-series.component.js ***! \*******************************************************************************************/ /*! exports provided: BubbleSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BubbleSeriesComponent", function() { return BubbleSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BubbleSeriesComponent = /** @class */ (function () { function BubbleSeriesComponent() { this.tooltipDisabled = false; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } BubbleSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; BubbleSeriesComponent.prototype.update = function () { this.circles = this.getCircles(); }; BubbleSeriesComponent.prototype.getCircles = function () { var _this = this; var seriesName = this.data.name; return this.data.series .map(function (d, i) { if (typeof d.y !== 'undefined' && typeof d.x !== 'undefined') { var y = d.y; var x = d.x; var r = d.r; var radius = _this.rScale(r || 1); var tooltipLabel = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(d.name); var cx = _this.xScaleType === 'linear' ? _this.xScale(Number(x)) : _this.xScale(x); var cy = _this.yScaleType === 'linear' ? _this.yScale(Number(y)) : _this.yScale(y); var color = _this.colors.scaleType === 'linear' ? _this.colors.getColor(r) : _this.colors.getColor(seriesName); var isActive = !_this.activeEntries.length ? true : _this.isActive({ name: seriesName }); var opacity = isActive ? 1 : 0.3; var data = Object.assign({}, d, { series: seriesName, name: d.name, value: d.y, x: d.x, radius: d.r }); return { data: data, x: x, y: y, r: r, classNames: ["circle-data-" + i], value: y, label: x, cx: cx, cy: cy, radius: radius, tooltipLabel: tooltipLabel, color: color, opacity: opacity, seriesName: seriesName, isActive: isActive, transform: "translate(" + cx + "," + cy + ")" }; } }) .filter(function (circle) { return circle !== undefined; }); }; BubbleSeriesComponent.prototype.getTooltipText = function (circle) { var hasRadius = typeof circle.r !== 'undefined'; var hasTooltipLabel = circle.tooltipLabel && circle.tooltipLabel.length; var hasSeriesName = circle.seriesName && circle.seriesName.length; var radiusValue = hasRadius ? Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(circle.r) : ''; var xAxisLabel = this.xAxisLabel && this.xAxisLabel !== '' ? this.xAxisLabel + ":" : ''; var yAxisLabel = this.yAxisLabel && this.yAxisLabel !== '' ? this.yAxisLabel + ":" : ''; var x = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(circle.x); var y = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(circle.y); var name = hasSeriesName && hasTooltipLabel ? circle.seriesName + " \u2022 " + circle.tooltipLabel : circle.seriesName + circle.tooltipLabel; var tooltipTitle = hasSeriesName || hasTooltipLabel ? "<span class=\"tooltip-label\">" + name + "</span>" : ''; return "\n " + tooltipTitle + "\n <span class=\"tooltip-label\">\n <label>" + xAxisLabel + "</label> " + x + "<br />\n <label>" + yAxisLabel + "</label> " + y + "\n </span>\n <span class=\"tooltip-val\">\n " + radiusValue + "\n </span>\n "; }; BubbleSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; BubbleSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item !== undefined; }; BubbleSeriesComponent.prototype.isVisible = function (circle) { if (this.activeEntries.length > 0) { return this.isActive({ name: circle.seriesName }); } return circle.opacity !== 0; }; BubbleSeriesComponent.prototype.activateCircle = function (circle) { circle.barVisible = true; this.activate.emit({ name: this.data.name }); }; BubbleSeriesComponent.prototype.deactivateCircle = function (circle) { circle.barVisible = false; this.deactivate.emit({ name: this.data.name }); }; BubbleSeriesComponent.prototype.trackBy = function (index, circle) { return circle.data.series + " " + circle.data.name; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "rScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "xScaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "yScaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "visibleValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BubbleSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleSeriesComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BubbleSeriesComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BubbleSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], BubbleSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BubbleSeriesComponent.prototype, "deactivate", void 0); BubbleSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-bubble-series]', template: "\n <svg:g *ngFor=\"let circle of circles; trackBy: trackBy\">\n <svg:g [attr.transform]=\"circle.transform\">\n <svg:g\n ngx-charts-circle\n [@animationState]=\"'active'\"\n class=\"circle\"\n [cx]=\"0\"\n [cy]=\"0\"\n [r]=\"circle.radius\"\n [fill]=\"circle.color\"\n [style.opacity]=\"circle.opacity\"\n [class.active]=\"circle.isActive\"\n [pointerEvents]=\"'all'\"\n [data]=\"circle.value\"\n [classNames]=\"circle.classNames\"\n (select)=\"onClick(circle.data)\"\n (activate)=\"activateCircle(circle)\"\n (deactivate)=\"deactivateCircle(circle)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : getTooltipText(circle)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"circle.data\"\n />\n </svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0, transform: 'scale(0)' }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(250, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1, transform: 'scale(1)' })) ]) ]) ] }) ], BubbleSeriesComponent); return BubbleSeriesComponent; }()); //# sourceMappingURL=bubble-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/area.component.js": /*!****************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/area.component.js ***! \****************************************************************************/ /*! exports provided: AreaComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AreaComponent", function() { return AreaComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AreaComponent = /** @class */ (function () { function AreaComponent(element) { this.opacity = 1; this.startOpacity = 0.5; this.endOpacity = 1; this.gradient = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; this.hasGradient = false; this.element = element.nativeElement; } AreaComponent.prototype.ngOnChanges = function (changes) { if (!this.initialized) { this.loadAnimation(); this.initialized = true; } else { this.update(); } }; AreaComponent.prototype.update = function () { this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_2__["id"])().toString(); this.gradientFill = "url(#" + this.gradientId + ")"; if (this.gradient || this.stops) { this.gradientStops = this.getGradient(); this.hasGradient = true; } else { this.hasGradient = false; } this.updatePathEl(); }; AreaComponent.prototype.loadAnimation = function () { this.areaPath = this.startingPath; setTimeout(this.update.bind(this), 100); }; AreaComponent.prototype.updatePathEl = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.area'); if (this.animations) { node.transition().duration(750) .attr('d', this.path); } else { node.attr('d', this.path); } }; AreaComponent.prototype.getGradient = function () { if (this.stops) { return this.stops; } return [ { offset: 0, color: this.fill, opacity: this.startOpacity }, { offset: 100, color: this.fill, opacity: this.endOpacity } ]; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "path", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "startingPath", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "opacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "startOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "endOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "activeLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AreaComponent.prototype, "stops", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AreaComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], AreaComponent.prototype, "select", void 0); AreaComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-area]', template: "\n <svg:defs *ngIf=\"gradient\">\n <svg:g ngx-charts-svg-linear-gradient\n orientation=\"vertical\"\n [name]=\"gradientId\"\n [stops]=\"gradientStops\"\n />\n </svg:defs>\n <svg:path\n class=\"area\"\n [attr.d]=\"areaPath\"\n [attr.fill]=\"gradient ? gradientFill : fill\"\n [style.opacity]=\"opacity\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], AreaComponent); return AreaComponent; }()); //# sourceMappingURL=area.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/axes.module.js": /*!******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/axes.module.js ***! \******************************************************************************/ /*! exports provided: AxesModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxesModule", function() { return AxesModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _axis_label_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./axis-label.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/axis-label.component.js"); /* harmony import */ var _x_axis_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./x-axis.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis.component.js"); /* harmony import */ var _x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./x-axis-ticks.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.js"); /* harmony import */ var _y_axis_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./y-axis.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis.component.js"); /* harmony import */ var _y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./y-axis-ticks.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var AxesModule = /** @class */ (function () { function AxesModule() { } AxesModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["CommonModule"]], declarations: [_axis_label_component__WEBPACK_IMPORTED_MODULE_1__["AxisLabelComponent"], _x_axis_component__WEBPACK_IMPORTED_MODULE_2__["XAxisComponent"], _x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_3__["XAxisTicksComponent"], _y_axis_component__WEBPACK_IMPORTED_MODULE_4__["YAxisComponent"], _y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_5__["YAxisTicksComponent"]], exports: [_axis_label_component__WEBPACK_IMPORTED_MODULE_1__["AxisLabelComponent"], _x_axis_component__WEBPACK_IMPORTED_MODULE_2__["XAxisComponent"], _x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_3__["XAxisTicksComponent"], _y_axis_component__WEBPACK_IMPORTED_MODULE_4__["YAxisComponent"], _y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_5__["YAxisTicksComponent"]] }) ], AxesModule); return AxesModule; }()); //# sourceMappingURL=axes.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/axis-label.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/axis-label.component.js ***! \***************************************************************************************/ /*! exports provided: AxisLabelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AxisLabelComponent", function() { return AxisLabelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AxisLabelComponent = /** @class */ (function () { function AxisLabelComponent(element) { this.textHeight = 25; this.margin = 5; this.element = element.nativeElement; } AxisLabelComponent.prototype.ngOnChanges = function (changes) { this.update(); }; AxisLabelComponent.prototype.update = function () { this.strokeWidth = '0.01'; this.textAnchor = 'middle'; this.transform = ''; switch (this.orient) { case 'top': this.y = this.offset; this.x = this.width / 2; break; case 'bottom': this.y = this.offset; this.x = this.width / 2; break; case 'left': this.y = -(this.offset + this.textHeight + this.margin); this.x = -this.height / 2; this.transform = 'rotate(270)'; break; case 'right': this.y = this.offset + this.margin; this.x = -this.height / 2; this.transform = 'rotate(270)'; break; default: } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AxisLabelComponent.prototype, "orient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AxisLabelComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AxisLabelComponent.prototype, "offset", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AxisLabelComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AxisLabelComponent.prototype, "height", void 0); AxisLabelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-axis-label]', template: "\n <svg:text\n [attr.stroke-width]=\"strokeWidth\"\n [attr.x]=\"x\"\n [attr.y]=\"y\"\n [attr.text-anchor]=\"textAnchor\"\n [attr.transform]=\"transform\">\n {{label}}\n </svg:text>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], AxisLabelComponent); return AxisLabelComponent; }()); //# sourceMappingURL=axis-label.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/ticks.helper.js": /*!*******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/ticks.helper.js ***! \*******************************************************************************/ /*! exports provided: reduceTicks */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reduceTicks", function() { return reduceTicks; }); function reduceTicks(ticks, maxTicks) { if (ticks.length > maxTicks) { var reduced = []; var modulus = Math.floor(ticks.length / maxTicks); for (var i = 0; i < ticks.length; i++) { if (i % modulus === 0) { reduced.push(ticks[i]); } } ticks = reduced; } return ticks; } //# sourceMappingURL=ticks.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.js ***! \*****************************************************************************************/ /*! exports provided: XAxisTicksComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XAxisTicksComponent", function() { return XAxisTicksComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _trim_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _ticks_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ticks.helper */ "./node_modules/@swimlane/ngx-charts/release/common/axes/ticks.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var XAxisTicksComponent = /** @class */ (function () { function XAxisTicksComponent() { this.tickArguments = [5]; this.tickStroke = '#ccc'; this.trimTicks = true; this.maxTickLength = 16; this.showGridLines = false; this.rotateTicks = true; this.dimensionsChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.verticalSpacing = 20; this.rotateLabels = false; this.innerTickSize = 6; this.outerTickSize = 6; this.tickPadding = 3; this.textAnchor = 'middle'; this.maxTicksLength = 0; this.maxAllowedLength = 16; this.height = 0; } XAxisTicksComponent.prototype.ngOnChanges = function (changes) { this.update(); }; XAxisTicksComponent.prototype.ngAfterViewInit = function () { var _this = this; setTimeout(function () { return _this.updateDims(); }); }; XAxisTicksComponent.prototype.updateDims = function () { var _this = this; var height = parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height, 10); if (height !== this.height) { this.height = height; this.dimensionsChanged.emit({ height: height }); setTimeout(function () { return _this.updateDims(); }); } }; XAxisTicksComponent.prototype.update = function () { var _this = this; var scale = this.scale; this.ticks = this.getTicks(); if (this.tickFormatting) { this.tickFormat = this.tickFormatting; } else if (scale.tickFormat) { this.tickFormat = scale.tickFormat.apply(scale, this.tickArguments); } else { this.tickFormat = function (d) { if (d.constructor.name === 'Date') { return d.toLocaleDateString(); } return d.toLocaleString(); }; } var angle = this.rotateTicks ? this.getRotationAngle(this.ticks) : null; this.adjustedScale = this.scale.bandwidth ? function (d) { return this.scale(d) + this.scale.bandwidth() * 0.5; } : this.scale; this.textTransform = ''; if (angle && angle !== 0) { this.textTransform = "rotate(" + angle + ")"; this.textAnchor = 'end'; this.verticalSpacing = 10; } else { this.textAnchor = 'middle'; } setTimeout(function () { return _this.updateDims(); }); }; XAxisTicksComponent.prototype.getRotationAngle = function (ticks) { var angle = 0; this.maxTicksLength = 0; for (var i = 0; i < ticks.length; i++) { var tick = this.tickFormat(ticks[i]).toString(); var tickLength = tick.length; if (this.trimTicks) { tickLength = this.tickTrim(tick).length; } if (tickLength > this.maxTicksLength) { this.maxTicksLength = tickLength; } } var len = Math.min(this.maxTicksLength, this.maxAllowedLength); var charWidth = 8; // need to measure this var wordWidth = len * charWidth; var baseWidth = wordWidth; var maxBaseWidth = Math.floor(this.width / ticks.length); // calculate optimal angle while (baseWidth > maxBaseWidth && angle > -90) { angle -= 30; baseWidth = Math.cos(angle * (Math.PI / 180)) * wordWidth; } return angle; }; XAxisTicksComponent.prototype.getTicks = function () { var ticks; var maxTicks = this.getMaxTicks(20); var maxScaleTicks = this.getMaxTicks(100); if (this.tickValues) { ticks = this.tickValues; } else if (this.scale.ticks) { ticks = this.scale.ticks.apply(this.scale, [maxScaleTicks]); } else { ticks = this.scale.domain(); ticks = Object(_ticks_helper__WEBPACK_IMPORTED_MODULE_2__["reduceTicks"])(ticks, maxTicks); } return ticks; }; XAxisTicksComponent.prototype.getMaxTicks = function (tickWidth) { return Math.floor(this.width / tickWidth); }; XAxisTicksComponent.prototype.tickTransform = function (tick) { return 'translate(' + this.adjustedScale(tick) + ',' + this.verticalSpacing + ')'; }; XAxisTicksComponent.prototype.gridLineTransform = function () { return "translate(0," + (-this.verticalSpacing - 5) + ")"; }; XAxisTicksComponent.prototype.tickTrim = function (label) { return this.trimTicks ? Object(_trim_label_helper__WEBPACK_IMPORTED_MODULE_1__["trimLabel"])(label, this.maxTickLength) : label; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "scale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "orient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "tickArguments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], XAxisTicksComponent.prototype, "tickValues", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "tickStroke", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], XAxisTicksComponent.prototype, "trimTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], XAxisTicksComponent.prototype, "maxTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "tickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "gridLineHeight", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], XAxisTicksComponent.prototype, "rotateTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], XAxisTicksComponent.prototype, "dimensionsChanged", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('ticksel', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], XAxisTicksComponent.prototype, "ticksElement", void 0); XAxisTicksComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-x-axis-ticks]', template: "\n <svg:g #ticksel>\n <svg:g *ngFor=\"let tick of ticks\" class=\"tick\" [attr.transform]=\"tickTransform(tick)\">\n <title>{{ tickFormat(tick) }}</title>\n <svg:text\n stroke-width=\"0.01\"\n [attr.text-anchor]=\"textAnchor\"\n [attr.transform]=\"textTransform\"\n [style.font-size]=\"'12px'\"\n >\n {{ tickTrim(tickFormat(tick)) }}\n </svg:text>\n </svg:g>\n </svg:g>\n\n <svg:g *ngFor=\"let tick of ticks\" [attr.transform]=\"tickTransform(tick)\">\n <svg:g *ngIf=\"showGridLines\" [attr.transform]=\"gridLineTransform()\">\n <svg:line class=\"gridline-path gridline-path-vertical\" [attr.y1]=\"-gridLineHeight\" y2=\"0\" />\n </svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], XAxisTicksComponent); return XAxisTicksComponent; }()); //# sourceMappingURL=x-axis-ticks.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis.component.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis.component.js ***! \***********************************************************************************/ /*! exports provided: XAxisComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XAxisComponent", function() { return XAxisComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./x-axis-ticks.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/x-axis-ticks.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var XAxisComponent = /** @class */ (function () { function XAxisComponent() { this.rotateTicks = true; this.showGridLines = false; this.xOrient = 'bottom'; this.xAxisOffset = 0; this.dimensionsChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.xAxisClassName = 'x axis'; this.labelOffset = 0; this.fill = 'none'; this.stroke = 'stroke'; this.tickStroke = '#ccc'; this.strokeWidth = 'none'; this.padding = 5; } XAxisComponent.prototype.ngOnChanges = function (changes) { this.update(); }; XAxisComponent.prototype.update = function () { this.transform = "translate(0," + (this.xAxisOffset + this.padding + this.dims.height) + ")"; if (typeof this.xAxisTickCount !== 'undefined') { this.tickArguments = [this.xAxisTickCount]; } }; XAxisComponent.prototype.emitTicksHeight = function (_a) { var _this = this; var height = _a.height; var newLabelOffset = height + 25 + 5; if (newLabelOffset !== this.labelOffset) { this.labelOffset = newLabelOffset; setTimeout(function () { _this.dimensionsChanged.emit({ height: height }); }, 0); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], XAxisComponent.prototype, "trimTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], XAxisComponent.prototype, "rotateTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], XAxisComponent.prototype, "maxTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "tickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "showLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "labelText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], XAxisComponent.prototype, "ticks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "xAxisTickInterval", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "xAxisTickCount", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], XAxisComponent.prototype, "xOrient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], XAxisComponent.prototype, "xAxisOffset", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], XAxisComponent.prototype, "dimensionsChanged", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__["XAxisTicksComponent"], { static: false }), __metadata("design:type", _x_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__["XAxisTicksComponent"]) ], XAxisComponent.prototype, "ticksComponent", void 0); XAxisComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-x-axis]', template: "\n <svg:g [attr.class]=\"xAxisClassName\" [attr.transform]=\"transform\">\n <svg:g\n ngx-charts-x-axis-ticks\n *ngIf=\"xScale\"\n [trimTicks]=\"trimTicks\"\n [rotateTicks]=\"rotateTicks\"\n [maxTickLength]=\"maxTickLength\"\n [tickFormatting]=\"tickFormatting\"\n [tickArguments]=\"tickArguments\"\n [tickStroke]=\"tickStroke\"\n [scale]=\"xScale\"\n [orient]=\"xOrient\"\n [showGridLines]=\"showGridLines\"\n [gridLineHeight]=\"dims.height\"\n [width]=\"dims.width\"\n [tickValues]=\"ticks\"\n (dimensionsChanged)=\"emitTicksHeight($event)\"\n />\n <svg:g\n ngx-charts-axis-label\n *ngIf=\"showLabel\"\n [label]=\"labelText\"\n [offset]=\"labelOffset\"\n [orient]=\"'bottom'\"\n [height]=\"dims.height\"\n [width]=\"dims.width\"\n ></svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], XAxisComponent); return XAxisComponent; }()); //# sourceMappingURL=x-axis.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.js ***! \*****************************************************************************************/ /*! exports provided: YAxisTicksComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "YAxisTicksComponent", function() { return YAxisTicksComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _trim_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _ticks_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ticks.helper */ "./node_modules/@swimlane/ngx-charts/release/common/axes/ticks.helper.js"); /* harmony import */ var _common_shape_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/shape.helper */ "./node_modules/@swimlane/ngx-charts/release/common/shape.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var YAxisTicksComponent = /** @class */ (function () { function YAxisTicksComponent() { this.tickArguments = [5]; this.tickStroke = '#ccc'; this.trimTicks = true; this.maxTickLength = 16; this.showGridLines = false; this.showRefLabels = false; this.showRefLines = false; this.dimensionsChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.innerTickSize = 6; this.tickPadding = 3; this.verticalSpacing = 20; this.textAnchor = 'middle'; this.width = 0; this.outerTickSize = 6; this.rotateLabels = false; this.referenceLineLength = 0; } YAxisTicksComponent.prototype.ngOnChanges = function (changes) { this.update(); }; YAxisTicksComponent.prototype.ngAfterViewInit = function () { var _this = this; setTimeout(function () { return _this.updateDims(); }); }; YAxisTicksComponent.prototype.updateDims = function () { var _this = this; var width = parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width, 10); if (width !== this.width) { this.width = width; this.dimensionsChanged.emit({ width: width }); setTimeout(function () { return _this.updateDims(); }); } }; YAxisTicksComponent.prototype.update = function () { var _this = this; var scale; var sign = this.orient === 'top' || this.orient === 'right' ? -1 : 1; this.tickSpacing = Math.max(this.innerTickSize, 0) + this.tickPadding; scale = this.scale; this.ticks = this.getTicks(); if (this.tickFormatting) { this.tickFormat = this.tickFormatting; } else if (scale.tickFormat) { this.tickFormat = scale.tickFormat.apply(scale, this.tickArguments); } else { this.tickFormat = function (d) { if (d.constructor.name === 'Date') { return d.toLocaleDateString(); } return d.toLocaleString(); }; } this.adjustedScale = scale.bandwidth ? function (d) { return scale(d) + scale.bandwidth() * 0.5; } : scale; if (this.showRefLines && this.referenceLines) { this.setReferencelines(); } switch (this.orient) { case 'top': this.transform = function (tick) { return 'translate(' + this.adjustedScale(tick) + ',0)'; }; this.textAnchor = 'middle'; this.y2 = this.innerTickSize * sign; this.y1 = this.tickSpacing * sign; this.dy = sign < 0 ? '0em' : '.71em'; break; case 'bottom': this.transform = function (tick) { return 'translate(' + this.adjustedScale(tick) + ',0)'; }; this.textAnchor = 'middle'; this.y2 = this.innerTickSize * sign; this.y1 = this.tickSpacing * sign; this.dy = sign < 0 ? '0em' : '.71em'; break; case 'left': this.transform = function (tick) { return 'translate(0,' + this.adjustedScale(tick) + ')'; }; this.textAnchor = 'end'; this.x2 = this.innerTickSize * -sign; this.x1 = this.tickSpacing * -sign; this.dy = '.32em'; break; case 'right': this.transform = function (tick) { return 'translate(0,' + this.adjustedScale(tick) + ')'; }; this.textAnchor = 'start'; this.x2 = this.innerTickSize * -sign; this.x1 = this.tickSpacing * -sign; this.dy = '.32em'; break; default: } setTimeout(function () { return _this.updateDims(); }); }; YAxisTicksComponent.prototype.setReferencelines = function () { this.refMin = this.adjustedScale(Math.min.apply(null, this.referenceLines.map(function (item) { return item.value; }))); this.refMax = this.adjustedScale(Math.max.apply(null, this.referenceLines.map(function (item) { return item.value; }))); this.referenceLineLength = this.referenceLines.length; this.referenceAreaPath = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_3__["roundedRect"])(0, this.refMax, this.gridLineWidth, this.refMin - this.refMax, 0, [ false, false, false, false ]); }; YAxisTicksComponent.prototype.getTicks = function () { var ticks; var maxTicks = this.getMaxTicks(20); var maxScaleTicks = this.getMaxTicks(50); if (this.tickValues) { ticks = this.tickValues; } else if (this.scale.ticks) { ticks = this.scale.ticks.apply(this.scale, [maxScaleTicks]); } else { ticks = this.scale.domain(); ticks = Object(_ticks_helper__WEBPACK_IMPORTED_MODULE_2__["reduceTicks"])(ticks, maxTicks); } return ticks; }; YAxisTicksComponent.prototype.getMaxTicks = function (tickHeight) { return Math.floor(this.height / tickHeight); }; YAxisTicksComponent.prototype.tickTransform = function (tick) { return "translate(" + this.adjustedScale(tick) + "," + this.verticalSpacing + ")"; }; YAxisTicksComponent.prototype.gridLineTransform = function () { return "translate(5,0)"; }; YAxisTicksComponent.prototype.tickTrim = function (label) { return this.trimTicks ? Object(_trim_label_helper__WEBPACK_IMPORTED_MODULE_1__["trimLabel"])(label, this.maxTickLength) : label; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "scale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "orient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "tickArguments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], YAxisTicksComponent.prototype, "tickValues", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "tickStroke", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], YAxisTicksComponent.prototype, "trimTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], YAxisTicksComponent.prototype, "maxTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "tickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "gridLineWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "referenceLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], YAxisTicksComponent.prototype, "showRefLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], YAxisTicksComponent.prototype, "showRefLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], YAxisTicksComponent.prototype, "dimensionsChanged", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('ticksel', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], YAxisTicksComponent.prototype, "ticksElement", void 0); YAxisTicksComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-y-axis-ticks]', template: "\n <svg:g #ticksel>\n <svg:g *ngFor=\"let tick of ticks\" class=\"tick\" [attr.transform]=\"transform(tick)\">\n <title>{{ tickFormat(tick) }}</title>\n <svg:text\n stroke-width=\"0.01\"\n [attr.dy]=\"dy\"\n [attr.x]=\"x1\"\n [attr.y]=\"y1\"\n [attr.text-anchor]=\"textAnchor\"\n [style.font-size]=\"'12px'\"\n >\n {{ tickTrim(tickFormat(tick)) }}\n </svg:text>\n </svg:g>\n </svg:g>\n\n <svg:path\n *ngIf=\"referenceLineLength > 1 && refMax && refMin && showRefLines\"\n class=\"reference-area\"\n [attr.d]=\"referenceAreaPath\"\n [attr.transform]=\"gridLineTransform()\"\n />\n <svg:g *ngFor=\"let tick of ticks\" [attr.transform]=\"transform(tick)\">\n <svg:g *ngIf=\"showGridLines\" [attr.transform]=\"gridLineTransform()\">\n <svg:line\n *ngIf=\"orient === 'left'\"\n class=\"gridline-path gridline-path-horizontal\"\n x1=\"0\"\n [attr.x2]=\"gridLineWidth\"\n />\n <svg:line\n *ngIf=\"orient === 'right'\"\n class=\"gridline-path gridline-path-horizontal\"\n x1=\"0\"\n [attr.x2]=\"-gridLineWidth\"\n />\n </svg:g>\n </svg:g>\n\n <svg:g *ngFor=\"let refLine of referenceLines\">\n <svg:g *ngIf=\"showRefLines\" [attr.transform]=\"transform(refLine.value)\">\n <svg:line\n class=\"refline-path gridline-path-horizontal\"\n x1=\"0\"\n [attr.x2]=\"gridLineWidth\"\n [attr.transform]=\"gridLineTransform()\"\n />\n <svg:g *ngIf=\"showRefLabels\">\n <title>{{ tickTrim(tickFormat(refLine.value)) }}</title>\n <svg:text\n class=\"refline-label\"\n [attr.dy]=\"dy\"\n [attr.y]=\"-6\"\n [attr.x]=\"gridLineWidth\"\n [attr.text-anchor]=\"textAnchor\"\n >\n {{ refLine.name }}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], YAxisTicksComponent); return YAxisTicksComponent; }()); //# sourceMappingURL=y-axis-ticks.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis.component.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis.component.js ***! \***********************************************************************************/ /*! exports provided: YAxisComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "YAxisComponent", function() { return YAxisComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./y-axis-ticks.component */ "./node_modules/@swimlane/ngx-charts/release/common/axes/y-axis-ticks.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var YAxisComponent = /** @class */ (function () { function YAxisComponent() { this.showGridLines = false; this.yOrient = 'left'; this.yAxisOffset = 0; this.dimensionsChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.yAxisClassName = 'y axis'; this.labelOffset = 15; this.fill = 'none'; this.stroke = '#CCC'; this.tickStroke = '#CCC'; this.strokeWidth = 1; this.padding = 5; } YAxisComponent.prototype.ngOnChanges = function (changes) { this.update(); }; YAxisComponent.prototype.update = function () { this.offset = -(this.yAxisOffset + this.padding); if (this.yOrient === 'right') { this.labelOffset = 65; this.transform = "translate(" + (this.offset + this.dims.width) + " , 0)"; } else { this.offset = this.offset; this.transform = "translate(" + this.offset + " , 0)"; } if (this.yAxisTickCount !== undefined) { this.tickArguments = [this.yAxisTickCount]; } }; YAxisComponent.prototype.emitTicksWidth = function (_a) { var _this = this; var width = _a.width; if (width !== this.labelOffset && this.yOrient === 'right') { this.labelOffset = width + this.labelOffset; setTimeout(function () { _this.dimensionsChanged.emit({ width: width }); }, 0); } else if (width !== this.labelOffset) { this.labelOffset = width; setTimeout(function () { _this.dimensionsChanged.emit({ width: width }); }, 0); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], YAxisComponent.prototype, "trimTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], YAxisComponent.prototype, "maxTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "tickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], YAxisComponent.prototype, "ticks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "showLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "labelText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "yAxisTickInterval", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "yAxisTickCount", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], YAxisComponent.prototype, "yOrient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "referenceLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "showRefLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "showRefLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], YAxisComponent.prototype, "yAxisOffset", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], YAxisComponent.prototype, "dimensionsChanged", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__["YAxisTicksComponent"], { static: false }), __metadata("design:type", _y_axis_ticks_component__WEBPACK_IMPORTED_MODULE_1__["YAxisTicksComponent"]) ], YAxisComponent.prototype, "ticksComponent", void 0); YAxisComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-y-axis]', template: "\n <svg:g [attr.class]=\"yAxisClassName\" [attr.transform]=\"transform\">\n <svg:g\n ngx-charts-y-axis-ticks\n *ngIf=\"yScale\"\n [trimTicks]=\"trimTicks\"\n [maxTickLength]=\"maxTickLength\"\n [tickFormatting]=\"tickFormatting\"\n [tickArguments]=\"tickArguments\"\n [tickValues]=\"ticks\"\n [tickStroke]=\"tickStroke\"\n [scale]=\"yScale\"\n [orient]=\"yOrient\"\n [showGridLines]=\"showGridLines\"\n [gridLineWidth]=\"dims.width\"\n [referenceLines]=\"referenceLines\"\n [showRefLines]=\"showRefLines\"\n [showRefLabels]=\"showRefLabels\"\n [height]=\"dims.height\"\n (dimensionsChanged)=\"emitTicksWidth($event)\"\n />\n\n <svg:g\n ngx-charts-axis-label\n *ngIf=\"showLabel\"\n [label]=\"labelText\"\n [offset]=\"labelOffset\"\n [orient]=\"yOrient\"\n [height]=\"dims.height\"\n [width]=\"dims.width\"\n ></svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], YAxisComponent); return YAxisComponent; }()); //# sourceMappingURL=y-axis.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js": /*!**********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js ***! \**********************************************************************************/ /*! exports provided: BaseChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseChartComponent", function() { return BaseChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js"); /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "./node_modules/@swimlane/ngx-charts/release/utils/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var BaseChartComponent = /** @class */ (function () { function BaseChartComponent(chartElement, zone, cd) { this.chartElement = chartElement; this.zone = zone; this.cd = cd; this.scheme = 'cool'; this.schemeType = 'ordinal'; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } BaseChartComponent.prototype.ngAfterViewInit = function () { this.bindWindowResizeEvent(); // listen for visibility of the element for hidden by default scenario this.visibilityObserver = new _utils__WEBPACK_IMPORTED_MODULE_3__["VisibilityObserver"](this.chartElement, this.zone); this.visibilityObserver.visible.subscribe(this.update.bind(this)); }; BaseChartComponent.prototype.ngOnDestroy = function () { this.unbindEvents(); if (this.visibilityObserver) { this.visibilityObserver.visible.unsubscribe(); this.visibilityObserver.destroy(); } }; BaseChartComponent.prototype.ngOnChanges = function (changes) { this.update(); }; BaseChartComponent.prototype.update = function () { if (this.results) { this.results = this.cloneData(this.results); } else { this.results = []; } if (this.view) { this.width = this.view[0]; this.height = this.view[1]; } else { var dims = this.getContainerDims(); if (dims) { this.width = dims.width; this.height = dims.height; } } // default values if width or height are 0 or undefined if (!this.width) { this.width = 600; } if (!this.height) { this.height = 400; } this.width = Math.floor(this.width); this.height = Math.floor(this.height); if (this.cd) { this.cd.markForCheck(); } }; BaseChartComponent.prototype.getContainerDims = function () { var width; var height; var hostElem = this.chartElement.nativeElement; if (hostElem.parentNode !== null) { // Get the container dimensions var dims = hostElem.parentNode.getBoundingClientRect(); width = dims.width; height = dims.height; } if (width && height) { return { width: width, height: height }; } return null; }; /** * Converts all date objects that appear as name * into formatted date strings */ BaseChartComponent.prototype.formatDates = function () { for (var i = 0; i < this.results.length; i++) { var g = this.results[i]; g.label = g.name; if (g.label instanceof Date) { g.label = g.label.toLocaleDateString(); } if (g.series) { for (var j = 0; j < g.series.length; j++) { var d = g.series[j]; d.label = d.name; if (d.label instanceof Date) { d.label = d.label.toLocaleDateString(); } } } } }; BaseChartComponent.prototype.unbindEvents = function () { if (this.resizeSubscription) { this.resizeSubscription.unsubscribe(); } }; BaseChartComponent.prototype.bindWindowResizeEvent = function () { var _this = this; var source = Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["fromEvent"])(window, 'resize'); var subscription = source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(200)).subscribe(function (e) { _this.update(); if (_this.cd) { _this.cd.markForCheck(); } }); this.resizeSubscription = subscription; }; /** * Clones the data into a new object * * @private * @param {any} data * @returns {*} * * @memberOf BaseChart */ BaseChartComponent.prototype.cloneData = function (data) { var results = []; for (var _i = 0, data_1 = data; _i < data_1.length; _i++) { var item = data_1[_i]; var copy = { name: item['name'] }; if (item['value'] !== undefined) { copy['value'] = item['value']; } if (item['series'] !== undefined) { copy['series'] = []; for (var _a = 0, _b = item['series']; _a < _b.length; _a++) { var seriesItem = _b[_a]; var seriesItemCopy = Object.assign({}, seriesItem); copy['series'].push(seriesItemCopy); } } if (item['extra'] !== undefined) { copy['extra'] = JSON.parse(JSON.stringify(item['extra'])); } results.push(copy); } return results; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BaseChartComponent.prototype, "results", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], BaseChartComponent.prototype, "view", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BaseChartComponent.prototype, "scheme", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], BaseChartComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], BaseChartComponent.prototype, "customColors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], BaseChartComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], BaseChartComponent.prototype, "select", void 0); BaseChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'base-chart', template: "\n <div></div>\n " }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], BaseChartComponent); return BaseChartComponent; }()); //# sourceMappingURL=base-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js": /*!*********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js ***! \*********************************************************************************/ /*! exports provided: ChartCommonModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartCommonModule", function() { return ChartCommonModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js"); /* harmony import */ var _charts_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./charts/chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/charts/chart.component.js"); /* harmony import */ var _legend__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./legend */ "./node_modules/@swimlane/ngx-charts/release/common/legend/index.js"); /* harmony import */ var _base_chart_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _axes_axes_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./axes/axes.module */ "./node_modules/@swimlane/ngx-charts/release/common/axes/axes.module.js"); /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tooltip */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/index.js"); /* harmony import */ var _circle_series_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./circle-series.component */ "./node_modules/@swimlane/ngx-charts/release/common/circle-series.component.js"); /* harmony import */ var _circle_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./circle.component */ "./node_modules/@swimlane/ngx-charts/release/common/circle.component.js"); /* harmony import */ var _grid_panel_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./grid-panel.component */ "./node_modules/@swimlane/ngx-charts/release/common/grid-panel.component.js"); /* harmony import */ var _grid_panel_series_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./grid-panel-series.component */ "./node_modules/@swimlane/ngx-charts/release/common/grid-panel-series.component.js"); /* harmony import */ var _svg_linear_gradient_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./svg-linear-gradient.component */ "./node_modules/@swimlane/ngx-charts/release/common/svg-linear-gradient.component.js"); /* harmony import */ var _svg_radial_gradient_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./svg-radial-gradient.component */ "./node_modules/@swimlane/ngx-charts/release/common/svg-radial-gradient.component.js"); /* harmony import */ var _timeline__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./timeline */ "./node_modules/@swimlane/ngx-charts/release/common/timeline/index.js"); /* harmony import */ var _area_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./area.component */ "./node_modules/@swimlane/ngx-charts/release/common/area.component.js"); /* harmony import */ var _tooltip_area_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tooltip-area.component */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip-area.component.js"); /* harmony import */ var _count__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./count */ "./node_modules/@swimlane/ngx-charts/release/common/count/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var COMPONENTS = [ _area_component__WEBPACK_IMPORTED_MODULE_14__["AreaComponent"], _base_chart_component__WEBPACK_IMPORTED_MODULE_4__["BaseChartComponent"], _count__WEBPACK_IMPORTED_MODULE_16__["CountUpDirective"], _tooltip_area_component__WEBPACK_IMPORTED_MODULE_15__["TooltipArea"], _charts_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartComponent"], _legend__WEBPACK_IMPORTED_MODULE_3__["LegendComponent"], _legend__WEBPACK_IMPORTED_MODULE_3__["LegendEntryComponent"], _legend__WEBPACK_IMPORTED_MODULE_3__["ScaleLegendComponent"], _circle_component__WEBPACK_IMPORTED_MODULE_8__["CircleComponent"], _circle_series_component__WEBPACK_IMPORTED_MODULE_7__["CircleSeriesComponent"], _grid_panel_component__WEBPACK_IMPORTED_MODULE_9__["GridPanelComponent"], _grid_panel_series_component__WEBPACK_IMPORTED_MODULE_10__["GridPanelSeriesComponent"], _svg_linear_gradient_component__WEBPACK_IMPORTED_MODULE_11__["SvgLinearGradientComponent"], _svg_radial_gradient_component__WEBPACK_IMPORTED_MODULE_12__["SvgRadialGradientComponent"], _timeline__WEBPACK_IMPORTED_MODULE_13__["Timeline"], _legend__WEBPACK_IMPORTED_MODULE_3__["AdvancedLegendComponent"] ]; var ChartCommonModule = /** @class */ (function () { function ChartCommonModule() { } ChartCommonModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _axes_axes_module__WEBPACK_IMPORTED_MODULE_5__["AxesModule"], _tooltip__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"] ], declarations: COMPONENTS.slice(), exports: [ _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _axes_axes_module__WEBPACK_IMPORTED_MODULE_5__["AxesModule"], _tooltip__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"] ].concat(COMPONENTS) }) ], ChartCommonModule); return ChartCommonModule; }()); //# sourceMappingURL=chart-common.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/charts/chart.component.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/charts/chart.component.js ***! \************************************************************************************/ /*! exports provided: ChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartComponent", function() { return ChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ChartComponent = /** @class */ (function () { function ChartComponent(vcr, tooltipService) { this.vcr = vcr; this.tooltipService = tooltipService; this.showLegend = false; this.animations = true; this.legendLabelClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.legendLabelActivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.legendLabelDeactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.tooltipService.injectionService.setRootViewContainer(this.vcr); } ChartComponent.prototype.ngOnChanges = function (changes) { this.update(); }; ChartComponent.prototype.update = function () { var legendColumns = 0; if (this.showLegend) { this.legendType = this.getLegendType(); if (!this.legendOptions || this.legendOptions.position === 'right') { if (this.legendType === 'scaleLegend') { legendColumns = 1; } else { legendColumns = 2; } } } var chartColumns = 12 - legendColumns; this.chartWidth = Math.floor((this.view[0] * chartColumns / 12.0)); this.legendWidth = (!this.legendOptions || this.legendOptions.position === 'right') ? Math.floor((this.view[0] * legendColumns / 12.0)) : this.chartWidth; }; ChartComponent.prototype.getLegendType = function () { if (this.legendOptions.scaleType === 'linear') { return 'scaleLegend'; } else { return 'legend'; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "view", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "showLegend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "legendOptions", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "legendData", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "legendType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ChartComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], ChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ChartComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ChartComponent.prototype, "legendLabelClick", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ChartComponent.prototype, "legendLabelActivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ChartComponent.prototype, "legendLabelDeactivate", void 0); ChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ providers: [_tooltip__WEBPACK_IMPORTED_MODULE_2__["TooltipService"]], selector: 'ngx-charts-chart', template: "\n <div\n class=\"ngx-charts-outer\"\n [style.width.px]=\"view[0]\"\n [@animationState]=\"'active'\"\n [@.disabled]=\"!animations\">\n <svg\n class=\"ngx-charts\"\n [attr.width]=\"chartWidth\"\n [attr.height]=\"view[1]\">\n <ng-content></ng-content>\n </svg>\n <ngx-charts-scale-legend\n *ngIf=\"showLegend && legendType === 'scaleLegend'\"\n class=\"chart-legend\"\n [horizontal]=\"legendOptions && legendOptions.position === 'below'\"\n [valueRange]=\"legendOptions.domain\"\n [colors]=\"legendOptions.colors\"\n [height]=\"view[1]\"\n [width]=\"legendWidth\">\n </ngx-charts-scale-legend>\n <ngx-charts-legend\n *ngIf=\"showLegend && legendType === 'legend'\"\n class=\"chart-legend\"\n [horizontal]=\"legendOptions && legendOptions.position === 'below'\"\n [data]=\"legendOptions.domain\"\n [title]=\"legendOptions.title\"\n [colors]=\"legendOptions.colors\"\n [height]=\"view[1]\"\n [width]=\"legendWidth\"\n [activeEntries]=\"activeEntries\"\n (labelClick)=\"legendLabelClick.emit($event)\"\n (labelActivate)=\"legendLabelActivate.emit($event)\"\n (labelDeactivate)=\"legendLabelDeactivate.emit($event)\">\n </ngx-charts-legend>\n </div>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])('500ms 100ms', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 })) ]) ]) ] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _tooltip__WEBPACK_IMPORTED_MODULE_2__["TooltipService"]]) ], ChartComponent); return ChartComponent; }()); //# sourceMappingURL=chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/circle-series.component.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/circle-series.component.js ***! \*************************************************************************************/ /*! exports provided: CircleSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CircleSeriesComponent", function() { return CircleSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CircleSeriesComponent = /** @class */ (function () { function CircleSeriesComponent() { this.type = 'standard'; this.tooltipDisabled = false; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.barVisible = false; } CircleSeriesComponent.prototype.ngOnInit = function () { this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_3__["id"])().toString(); this.gradientFill = "url(#" + this.gradientId + ")"; }; CircleSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; CircleSeriesComponent.prototype.update = function () { this.circle = this.getActiveCircle(); }; CircleSeriesComponent.prototype.getActiveCircle = function () { var _this = this; var indexActiveDataPoint = this.data.series.findIndex(function (d) { var label = d.name; return label && _this.visibleValue && label.toString() === _this.visibleValue.toString() && d.value !== undefined; }); if (indexActiveDataPoint === -1) { // No valid point is 'active/hovered over' at this moment. return undefined; } return this.mapDataPointToCircle(this.data.series[indexActiveDataPoint], indexActiveDataPoint); }; CircleSeriesComponent.prototype.mapDataPointToCircle = function (d, i) { var seriesName = this.data.name; var value = d.value; var label = d.name; var tooltipLabel = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(label); var cx; if (this.scaleType === 'time') { cx = this.xScale(label); } else if (this.scaleType === 'linear') { cx = this.xScale(Number(label)); } else { cx = this.xScale(label); } var cy = this.yScale(this.type === 'standard' ? value : d.d1); var radius = 5; var height = this.yScale.range()[0] - cy; var opacity = 1; var color; if (this.colors.scaleType === 'linear') { if (this.type === 'standard') { color = this.colors.getColor(value); } else { color = this.colors.getColor(d.d1); } } else { color = this.colors.getColor(seriesName); } var data = Object.assign({}, d, { series: seriesName, value: value, name: label }); return { classNames: ["circle-data-" + i], value: value, label: label, data: data, cx: cx, cy: cy, radius: radius, height: height, tooltipLabel: tooltipLabel, color: color, opacity: opacity, seriesName: seriesName, gradientStops: this.getGradientStops(color), min: d.min, max: d.max }; }; CircleSeriesComponent.prototype.getTooltipText = function (_a) { var tooltipLabel = _a.tooltipLabel, value = _a.value, seriesName = _a.seriesName, min = _a.min, max = _a.max; return "\n <span class=\"tooltip-label\">" + seriesName + " \u2022 " + tooltipLabel + "</span>\n <span class=\"tooltip-val\">" + value.toLocaleString() + this.getTooltipMinMaxText(min, max) + "</span>\n "; }; CircleSeriesComponent.prototype.getTooltipMinMaxText = function (min, max) { if (min !== undefined || max !== undefined) { var result = ' ('; if (min !== undefined) { if (max === undefined) { result += '≥'; } result += min.toLocaleString(); if (max !== undefined) { result += ' - '; } } else if (max !== undefined) { result += '≤'; } if (max !== undefined) { result += max.toLocaleString(); } result += ')'; return result; } else { return ''; } }; CircleSeriesComponent.prototype.getGradientStops = function (color) { return [ { offset: 0, color: color, opacity: 0.2 }, { offset: 100, color: color, opacity: 1 } ]; }; CircleSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; CircleSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item !== undefined; }; CircleSeriesComponent.prototype.activateCircle = function () { this.barVisible = true; this.activate.emit({ name: this.data.name }); }; CircleSeriesComponent.prototype.deactivateCircle = function () { this.barVisible = false; this.circle.opacity = 0; this.deactivate.emit({ name: this.data.name }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "type", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"]) ], CircleSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "visibleValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], CircleSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], CircleSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], CircleSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleSeriesComponent.prototype, "deactivate", void 0); CircleSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-circle-series]', template: "\n <svg:g *ngIf=\"circle\">\n <defs>\n <svg:g\n ngx-charts-svg-linear-gradient\n orientation=\"vertical\"\n [name]=\"gradientId\"\n [stops]=\"circle.gradientStops\"\n />\n </defs>\n <svg:rect\n *ngIf=\"barVisible && type === 'standard'\"\n [@animationState]=\"'active'\"\n [attr.x]=\"circle.cx - circle.radius\"\n [attr.y]=\"circle.cy\"\n [attr.width]=\"circle.radius * 2\"\n [attr.height]=\"circle.height\"\n [attr.fill]=\"gradientFill\"\n class=\"tooltip-bar\"\n />\n <svg:g\n ngx-charts-circle\n class=\"circle\"\n [cx]=\"circle.cx\"\n [cy]=\"circle.cy\"\n [r]=\"circle.radius\"\n [fill]=\"circle.color\"\n [class.active]=\"isActive({ name: circle.seriesName })\"\n [pointerEvents]=\"circle.value === 0 ? 'none' : 'all'\"\n [data]=\"circle.value\"\n [classNames]=\"circle.classNames\"\n (select)=\"onClick(circle.data)\"\n (activate)=\"activateCircle()\"\n (deactivate)=\"deactivateCircle()\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : getTooltipText(circle)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"circle.data\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(250, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 })) ]) ]) ] }) ], CircleSeriesComponent); return CircleSeriesComponent; }()); //# sourceMappingURL=circle-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/circle.component.js": /*!******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/circle.component.js ***! \******************************************************************************/ /*! exports provided: CircleComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CircleComponent", function() { return CircleComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CircleComponent = /** @class */ (function () { function CircleComponent() { this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } CircleComponent.prototype.onClick = function () { this.select.emit(this.data); }; CircleComponent.prototype.onMouseEnter = function () { this.activate.emit(this.data); }; CircleComponent.prototype.onMouseLeave = function () { this.deactivate.emit(this.data); }; CircleComponent.prototype.ngOnChanges = function (changes) { this.classNames = Array.isArray(this.classNames) ? this.classNames.join(' ') : ''; this.classNames += 'circle'; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "cx", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "cy", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "r", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "stroke", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "classNames", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "circleOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "pointerEvents", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CircleComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('click'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], CircleComponent.prototype, "onClick", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], CircleComponent.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], CircleComponent.prototype, "onMouseLeave", null); CircleComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-circle]', template: "\n <svg:circle\n [attr.cx]=\"cx\"\n [attr.cy]=\"cy\"\n [attr.r]=\"r\"\n [attr.fill]=\"fill\"\n [attr.stroke]=\"stroke\"\n [attr.opacity]=\"circleOpacity\"\n [attr.class]=\"classNames\"\n [attr.pointer-events]=\"pointerEvents\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], CircleComponent); return CircleComponent; }()); //# sourceMappingURL=circle.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js": /*!**************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/color.helper.js ***! \**************************************************************************/ /*! exports provided: ColorHelper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorHelper", function() { return ColorHelper; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _utils_color_sets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/color-sets */ "./node_modules/@swimlane/ngx-charts/release/utils/color-sets.js"); var ColorHelper = /** @class */ (function () { function ColorHelper(scheme, type, domain, customColors) { if (typeof scheme === 'string') { scheme = _utils_color_sets__WEBPACK_IMPORTED_MODULE_2__["colorSets"].find(function (cs) { return cs.name === scheme; }); } this.colorDomain = scheme.domain; this.scaleType = type; this.domain = domain; this.customColors = customColors; this.scale = this.generateColorScheme(scheme, type, this.domain); } ColorHelper.prototype.generateColorScheme = function (scheme, type, domain) { if (typeof scheme === 'string') { scheme = _utils_color_sets__WEBPACK_IMPORTED_MODULE_2__["colorSets"].find(function (cs) { return cs.name === scheme; }); } var colorScale; if (type === 'quantile') { colorScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleQuantile"])() .range(scheme.domain) .domain(domain); } else if (type === 'ordinal') { colorScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleOrdinal"])() .range(scheme.domain) .domain(domain); } else if (type === 'linear') { // linear schemes must have at least 2 colors var colorDomain = scheme.domain.slice(); if (colorDomain.length === 1) { colorDomain.push(colorDomain[0]); this.colorDomain = colorDomain; } var points = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(0, 1, 1.0 / colorDomain.length); colorScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .domain(points) .range(colorDomain); } return colorScale; }; ColorHelper.prototype.getColor = function (value) { if (value === undefined || value === null) { throw new Error('Value can not be null'); } if (this.scaleType === 'linear') { var valueScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .domain(this.domain) .range([0, 1]); return this.scale(valueScale(value)); } else { if (typeof this.customColors === 'function') { return this.customColors(value); } var formattedValue_1 = value.toString(); var found = void 0; // todo type customColors if (this.customColors && this.customColors.length > 0) { found = this.customColors.find(function (mapping) { return mapping.name.toLowerCase() === formattedValue_1.toLowerCase(); }); } if (found) { return found.value; } else { return this.scale(value); } } }; ColorHelper.prototype.getLinearGradientStops = function (value, start) { if (start === undefined) { start = this.domain[0]; } var valueScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .domain(this.domain) .range([0, 1]); var colorValueScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleBand"])() .domain(this.colorDomain) .range([0, 1]); var endColor = this.getColor(value); // generate the stops var startVal = valueScale(start); var startColor = this.getColor(start); var endVal = valueScale(value); var i = 1; var currentVal = startVal; var stops = []; stops.push({ color: startColor, offset: startVal, originalOffset: startVal, opacity: 1 }); while (currentVal < endVal && i < this.colorDomain.length) { var color = this.colorDomain[i]; var offset = colorValueScale(color); if (offset <= startVal) { i++; continue; } if (offset.toFixed(4) >= (endVal - colorValueScale.bandwidth()).toFixed(4)) { break; } stops.push({ color: color, offset: offset, opacity: 1 }); currentVal = offset; i++; } if (stops[stops.length - 1].offset < 100) { stops.push({ color: endColor, offset: endVal, opacity: 1 }); } if (endVal === startVal) { stops[0].offset = 0; stops[1].offset = 100; } else { // normalize the offsets into percentages if (stops[stops.length - 1].offset !== 100) { for (var _i = 0, stops_1 = stops; _i < stops_1.length; _i++) { var s = stops_1[_i]; s.offset = ((s.offset - startVal) / (endVal - startVal)) * 100; } } } return stops; }; return ColorHelper; }()); //# sourceMappingURL=color.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/count/count.directive.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/count/count.directive.js ***! \***********************************************************************************/ /*! exports provided: CountUpDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CountUpDirective", function() { return CountUpDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _count_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./count.helper */ "./node_modules/@swimlane/ngx-charts/release/common/count/count.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * Count up component * * Loosely inspired by: * - https://github.com/izupet/angular2-counto * - https://inorganik.github.io/countUp.js/ * * @export * @class CountUpDirective */ var CountUpDirective = /** @class */ (function () { function CountUpDirective(cd, element) { this.cd = cd; this.countDuration = 1; this.countPrefix = ''; this.countSuffix = ''; this.countChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.countFinish = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.value = ''; this._countDecimals = 0; this._countTo = 0; this._countFrom = 0; this.nativeElement = element.nativeElement; } Object.defineProperty(CountUpDirective.prototype, "countDecimals", { get: function () { if (this._countDecimals) return this._countDecimals; return Object(_count_helper__WEBPACK_IMPORTED_MODULE_1__["decimalChecker"])(this.countTo); }, set: function (val) { this._countDecimals = val; }, enumerable: true, configurable: true }); Object.defineProperty(CountUpDirective.prototype, "countTo", { get: function () { return this._countTo; }, set: function (val) { this._countTo = parseFloat(val); this.start(); }, enumerable: true, configurable: true }); Object.defineProperty(CountUpDirective.prototype, "countFrom", { get: function () { return this._countFrom; }, set: function (val) { this._countFrom = parseFloat(val); this.start(); }, enumerable: true, configurable: true }); CountUpDirective.prototype.ngOnDestroy = function () { cancelAnimationFrame(this.animationReq); }; CountUpDirective.prototype.start = function () { var _this = this; cancelAnimationFrame(this.animationReq); var valueFormatting = this.valueFormatting || (function (value) { return "" + _this.countPrefix + value.toLocaleString() + _this.countSuffix; }); var callback = function (_a) { var value = _a.value, progress = _a.progress, finished = _a.finished; _this.value = valueFormatting(value); _this.cd.markForCheck(); if (!finished) _this.countChange.emit({ value: _this.value, progress: progress }); if (finished) _this.countFinish.emit({ value: _this.value, progress: progress }); }; this.animationReq = Object(_count_helper__WEBPACK_IMPORTED_MODULE_1__["count"])(this.countFrom, this.countTo, this.countDecimals, this.countDuration, callback); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], CountUpDirective.prototype, "countDuration", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], CountUpDirective.prototype, "countPrefix", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], CountUpDirective.prototype, "countSuffix", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CountUpDirective.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number), __metadata("design:paramtypes", [Number]) ], CountUpDirective.prototype, "countDecimals", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], CountUpDirective.prototype, "countTo", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object), __metadata("design:paramtypes", [Object]) ], CountUpDirective.prototype, "countFrom", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CountUpDirective.prototype, "countChange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CountUpDirective.prototype, "countFinish", void 0); CountUpDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: '[ngx-charts-count-up]', template: "{{value}}" }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], CountUpDirective); return CountUpDirective; }()); //# sourceMappingURL=count.directive.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/count/count.helper.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/count/count.helper.js ***! \********************************************************************************/ /*! exports provided: count, decimalChecker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return count; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decimalChecker", function() { return decimalChecker; }); // Robert Penner's easeOutExpo function easeOutExpo(t, b, c, d) { return (c * (-Math.pow(2, (-10 * t) / d) + 1) * 1024) / 1023 + b; } /** * Counts from a number to the end incrementally. * * @export * @param {any} countFrom * @param {any} countTo * @param {any} countDecimals * @param {any} countDuration * @param {any} callback * @returns */ function count(countFrom, countTo, countDecimals, countDuration, callback) { var startVal = Number(countFrom); var endVal = Number(countTo); var countDown = startVal > endVal; var decimals = Math.max(0, countDecimals); var dec = Math.pow(10, decimals); var duration = Number(countDuration) * 1000; var startTime; function runCount(timestamp) { var frameVal; var progress = timestamp - startTime; if (countDown) { frameVal = startVal - easeOutExpo(progress, 0, startVal - endVal, duration); } else { frameVal = easeOutExpo(progress, startVal, endVal - startVal, duration); } if (countDown) { frameVal = frameVal < endVal ? endVal : frameVal; } else { frameVal = frameVal > endVal ? endVal : frameVal; } frameVal = Math.round(frameVal * dec) / dec; var tick = progress < duration; callback({ value: frameVal, progress: progress, timestamp: timestamp, finished: !tick }); if (tick) { return requestAnimationFrame(function (val) { return runCount(val); }); } } return requestAnimationFrame(function (timestamp) { startTime = timestamp; return runCount(timestamp); }); } /** * Determine decimals places * * @export * @param {any} countTo * @returns */ function decimalChecker(countTo) { var endVal = Number(countTo); if (endVal % 1 !== 0 && Math.abs(endVal) <= 10) { return 2; } return 0; } //# sourceMappingURL=count.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/count/index.js": /*!*************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/count/index.js ***! \*************************************************************************/ /*! exports provided: CountUpDirective, count, decimalChecker */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _count_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./count.directive */ "./node_modules/@swimlane/ngx-charts/release/common/count/count.directive.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CountUpDirective", function() { return _count_directive__WEBPACK_IMPORTED_MODULE_0__["CountUpDirective"]; }); /* harmony import */ var _count_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./count.helper */ "./node_modules/@swimlane/ngx-charts/release/common/count/count.helper.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "count", function() { return _count_helper__WEBPACK_IMPORTED_MODULE_1__["count"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "decimalChecker", function() { return _count_helper__WEBPACK_IMPORTED_MODULE_1__["decimalChecker"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js": /*!***************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js ***! \***************************************************************************/ /*! exports provided: getUniqueXDomainValues, getScaleType */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUniqueXDomainValues", function() { return getUniqueXDomainValues; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getScaleType", function() { return getScaleType; }); /** * Based on the data, return an array with unique values. * * @export * @returns array * @param results */ function getUniqueXDomainValues(results) { var valueSet = new Set(); for (var _i = 0, results_1 = results; _i < results_1.length; _i++) { var result = results_1[_i]; for (var _a = 0, _b = result.series; _a < _b.length; _a++) { var d = _b[_a]; valueSet.add(d.name); } } return Array.from(valueSet); } /** * Get the scaleType of enumerable of values. * @param values * @returns {string} 'time', 'linear' or 'ordinal' */ function getScaleType(values, checkDateType) { if (checkDateType === void 0) { checkDateType = true; } if (checkDateType) { var allDates = values.every(function (value) { return value instanceof Date; }); if (allDates) { return 'time'; } } var allNumbers = values.every(function (value) { return typeof value === 'number'; }); if (allNumbers) { return 'linear'; } return 'ordinal'; } //# sourceMappingURL=domain.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/grid-layout.helper.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/grid-layout.helper.js ***! \********************************************************************************/ /*! exports provided: gridSize, gridLayout */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gridSize", function() { return gridSize; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gridLayout", function() { return gridLayout; }); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); function gridSize(dims, len, minWidth) { var rows = 1; var cols = len; var width = dims.width; if (width > minWidth) { while (width / cols < minWidth) { rows += 1; cols = Math.ceil(len / rows); } } return [cols, rows]; } function gridLayout(dims, data, minWidth, designatedTotal) { var xScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_0__["scaleBand"])(); var yScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_0__["scaleBand"])(); var width = dims.width; var height = dims.height; var _a = gridSize(dims, data.length, minWidth), columns = _a[0], rows = _a[1]; var xDomain = []; var yDomain = []; for (var i = 0; i < rows; i++) { yDomain.push(i); } for (var i = 0; i < columns; i++) { xDomain.push(i); } xScale.domain(xDomain); yScale.domain(yDomain); xScale.rangeRound([0, width], 0.1); yScale.rangeRound([0, height], 0.1); var res = []; var total = designatedTotal ? designatedTotal : getTotal(data); var cardWidth = xScale.bandwidth(); var cardHeight = yScale.bandwidth(); for (var i = 0; i < data.length; i++) { res[i] = {}; res[i].data = { name: data[i] ? data[i].name : '', value: data[i] ? data[i].value : undefined, extra: data[i] ? data[i].extra : undefined, label: data[i] ? data[i].label : '' }; res[i].x = xScale(i % columns); res[i].y = yScale(Math.floor(i / columns)); res[i].width = cardWidth; res[i].height = cardHeight; res[i].data.percent = total > 0 ? res[i].data.value / total : 0; res[i].data.total = total; } return res; } function getTotal(results) { return results.map(function (d) { return (d ? d.value : 0); }).reduce(function (sum, val) { return sum + val; }, 0); } //# sourceMappingURL=grid-layout.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/grid-panel-series.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/grid-panel-series.component.js ***! \*****************************************************************************************/ /*! exports provided: GridPanelSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridPanelSeriesComponent", function() { return GridPanelSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GridPanelSeriesComponent = /** @class */ (function () { function GridPanelSeriesComponent() { } GridPanelSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; GridPanelSeriesComponent.prototype.update = function () { this.gridPanels = this.getGridPanels(); }; GridPanelSeriesComponent.prototype.getGridPanels = function () { var _this = this; return this.data.map(function (d) { var offset; var width; var height; var x; var y; var className = 'odd'; if (_this.orient === 'vertical') { var position = _this.xScale(d.name); var positionIndex = Number.parseInt((position / _this.xScale.step()).toString(), 10); if (positionIndex % 2 === 1) { className = 'even'; } offset = _this.xScale.bandwidth() * _this.xScale.paddingInner(); width = _this.xScale.bandwidth() + offset; height = _this.dims.height; x = _this.xScale(d.name) - offset / 2; y = 0; } else if (_this.orient === 'horizontal') { var position = _this.yScale(d.name); var positionIndex = Number.parseInt((position / _this.yScale.step()).toString(), 10); if (positionIndex % 2 === 1) { className = 'even'; } offset = _this.yScale.bandwidth() * _this.yScale.paddingInner(); width = _this.dims.width; height = _this.yScale.bandwidth() + offset; x = 0; y = _this.yScale(d.name) - offset / 2; } return { name: d.name, class: className, height: height, width: width, x: x, y: y }; }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelSeriesComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelSeriesComponent.prototype, "orient", void 0); GridPanelSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-grid-panel-series]', template: "\n <svg:g ngx-charts-grid-panel *ngFor=\"let gridPanel of gridPanels\"\n [height]=\"gridPanel.height\"\n [width]=\"gridPanel.width\"\n [x]=\"gridPanel.x\"\n [y]=\"gridPanel.y\"\n [class.grid-panel]=\"true\"\n [class.odd]=\"gridPanel.class === 'odd'\"\n [class.even]=\"gridPanel.class === 'even'\">\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], GridPanelSeriesComponent); return GridPanelSeriesComponent; }()); //# sourceMappingURL=grid-panel-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/grid-panel.component.js": /*!**********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/grid-panel.component.js ***! \**********************************************************************************/ /*! exports provided: GridPanelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridPanelComponent", function() { return GridPanelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GridPanelComponent = /** @class */ (function () { function GridPanelComponent() { } __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelComponent.prototype, "path", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelComponent.prototype, "x", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GridPanelComponent.prototype, "y", void 0); GridPanelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-grid-panel]', template: "\n <svg:rect\n [attr.height]=\"height\"\n [attr.width]=\"width\"\n [attr.x]=\"x\"\n [attr.y]=\"y\"\n stroke=\"none\"\n class=\"gridpanel\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], GridPanelComponent); return GridPanelComponent; }()); //# sourceMappingURL=grid-panel.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js": /*!**************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/label.helper.js ***! \**************************************************************************/ /*! exports provided: formatLabel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatLabel", function() { return formatLabel; }); /** * Formats a label given a date, number or string. * * @export * @param {*} label * @returns {string} */ function formatLabel(label) { if (label instanceof Date) { label = label.toLocaleDateString(); } else { label = label.toLocaleString(); } return label; } //# sourceMappingURL=label.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/legend/advanced-legend.component.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/legend/advanced-legend.component.js ***! \**********************************************************************************************/ /*! exports provided: AdvancedLegendComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedLegendComponent", function() { return AdvancedLegendComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _trim_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AdvancedLegendComponent = /** @class */ (function () { function AdvancedLegendComponent() { this.label = 'Total'; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.legendItems = []; this.labelFormatting = function (label) { return label; }; this.percentageFormatting = function (percentage) { return percentage; }; this.defaultValueFormatting = function (value) { return value.toLocaleString(); }; } AdvancedLegendComponent.prototype.ngOnChanges = function (changes) { this.update(); }; AdvancedLegendComponent.prototype.getTotal = function () { return this.data.map(function (d) { return d.value; }).reduce(function (sum, d) { return sum + d; }, 0); }; AdvancedLegendComponent.prototype.update = function () { this.total = this.getTotal(); this.roundedTotal = this.total; this.legendItems = this.getLegendItems(); }; AdvancedLegendComponent.prototype.getLegendItems = function () { var _this = this; return this.data.map(function (d) { var label = Object(_label_helper__WEBPACK_IMPORTED_MODULE_2__["formatLabel"])(d.name); var value = d.value; var color = _this.colors.getColor(label); var percentage = _this.total > 0 ? (value / _this.total) * 100 : 0; var formattedLabel = typeof _this.labelFormatting === 'function' ? _this.labelFormatting(label) : label; return { _value: value, data: d, value: value, color: color, label: formattedLabel, displayLabel: Object(_trim_label_helper__WEBPACK_IMPORTED_MODULE_1__["trimLabel"])(formattedLabel, 20), origialLabel: d.name, percentage: _this.percentageFormatting ? _this.percentageFormatting(percentage) : percentage.toLocaleString() }; }); }; AdvancedLegendComponent.prototype.trackBy = function (item) { return item.formattedLabel; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], AdvancedLegendComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AdvancedLegendComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AdvancedLegendComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AdvancedLegendComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AdvancedLegendComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AdvancedLegendComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AdvancedLegendComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AdvancedLegendComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedLegendComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedLegendComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedLegendComponent.prototype, "percentageFormatting", void 0); AdvancedLegendComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-advanced-legend', template: "\n <div class=\"advanced-pie-legend\" [style.width.px]=\"width\">\n <div\n *ngIf=\"animations\"\n class=\"total-value\"\n ngx-charts-count-up\n [countTo]=\"roundedTotal\"\n [valueFormatting]=\"valueFormatting\"\n ></div>\n <div class=\"total-value\" *ngIf=\"!animations\">\n {{ valueFormatting ? valueFormatting(roundedTotal) : defaultValueFormatting(roundedTotal) }}\n </div>\n <div class=\"total-label\">\n {{ label }}\n </div>\n <div class=\"legend-items-container\">\n <div class=\"legend-items\">\n <div\n *ngFor=\"let legendItem of legendItems; trackBy: trackBy\"\n tabindex=\"-1\"\n class=\"legend-item\"\n (mouseenter)=\"activate.emit(legendItem.data)\"\n (mouseleave)=\"deactivate.emit(legendItem.data)\"\n (click)=\"select.emit(legendItem.data)\"\n >\n <div class=\"item-color\" [style.border-left-color]=\"legendItem.color\"></div>\n <div\n *ngIf=\"animations\"\n class=\"item-value\"\n ngx-charts-count-up\n [countTo]=\"legendItem._value\"\n [valueFormatting]=\"valueFormatting\"\n ></div>\n <div *ngIf=\"!animations\" class=\"item-value\">\n {{ valueFormatting ? valueFormatting(legendItem.value) : defaultValueFormatting(legendItem.value) }}\n </div>\n <div class=\"item-label\">{{ legendItem.displayLabel }}</div>\n <div\n *ngIf=\"animations\"\n class=\"item-percent\"\n ngx-charts-count-up\n [countTo]=\"legendItem.percentage\"\n [countSuffix]=\"'%'\"\n ></div>\n <div *ngIf=\"!animations\" class=\"item-percent\">{{ legendItem.percentage.toLocaleString() }}%</div>\n </div>\n </div>\n </div>\n </div>\n ", styleUrls: ['./advanced-legend.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], AdvancedLegendComponent); return AdvancedLegendComponent; }()); //# sourceMappingURL=advanced-legend.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/legend/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/legend/index.js ***! \**************************************************************************/ /*! exports provided: LegendComponent, ScaleLegendComponent, LegendEntryComponent, AdvancedLegendComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _legend_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./legend.component */ "./node_modules/@swimlane/ngx-charts/release/common/legend/legend.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendComponent", function() { return _legend_component__WEBPACK_IMPORTED_MODULE_0__["LegendComponent"]; }); /* harmony import */ var _scale_legend_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scale-legend.component */ "./node_modules/@swimlane/ngx-charts/release/common/legend/scale-legend.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScaleLegendComponent", function() { return _scale_legend_component__WEBPACK_IMPORTED_MODULE_1__["ScaleLegendComponent"]; }); /* harmony import */ var _legend_entry_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./legend-entry.component */ "./node_modules/@swimlane/ngx-charts/release/common/legend/legend-entry.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LegendEntryComponent", function() { return _legend_entry_component__WEBPACK_IMPORTED_MODULE_2__["LegendEntryComponent"]; }); /* harmony import */ var _advanced_legend_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./advanced-legend.component */ "./node_modules/@swimlane/ngx-charts/release/common/legend/advanced-legend.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AdvancedLegendComponent", function() { return _advanced_legend_component__WEBPACK_IMPORTED_MODULE_3__["AdvancedLegendComponent"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/legend/legend-entry.component.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/legend/legend-entry.component.js ***! \*******************************************************************************************/ /*! exports provided: LegendEntryComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LegendEntryComponent", function() { return LegendEntryComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LegendEntryComponent = /** @class */ (function () { function LegendEntryComponent() { this.isActive = false; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.toggle = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(LegendEntryComponent.prototype, "trimmedLabel", { get: function () { return this.formattedLabel || '(empty)'; }, enumerable: true, configurable: true }); LegendEntryComponent.prototype.onMouseEnter = function () { this.activate.emit({ name: this.label }); }; LegendEntryComponent.prototype.onMouseLeave = function () { this.deactivate.emit({ name: this.label }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LegendEntryComponent.prototype, "color", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendEntryComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LegendEntryComponent.prototype, "formattedLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LegendEntryComponent.prototype, "isActive", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendEntryComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendEntryComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendEntryComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendEntryComponent.prototype, "toggle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], LegendEntryComponent.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], LegendEntryComponent.prototype, "onMouseLeave", null); LegendEntryComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-legend-entry', template: "\n <span \n [title]=\"formattedLabel\"\n tabindex=\"-1\"\n [class.active]=\"isActive\"\n (click)=\"select.emit(formattedLabel)\">\n <span\n class=\"legend-label-color\"\n [style.background-color]=\"color\"\n (click)=\"toggle.emit(formattedLabel)\">\n </span>\n <span class=\"legend-label-text\">\n {{trimmedLabel}}\n </span>\n </span>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], LegendEntryComponent); return LegendEntryComponent; }()); //# sourceMappingURL=legend-entry.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/legend/legend.component.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/legend/legend.component.js ***! \*************************************************************************************/ /*! exports provided: LegendComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LegendComponent", function() { return LegendComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LegendComponent = /** @class */ (function () { function LegendComponent(cd) { this.cd = cd; this.horizontal = false; this.labelClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.labelActivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.labelDeactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.legendEntries = []; } LegendComponent.prototype.ngOnChanges = function (changes) { this.update(); }; LegendComponent.prototype.update = function () { this.cd.markForCheck(); this.legendEntries = this.getLegendEntries(); }; LegendComponent.prototype.getLegendEntries = function () { var items = []; var _loop_1 = function (label) { var formattedLabel = Object(_label_helper__WEBPACK_IMPORTED_MODULE_1__["formatLabel"])(label); var idx = items.findIndex(function (i) { return i.label === formattedLabel; }); if (idx === -1) { items.push({ label: label, formattedLabel: formattedLabel, color: this_1.colors.getColor(label) }); } }; var this_1 = this; for (var _i = 0, _a = this.data; _i < _a.length; _i++) { var label = _a[_i]; _loop_1(label); } return items; }; LegendComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.label === d.name; }); return item !== undefined; }; LegendComponent.prototype.activate = function (item) { this.labelActivate.emit(item); }; LegendComponent.prototype.deactivate = function (item) { this.labelDeactivate.emit(item); }; LegendComponent.prototype.trackBy = function (index, item) { return item.label; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LegendComponent.prototype, "horizontal", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendComponent.prototype, "labelClick", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendComponent.prototype, "labelActivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LegendComponent.prototype, "labelDeactivate", void 0); LegendComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-legend', template: "\n <div [style.width.px]=\"width\">\n <header class=\"legend-title\" *ngIf=\"title?.length > 0\">\n <span class=\"legend-title-text\">{{title}}</span>\n </header>\n <div class=\"legend-wrap\">\n <ul class=\"legend-labels\"\n [class.horizontal-legend]=\"horizontal\"\n [style.max-height.px]=\"height - 45\">\n <li\n *ngFor=\"let entry of legendEntries; trackBy: trackBy\"\n class=\"legend-label\">\n <ngx-charts-legend-entry\n [label]=\"entry.label\"\n [formattedLabel]=\"entry.formattedLabel\"\n [color]=\"entry.color\"\n [isActive]=\"isActive(entry)\"\n (select)=\"labelClick.emit($event)\"\n (activate)=\"activate($event)\"\n (deactivate)=\"deactivate($event)\">\n </ngx-charts-legend-entry>\n </li>\n </ul>\n </div>\n </div>\n ", styleUrls: ['./legend.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], LegendComponent); return LegendComponent; }()); //# sourceMappingURL=legend.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/legend/scale-legend.component.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/legend/scale-legend.component.js ***! \*******************************************************************************************/ /*! exports provided: ScaleLegendComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScaleLegendComponent", function() { return ScaleLegendComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm2015/platform-browser.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ScaleLegendComponent = /** @class */ (function () { function ScaleLegendComponent(sanitizer) { this.sanitizer = sanitizer; this.horizontal = false; } ScaleLegendComponent.prototype.ngOnChanges = function (changes) { var gradientValues = this.gradientString(this.colors.range(), this.colors.domain()); var direction = (this.horizontal) ? 'right' : 'bottom'; this.gradient = this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to " + direction + ", " + gradientValues + ")"); }; /** * Generates the string used in the gradient stylesheet properties * @param {array} colors array of colors * @param {array} splits array of splits on a scale of (0, 1) * @return {string} */ ScaleLegendComponent.prototype.gradientString = function (colors, splits) { // add the 100% splits.push(1); var pairs = []; colors.reverse().forEach(function (c, i) { pairs.push(c + " " + Math.round(splits[i] * 100) + "%"); }); return pairs.join(', '); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ScaleLegendComponent.prototype, "valueRange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ScaleLegendComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ScaleLegendComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ScaleLegendComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ScaleLegendComponent.prototype, "horizontal", void 0); ScaleLegendComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-scale-legend', template: "\n <div\n class=\"scale-legend\"\n [class.horizontal-legend]=\"horizontal\"\n [style.height.px]=\"horizontal ? undefined : height\"\n [style.width.px]=\"width\">\n <div class=\"scale-legend-label\">\n <span>{{ valueRange[1].toLocaleString() }}</span>\n </div>\n <div\n class=\"scale-legend-wrap\"\n [style.background]=\"gradient\">\n </div>\n <div class=\"scale-legend-label\">\n <span>{{ valueRange[0].toLocaleString() }}</span>\n </div>\n </div>\n ", styleUrls: ['./scale-legend.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"]]) ], ScaleLegendComponent); return ScaleLegendComponent; }()); //# sourceMappingURL=scale-legend.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/shape.helper.js": /*!**************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/shape.helper.js ***! \**************************************************************************/ /*! exports provided: roundedRect */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roundedRect", function() { return roundedRect; }); /** * Generates a rounded rectanglar path * * @export * @param {*} x, y, w, h, r, tl, tr, bl, br * @returns {string} */ function roundedRect(x, y, w, h, r, _a) { var tl = _a[0], tr = _a[1], bl = _a[2], br = _a[3]; var retval = ''; w = Math.floor(w); h = Math.floor(h); w = w === 0 ? 1 : w; h = h === 0 ? 1 : h; retval = "M" + [x + r, y]; retval += "h" + (w - 2 * r); if (tr) { retval += "a" + [r, r] + " 0 0 1 " + [r, r]; } else { retval += "h" + r + "v" + r; } retval += "v" + (h - 2 * r); if (br) { retval += "a" + [r, r] + " 0 0 1 " + [-r, r]; } else { retval += "v" + r + "h" + -r; } retval += "h" + (2 * r - w); if (bl) { retval += "a" + [r, r] + " 0 0 1 " + [-r, -r]; } else { retval += "h" + -r + "v" + -r; } retval += "v" + (2 * r - h); if (tl) { retval += "a" + [r, r] + " 0 0 1 " + [r, -r]; } else { retval += "v" + -r + "h" + r; } retval += "z"; return retval; } //# sourceMappingURL=shape.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/svg-linear-gradient.component.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/svg-linear-gradient.component.js ***! \*******************************************************************************************/ /*! exports provided: SvgLinearGradientComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgLinearGradientComponent", function() { return SvgLinearGradientComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgLinearGradientComponent = /** @class */ (function () { function SvgLinearGradientComponent() { this.orientation = 'vertical'; } SvgLinearGradientComponent.prototype.ngOnChanges = function (changes) { this.x1 = '0%'; this.x2 = '0%'; this.y1 = '0%'; this.y2 = '0%'; if (this.orientation === 'horizontal') { this.x2 = '100%'; } else if (this.orientation === 'vertical') { this.y1 = '100%'; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgLinearGradientComponent.prototype, "orientation", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgLinearGradientComponent.prototype, "name", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], SvgLinearGradientComponent.prototype, "stops", void 0); SvgLinearGradientComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-svg-linear-gradient]', template: "\n <svg:linearGradient\n [id]=\"name\"\n [attr.x1]=\"x1\"\n [attr.y1]=\"y1\"\n [attr.x2]=\"x2\"\n [attr.y2]=\"y2\">\n <svg:stop *ngFor=\"let stop of stops\"\n [attr.offset]=\"stop.offset + '%'\"\n [style.stop-color]=\"stop.color\"\n [style.stop-opacity]=\"stop.opacity\"\n />\n </svg:linearGradient>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], SvgLinearGradientComponent); return SvgLinearGradientComponent; }()); //# sourceMappingURL=svg-linear-gradient.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/svg-radial-gradient.component.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/svg-radial-gradient.component.js ***! \*******************************************************************************************/ /*! exports provided: SvgRadialGradientComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SvgRadialGradientComponent", function() { return SvgRadialGradientComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var SvgRadialGradientComponent = /** @class */ (function () { function SvgRadialGradientComponent() { this.endOpacity = 1; this.cx = 0; this.cy = 0; } Object.defineProperty(SvgRadialGradientComponent.prototype, "stops", { get: function () { return this.stopsInput || this.stopsDefault; }, set: function (value) { this.stopsInput = value; }, enumerable: true, configurable: true }); SvgRadialGradientComponent.prototype.ngOnChanges = function (changes) { this.r = '30%'; if (('color' in changes) || ('startOpacity' in changes) || ('endOpacity' in changes)) { this.stopsDefault = [{ offset: 0, color: this.color, opacity: this.startOpacity }, { offset: 100, color: this.color, opacity: this.endOpacity }]; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgRadialGradientComponent.prototype, "color", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], SvgRadialGradientComponent.prototype, "name", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], SvgRadialGradientComponent.prototype, "startOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], SvgRadialGradientComponent.prototype, "endOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], SvgRadialGradientComponent.prototype, "cx", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], SvgRadialGradientComponent.prototype, "cy", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array), __metadata("design:paramtypes", [Array]) ], SvgRadialGradientComponent.prototype, "stops", null); SvgRadialGradientComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-svg-radial-gradient]', template: "\n <svg:radialGradient\n [id]=\"name\"\n [attr.cx]=\"cx\"\n [attr.cy]=\"cy\"\n [attr.r]=\"r\"\n gradientUnits=\"userSpaceOnUse\">\n <svg:stop *ngFor=\"let stop of stops\"\n [attr.offset]=\"stop.offset + '%'\"\n [style.stop-color]=\"stop.color\"\n [style.stop-opacity]=\"stop.opacity\"\n />\n </svg:radialGradient>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], SvgRadialGradientComponent); return SvgRadialGradientComponent; }()); //# sourceMappingURL=svg-radial-gradient.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/timeline/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/timeline/index.js ***! \****************************************************************************/ /*! exports provided: Timeline */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timeline_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timeline.component */ "./node_modules/@swimlane/ngx-charts/release/common/timeline/timeline.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return _timeline_component__WEBPACK_IMPORTED_MODULE_0__["Timeline"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/timeline/timeline.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/timeline/timeline.component.js ***! \*****************************************************************************************/ /*! exports provided: Timeline */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return Timeline; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_brush__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-brush */ "./node_modules/d3-brush/src/index.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./node_modules/@swimlane/ngx-charts/release/utils/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var Timeline = /** @class */ (function () { function Timeline(element, cd) { this.cd = cd; this.height = 50; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.onDomainChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; this.element = element.nativeElement; } Timeline.prototype.ngOnChanges = function (changes) { this.update(); if (!this.initialized) { this.addBrush(); this.initialized = true; } }; Timeline.prototype.update = function () { this.dims = this.getDims(); this.height = this.dims.height; var offsetY = this.view[1] - this.height; this.xDomain = this.getXDomain(); this.xScale = this.getXScale(); if (this.brush) { this.updateBrush(); } this.transform = "translate(0 , " + offsetY + ")"; this.filterId = 'filter' + Object(_utils__WEBPACK_IMPORTED_MODULE_4__["id"])().toString(); this.filter = "url(#" + this.filterId + ")"; this.cd.markForCheck(); }; Timeline.prototype.getXDomain = function () { var values = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (!values.includes(d.name)) { values.push(d.name); } } } var domain = []; if (this.scaleType === 'time') { var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); domain = [min, max]; } else if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); domain = [min, max]; } else { domain = values; } return domain; }; Timeline.prototype.getXScale = function () { var scale; if (this.scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleTime"])() .range([0, this.dims.width]) .domain(this.xDomain); } else if (this.scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.xDomain); } else if (this.scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scalePoint"])() .range([0, this.dims.width]) .padding(0.1) .domain(this.xDomain); } return scale; }; Timeline.prototype.addBrush = function () { var _this = this; if (this.brush) return; var height = this.height; var width = this.view[0]; this.brush = Object(d3_brush__WEBPACK_IMPORTED_MODULE_1__["brushX"])() .extent([[0, 0], [width, height]]) .on('brush end', function () { var selection = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].selection || _this.xScale.range(); var newDomain = selection.map(_this.xScale.invert); _this.onDomainChange.emit(newDomain); _this.cd.markForCheck(); }); Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this.element) .select('.brush') .call(this.brush); }; Timeline.prototype.updateBrush = function () { if (!this.brush) return; var height = this.height; var width = this.view[0]; this.brush.extent([[0, 0], [width, height]]); Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this.element) .select('.brush') .call(this.brush); // clear hardcoded properties so they can be defined by CSS Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this.element).select('.selection') .attr('fill', undefined) .attr('stroke', undefined) .attr('fill-opacity', undefined); this.cd.markForCheck(); }; Timeline.prototype.getDims = function () { var width = this.view[0]; var dims = { width: width, height: this.height }; return dims; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "view", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "state", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "results", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "scheme", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "customColors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "miniChart", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "autoScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], Timeline.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], Timeline.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], Timeline.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], Timeline.prototype, "onDomainChange", void 0); Timeline = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-timeline]', template: "\n <svg:g\n class=\"timeline\"\n [attr.transform]=\"transform\">\n <svg:filter [attr.id]=\"filterId\">\n <svg:feColorMatrix in=\"SourceGraphic\"\n type=\"matrix\"\n values=\"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\" />\n </svg:filter>\n <svg:g class=\"embedded-chart\">\n <ng-content></ng-content>\n </svg:g>\n <svg:rect x=\"0\"\n [attr.width]=\"view[0]\"\n y=\"0\"\n [attr.height]=\"height\"\n class=\"brush-background\"\n />\n <svg:g class=\"brush\"></svg:g>\n </svg:g>\n ", styleUrls: ['./timeline.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]) ], Timeline); return Timeline; }()); //# sourceMappingURL=timeline.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip-area.component.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip-area.component.js ***! \************************************************************************************/ /*! exports provided: TooltipArea */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipArea", function() { return TooltipArea; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../events */ "./node_modules/@swimlane/ngx-charts/release/events.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TooltipArea = /** @class */ (function () { function TooltipArea() { this.anchorOpacity = 0; this.anchorPos = -1; this.anchorValues = []; this.showPercentage = false; this.tooltipDisabled = false; this.hover = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } TooltipArea.prototype.getValues = function (xVal) { var results = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; var item = group.series.find(function (d) { return d.name.toString() === xVal.toString(); }); var groupName = group.name; if (groupName instanceof Date) { groupName = groupName.toLocaleDateString(); } if (item) { var label = item.name; var val = item.value; if (this.showPercentage) { val = (item.d1 - item.d0).toFixed(2) + '%'; } var color = void 0; if (this.colors.scaleType === 'linear') { var v = val; if (item.d1) { v = item.d1; } color = this.colors.getColor(v); } else { color = this.colors.getColor(group.name); } var data = Object.assign({}, item, { value: val, name: label, series: groupName, min: item.min, max: item.max, color: color }); results.push(data); } } return results; }; TooltipArea.prototype.mouseMove = function (event) { var xPos = event.pageX - event.target.getBoundingClientRect().left; var closestIndex = this.findClosestPointIndex(xPos); var closestPoint = this.xSet[closestIndex]; this.anchorPos = this.xScale(closestPoint); this.anchorPos = Math.max(0, this.anchorPos); this.anchorPos = Math.min(this.dims.width, this.anchorPos); this.anchorValues = this.getValues(closestPoint); if (this.anchorPos !== this.lastAnchorPos) { var ev = Object(_events__WEBPACK_IMPORTED_MODULE_2__["createMouseEvent"])('mouseleave'); this.tooltipAnchor.nativeElement.dispatchEvent(ev); this.anchorOpacity = 0.7; this.hover.emit({ value: closestPoint }); this.showTooltip(); this.lastAnchorPos = this.anchorPos; } }; TooltipArea.prototype.findClosestPointIndex = function (xPos) { var minIndex = 0; var maxIndex = this.xSet.length - 1; var minDiff = Number.MAX_VALUE; var closestIndex = 0; while (minIndex <= maxIndex) { var currentIndex = ((minIndex + maxIndex) / 2) | 0; var currentElement = this.xScale(this.xSet[currentIndex]); var curDiff = Math.abs(currentElement - xPos); if (curDiff < minDiff) { minDiff = curDiff; closestIndex = currentIndex; } if (currentElement < xPos) { minIndex = currentIndex + 1; } else if (currentElement > xPos) { maxIndex = currentIndex - 1; } else { minDiff = 0; closestIndex = currentIndex; break; } } return closestIndex; }; TooltipArea.prototype.showTooltip = function () { var event = Object(_events__WEBPACK_IMPORTED_MODULE_2__["createMouseEvent"])('mouseenter'); this.tooltipAnchor.nativeElement.dispatchEvent(event); }; TooltipArea.prototype.hideTooltip = function () { var event = Object(_events__WEBPACK_IMPORTED_MODULE_2__["createMouseEvent"])('mouseleave'); this.tooltipAnchor.nativeElement.dispatchEvent(event); this.anchorOpacity = 0; this.lastAnchorPos = -1; }; TooltipArea.prototype.getToolTipText = function (tooltipItem) { var result = ''; if (tooltipItem.series !== undefined) { result += tooltipItem.series; } else { result += '???'; } result += ': '; if (tooltipItem.value !== undefined) { result += tooltipItem.value.toLocaleString(); } if (tooltipItem.min !== undefined || tooltipItem.max !== undefined) { result += ' ('; if (tooltipItem.min !== undefined) { if (tooltipItem.max === undefined) { result += '≥'; } result += tooltipItem.min.toLocaleString(); if (tooltipItem.max !== undefined) { result += ' - '; } } else if (tooltipItem.max !== undefined) { result += '≤'; } if (tooltipItem.max !== undefined) { result += tooltipItem.max.toLocaleString(); } result += ')'; } return result; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "xSet", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "results", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipArea.prototype, "showPercentage", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipArea.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], TooltipArea.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TooltipArea.prototype, "hover", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('tooltipAnchor', { static: false }), __metadata("design:type", Object) ], TooltipArea.prototype, "tooltipAnchor", void 0); TooltipArea = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-tooltip-area]', template: "\n <svg:g>\n <svg:rect\n class=\"tooltip-area\"\n [attr.x]=\"0\"\n y=\"0\"\n [attr.width]=\"dims.width\"\n [attr.height]=\"dims.height\"\n style=\"opacity: 0; cursor: 'auto';\"\n (mousemove)=\"mouseMove($event)\"\n (mouseleave)=\"hideTooltip()\"\n />\n <xhtml:ng-template #defaultTooltipTemplate let-model=\"model\">\n <xhtml:div class=\"area-tooltip-container\">\n <xhtml:div *ngFor=\"let tooltipItem of model\" class=\"tooltip-item\">\n <span class=\"tooltip-item-color\" [style.background-color]=\"tooltipItem.color\"> </span>\n {{ getToolTipText(tooltipItem) }}\n </xhtml:div>\n </xhtml:div>\n </xhtml:ng-template>\n <svg:rect\n #tooltipAnchor\n [@animationState]=\"anchorOpacity !== 0 ? 'active' : 'inactive'\"\n class=\"tooltip-anchor\"\n [attr.x]=\"anchorPos\"\n y=\"0\"\n [attr.width]=\"1\"\n [attr.height]=\"dims.height\"\n [style.opacity]=\"anchorOpacity\"\n [style.pointer-events]=\"'none'\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'right'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipSpacing]=\"15\"\n [tooltipTemplate]=\"tooltipTemplate ? tooltipTemplate : defaultTooltipTemplate\"\n [tooltipContext]=\"anchorValues\"\n [tooltipImmediateExit]=\"true\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('inactive => active', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(250, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0.7 })) ]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])('active => inactive', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0.7 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(250, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], TooltipArea); return TooltipArea; }()); //# sourceMappingURL=tooltip-area.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/alignment.type.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/alignment.type.js ***! \************************************************************************************/ /*! exports provided: AlignmentTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlignmentTypes", function() { return AlignmentTypes; }); var AlignmentTypes; (function (AlignmentTypes) { AlignmentTypes[AlignmentTypes["left"] = 'left'] = "left"; AlignmentTypes[AlignmentTypes["center"] = 'center'] = "center"; AlignmentTypes[AlignmentTypes["right"] = 'right'] = "right"; })(AlignmentTypes || (AlignmentTypes = {})); //# sourceMappingURL=alignment.type.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/index.js": /*!***************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/index.js ***! \***************************************************************************/ /*! exports provided: TooltipModule, TooltipService, TooltipContentComponent, TooltipDirective, StyleTypes, AlignmentTypes, ShowTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _tooltip_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tooltip.module */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.module.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipModule", function() { return _tooltip_module__WEBPACK_IMPORTED_MODULE_0__["TooltipModule"]; }); /* harmony import */ var _tooltip_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tooltip.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.service.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipService", function() { return _tooltip_service__WEBPACK_IMPORTED_MODULE_1__["TooltipService"]; }); /* harmony import */ var _tooltip_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tooltip.component */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipContentComponent", function() { return _tooltip_component__WEBPACK_IMPORTED_MODULE_2__["TooltipContentComponent"]; }); /* harmony import */ var _tooltip_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tooltip.directive */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.directive.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TooltipDirective", function() { return _tooltip_directive__WEBPACK_IMPORTED_MODULE_3__["TooltipDirective"]; }); /* harmony import */ var _style_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/style.type.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StyleTypes", function() { return _style_type__WEBPACK_IMPORTED_MODULE_4__["StyleTypes"]; }); /* harmony import */ var _alignment_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./alignment.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/alignment.type.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AlignmentTypes", function() { return _alignment_type__WEBPACK_IMPORTED_MODULE_5__["AlignmentTypes"]; }); /* harmony import */ var _show_type__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./show.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/show.type.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ShowTypes", function() { return _show_type__WEBPACK_IMPORTED_MODULE_6__["ShowTypes"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection-registery.service.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection-registery.service.js ***! \*************************************************************************************************/ /*! exports provided: InjectionRegistery */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectionRegistery", function() { return InjectionRegistery; }); var InjectionRegistery = /** @class */ (function () { function InjectionRegistery(injectionService) { this.injectionService = injectionService; this.defaults = {}; this.components = new Map(); } InjectionRegistery.prototype.getByType = function (type) { if (type === void 0) { type = this.type; } return this.components.get(type); }; InjectionRegistery.prototype.create = function (bindings) { return this.createByType(this.type, bindings); }; InjectionRegistery.prototype.createByType = function (type, bindings) { bindings = this.assignDefaults(bindings); var component = this.injectComponent(type, bindings); this.register(type, component); return component; }; InjectionRegistery.prototype.destroy = function (instance) { var compsByType = this.components.get(instance.componentType); if (compsByType) { var idx = compsByType.indexOf(instance); if (idx > -1) { var component = compsByType[idx]; component.destroy(); compsByType.splice(idx, 1); } } }; InjectionRegistery.prototype.destroyAll = function () { this.destroyByType(this.type); }; InjectionRegistery.prototype.destroyByType = function (type) { var comps = this.components.get(type); if (comps) { for (var _i = 0, comps_1 = comps; _i < comps_1.length; _i++) { var comp = comps_1[_i]; this.destroy(comp); } } }; InjectionRegistery.prototype.assignDefaults = function (bindings) { var _a = this.defaults, inputs = _a.inputs, outputs = _a.outputs; if (!bindings.inputs && !bindings.outputs) { bindings = { inputs: bindings }; } if (inputs) { bindings.inputs = Object.assign(inputs, bindings.inputs); } if (outputs) { bindings.outputs = Object.assign(outputs, bindings.outputs); } return bindings; }; InjectionRegistery.prototype.injectComponent = function (type, bindings) { return this.injectionService.appendComponent(type, bindings); }; InjectionRegistery.prototype.register = function (type, component) { if (!this.components.has(type)) { this.components.set(type, []); } var types = this.components.get(type); types.push(component); }; return InjectionRegistery; }()); //# sourceMappingURL=injection-registery.service.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection.service.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection.service.js ***! \***************************************************************************************/ /*! exports provided: InjectionService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectionService", function() { return InjectionService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * Injection service is a helper to append components * dynamically to a known location in the DOM, most * noteably for dialogs/tooltips appending to body. * * @export * @class InjectionService */ var InjectionService = /** @class */ (function () { function InjectionService(applicationRef, componentFactoryResolver, injector) { this.applicationRef = applicationRef; this.componentFactoryResolver = componentFactoryResolver; this.injector = injector; } InjectionService_1 = InjectionService; /** * Sets a default global root view container. This is useful for * things like ngUpgrade that doesn't have a ApplicationRef root. * * @param container */ InjectionService.setGlobalRootViewContainer = function (container) { InjectionService_1.globalRootViewContainer = container; }; /** * Gets the root view container to inject the component to. * * @returns {ComponentRef<any>} * * @memberOf InjectionService */ InjectionService.prototype.getRootViewContainer = function () { var rootComponents = this.applicationRef.components; // fix cannot read length of undefined if (rootComponents) { if (rootComponents.length) return rootComponents[0]; } if (this._container) return this._container; if (InjectionService_1.globalRootViewContainer) return InjectionService_1.globalRootViewContainer; throw new Error('View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.'); }; /** * Overrides the default root view container. This is useful for * things like ngUpgrade that doesn't have a ApplicationRef root. * * @param {any} container * * @memberOf InjectionService */ InjectionService.prototype.setRootViewContainer = function (container) { this._container = container; }; /** * Gets the html element for a component ref. * * @param {ComponentRef<any>} componentRef * @returns {HTMLElement} * * @memberOf InjectionService */ InjectionService.prototype.getComponentRootNode = function (componentRef) { // the top most component root node has no `hostView` if (!componentRef.hostView) return componentRef.element.nativeElement; return componentRef.hostView.rootNodes[0]; }; /** * Gets the root component container html element. * * @returns {HTMLElement} * * @memberOf InjectionService */ InjectionService.prototype.getRootViewContainerNode = function () { return this.getComponentRootNode(this.getRootViewContainer()); }; /** * Projects the bindings onto the component * * @param {ComponentRef<any>} component * @param {*} options * @returns {ComponentRef<any>} * * @memberOf InjectionService */ InjectionService.prototype.projectComponentBindings = function (component, bindings) { if (bindings) { if (bindings.inputs !== undefined) { var bindingKeys = Object.getOwnPropertyNames(bindings.inputs); for (var _i = 0, bindingKeys_1 = bindingKeys; _i < bindingKeys_1.length; _i++) { var bindingName = bindingKeys_1[_i]; component.instance[bindingName] = bindings.inputs[bindingName]; } } if (bindings.outputs !== undefined) { var eventKeys = Object.getOwnPropertyNames(bindings.outputs); for (var _a = 0, eventKeys_1 = eventKeys; _a < eventKeys_1.length; _a++) { var eventName = eventKeys_1[_a]; component.instance[eventName] = bindings.outputs[eventName]; } } } return component; }; /** * Appends a component to a adjacent location * * @template T * @param {Type<T>} componentClass * @param {*} [options={}] * @param {Element} [location=this.getRootViewContainerNode()] * @returns {ComponentRef<any>} * * @memberOf InjectionService */ InjectionService.prototype.appendComponent = function (componentClass, bindings, location) { if (bindings === void 0) { bindings = {}; } if (location === void 0) { location = this.getRootViewContainerNode(); } var componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentClass); var componentRef = componentFactory.create(this.injector); var appRef = this.applicationRef; var componentRootNode = this.getComponentRootNode(componentRef); // project the options passed to the component instance this.projectComponentBindings(componentRef, bindings); appRef.attachView(componentRef.hostView); componentRef.onDestroy(function () { appRef.detachView(componentRef.hostView); }); // use the renderer to append the element for univseral support var renderer = componentRef.instance.renderer; renderer.appendChild(location, componentRootNode); return componentRef; }; var InjectionService_1; InjectionService.globalRootViewContainer = null; InjectionService = InjectionService_1 = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]]) ], InjectionService); return InjectionService; }()); //# sourceMappingURL=injection.service.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/index.js ***! \************************************************************************************/ /*! exports provided: PlacementTypes, PositionHelper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _placement_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./placement.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/placement.type.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PlacementTypes", function() { return _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"]; }); /* harmony import */ var _position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./position */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/position.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PositionHelper", function() { return _position__WEBPACK_IMPORTED_MODULE_1__["PositionHelper"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/placement.type.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/placement.type.js ***! \*********************************************************************************************/ /*! exports provided: PlacementTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlacementTypes", function() { return PlacementTypes; }); var PlacementTypes; (function (PlacementTypes) { PlacementTypes[PlacementTypes["top"] = 'top'] = "top"; PlacementTypes[PlacementTypes["bottom"] = 'bottom'] = "bottom"; PlacementTypes[PlacementTypes["left"] = 'left'] = "left"; PlacementTypes[PlacementTypes["right"] = 'right'] = "right"; })(PlacementTypes || (PlacementTypes = {})); //# sourceMappingURL=placement.type.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/position.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/position.js ***! \***************************************************************************************/ /*! exports provided: PositionHelper */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionHelper", function() { return PositionHelper; }); /* harmony import */ var _placement_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./placement.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/placement.type.js"); var caretOffset = 7; function verticalPosition(elDimensions, popoverDimensions, alignment) { if (alignment === 'top') { return elDimensions.top - caretOffset; } if (alignment === 'bottom') { return elDimensions.top + elDimensions.height - popoverDimensions.height + caretOffset; } if (alignment === 'center') { return elDimensions.top + elDimensions.height / 2 - popoverDimensions.height / 2; } return undefined; } function horizontalPosition(elDimensions, popoverDimensions, alignment) { if (alignment === 'left') { return elDimensions.left - caretOffset; } if (alignment === 'right') { return elDimensions.left + elDimensions.width - popoverDimensions.width + caretOffset; } if (alignment === 'center') { return elDimensions.left + elDimensions.width / 2 - popoverDimensions.width / 2; } return undefined; } /** * Position helper for the popover directive. * * @export * @class PositionHelper */ var PositionHelper = /** @class */ (function () { function PositionHelper() { } /** * Calculate vertical alignment position * * @static * @param {any} elDimensions * @param {any} popoverDimensions * @param {any} alignment * @returns {number} * * @memberOf PositionHelper */ PositionHelper.calculateVerticalAlignment = function (elDimensions, popoverDimensions, alignment) { var result = verticalPosition(elDimensions, popoverDimensions, alignment); if (result + popoverDimensions.height > window.innerHeight) { result = window.innerHeight - popoverDimensions.height; } return result; }; /** * Calculate vertical caret position * * @static * @param {any} elDimensions * @param {any} popoverDimensions * @param {any} caretDimensions * @param {any} alignment * @returns {number} * * @memberOf PositionHelper */ PositionHelper.calculateVerticalCaret = function (elDimensions, popoverDimensions, caretDimensions, alignment) { var result; if (alignment === 'top') { result = elDimensions.height / 2 - caretDimensions.height / 2 + caretOffset; } if (alignment === 'bottom') { result = popoverDimensions.height - elDimensions.height / 2 - caretDimensions.height / 2 - caretOffset; } if (alignment === 'center') { result = popoverDimensions.height / 2 - caretDimensions.height / 2; } var popoverPosition = verticalPosition(elDimensions, popoverDimensions, alignment); if (popoverPosition + popoverDimensions.height > window.innerHeight) { result += (popoverPosition + popoverDimensions.height - window.innerHeight); } return result; }; /** * Calculate horz alignment position * * @static * @param {any} elDimensions * @param {any} popoverDimensions * @param {any} alignment * @returns {number} * * @memberOf PositionHelper */ PositionHelper.calculateHorizontalAlignment = function (elDimensions, popoverDimensions, alignment) { var result = horizontalPosition(elDimensions, popoverDimensions, alignment); if (result + popoverDimensions.width > window.innerWidth) { result = window.innerWidth - popoverDimensions.width; } return result; }; /** * Calculate horz caret position * * @static * @param {any} elDimensions * @param {any} popoverDimensions * @param {any} caretDimensions * @param {any} alignment * @returns {number} * * @memberOf PositionHelper */ PositionHelper.calculateHorizontalCaret = function (elDimensions, popoverDimensions, caretDimensions, alignment) { var result; if (alignment === 'left') { result = elDimensions.width / 2 - caretDimensions.width / 2 + caretOffset; } if (alignment === 'right') { result = popoverDimensions.width - elDimensions.width / 2 - caretDimensions.width / 2 - caretOffset; } if (alignment === 'center') { result = popoverDimensions.width / 2 - caretDimensions.width / 2; } var popoverPosition = horizontalPosition(elDimensions, popoverDimensions, alignment); if (popoverPosition + popoverDimensions.width > window.innerWidth) { result += (popoverPosition + popoverDimensions.width - window.innerWidth); } return result; }; /** * Checks if the element's position should be flipped * * @static * @param {any} elDimensions * @param {any} popoverDimensions * @param {any} placement * @param {any} spacing * @returns {boolean} * * @memberOf PositionHelper */ PositionHelper.shouldFlip = function (elDimensions, popoverDimensions, placement, spacing) { var flip = false; if (placement === 'right') { if (elDimensions.left + elDimensions.width + popoverDimensions.width + spacing > window.innerWidth) { flip = true; } } if (placement === 'left') { if (elDimensions.left - popoverDimensions.width - spacing < 0) { flip = true; } } if (placement === 'top') { if (elDimensions.top - popoverDimensions.height - spacing < 0) { flip = true; } } if (placement === 'bottom') { if (elDimensions.top + elDimensions.height + popoverDimensions.height + spacing > window.innerHeight) { flip = true; } } return flip; }; /** * Position caret * * @static * @param {any} placement * @param {any} elmDim * @param {any} hostDim * @param {any} caretDimensions * @param {any} alignment * @returns {*} * * @memberOf PositionHelper */ PositionHelper.positionCaret = function (placement, elmDim, hostDim, caretDimensions, alignment) { var top = 0; var left = 0; if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].right) { left = -7; top = PositionHelper.calculateVerticalCaret(hostDim, elmDim, caretDimensions, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].left) { left = elmDim.width; top = PositionHelper.calculateVerticalCaret(hostDim, elmDim, caretDimensions, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].top) { top = elmDim.height; left = PositionHelper.calculateHorizontalCaret(hostDim, elmDim, caretDimensions, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].bottom) { top = -7; left = PositionHelper.calculateHorizontalCaret(hostDim, elmDim, caretDimensions, alignment); } return { top: top, left: left }; }; /** * Position content * * @static * @param {any} placement * @param {any} elmDim * @param {any} hostDim * @param {any} spacing * @param {any} alignment * @returns {*} * * @memberOf PositionHelper */ PositionHelper.positionContent = function (placement, elmDim, hostDim, spacing, alignment) { var top = 0; var left = 0; if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].right) { left = hostDim.left + hostDim.width + spacing; top = PositionHelper.calculateVerticalAlignment(hostDim, elmDim, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].left) { left = hostDim.left - elmDim.width - spacing; top = PositionHelper.calculateVerticalAlignment(hostDim, elmDim, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].top) { top = hostDim.top - elmDim.height - spacing; left = PositionHelper.calculateHorizontalAlignment(hostDim, elmDim, alignment); } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].bottom) { top = hostDim.top + hostDim.height + spacing; left = PositionHelper.calculateHorizontalAlignment(hostDim, elmDim, alignment); } return { top: top, left: left }; }; /** * Determine placement based on flip * * @static * @param {any} placement * @param {any} elmDim * @param {any} hostDim * @param {any} spacing * @returns {*} * * @memberOf PositionHelper */ PositionHelper.determinePlacement = function (placement, elmDim, hostDim, spacing) { var shouldFlip = PositionHelper.shouldFlip(hostDim, elmDim, placement, spacing); if (shouldFlip) { if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].right) { return _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].left; } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].left) { return _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].right; } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].top) { return _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].bottom; } else if (placement === _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].bottom) { return _placement_type__WEBPACK_IMPORTED_MODULE_0__["PlacementTypes"].top; } } return placement; }; return PositionHelper; }()); //# sourceMappingURL=position.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/show.type.js": /*!*******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/show.type.js ***! \*******************************************************************************/ /*! exports provided: ShowTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowTypes", function() { return ShowTypes; }); var ShowTypes; (function (ShowTypes) { ShowTypes[ShowTypes["all"] = 'all'] = "all"; ShowTypes[ShowTypes["focus"] = 'focus'] = "focus"; ShowTypes[ShowTypes["mouseover"] = 'mouseover'] = "mouseover"; })(ShowTypes || (ShowTypes = {})); //# sourceMappingURL=show.type.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/style.type.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/style.type.js ***! \********************************************************************************/ /*! exports provided: StyleTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StyleTypes", function() { return StyleTypes; }); var StyleTypes; (function (StyleTypes) { StyleTypes[StyleTypes["popover"] = 'popover'] = "popover"; StyleTypes[StyleTypes["tooltip"] = 'tooltip'] = "tooltip"; })(StyleTypes || (StyleTypes = {})); //# sourceMappingURL=style.type.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.css.ngstyle.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.css.ngstyle.js ***! \***************************************************************************************************/ /*! exports provided: styles */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styles", function() { return styles; }); /** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ var styles = [".ngx-charts-tooltip-content {\n position: fixed;\n border-radius: 3px;\n z-index: 5000;\n display: block;\n font-weight: normal;\n opacity: 0;\n pointer-events: none !important; }\n .ngx-charts-tooltip-content.type-popover {\n background: #fff;\n color: #060709;\n border: 1px solid #72809b;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);\n font-size: 13px;\n padding: 4px; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-right: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #fff; }\n .ngx-charts-tooltip-content.type-tooltip {\n color: #fff;\n background: rgba(0, 0, 0, 0.75);\n font-size: 12px;\n padding: 0 10px;\n text-align: center;\n pointer-events: auto; }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-left: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-top: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right {\n border-top: 7px solid transparent;\n border-bottom: 7px solid transparent;\n border-right: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom {\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid rgba(0, 0, 0, 0.75); }\n .ngx-charts-tooltip-content .tooltip-label {\n display: block;\n line-height: 1em;\n padding: 8px 5px 5px 5px;\n font-size: 1em; }\n .ngx-charts-tooltip-content .tooltip-val {\n display: block;\n font-size: 1.3em;\n line-height: 1em;\n padding: 0 5px 8px 5px; }\n .ngx-charts-tooltip-content .tooltip-caret {\n position: absolute;\n z-index: 5001;\n width: 0;\n height: 0; }\n .ngx-charts-tooltip-content.position-right {\n transform: translate3d(10px, 0, 0); }\n .ngx-charts-tooltip-content.position-left {\n transform: translate3d(-10px, 0, 0); }\n .ngx-charts-tooltip-content.position-top {\n transform: translate3d(0, -10px, 0); }\n .ngx-charts-tooltip-content.position-bottom {\n transform: translate3d(0, 10px, 0); }\n .ngx-charts-tooltip-content.animate {\n opacity: 1;\n transition: opacity 0.3s, transform 0.3s;\n transform: translate3d(0, 0, 0);\n pointer-events: auto; }\n .area-tooltip-container {\n padding: 5px 0;\n pointer-events: none; }\n .tooltip-item {\n text-align: left;\n line-height: 1.2em;\n padding: 5px 0; }\n .tooltip-item .tooltip-item-color {\n display: inline-block;\n height: 12px;\n width: 12px;\n margin-right: 5px;\n color: #5b646b;\n border-radius: 3px; }\n"]; /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js ***! \***************************************************************************************/ /*! exports provided: TooltipContentComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipContentComponent", function() { return TooltipContentComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _utils_throttle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/throttle */ "./node_modules/@swimlane/ngx-charts/release/utils/throttle.js"); /* harmony import */ var _position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./position */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/index.js"); /* harmony import */ var _style_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/style.type.js"); /* harmony import */ var _alignment_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./alignment.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/alignment.type.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TooltipContentComponent = /** @class */ (function () { function TooltipContentComponent(element, renderer) { this.element = element; this.renderer = renderer; } Object.defineProperty(TooltipContentComponent.prototype, "cssClasses", { get: function () { var clz = 'ngx-charts-tooltip-content'; clz += " position-" + this.placement; clz += " type-" + this.type; clz += " " + this.cssClass; return clz; }, enumerable: true, configurable: true }); TooltipContentComponent.prototype.ngAfterViewInit = function () { setTimeout(this.position.bind(this)); }; TooltipContentComponent.prototype.position = function () { var _this = this; var nativeElm = this.element.nativeElement; var hostDim = this.host.nativeElement.getBoundingClientRect(); // if no dims were found, never show if (!hostDim.height && !hostDim.width) return; var elmDim = nativeElm.getBoundingClientRect(); this.checkFlip(hostDim, elmDim); this.positionContent(nativeElm, hostDim, elmDim); if (this.showCaret) { this.positionCaret(hostDim, elmDim); } // animate its entry setTimeout(function () { return _this.renderer.addClass(nativeElm, 'animate'); }, 1); }; TooltipContentComponent.prototype.positionContent = function (nativeElm, hostDim, elmDim) { var _a = _position__WEBPACK_IMPORTED_MODULE_2__["PositionHelper"].positionContent(this.placement, elmDim, hostDim, this.spacing, this.alignment), top = _a.top, left = _a.left; this.renderer.setStyle(nativeElm, 'top', top + "px"); this.renderer.setStyle(nativeElm, 'left', left + "px"); }; TooltipContentComponent.prototype.positionCaret = function (hostDim, elmDim) { var caretElm = this.caretElm.nativeElement; var caretDimensions = caretElm.getBoundingClientRect(); var _a = _position__WEBPACK_IMPORTED_MODULE_2__["PositionHelper"].positionCaret(this.placement, elmDim, hostDim, caretDimensions, this.alignment), top = _a.top, left = _a.left; this.renderer.setStyle(caretElm, 'top', top + "px"); this.renderer.setStyle(caretElm, 'left', left + "px"); }; TooltipContentComponent.prototype.checkFlip = function (hostDim, elmDim) { this.placement = _position__WEBPACK_IMPORTED_MODULE_2__["PositionHelper"].determinePlacement(this.placement, elmDim, hostDim, this.spacing); }; TooltipContentComponent.prototype.onWindowResize = function () { this.position(); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipContentComponent.prototype, "host", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipContentComponent.prototype, "showCaret", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipContentComponent.prototype, "type", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipContentComponent.prototype, "placement", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipContentComponent.prototype, "alignment", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipContentComponent.prototype, "spacing", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TooltipContentComponent.prototype, "cssClass", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TooltipContentComponent.prototype, "title", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipContentComponent.prototype, "template", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipContentComponent.prototype, "context", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('caretElm', { static: false }), __metadata("design:type", Object) ], TooltipContentComponent.prototype, "caretElm", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])('class'), __metadata("design:type", String), __metadata("design:paramtypes", []) ], TooltipContentComponent.prototype, "cssClasses", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('window:resize'), Object(_utils_throttle__WEBPACK_IMPORTED_MODULE_1__["throttleable"])(100), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TooltipContentComponent.prototype, "onWindowResize", null); TooltipContentComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-tooltip-content', template: "\n <div>\n <span #caretElm [hidden]=\"!showCaret\" class=\"tooltip-caret position-{{ this.placement }}\"> </span>\n <div class=\"tooltip-content\">\n <span *ngIf=\"!title\">\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ model: context }\"> </ng-template>\n </span>\n <span *ngIf=\"title\" [innerHTML]=\"title\"> </span>\n </div>\n </div>\n ", encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, styleUrls: ['./tooltip.component.css'] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]]) ], TooltipContentComponent); return TooltipContentComponent; }()); //# sourceMappingURL=tooltip.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.ngfactory.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.ngfactory.js ***! \*************************************************************************************************/ /*! exports provided: RenderType_TooltipContentComponent, View_TooltipContentComponent_0, View_TooltipContentComponent_Host_0, TooltipContentComponentNgFactory */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RenderType_TooltipContentComponent", function() { return RenderType_TooltipContentComponent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_TooltipContentComponent_0", function() { return View_TooltipContentComponent_0; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "View_TooltipContentComponent_Host_0", function() { return View_TooltipContentComponent_Host_0; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipContentComponentNgFactory", function() { return TooltipContentComponentNgFactory; }); /* harmony import */ var _tooltip_component_css_ngstyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tooltip.component.css.ngstyle */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.css.ngstyle.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js"); /* harmony import */ var _tooltip_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tooltip.component */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js"); /** * @fileoverview This file was generated by the Angular template compiler. Do not edit. * * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes} * tslint:disable */ var styles_TooltipContentComponent = [_tooltip_component_css_ngstyle__WEBPACK_IMPORTED_MODULE_0__["styles"]]; var RenderType_TooltipContentComponent = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵcrt"]({ encapsulation: 2, styles: styles_TooltipContentComponent, data: {} }); function View_TooltipContentComponent_2(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵand"](0, null, null, 0))], null, null); } function View_TooltipContentComponent_1(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](0, 0, null, null, 3, "span", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵand"](16777216, null, null, 2, null, View_TooltipContentComponent_2)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵdid"](2, 540672, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgTemplateOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵpod"](3, { model: 0 })], function (_ck, _v) { var _co = _v.component; var currVal_0 = _ck(_v, 3, 0, _co.context); var currVal_1 = _co.template; _ck(_v, 2, 0, currVal_0, currVal_1); }, null); } function View_TooltipContentComponent_3(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](0, 0, null, null, 0, "span", [], [[8, "innerHTML", 1]], null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.title; _ck(_v, 0, 0, currVal_0); }); } function View_TooltipContentComponent_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵvid"](0, [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵqud"](671088640, 1, { caretElm: 0 }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](1, 0, null, null, 6, "div", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](2, 0, [[1, 0], ["caretElm", 1]], null, 0, "span", [], [[8, "hidden", 0], [8, "className", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](3, 0, null, null, 4, "div", [["class", "tooltip-content"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵand"](16777216, null, null, 1, null, View_TooltipContentComponent_1)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵdid"](5, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵand"](16777216, null, null, 1, null, View_TooltipContentComponent_3)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵdid"](7, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_2 = !_co.title; _ck(_v, 5, 0, currVal_2); var currVal_3 = _co.title; _ck(_v, 7, 0, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.showCaret; var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵinlineInterpolate"](1, "tooltip-caret position-", _co.placement, ""); _ck(_v, 2, 0, currVal_0, currVal_1); }); } function View_TooltipContentComponent_Host_0(_l) { return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵeld"](0, 0, null, null, 1, "ngx-tooltip-content", [], [[8, "className", 0]], [["window", "resize"]], function (_v, en, $event) { var ad = true; if (("window:resize" === en)) { var pd_0 = (_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵnov"](_v, 1).onWindowResize() !== false); ad = (pd_0 && ad); } return ad; }, View_TooltipContentComponent_0, RenderType_TooltipContentComponent)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵdid"](1, 4243456, null, 0, _tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"], [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]], null, null)], null, function (_ck, _v) { var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵnov"](_v, 1).cssClasses; _ck(_v, 0, 0, currVal_0); }); } var TooltipContentComponentNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵccf"]("ngx-tooltip-content", _tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"], View_TooltipContentComponent_Host_0, { host: "host", showCaret: "showCaret", type: "type", placement: "placement", alignment: "alignment", spacing: "spacing", cssClass: "cssClass", title: "title", template: "template", context: "context" }, {}, []); /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.directive.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.directive.js ***! \***************************************************************************************/ /*! exports provided: TooltipDirective */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipDirective", function() { return TooltipDirective; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./position */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/position/index.js"); /* harmony import */ var _style_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/style.type.js"); /* harmony import */ var _alignment_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alignment.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/alignment.type.js"); /* harmony import */ var _show_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./show.type */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/show.type.js"); /* harmony import */ var _tooltip_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tooltip.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.service.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TooltipDirective = /** @class */ (function () { function TooltipDirective(tooltipService, viewContainerRef, renderer) { this.tooltipService = tooltipService; this.viewContainerRef = viewContainerRef; this.renderer = renderer; this.tooltipCssClass = ''; this.tooltipTitle = ''; this.tooltipAppendToBody = true; this.tooltipSpacing = 10; this.tooltipDisabled = false; this.tooltipShowCaret = true; this.tooltipPlacement = _position__WEBPACK_IMPORTED_MODULE_1__["PlacementTypes"].top; this.tooltipAlignment = _alignment_type__WEBPACK_IMPORTED_MODULE_3__["AlignmentTypes"].center; this.tooltipType = _style_type__WEBPACK_IMPORTED_MODULE_2__["StyleTypes"].popover; this.tooltipCloseOnClickOutside = true; this.tooltipCloseOnMouseLeave = true; this.tooltipHideTimeout = 300; this.tooltipShowTimeout = 100; this.tooltipShowEvent = _show_type__WEBPACK_IMPORTED_MODULE_4__["ShowTypes"].all; this.tooltipImmediateExit = false; this.show = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.hide = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } Object.defineProperty(TooltipDirective.prototype, "listensForFocus", { get: function () { return this.tooltipShowEvent === _show_type__WEBPACK_IMPORTED_MODULE_4__["ShowTypes"].all || this.tooltipShowEvent === _show_type__WEBPACK_IMPORTED_MODULE_4__["ShowTypes"].focus; }, enumerable: true, configurable: true }); Object.defineProperty(TooltipDirective.prototype, "listensForHover", { get: function () { return this.tooltipShowEvent === _show_type__WEBPACK_IMPORTED_MODULE_4__["ShowTypes"].all || this.tooltipShowEvent === _show_type__WEBPACK_IMPORTED_MODULE_4__["ShowTypes"].mouseover; }, enumerable: true, configurable: true }); TooltipDirective.prototype.ngOnDestroy = function () { this.hideTooltip(true); }; TooltipDirective.prototype.onFocus = function () { if (this.listensForFocus) { this.showTooltip(); } }; TooltipDirective.prototype.onBlur = function () { if (this.listensForFocus) { this.hideTooltip(true); } }; TooltipDirective.prototype.onMouseEnter = function () { if (this.listensForHover) { this.showTooltip(); } }; TooltipDirective.prototype.onMouseLeave = function (target) { if (this.listensForHover && this.tooltipCloseOnMouseLeave) { clearTimeout(this.timeout); if (this.component) { var contentDom = this.component.instance.element.nativeElement; var contains = contentDom.contains(target); if (contains) return; } this.hideTooltip(this.tooltipImmediateExit); } }; TooltipDirective.prototype.onMouseClick = function () { if (this.listensForHover) { this.hideTooltip(true); } }; TooltipDirective.prototype.showTooltip = function (immediate) { var _this = this; if (this.component || this.tooltipDisabled) return; var time = immediate ? 0 : this.tooltipShowTimeout; clearTimeout(this.timeout); this.timeout = setTimeout(function () { _this.tooltipService.destroyAll(); var options = _this.createBoundOptions(); _this.component = _this.tooltipService.create(options); // add a tiny timeout to avoid event re-triggers setTimeout(function () { if (_this.component) { _this.addHideListeners(_this.component.instance.element.nativeElement); } }, 10); _this.show.emit(true); }, time); }; TooltipDirective.prototype.addHideListeners = function (tooltip) { var _this = this; // on mouse enter, cancel the hide triggered by the leave this.mouseEnterContentEvent = this.renderer.listen(tooltip, 'mouseenter', function () { clearTimeout(_this.timeout); }); // content mouse leave listener if (this.tooltipCloseOnMouseLeave) { this.mouseLeaveContentEvent = this.renderer.listen(tooltip, 'mouseleave', function () { _this.hideTooltip(_this.tooltipImmediateExit); }); } // content close on click outside if (this.tooltipCloseOnClickOutside) { this.documentClickEvent = this.renderer.listen(document, 'click', function (event) { var contains = tooltip.contains(event.target); if (!contains) _this.hideTooltip(); }); } }; TooltipDirective.prototype.hideTooltip = function (immediate) { var _this = this; if (immediate === void 0) { immediate = false; } if (!this.component) return; var destroyFn = function () { // remove events if (_this.mouseLeaveContentEvent) _this.mouseLeaveContentEvent(); if (_this.mouseEnterContentEvent) _this.mouseEnterContentEvent(); if (_this.documentClickEvent) _this.documentClickEvent(); // emit events _this.hide.emit(true); // destroy component _this.tooltipService.destroy(_this.component); _this.component = undefined; }; clearTimeout(this.timeout); if (!immediate) { this.timeout = setTimeout(destroyFn, this.tooltipHideTimeout); } else { destroyFn(); } }; TooltipDirective.prototype.createBoundOptions = function () { return { title: this.tooltipTitle, template: this.tooltipTemplate, host: this.viewContainerRef.element, placement: this.tooltipPlacement, alignment: this.tooltipAlignment, type: this.tooltipType, showCaret: this.tooltipShowCaret, cssClass: this.tooltipCssClass, spacing: this.tooltipSpacing, context: this.tooltipContext }; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TooltipDirective.prototype, "tooltipCssClass", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], TooltipDirective.prototype, "tooltipTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipAppendToBody", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipSpacing", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipShowCaret", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipPlacement", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipAlignment", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipCloseOnClickOutside", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipCloseOnMouseLeave", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipHideTimeout", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipShowTimeout", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipDirective.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], TooltipDirective.prototype, "tooltipShowEvent", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TooltipDirective.prototype, "tooltipContext", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TooltipDirective.prototype, "tooltipImmediateExit", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TooltipDirective.prototype, "show", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TooltipDirective.prototype, "hide", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('focusin'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TooltipDirective.prototype, "onFocus", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('blur'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TooltipDirective.prototype, "onBlur", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TooltipDirective.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave', ['$event.target']), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0) ], TooltipDirective.prototype, "onMouseLeave", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('click'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], TooltipDirective.prototype, "onMouseClick", null); TooltipDirective = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"])({ selector: '[ngx-tooltip]' }), __metadata("design:paramtypes", [_tooltip_service__WEBPACK_IMPORTED_MODULE_5__["TooltipService"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]]) ], TooltipDirective); return TooltipDirective; }()); //# sourceMappingURL=tooltip.directive.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.module.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.module.js ***! \************************************************************************************/ /*! exports provided: TooltipModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipModule", function() { return TooltipModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js"); /* harmony import */ var _tooltip_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tooltip.directive */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.directive.js"); /* harmony import */ var _tooltip_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tooltip.component */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js"); /* harmony import */ var _tooltip_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tooltip.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.service.js"); /* harmony import */ var _injection_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./injection.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection.service.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var TooltipModule = /** @class */ (function () { function TooltipModule() { } TooltipModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ declarations: [_tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"], _tooltip_directive__WEBPACK_IMPORTED_MODULE_2__["TooltipDirective"]], providers: [_injection_service__WEBPACK_IMPORTED_MODULE_5__["InjectionService"], _tooltip_service__WEBPACK_IMPORTED_MODULE_4__["TooltipService"]], exports: [_tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"], _tooltip_directive__WEBPACK_IMPORTED_MODULE_2__["TooltipDirective"]], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], entryComponents: [_tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"]] }) ], TooltipModule); return TooltipModule; }()); //# sourceMappingURL=tooltip.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.service.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.service.js ***! \*************************************************************************************/ /*! exports provided: TooltipService */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooltipService", function() { return TooltipService; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _injection_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./injection.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection.service.js"); /* harmony import */ var _injection_registery_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./injection-registery.service */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/injection-registery.service.js"); /* harmony import */ var _tooltip_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tooltip.component */ "./node_modules/@swimlane/ngx-charts/release/common/tooltip/tooltip.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TooltipService = /** @class */ (function (_super) { __extends(TooltipService, _super); function TooltipService(injectionService) { var _this = _super.call(this, injectionService) || this; _this.injectionService = injectionService; _this.type = _tooltip_component__WEBPACK_IMPORTED_MODULE_3__["TooltipContentComponent"]; return _this; } TooltipService = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(), __metadata("design:paramtypes", [_injection_service__WEBPACK_IMPORTED_MODULE_1__["InjectionService"]]) ], TooltipService); return TooltipService; }(_injection_registery_service__WEBPACK_IMPORTED_MODULE_2__["InjectionRegistery"])); //# sourceMappingURL=tooltip.service.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js": /*!*******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js ***! \*******************************************************************************/ /*! exports provided: trimLabel */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trimLabel", function() { return trimLabel; }); function trimLabel(s, max) { if (max === void 0) { max = 16; } if (typeof s !== 'string') { if (typeof s === 'number') { return s + ''; } else { return ''; } } s = s.trim(); if (s.length <= max) { return s; } else { return s.slice(0, max) + "..."; } } //# sourceMappingURL=trim-label.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js ***! \************************************************************************************/ /*! exports provided: calculateViewDimensions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateViewDimensions", function() { return calculateViewDimensions; }); function calculateViewDimensions(_a) { var width = _a.width, height = _a.height, margins = _a.margins, _b = _a.showXAxis, showXAxis = _b === void 0 ? false : _b, _c = _a.showYAxis, showYAxis = _c === void 0 ? false : _c, _d = _a.xAxisHeight, xAxisHeight = _d === void 0 ? 0 : _d, _e = _a.yAxisWidth, yAxisWidth = _e === void 0 ? 0 : _e, _f = _a.showXLabel, showXLabel = _f === void 0 ? false : _f, _g = _a.showYLabel, showYLabel = _g === void 0 ? false : _g, _h = _a.showLegend, showLegend = _h === void 0 ? false : _h, _j = _a.legendType, legendType = _j === void 0 ? 'ordinal' : _j, _k = _a.legendPosition, legendPosition = _k === void 0 ? 'right' : _k, _l = _a.columns, columns = _l === void 0 ? 12 : _l; var xOffset = margins[3]; var chartWidth = width; var chartHeight = height - margins[0] - margins[2]; if (showLegend && legendPosition === 'right') { if (legendType === 'ordinal') { columns -= 2; } else { columns -= 1; } } chartWidth = chartWidth * columns / 12; chartWidth = chartWidth - margins[1] - margins[3]; if (showXAxis) { chartHeight -= 5; chartHeight -= xAxisHeight; if (showXLabel) { // text height + spacing between axis label and tick labels var offset = 25 + 5; chartHeight -= offset; } } if (showYAxis) { chartWidth -= 5; chartWidth -= yAxisWidth; xOffset += yAxisWidth; xOffset += 10; if (showYLabel) { // text height + spacing between axis label and tick labels var offset = 25 + 5; chartWidth -= offset; xOffset += offset; } } chartWidth = Math.max(0, chartWidth); chartHeight = Math.max(0, chartHeight); return { width: Math.floor(chartWidth), height: Math.floor(chartHeight), xOffset: Math.floor(xOffset) }; } //# sourceMappingURL=view-dimensions.helper.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/events.js": /*!*************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/events.js ***! \*************************************************************/ /*! exports provided: MouseEvent, createMouseEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MouseEvent", function() { return MouseEvent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createMouseEvent", function() { return createMouseEvent; }); // If we don't check whether 'window' and 'global' variables are defined, // code will fail in browser/node with 'variable is undefined' error. var root; if (typeof window !== 'undefined') { root = window; } else if (typeof global !== 'undefined') { root = global; } // tslint:disable-next-line:variable-name var MouseEvent = root.MouseEvent; function createMouseEvent(name, bubbles, cancelable) { if (bubbles === void 0) { bubbles = false; } if (cancelable === void 0) { cancelable = true; } // Calling new of an event does not work correctly on IE. The following is a tested workaround // See https://stackoverflow.com/questions/27176983/dispatchevent-not-working-in-ie11 if (typeof (MouseEvent) === 'function') { // Sane browsers return new MouseEvent(name, { bubbles: bubbles, cancelable: cancelable }); } else { // IE var event_1 = document.createEvent('MouseEvent'); event_1.initEvent(name, bubbles, cancelable); return event_1; } } //# sourceMappingURL=events.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.component.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.component.js ***! \**********************************************************************************************************/ /*! exports provided: ForceDirectedGraphComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForceDirectedGraphComponent", function() { return ForceDirectedGraphComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_force__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-force */ "./node_modules/d3-force/src/index.js"); /* harmony import */ var _common_charts_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/charts/chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/charts/chart.component.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../events */ "./node_modules/@swimlane/ngx-charts/release/events.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /* tslint:disable */ var ForceDirectedGraphComponent = /** @class */ (function (_super) { __extends(ForceDirectedGraphComponent, _super); function ForceDirectedGraphComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.force = Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceSimulation"])() .force('charge', Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceManyBody"])()) .force('collide', Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceCollide"])(5)) .force('x', Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceX"])()) .force('y', Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceY"])()); _this.forceLink = Object(d3_force__WEBPACK_IMPORTED_MODULE_1__["forceLink"])().id(function (node) { return node.value; }); _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.nodes = []; _this.links = []; _this.activeEntries = []; _this.tooltipDisabled = false; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [0, 0, 0, 0]; _this.results = []; _this.groupResultsBy = function (node) { return node.value; }; return _this; } ForceDirectedGraphComponent.prototype.update = function () { _super.prototype.update.call(this); // center graph this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showLegend: this.legend, legendPosition: this.legendPosition }); this.seriesDomain = this.getSeriesDomain(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "\n translate(" + (this.dims.xOffset + this.dims.width / 2) + ", " + (this.margin[0] + this.dims.height / 2) + ")\n "; if (this.force) { this.force .nodes(this.nodes) .force('link', this.forceLink.links(this.links)) .alpha(0.5) .restart(); } }; ForceDirectedGraphComponent.prototype.onClick = function (data) { this.select.emit(data); }; ForceDirectedGraphComponent.prototype.onActivate = function (event) { if (this.activeEntries.indexOf(event) > -1) return; this.activeEntries = [event].concat(this.activeEntries); this.activate.emit({ value: event, entries: this.activeEntries }); }; ForceDirectedGraphComponent.prototype.onDeactivate = function (event) { var idx = this.activeEntries.indexOf(event); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: event, entries: this.activeEntries }); }; ForceDirectedGraphComponent.prototype.getSeriesDomain = function () { var _this = this; return this.nodes .map(function (d) { return _this.groupResultsBy(d); }) .reduce(function (nodes, node) { return (nodes.includes(node) ? nodes : nodes.concat([node])); }, []) .sort(); }; ForceDirectedGraphComponent.prototype.trackLinkBy = function (index, link) { return link.index; }; ForceDirectedGraphComponent.prototype.trackNodeBy = function (index, node) { return node.value; }; ForceDirectedGraphComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_5__["ColorHelper"](this.scheme, 'ordinal', this.seriesDomain, this.customColors); }; ForceDirectedGraphComponent.prototype.getLegendOptions = function () { return { scaleType: 'ordinal', domain: this.seriesDomain, colors: this.colors, title: this.legendTitle, position: this.legendPosition }; }; // Easier to use Angular2 event management than use d3.drag ForceDirectedGraphComponent.prototype.onDragStart = function (node, $event) { this.force.alphaTarget(0.3).restart(); this.draggingNode = node; this.draggingStart = { x: $event.x - node.x, y: $event.y - node.y }; this.draggingNode.fx = $event.x - this.draggingStart.x; this.draggingNode.fy = $event.y - this.draggingStart.y; }; ForceDirectedGraphComponent.prototype.onDrag = function ($event) { if (!this.draggingNode) return; this.draggingNode.fx = $event.x - this.draggingStart.x; this.draggingNode.fy = $event.y - this.draggingStart.y; }; ForceDirectedGraphComponent.prototype.onDragEnd = function ($event) { if (!this.draggingNode) return; this.force.alphaTarget(0); this.draggingNode.fx = undefined; this.draggingNode.fy = undefined; this.draggingNode = undefined; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ForceDirectedGraphComponent.prototype, "force", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], ForceDirectedGraphComponent.prototype, "forceLink", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ForceDirectedGraphComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ForceDirectedGraphComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], ForceDirectedGraphComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], ForceDirectedGraphComponent.prototype, "nodes", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], ForceDirectedGraphComponent.prototype, "links", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], ForceDirectedGraphComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], ForceDirectedGraphComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ForceDirectedGraphComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], ForceDirectedGraphComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('linkTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], ForceDirectedGraphComponent.prototype, "linkTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('nodeTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], ForceDirectedGraphComponent.prototype, "nodeTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], ForceDirectedGraphComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_common_charts_chart_component__WEBPACK_IMPORTED_MODULE_2__["ChartComponent"], { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], ForceDirectedGraphComponent.prototype, "chart", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], ForceDirectedGraphComponent.prototype, "groupResultsBy", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('document:mousemove', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0) ], ForceDirectedGraphComponent.prototype, "onDrag", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('document:mouseup', ['$event']), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0) ], ForceDirectedGraphComponent.prototype, "onDragEnd", null); ForceDirectedGraphComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-force-directed-graph', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"force-directed-graph chart\">\n <svg:g class=\"links\">\n <svg:g *ngFor=\"let link of links; trackBy: trackLinkBy\">\n <ng-template\n *ngIf=\"linkTemplate\"\n [ngTemplateOutlet]=\"linkTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: link }\"\n ></ng-template>\n <svg:line\n *ngIf=\"!linkTemplate\"\n strokeWidth=\"1\"\n class=\"edge\"\n [attr.x1]=\"link.source.x\"\n [attr.y1]=\"link.source.y\"\n [attr.x2]=\"link.target.x\"\n [attr.y2]=\"link.target.y\"\n />\n </svg:g>\n </svg:g>\n <svg:g class=\"nodes\">\n <svg:g\n *ngFor=\"let node of nodes; trackBy: trackNodeBy\"\n [attr.transform]=\"'translate(' + node.x + ',' + node.y + ')'\"\n [attr.fill]=\"colors.getColor(groupResultsBy(node))\"\n [attr.stroke]=\"colors.getColor(groupResultsBy(node))\"\n (mousedown)=\"onDragStart(node, $event)\"\n (click)=\"onClick({ name: node.value })\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : node.value\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"node\"\n >\n <ng-template\n *ngIf=\"nodeTemplate\"\n [ngTemplateOutlet]=\"nodeTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\"\n ></ng-template>\n <svg:circle *ngIf=\"!nodeTemplate\" r=\"5\" />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './force-directed-graph.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], ForceDirectedGraphComponent); return ForceDirectedGraphComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__["BaseChartComponent"])); //# sourceMappingURL=force-directed-graph.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.module.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.module.js ***! \*******************************************************************************************************/ /*! exports provided: ForceDirectedGraphModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForceDirectedGraphModule", function() { return ForceDirectedGraphModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _force_directed_graph_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./force-directed-graph.component */ "./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.component.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var ForceDirectedGraphModule = /** @class */ (function () { function ForceDirectedGraphModule() { } ForceDirectedGraphModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_2__["ChartCommonModule"]], declarations: [ _force_directed_graph_component__WEBPACK_IMPORTED_MODULE_1__["ForceDirectedGraphComponent"], ], exports: [ _force_directed_graph_component__WEBPACK_IMPORTED_MODULE_1__["ForceDirectedGraphComponent"], ] }) ], ForceDirectedGraphModule); return ForceDirectedGraphModule; }()); //# sourceMappingURL=force-directed-graph.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge-arc.component.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/gauge/gauge-arc.component.js ***! \********************************************************************************/ /*! exports provided: GaugeArcComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeArcComponent", function() { return GaugeArcComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GaugeArcComponent = /** @class */ (function () { function GaugeArcComponent() { this.isActive = false; this.tooltipDisabled = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } GaugeArcComponent.prototype.tooltipText = function (arc) { var label = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_1__["formatLabel"])(arc.data.name); var val; if (this.valueFormatting) { val = this.valueFormatting(arc.data.value); } else { val = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_1__["formatLabel"])(arc.data.value); } return "\n <span class=\"tooltip-label\">" + label + "</span>\n <span class=\"tooltip-val\">" + val + "</span>\n "; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "backgroundArc", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "valueArc", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "cornerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _common_color_helper__WEBPACK_IMPORTED_MODULE_2__["ColorHelper"]) ], GaugeArcComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeArcComponent.prototype, "isActive", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeArcComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], GaugeArcComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], GaugeArcComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeArcComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], GaugeArcComponent.prototype, "deactivate", void 0); GaugeArcComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-gauge-arc]', template: "\n <svg:g ngx-charts-pie-arc\n class=\"background-arc\"\n [startAngle]=\"0\"\n [endAngle]=\"backgroundArc.endAngle\"\n [innerRadius]=\"backgroundArc.innerRadius\"\n [outerRadius]=\"backgroundArc.outerRadius\"\n [cornerRadius]=\"cornerRadius\"\n [data]=\"backgroundArc.data\"\n [animate]=\"false\"\n [pointerEvents]=\"false\">\n </svg:g>\n <svg:g ngx-charts-pie-arc\n [startAngle]=\"0\"\n [endAngle]=\"valueArc.endAngle\"\n [innerRadius]=\"valueArc.innerRadius\"\n [outerRadius]=\"valueArc.outerRadius\"\n [cornerRadius]=\"cornerRadius\"\n [fill]=\"colors.getColor(valueArc.data.name)\"\n [data]=\"valueArc.data\"\n [animate]=\"animations\"\n [isActive]=\"isActive\"\n (select)=\"select.emit($event)\"\n (activate)=\"activate.emit($event)\"\n (deactivate)=\"deactivate.emit($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : tooltipText(valueArc)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"valueArc.data\">\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, }) ], GaugeArcComponent); return GaugeArcComponent; }()); //# sourceMappingURL=gauge-arc.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.js": /*!*********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.js ***! \*********************************************************************************/ /*! exports provided: GaugeAxisComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeAxisComponent", function() { return GaugeAxisComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GaugeAxisComponent = /** @class */ (function () { function GaugeAxisComponent() { this.rotate = ''; } GaugeAxisComponent.prototype.ngOnChanges = function (changes) { this.update(); }; GaugeAxisComponent.prototype.update = function () { this.rotationAngle = -90 + this.startAngle; this.rotate = "rotate(" + this.rotationAngle + ")"; this.ticks = this.getTicks(); }; GaugeAxisComponent.prototype.getTicks = function () { var bigTickSegment = this.angleSpan / this.bigSegments; var smallTickSegment = bigTickSegment / (this.smallSegments); var tickLength = 20; var ticks = { big: [], small: [] }; var startDistance = this.radius + 10; var textDist = startDistance + tickLength + 10; for (var i = 0; i <= this.bigSegments; i++) { var angleDeg = i * bigTickSegment; var angle = angleDeg * Math.PI / 180; var textAnchor = this.getTextAnchor(angleDeg); var skip = false; if (i === 0 && this.angleSpan === 360) { skip = true; } if (!skip) { var text = Number.parseFloat(this.valueScale.invert(angleDeg).toString()).toLocaleString(); if (this.tickFormatting) { text = this.tickFormatting(text); } ticks.big.push({ line: this.getTickPath(startDistance, tickLength, angle), textAnchor: textAnchor, text: text, textTransform: "\n translate(" + textDist * Math.cos(angle) + ", " + textDist * Math.sin(angle) + ") rotate(" + -this.rotationAngle + ")\n " }); } if (i === this.bigSegments) { continue; } for (var j = 1; j <= this.smallSegments; j++) { var smallAngleDeg = angleDeg + j * smallTickSegment; var smallAngle = smallAngleDeg * Math.PI / 180; ticks.small.push({ line: this.getTickPath(startDistance, tickLength / 2, smallAngle) }); } } return ticks; }; GaugeAxisComponent.prototype.getTextAnchor = function (angle) { // [0, 45] = 'middle'; // [46, 135] = 'start'; // [136, 225] = 'middle'; // [226, 315] = 'end'; angle = (this.startAngle + angle) % 360; var textAnchor = 'middle'; if (angle > 45 && angle <= 135) { textAnchor = 'start'; } else if (angle > 225 && angle <= 315) { textAnchor = 'end'; } return textAnchor; }; GaugeAxisComponent.prototype.getTickPath = function (startDistance, tickLength, angle) { var y1 = startDistance * Math.sin(angle); var y2 = (startDistance + tickLength) * Math.sin(angle); var x1 = startDistance * Math.cos(angle); var x2 = (startDistance + tickLength) * Math.cos(angle); var points = [{ x: x1, y: y1 }, { x: x2, y: y2 }]; var lineGenerator = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["line"])().x(function (d) { return d.x; }).y(function (d) { return d.y; }); return lineGenerator(points); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "bigSegments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "smallSegments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "min", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeAxisComponent.prototype, "angleSpan", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeAxisComponent.prototype, "startAngle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "radius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "valueScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeAxisComponent.prototype, "tickFormatting", void 0); GaugeAxisComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-gauge-axis]', template: "\n <svg:g [attr.transform]=\"rotate\">\n <svg:g *ngFor=\"let tick of ticks.big\"\n class=\"gauge-tick gauge-tick-large\">\n <svg:path [attr.d]=\"tick.line\" />\n </svg:g>\n <svg:g *ngFor=\"let tick of ticks.big\"\n class=\"gauge-tick gauge-tick-large\">\n <svg:text\n [style.textAnchor]=\"tick.textAnchor\"\n [attr.transform]=\"tick.textTransform\"\n alignment-baseline=\"central\">\n {{tick.text}}\n </svg:text>\n </svg:g>\n <svg:g *ngFor=\"let tick of ticks.small\"\n class=\"gauge-tick gauge-tick-small\">\n <svg:path [attr.d]=\"tick.line\" />\n </svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], GaugeAxisComponent); return GaugeAxisComponent; }()); //# sourceMappingURL=gauge-axis.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge.component.js": /*!****************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/gauge/gauge.component.js ***! \****************************************************************************/ /*! exports provided: GaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeComponent", function() { return GaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var GaugeComponent = /** @class */ (function (_super) { __extends(GaugeComponent, _super); function GaugeComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.min = 0; _this.max = 100; _this.bigSegments = 10; _this.smallSegments = 5; _this.showAxis = true; _this.startAngle = -120; _this.angleSpan = 240; _this.activeEntries = []; _this.tooltipDisabled = false; _this.showText = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.resizeScale = 1; _this.rotation = ''; _this.textTransform = 'scale(1, 1)'; _this.cornerRadius = 10; return _this; } GaugeComponent.prototype.ngAfterViewInit = function () { var _this = this; _super.prototype.ngAfterViewInit.call(this); setTimeout(function () { return _this.scaleText(); }); }; GaugeComponent.prototype.update = function () { var _this = this; _super.prototype.update.call(this); if (!this.showAxis) { if (!this.margin) { this.margin = [10, 20, 10, 20]; } } else { if (!this.margin) { this.margin = [60, 100, 60, 100]; } } // make the starting angle positive if (this.startAngle < 0) { this.startAngle = (this.startAngle % 360) + 360; } this.angleSpan = Math.min(this.angleSpan, 360); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showLegend: this.legend, legendPosition: this.legendPosition }); this.domain = this.getDomain(); this.valueDomain = this.getValueDomain(); this.valueScale = this.getValueScale(); this.displayValue = this.getDisplayValue(); this.outerRadius = Math.min(this.dims.width, this.dims.height) / 2; this.arcs = this.getArcs(); this.setColors(); this.legendOptions = this.getLegendOptions(); var xOffset = this.margin[3] + this.dims.width / 2; var yOffset = this.margin[0] + this.dims.height / 2; this.transform = "translate(" + xOffset + ", " + yOffset + ")"; this.rotation = "rotate(" + this.startAngle + ")"; setTimeout(function () { return _this.scaleText(); }, 50); }; GaugeComponent.prototype.getArcs = function () { var arcs = []; var availableRadius = this.outerRadius * 0.7; var radiusPerArc = Math.min(availableRadius / this.results.length, 10); var arcWidth = radiusPerArc * 0.7; this.textRadius = this.outerRadius - this.results.length * radiusPerArc; this.cornerRadius = Math.floor(arcWidth / 2); var i = 0; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var d = _a[_i]; var outerRadius = this.outerRadius - i * radiusPerArc; var innerRadius = outerRadius - arcWidth; var backgroundArc = { endAngle: (this.angleSpan * Math.PI) / 180, innerRadius: innerRadius, outerRadius: outerRadius, data: { value: this.max, name: d.name } }; var valueArc = { endAngle: (Math.min(this.valueScale(d.value), this.angleSpan) * Math.PI) / 180, innerRadius: innerRadius, outerRadius: outerRadius, data: { value: d.value, name: d.name } }; var arc = { backgroundArc: backgroundArc, valueArc: valueArc }; arcs.push(arc); i++; } return arcs; }; GaugeComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.name; }); }; GaugeComponent.prototype.getValueDomain = function () { var values = this.results.map(function (d) { return d.value; }); var dataMin = Math.min.apply(Math, values); var dataMax = Math.max.apply(Math, values); if (this.min !== undefined) { this.min = Math.min(this.min, dataMin); } else { this.min = dataMin; } if (this.max !== undefined) { this.max = Math.max(this.max, dataMax); } else { this.max = dataMax; } return [this.min, this.max]; }; GaugeComponent.prototype.getValueScale = function () { return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([0, this.angleSpan]) .nice() .domain(this.valueDomain); }; GaugeComponent.prototype.getDisplayValue = function () { var value = this.results.map(function (d) { return d.value; }).reduce(function (a, b) { return a + b; }, 0); if (this.textValue && 0 !== this.textValue.length) { return this.textValue.toLocaleString(); } if (this.valueFormatting) { return this.valueFormatting(value); } return value.toLocaleString(); }; GaugeComponent.prototype.scaleText = function (repeat) { var _this = this; if (repeat === void 0) { repeat = true; } if (!this.showText) { return; } var width = this.textEl.nativeElement.getBoundingClientRect().width; var oldScale = this.resizeScale; if (width === 0) { this.resizeScale = 1; } else { var availableSpace = this.textRadius; this.resizeScale = Math.floor((availableSpace / (width / this.resizeScale)) * 100) / 100; } if (this.resizeScale !== oldScale) { this.textTransform = "scale(" + this.resizeScale + ", " + this.resizeScale + ")"; this.cd.markForCheck(); if (repeat) { setTimeout(function () { return _this.scaleText(false); }, 50); } } }; GaugeComponent.prototype.onClick = function (data) { this.select.emit(data); }; GaugeComponent.prototype.getLegendOptions = function () { return { scaleType: 'ordinal', colors: this.colors, domain: this.domain, title: this.legendTitle, position: this.legendPosition }; }; GaugeComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; GaugeComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; GaugeComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; GaugeComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name && entry.series === d.series; }); return item !== undefined; }; GaugeComponent.prototype.trackBy = function (index, item) { return item.valueArc.data.name; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], GaugeComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], GaugeComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "min", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], GaugeComponent.prototype, "textValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], GaugeComponent.prototype, "units", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "bigSegments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "smallSegments", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], GaugeComponent.prototype, "results", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeComponent.prototype, "showAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "startAngle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], GaugeComponent.prototype, "angleSpan", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], GaugeComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], GaugeComponent.prototype, "axisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], GaugeComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], GaugeComponent.prototype, "showText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], GaugeComponent.prototype, "margin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], GaugeComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], GaugeComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], GaugeComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('textEl', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], GaugeComponent.prototype, "textEl", void 0); GaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-gauge', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"gauge chart\">\n <svg:g *ngFor=\"let arc of arcs; trackBy: trackBy\" [attr.transform]=\"rotation\">\n <svg:g\n ngx-charts-gauge-arc\n [backgroundArc]=\"arc.backgroundArc\"\n [valueArc]=\"arc.valueArc\"\n [cornerRadius]=\"cornerRadius\"\n [colors]=\"colors\"\n [isActive]=\"isActive(arc.valueArc.data)\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [valueFormatting]=\"valueFormatting\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></svg:g>\n </svg:g>\n\n <svg:g\n ngx-charts-gauge-axis\n *ngIf=\"showAxis\"\n [bigSegments]=\"bigSegments\"\n [smallSegments]=\"smallSegments\"\n [min]=\"min\"\n [max]=\"max\"\n [radius]=\"outerRadius\"\n [angleSpan]=\"angleSpan\"\n [valueScale]=\"valueScale\"\n [startAngle]=\"startAngle\"\n [tickFormatting]=\"axisTickFormatting\"\n ></svg:g>\n\n <svg:text\n #textEl\n *ngIf=\"showText\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"textTransform\"\n alignment-baseline=\"central\"\n >\n <tspan x=\"0\" dy=\"0\">{{ displayValue }}</tspan>\n <tspan x=\"0\" dy=\"1.2em\">{{ units }}</tspan>\n </svg:text>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './gauge.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], GaugeComponent); return GaugeComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__["BaseChartComponent"])); //# sourceMappingURL=gauge.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge.module.js": /*!*************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/gauge/gauge.module.js ***! \*************************************************************************/ /*! exports provided: GaugeModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GaugeModule", function() { return GaugeModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _linear_gauge_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear-gauge.component */ "./node_modules/@swimlane/ngx-charts/release/gauge/linear-gauge.component.js"); /* harmony import */ var _gauge_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gauge.component */ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge.component.js"); /* harmony import */ var _gauge_arc_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gauge-arc.component */ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge-arc.component.js"); /* harmony import */ var _gauge_axis_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./gauge-axis.component */ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge-axis.component.js"); /* harmony import */ var _pie_chart_pie_chart_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../pie-chart/pie-chart.module */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.module.js"); /* harmony import */ var _bar_chart_bar_chart_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../bar-chart/bar-chart.module */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-chart.module.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var GaugeModule = /** @class */ (function () { function GaugeModule() { } GaugeModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"], _pie_chart_pie_chart_module__WEBPACK_IMPORTED_MODULE_6__["PieChartModule"], _bar_chart_bar_chart_module__WEBPACK_IMPORTED_MODULE_7__["BarChartModule"]], declarations: [ _linear_gauge_component__WEBPACK_IMPORTED_MODULE_2__["LinearGaugeComponent"], _gauge_component__WEBPACK_IMPORTED_MODULE_3__["GaugeComponent"], _gauge_arc_component__WEBPACK_IMPORTED_MODULE_4__["GaugeArcComponent"], _gauge_axis_component__WEBPACK_IMPORTED_MODULE_5__["GaugeAxisComponent"] ], exports: [ _linear_gauge_component__WEBPACK_IMPORTED_MODULE_2__["LinearGaugeComponent"], _gauge_component__WEBPACK_IMPORTED_MODULE_3__["GaugeComponent"], _gauge_arc_component__WEBPACK_IMPORTED_MODULE_4__["GaugeArcComponent"], _gauge_axis_component__WEBPACK_IMPORTED_MODULE_5__["GaugeAxisComponent"] ] }) ], GaugeModule); return GaugeModule; }()); //# sourceMappingURL=gauge.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/gauge/linear-gauge.component.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/gauge/linear-gauge.component.js ***! \***********************************************************************************/ /*! exports provided: LinearGaugeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LinearGaugeComponent", function() { return LinearGaugeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LinearGaugeComponent = /** @class */ (function (_super) { __extends(LinearGaugeComponent, _super); function LinearGaugeComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.min = 0; _this.max = 100; _this.value = 0; _this.margin = [10, 20, 10, 20]; _this.valueResizeScale = 1; _this.unitsResizeScale = 1; _this.valueTextTransform = ''; _this.valueTranslate = ''; _this.unitsTextTransform = ''; _this.unitsTranslate = ''; return _this; } LinearGaugeComponent.prototype.ngAfterViewInit = function () { var _this = this; _super.prototype.ngAfterViewInit.call(this); setTimeout(function () { _this.scaleText('value'); _this.scaleText('units'); }); }; LinearGaugeComponent.prototype.update = function () { var _this = this; _super.prototype.update.call(this); this.hasPreviousValue = this.previousValue !== undefined; this.max = Math.max(this.max, this.value); this.min = Math.min(this.min, this.value); if (this.hasPreviousValue) { this.max = Math.max(this.max, this.previousValue); this.min = Math.min(this.min, this.previousValue); } this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin }); this.valueDomain = this.getValueDomain(); this.valueScale = this.getValueScale(); this.displayValue = this.getDisplayValue(); this.setColors(); var xOffset = this.margin[3] + this.dims.width / 2; var yOffset = this.margin[0] + this.dims.height / 2; this.transform = "translate(" + xOffset + ", " + yOffset + ")"; this.transformLine = "translate(" + (this.margin[3] + this.valueScale(this.previousValue)) + ", " + yOffset + ")"; this.valueTranslate = "translate(0, -15)"; this.unitsTranslate = "translate(0, 15)"; setTimeout(function () { return _this.scaleText('value'); }, 50); setTimeout(function () { return _this.scaleText('units'); }, 50); }; LinearGaugeComponent.prototype.getValueDomain = function () { return [this.min, this.max]; }; LinearGaugeComponent.prototype.getValueScale = function () { return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleLinear"])() .range([0, this.dims.width]) .domain(this.valueDomain); }; LinearGaugeComponent.prototype.getDisplayValue = function () { if (this.valueFormatting) { return this.valueFormatting(this.value); } return this.value.toLocaleString(); }; LinearGaugeComponent.prototype.scaleText = function (element, repeat) { var _this = this; if (repeat === void 0) { repeat = true; } var el; var resizeScale; if (element === 'value') { el = this.valueTextEl; resizeScale = this.valueResizeScale; } else { el = this.unitsTextEl; resizeScale = this.unitsResizeScale; } var _a = el.nativeElement.getBoundingClientRect(), width = _a.width, height = _a.height; if (width === 0 || height === 0) return; var oldScale = resizeScale; var availableWidth = this.dims.width; var availableHeight = Math.max(this.dims.height / 2 - 15, 0); var resizeScaleWidth = Math.floor((availableWidth / (width / resizeScale)) * 100) / 100; var resizeScaleHeight = Math.floor((availableHeight / (height / resizeScale)) * 100) / 100; resizeScale = Math.min(resizeScaleHeight, resizeScaleWidth); if (resizeScale !== oldScale) { if (element === 'value') { this.valueResizeScale = resizeScale; this.valueTextTransform = "scale(" + resizeScale + ", " + resizeScale + ")"; } else { this.unitsResizeScale = resizeScale; this.unitsTextTransform = "scale(" + resizeScale + ", " + resizeScale + ")"; } this.cd.markForCheck(); if (repeat) { setTimeout(function () { _this.scaleText(element, false); }, 50); } } }; LinearGaugeComponent.prototype.onClick = function () { this.select.emit({ name: 'Value', value: this.value }); }; LinearGaugeComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, 'ordinal', [this.value], this.customColors); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LinearGaugeComponent.prototype, "min", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LinearGaugeComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LinearGaugeComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LinearGaugeComponent.prototype, "units", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LinearGaugeComponent.prototype, "previousValue", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LinearGaugeComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('valueTextEl', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], LinearGaugeComponent.prototype, "valueTextEl", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('unitsTextEl', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], LinearGaugeComponent.prototype, "unitsTextEl", void 0); LinearGaugeComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-linear-gauge', template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\" (click)=\"onClick()\">\n <svg:g class=\"linear-gauge chart\">\n <svg:g\n ngx-charts-bar\n class=\"background-bar\"\n [width]=\"dims.width\"\n [height]=\"3\"\n [x]=\"margin[3]\"\n [y]=\"dims.height / 2 + margin[0] - 2\"\n [data]=\"{}\"\n [orientation]=\"'horizontal'\"\n [roundEdges]=\"true\"\n [animations]=\"animations\"\n ></svg:g>\n <svg:g\n ngx-charts-bar\n [width]=\"valueScale(value)\"\n [height]=\"3\"\n [x]=\"margin[3]\"\n [y]=\"dims.height / 2 + margin[0] - 2\"\n [fill]=\"colors.getColor(units)\"\n [data]=\"{}\"\n [orientation]=\"'horizontal'\"\n [roundEdges]=\"true\"\n [animations]=\"animations\"\n ></svg:g>\n\n <svg:line\n *ngIf=\"hasPreviousValue\"\n [attr.transform]=\"transformLine\"\n x1=\"0\"\n y1=\"5\"\n x2=\"0\"\n y2=\"15\"\n [attr.stroke]=\"colors.getColor(units)\"\n />\n\n <svg:line\n *ngIf=\"hasPreviousValue\"\n [attr.transform]=\"transformLine\"\n x1=\"0\"\n y1=\"-5\"\n x2=\"0\"\n y2=\"-15\"\n [attr.stroke]=\"colors.getColor(units)\"\n />\n\n <svg:g [attr.transform]=\"transform\">\n <svg:g [attr.transform]=\"valueTranslate\">\n <svg:text\n #valueTextEl\n class=\"value\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"valueTextTransform\"\n alignment-baseline=\"after-edge\"\n >\n {{ displayValue }}\n </svg:text>\n </svg:g>\n\n <svg:g [attr.transform]=\"unitsTranslate\">\n <svg:text\n #unitsTextEl\n class=\"units\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"unitsTextTransform\"\n alignment-baseline=\"before-edge\"\n >\n {{ units }}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './linear-gauge.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], LinearGaugeComponent); return LinearGaugeComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__["BaseChartComponent"])); //# sourceMappingURL=linear-gauge.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell-series.component.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell-series.component.js ***! \**********************************************************************************************/ /*! exports provided: HeatCellSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeatCellSeriesComponent", function() { return HeatCellSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HeatCellSeriesComponent = /** @class */ (function () { function HeatCellSeriesComponent() { this.tooltipDisabled = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } HeatCellSeriesComponent.prototype.ngOnInit = function () { if (!this.tooltipText) { this.tooltipText = this.getTooltipText; } }; HeatCellSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; HeatCellSeriesComponent.prototype.update = function () { this.cells = this.getCells(); }; HeatCellSeriesComponent.prototype.getCells = function () { var _this = this; var cells = []; this.data.map(function (row) { row.series.map(function (cell) { var value = cell.value; cell.series = row.name; cells.push({ row: row, cell: cell, x: _this.xScale(row.name), y: _this.yScale(cell.name), width: _this.xScale.bandwidth(), height: _this.yScale.bandwidth(), fill: _this.colors.getColor(value), data: value, label: Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_1__["formatLabel"])(cell.name), series: row.name }); }); }); return cells; }; HeatCellSeriesComponent.prototype.getTooltipText = function (_a) { var label = _a.label, data = _a.data, series = _a.series; return "\n <span class=\"tooltip-label\">" + series + " \u2022 " + label + "</span>\n <span class=\"tooltip-val\">" + data.toLocaleString() + "</span>\n "; }; HeatCellSeriesComponent.prototype.trackBy = function (index, item) { return item.tooltipText; }; HeatCellSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatCellSeriesComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatCellSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], HeatCellSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatCellSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], HeatCellSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], HeatCellSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], HeatCellSeriesComponent.prototype, "deactivate", void 0); HeatCellSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-heat-map-cell-series]', template: "\n <svg:g\n ngx-charts-heat-map-cell\n *ngFor=\"let c of cells; trackBy: trackBy\"\n [x]=\"c.x\"\n [y]=\"c.y\"\n [width]=\"c.width\"\n [height]=\"c.height\"\n [fill]=\"c.fill\"\n [data]=\"c.data\"\n (select)=\"onClick(c.cell)\"\n (activate)=\"activate.emit(c.cell)\"\n (deactivate)=\"deactivate.emit(c.cell)\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : tooltipText(c)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"{ series: c.series, name: c.label, value: c.data }\"\n ></svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], HeatCellSeriesComponent); return HeatCellSeriesComponent; }()); //# sourceMappingURL=heat-map-cell-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell.component.js ***! \***************************************************************************************/ /*! exports provided: HeatMapCellComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeatMapCellComponent", function() { return HeatMapCellComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HeatMapCellComponent = /** @class */ (function () { function HeatMapCellComponent(element) { this.gradient = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.element = element.nativeElement; } HeatMapCellComponent.prototype.ngOnChanges = function (changes) { this.transform = "translate(" + this.x + " , " + this.y + ")"; this.startOpacity = 0.3; this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_2__["id"])().toString(); this.gradientUrl = "url(#" + this.gradientId + ")"; this.gradientStops = this.getGradientStops(); if (this.animations) { this.loadAnimation(); } }; HeatMapCellComponent.prototype.getGradientStops = function () { return [ { offset: 0, color: this.fill, opacity: this.startOpacity }, { offset: 100, color: this.fill, opacity: 1 } ]; }; HeatMapCellComponent.prototype.loadAnimation = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.cell'); node.attr('opacity', 0); this.animateToCurrentForm(); }; HeatMapCellComponent.prototype.animateToCurrentForm = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.cell'); node .transition() .duration(750) .attr('opacity', 1); }; HeatMapCellComponent.prototype.onClick = function () { this.select.emit(this.data); }; HeatMapCellComponent.prototype.onMouseEnter = function () { this.activate.emit(this.data); }; HeatMapCellComponent.prototype.onMouseLeave = function () { this.deactivate.emit(this.data); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "x", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "y", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapCellComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapCellComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], HeatMapCellComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseenter'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], HeatMapCellComponent.prototype, "onMouseEnter", null); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], HeatMapCellComponent.prototype, "onMouseLeave", null); HeatMapCellComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-heat-map-cell]', template: "\n <svg:g [attr.transform]=\"transform\" class=\"cell\">\n <defs *ngIf=\"gradient\">\n <svg:g ngx-charts-svg-linear-gradient orientation=\"vertical\" [name]=\"gradientId\" [stops]=\"gradientStops\" />\n </defs>\n <svg:rect\n [attr.fill]=\"gradient ? gradientUrl : fill\"\n rx=\"3\"\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n class=\"cell\"\n style=\"cursor: pointer\"\n (click)=\"onClick()\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], HeatMapCellComponent); return HeatMapCellComponent; }()); //# sourceMappingURL=heat-map-cell.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.component.js": /*!**********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.component.js ***! \**********************************************************************************/ /*! exports provided: HeatMapComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeatMapComponent", function() { return HeatMapComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var HeatMapComponent = /** @class */ (function (_super) { __extends(HeatMapComponent, _super); function HeatMapComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.innerPadding = 8; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.tooltipDisabled = false; _this.activeEntries = []; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.scaleType = 'linear'; return _this; } HeatMapComponent.prototype.update = function () { _super.prototype.update.call(this); this.formatDates(); this.xDomain = this.getXDomain(); this.yDomain = this.getYDomain(); this.valueDomain = this.getValueDomain(); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_5__["getScaleType"])(this.valueDomain, false); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.scaleType, legendPosition: this.legendPosition }); if (this.scaleType === 'linear') { var min = this.min; var max = this.max; if (!this.min) { min = Math.min.apply(Math, [0].concat(this.valueDomain)); } if (!this.max) { max = Math.max.apply(Math, this.valueDomain); } this.valueDomain = [min, max]; } this.xScale = this.getXScale(); this.yScale = this.getYScale(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; this.rects = this.getRects(); }; HeatMapComponent.prototype.getXDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; if (!domain.includes(group.name)) { domain.push(group.name); } } return domain; }; HeatMapComponent.prototype.getYDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.name)) { domain.push(d.name); } } } return domain; }; HeatMapComponent.prototype.getValueDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var group = _a[_i]; for (var _b = 0, _c = group.series; _b < _c.length; _b++) { var d = _c[_b]; if (!domain.includes(d.value)) { domain.push(d.value); } } } return domain; }; /** * Converts the input to gap paddingInner in fraction * Supports the following inputs: * Numbers: 8 * Strings: "8", "8px", "8%" * Arrays: [8,2], "8,2", "[8,2]" * Mixed: [8,"2%"], ["8px","2%"], "8,2%", "[8,2%]" * * @param {(string | number | Array<string | number>)} value * @param {number} [index=0] * @param {number} N * @param {number} L * @returns {number} * * @memberOf HeatMapComponent */ HeatMapComponent.prototype.getDimension = function (value, index, N, L) { if (index === void 0) { index = 0; } if (typeof value === 'string') { value = value .replace('[', '') .replace(']', '') .replace('px', '') .replace('\'', ''); if (value.includes(',')) { value = value.split(','); } } if (Array.isArray(value) && typeof index === 'number') { return this.getDimension(value[index], null, N, L); } if (typeof value === 'string' && value.includes('%')) { return +value.replace('%', '') / 100; } return N / (L / +value + 1); }; HeatMapComponent.prototype.getXScale = function () { var f = this.getDimension(this.innerPadding, 0, this.xDomain.length, this.dims.width); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleBand"])() .rangeRound([0, this.dims.width]) .domain(this.xDomain) .paddingInner(f); }; HeatMapComponent.prototype.getYScale = function () { var f = this.getDimension(this.innerPadding, 1, this.yDomain.length, this.dims.height); return Object(d3_scale__WEBPACK_IMPORTED_MODULE_1__["scaleBand"])() .rangeRound([this.dims.height, 0]) .domain(this.yDomain) .paddingInner(f); }; HeatMapComponent.prototype.getRects = function () { var _this = this; var rects = []; this.xDomain.map(function (xVal) { _this.yDomain.map(function (yVal) { rects.push({ x: _this.xScale(xVal), y: _this.yScale(yVal), rx: 3, width: _this.xScale.bandwidth(), height: _this.yScale.bandwidth(), fill: 'rgba(200,200,200,0.03)' }); }); }); return rects; }; HeatMapComponent.prototype.onClick = function (data) { this.select.emit(data); }; HeatMapComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, this.scaleType, this.valueDomain); }; HeatMapComponent.prototype.getLegendOptions = function () { return { scaleType: this.scaleType, domain: this.valueDomain, colors: this.scaleType === 'ordinal' ? this.colors : this.colors.scale, title: this.scaleType === 'ordinal' ? this.legendTitle : undefined, position: this.legendPosition }; }; HeatMapComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; HeatMapComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; HeatMapComponent.prototype.onActivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } var items = this.results .map(function (g) { return g.series; }) .flat() .filter(function (i) { if (fromLegend) { return i.label === item.name; } else { return i.name === item.name && i.series === item.series; } }); this.activeEntries = items.slice(); this.activate.emit({ value: item, entries: this.activeEntries }); }; HeatMapComponent.prototype.onDeactivate = function (event, group, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } var item = Object.assign({}, event); if (group) { item.series = group.name; } this.activeEntries = this.activeEntries.filter(function (i) { if (fromLegend) { return i.label !== item.name; } else { return !(i.name === item.name && i.series === item.series); } }); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], HeatMapComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], HeatMapComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "innerPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], HeatMapComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], HeatMapComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], HeatMapComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], HeatMapComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], HeatMapComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "min", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], HeatMapComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], HeatMapComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], HeatMapComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], HeatMapComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], HeatMapComponent.prototype, "tooltipTemplate", void 0); HeatMapComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-heat-map', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [animations]=\"animations\"\n [legendOptions]=\"legendOptions\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"heat-map chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:rect\n *ngFor=\"let rect of rects\"\n [attr.x]=\"rect.x\"\n [attr.y]=\"rect.y\"\n [attr.rx]=\"rect.rx\"\n [attr.width]=\"rect.width\"\n [attr.height]=\"rect.height\"\n [attr.fill]=\"rect.fill\"\n />\n <svg:g\n ngx-charts-heat-map-cell-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"results\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event, undefined)\"\n (deactivate)=\"onDeactivate($event, undefined)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None }) ], HeatMapComponent); return HeatMapComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__["BaseChartComponent"])); //# sourceMappingURL=heat-map.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.module.js": /*!*******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.module.js ***! \*******************************************************************************/ /*! exports provided: HeatMapModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeatMapModule", function() { return HeatMapModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _heat_map_cell_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./heat-map-cell.component */ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell.component.js"); /* harmony import */ var _heat_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./heat-map-cell-series.component */ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map-cell-series.component.js"); /* harmony import */ var _heat_map_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./heat-map.component */ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var HeatMapModule = /** @class */ (function () { function HeatMapModule() { } HeatMapModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _heat_map_cell_component__WEBPACK_IMPORTED_MODULE_2__["HeatMapCellComponent"], _heat_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__["HeatCellSeriesComponent"], _heat_map_component__WEBPACK_IMPORTED_MODULE_4__["HeatMapComponent"] ], exports: [ _heat_map_cell_component__WEBPACK_IMPORTED_MODULE_2__["HeatMapCellComponent"], _heat_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__["HeatCellSeriesComponent"], _heat_map_component__WEBPACK_IMPORTED_MODULE_4__["HeatMapComponent"] ] }) ], HeatMapModule); return HeatMapModule; }()); //# sourceMappingURL=heat-map.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/line-chart/index.js": /*!***********************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/line-chart/index.js ***! \***********************************************************************/ /*! exports provided: LineChartModule, LineChartComponent, LineComponent, LineSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _line_chart_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./line-chart.module */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.module.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChartModule", function() { return _line_chart_module__WEBPACK_IMPORTED_MODULE_0__["LineChartModule"]; }); /* harmony import */ var _line_chart_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line-chart.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineChartComponent", function() { return _line_chart_component__WEBPACK_IMPORTED_MODULE_1__["LineChartComponent"]; }); /* harmony import */ var _line_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineComponent", function() { return _line_component__WEBPACK_IMPORTED_MODULE_2__["LineComponent"]; }); /* harmony import */ var _line_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line-series.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-series.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LineSeriesComponent", function() { return _line_series_component__WEBPACK_IMPORTED_MODULE_3__["LineSeriesComponent"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.component.js": /*!**************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.component.js ***! \**************************************************************************************/ /*! exports provided: LineChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineChartComponent", function() { return LineChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LineChartComponent = /** @class */ (function (_super) { __extends(LineChartComponent, _super); function LineChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.showGridLines = true; _this.curve = d3_shape__WEBPACK_IMPORTED_MODULE_3__["curveLinear"]; _this.activeEntries = []; _this.trimXAxisTicks = true; _this.trimYAxisTicks = true; _this.rotateXAxisTicks = true; _this.maxXAxisTickLength = 16; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.tooltipDisabled = false; _this.showRefLines = false; _this.showRefLabels = true; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; _this.timelineHeight = 50; _this.timelinePadding = 10; return _this; } LineChartComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); if (this.timeline) { this.dims.height -= this.timelineHeight + this.margin[2] + this.timelinePadding; } this.xDomain = this.getXDomain(); if (this.filteredDomain) { this.xDomain = this.filteredDomain; } this.yDomain = this.getYDomain(); this.seriesDomain = this.getSeriesDomain(); this.xScale = this.getXScale(this.xDomain, this.dims.width); this.yScale = this.getYScale(this.yDomain, this.dims.height); this.updateTimeline(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; this.clipPathId = 'clip' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_7__["id"])().toString(); this.clipPath = "url(#" + this.clipPathId + ")"; }; LineChartComponent.prototype.updateTimeline = function () { if (this.timeline) { this.timelineWidth = this.dims.width; this.timelineXDomain = this.getXDomain(); this.timelineXScale = this.getXScale(this.timelineXDomain, this.timelineWidth); this.timelineYScale = this.getYScale(this.yDomain, this.timelineHeight); this.timelineTransform = "translate(" + this.dims.xOffset + ", " + -this.margin[2] + ")"; } }; LineChartComponent.prototype.getXDomain = function () { var values = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_8__["getUniqueXDomainValues"])(this.results); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_8__["getScaleType"])(values); var domain = []; if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); } var min; var max; if (this.scaleType === 'time' || this.scaleType === 'linear') { min = this.xScaleMin ? this.xScaleMin : Math.min.apply(Math, values); max = this.xScaleMax ? this.xScaleMax : Math.max.apply(Math, values); } if (this.scaleType === 'time') { domain = [new Date(min), new Date(max)]; this.xSet = values.slice().sort(function (a, b) { var aDate = a.getTime(); var bDate = b.getTime(); if (aDate > bDate) return 1; if (bDate > aDate) return -1; return 0; }); } else if (this.scaleType === 'linear') { domain = [min, max]; // Use compare function to sort numbers numerically this.xSet = values.slice().sort(function (a, b) { return a - b; }); } else { domain = values; this.xSet = values; } return domain; }; LineChartComponent.prototype.getYDomain = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (domain.indexOf(d.value) < 0) { domain.push(d.value); } if (d.min !== undefined) { this.hasRange = true; if (domain.indexOf(d.min) < 0) { domain.push(d.min); } } if (d.max !== undefined) { this.hasRange = true; if (domain.indexOf(d.max) < 0) { domain.push(d.max); } } } } var values = domain.slice(); if (!this.autoScale) { values.push(0); } var min = this.yScaleMin ? this.yScaleMin : Math.min.apply(Math, values); var max = this.yScaleMax ? this.yScaleMax : Math.max.apply(Math, values); return [min, max]; }; LineChartComponent.prototype.getSeriesDomain = function () { return this.results.map(function (d) { return d.name; }); }; LineChartComponent.prototype.getXScale = function (domain, width) { var scale; if (this.scaleType === 'time') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleTime"])() .range([0, width]) .domain(domain); } else if (this.scaleType === 'linear') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, width]) .domain(domain); if (this.roundDomains) { scale = scale.nice(); } } else if (this.scaleType === 'ordinal') { scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scalePoint"])() .range([0, width]) .padding(0.1) .domain(domain); } return scale; }; LineChartComponent.prototype.getYScale = function (domain, height) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([height, 0]) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; LineChartComponent.prototype.updateDomain = function (domain) { this.filteredDomain = domain; this.xDomain = this.filteredDomain; this.xScale = this.getXScale(this.xDomain, this.dims.width); }; LineChartComponent.prototype.updateHoveredVertical = function (item) { this.hoveredVertical = item.value; this.deactivateAll(); }; LineChartComponent.prototype.hideCircles = function () { this.hoveredVertical = null; this.deactivateAll(); }; LineChartComponent.prototype.onClick = function (data) { this.select.emit(data); }; LineChartComponent.prototype.trackBy = function (index, item) { return item.name; }; LineChartComponent.prototype.setColors = function () { var domain; if (this.schemeType === 'ordinal') { domain = this.seriesDomain; } else { domain = this.yDomain; } this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_5__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; LineChartComponent.prototype.getLegendOptions = function () { var opts = { scaleType: this.schemeType, colors: undefined, domain: [], title: undefined, position: this.legendPosition }; if (opts.scaleType === 'ordinal') { opts.domain = this.seriesDomain; opts.colors = this.colors; opts.title = this.legendTitle; } else { opts.domain = this.yDomain; opts.colors = this.colors.scale; } return opts; }; LineChartComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; LineChartComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; LineChartComponent.prototype.onActivate = function (item) { this.deactivateAll(); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = [item]; this.activate.emit({ value: item, entries: this.activeEntries }); }; LineChartComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; LineChartComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LineChartComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LineChartComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "autoScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "timeline", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], LineChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LineChartComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineChartComponent.prototype, "rangeFillOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "trimXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "rotateXAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineChartComponent.prototype, "maxXAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineChartComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], LineChartComponent.prototype, "xAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], LineChartComponent.prototype, "yAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "showRefLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "referenceLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineChartComponent.prototype, "showRefLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "xScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineChartComponent.prototype, "xScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineChartComponent.prototype, "yScaleMin", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineChartComponent.prototype, "yScaleMax", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LineChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], LineChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], LineChartComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('seriesTooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], LineChartComponent.prototype, "seriesTooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('mouseleave'), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], LineChartComponent.prototype, "hideCircles", null); LineChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-line-chart', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"line-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n [referenceLines]=\"referenceLines\"\n [showRefLines]=\"showRefLines\"\n [showRefLabels]=\"showRefLabels\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\" [@animationState]=\"'active'\">\n <svg:g\n ngx-charts-line-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [activeEntries]=\"activeEntries\"\n [scaleType]=\"scaleType\"\n [curve]=\"curve\"\n [rangeFillOpacity]=\"rangeFillOpacity\"\n [hasRange]=\"hasRange\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results\">\n <svg:g\n ngx-charts-circle-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [activeEntries]=\"activeEntries\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [scaleType]=\"scaleType\"\n [legend]=\"legend\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-line-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [curve]=\"curve\"\n [hasRange]=\"hasRange\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], LineChartComponent); return LineChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_6__["BaseChartComponent"])); //# sourceMappingURL=line-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.module.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.module.js ***! \***********************************************************************************/ /*! exports provided: LineChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineChartModule", function() { return LineChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _line_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line.component.js"); /* harmony import */ var _line_chart_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line-chart.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.component.js"); /* harmony import */ var _line_series_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./line-series.component */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-series.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var LineChartModule = /** @class */ (function () { function LineChartModule() { } LineChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _line_component__WEBPACK_IMPORTED_MODULE_2__["LineComponent"], _line_chart_component__WEBPACK_IMPORTED_MODULE_3__["LineChartComponent"], _line_series_component__WEBPACK_IMPORTED_MODULE_4__["LineSeriesComponent"] ], exports: [ _line_component__WEBPACK_IMPORTED_MODULE_2__["LineComponent"], _line_chart_component__WEBPACK_IMPORTED_MODULE_3__["LineChartComponent"], _line_series_component__WEBPACK_IMPORTED_MODULE_4__["LineSeriesComponent"] ] }) ], LineChartModule); return LineChartModule; }()); //# sourceMappingURL=line-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-series.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/line-chart/line-series.component.js ***! \***************************************************************************************/ /*! exports provided: LineSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineSeriesComponent", function() { return LineSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _utils_sort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/sort */ "./node_modules/@swimlane/ngx-charts/release/utils/sort.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LineSeriesComponent = /** @class */ (function () { function LineSeriesComponent() { this.animations = true; } LineSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; LineSeriesComponent.prototype.update = function () { this.updateGradients(); var data = this.sortData(this.data.series); var lineGen = this.getLineGenerator(); this.path = lineGen(data) || ''; var areaGen = this.getAreaGenerator(); this.areaPath = areaGen(data) || ''; if (this.hasRange) { var range = this.getRangeGenerator(); this.outerPath = range(data) || ''; } if (this.hasGradient) { this.stroke = this.gradientUrl; var values = this.data.series.map(function (d) { return d.value; }); var max = Math.max.apply(Math, values); var min = Math.min.apply(Math, values); if (max === min) { this.stroke = this.colors.getColor(max); } } else { this.stroke = this.colors.getColor(this.data.name); } }; LineSeriesComponent.prototype.getLineGenerator = function () { var _this = this; return Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["line"])() .x(function (d) { var label = d.name; var value; if (_this.scaleType === 'time') { value = _this.xScale(label); } else if (_this.scaleType === 'linear') { value = _this.xScale(Number(label)); } else { value = _this.xScale(label); } return value; }) .y(function (d) { return _this.yScale(d.value); }) .curve(this.curve); }; LineSeriesComponent.prototype.getRangeGenerator = function () { var _this = this; return Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(function (d) { var label = d.name; var value; if (_this.scaleType === 'time') { value = _this.xScale(label); } else if (_this.scaleType === 'linear') { value = _this.xScale(Number(label)); } else { value = _this.xScale(label); } return value; }) .y0(function (d) { return _this.yScale(typeof d.min === 'number' ? d.min : d.value); }) .y1(function (d) { return _this.yScale(typeof d.max === 'number' ? d.max : d.value); }) .curve(this.curve); }; LineSeriesComponent.prototype.getAreaGenerator = function () { var _this = this; var xProperty = function (d) { var label = d.name; return _this.xScale(label); }; return Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["area"])() .x(xProperty) .y0(function () { return _this.yScale.range()[0]; }) .y1(function (d) { return _this.yScale(d.value); }) .curve(this.curve); }; LineSeriesComponent.prototype.sortData = function (data) { if (this.scaleType === 'linear') { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortLinear"])(data, 'name'); } else if (this.scaleType === 'time') { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortByTime"])(data, 'name'); } else { data = Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortByDomain"])(data, 'name', 'asc', this.xScale.domain()); } return data; }; LineSeriesComponent.prototype.updateGradients = function () { if (this.colors.scaleType === 'linear') { this.hasGradient = true; this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_2__["id"])().toString(); this.gradientUrl = "url(#" + this.gradientId + ")"; var values = this.data.series.map(function (d) { return d.value; }); var max = Math.max.apply(Math, values); var min = Math.min.apply(Math, values); this.gradientStops = this.colors.getLinearGradientStops(max, min); this.areaGradientStops = this.colors.getLinearGradientStops(max); } else { this.hasGradient = false; this.gradientStops = undefined; this.areaGradientStops = undefined; } }; LineSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item !== undefined; }; LineSeriesComponent.prototype.isInactive = function (entry) { if (!this.activeEntries || this.activeEntries.length === 0) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item === undefined; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineSeriesComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], LineSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], LineSeriesComponent.prototype, "rangeFillOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineSeriesComponent.prototype, "hasRange", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineSeriesComponent.prototype, "animations", void 0); LineSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-line-series]', template: "\n <svg:g>\n <defs>\n <svg:g ngx-charts-svg-linear-gradient *ngIf=\"hasGradient\"\n orientation=\"vertical\"\n [name]=\"gradientId\"\n [stops]=\"gradientStops\"\n />\n </defs>\n <svg:g ngx-charts-area\n class=\"line-highlight\"\n [data]=\"data\"\n [path]=\"areaPath\"\n [fill]=\"hasGradient ? gradientUrl : colors.getColor(data.name)\"\n [opacity]=\"0.25\"\n [startOpacity]=\"0\"\n [gradient]=\"true\"\n [stops]=\"areaGradientStops\"\n [class.active]=\"isActive(data)\"\n [class.inactive]=\"isInactive(data)\"\n [animations]=\"animations\"\n />\n <svg:g ngx-charts-line\n class=\"line-series\"\n [data]=\"data\"\n [path]=\"path\"\n [stroke]=\"stroke\"\n [animations]=\"animations\"\n [class.active]=\"isActive(data)\"\n [class.inactive]=\"isInactive(data)\"\n />\n <svg:g ngx-charts-area\n *ngIf=\"hasRange\"\n class=\"line-series-range\"\n [data]=\"data\"\n [path]=\"outerPath\"\n [fill]=\"hasGradient ? gradientUrl : colors.getColor(data.name)\"\n [class.active]=\"isActive(data)\"\n [class.inactive]=\"isInactive(data)\"\n [opacity]=\"rangeFillOpacity\"\n [animations]=\"animations\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], LineSeriesComponent); return LineSeriesComponent; }()); //# sourceMappingURL=line-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/line-chart/line.component.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/line-chart/line.component.js ***! \********************************************************************************/ /*! exports provided: LineComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineComponent", function() { return LineComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var LineComponent = /** @class */ (function () { function LineComponent(element) { this.element = element; this.fill = 'none'; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; } LineComponent.prototype.ngOnChanges = function (changes) { if (!this.initialized) { this.initialized = true; this.initialPath = this.path; } else { this.updatePathEl(); } }; LineComponent.prototype.updatePathEl = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_2__["select"])(this.element.nativeElement).select('.line'); if (this.animations) { node .transition().duration(750) .attr('d', this.path); } else { node.attr('d', this.path); } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineComponent.prototype, "path", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineComponent.prototype, "stroke", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], LineComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], LineComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], LineComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], LineComponent.prototype, "select", void 0); LineComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-line]', template: "\n <svg:path\n [@animationState]=\"'active'\"\n class=\"line\"\n [attr.d]=\"initialPath\"\n [attr.fill]=\"fill\"\n [attr.stroke]=\"stroke\"\n stroke-width=\"1.5px\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':enter', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ strokeDasharray: 2000, strokeDashoffset: 2000, }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(1000, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ strokeDashoffset: 0 })) ]) ]) ] }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], LineComponent); return LineComponent; }()); //# sourceMappingURL=line.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/ngx-charts.module.js": /*!************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/ngx-charts.module.js ***! \************************************************************************/ /*! exports provided: NgxChartsModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgxChartsModule", function() { return NgxChartsModule; }); /* harmony import */ var _polyfills__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./polyfills */ "./node_modules/@swimlane/ngx-charts/release/polyfills.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _area_chart_area_chart_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./area-chart/area-chart.module */ "./node_modules/@swimlane/ngx-charts/release/area-chart/area-chart.module.js"); /* harmony import */ var _bar_chart_bar_chart_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bar-chart/bar-chart.module */ "./node_modules/@swimlane/ngx-charts/release/bar-chart/bar-chart.module.js"); /* harmony import */ var _bubble_chart_bubble_chart_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./bubble-chart/bubble-chart.module */ "./node_modules/@swimlane/ngx-charts/release/bubble-chart/bubble-chart.module.js"); /* harmony import */ var _force_directed_graph_force_directed_graph_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./force-directed-graph/force-directed-graph.module */ "./node_modules/@swimlane/ngx-charts/release/force-directed-graph/force-directed-graph.module.js"); /* harmony import */ var _heat_map_heat_map_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./heat-map/heat-map.module */ "./node_modules/@swimlane/ngx-charts/release/heat-map/heat-map.module.js"); /* harmony import */ var _line_chart_line_chart_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./line-chart/line-chart.module */ "./node_modules/@swimlane/ngx-charts/release/line-chart/line-chart.module.js"); /* harmony import */ var _polar_chart_polar_chart_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./polar-chart/polar-chart.module */ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.module.js"); /* harmony import */ var _number_card_number_card_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./number-card/number-card.module */ "./node_modules/@swimlane/ngx-charts/release/number-card/number-card.module.js"); /* harmony import */ var _pie_chart_pie_chart_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./pie-chart/pie-chart.module */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.module.js"); /* harmony import */ var _tree_map_tree_map_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./tree-map/tree-map.module */ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.module.js"); /* harmony import */ var _gauge_gauge_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./gauge/gauge.module */ "./node_modules/@swimlane/ngx-charts/release/gauge/gauge.module.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var NgxChartsModule = /** @class */ (function () { function NgxChartsModule() { } NgxChartsModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({ exports: [ _common_chart_common_module__WEBPACK_IMPORTED_MODULE_2__["ChartCommonModule"], _area_chart_area_chart_module__WEBPACK_IMPORTED_MODULE_3__["AreaChartModule"], _bar_chart_bar_chart_module__WEBPACK_IMPORTED_MODULE_4__["BarChartModule"], _bubble_chart_bubble_chart_module__WEBPACK_IMPORTED_MODULE_5__["BubbleChartModule"], _force_directed_graph_force_directed_graph_module__WEBPACK_IMPORTED_MODULE_6__["ForceDirectedGraphModule"], _heat_map_heat_map_module__WEBPACK_IMPORTED_MODULE_7__["HeatMapModule"], _line_chart_line_chart_module__WEBPACK_IMPORTED_MODULE_8__["LineChartModule"], _polar_chart_polar_chart_module__WEBPACK_IMPORTED_MODULE_9__["PolarChartModule"], _number_card_number_card_module__WEBPACK_IMPORTED_MODULE_10__["NumberCardModule"], _pie_chart_pie_chart_module__WEBPACK_IMPORTED_MODULE_11__["PieChartModule"], _tree_map_tree_map_module__WEBPACK_IMPORTED_MODULE_12__["TreeMapModule"], _gauge_gauge_module__WEBPACK_IMPORTED_MODULE_13__["GaugeModule"] ] }) ], NgxChartsModule); return NgxChartsModule; }()); //# sourceMappingURL=ngx-charts.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/number-card/card-series.component.js": /*!****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/number-card/card-series.component.js ***! \****************************************************************************************/ /*! exports provided: CardSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardSeriesComponent", function() { return CardSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/color-utils */ "./node_modules/@swimlane/ngx-charts/release/utils/color-utils.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CardSeriesComponent = /** @class */ (function () { function CardSeriesComponent() { this.innerPadding = 15; this.emptyColor = 'rgba(0, 0, 0, 0)'; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } CardSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; CardSeriesComponent.prototype.update = function () { if (this.data.length > 2) { var valueFormatting_1 = this.valueFormatting || (function (card) { return card.value.toLocaleString(); }); var sortedLengths = this.data .map(function (d) { var hasValue = d && d.data && typeof d.data.value !== 'undefined' && d.data.value !== null; return hasValue ? valueFormatting_1({ data: d.data, label: d ? d.data.name : '', value: d && d.data ? d.data.value : '' }).length : 0; }) .sort(function (a, b) { return b - a; }); var idx = Math.ceil(this.data.length / 2); this.medianSize = sortedLengths[idx]; } var cards = this.getCards(); this.cards = cards.filter(function (d) { return d.data.value !== null; }); this.emptySlots = cards.filter(function (d) { return d.data.value === null; }); }; CardSeriesComponent.prototype.getCards = function () { var _this = this; var yPadding = typeof this.innerPadding === 'number' ? this.innerPadding : this.innerPadding[0] + this.innerPadding[2]; var xPadding = typeof this.innerPadding === 'number' ? this.innerPadding : this.innerPadding[1] + this.innerPadding[3]; return this.data.map(function (d, index) { var label = d.data.name; if (label && label.constructor.name === 'Date') { label = label.toLocaleDateString(); } else { label = label ? label.toLocaleString() : label; } var value = d.data.value; var valueColor = label ? _this.colors.getColor(label) : _this.emptyColor; var color = _this.cardColor || valueColor || '#000'; return { x: d.x, y: d.y, width: d.width - xPadding, height: d.height - yPadding, color: color, bandColor: _this.bandColor || valueColor, textColor: _this.textColor || Object(_utils_color_utils__WEBPACK_IMPORTED_MODULE_1__["invertColor"])(color), label: label, data: d.data, tooltipText: label + ": " + value }; }); }; CardSeriesComponent.prototype.trackBy = function (index, card) { return card.label; }; CardSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], CardSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], CardSeriesComponent.prototype, "slots", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "innerPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "cardColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "bandColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "emptyColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "textColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], CardSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CardSeriesComponent.prototype, "select", void 0); CardSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-card-series]', template: "\n <svg:rect\n *ngFor=\"let c of emptySlots; trackBy: trackBy\"\n class=\"card-empty\"\n [attr.x]=\"c.x\"\n [attr.y]=\"c.y\"\n [style.fill]=\"emptyColor\"\n [attr.width]=\"c.width\"\n [attr.height]=\"c.height\"\n rx=\"3\"\n ry=\"3\"\n />\n <svg:g\n ngx-charts-card\n *ngFor=\"let c of cards; trackBy: trackBy\"\n [x]=\"c.x\"\n [y]=\"c.y\"\n [width]=\"c.width\"\n [height]=\"c.height\"\n [color]=\"c.color\"\n [bandColor]=\"c.bandColor\"\n [textColor]=\"c.textColor\"\n [data]=\"c.data\"\n [label]=\"c.label\"\n [medianSize]=\"medianSize\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"labelFormatting\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n />\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], CardSeriesComponent); return CardSeriesComponent; }()); //# sourceMappingURL=card-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/number-card/card.component.js": /*!*********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/number-card/card.component.js ***! \*********************************************************************************/ /*! exports provided: CardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardComponent", function() { return CardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_trim_label_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _common_shape_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/shape.helper */ "./node_modules/@swimlane/ngx-charts/release/common/shape.helper.js"); /* harmony import */ var _common_count__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/count */ "./node_modules/@swimlane/ngx-charts/release/common/count/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var CardComponent = /** @class */ (function () { function CardComponent(element, cd, zone) { this.cd = cd; this.zone = zone; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.value = ''; this.textFontSize = 12; this.textTransform = ''; this.initialized = false; this.bandHeight = 10; this.textPadding = [10, 20, 5, 20]; this.labelFontSize = 15; this.element = element.nativeElement; } CardComponent.prototype.ngOnChanges = function (changes) { this.update(); }; CardComponent.prototype.ngOnDestroy = function () { cancelAnimationFrame(this.animationReq); }; CardComponent.prototype.update = function () { var _this = this; this.zone.run(function () { var hasValue = _this.data && typeof _this.data.value !== 'undefined'; var valueFormatting = _this.valueFormatting || (function (card) { return card.value.toLocaleString(); }); var labelFormatting = _this.labelFormatting || (function (card) { return Object(_common_trim_label_helper__WEBPACK_IMPORTED_MODULE_1__["trimLabel"])(card.label, 55); }); _this.transform = "translate(" + _this.x + " , " + _this.y + ")"; _this.textWidth = Math.max(0, _this.width) - _this.textPadding[1] - _this.textPadding[3]; _this.cardWidth = Math.max(0, _this.width); _this.cardHeight = Math.max(0, _this.height); _this.label = _this.label ? _this.label : _this.data.name; var cardData = { label: _this.label, data: _this.data, value: _this.data.value }; _this.formattedLabel = labelFormatting(cardData); _this.transformBand = "translate(0 , " + (_this.cardHeight - _this.bandHeight) + ")"; var value = hasValue ? valueFormatting(cardData) : ''; _this.value = _this.paddedValue(value); _this.setPadding(); _this.bandPath = Object(_common_shape_helper__WEBPACK_IMPORTED_MODULE_2__["roundedRect"])(0, 0, _this.cardWidth, _this.bandHeight, 3, [false, false, true, true]); setTimeout(function () { _this.scaleText(); _this.value = value; if (hasValue && !_this.initialized) { setTimeout(function () { return _this.startCount(); }, 20); } }, 8); }); }; CardComponent.prototype.paddedValue = function (value) { if (this.medianSize && this.medianSize > value.length) { value += '\u2007'.repeat(this.medianSize - value.length); } return value; }; CardComponent.prototype.startCount = function () { var _this = this; if (!this.initialized && this.animations) { cancelAnimationFrame(this.animationReq); var val_1 = this.data.value; var decs = Object(_common_count__WEBPACK_IMPORTED_MODULE_3__["decimalChecker"])(val_1); var valueFormatting_1 = this.valueFormatting || (function (card) { return card.value.toLocaleString(); }); var callback = function (_a) { var value = _a.value, finished = _a.finished; _this.zone.run(function () { value = finished ? val_1 : value; _this.value = valueFormatting_1({ label: _this.label, data: _this.data, value: value }); if (!finished) { _this.value = _this.paddedValue(_this.value); } _this.cd.markForCheck(); }); }; this.animationReq = Object(_common_count__WEBPACK_IMPORTED_MODULE_3__["count"])(0, val_1, decs, 1, callback); this.initialized = true; } }; CardComponent.prototype.scaleText = function () { var _this = this; this.zone.run(function () { var _a = _this.textEl.nativeElement.getBoundingClientRect(), width = _a.width, height = _a.height; if (width === 0 || height === 0) { return; } var textPadding = (_this.textPadding[1] = _this.textPadding[3] = _this.cardWidth / 8); var availableWidth = _this.cardWidth - 2 * textPadding; var availableHeight = _this.cardHeight / 3; var resizeScale = Math.min(availableWidth / width, availableHeight / height); _this.textFontSize = Math.floor(_this.textFontSize * resizeScale); _this.labelFontSize = Math.min(_this.textFontSize, 15); _this.setPadding(); _this.cd.markForCheck(); }); }; CardComponent.prototype.setPadding = function () { this.textPadding[1] = this.textPadding[3] = this.cardWidth / 8; var padding = this.cardHeight / 2; this.textPadding[0] = padding - this.textFontSize - this.labelFontSize / 2; this.textPadding[2] = padding - this.labelFontSize; }; CardComponent.prototype.onClick = function () { this.select.emit(this.data); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "color", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "bandColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "textColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "x", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "y", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], CardComponent.prototype, "medianSize", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], CardComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], CardComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], CardComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('textEl', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]) ], CardComponent.prototype, "textEl", void 0); CardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-card]', template: "\n <svg:g [attr.transform]=\"transform\" class=\"cell\" (click)=\"onClick()\">\n <svg:rect class=\"card\" [style.fill]=\"color\" [attr.width]=\"cardWidth\" [attr.height]=\"cardHeight\" rx=\"3\" ry=\"3\" />\n <svg:path\n *ngIf=\"bandColor && bandColor !== color\"\n class=\"card-band\"\n [attr.fill]=\"bandColor\"\n [attr.transform]=\"transformBand\"\n stroke=\"none\"\n [attr.d]=\"bandPath\"\n />\n <title>{{ label }}</title>\n <svg:foreignObject\n class=\"trimmed-label\"\n x=\"5\"\n [attr.x]=\"textPadding[3]\"\n [attr.y]=\"cardHeight - textPadding[2]\"\n [attr.width]=\"textWidth\"\n [attr.height]=\"labelFontSize + textPadding[2]\"\n alignment-baseline=\"hanging\"\n >\n <xhtml:p\n [style.color]=\"textColor\"\n [style.fontSize.px]=\"labelFontSize\"\n [style.lineHeight.px]=\"labelFontSize\"\n [innerHTML]=\"formattedLabel\"\n >\n </xhtml:p>\n </svg:foreignObject>\n <svg:text\n #textEl\n class=\"value-text\"\n [attr.x]=\"textPadding[3]\"\n [attr.y]=\"textPadding[0]\"\n [style.fill]=\"textColor\"\n text-anchor=\"start\"\n alignment-baseline=\"hanging\"\n [style.font-size.pt]=\"textFontSize\"\n >\n {{ value }}\n </svg:text>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]) ], CardComponent); return CardComponent; }()); //# sourceMappingURL=card.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/number-card/number-card.component.js": /*!****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/number-card/number-card.component.js ***! \****************************************************************************************/ /*! exports provided: NumberCardComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberCardComponent", function() { return NumberCardComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_grid_layout_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/grid-layout.helper */ "./node_modules/@swimlane/ngx-charts/release/common/grid-layout.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var NumberCardComponent = /** @class */ (function (_super) { __extends(NumberCardComponent, _super); function NumberCardComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.emptyColor = 'rgba(0, 0, 0, 0)'; _this.innerPadding = 15; _this.margin = [10, 10, 10, 10]; return _this; } Object.defineProperty(NumberCardComponent.prototype, "clickable", { get: function () { return !!this.select.observers.length; }, enumerable: true, configurable: true }); NumberCardComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_2__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin }); this.formatDates(); this.domain = this.getDomain(); this.setColors(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; var size = Object(_common_grid_layout_helper__WEBPACK_IMPORTED_MODULE_4__["gridSize"])(this.dims, this.results.length, 150); var N = size[0] * size[1]; var data = this.results.slice(); while (data.length < N) { data.push({ value: null }); } this.data = Object(_common_grid_layout_helper__WEBPACK_IMPORTED_MODULE_4__["gridLayout"])(this.dims, data, 150, this.designatedTotal); }; NumberCardComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.label; }); }; NumberCardComponent.prototype.onClick = function (data) { this.select.emit(data); }; NumberCardComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_3__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], NumberCardComponent.prototype, "cardColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], NumberCardComponent.prototype, "bandColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], NumberCardComponent.prototype, "emptyColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], NumberCardComponent.prototype, "innerPadding", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], NumberCardComponent.prototype, "textColor", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], NumberCardComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], NumberCardComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], NumberCardComponent.prototype, "designatedTotal", void 0); NumberCardComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-number-card', template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"number-card chart\" [class.clickable]=\"clickable\">\n <svg:g\n ngx-charts-card-series\n [colors]=\"colors\"\n [cardColor]=\"cardColor\"\n [bandColor]=\"bandColor\"\n [textColor]=\"textColor\"\n [emptyColor]=\"emptyColor\"\n [data]=\"data\"\n [dims]=\"dims\"\n [innerPadding]=\"innerPadding\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"labelFormatting\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './card.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], NumberCardComponent); return NumberCardComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_1__["BaseChartComponent"])); //# sourceMappingURL=number-card.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/number-card/number-card.module.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/number-card/number-card.module.js ***! \*************************************************************************************/ /*! exports provided: NumberCardModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberCardModule", function() { return NumberCardModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _card_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./card.component */ "./node_modules/@swimlane/ngx-charts/release/number-card/card.component.js"); /* harmony import */ var _card_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./card-series.component */ "./node_modules/@swimlane/ngx-charts/release/number-card/card-series.component.js"); /* harmony import */ var _number_card_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number-card.component */ "./node_modules/@swimlane/ngx-charts/release/number-card/number-card.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var NumberCardModule = /** @class */ (function () { function NumberCardModule() { } NumberCardModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _card_component__WEBPACK_IMPORTED_MODULE_2__["CardComponent"], _card_series_component__WEBPACK_IMPORTED_MODULE_3__["CardSeriesComponent"], _number_card_component__WEBPACK_IMPORTED_MODULE_4__["NumberCardComponent"] ], exports: [ _card_component__WEBPACK_IMPORTED_MODULE_2__["CardComponent"], _card_series_component__WEBPACK_IMPORTED_MODULE_3__["CardSeriesComponent"], _number_card_component__WEBPACK_IMPORTED_MODULE_4__["NumberCardComponent"] ] }) ], NumberCardModule); return NumberCardModule; }()); //# sourceMappingURL=number-card.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/advanced-pie-chart.component.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/advanced-pie-chart.component.js ***! \*********************************************************************************************/ /*! exports provided: AdvancedPieChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdvancedPieChartComponent", function() { return AdvancedPieChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var AdvancedPieChartComponent = /** @class */ (function (_super) { __extends(AdvancedPieChartComponent, _super); function AdvancedPieChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.activeEntries = []; _this.tooltipDisabled = false; _this.label = 'Total'; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [20, 20, 20, 20]; return _this; } AdvancedPieChartComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_1__["calculateViewDimensions"])({ width: (this.width * 4) / 12.0, height: this.height, margins: this.margin }); this.formatDates(); this.domain = this.getDomain(); this.setColors(); var xOffset = this.dims.width / 2; var yOffset = this.margin[0] + this.dims.height / 2; this.legendWidth = this.width - this.dims.width - this.margin[1]; this.outerRadius = Math.min(this.dims.width, this.dims.height) / 2.5; this.innerRadius = this.outerRadius * 0.75; this.transform = "translate(" + xOffset + " , " + yOffset + ")"; }; AdvancedPieChartComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.label; }); }; AdvancedPieChartComponent.prototype.onClick = function (data) { this.select.emit(data); }; AdvancedPieChartComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_2__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; AdvancedPieChartComponent.prototype.onActivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; AdvancedPieChartComponent.prototype.onDeactivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AdvancedPieChartComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], AdvancedPieChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], AdvancedPieChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], AdvancedPieChartComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], AdvancedPieChartComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AdvancedPieChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], AdvancedPieChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], AdvancedPieChartComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedPieChartComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedPieChartComponent.prototype, "nameFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], AdvancedPieChartComponent.prototype, "percentageFormatting", void 0); AdvancedPieChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-advanced-pie-chart', template: "\n <div [style.width.px]=\"width\" [style.height.px]=\"height\">\n <div class=\"advanced-pie chart\" [style.width.px]=\"dims.width\" [style.height.px]=\"dims.height\">\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"pie chart\">\n <svg:g\n ngx-charts-pie-series\n [colors]=\"colors\"\n [series]=\"results\"\n [innerRadius]=\"innerRadius\"\n [activeEntries]=\"activeEntries\"\n [outerRadius]=\"outerRadius\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n [animations]=\"animations\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n </div>\n <div class=\"advanced-pie-legend-wrapper\" [style.width.px]=\"width - dims.width\" [style.height.px]=\"height\">\n <ngx-charts-advanced-legend\n [data]=\"results\"\n [colors]=\"colors\"\n [width]=\"width - dims.width - margin[1]\"\n [label]=\"label\"\n [animations]=\"animations\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"nameFormatting\"\n [percentageFormatting]=\"percentageFormatting\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event, true)\"\n (deactivate)=\"onDeactivate($event, true)\"\n >\n </ngx-charts-advanced-legend>\n </div>\n </div>\n ", styleUrls: ['../common/base-chart.component.css', './advanced-pie-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], AdvancedPieChartComponent); return AdvancedPieChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__["BaseChartComponent"])); //# sourceMappingURL=advanced-pie-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/index.js ***! \**********************************************************************/ /*! exports provided: PieChartModule, PieChartComponent, PieArcComponent, PieGridSeriesComponent, PieSeriesComponent, PieLabelComponent, AdvancedPieChartComponent, PieGridComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _pie_chart_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pie-chart.module */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.module.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChartModule", function() { return _pie_chart_module__WEBPACK_IMPORTED_MODULE_0__["PieChartModule"]; }); /* harmony import */ var _advanced_pie_chart_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./advanced-pie-chart.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/advanced-pie-chart.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AdvancedPieChartComponent", function() { return _advanced_pie_chart_component__WEBPACK_IMPORTED_MODULE_1__["AdvancedPieChartComponent"]; }); /* harmony import */ var _pie_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pie-chart.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieChartComponent", function() { return _pie_chart_component__WEBPACK_IMPORTED_MODULE_2__["PieChartComponent"]; }); /* harmony import */ var _pie_arc_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie-arc.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-arc.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieArcComponent", function() { return _pie_arc_component__WEBPACK_IMPORTED_MODULE_3__["PieArcComponent"]; }); /* harmony import */ var _pie_grid_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pie-grid.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieGridComponent", function() { return _pie_grid_component__WEBPACK_IMPORTED_MODULE_4__["PieGridComponent"]; }); /* harmony import */ var _pie_grid_series_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pie-grid-series.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid-series.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieGridSeriesComponent", function() { return _pie_grid_series_component__WEBPACK_IMPORTED_MODULE_5__["PieGridSeriesComponent"]; }); /* harmony import */ var _pie_series_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pie-series.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-series.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieSeriesComponent", function() { return _pie_series_component__WEBPACK_IMPORTED_MODULE_6__["PieSeriesComponent"]; }); /* harmony import */ var _pie_label_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pie-label.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-label.component.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PieLabelComponent", function() { return _pie_label_component__WEBPACK_IMPORTED_MODULE_7__["PieLabelComponent"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-arc.component.js": /*!**********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-arc.component.js ***! \**********************************************************************************/ /*! exports provided: PieArcComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieArcComponent", function() { return PieArcComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieArcComponent = /** @class */ (function () { function PieArcComponent(element) { this.startAngle = 0; this.endAngle = Math.PI * 2; this.cornerRadius = 0; this.explodeSlices = false; this.gradient = false; this.animate = true; this.pointerEvents = true; this.isActive = false; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.dblclick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; this.element = element.nativeElement; } PieArcComponent.prototype.ngOnChanges = function (changes) { this.update(); }; PieArcComponent.prototype.getGradient = function () { return this.gradient ? this.gradientFill : this.fill; }; PieArcComponent.prototype.getPointerEvents = function () { return this.pointerEvents ? 'auto' : 'none'; }; PieArcComponent.prototype.update = function () { var calc = this.calculateArc(); this.startOpacity = 0.5; this.radialGradientId = 'linearGrad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_4__["id"])().toString(); this.gradientFill = "url(#" + this.radialGradientId + ")"; if (this.animate) { if (this.initialized) { this.updateAnimation(); } else { this.loadAnimation(); this.initialized = true; } } else { this.path = calc.startAngle(this.startAngle).endAngle(this.endAngle)(); } }; PieArcComponent.prototype.calculateArc = function () { var outerRadius = this.outerRadius; if (this.explodeSlices && this.innerRadius === 0) { outerRadius = (this.outerRadius * this.value) / this.max; } return Object(d3_shape__WEBPACK_IMPORTED_MODULE_3__["arc"])() .innerRadius(this.innerRadius) .outerRadius(outerRadius) .cornerRadius(this.cornerRadius); }; PieArcComponent.prototype.loadAnimation = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_2__["select"])(this.element) .selectAll('.arc') .data([{ startAngle: this.startAngle, endAngle: this.endAngle }]); var calc = this.calculateArc(); node .transition() .attrTween('d', function (d) { this._current = this._current || d; var copyOfD = Object.assign({}, d); copyOfD.endAngle = copyOfD.startAngle; var interpolater = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"])(copyOfD, copyOfD); this._current = interpolater(0); return function (t) { return calc(interpolater(t)); }; }) .transition() .duration(750) .attrTween('d', function (d) { this._current = this._current || d; var interpolater = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"])(this._current, d); this._current = interpolater(0); return function (t) { return calc(interpolater(t)); }; }); }; PieArcComponent.prototype.updateAnimation = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_2__["select"])(this.element) .selectAll('.arc') .data([{ startAngle: this.startAngle, endAngle: this.endAngle }]); var calc = this.calculateArc(); node .transition() .duration(750) .attrTween('d', function (d) { this._current = this._current || d; var interpolater = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"])(this._current, d); this._current = interpolater(0); return function (t) { return calc(interpolater(t)); }; }); }; PieArcComponent.prototype.onClick = function () { var _this = this; clearTimeout(this._timeout); this._timeout = setTimeout(function () { return _this.select.emit(_this.data); }, 200); }; PieArcComponent.prototype.onDblClick = function (event) { event.preventDefault(); event.stopPropagation(); clearTimeout(this._timeout); this.dblclick.emit({ data: this.data, nativeEvent: event }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieArcComponent.prototype, "startAngle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieArcComponent.prototype, "endAngle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "innerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "outerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieArcComponent.prototype, "cornerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieArcComponent.prototype, "explodeSlices", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieArcComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieArcComponent.prototype, "animate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieArcComponent.prototype, "pointerEvents", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieArcComponent.prototype, "isActive", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieArcComponent.prototype, "dblclick", void 0); PieArcComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-pie-arc]', template: "\n <svg:g class=\"arc-group\">\n <svg:defs *ngIf=\"gradient\">\n <svg:g ngx-charts-svg-radial-gradient\n [color]=\"fill\"\n orientation=\"vertical\"\n [name]=\"radialGradientId\"\n [startOpacity]=\"startOpacity\"\n />\n </svg:defs>\n <svg:path\n [attr.d]=\"path\"\n class=\"arc\"\n [class.active]=\"isActive\"\n [attr.fill]=\"getGradient()\"\n (click)=\"onClick()\"\n (dblclick)=\"onDblClick($event)\"\n (mouseenter)=\"activate.emit(data)\"\n (mouseleave)=\"deactivate.emit(data)\"\n [style.pointer-events]=\"getPointerEvents()\"\n />\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], PieArcComponent); return PieArcComponent; }()); //# sourceMappingURL=pie-arc.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.component.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.component.js ***! \************************************************************************************/ /*! exports provided: PieChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChartComponent", function() { return PieChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieChartComponent = /** @class */ (function (_super) { __extends(PieChartComponent, _super); function PieChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.labels = false; _this.legend = false; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.explodeSlices = false; _this.doughnut = false; _this.arcWidth = 0.25; _this.activeEntries = []; _this.tooltipDisabled = false; _this.trimLabels = true; _this.maxLabelLength = 10; _this.dblclick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); return _this; } PieChartComponent.prototype.update = function () { var _this = this; _super.prototype.update.call(this); if (this.labels && this.hasNoOptionalMarginsSet()) { this.margins = [30, 80, 30, 80]; } else if (!this.labels && this.hasNoOptionalMarginsSet()) { // default value for margins this.margins = [20, 20, 20, 20]; } this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_1__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margins, showLegend: this.legend, legendPosition: this.legendPosition }); this.formatDates(); var xOffset = this.margins[3] + this.dims.width / 2; var yOffset = this.margins[0] + this.dims.height / 2; this.translation = "translate(" + xOffset + ", " + yOffset + ")"; this.outerRadius = Math.min(this.dims.width, this.dims.height); if (this.labels) { // make room for labels this.outerRadius /= 3; } else { this.outerRadius /= 2; } this.innerRadius = 0; if (this.doughnut) { this.innerRadius = this.outerRadius * (1 - this.arcWidth); } this.domain = this.getDomain(); // sort data according to domain this.data = this.results.sort(function (a, b) { return _this.domain.indexOf(a.name) - _this.domain.indexOf(b.name); }); this.setColors(); this.legendOptions = this.getLegendOptions(); }; PieChartComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.label; }); }; PieChartComponent.prototype.onClick = function (data) { this.select.emit(data); }; PieChartComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_2__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; PieChartComponent.prototype.getLegendOptions = function () { return { scaleType: 'ordinal', domain: this.domain, colors: this.colors, title: this.legendTitle, position: this.legendPosition }; }; PieChartComponent.prototype.onActivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; PieChartComponent.prototype.onDeactivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; PieChartComponent.prototype.hasNoOptionalMarginsSet = function () { return !this.margins || this.margins.length <= 0; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "labels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PieChartComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PieChartComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "explodeSlices", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "doughnut", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "arcWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieChartComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PieChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieChartComponent.prototype, "trimLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieChartComponent.prototype, "maxLabelLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "dblclick", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PieChartComponent.prototype, "margins", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieChartComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PieChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PieChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], PieChartComponent.prototype, "tooltipTemplate", void 0); PieChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-pie-chart', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"translation\" class=\"pie-chart chart\">\n <svg:g\n ngx-charts-pie-series\n [colors]=\"colors\"\n [series]=\"data\"\n [showLabels]=\"labels\"\n [labelFormatting]=\"labelFormatting\"\n [trimLabels]=\"trimLabels\"\n [maxLabelLength]=\"maxLabelLength\"\n [activeEntries]=\"activeEntries\"\n [innerRadius]=\"innerRadius\"\n [outerRadius]=\"outerRadius\"\n [explodeSlices]=\"explodeSlices\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (dblclick)=\"dblclick.emit($event)\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './pie-chart.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], PieChartComponent); return PieChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_3__["BaseChartComponent"])); //# sourceMappingURL=pie-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.module.js": /*!*********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.module.js ***! \*********************************************************************************/ /*! exports provided: PieChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieChartModule", function() { return PieChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _advanced_pie_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./advanced-pie-chart.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/advanced-pie-chart.component.js"); /* harmony import */ var _pie_label_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie-label.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-label.component.js"); /* harmony import */ var _pie_arc_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pie-arc.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-arc.component.js"); /* harmony import */ var _pie_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pie-chart.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-chart.component.js"); /* harmony import */ var _pie_grid_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pie-grid.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid.component.js"); /* harmony import */ var _pie_grid_series_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pie-grid-series.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid-series.component.js"); /* harmony import */ var _pie_series_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pie-series.component */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-series.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var PieChartModule = /** @class */ (function () { function PieChartModule() { } PieChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _advanced_pie_chart_component__WEBPACK_IMPORTED_MODULE_2__["AdvancedPieChartComponent"], _pie_label_component__WEBPACK_IMPORTED_MODULE_3__["PieLabelComponent"], _pie_arc_component__WEBPACK_IMPORTED_MODULE_4__["PieArcComponent"], _pie_chart_component__WEBPACK_IMPORTED_MODULE_5__["PieChartComponent"], _pie_grid_component__WEBPACK_IMPORTED_MODULE_6__["PieGridComponent"], _pie_grid_series_component__WEBPACK_IMPORTED_MODULE_7__["PieGridSeriesComponent"], _pie_series_component__WEBPACK_IMPORTED_MODULE_8__["PieSeriesComponent"] ], exports: [ _advanced_pie_chart_component__WEBPACK_IMPORTED_MODULE_2__["AdvancedPieChartComponent"], _pie_label_component__WEBPACK_IMPORTED_MODULE_3__["PieLabelComponent"], _pie_arc_component__WEBPACK_IMPORTED_MODULE_4__["PieArcComponent"], _pie_chart_component__WEBPACK_IMPORTED_MODULE_5__["PieChartComponent"], _pie_grid_component__WEBPACK_IMPORTED_MODULE_6__["PieGridComponent"], _pie_grid_series_component__WEBPACK_IMPORTED_MODULE_7__["PieGridSeriesComponent"], _pie_series_component__WEBPACK_IMPORTED_MODULE_8__["PieSeriesComponent"] ] }) ], PieChartModule); return PieChartModule; }()); //# sourceMappingURL=pie-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid-series.component.js": /*!******************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid-series.component.js ***! \******************************************************************************************/ /*! exports provided: PieGridSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieGridSeriesComponent", function() { return PieGridSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieGridSeriesComponent = /** @class */ (function () { function PieGridSeriesComponent(element) { this.innerRadius = 70; this.outerRadius = 80; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.element = element.nativeElement; } PieGridSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; PieGridSeriesComponent.prototype.update = function () { this.layout = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["pie"])() .value(function (d) { return d.data.value; }) .sort(null); this.arcs = this.getArcs(); }; PieGridSeriesComponent.prototype.getArcs = function () { var _this = this; return this.layout(this.data).map(function (arc, index) { var label = arc.data.data.name; var other = arc.data.data.other; if (index === 0) { arc.startAngle = 0; } var color = _this.colors(label); return { data: arc.data.data, class: 'arc ' + 'arc' + index, fill: color, startAngle: other ? 0 : arc.startAngle, endAngle: arc.endAngle, animate: _this.animations && !other, pointerEvents: !other }; }); }; PieGridSeriesComponent.prototype.onClick = function (data) { this.select.emit(this.data[0].data); }; PieGridSeriesComponent.prototype.trackBy = function (index, item) { return item.data.name; }; PieGridSeriesComponent.prototype.label = function (arc) { return arc.data.name; }; PieGridSeriesComponent.prototype.color = function (arc) { return this.colors(this.label(arc)); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "innerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "outerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieGridSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieGridSeriesComponent.prototype, "deactivate", void 0); PieGridSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-pie-grid-series]', template: "\n <svg:g class=\"pie-grid-arcs\">\n <svg:g\n ngx-charts-pie-arc\n *ngFor=\"let arc of arcs; trackBy: trackBy\"\n [attr.class]=\"arc.class\"\n [startAngle]=\"arc.startAngle\"\n [endAngle]=\"arc.endAngle\"\n [innerRadius]=\"innerRadius\"\n [outerRadius]=\"outerRadius\"\n [fill]=\"color(arc)\"\n [value]=\"arc.data.value\"\n [data]=\"arc.data\"\n [gradient]=\"false\"\n [pointerEvents]=\"arc.pointerEvents\"\n [animate]=\"arc.animate\"\n (select)=\"onClick($event)\"\n (activate)=\"activate.emit($event)\"\n (deactivate)=\"deactivate.emit($event)\"\n ></svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], PieGridSeriesComponent); return PieGridSeriesComponent; }()); //# sourceMappingURL=pie-grid-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid.component.js": /*!***********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-grid.component.js ***! \***********************************************************************************/ /*! exports provided: PieGridComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieGridComponent", function() { return PieGridComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_trim_label_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _common_grid_layout_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/grid-layout.helper */ "./node_modules/@swimlane/ngx-charts/release/common/grid-layout.helper.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieGridComponent = /** @class */ (function (_super) { __extends(PieGridComponent, _super); function PieGridComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.tooltipDisabled = false; _this.label = 'Total'; _this.minWidth = 150; _this.activeEntries = []; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [20, 20, 20, 20]; return _this; } PieGridComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin }); this.formatDates(); this.domain = this.getDomain(); this.data = Object(_common_grid_layout_helper__WEBPACK_IMPORTED_MODULE_7__["gridLayout"])(this.dims, this.results, this.minWidth, this.designatedTotal); this.transform = "translate(" + this.margin[3] + " , " + this.margin[0] + ")"; this.series = this.getSeries(); this.setColors(); this.tooltipText = this.tooltipText || this.defaultTooltipText; }; PieGridComponent.prototype.defaultTooltipText = function (_a) { var data = _a.data; var label = Object(_common_trim_label_helper__WEBPACK_IMPORTED_MODULE_6__["trimLabel"])(Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_8__["formatLabel"])(data.name)); var val = data.value.toLocaleString(); return "\n <span class=\"tooltip-label\">" + label + "</span>\n <span class=\"tooltip-val\">" + val + "</span>\n "; }; PieGridComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.label; }); }; PieGridComponent.prototype.getSeries = function () { var _this = this; var total = this.designatedTotal ? this.designatedTotal : this.getTotal(); return this.data.map(function (d) { var baselineLabelHeight = 20; var padding = 10; var name = d.data.name; var label = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_8__["formatLabel"])(name); var value = d.data.value; var radius = Object(d3_array__WEBPACK_IMPORTED_MODULE_1__["min"])([d.width - padding, d.height - baselineLabelHeight]) / 2 - 5; var innerRadius = radius * 0.9; var count = 0; var colors = function () { count += 1; if (count === 1) { return 'rgba(100,100,100,0.3)'; } else { return _this.colorScale.getColor(label); } }; var xPos = d.x + (d.width - padding) / 2; var yPos = d.y + (d.height - baselineLabelHeight) / 2; return { transform: "translate(" + xPos + ", " + yPos + ")", colors: colors, innerRadius: innerRadius, outerRadius: radius, name: name, label: Object(_common_trim_label_helper__WEBPACK_IMPORTED_MODULE_6__["trimLabel"])(label), total: value, value: value, percent: Object(d3_format__WEBPACK_IMPORTED_MODULE_2__["format"])('.1%')(d.data.percent), data: [ d, { data: { other: true, value: total - value, name: d.data.name } } ] }; }); }; PieGridComponent.prototype.getTotal = function () { return this.results.map(function (d) { return d.value; }).reduce(function (sum, d) { return sum + d; }, 0); }; PieGridComponent.prototype.onClick = function (data) { this.select.emit(data); }; PieGridComponent.prototype.setColors = function () { this.colorScale = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; PieGridComponent.prototype.onActivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); if (idx > -1) { return; } this.activeEntries = [item].concat(this.activeEntries); this.activate.emit({ value: item, entries: this.activeEntries }); }; PieGridComponent.prototype.onDeactivate = function (item, fromLegend) { if (fromLegend === void 0) { fromLegend = false; } item = this.results.find(function (d) { if (fromLegend) { return d.label === item.name; } else { return d.name === item.name; } }); var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value && d.series === item.series; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieGridComponent.prototype, "designatedTotal", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieGridComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], PieGridComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PieGridComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieGridComponent.prototype, "minWidth", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PieGridComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PieGridComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PieGridComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], PieGridComponent.prototype, "tooltipTemplate", void 0); PieGridComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-pie-grid', template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"pie-grid chart\">\n <svg:g *ngFor=\"let series of series\" class=\"pie-grid-item\" [attr.transform]=\"series.transform\">\n <svg:g\n ngx-charts-pie-grid-series\n [colors]=\"series.colors\"\n [data]=\"series.data\"\n [innerRadius]=\"series.innerRadius\"\n [outerRadius]=\"series.outerRadius\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : tooltipText({ data: series })\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"series.data[0].data\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n <svg:text\n *ngIf=\"animations\"\n class=\"label percent-label\"\n dy=\"-0.5em\"\n x=\"0\"\n y=\"5\"\n ngx-charts-count-up\n [countTo]=\"series.percent\"\n [countSuffix]=\"'%'\"\n text-anchor=\"middle\"\n ></svg:text>\n <svg:text *ngIf=\"!animations\" class=\"label percent-label\" dy=\"-0.5em\" x=\"0\" y=\"5\" text-anchor=\"middle\">\n {{ series.percent.toLocaleString() }}\n </svg:text>\n <svg:text class=\"label\" dy=\"0.5em\" x=\"0\" y=\"5\" text-anchor=\"middle\">\n {{ series.label }}\n </svg:text>\n <svg:text\n *ngIf=\"animations\"\n class=\"label\"\n dy=\"1.23em\"\n x=\"0\"\n [attr.y]=\"series.outerRadius\"\n text-anchor=\"middle\"\n ngx-charts-count-up\n [countTo]=\"series.total\"\n [countPrefix]=\"label + ': '\"\n ></svg:text>\n <svg:text\n *ngIf=\"!animations\"\n class=\"label\"\n dy=\"1.23em\"\n x=\"0\"\n [attr.y]=\"series.outerRadius\"\n text-anchor=\"middle\"\n >\n {{ label }}: {{ series.total.toLocaleString() }}\n </svg:text>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['../common/base-chart.component.css', './pie-grid.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], PieGridComponent); return PieGridComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_5__["BaseChartComponent"])); //# sourceMappingURL=pie-grid.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-label.component.js": /*!************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-label.component.js ***! \************************************************************************************/ /*! exports provided: PieLabelComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieLabelComponent", function() { return PieLabelComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_trim_label_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieLabelComponent = /** @class */ (function () { function PieLabelComponent() { this.animations = true; this.labelTrim = true; this.labelTrimSize = 10; this.isIE = /(edge|msie|trident)/i.test(navigator.userAgent); this.trimLabel = _common_trim_label_helper__WEBPACK_IMPORTED_MODULE_2__["trimLabel"]; } PieLabelComponent.prototype.ngOnChanges = function (changes) { this.update(); }; PieLabelComponent.prototype.update = function () { var startRadius = this.radius; if (this.explodeSlices) { startRadius = this.radius * this.value / this.max; } var innerArc = Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["arc"])() .innerRadius(startRadius) .outerRadius(startRadius); // Calculate innerPos then scale outer position to match label position var innerPos = innerArc.centroid(this.data); var scale = this.data.pos[1] / innerPos[1]; if (this.data.pos[1] === 0 || innerPos[1] === 0) { scale = 1; } var outerPos = [scale * innerPos[0], scale * innerPos[1]]; this.line = "M" + innerPos + "L" + outerPos + "L" + this.data.pos; }; Object.defineProperty(PieLabelComponent.prototype, "textX", { get: function () { return this.data.pos[0]; }, enumerable: true, configurable: true }); Object.defineProperty(PieLabelComponent.prototype, "textY", { get: function () { return this.data.pos[1]; }, enumerable: true, configurable: true }); Object.defineProperty(PieLabelComponent.prototype, "styleTransform", { get: function () { return this.isIE ? null : "translate3d(" + this.textX + "px," + this.textY + "px, 0)"; }, enumerable: true, configurable: true }); Object.defineProperty(PieLabelComponent.prototype, "attrTransform", { get: function () { return !this.isIE ? null : "translate(" + this.textX + "," + this.textY + ")"; }, enumerable: true, configurable: true }); Object.defineProperty(PieLabelComponent.prototype, "textTransition", { get: function () { return this.isIE || !this.animations ? null : 'transform 0.75s'; }, enumerable: true, configurable: true }); PieLabelComponent.prototype.textAnchor = function () { return this.midAngle(this.data) < Math.PI ? 'start' : 'end'; }; PieLabelComponent.prototype.midAngle = function (d) { return d.startAngle + (d.endAngle - d.startAngle) / 2; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "radius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "color", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "max", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieLabelComponent.prototype, "explodeSlices", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieLabelComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieLabelComponent.prototype, "labelTrim", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieLabelComponent.prototype, "labelTrimSize", void 0); PieLabelComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-pie-label]', template: "\n <title>{{label}}</title>\n <svg:g\n [attr.transform]=\"attrTransform\"\n [style.transform]=\"styleTransform\"\n [style.transition]=\"textTransition\">\n <svg:text\n class=\"pie-label\"\n [class.animation]=\"animations\"\n dy=\".35em\"\n [style.textAnchor]=\"textAnchor()\"\n [style.shapeRendering]=\"'crispEdges'\">\n {{labelTrim ? trimLabel(label, labelTrimSize) : label}}\n </svg:text>\n </svg:g>\n <svg:path\n [attr.d]=\"line\"\n [attr.stroke]=\"color\"\n fill=\"none\"\n class=\"pie-label-line line\"\n [class.animation]=\"animations\">\n </svg:path>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", []) ], PieLabelComponent); return PieLabelComponent; }()); //# sourceMappingURL=pie-label.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-series.component.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/pie-chart/pie-series.component.js ***! \*************************************************************************************/ /*! exports provided: PieSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PieSeriesComponent", function() { return PieSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_label_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/label.helper.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PieSeriesComponent = /** @class */ (function () { function PieSeriesComponent() { this.series = []; this.innerRadius = 60; this.outerRadius = 80; this.trimLabels = true; this.maxLabelLength = 10; this.tooltipDisabled = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.dblclick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } PieSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; PieSeriesComponent.prototype.update = function () { var pieGenerator = Object(d3_shape__WEBPACK_IMPORTED_MODULE_2__["pie"])() .value(function (d) { return d.value; }) .sort(null); var arcData = pieGenerator(this.series); this.max = Object(d3_array__WEBPACK_IMPORTED_MODULE_1__["max"])(arcData, function (d) { return d.value; }); this.data = this.calculateLabelPositions(arcData); this.tooltipText = this.tooltipText || this.defaultTooltipText; }; PieSeriesComponent.prototype.midAngle = function (d) { return d.startAngle + (d.endAngle - d.startAngle) / 2; }; PieSeriesComponent.prototype.outerArc = function () { var factor = 1.5; return Object(d3_shape__WEBPACK_IMPORTED_MODULE_2__["arc"])() .innerRadius(this.outerRadius * factor) .outerRadius(this.outerRadius * factor); }; PieSeriesComponent.prototype.calculateLabelPositions = function (pieData) { var _this = this; var factor = 1.5; var minDistance = 10; var labelPositions = pieData; labelPositions.forEach(function (d) { d.pos = _this.outerArc().centroid(d); d.pos[0] = factor * _this.outerRadius * (_this.midAngle(d) < Math.PI ? 1 : -1); }); for (var i = 0; i < labelPositions.length - 1; i++) { var a = labelPositions[i]; if (!this.labelVisible(a)) { continue; } for (var j = i + 1; j < labelPositions.length; j++) { var b = labelPositions[j]; if (!this.labelVisible(b)) { continue; } // if they're on the same side if (b.pos[0] * a.pos[0] > 0) { // if they're overlapping var o = minDistance - Math.abs(b.pos[1] - a.pos[1]); if (o > 0) { // push the second up or down b.pos[1] += Math.sign(b.pos[0]) * o; } } } } return labelPositions; }; PieSeriesComponent.prototype.labelVisible = function (myArc) { return this.showLabels && myArc.endAngle - myArc.startAngle > Math.PI / 30; }; PieSeriesComponent.prototype.getTooltipTitle = function (a) { return this.tooltipTemplate ? undefined : this.tooltipText(a); }; PieSeriesComponent.prototype.labelText = function (myArc) { if (this.labelFormatting) { return this.labelFormatting(myArc.data.name); } return this.label(myArc); }; PieSeriesComponent.prototype.label = function (myArc) { return Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_3__["formatLabel"])(myArc.data.name); }; PieSeriesComponent.prototype.defaultTooltipText = function (myArc) { var label = this.label(myArc); var val = Object(_common_label_helper__WEBPACK_IMPORTED_MODULE_3__["formatLabel"])(myArc.data.value); return "\n <span class=\"tooltip-label\">" + label + "</span>\n <span class=\"tooltip-val\">" + val + "</span>\n "; }; PieSeriesComponent.prototype.color = function (myArc) { return this.colors.getColor(this.label(myArc)); }; PieSeriesComponent.prototype.trackBy = function (index, item) { return item.data.name; }; PieSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; PieSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name && entry.series === d.series; }); return item !== undefined; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "series", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "innerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "outerRadius", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "explodeSlices", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "showLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieSeriesComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PieSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieSeriesComponent.prototype, "trimLabels", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PieSeriesComponent.prototype, "maxLabelLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], PieSeriesComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], PieSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PieSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PieSeriesComponent.prototype, "dblclick", void 0); PieSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-pie-series]', template: "\n <svg:g *ngFor=\"let arc of data; trackBy: trackBy\">\n <svg:g\n ngx-charts-pie-label\n *ngIf=\"labelVisible(arc)\"\n [data]=\"arc\"\n [radius]=\"outerRadius\"\n [color]=\"color(arc)\"\n [label]=\"labelText(arc)\"\n [labelTrim]=\"trimLabels\"\n [labelTrimSize]=\"maxLabelLength\"\n [max]=\"max\"\n [value]=\"arc.value\"\n [explodeSlices]=\"explodeSlices\"\n [animations]=\"animations\"\n ></svg:g>\n <svg:g\n ngx-charts-pie-arc\n [startAngle]=\"arc.startAngle\"\n [endAngle]=\"arc.endAngle\"\n [innerRadius]=\"innerRadius\"\n [outerRadius]=\"outerRadius\"\n [fill]=\"color(arc)\"\n [value]=\"arc.data.value\"\n [gradient]=\"gradient\"\n [data]=\"arc.data\"\n [max]=\"max\"\n [explodeSlices]=\"explodeSlices\"\n [isActive]=\"isActive(arc.data)\"\n [animate]=\"animations\"\n (select)=\"onClick($event)\"\n (activate)=\"activate.emit($event)\"\n (deactivate)=\"deactivate.emit($event)\"\n (dblclick)=\"dblclick.emit($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"getTooltipTitle(arc)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"arc.data\"\n ></svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], PieSeriesComponent); return PieSeriesComponent; }()); //# sourceMappingURL=pie-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.component.js": /*!****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.component.js ***! \****************************************************************************************/ /*! exports provided: PolarChartComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolarChartComponent", function() { return PolarChartComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/animations */ "./node_modules/@angular/animations/fesm2015/animations.js"); /* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_domain_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/domain.helper */ "./node_modules/@swimlane/ngx-charts/release/common/domain.helper.js"); /* harmony import */ var _utils_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/types */ "./node_modules/@swimlane/ngx-charts/release/utils/types.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (undefined && undefined.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var twoPI = 2 * Math.PI; var PolarChartComponent = /** @class */ (function (_super) { __extends(PolarChartComponent, _super); function PolarChartComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.legendTitle = 'Legend'; _this.legendPosition = 'right'; _this.showGridLines = true; _this.curve = d3_shape__WEBPACK_IMPORTED_MODULE_3__["curveCardinalClosed"]; _this.activeEntries = []; _this.rangeFillOpacity = 0.15; _this.trimYAxisTicks = true; _this.maxYAxisTickLength = 16; _this.roundDomains = false; _this.tooltipDisabled = false; _this.showSeriesOnHover = true; _this.gradient = false; _this.yAxisMinScale = 0; _this.labelTrim = true; _this.labelTrimSize = 10; _this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 20, 10, 20]; _this.xAxisHeight = 0; _this.yAxisWidth = 0; return _this; } PolarChartComponent.prototype.update = function () { _super.prototype.update.call(this); this.setDims(); this.setScales(); this.setColors(); this.legendOptions = this.getLegendOptions(); this.setTicks(); }; PolarChartComponent.prototype.setDims = function () { this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_4__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin, showXAxis: this.xAxis, showYAxis: this.yAxis, xAxisHeight: this.xAxisHeight, yAxisWidth: this.yAxisWidth, showXLabel: this.showXAxisLabel, showYLabel: this.showYAxisLabel, showLegend: this.legend, legendType: this.schemeType, legendPosition: this.legendPosition }); var halfWidth = Math.floor(this.dims.width / 2); var halfHeight = Math.floor(this.dims.height / 2); var outerRadius = (this.outerRadius = Math.min(halfHeight / 1.5, halfWidth / 1.5)); var yOffset = Math.max(0, halfHeight - outerRadius); this.yAxisDims = __assign({}, this.dims, { width: halfWidth }); this.transform = "translate(" + this.dims.xOffset + ", " + this.margin[0] + ")"; this.transformYAxis = "translate(0, " + yOffset + ")"; this.labelOffset = this.dims.height + 40; this.transformPlot = "translate(" + halfWidth + ", " + halfHeight + ")"; }; PolarChartComponent.prototype.setScales = function () { var xValues = this.getXValues(); this.scaleType = Object(_common_domain_helper__WEBPACK_IMPORTED_MODULE_7__["getScaleType"])(xValues); this.xDomain = this.filteredDomain || this.getXDomain(xValues); this.yDomain = this.getYDomain(); this.seriesDomain = this.getSeriesDomain(); this.xScale = this.getXScale(this.xDomain, twoPI); this.yScale = this.getYScale(this.yDomain, this.outerRadius); this.yAxisScale = this.getYScale(this.yDomain.reverse(), this.outerRadius); }; PolarChartComponent.prototype.setTicks = function () { var _this = this; var tickFormat; if (this.xAxisTickFormatting) { tickFormat = this.xAxisTickFormatting; } else if (this.xScale.tickFormat) { tickFormat = this.xScale.tickFormat.apply(this.xScale, [5]); } else { tickFormat = function (d) { if (Object(_utils_types__WEBPACK_IMPORTED_MODULE_8__["isDate"])(d)) { return d.toLocaleDateString(); } return d.toLocaleString(); }; } var outerRadius = this.outerRadius; var s = 1.1; this.thetaTicks = this.xDomain.map(function (d) { var startAngle = _this.xScale(d); var dd = s * outerRadius * (startAngle > Math.PI ? -1 : 1); var label = tickFormat(d); var startPos = [outerRadius * Math.sin(startAngle), -outerRadius * Math.cos(startAngle)]; var pos = [dd, s * startPos[1]]; return { innerRadius: 0, outerRadius: outerRadius, startAngle: startAngle, endAngle: startAngle, value: outerRadius, label: label, startPos: startPos, pos: pos }; }); var minDistance = 10; /* from pie chart, abstract out -*/ for (var i = 0; i < this.thetaTicks.length - 1; i++) { var a = this.thetaTicks[i]; for (var j = i + 1; j < this.thetaTicks.length; j++) { var b = this.thetaTicks[j]; // if they're on the same side if (b.pos[0] * a.pos[0] > 0) { // if they're overlapping var o = minDistance - Math.abs(b.pos[1] - a.pos[1]); if (o > 0) { // push the second up or down b.pos[1] += Math.sign(b.pos[0]) * o; } } } } this.radiusTicks = this.yAxisScale.ticks(Math.floor(this.dims.height / 50)).map(function (d) { return _this.yScale(d); }); }; PolarChartComponent.prototype.getXValues = function () { var values = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (!values.includes(d.name)) { values.push(d.name); } } } return values; }; PolarChartComponent.prototype.getXDomain = function (values) { if (values === void 0) { values = this.getXValues(); } if (this.scaleType === 'time') { var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); return [min, max]; } else if (this.scaleType === 'linear') { values = values.map(function (v) { return Number(v); }); var min = Math.min.apply(Math, values); var max = Math.max.apply(Math, values); return [min, max]; } return values; }; PolarChartComponent.prototype.getYValues = function () { var domain = []; for (var _i = 0, _a = this.results; _i < _a.length; _i++) { var results = _a[_i]; for (var _b = 0, _c = results.series; _b < _c.length; _b++) { var d = _c[_b]; if (domain.indexOf(d.value) < 0) { domain.push(d.value); } if (d.min !== undefined) { if (domain.indexOf(d.min) < 0) { domain.push(d.min); } } if (d.max !== undefined) { if (domain.indexOf(d.max) < 0) { domain.push(d.max); } } } } return domain; }; PolarChartComponent.prototype.getYDomain = function (domain) { if (domain === void 0) { domain = this.getYValues(); } var min = Math.min.apply(Math, domain); var max = Math.max.apply(Math, [this.yAxisMinScale].concat(domain)); min = Math.max(0, min); if (!this.autoScale) { min = Math.min(0, min); } return [min, max]; }; PolarChartComponent.prototype.getSeriesDomain = function () { return this.results.map(function (d) { return d.name; }); }; PolarChartComponent.prototype.getXScale = function (domain, width) { switch (this.scaleType) { case 'time': return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleTime"])() .range([0, width]) .domain(domain); case 'linear': var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, width]) .domain(domain); return this.roundDomains ? scale.nice() : scale; default: return Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scalePoint"])() .range([0, width - twoPI / domain.length]) .padding(0) .domain(domain); } }; PolarChartComponent.prototype.getYScale = function (domain, height) { var scale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_2__["scaleLinear"])() .range([0, height]) .domain(domain); return this.roundDomains ? scale.nice() : scale; }; PolarChartComponent.prototype.onClick = function (data, series) { if (series) { data.series = series.name; } this.select.emit(data); }; PolarChartComponent.prototype.setColors = function () { var domain = this.schemeType === 'ordinal' ? this.seriesDomain : this.yDomain.reverse(); this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_5__["ColorHelper"](this.scheme, this.schemeType, domain, this.customColors); }; PolarChartComponent.prototype.getLegendOptions = function () { if (this.schemeType === 'ordinal') { return { scaleType: this.schemeType, colors: this.colors, domain: this.seriesDomain, title: this.legendTitle, position: this.legendPosition }; } return { scaleType: this.schemeType, colors: this.colors.scale, domain: this.yDomain, title: undefined, position: this.legendPosition }; }; PolarChartComponent.prototype.updateYAxisWidth = function (_a) { var width = _a.width; this.yAxisWidth = width; this.update(); }; PolarChartComponent.prototype.updateXAxisHeight = function (_a) { var height = _a.height; this.xAxisHeight = height; this.update(); }; PolarChartComponent.prototype.onActivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); if (idx > -1) { return; } this.activeEntries = this.showSeriesOnHover ? [item].concat(this.activeEntries) : this.activeEntries; this.activate.emit({ value: item, entries: this.activeEntries }); }; PolarChartComponent.prototype.onDeactivate = function (item) { var idx = this.activeEntries.findIndex(function (d) { return d.name === item.name && d.value === item.value; }); this.activeEntries.splice(idx, 1); this.activeEntries = this.activeEntries.slice(); this.deactivate.emit({ value: item, entries: this.activeEntries }); }; PolarChartComponent.prototype.deactivateAll = function () { this.activeEntries = this.activeEntries.slice(); for (var _i = 0, _a = this.activeEntries; _i < _a.length; _i++) { var entry = _a[_i]; this.deactivate.emit({ value: entry, entries: [] }); } this.activeEntries = []; }; PolarChartComponent.prototype.trackBy = function (index, item) { return item.name; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "legend", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PolarChartComponent.prototype, "legendTitle", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PolarChartComponent.prototype, "legendPosition", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "xAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "yAxis", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "showXAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "showYAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PolarChartComponent.prototype, "xAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PolarChartComponent.prototype, "yAxisLabel", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "autoScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "showGridLines", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarChartComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PolarChartComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", String) ], PolarChartComponent.prototype, "schemeType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PolarChartComponent.prototype, "rangeFillOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "trimYAxisTicks", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PolarChartComponent.prototype, "maxYAxisTickLength", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], PolarChartComponent.prototype, "xAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], PolarChartComponent.prototype, "yAxisTickFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "roundDomains", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "showSeriesOnHover", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PolarChartComponent.prototype, "yAxisMinScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarChartComponent.prototype, "labelTrim", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PolarChartComponent.prototype, "labelTrimSize", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PolarChartComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], PolarChartComponent.prototype, "deactivate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], PolarChartComponent.prototype, "tooltipTemplate", void 0); PolarChartComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-polar-chart', template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:g class=\"polar-chart chart\" [attr.transform]=\"transform\">\n <svg:g [attr.transform]=\"transformPlot\">\n <svg:circle class=\"polar-chart-background\" cx=\"0\" cy=\"0\" [attr.r]=\"this.outerRadius\" />\n <svg:g *ngIf=\"showGridLines\">\n <svg:circle\n *ngFor=\"let r of radiusTicks\"\n class=\"gridline-path radial-gridline-path\"\n cx=\"0\"\n cy=\"0\"\n [attr.r]=\"r\"\n />\n </svg:g>\n <svg:g *ngIf=\"xAxis\">\n <svg:g\n ngx-charts-pie-label\n *ngFor=\"let tick of thetaTicks\"\n [data]=\"tick\"\n [radius]=\"outerRadius\"\n [label]=\"tick.label\"\n [max]=\"outerRadius\"\n [value]=\"showGridLines ? 1 : outerRadius\"\n [explodeSlices]=\"true\"\n [animations]=\"animations\"\n [labelTrim]=\"labelTrim\"\n [labelTrimSize]=\"labelTrimSize\"\n ></svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-y-axis\n [attr.transform]=\"transformYAxis\"\n *ngIf=\"yAxis\"\n [yScale]=\"yAxisScale\"\n [dims]=\"yAxisDims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-axis-label\n *ngIf=\"xAxis && showXAxisLabel\"\n [label]=\"xAxisLabel\"\n [offset]=\"labelOffset\"\n [orient]=\"'bottom'\"\n [height]=\"dims.height\"\n [width]=\"dims.width\"\n ></svg:g>\n <svg:g [attr.transform]=\"transformPlot\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\" [@animationState]=\"'active'\">\n <svg:g\n ngx-charts-polar-series\n [gradient]=\"gradient\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [activeEntries]=\"activeEntries\"\n [scaleType]=\"scaleType\"\n [curve]=\"curve\"\n [rangeFillOpacity]=\"rangeFillOpacity\"\n [animations]=\"animations\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: [ '../common/base-chart.component.css', '../pie-chart/pie-chart.component.css', './polar-chart.component.css' ], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush, animations: [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["trigger"])('animationState', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["transition"])(':leave', [ Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 1 }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["animate"])(500, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_1__["style"])({ opacity: 0 })) ]) ]) ] }) ], PolarChartComponent); return PolarChartComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_6__["BaseChartComponent"])); //# sourceMappingURL=polar-chart.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.module.js": /*!*************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.module.js ***! \*************************************************************************************/ /*! exports provided: PolarChartModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolarChartModule", function() { return PolarChartModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _polar_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./polar-chart.component */ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-chart.component.js"); /* harmony import */ var _polar_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./polar-series.component */ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-series.component.js"); /* harmony import */ var _pie_chart___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pie-chart/ */ "./node_modules/@swimlane/ngx-charts/release/pie-chart/index.js"); /* harmony import */ var _line_chart___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../line-chart/ */ "./node_modules/@swimlane/ngx-charts/release/line-chart/index.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var PolarChartModule = /** @class */ (function () { function PolarChartModule() { } PolarChartModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"], _pie_chart___WEBPACK_IMPORTED_MODULE_4__["PieChartModule"], _line_chart___WEBPACK_IMPORTED_MODULE_5__["LineChartModule"]], declarations: [ _polar_chart_component__WEBPACK_IMPORTED_MODULE_2__["PolarChartComponent"], _polar_series_component__WEBPACK_IMPORTED_MODULE_3__["PolarSeriesComponent"] ], exports: [ _polar_chart_component__WEBPACK_IMPORTED_MODULE_2__["PolarChartComponent"], _polar_series_component__WEBPACK_IMPORTED_MODULE_3__["PolarSeriesComponent"] ] }) ], PolarChartModule); return PolarChartModule; }()); //# sourceMappingURL=polar-chart.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-series.component.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/polar-chart/polar-series.component.js ***! \*****************************************************************************************/ /*! exports provided: PolarSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolarSeriesComponent", function() { return PolarSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony import */ var _utils_sort__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/sort */ "./node_modules/@swimlane/ngx-charts/release/utils/sort.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var PolarSeriesComponent = /** @class */ (function () { function PolarSeriesComponent() { this.tooltipDisabled = false; this.gradient = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.activate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.deactivate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.circleRadius = 3; } PolarSeriesComponent.prototype.ngOnChanges = function (changes) { this.update(); }; PolarSeriesComponent.prototype.update = function () { var _this = this; this.updateGradients(); var line = this.getLineGenerator(); var data = this.sortData(this.data.series); var seriesName = this.data.name; var linearScaleType = this.colors.scaleType === 'linear'; var min = this.yScale.domain()[0]; this.seriesColor = this.colors.getColor(linearScaleType ? min : seriesName); this.path = line(data) || ''; this.circles = data.map(function (d) { var a = _this.getAngle(d); var r = _this.getRadius(d); var value = d.value; var color = _this.colors.getColor(linearScaleType ? Math.abs(value) : seriesName); var cData = Object.assign({}, d, { series: seriesName, value: value, name: d.name }); return { data: cData, cx: r * Math.sin(a), cy: -r * Math.cos(a), value: value, color: color, label: d.name }; }); this.active = this.isActive(this.data); this.inactive = this.isInactive(this.data); this.tooltipText = this.tooltipText || (function (c) { return _this.defaultTooltipText(c); }); }; PolarSeriesComponent.prototype.getAngle = function (d) { var label = d.name; if (this.scaleType === 'time') { return this.xScale(label); } else if (this.scaleType === 'linear') { return this.xScale(Number(label)); } return this.xScale(label); }; PolarSeriesComponent.prototype.getRadius = function (d) { return this.yScale(d.value); }; PolarSeriesComponent.prototype.getLineGenerator = function () { var _this = this; return Object(d3_shape__WEBPACK_IMPORTED_MODULE_1__["lineRadial"])() .angle(function (d) { return _this.getAngle(d); }) .radius(function (d) { return _this.getRadius(d); }) .curve(this.curve); }; PolarSeriesComponent.prototype.sortData = function (data) { if (this.scaleType === 'linear') { return Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortLinear"])(data, 'name'); } else if (this.scaleType === 'time') { return Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortByTime"])(data, 'name'); } return Object(_utils_sort__WEBPACK_IMPORTED_MODULE_3__["sortByDomain"])(data, 'name', 'asc', this.xScale.domain()); }; PolarSeriesComponent.prototype.isActive = function (entry) { if (!this.activeEntries) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item !== undefined; }; PolarSeriesComponent.prototype.isInactive = function (entry) { if (!this.activeEntries || this.activeEntries.length === 0) return false; var item = this.activeEntries.find(function (d) { return entry.name === d.name; }); return item === undefined; }; PolarSeriesComponent.prototype.defaultTooltipText = function (_a) { var label = _a.label, value = _a.value; return "\n <span class=\"tooltip-label\">" + this.data.name + " \u2022 " + label + "</span>\n <span class=\"tooltip-val\">" + value.toLocaleString() + "</span>\n "; }; PolarSeriesComponent.prototype.updateGradients = function () { this.hasGradient = this.gradient || this.colors.scaleType === 'linear'; if (!this.hasGradient) { return; } this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_2__["id"])().toString(); this.gradientUrl = "url(#" + this.gradientId + ")"; if (this.colors.scaleType === 'linear') { var values = this.data.series.map(function (d) { return d.value; }); var max = Math.max.apply(Math, values); var min = Math.min.apply(Math, values); this.gradientStops = this.colors.getLinearGradientStops(max, min); } else { this.gradientStops = undefined; } }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "name", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "xScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "yScale", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "scaleType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "curve", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Array) ], PolarSeriesComponent.prototype, "activeEntries", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Number) ], PolarSeriesComponent.prototype, "rangeFillOpacity", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Function) ], PolarSeriesComponent.prototype, "tooltipText", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarSeriesComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], PolarSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], PolarSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "activate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], PolarSeriesComponent.prototype, "deactivate", void 0); PolarSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-polar-series]', template: "\n <svg:g class=\"polar-charts-series\">\n <defs>\n <svg:g\n ngx-charts-svg-radial-gradient\n *ngIf=\"hasGradient\"\n orientation=\"vertical\"\n [color]=\"seriesColor\"\n [name]=\"gradientId\"\n [startOpacity]=\"0.25\"\n [endOpacity]=\"1\"\n [stops]=\"gradientStops\"\n />\n </defs>\n <svg:g\n ngx-charts-line\n class=\"polar-series-path\"\n [path]=\"path\"\n [stroke]=\"hasGradient ? gradientUrl : seriesColor\"\n [class.active]=\"active\"\n [class.inactive]=\"inactive\"\n [attr.fill-opacity]=\"rangeFillOpacity\"\n [fill]=\"hasGradient ? gradientUrl : seriesColor\"\n [animations]=\"animations\"\n />\n <svg:g\n ngx-charts-circle\n *ngFor=\"let circle of circles\"\n class=\"circle\"\n [cx]=\"circle.cx\"\n [cy]=\"circle.cy\"\n [r]=\"circleRadius\"\n [fill]=\"circle.color\"\n [style.opacity]=\"inactive ? 0.2 : 1\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n tooltipType=\"tooltip\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : tooltipText(circle)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"circle.data\"\n (select)=\"select.emit(circle.data)\"\n (activate)=\"activate.emit({ name: circle.data.series })\"\n (deactivate)=\"deactivate.emit({ name: circle.data.series })\"\n ></svg:g>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], PolarSeriesComponent); return PolarSeriesComponent; }()); //# sourceMappingURL=polar-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/polyfills.js": /*!****************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/polyfills.js ***! \****************************************************************/ /*! exports provided: ngxChartsPolyfills */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ngxChartsPolyfills", function() { return ngxChartsPolyfills; }); // The export is needed here to generate a valid polyfills.metadata.json file function ngxChartsPolyfills() { // IE11 fix // Ref: https://github.com/swimlane/ngx-charts/issues/386 if (typeof (SVGElement) !== 'undefined' && typeof SVGElement.prototype.contains === 'undefined') { SVGElement.prototype.contains = HTMLDivElement.prototype.contains; } } ngxChartsPolyfills(); //# sourceMappingURL=polyfills.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell-series.component.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell-series.component.js ***! \**********************************************************************************************/ /*! exports provided: TreeMapCellSeriesComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapCellSeriesComponent", function() { return TreeMapCellSeriesComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TreeMapCellSeriesComponent = /** @class */ (function () { function TreeMapCellSeriesComponent() { this.gradient = false; this.tooltipDisabled = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } TreeMapCellSeriesComponent.prototype.ngOnChanges = function (changes) { this.cells = this.getCells(); }; TreeMapCellSeriesComponent.prototype.getCells = function () { var _this = this; return this.data.children .filter(function (d) { return d.depth === 1; }) .map(function (d, index) { var label = d.id; return { data: d.data, x: d.x0, y: d.y0, width: d.x1 - d.x0, height: d.y1 - d.y0, fill: _this.colors.getColor(label), label: label, value: d.value, valueType: d.valueType }; }); }; TreeMapCellSeriesComponent.prototype.getTooltipText = function (_a) { var label = _a.label, value = _a.value; return "\n <span class=\"tooltip-label\">" + label + "</span>\n <span class=\"tooltip-val\">" + value.toLocaleString() + "</span>\n "; }; TreeMapCellSeriesComponent.prototype.onClick = function (data) { this.select.emit(data); }; TreeMapCellSeriesComponent.prototype.trackBy = function (index, item) { return item.label; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "dims", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "colors", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapCellSeriesComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapCellSeriesComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], TreeMapCellSeriesComponent.prototype, "tooltipTemplate", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapCellSeriesComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TreeMapCellSeriesComponent.prototype, "select", void 0); TreeMapCellSeriesComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-tree-map-cell-series]', template: "\n <svg:g\n ngx-charts-tree-map-cell\n *ngFor=\"let c of cells; trackBy: trackBy\"\n [data]=\"c.data\"\n [x]=\"c.x\"\n [y]=\"c.y\"\n [width]=\"c.width\"\n [height]=\"c.height\"\n [fill]=\"c.fill\"\n [label]=\"c.label\"\n [value]=\"c.value\"\n [valueType]=\"c.valueType\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"labelFormatting\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : getTooltipText(c)\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"c.data\"\n ></svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], TreeMapCellSeriesComponent); return TreeMapCellSeriesComponent; }()); //# sourceMappingURL=tree-map-cell-series.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell.component.js": /*!***************************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell.component.js ***! \***************************************************************************************/ /*! exports provided: TreeMapCellComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapCellComponent", function() { return TreeMapCellComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/color-utils */ "./node_modules/@swimlane/ngx-charts/release/utils/color-utils.js"); /* harmony import */ var _common_trim_label_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/trim-label.helper */ "./node_modules/@swimlane/ngx-charts/release/common/trim-label.helper.js"); /* harmony import */ var _utils_id__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TreeMapCellComponent = /** @class */ (function () { function TreeMapCellComponent(element) { this.gradient = false; this.animations = true; this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.initialized = false; this.element = element.nativeElement; } TreeMapCellComponent.prototype.ngOnChanges = function () { this.update(); this.valueFormatting = this.valueFormatting || (function (value) { return value.toLocaleString(); }); var labelFormatting = this.labelFormatting || (function (cell) { return Object(_common_trim_label_helper__WEBPACK_IMPORTED_MODULE_3__["trimLabel"])(cell.label, 55); }); var cellData = { data: this.data, label: this.label, value: this.value }; this.formattedValue = this.valueFormatting(cellData.value); this.formattedLabel = labelFormatting(cellData); this.gradientId = 'grad' + Object(_utils_id__WEBPACK_IMPORTED_MODULE_4__["id"])().toString(); this.gradientUrl = "url(#" + this.gradientId + ")"; this.gradientStops = this.getGradientStops(); }; TreeMapCellComponent.prototype.update = function () { if (this.initialized) { this.animateToCurrentForm(); } else { if (this.animations) { this.loadAnimation(); } this.initialized = true; } }; TreeMapCellComponent.prototype.loadAnimation = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.cell'); node .attr('opacity', 0) .attr('x', this.x) .attr('y', this.y); this.animateToCurrentForm(); }; TreeMapCellComponent.prototype.getTextColor = function () { return Object(_utils_color_utils__WEBPACK_IMPORTED_MODULE_2__["invertColor"])(this.fill); }; TreeMapCellComponent.prototype.animateToCurrentForm = function () { var node = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(this.element).select('.cell'); if (this.animations) { node .transition() .duration(750) .attr('opacity', 1) .attr('x', this.x) .attr('y', this.y) .attr('width', this.width) .attr('height', this.height); } else { node .attr('opacity', 1) .attr('x', this.x) .attr('y', this.y) .attr('width', this.width) .attr('height', this.height); } }; TreeMapCellComponent.prototype.onClick = function () { this.select.emit(this.data); }; TreeMapCellComponent.prototype.getGradientStops = function () { return [ { offset: 0, color: this.fill, opacity: 0.3 }, { offset: 100, color: this.fill, opacity: 1 } ]; }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "data", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "fill", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "x", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "y", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "width", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "height", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "label", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "value", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "valueType", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapCellComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapCellComponent.prototype, "animations", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TreeMapCellComponent.prototype, "select", void 0); TreeMapCellComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'g[ngx-charts-tree-map-cell]', template: "\n <svg:g>\n <defs *ngIf=\"gradient\">\n <svg:g ngx-charts-svg-linear-gradient orientation=\"vertical\" [name]=\"gradientId\" [stops]=\"gradientStops\" />\n </defs>\n <svg:rect\n [attr.fill]=\"gradient ? gradientUrl : fill\"\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n [attr.x]=\"x\"\n [attr.y]=\"y\"\n [style.cursor]=\"'pointer'\"\n class=\"cell\"\n (click)=\"onClick()\"\n />\n <svg:foreignObject\n *ngIf=\"width >= 70 && height >= 35\"\n [attr.x]=\"x\"\n [attr.y]=\"y\"\n [attr.width]=\"width\"\n [attr.height]=\"height\"\n class=\"treemap-label\"\n [style.pointer-events]=\"'none'\"\n >\n <xhtml:p [style.color]=\"getTextColor()\" [style.height]=\"height + 'px'\" [style.width]=\"width + 'px'\">\n <xhtml:span class=\"treemap-label\" [innerHTML]=\"formattedLabel\"> </xhtml:span>\n <xhtml:br />\n <xhtml:span\n *ngIf=\"animations\"\n class=\"treemap-val\"\n ngx-charts-count-up\n [countTo]=\"value\"\n [valueFormatting]=\"valueFormatting\"\n >\n </xhtml:span>\n <xhtml:span *ngIf=\"!animations\" class=\"treemap-val\">\n {{ formattedValue }}\n </xhtml:span>\n </xhtml:p>\n </svg:foreignObject>\n </svg:g>\n ", changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }), __metadata("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]) ], TreeMapCellComponent); return TreeMapCellComponent; }()); //# sourceMappingURL=tree-map-cell.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.component.js": /*!**********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.component.js ***! \**********************************************************************************/ /*! exports provided: TreeMapComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapComponent", function() { return TreeMapComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var d3_hierarchy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-hierarchy */ "./node_modules/d3-hierarchy/src/index.js"); /* harmony import */ var _common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/base-chart.component */ "./node_modules/@swimlane/ngx-charts/release/common/base-chart.component.js"); /* harmony import */ var _common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/view-dimensions.helper */ "./node_modules/@swimlane/ngx-charts/release/common/view-dimensions.helper.js"); /* harmony import */ var _common_color_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/color.helper */ "./node_modules/@swimlane/ngx-charts/release/common/color.helper.js"); var __extends = (undefined && undefined.__extends) || (function () { var extendStatics = function (d, b) { 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 extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TreeMapComponent = /** @class */ (function (_super) { __extends(TreeMapComponent, _super); function TreeMapComponent() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.tooltipDisabled = false; _this.gradient = false; _this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); _this.margin = [10, 10, 10, 10]; return _this; } TreeMapComponent.prototype.update = function () { _super.prototype.update.call(this); this.dims = Object(_common_view_dimensions_helper__WEBPACK_IMPORTED_MODULE_3__["calculateViewDimensions"])({ width: this.width, height: this.height, margins: this.margin }); this.domain = this.getDomain(); this.treemap = Object(d3_hierarchy__WEBPACK_IMPORTED_MODULE_1__["treemap"])().size([this.dims.width, this.dims.height]); var rootNode = { name: 'root', value: 0, isRoot: true }; var root = Object(d3_hierarchy__WEBPACK_IMPORTED_MODULE_1__["stratify"])() .id(function (d) { var label = d.name; if (label.constructor.name === 'Date') { label = label.toLocaleDateString(); } else { label = label.toLocaleString(); } return label; }) .parentId(function (d) { return (d.isRoot ? null : 'root'); })([rootNode].concat(this.results)) .sum(function (d) { return d.value; }); this.data = this.treemap(root); this.setColors(); this.transform = "translate(" + this.dims.xOffset + " , " + this.margin[0] + ")"; }; TreeMapComponent.prototype.getDomain = function () { return this.results.map(function (d) { return d.name; }); }; TreeMapComponent.prototype.onClick = function (data) { this.select.emit(data); }; TreeMapComponent.prototype.setColors = function () { this.colors = new _common_color_helper__WEBPACK_IMPORTED_MODULE_4__["ColorHelper"](this.scheme, 'ordinal', this.domain, this.customColors); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapComponent.prototype, "results", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapComponent.prototype, "tooltipDisabled", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapComponent.prototype, "valueFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Object) ], TreeMapComponent.prototype, "labelFormatting", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(), __metadata("design:type", Boolean) ], TreeMapComponent.prototype, "gradient", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", Object) ], TreeMapComponent.prototype, "select", void 0); __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"])('tooltipTemplate', { static: false }), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) ], TreeMapComponent.prototype, "tooltipTemplate", void 0); TreeMapComponent = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({ selector: 'ngx-charts-tree-map', template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"tree-map chart\">\n <svg:g\n ngx-charts-tree-map-cell-series\n [colors]=\"colors\"\n [data]=\"data\"\n [dims]=\"dims\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"labelFormatting\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ", styleUrls: ['./tree-map.component.css'], encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush }) ], TreeMapComponent); return TreeMapComponent; }(_common_base_chart_component__WEBPACK_IMPORTED_MODULE_2__["BaseChartComponent"])); //# sourceMappingURL=tree-map.component.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.module.js": /*!*******************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.module.js ***! \*******************************************************************************/ /*! exports provided: TreeMapModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeMapModule", function() { return TreeMapModule; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); /* harmony import */ var _common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/chart-common.module */ "./node_modules/@swimlane/ngx-charts/release/common/chart-common.module.js"); /* harmony import */ var _tree_map_cell_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tree-map-cell.component */ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell.component.js"); /* harmony import */ var _tree_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tree-map-cell-series.component */ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map-cell-series.component.js"); /* harmony import */ var _tree_map_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tree-map.component */ "./node_modules/@swimlane/ngx-charts/release/tree-map/tree-map.component.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var TreeMapModule = /** @class */ (function () { function TreeMapModule() { } TreeMapModule = __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({ imports: [_common_chart_common_module__WEBPACK_IMPORTED_MODULE_1__["ChartCommonModule"]], declarations: [ _tree_map_cell_component__WEBPACK_IMPORTED_MODULE_2__["TreeMapCellComponent"], _tree_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__["TreeMapCellSeriesComponent"], _tree_map_component__WEBPACK_IMPORTED_MODULE_4__["TreeMapComponent"] ], exports: [ _tree_map_cell_component__WEBPACK_IMPORTED_MODULE_2__["TreeMapCellComponent"], _tree_map_cell_series_component__WEBPACK_IMPORTED_MODULE_3__["TreeMapCellSeriesComponent"], _tree_map_component__WEBPACK_IMPORTED_MODULE_4__["TreeMapComponent"] ] }) ], TreeMapModule); return TreeMapModule; }()); //# sourceMappingURL=tree-map.module.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/color-sets.js": /*!***********************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/color-sets.js ***! \***********************************************************************/ /*! exports provided: colorSets */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "colorSets", function() { return colorSets; }); var colorSets = [ { name: 'vivid', selectable: true, group: 'Ordinal', domain: [ '#647c8a', '#3f51b5', '#2196f3', '#00b862', '#afdf0a', '#a7b61a', '#f3e562', '#ff9800', '#ff5722', '#ff4514' ] }, { name: 'natural', selectable: true, group: 'Ordinal', domain: [ '#bf9d76', '#e99450', '#d89f59', '#f2dfa7', '#a5d7c6', '#7794b1', '#afafaf', '#707160', '#ba9383', '#d9d5c3' ] }, { name: 'cool', selectable: true, group: 'Ordinal', domain: [ '#a8385d', '#7aa3e5', '#a27ea8', '#aae3f5', '#adcded', '#a95963', '#8796c0', '#7ed3ed', '#50abcc', '#ad6886' ] }, { name: 'fire', selectable: true, group: 'Ordinal', domain: [ '#ff3d00', '#bf360c', '#ff8f00', '#ff6f00', '#ff5722', '#e65100', '#ffca28', '#ffab00' ] }, { name: 'solar', selectable: true, group: 'Continuous', domain: [ '#fff8e1', '#ffecb3', '#ffe082', '#ffd54f', '#ffca28', '#ffc107', '#ffb300', '#ffa000', '#ff8f00', '#ff6f00' ] }, { name: 'air', selectable: true, group: 'Continuous', domain: [ '#e1f5fe', '#b3e5fc', '#81d4fa', '#4fc3f7', '#29b6f6', '#03a9f4', '#039be5', '#0288d1', '#0277bd', '#01579b' ] }, { name: 'aqua', selectable: true, group: 'Continuous', domain: [ '#e0f7fa', '#b2ebf2', '#80deea', '#4dd0e1', '#26c6da', '#00bcd4', '#00acc1', '#0097a7', '#00838f', '#006064' ] }, { name: 'flame', selectable: false, group: 'Ordinal', domain: [ '#A10A28', '#D3342D', '#EF6D49', '#FAAD67', '#FDDE90', '#DBED91', '#A9D770', '#6CBA67', '#2C9653', '#146738' ] }, { name: 'ocean', selectable: false, group: 'Ordinal', domain: [ '#1D68FB', '#33C0FC', '#4AFFFE', '#AFFFFF', '#FFFC63', '#FDBD2D', '#FC8A25', '#FA4F1E', '#FA141B', '#BA38D1' ] }, { name: 'forest', selectable: false, group: 'Ordinal', domain: [ '#55C22D', '#C1F33D', '#3CC099', '#AFFFFF', '#8CFC9D', '#76CFFA', '#BA60FB', '#EE6490', '#C42A1C', '#FC9F32' ] }, { name: 'horizon', selectable: false, group: 'Ordinal', domain: [ '#2597FB', '#65EBFD', '#99FDD0', '#FCEE4B', '#FEFCFA', '#FDD6E3', '#FCB1A8', '#EF6F7B', '#CB96E8', '#EFDEE0' ] }, { name: 'neons', selectable: false, group: 'Ordinal', domain: [ '#FF3333', '#FF33FF', '#CC33FF', '#0000FF', '#33CCFF', '#33FFFF', '#33FF66', '#CCFF33', '#FFCC00', '#FF6600' ] }, { name: 'picnic', selectable: false, group: 'Ordinal', domain: [ '#FAC51D', '#66BD6D', '#FAA026', '#29BB9C', '#E96B56', '#55ACD2', '#B7332F', '#2C83C9', '#9166B8', '#92E7E8' ] }, { name: 'night', selectable: false, group: 'Ordinal', domain: [ '#2B1B5A', '#501356', '#183356', '#28203F', '#391B3C', '#1E2B3C', '#120634', '#2D0432', '#051932', '#453080', '#75267D', '#2C507D', '#4B3880', '#752F7D', '#35547D' ] }, { name: 'nightLights', selectable: false, group: 'Ordinal', domain: [ '#4e31a5', '#9c25a7', '#3065ab', '#57468b', '#904497', '#46648b', '#32118d', '#a00fb3', '#1052a2', '#6e51bd', '#b63cc3', '#6c97cb', '#8671c1', '#b455be', '#7496c3' ] } ]; //# sourceMappingURL=color-sets.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/color-utils.js": /*!************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/color-utils.js ***! \************************************************************************/ /*! exports provided: hexToRgb, invertColor, shadeRGBColor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexToRgb", function() { return hexToRgb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "invertColor", function() { return invertColor; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shadeRGBColor", function() { return shadeRGBColor; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /** * Converts a hex to RGB * * @export * @param {string} hex * @returns {*} */ function hexToRgb(value) { // deprecated, use d3.color() return d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"](value); } /** * Accepts a color (string) and returns a inverted hex color (string) * http://stackoverflow.com/questions/9600295/automatically-change-text-color-to-assure-readability * * @export * @param {any} value * @returns {string} */ function invertColor(value) { var color = d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"](value); var r = color.r, g = color.g, b = color.b, opacity = color.opacity; if (opacity === 0) { return color.toString(); } var yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; var depth = (yiq >= 128) ? -.8 : .8; return shadeRGBColor(color, depth); } /** * Given a rgb, it will darken/lighten * http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors * * @export * @param {any} { r, g, b } * @param {any} percent * @returns */ function shadeRGBColor(_a, percent) { var r = _a.r, g = _a.g, b = _a.b; var t = percent < 0 ? 0 : 255; var p = percent < 0 ? percent * -1 : percent; r = (Math.round((t - r) * p) + r); g = (Math.round((t - g) * p) + g); b = (Math.round((t - b) * p) + b); return "rgb(" + r + ", " + g + ", " + b + ")"; } //# sourceMappingURL=color-utils.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/id.js": /*!***************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/id.js ***! \***************************************************************/ /*! exports provided: id */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "id", function() { return id; }); var cache = {}; /** * Generates a short id. * * Description: * A 4-character alphanumeric sequence (364 = 1.6 million) * This should only be used for JavaScript specific models. * http://stackoverflow.com/questions/6248666/how-to-generate-short-uid-like-ax4j9z-in-js * * Example: `ebgf` */ function id() { var newId = ('0000' + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4); // append a 'a' because neo gets mad newId = "a" + newId; // ensure not already used if (!cache[newId]) { cache[newId] = true; return newId; } return id(); } //# sourceMappingURL=id.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/index.js": /*!******************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/index.js ***! \******************************************************************/ /*! exports provided: id, colorSets, sortLinear, sortByDomain, sortByTime, throttle, throttleable, hexToRgb, invertColor, shadeRGBColor, VisibilityObserver, isDate, isNumber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _id__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./id */ "./node_modules/@swimlane/ngx-charts/release/utils/id.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "id", function() { return _id__WEBPACK_IMPORTED_MODULE_0__["id"]; }); /* harmony import */ var _color_sets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color-sets */ "./node_modules/@swimlane/ngx-charts/release/utils/color-sets.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "colorSets", function() { return _color_sets__WEBPACK_IMPORTED_MODULE_1__["colorSets"]; }); /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sort */ "./node_modules/@swimlane/ngx-charts/release/utils/sort.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortLinear", function() { return _sort__WEBPACK_IMPORTED_MODULE_2__["sortLinear"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortByDomain", function() { return _sort__WEBPACK_IMPORTED_MODULE_2__["sortByDomain"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sortByTime", function() { return _sort__WEBPACK_IMPORTED_MODULE_2__["sortByTime"]; }); /* harmony import */ var _throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./throttle */ "./node_modules/@swimlane/ngx-charts/release/utils/throttle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _throttle__WEBPACK_IMPORTED_MODULE_3__["throttle"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttleable", function() { return _throttle__WEBPACK_IMPORTED_MODULE_3__["throttleable"]; }); /* harmony import */ var _color_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./color-utils */ "./node_modules/@swimlane/ngx-charts/release/utils/color-utils.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hexToRgb", function() { return _color_utils__WEBPACK_IMPORTED_MODULE_4__["hexToRgb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "invertColor", function() { return _color_utils__WEBPACK_IMPORTED_MODULE_4__["invertColor"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shadeRGBColor", function() { return _color_utils__WEBPACK_IMPORTED_MODULE_4__["shadeRGBColor"]; }); /* harmony import */ var _visibility_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./visibility-observer */ "./node_modules/@swimlane/ngx-charts/release/utils/visibility-observer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VisibilityObserver", function() { return _visibility_observer__WEBPACK_IMPORTED_MODULE_5__["VisibilityObserver"]; }); /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./types */ "./node_modules/@swimlane/ngx-charts/release/utils/types.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isDate", function() { return _types__WEBPACK_IMPORTED_MODULE_6__["isDate"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isNumber", function() { return _types__WEBPACK_IMPORTED_MODULE_6__["isNumber"]; }); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/sort.js": /*!*****************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/sort.js ***! \*****************************************************************/ /*! exports provided: sortLinear, sortByDomain, sortByTime */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortLinear", function() { return sortLinear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortByDomain", function() { return sortByDomain; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortByTime", function() { return sortByTime; }); function sortLinear(data, property, direction) { if (direction === void 0) { direction = 'asc'; } return data.sort(function (a, b) { if (direction === 'asc') { return a[property] - b[property]; } else { return b[property] - a[property]; } }); } function sortByDomain(data, property, direction, domain) { if (direction === void 0) { direction = 'asc'; } return data.sort(function (a, b) { var aVal = a[property]; var bVal = b[property]; var aIdx = domain.indexOf(aVal); var bIdx = domain.indexOf(bVal); if (direction === 'asc') { return aIdx - bIdx; } else { return bIdx - aIdx; } }); } function sortByTime(data, property, direction) { if (direction === void 0) { direction = 'asc'; } return data.sort(function (a, b) { var aDate = a[property].getTime(); var bDate = b[property].getTime(); if (direction === 'asc') { if (aDate > bDate) return 1; if (bDate > aDate) return -1; return 0; } else { if (aDate > bDate) return -1; if (bDate > aDate) return 1; return 0; } }); } //# sourceMappingURL=sort.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/throttle.js": /*!*********************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/throttle.js ***! \*********************************************************************/ /*! exports provided: throttle, throttleable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return throttle; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleable", function() { return throttleable; }); /** * Throttle a function * * @export * @param {*} func * @param {number} wait * @param {*} [options] * @returns */ function throttle(func, wait, options) { options = options || {}; var context; var args; var result; var timeout = null; var previous = 0; function later() { previous = options.leading === false ? 0 : +new Date(); timeout = null; result = func.apply(context, args); } return function () { var now = +new Date(); if (!previous && options.leading === false) { previous = now; } var remaining = wait - (now - previous); context = this; args = arguments; if (remaining <= 0) { clearTimeout(timeout); timeout = null; previous = now; result = func.apply(context, args); } else if (!timeout && options.trailing !== false) { timeout = setTimeout(later, remaining); } return result; }; } /** * Throttle decorator * * class MyClass { * throttleable(10) * myFn() { ... } * } * * @export * @param {number} duration * @param {*} [options] * @returns */ function throttleable(duration, options) { return function innerDecorator(target, key, descriptor) { return { configurable: true, enumerable: descriptor.enumerable, get: function getter() { Object.defineProperty(this, key, { configurable: true, enumerable: descriptor.enumerable, value: throttle(descriptor.value, duration, options) }); return this[key]; } }; }; } //# sourceMappingURL=throttle.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/types.js": /*!******************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/types.js ***! \******************************************************************/ /*! exports provided: isDate, isNumber */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDate", function() { return isDate; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumber", function() { return isNumber; }); function isDate(value) { return toString.call(value) === '[object Date]'; } function isNumber(value) { return typeof value === 'number'; } //# sourceMappingURL=types.js.map /***/ }), /***/ "./node_modules/@swimlane/ngx-charts/release/utils/visibility-observer.js": /*!********************************************************************************!*\ !*** ./node_modules/@swimlane/ngx-charts/release/utils/visibility-observer.js ***! \********************************************************************************/ /*! exports provided: VisibilityObserver */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VisibilityObserver", function() { return VisibilityObserver; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js"); var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (undefined && undefined.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; /** * Visibility Observer */ var VisibilityObserver = /** @class */ (function () { function VisibilityObserver(element, zone) { this.element = element; this.zone = zone; this.visible = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.isVisible = false; this.runCheck(); } VisibilityObserver.prototype.destroy = function () { clearTimeout(this.timeout); }; VisibilityObserver.prototype.onVisibilityChange = function () { var _this = this; // trigger zone recalc for columns this.zone.run(function () { _this.isVisible = true; _this.visible.emit(true); }); }; VisibilityObserver.prototype.runCheck = function () { var _this = this; var check = function () { if (!_this.element) { return; } // https://davidwalsh.name/offsetheight-visibility var _a = _this.element.nativeElement, offsetHeight = _a.offsetHeight, offsetWidth = _a.offsetWidth; if (offsetHeight && offsetWidth) { clearTimeout(_this.timeout); _this.onVisibilityChange(); } else { clearTimeout(_this.timeout); _this.zone.runOutsideAngular(function () { _this.timeout = setTimeout(function () { return check(); }, 100); }); } }; this.zone.runOutsideAngular(function () { _this.timeout = setTimeout(function () { return check(); }); }); }; __decorate([ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(), __metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]) ], VisibilityObserver.prototype, "visible", void 0); return VisibilityObserver; }()); //# sourceMappingURL=visibility-observer.js.map /***/ }), /***/ "./node_modules/d3-array/src/array.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/array.js ***! \********************************************/ /*! exports provided: slice, map */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); var array = Array.prototype; var slice = array.slice; var map = array.map; /***/ }), /***/ "./node_modules/d3-array/src/ascending.js": /*!************************************************!*\ !*** ./node_modules/d3-array/src/ascending.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; }); /***/ }), /***/ "./node_modules/d3-array/src/bisect.js": /*!*********************************************!*\ !*** ./node_modules/d3-array/src/bisect.js ***! \*********************************************/ /*! exports provided: bisectRight, bisectLeft, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return bisectRight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return bisectLeft; }); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js"); var ascendingBisect = Object(_bisector__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; /* harmony default export */ __webpack_exports__["default"] = (bisectRight); /***/ }), /***/ "./node_modules/d3-array/src/bisector.js": /*!***********************************************!*\ !*** ./node_modules/d3-array/src/bisector.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(compare) { if (compare.length === 1) compare = ascendingComparator(compare); return { left: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid; } return lo; }, right: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1; } return lo; } }; }); function ascendingComparator(f) { return function(d, x) { return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x); }; } /***/ }), /***/ "./node_modules/d3-array/src/constant.js": /*!***********************************************!*\ !*** ./node_modules/d3-array/src/constant.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-array/src/cross.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/cross.js ***! \********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values0, values1, reduce) { var n0 = values0.length, n1 = values1.length, values = new Array(n0 * n1), i0, i1, i, value0; if (reduce == null) reduce = _pairs__WEBPACK_IMPORTED_MODULE_0__["pair"]; for (i0 = i = 0; i0 < n0; ++i0) { for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) { values[i] = reduce(value0, values1[i1]); } } return values; }); /***/ }), /***/ "./node_modules/d3-array/src/descending.js": /*!*************************************************!*\ !*** ./node_modules/d3-array/src/descending.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /***/ "./node_modules/d3-array/src/deviation.js": /*!************************************************!*\ !*** ./node_modules/d3-array/src/deviation.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js"); /* harmony default export */ __webpack_exports__["default"] = (function(array, f) { var v = Object(_variance__WEBPACK_IMPORTED_MODULE_0__["default"])(array, f); return v ? Math.sqrt(v) : v; }); /***/ }), /***/ "./node_modules/d3-array/src/extent.js": /*!*********************************************!*\ !*** ./node_modules/d3-array/src/extent.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, min, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } return [min, max]; }); /***/ }), /***/ "./node_modules/d3-array/src/histogram.js": /*!************************************************!*\ !*** ./node_modules/d3-array/src/histogram.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-array/src/array.js"); /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-array/src/constant.js"); /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js"); /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-array/src/identity.js"); /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js"); /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js"); /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var value = _identity__WEBPACK_IMPORTED_MODULE_4__["default"], domain = _extent__WEBPACK_IMPORTED_MODULE_3__["default"], threshold = _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__["default"]; function histogram(data) { var i, n = data.length, x, values = new Array(n); for (i = 0; i < n; ++i) { values[i] = value(data[i], i, data); } var xz = domain(values), x0 = xz[0], x1 = xz[1], tz = threshold(values, x0, x1); // Convert number of thresholds into uniform thresholds. if (!Array.isArray(tz)) { tz = Object(_ticks__WEBPACK_IMPORTED_MODULE_6__["tickStep"])(x0, x1, tz); tz = Object(_range__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive } // Remove any thresholds outside the domain. var m = tz.length; while (tz[0] <= x0) tz.shift(), --m; while (tz[m - 1] > x1) tz.pop(), --m; var bins = new Array(m + 1), bin; // Initialize bins. for (i = 0; i <= m; ++i) { bin = bins[i] = []; bin.x0 = i > 0 ? tz[i - 1] : x0; bin.x1 = i < m ? tz[i] : x1; } // Assign data to bins by value, ignoring any outside the domain. for (i = 0; i < n; ++i) { x = values[i]; if (x0 <= x && x <= x1) { bins[Object(_bisect__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]); } } return bins; } histogram.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value; }; histogram.domain = function(_) { return arguments.length ? (domain = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain; }; histogram.thresholds = function(_) { return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)) : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : threshold; }; return histogram; }); /***/ }), /***/ "./node_modules/d3-array/src/identity.js": /*!***********************************************!*\ !*** ./node_modules/d3-array/src/identity.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x; }); /***/ }), /***/ "./node_modules/d3-array/src/index.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/index.js ***! \********************************************/ /*! exports provided: bisect, bisectRight, bisectLeft, ascending, bisector, cross, descending, deviation, extent, histogram, thresholdFreedmanDiaconis, thresholdScott, thresholdSturges, max, mean, median, merge, min, pairs, permute, quantile, range, scan, shuffle, sum, ticks, tickIncrement, tickStep, transpose, variance, zip */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectRight"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return _bisect__WEBPACK_IMPORTED_MODULE_0__["bisectLeft"]; }); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return _ascending__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return _bisector__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cross */ "./node_modules/d3-array/src/cross.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return _cross__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-array/src/descending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return _descending__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deviation */ "./node_modules/d3-array/src/deviation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return _deviation__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return _extent__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _histogram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./histogram */ "./node_modules/d3-array/src/histogram.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return _histogram__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold/freedmanDiaconis */ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _threshold_scott__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold/scott */ "./node_modules/d3-array/src/threshold/scott.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return _threshold_scott__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _max__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./max */ "./node_modules/d3-array/src/max.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _max__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _mean__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mean */ "./node_modules/d3-array/src/mean.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return _mean__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _median__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./median */ "./node_modules/d3-array/src/median.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "median", function() { return _median__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-array/src/merge.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _merge__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _min__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _pairs__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _permute__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./permute */ "./node_modules/d3-array/src/permute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return _permute__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return _quantile__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _range__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./scan */ "./node_modules/d3-array/src/scan.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _scan__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _shuffle__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shuffle */ "./node_modules/d3-array/src/shuffle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return _shuffle__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-array/src/sum.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return _sum__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickIncrement"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return _ticks__WEBPACK_IMPORTED_MODULE_23__["tickStep"]; }); /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return _transpose__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return _variance__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _zip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./zip */ "./node_modules/d3-array/src/zip.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _zip__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /***/ }), /***/ "./node_modules/d3-array/src/max.js": /*!******************************************!*\ !*** ./node_modules/d3-array/src/max.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && value > max) { max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && value > max) { max = value; } } } } } return max; }); /***/ }), /***/ "./node_modules/d3-array/src/mean.js": /*!*******************************************!*\ !*** ./node_modules/d3-array/src/mean.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, m = n, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) sum += value; else --m; } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) sum += value; else --m; } } if (m) return sum / m; }); /***/ }), /***/ "./node_modules/d3-array/src/median.js": /*!*********************************************!*\ !*** ./node_modules/d3-array/src/median.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js"); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, numbers = []; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(values[i]))) { numbers.push(value); } } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_1__["default"])(valueof(values[i], i, values)))) { numbers.push(value); } } } return Object(_quantile__WEBPACK_IMPORTED_MODULE_2__["default"])(numbers.sort(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]), 0.5); }); /***/ }), /***/ "./node_modules/d3-array/src/merge.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/merge.js ***! \********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(arrays) { var n = arrays.length, m, i = -1, j = 0, merged, array; while (++i < n) j += arrays[i].length; merged = new Array(j); while (--n >= 0) { array = arrays[n]; m = array.length; while (--m >= 0) { merged[--j] = array[m]; } } return merged; }); /***/ }), /***/ "./node_modules/d3-array/src/min.js": /*!******************************************!*\ !*** ./node_modules/d3-array/src/min.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, min; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && min > value) { min = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && min > value) { min = value; } } } } } return min; }); /***/ }), /***/ "./node_modules/d3-array/src/number.js": /*!*********************************************!*\ !*** ./node_modules/d3-array/src/number.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x === null ? NaN : +x; }); /***/ }), /***/ "./node_modules/d3-array/src/pairs.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/pairs.js ***! \********************************************/ /*! exports provided: default, pair */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pair", function() { return pair; }); /* harmony default export */ __webpack_exports__["default"] = (function(array, f) { if (f == null) f = pair; var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n); while (i < n) pairs[i] = f(p, p = array[++i]); return pairs; }); function pair(a, b) { return [a, b]; } /***/ }), /***/ "./node_modules/d3-array/src/permute.js": /*!**********************************************!*\ !*** ./node_modules/d3-array/src/permute.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(array, indexes) { var i = indexes.length, permutes = new Array(i); while (i--) permutes[i] = array[indexes[i]]; return permutes; }); /***/ }), /***/ "./node_modules/d3-array/src/quantile.js": /*!***********************************************!*\ !*** ./node_modules/d3-array/src/quantile.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, p, valueof) { if (valueof == null) valueof = _number__WEBPACK_IMPORTED_MODULE_0__["default"]; if (!(n = values.length)) return; if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); if (p >= 1) return +valueof(values[n - 1], n - 1, values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values), value1 = +valueof(values[i0 + 1], i0 + 1, values); return value0 + (value1 - value0) * (i - i0); }); /***/ }), /***/ "./node_modules/d3-array/src/range.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/range.js ***! \********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, step) { start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n); while (++i < n) { range[i] = start + i * step; } return range; }); /***/ }), /***/ "./node_modules/d3-array/src/scan.js": /*!*******************************************!*\ !*** ./node_modules/d3-array/src/scan.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, compare) { if (!(n = values.length)) return; var n, i = 0, j = 0, xi, xj = values[j]; if (compare == null) compare = _ascending__WEBPACK_IMPORTED_MODULE_0__["default"]; while (++i < n) { if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) { xj = xi, j = i; } } if (compare(xj, xj) === 0) return j; }); /***/ }), /***/ "./node_modules/d3-array/src/shuffle.js": /*!**********************************************!*\ !*** ./node_modules/d3-array/src/shuffle.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(array, i0, i1) { var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0), t, i; while (m) { i = Math.random() * m-- | 0; t = array[m + i0]; array[m + i0] = array[i + i0]; array[i + i0] = t; } return array; }); /***/ }), /***/ "./node_modules/d3-array/src/sum.js": /*!******************************************!*\ !*** ./node_modules/d3-array/src/sum.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (value = +values[i]) sum += value; // Note: zero and null are equivalent. } } else { while (++i < n) { if (value = +valueof(values[i], i, values)) sum += value; } } return sum; }); /***/ }), /***/ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js": /*!*****************************************************************!*\ !*** ./node_modules/d3-array/src/threshold/freedmanDiaconis.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-array/src/array.js"); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ascending */ "./node_modules/d3-array/src/ascending.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../number */ "./node_modules/d3-array/src/number.js"); /* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../quantile */ "./node_modules/d3-array/src/quantile.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { values = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(values, _number__WEBPACK_IMPORTED_MODULE_2__["default"]).sort(_ascending__WEBPACK_IMPORTED_MODULE_1__["default"]); return Math.ceil((max - min) / (2 * (Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.75) - Object(_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.25)) * Math.pow(values.length, -1 / 3))); }); /***/ }), /***/ "./node_modules/d3-array/src/threshold/scott.js": /*!******************************************************!*\ !*** ./node_modules/d3-array/src/threshold/scott.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../deviation */ "./node_modules/d3-array/src/deviation.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, min, max) { return Math.ceil((max - min) / (3.5 * Object(_deviation__WEBPACK_IMPORTED_MODULE_0__["default"])(values) * Math.pow(values.length, -1 / 3))); }); /***/ }), /***/ "./node_modules/d3-array/src/threshold/sturges.js": /*!********************************************************!*\ !*** ./node_modules/d3-array/src/threshold/sturges.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(values) { return Math.ceil(Math.log(values.length) / Math.LN2) + 1; }); /***/ }), /***/ "./node_modules/d3-array/src/ticks.js": /*!********************************************!*\ !*** ./node_modules/d3-array/src/ticks.js ***! \********************************************/ /*! exports provided: default, tickIncrement, tickStep */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return tickIncrement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return tickStep; }); var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); /* harmony default export */ __webpack_exports__["default"] = (function(start, stop, count) { var reverse, i = -1, n, ticks, step; stop = +stop, start = +start, count = +count; if (start === stop && count > 0) return [start]; if (reverse = stop < start) n = start, start = stop, stop = n; if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return []; if (step > 0) { start = Math.ceil(start / step); stop = Math.floor(stop / step); ticks = new Array(n = Math.ceil(stop - start + 1)); while (++i < n) ticks[i] = (start + i) * step; } else { start = Math.floor(start * step); stop = Math.ceil(stop * step); ticks = new Array(n = Math.ceil(start - stop + 1)); while (++i < n) ticks[i] = (start - i) / step; } if (reverse) ticks.reverse(); return ticks; }); function tickIncrement(start, stop, count) { var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1); } function tickStep(start, stop, count) { var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; if (error >= e10) step1 *= 10; else if (error >= e5) step1 *= 5; else if (error >= e2) step1 *= 2; return stop < start ? -step1 : step1; } /***/ }), /***/ "./node_modules/d3-array/src/transpose.js": /*!************************************************!*\ !*** ./node_modules/d3-array/src/transpose.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js"); /* harmony default export */ __webpack_exports__["default"] = (function(matrix) { if (!(n = matrix.length)) return []; for (var i = -1, m = Object(_min__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) { for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { row[j] = matrix[j][i]; } } return transpose; }); function length(d) { return d.length; } /***/ }), /***/ "./node_modules/d3-array/src/variance.js": /*!***********************************************!*\ !*** ./node_modules/d3-array/src/variance.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values, valueof) { var n = values.length, m = 0, i = -1, mean = 0, value, delta, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } else { while (++i < n) { if (!isNaN(value = Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } if (m > 1) return sum / (m - 1); }); /***/ }), /***/ "./node_modules/d3-array/src/zip.js": /*!******************************************!*\ !*** ./node_modules/d3-array/src/zip.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return Object(_transpose__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments); }); /***/ }), /***/ "./node_modules/d3-brush/src/brush.js": /*!********************************************!*\ !*** ./node_modules/d3-brush/src/brush.js ***! \********************************************/ /*! exports provided: brushSelection, brushX, brushY, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return brushSelection; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return brushX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return brushY; }); /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/index.js"); /* harmony import */ var d3_drag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-drag */ "./node_modules/d3-drag/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var d3_transition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-transition */ "./node_modules/d3-transition/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-brush/src/constant.js"); /* harmony import */ var _event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./event */ "./node_modules/d3-brush/src/event.js"); /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-brush/src/noevent.js"); var MODE_DRAG = {name: "drag"}, MODE_SPACE = {name: "space"}, MODE_HANDLE = {name: "handle"}, MODE_CENTER = {name: "center"}; var X = { name: "x", handles: ["e", "w"].map(type), input: function(x, e) { return x && [[x[0], e[0][1]], [x[1], e[1][1]]]; }, output: function(xy) { return xy && [xy[0][0], xy[1][0]]; } }; var Y = { name: "y", handles: ["n", "s"].map(type), input: function(y, e) { return y && [[e[0][0], y[0]], [e[1][0], y[1]]]; }, output: function(xy) { return xy && [xy[0][1], xy[1][1]]; } }; var XY = { name: "xy", handles: ["n", "e", "s", "w", "nw", "ne", "se", "sw"].map(type), input: function(xy) { return xy; }, output: function(xy) { return xy; } }; var cursors = { overlay: "crosshair", selection: "move", n: "ns-resize", e: "ew-resize", s: "ns-resize", w: "ew-resize", nw: "nwse-resize", ne: "nesw-resize", se: "nwse-resize", sw: "nesw-resize" }; var flipX = { e: "w", w: "e", nw: "ne", ne: "nw", se: "sw", sw: "se" }; var flipY = { n: "s", s: "n", nw: "sw", ne: "se", se: "ne", sw: "nw" }; var signsX = { overlay: +1, selection: +1, n: null, e: +1, s: null, w: -1, nw: -1, ne: +1, se: +1, sw: -1 }; var signsY = { overlay: +1, selection: +1, n: -1, e: null, s: +1, w: null, nw: -1, ne: -1, se: +1, sw: +1 }; function type(t) { return {type: t}; } // Ignore right-click, since that should open the context menu. function defaultFilter() { return !d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].button; } function defaultExtent() { var svg = this.ownerSVGElement || this; return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]]; } // Like d3.local, but with the name “__brush” rather than auto-generated. function local(node) { while (!node.__brush) if (!(node = node.parentNode)) return; return node.__brush; } function empty(extent) { return extent[0][0] === extent[1][0] || extent[0][1] === extent[1][1]; } function brushSelection(node) { var state = node.__brush; return state ? state.dim.output(state.selection) : null; } function brushX() { return brush(X); } function brushY() { return brush(Y); } /* harmony default export */ __webpack_exports__["default"] = (function() { return brush(XY); }); function brush(dim) { var extent = defaultExtent, filter = defaultFilter, listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])(brush, "start", "brush", "end"), handleSize = 6, touchending; function brush(group) { var overlay = group .property("__brush", initialize) .selectAll(".overlay") .data([type("overlay")]); overlay.enter().append("rect") .attr("class", "overlay") .attr("pointer-events", "all") .attr("cursor", cursors.overlay) .merge(overlay) .each(function() { var extent = local(this).extent; Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this) .attr("x", extent[0][0]) .attr("y", extent[0][1]) .attr("width", extent[1][0] - extent[0][0]) .attr("height", extent[1][1] - extent[0][1]); }); group.selectAll(".selection") .data([type("selection")]) .enter().append("rect") .attr("class", "selection") .attr("cursor", cursors.selection) .attr("fill", "#777") .attr("fill-opacity", 0.3) .attr("stroke", "#fff") .attr("shape-rendering", "crispEdges"); var handle = group.selectAll(".handle") .data(dim.handles, function(d) { return d.type; }); handle.exit().remove(); handle.enter().append("rect") .attr("class", function(d) { return "handle handle--" + d.type; }) .attr("cursor", function(d) { return cursors[d.type]; }); group .each(redraw) .attr("fill", "none") .attr("pointer-events", "all") .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)") .on("mousedown.brush touchstart.brush", started); } brush.move = function(group, selection) { if (group.selection) { group .on("start.brush", function() { emitter(this, arguments).beforestart().start(); }) .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); }) .tween("brush", function() { var that = this, state = that.__brush, emit = emitter(that, arguments), selection0 = state.selection, selection1 = dim.input(typeof selection === "function" ? selection.apply(this, arguments) : selection, state.extent), i = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["interpolate"])(selection0, selection1); function tween(t) { state.selection = t === 1 && empty(selection1) ? null : i(t); redraw.call(that); emit.brush(); } return selection0 && selection1 ? tween : tween(1); }); } else { group .each(function() { var that = this, args = arguments, state = that.__brush, selection1 = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent), emit = emitter(that, args).beforestart(); Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that); state.selection = selection1 == null || empty(selection1) ? null : selection1; redraw.call(that); emit.start().brush().end(); }); } }; function redraw() { var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(this), selection = local(this).selection; if (selection) { group.selectAll(".selection") .style("display", null) .attr("x", selection[0][0]) .attr("y", selection[0][1]) .attr("width", selection[1][0] - selection[0][0]) .attr("height", selection[1][1] - selection[0][1]); group.selectAll(".handle") .style("display", null) .attr("x", function(d) { return d.type[d.type.length - 1] === "e" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; }) .attr("y", function(d) { return d.type[0] === "s" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; }) .attr("width", function(d) { return d.type === "n" || d.type === "s" ? selection[1][0] - selection[0][0] + handleSize : handleSize; }) .attr("height", function(d) { return d.type === "e" || d.type === "w" ? selection[1][1] - selection[0][1] + handleSize : handleSize; }); } else { group.selectAll(".selection,.handle") .style("display", "none") .attr("x", null) .attr("y", null) .attr("width", null) .attr("height", null); } } function emitter(that, args) { return that.__brush.emitter || new Emitter(that, args); } function Emitter(that, args) { this.that = that; this.args = args; this.state = that.__brush; this.active = 0; } Emitter.prototype = { beforestart: function() { if (++this.active === 1) this.state.emitter = this, this.starting = true; return this; }, start: function() { if (this.starting) this.starting = false, this.emit("start"); return this; }, brush: function() { this.emit("brush"); return this; }, end: function() { if (--this.active === 0) delete this.state.emitter, this.emit("end"); return this; }, emit: function(type) { Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_6__["default"](brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]); } }; function started() { if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) { if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].changedTouches.length < d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches.length) return Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])(); } else if (touchending) return; if (!filter.apply(this, arguments)) return; var that = this, type = d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].target.__data__.type, mode = (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].metaKey ? type = "overlay" : type) === "selection" ? MODE_DRAG : (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey ? MODE_CENTER : MODE_HANDLE), signX = dim === Y ? null : signsX[type], signY = dim === X ? null : signsY[type], state = local(that), extent = state.extent, selection = state.selection, W = extent[0][0], w0, w1, N = extent[0][1], n0, n1, E = extent[1][0], e0, e1, S = extent[1][1], s0, s1, dx, dy, moving, shifting = signX && signY && d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].shiftKey, lockX, lockY, point0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(that), point = point0, emit = emitter(that, arguments).beforestart(); if (type === "overlay") { state.selection = selection = [ [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]], [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0] ]; } else { w0 = selection[0][0]; n0 = selection[0][1]; e0 = selection[1][0]; s0 = selection[1][1]; } w1 = w0; n1 = n0; e1 = e0; s1 = s0; var group = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(that) .attr("pointer-events", "none"); var overlay = group.selectAll(".overlay") .attr("cursor", cursors[type]); if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) { group .on("touchmove.brush", moved, true) .on("touchend.brush touchcancel.brush", ended, true); } else { var view = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view) .on("keydown.brush", keydowned, true) .on("keyup.brush", keyupped, true) .on("mousemove.brush", moved, true) .on("mouseup.brush", ended, true); Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragDisable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view); } Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])(); Object(d3_transition__WEBPACK_IMPORTED_MODULE_4__["interrupt"])(that); redraw.call(that); emit.start(); function moved() { var point1 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_3__["mouse"])(that); if (shifting && !lockX && !lockY) { if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true; else lockX = true; } point = point1; moving = true; Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])(); move(); } function move() { var t; dx = point[0] - point0[0]; dy = point[1] - point0[1]; switch (mode) { case MODE_SPACE: case MODE_DRAG: { if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx; if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy; break; } case MODE_HANDLE: { if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0; else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx; if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0; else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy; break; } case MODE_CENTER: { if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX)); if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY)); break; } } if (e1 < w1) { signX *= -1; t = w0, w0 = e0, e0 = t; t = w1, w1 = e1, e1 = t; if (type in flipX) overlay.attr("cursor", cursors[type = flipX[type]]); } if (s1 < n1) { signY *= -1; t = n0, n0 = s0, s0 = t; t = n1, n1 = s1, s1 = t; if (type in flipY) overlay.attr("cursor", cursors[type = flipY[type]]); } if (state.selection) selection = state.selection; // May be set by brush.move! if (lockX) w1 = selection[0][0], e1 = selection[1][0]; if (lockY) n1 = selection[0][1], s1 = selection[1][1]; if (selection[0][0] !== w1 || selection[0][1] !== n1 || selection[1][0] !== e1 || selection[1][1] !== s1) { state.selection = [[w1, n1], [e1, s1]]; redraw.call(that); emit.brush(); } } function ended() { Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["nopropagation"])(); if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches) { if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].touches.length) return; if (touchending) clearTimeout(touchending); touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed! group.on("touchmove.brush touchend.brush touchcancel.brush", null); } else { Object(d3_drag__WEBPACK_IMPORTED_MODULE_1__["dragEnable"])(d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].view, moving); view.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null); } group.attr("pointer-events", "all"); overlay.attr("cursor", cursors.overlay); if (state.selection) selection = state.selection; // May be set by brush.move (on start)! if (empty(selection)) state.selection = null, redraw.call(that); emit.end(); } function keydowned() { switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) { case 16: { // SHIFT shifting = signX && signY; break; } case 18: { // ALT if (mode === MODE_HANDLE) { if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX; if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY; mode = MODE_CENTER; move(); } break; } case 32: { // SPACE; takes priority over ALT if (mode === MODE_HANDLE || mode === MODE_CENTER) { if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx; if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy; mode = MODE_SPACE; overlay.attr("cursor", cursors.selection); move(); } break; } default: return; } Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])(); } function keyupped() { switch (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].keyCode) { case 16: { // SHIFT if (shifting) { lockX = lockY = shifting = false; move(); } break; } case 18: { // ALT if (mode === MODE_CENTER) { if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1; if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1; mode = MODE_HANDLE; move(); } break; } case 32: { // SPACE if (mode === MODE_SPACE) { if (d3_selection__WEBPACK_IMPORTED_MODULE_3__["event"].altKey) { if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX; if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY; mode = MODE_CENTER; } else { if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1; if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1; mode = MODE_HANDLE; } overlay.attr("cursor", cursors[type]); move(); } break; } default: return; } Object(_noevent__WEBPACK_IMPORTED_MODULE_7__["default"])(); } } function initialize() { var state = this.__brush || {selection: null}; state.extent = extent.apply(this, arguments); state.dim = dim; return state; } brush.extent = function(_) { return arguments.length ? (extent = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), brush) : extent; }; brush.filter = function(_) { return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_5__["default"])(!!_), brush) : filter; }; brush.handleSize = function(_) { return arguments.length ? (handleSize = +_, brush) : handleSize; }; brush.on = function() { var value = listeners.on.apply(listeners, arguments); return value === listeners ? brush : value; }; return brush; } /***/ }), /***/ "./node_modules/d3-brush/src/constant.js": /*!***********************************************!*\ !*** ./node_modules/d3-brush/src/constant.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-brush/src/event.js": /*!********************************************!*\ !*** ./node_modules/d3-brush/src/event.js ***! \********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(target, type, selection) { this.target = target; this.type = type; this.selection = selection; }); /***/ }), /***/ "./node_modules/d3-brush/src/index.js": /*!********************************************!*\ !*** ./node_modules/d3-brush/src/index.js ***! \********************************************/ /*! exports provided: brush, brushX, brushY, brushSelection */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _brush__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./brush */ "./node_modules/d3-brush/src/brush.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brush", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushX", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushY", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushY"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "brushSelection", function() { return _brush__WEBPACK_IMPORTED_MODULE_0__["brushSelection"]; }); /***/ }), /***/ "./node_modules/d3-brush/src/noevent.js": /*!**********************************************!*\ !*** ./node_modules/d3-brush/src/noevent.js ***! \**********************************************/ /*! exports provided: nopropagation, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; }); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); function nopropagation() { d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation(); } /* harmony default export */ __webpack_exports__["default"] = (function() { d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault(); d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation(); }); /***/ }), /***/ "./node_modules/d3-collection/index.js": /*!*********************************************!*\ !*** ./node_modules/d3-collection/index.js ***! \*********************************************/ /*! exports provided: nest, set, map, keys, values, entries */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_nest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/nest */ "./node_modules/d3-collection/src/nest.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return _src_nest__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _src_set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/set */ "./node_modules/d3-collection/src/set.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "set", function() { return _src_set__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _src_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/map */ "./node_modules/d3-collection/src/map.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _src_map__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _src_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/keys */ "./node_modules/d3-collection/src/keys.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return _src_keys__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _src_values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/values */ "./node_modules/d3-collection/src/values.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "values", function() { return _src_values__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _src_entries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/entries */ "./node_modules/d3-collection/src/entries.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return _src_entries__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /***/ }), /***/ "./node_modules/d3-collection/src/entries.js": /*!***************************************************!*\ !*** ./node_modules/d3-collection/src/entries.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var entries = []; for (var key in map) entries.push({key: key, value: map[key]}); return entries; }); /***/ }), /***/ "./node_modules/d3-collection/src/keys.js": /*!************************************************!*\ !*** ./node_modules/d3-collection/src/keys.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var keys = []; for (var key in map) keys.push(key); return keys; }); /***/ }), /***/ "./node_modules/d3-collection/src/map.js": /*!***********************************************!*\ !*** ./node_modules/d3-collection/src/map.js ***! \***********************************************/ /*! exports provided: prefix, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; }); var prefix = "$"; function Map() {} Map.prototype = map.prototype = { constructor: Map, has: function(key) { return (prefix + key) in this; }, get: function(key) { return this[prefix + key]; }, set: function(key, value) { this[prefix + key] = value; return this; }, remove: function(key) { var property = prefix + key; return property in this && delete this[property]; }, clear: function() { for (var property in this) if (property[0] === prefix) delete this[property]; }, keys: function() { var keys = []; for (var property in this) if (property[0] === prefix) keys.push(property.slice(1)); return keys; }, values: function() { var values = []; for (var property in this) if (property[0] === prefix) values.push(this[property]); return values; }, entries: function() { var entries = []; for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]}); return entries; }, size: function() { var size = 0; for (var property in this) if (property[0] === prefix) ++size; return size; }, empty: function() { for (var property in this) if (property[0] === prefix) return false; return true; }, each: function(f) { for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this); } }; function map(object, f) { var map = new Map; // Copy constructor. if (object instanceof Map) object.each(function(value, key) { map.set(key, value); }); // Index array by numeric index or specified key function. else if (Array.isArray(object)) { var i = -1, n = object.length, o; if (f == null) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f(o = object[i], i, object), o); } // Convert object to map. else if (object) for (var key in object) map.set(key, object[key]); return map; } /* harmony default export */ __webpack_exports__["default"] = (map); /***/ }), /***/ "./node_modules/d3-collection/src/nest.js": /*!************************************************!*\ !*** ./node_modules/d3-collection/src/nest.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var keys = [], sortKeys = [], sortValues, rollup, nest; function apply(array, depth, createResult, setResult) { if (depth >= keys.length) { if (sortValues != null) array.sort(sortValues); return rollup != null ? rollup(array) : array; } var i = -1, n = array.length, key = keys[depth++], keyValue, value, valuesByKey = Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(), values, result = createResult(); while (++i < n) { if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) { values.push(value); } else { valuesByKey.set(keyValue, [value]); } } valuesByKey.each(function(values, key) { setResult(result, key, apply(values, depth, createResult, setResult)); }); return result; } function entries(map, depth) { if (++depth > keys.length) return map; var array, sortKey = sortKeys[depth - 1]; if (rollup != null && depth >= keys.length) array = map.entries(); else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); }); return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array; } return nest = { object: function(array) { return apply(array, 0, createObject, setObject); }, map: function(array) { return apply(array, 0, createMap, setMap); }, entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); }, key: function(d) { keys.push(d); return nest; }, sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; }, sortValues: function(order) { sortValues = order; return nest; }, rollup: function(f) { rollup = f; return nest; } }; }); function createObject() { return {}; } function setObject(object, key, value) { object[key] = value; } function createMap() { return Object(_map__WEBPACK_IMPORTED_MODULE_0__["default"])(); } function setMap(map, key, value) { map.set(key, value); } /***/ }), /***/ "./node_modules/d3-collection/src/set.js": /*!***********************************************!*\ !*** ./node_modules/d3-collection/src/set.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js"); function Set() {} var proto = _map__WEBPACK_IMPORTED_MODULE_0__["default"].prototype; Set.prototype = set.prototype = { constructor: Set, has: proto.has, add: function(value) { value += ""; this[_map__WEBPACK_IMPORTED_MODULE_0__["prefix"] + value] = value; return this; }, remove: proto.remove, clear: proto.clear, values: proto.keys, size: proto.size, empty: proto.empty, each: proto.each }; function set(object, f) { var set = new Set; // Copy constructor. if (object instanceof Set) object.each(function(value) { set.add(value); }); // Otherwise, assume it’s an array. else if (object) { var i = -1, n = object.length; if (f == null) while (++i < n) set.add(object[i]); else while (++i < n) set.add(f(object[i], i, object)); } return set; } /* harmony default export */ __webpack_exports__["default"] = (set); /***/ }), /***/ "./node_modules/d3-collection/src/values.js": /*!**************************************************!*\ !*** ./node_modules/d3-collection/src/values.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(map) { var values = []; for (var key in map) values.push(map[key]); return values; }); /***/ }), /***/ "./node_modules/d3-color/src/color.js": /*!********************************************!*\ !*** ./node_modules/d3-color/src/color.js ***! \********************************************/ /*! exports provided: Color, darker, brighter, default, rgbConvert, rgb, Rgb, hslConvert, hsl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color", function() { return Color; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darker", function() { return darker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "brighter", function() { return brighter; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return color; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbConvert", function() { return rgbConvert; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return rgb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rgb", function() { return Rgb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslConvert", function() { return hslConvert; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return hsl; }); /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js"); function Color() {} var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex3 = /^#([0-9a-f]{3})$/, reHex6 = /^#([0-9a-f]{6})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); var named = { aliceblue: 0xf0f8ff, antiquewhite: 0xfaebd7, aqua: 0x00ffff, aquamarine: 0x7fffd4, azure: 0xf0ffff, beige: 0xf5f5dc, bisque: 0xffe4c4, black: 0x000000, blanchedalmond: 0xffebcd, blue: 0x0000ff, blueviolet: 0x8a2be2, brown: 0xa52a2a, burlywood: 0xdeb887, cadetblue: 0x5f9ea0, chartreuse: 0x7fff00, chocolate: 0xd2691e, coral: 0xff7f50, cornflowerblue: 0x6495ed, cornsilk: 0xfff8dc, crimson: 0xdc143c, cyan: 0x00ffff, darkblue: 0x00008b, darkcyan: 0x008b8b, darkgoldenrod: 0xb8860b, darkgray: 0xa9a9a9, darkgreen: 0x006400, darkgrey: 0xa9a9a9, darkkhaki: 0xbdb76b, darkmagenta: 0x8b008b, darkolivegreen: 0x556b2f, darkorange: 0xff8c00, darkorchid: 0x9932cc, darkred: 0x8b0000, darksalmon: 0xe9967a, darkseagreen: 0x8fbc8f, darkslateblue: 0x483d8b, darkslategray: 0x2f4f4f, darkslategrey: 0x2f4f4f, darkturquoise: 0x00ced1, darkviolet: 0x9400d3, deeppink: 0xff1493, deepskyblue: 0x00bfff, dimgray: 0x696969, dimgrey: 0x696969, dodgerblue: 0x1e90ff, firebrick: 0xb22222, floralwhite: 0xfffaf0, forestgreen: 0x228b22, fuchsia: 0xff00ff, gainsboro: 0xdcdcdc, ghostwhite: 0xf8f8ff, gold: 0xffd700, goldenrod: 0xdaa520, gray: 0x808080, green: 0x008000, greenyellow: 0xadff2f, grey: 0x808080, honeydew: 0xf0fff0, hotpink: 0xff69b4, indianred: 0xcd5c5c, indigo: 0x4b0082, ivory: 0xfffff0, khaki: 0xf0e68c, lavender: 0xe6e6fa, lavenderblush: 0xfff0f5, lawngreen: 0x7cfc00, lemonchiffon: 0xfffacd, lightblue: 0xadd8e6, lightcoral: 0xf08080, lightcyan: 0xe0ffff, lightgoldenrodyellow: 0xfafad2, lightgray: 0xd3d3d3, lightgreen: 0x90ee90, lightgrey: 0xd3d3d3, lightpink: 0xffb6c1, lightsalmon: 0xffa07a, lightseagreen: 0x20b2aa, lightskyblue: 0x87cefa, lightslategray: 0x778899, lightslategrey: 0x778899, lightsteelblue: 0xb0c4de, lightyellow: 0xffffe0, lime: 0x00ff00, limegreen: 0x32cd32, linen: 0xfaf0e6, magenta: 0xff00ff, maroon: 0x800000, mediumaquamarine: 0x66cdaa, mediumblue: 0x0000cd, mediumorchid: 0xba55d3, mediumpurple: 0x9370db, mediumseagreen: 0x3cb371, mediumslateblue: 0x7b68ee, mediumspringgreen: 0x00fa9a, mediumturquoise: 0x48d1cc, mediumvioletred: 0xc71585, midnightblue: 0x191970, mintcream: 0xf5fffa, mistyrose: 0xffe4e1, moccasin: 0xffe4b5, navajowhite: 0xffdead, navy: 0x000080, oldlace: 0xfdf5e6, olive: 0x808000, olivedrab: 0x6b8e23, orange: 0xffa500, orangered: 0xff4500, orchid: 0xda70d6, palegoldenrod: 0xeee8aa, palegreen: 0x98fb98, paleturquoise: 0xafeeee, palevioletred: 0xdb7093, papayawhip: 0xffefd5, peachpuff: 0xffdab9, peru: 0xcd853f, pink: 0xffc0cb, plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 0x800080, rebeccapurple: 0x663399, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 0x4169e1, saddlebrown: 0x8b4513, salmon: 0xfa8072, sandybrown: 0xf4a460, seagreen: 0x2e8b57, seashell: 0xfff5ee, sienna: 0xa0522d, silver: 0xc0c0c0, skyblue: 0x87ceeb, slateblue: 0x6a5acd, slategray: 0x708090, slategrey: 0x708090, snow: 0xfffafa, springgreen: 0x00ff7f, steelblue: 0x4682b4, tan: 0xd2b48c, teal: 0x008080, thistle: 0xd8bfd8, tomato: 0xff6347, turquoise: 0x40e0d0, violet: 0xee82ee, wheat: 0xf5deb3, white: 0xffffff, whitesmoke: 0xf5f5f5, yellow: 0xffff00, yellowgreen: 0x9acd32 }; Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Color, color, { displayable: function() { return this.rgb().displayable(); }, hex: function() { return this.rgb().hex(); }, toString: function() { return this.rgb() + ""; } }); function color(format) { var m; format = (format + "").trim().toLowerCase(); return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00 : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000 : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null; } function rgbn(n) { return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); } function rgba(r, g, b, a) { if (a <= 0) r = g = b = NaN; return new Rgb(r, g, b, a); } function rgbConvert(o) { if (!(o instanceof Color)) o = color(o); if (!o) return new Rgb; o = o.rgb(); return new Rgb(o.r, o.g, o.b, o.opacity); } function rgb(r, g, b, opacity) { return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); } function Rgb(r, g, b, opacity) { this.r = +r; this.g = +g; this.b = +b; this.opacity = +opacity; } Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Rgb, rgb, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, rgb: function() { return this; }, displayable: function() { return (-0.5 <= this.r && this.r < 255.5) && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: function() { return "#" + hex(this.r) + hex(this.g) + hex(this.b); }, toString: function() { var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")"); } })); function hex(value) { value = Math.max(0, Math.min(255, Math.round(value) || 0)); return (value < 16 ? "0" : "") + value.toString(16); } function hsla(h, s, l, a) { if (a <= 0) h = s = l = NaN; else if (l <= 0 || l >= 1) h = s = NaN; else if (s <= 0) h = NaN; return new Hsl(h, s, l, a); } function hslConvert(o) { if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); if (!(o instanceof Color)) o = color(o); if (!o) return new Hsl; if (o instanceof Hsl) return o; o = o.rgb(); var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; if (s) { if (r === max) h = (g - b) / s + (g < b) * 6; else if (g === max) h = (b - r) / s + 2; else h = (r - g) / s + 4; s /= l < 0.5 ? max + min : 2 - max - min; h *= 60; } else { s = l > 0 && l < 1 ? 0 : h; } return new Hsl(h, s, l, o.opacity); } function hsl(h, s, l, opacity) { return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); } function Hsl(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Hsl, hsl, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2; return new Rgb( hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity ); }, displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); } })); /* From FvD 13.37, CSS Color Module Level 3 */ function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; } /***/ }), /***/ "./node_modules/d3-color/src/cubehelix.js": /*!************************************************!*\ !*** ./node_modules/d3-color/src/cubehelix.js ***! \************************************************/ /*! exports provided: default, Cubehelix */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return cubehelix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cubehelix", function() { return Cubehelix; }); /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js"); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-color/src/math.js"); var A = -0.14861, B = +1.78277, C = -0.29227, D = -0.90649, E = +1.97294, ED = E * D, EB = E * B, BC_DA = B * C - D * A; function cubehelixConvert(o) { if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); if (!(o instanceof _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o); var r = o.r / 255, g = o.g / 255, b = o.b / 255, l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), bl = b - l, k = (E * (g - l) - C * bl) / D, s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 h = s ? Math.atan2(k, bl) * _math__WEBPACK_IMPORTED_MODULE_2__["rad2deg"] - 120 : NaN; return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); } function cubehelix(h, s, l, opacity) { return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); } function Cubehelix(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Cubehelix, cubehelix, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { k = k == null ? _color__WEBPACK_IMPORTED_MODULE_1__["brighter"] : Math.pow(_color__WEBPACK_IMPORTED_MODULE_1__["brighter"], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? _color__WEBPACK_IMPORTED_MODULE_1__["darker"] : Math.pow(_color__WEBPACK_IMPORTED_MODULE_1__["darker"], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = isNaN(this.h) ? 0 : (this.h + 120) * _math__WEBPACK_IMPORTED_MODULE_2__["deg2rad"], l = +this.l, a = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh = Math.cos(h), sinh = Math.sin(h); return new _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"]( 255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity ); } })); /***/ }), /***/ "./node_modules/d3-color/src/define.js": /*!*********************************************!*\ !*** ./node_modules/d3-color/src/define.js ***! \*********************************************/ /*! exports provided: default, extend */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; }); /* harmony default export */ __webpack_exports__["default"] = (function(constructor, factory, prototype) { constructor.prototype = factory.prototype = prototype; prototype.constructor = constructor; }); function extend(parent, definition) { var prototype = Object.create(parent.prototype); for (var key in definition) prototype[key] = definition[key]; return prototype; } /***/ }), /***/ "./node_modules/d3-color/src/index.js": /*!********************************************!*\ !*** ./node_modules/d3-color/src/index.js ***! \********************************************/ /*! exports provided: color, rgb, hsl, lab, hcl, lch, gray, cubehelix */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "color", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["rgb"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return _color__WEBPACK_IMPORTED_MODULE_0__["hsl"]; }); /* harmony import */ var _lab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lab */ "./node_modules/d3-color/src/lab.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["hcl"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["lch"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return _lab__WEBPACK_IMPORTED_MODULE_1__["gray"]; }); /* harmony import */ var _cubehelix__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubehelix */ "./node_modules/d3-color/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /***/ }), /***/ "./node_modules/d3-color/src/lab.js": /*!******************************************!*\ !*** ./node_modules/d3-color/src/lab.js ***! \******************************************/ /*! exports provided: gray, default, Lab, lch, hcl, Hcl */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return gray; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lab", function() { return Lab; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return lch; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return hcl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hcl", function() { return Hcl; }); /* harmony import */ var _define__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define */ "./node_modules/d3-color/src/define.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-color/src/color.js"); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-color/src/math.js"); // https://observablehq.com/@mbostock/lab-and-rgb var K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0 = 4 / 29, t1 = 6 / 29, t2 = 3 * t1 * t1, t3 = t1 * t1 * t1; function labConvert(o) { if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); if (o instanceof Hcl) return hcl2lab(o); if (!(o instanceof _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"])) o = Object(_color__WEBPACK_IMPORTED_MODULE_1__["rgbConvert"])(o); var r = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b = rgb2lrgb(o.b), y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z; if (r === g && g === b) x = z = y; else { x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn); z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn); } return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); } function gray(l, opacity) { return new Lab(l, 0, 0, opacity == null ? 1 : opacity); } function lab(l, a, b, opacity) { return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); } function Lab(l, a, b, opacity) { this.l = +l; this.a = +a; this.b = +b; this.opacity = +opacity; } Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Lab, lab, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, darker: function(k) { return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, rgb: function() { var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; x = Xn * lab2xyz(x); y = Yn * lab2xyz(y); z = Zn * lab2xyz(z); return new _color__WEBPACK_IMPORTED_MODULE_1__["Rgb"]( lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity ); } })); function xyz2lab(t) { return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; } function lab2xyz(t) { return t > t1 ? t * t * t : t2 * (t - t0); } function lrgb2rgb(x) { return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); } function rgb2lrgb(x) { return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); } function hclConvert(o) { if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); if (!(o instanceof Lab)) o = labConvert(o); if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity); var h = Math.atan2(o.b, o.a) * _math__WEBPACK_IMPORTED_MODULE_2__["rad2deg"]; return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); } function lch(l, c, h, opacity) { return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function hcl(h, c, l, opacity) { return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function Hcl(h, c, l, opacity) { this.h = +h; this.c = +c; this.l = +l; this.opacity = +opacity; } function hcl2lab(o) { if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity); var h = o.h * _math__WEBPACK_IMPORTED_MODULE_2__["deg2rad"]; return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); } Object(_define__WEBPACK_IMPORTED_MODULE_0__["default"])(Hcl, hcl, Object(_define__WEBPACK_IMPORTED_MODULE_0__["extend"])(_color__WEBPACK_IMPORTED_MODULE_1__["Color"], { brighter: function(k) { return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity); }, darker: function(k) { return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity); }, rgb: function() { return hcl2lab(this).rgb(); } })); /***/ }), /***/ "./node_modules/d3-color/src/math.js": /*!*******************************************!*\ !*** ./node_modules/d3-color/src/math.js ***! \*******************************************/ /*! exports provided: deg2rad, rad2deg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deg2rad", function() { return deg2rad; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rad2deg", function() { return rad2deg; }); var deg2rad = Math.PI / 180; var rad2deg = 180 / Math.PI; /***/ }), /***/ "./node_modules/d3-dispatch/index.js": /*!*******************************************!*\ !*** ./node_modules/d3-dispatch/index.js ***! \*******************************************/ /*! exports provided: dispatch */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/dispatch */ "./node_modules/d3-dispatch/src/dispatch.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return _src_dispatch__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "./node_modules/d3-dispatch/src/dispatch.js": /*!**************************************************!*\ !*** ./node_modules/d3-dispatch/src/dispatch.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var noop = {value: function() {}}; function dispatch() { for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) { if (!(t = arguments[i] + "") || (t in _)) throw new Error("illegal type: " + t); _[t] = []; } return new Dispatch(_); } function Dispatch(_) { this._ = _; } function parseTypenames(typenames, types) { return typenames.trim().split(/^|\s+/).map(function(t) { var name = "", i = t.indexOf("."); if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t); return {type: t, name: name}; }); } Dispatch.prototype = dispatch.prototype = { constructor: Dispatch, on: function(typename, callback) { var _ = this._, T = parseTypenames(typename + "", _), t, i = -1, n = T.length; // If no callback was specified, return the callback of the given type and name. if (arguments.length < 2) { while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t; return; } // If a type was specified, set the callback for the given type and name. // Otherwise, if a null callback was specified, remove callbacks of the given name. if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback); while (++i < n) { if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback); else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null); } return this; }, copy: function() { var copy = {}, _ = this._; for (var t in _) copy[t] = _[t].slice(); return new Dispatch(copy); }, call: function(type, that) { if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2]; if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); }, apply: function(type, that, args) { if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); } }; function get(type, name) { for (var i = 0, n = type.length, c; i < n; ++i) { if ((c = type[i]).name === name) { return c.value; } } } function set(type, name, callback) { for (var i = 0, n = type.length; i < n; ++i) { if (type[i].name === name) { type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1)); break; } } if (callback != null) type.push({name: name, value: callback}); return type; } /* harmony default export */ __webpack_exports__["default"] = (dispatch); /***/ }), /***/ "./node_modules/d3-drag/index.js": /*!***************************************!*\ !*** ./node_modules/d3-drag/index.js ***! \***************************************/ /*! exports provided: drag, dragDisable, dragEnable */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_drag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/drag */ "./node_modules/d3-drag/src/drag.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "drag", function() { return _src_drag__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _src_nodrag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/nodrag */ "./node_modules/d3-drag/src/nodrag.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragDisable", function() { return _src_nodrag__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dragEnable", function() { return _src_nodrag__WEBPACK_IMPORTED_MODULE_1__["yesdrag"]; }); /***/ }), /***/ "./node_modules/d3-drag/src/constant.js": /*!**********************************************!*\ !*** ./node_modules/d3-drag/src/constant.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-drag/src/drag.js": /*!******************************************!*\ !*** ./node_modules/d3-drag/src/drag.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _nodrag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nodrag */ "./node_modules/d3-drag/src/nodrag.js"); /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-drag/src/noevent.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-drag/src/constant.js"); /* harmony import */ var _event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./event */ "./node_modules/d3-drag/src/event.js"); // Ignore right-click, since that should open the context menu. function defaultFilter() { return !d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].button; } function defaultContainer() { return this.parentNode; } function defaultSubject(d) { return d == null ? {x: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].x, y: d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].y} : d; } function defaultTouchable() { return "ontouchstart" in this; } /* harmony default export */ __webpack_exports__["default"] = (function() { var filter = defaultFilter, container = defaultContainer, subject = defaultSubject, touchable = defaultTouchable, gestures = {}, listeners = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "drag", "end"), active = 0, mousedownx, mousedowny, mousemoving, touchending, clickDistance2 = 0; function drag(selection) { selection .on("mousedown.drag", mousedowned) .filter(touchable) .on("touchstart.drag", touchstarted) .on("touchmove.drag", touchmoved) .on("touchend.drag touchcancel.drag", touchended) .style("touch-action", "none") .style("-webkit-tap-highlight-color", "rgba(0,0,0,0)"); } function mousedowned() { if (touchending || !filter.apply(this, arguments)) return; var gesture = beforestart("mouse", container.apply(this, arguments), d3_selection__WEBPACK_IMPORTED_MODULE_1__["mouse"], this, arguments); if (!gesture) return; Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view).on("mousemove.drag", mousemoved, true).on("mouseup.drag", mouseupped, true); Object(_nodrag__WEBPACK_IMPORTED_MODULE_2__["default"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view); Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])(); mousemoving = false; mousedownx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX; mousedowny = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY; gesture("start"); } function mousemoved() { Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])(); if (!mousemoving) { var dx = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientX - mousedownx, dy = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].clientY - mousedowny; mousemoving = dx * dx + dy * dy > clickDistance2; } gestures.mouse("drag"); } function mouseupped() { Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["select"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view).on("mousemove.drag mouseup.drag", null); Object(_nodrag__WEBPACK_IMPORTED_MODULE_2__["yesdrag"])(d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].view, mousemoving); Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])(); gestures.mouse("end"); } function touchstarted() { if (!filter.apply(this, arguments)) return; var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches, c = container.apply(this, arguments), n = touches.length, i, gesture; for (i = 0; i < n; ++i) { if (gesture = beforestart(touches[i].identifier, c, d3_selection__WEBPACK_IMPORTED_MODULE_1__["touch"], this, arguments)) { Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])(); gesture("start"); } } } function touchmoved() { var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches, n = touches.length, i, gesture; for (i = 0; i < n; ++i) { if (gesture = gestures[touches[i].identifier]) { Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["default"])(); gesture("drag"); } } } function touchended() { var touches = d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].changedTouches, n = touches.length, i, gesture; if (touchending) clearTimeout(touchending); touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed! for (i = 0; i < n; ++i) { if (gesture = gestures[touches[i].identifier]) { Object(_noevent__WEBPACK_IMPORTED_MODULE_3__["nopropagation"])(); gesture("end"); } } } function beforestart(id, container, point, that, args) { var p = point(container, id), s, dx, dy, sublisteners = listeners.copy(); if (!Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_5__["default"](drag, "beforestart", s, id, active, p[0], p[1], 0, 0, sublisteners), function() { if ((d3_selection__WEBPACK_IMPORTED_MODULE_1__["event"].subject = s = subject.apply(that, args)) == null) return false; dx = s.x - p[0] || 0; dy = s.y - p[1] || 0; return true; })) return; return function gesture(type) { var p0 = p, n; switch (type) { case "start": gestures[id] = gesture, n = active++; break; case "end": delete gestures[id], --active; // nobreak case "drag": p = point(container, id), n = active; break; } Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["customEvent"])(new _event__WEBPACK_IMPORTED_MODULE_5__["default"](drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]); }; } drag.filter = function(_) { return arguments.length ? (filter = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : filter; }; drag.container = function(_) { return arguments.length ? (container = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : container; }; drag.subject = function(_) { return arguments.length ? (subject = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(_), drag) : subject; }; drag.touchable = function(_) { return arguments.length ? (touchable = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_4__["default"])(!!_), drag) : touchable; }; drag.on = function() { var value = listeners.on.apply(listeners, arguments); return value === listeners ? drag : value; }; drag.clickDistance = function(_) { return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2); }; return drag; }); /***/ }), /***/ "./node_modules/d3-drag/src/event.js": /*!*******************************************!*\ !*** ./node_modules/d3-drag/src/event.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DragEvent; }); function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) { this.target = target; this.type = type; this.subject = subject; this.identifier = id; this.active = active; this.x = x; this.y = y; this.dx = dx; this.dy = dy; this._ = dispatch; } DragEvent.prototype.on = function() { var value = this._.on.apply(this._, arguments); return value === this._ ? this : value; }; /***/ }), /***/ "./node_modules/d3-drag/src/nodrag.js": /*!********************************************!*\ !*** ./node_modules/d3-drag/src/nodrag.js ***! \********************************************/ /*! exports provided: default, yesdrag */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesdrag", function() { return yesdrag; }); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _noevent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./noevent */ "./node_modules/d3-drag/src/noevent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(view) { var root = view.document.documentElement, selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true); if ("onselectstart" in root) { selection.on("selectstart.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true); } else { root.__noselect = root.style.MozUserSelect; root.style.MozUserSelect = "none"; } }); function yesdrag(view, noclick) { var root = view.document.documentElement, selection = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["select"])(view).on("dragstart.drag", null); if (noclick) { selection.on("click.drag", _noevent__WEBPACK_IMPORTED_MODULE_1__["default"], true); setTimeout(function() { selection.on("click.drag", null); }, 0); } if ("onselectstart" in root) { selection.on("selectstart.drag", null); } else { root.style.MozUserSelect = root.__noselect; delete root.__noselect; } } /***/ }), /***/ "./node_modules/d3-drag/src/noevent.js": /*!*********************************************!*\ !*** ./node_modules/d3-drag/src/noevent.js ***! \*********************************************/ /*! exports provided: nopropagation, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nopropagation", function() { return nopropagation; }); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); function nopropagation() { d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation(); } /* harmony default export */ __webpack_exports__["default"] = (function() { d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].preventDefault(); d3_selection__WEBPACK_IMPORTED_MODULE_0__["event"].stopImmediatePropagation(); }); /***/ }), /***/ "./node_modules/d3-ease/index.js": /*!***************************************!*\ !*** ./node_modules/d3-ease/index.js ***! \***************************************/ /*! exports provided: easeLinear, easeQuad, easeQuadIn, easeQuadOut, easeQuadInOut, easeCubic, easeCubicIn, easeCubicOut, easeCubicInOut, easePoly, easePolyIn, easePolyOut, easePolyInOut, easeSin, easeSinIn, easeSinOut, easeSinInOut, easeExp, easeExpIn, easeExpOut, easeExpInOut, easeCircle, easeCircleIn, easeCircleOut, easeCircleInOut, easeBounce, easeBounceIn, easeBounceOut, easeBounceInOut, easeBack, easeBackIn, easeBackOut, easeBackInOut, easeElastic, easeElasticIn, easeElasticOut, easeElasticInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/linear */ "./node_modules/d3-ease/src/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return _src_linear__WEBPACK_IMPORTED_MODULE_0__["linear"]; }); /* harmony import */ var _src_quad__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/quad */ "./node_modules/d3-ease/src/quad.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return _src_quad__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return _src_quad__WEBPACK_IMPORTED_MODULE_1__["quadIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return _src_quad__WEBPACK_IMPORTED_MODULE_1__["quadOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return _src_quad__WEBPACK_IMPORTED_MODULE_1__["quadInOut"]; }); /* harmony import */ var _src_cubic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/cubic */ "./node_modules/d3-ease/src/cubic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return _src_cubic__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return _src_cubic__WEBPACK_IMPORTED_MODULE_2__["cubicIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return _src_cubic__WEBPACK_IMPORTED_MODULE_2__["cubicOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return _src_cubic__WEBPACK_IMPORTED_MODULE_2__["cubicInOut"]; }); /* harmony import */ var _src_poly__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/poly */ "./node_modules/d3-ease/src/poly.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return _src_poly__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return _src_poly__WEBPACK_IMPORTED_MODULE_3__["polyIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return _src_poly__WEBPACK_IMPORTED_MODULE_3__["polyOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return _src_poly__WEBPACK_IMPORTED_MODULE_3__["polyInOut"]; }); /* harmony import */ var _src_sin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/sin */ "./node_modules/d3-ease/src/sin.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return _src_sin__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return _src_sin__WEBPACK_IMPORTED_MODULE_4__["sinIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return _src_sin__WEBPACK_IMPORTED_MODULE_4__["sinOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return _src_sin__WEBPACK_IMPORTED_MODULE_4__["sinInOut"]; }); /* harmony import */ var _src_exp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/exp */ "./node_modules/d3-ease/src/exp.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return _src_exp__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return _src_exp__WEBPACK_IMPORTED_MODULE_5__["expIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return _src_exp__WEBPACK_IMPORTED_MODULE_5__["expOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return _src_exp__WEBPACK_IMPORTED_MODULE_5__["expInOut"]; }); /* harmony import */ var _src_circle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/circle */ "./node_modules/d3-ease/src/circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return _src_circle__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return _src_circle__WEBPACK_IMPORTED_MODULE_6__["circleIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return _src_circle__WEBPACK_IMPORTED_MODULE_6__["circleOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return _src_circle__WEBPACK_IMPORTED_MODULE_6__["circleInOut"]; }); /* harmony import */ var _src_bounce__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/bounce */ "./node_modules/d3-ease/src/bounce.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return _src_bounce__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return _src_bounce__WEBPACK_IMPORTED_MODULE_7__["bounceIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return _src_bounce__WEBPACK_IMPORTED_MODULE_7__["bounceOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return _src_bounce__WEBPACK_IMPORTED_MODULE_7__["bounceInOut"]; }); /* harmony import */ var _src_back__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/back */ "./node_modules/d3-ease/src/back.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return _src_back__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return _src_back__WEBPACK_IMPORTED_MODULE_8__["backIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return _src_back__WEBPACK_IMPORTED_MODULE_8__["backOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return _src_back__WEBPACK_IMPORTED_MODULE_8__["backInOut"]; }); /* harmony import */ var _src_elastic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/elastic */ "./node_modules/d3-ease/src/elastic.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return _src_elastic__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return _src_elastic__WEBPACK_IMPORTED_MODULE_9__["elasticIn"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return _src_elastic__WEBPACK_IMPORTED_MODULE_9__["elasticOut"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return _src_elastic__WEBPACK_IMPORTED_MODULE_9__["elasticInOut"]; }); /***/ }), /***/ "./node_modules/d3-ease/src/back.js": /*!******************************************!*\ !*** ./node_modules/d3-ease/src/back.js ***! \******************************************/ /*! exports provided: backIn, backOut, backInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backIn", function() { return backIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backOut", function() { return backOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "backInOut", function() { return backInOut; }); var overshoot = 1.70158; var backIn = (function custom(s) { s = +s; function backIn(t) { return t * t * ((s + 1) * t - s); } backIn.overshoot = custom; return backIn; })(overshoot); var backOut = (function custom(s) { s = +s; function backOut(t) { return --t * t * ((s + 1) * t + s) + 1; } backOut.overshoot = custom; return backOut; })(overshoot); var backInOut = (function custom(s) { s = +s; function backInOut(t) { return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; } backInOut.overshoot = custom; return backInOut; })(overshoot); /***/ }), /***/ "./node_modules/d3-ease/src/bounce.js": /*!********************************************!*\ !*** ./node_modules/d3-ease/src/bounce.js ***! \********************************************/ /*! exports provided: bounceIn, bounceOut, bounceInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceIn", function() { return bounceIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceOut", function() { return bounceOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bounceInOut", function() { return bounceInOut; }); var b1 = 4 / 11, b2 = 6 / 11, b3 = 8 / 11, b4 = 3 / 4, b5 = 9 / 11, b6 = 10 / 11, b7 = 15 / 16, b8 = 21 / 22, b9 = 63 / 64, b0 = 1 / b1 / b1; function bounceIn(t) { return 1 - bounceOut(1 - t); } function bounceOut(t) { return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; } function bounceInOut(t) { return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; } /***/ }), /***/ "./node_modules/d3-ease/src/circle.js": /*!********************************************!*\ !*** ./node_modules/d3-ease/src/circle.js ***! \********************************************/ /*! exports provided: circleIn, circleOut, circleInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleIn", function() { return circleIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleOut", function() { return circleOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "circleInOut", function() { return circleInOut; }); function circleIn(t) { return 1 - Math.sqrt(1 - t * t); } function circleOut(t) { return Math.sqrt(1 - --t * t); } function circleInOut(t) { return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; } /***/ }), /***/ "./node_modules/d3-ease/src/cubic.js": /*!*******************************************!*\ !*** ./node_modules/d3-ease/src/cubic.js ***! \*******************************************/ /*! exports provided: cubicIn, cubicOut, cubicInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicIn", function() { return cubicIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicOut", function() { return cubicOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubicInOut", function() { return cubicInOut; }); function cubicIn(t) { return t * t * t; } function cubicOut(t) { return --t * t * t + 1; } function cubicInOut(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } /***/ }), /***/ "./node_modules/d3-ease/src/elastic.js": /*!*********************************************!*\ !*** ./node_modules/d3-ease/src/elastic.js ***! \*********************************************/ /*! exports provided: elasticIn, elasticOut, elasticInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticIn", function() { return elasticIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticOut", function() { return elasticOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elasticInOut", function() { return elasticInOut; }); var tau = 2 * Math.PI, amplitude = 1, period = 0.3; var elasticIn = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticIn(t) { return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); } elasticIn.amplitude = function(a) { return custom(a, p * tau); }; elasticIn.period = function(p) { return custom(a, p); }; return elasticIn; })(amplitude, period); var elasticOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticOut(t) { return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); } elasticOut.amplitude = function(a) { return custom(a, p * tau); }; elasticOut.period = function(p) { return custom(a, p); }; return elasticOut; })(amplitude, period); var elasticInOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticInOut(t) { return ((t = t * 2 - 1) < 0 ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; } elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; elasticInOut.period = function(p) { return custom(a, p); }; return elasticInOut; })(amplitude, period); /***/ }), /***/ "./node_modules/d3-ease/src/exp.js": /*!*****************************************!*\ !*** ./node_modules/d3-ease/src/exp.js ***! \*****************************************/ /*! exports provided: expIn, expOut, expInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expIn", function() { return expIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expOut", function() { return expOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expInOut", function() { return expInOut; }); function expIn(t) { return Math.pow(2, 10 * t - 10); } function expOut(t) { return 1 - Math.pow(2, -10 * t); } function expInOut(t) { return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; } /***/ }), /***/ "./node_modules/d3-ease/src/linear.js": /*!********************************************!*\ !*** ./node_modules/d3-ease/src/linear.js ***! \********************************************/ /*! exports provided: linear */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linear", function() { return linear; }); function linear(t) { return +t; } /***/ }), /***/ "./node_modules/d3-ease/src/poly.js": /*!******************************************!*\ !*** ./node_modules/d3-ease/src/poly.js ***! \******************************************/ /*! exports provided: polyIn, polyOut, polyInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyIn", function() { return polyIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyOut", function() { return polyOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyInOut", function() { return polyInOut; }); var exponent = 3; var polyIn = (function custom(e) { e = +e; function polyIn(t) { return Math.pow(t, e); } polyIn.exponent = custom; return polyIn; })(exponent); var polyOut = (function custom(e) { e = +e; function polyOut(t) { return 1 - Math.pow(1 - t, e); } polyOut.exponent = custom; return polyOut; })(exponent); var polyInOut = (function custom(e) { e = +e; function polyInOut(t) { return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; } polyInOut.exponent = custom; return polyInOut; })(exponent); /***/ }), /***/ "./node_modules/d3-ease/src/quad.js": /*!******************************************!*\ !*** ./node_modules/d3-ease/src/quad.js ***! \******************************************/ /*! exports provided: quadIn, quadOut, quadInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadIn", function() { return quadIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadOut", function() { return quadOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quadInOut", function() { return quadInOut; }); function quadIn(t) { return t * t; } function quadOut(t) { return t * (2 - t); } function quadInOut(t) { return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; } /***/ }), /***/ "./node_modules/d3-ease/src/sin.js": /*!*****************************************!*\ !*** ./node_modules/d3-ease/src/sin.js ***! \*****************************************/ /*! exports provided: sinIn, sinOut, sinInOut */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinIn", function() { return sinIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinOut", function() { return sinOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sinInOut", function() { return sinInOut; }); var pi = Math.PI, halfPi = pi / 2; function sinIn(t) { return 1 - Math.cos(t * halfPi); } function sinOut(t) { return Math.sin(t * halfPi); } function sinInOut(t) { return (1 - Math.cos(pi * t)) / 2; } /***/ }), /***/ "./node_modules/d3-force/src/center.js": /*!*********************************************!*\ !*** ./node_modules/d3-force/src/center.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x, y) { var nodes; if (x == null) x = 0; if (y == null) y = 0; function force() { var i, n = nodes.length, node, sx = 0, sy = 0; for (i = 0; i < n; ++i) { node = nodes[i], sx += node.x, sy += node.y; } for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) { node = nodes[i], node.x -= sx, node.y -= sy; } } force.initialize = function(_) { nodes = _; }; force.x = function(_) { return arguments.length ? (x = +_, force) : x; }; force.y = function(_) { return arguments.length ? (y = +_, force) : y; }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/collide.js": /*!**********************************************!*\ !*** ./node_modules/d3-force/src/collide.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js"); /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/index.js"); function x(d) { return d.x + d.vx; } function y(d) { return d.y + d.vy; } /* harmony default export */ __webpack_exports__["default"] = (function(radius) { var nodes, radii, strength = 1, iterations = 1; if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(radius == null ? 1 : +radius); function force() { var i, n = nodes.length, tree, node, xi, yi, ri, ri2; for (var k = 0; k < iterations; ++k) { tree = Object(d3_quadtree__WEBPACK_IMPORTED_MODULE_2__["quadtree"])(nodes, x, y).visitAfter(prepare); for (i = 0; i < n; ++i) { node = nodes[i]; ri = radii[node.index], ri2 = ri * ri; xi = node.x + node.vx; yi = node.y + node.vy; tree.visit(apply); } } function apply(quad, x0, y0, x1, y1) { var data = quad.data, rj = quad.r, r = ri + rj; if (data) { if (data.index > node.index) { var x = xi - data.x - data.vx, y = yi - data.y - data.vy, l = x * x + y * y; if (l < r * r) { if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x; if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y; l = (r - (l = Math.sqrt(l))) / l * strength; node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj)); node.vy += (y *= l) * r; data.vx -= x * (r = 1 - r); data.vy -= y * r; } } return; } return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r; } } function prepare(quad) { if (quad.data) return quad.r = radii[quad.data.index]; for (var i = quad.r = 0; i < 4; ++i) { if (quad[i] && quad[i].r > quad.r) { quad.r = quad[i].r; } } } function initialize() { if (!nodes) return; var i, n = nodes.length, node; radii = new Array(n); for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes); } force.initialize = function(_) { nodes = _; initialize(); }; force.iterations = function(_) { return arguments.length ? (iterations = +_, force) : iterations; }; force.strength = function(_) { return arguments.length ? (strength = +_, force) : strength; }; force.radius = function(_) { return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius; }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/constant.js": /*!***********************************************!*\ !*** ./node_modules/d3-force/src/constant.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-force/src/index.js": /*!********************************************!*\ !*** ./node_modules/d3-force/src/index.js ***! \********************************************/ /*! exports provided: forceCenter, forceCollide, forceLink, forceManyBody, forceRadial, forceSimulation, forceX, forceY */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _center__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./center */ "./node_modules/d3-force/src/center.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCenter", function() { return _center__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _collide__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collide */ "./node_modules/d3-force/src/collide.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceCollide", function() { return _collide__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./link */ "./node_modules/d3-force/src/link.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceLink", function() { return _link__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _manyBody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./manyBody */ "./node_modules/d3-force/src/manyBody.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceManyBody", function() { return _manyBody__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _radial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./radial */ "./node_modules/d3-force/src/radial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceRadial", function() { return _radial__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceSimulation", function() { return _simulation__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _x__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./x */ "./node_modules/d3-force/src/x.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceX", function() { return _x__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./y */ "./node_modules/d3-force/src/y.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forceY", function() { return _y__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /***/ }), /***/ "./node_modules/d3-force/src/jiggle.js": /*!*********************************************!*\ !*** ./node_modules/d3-force/src/jiggle.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { return (Math.random() - 0.5) * 1e-6; }); /***/ }), /***/ "./node_modules/d3-force/src/link.js": /*!*******************************************!*\ !*** ./node_modules/d3-force/src/link.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js"); /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/index.js"); function index(d) { return d.index; } function find(nodeById, nodeId) { var node = nodeById.get(nodeId); if (!node) throw new Error("missing: " + nodeId); return node; } /* harmony default export */ __webpack_exports__["default"] = (function(links) { var id = index, strength = defaultStrength, strengths, distance = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(30), distances, nodes, count, bias, iterations = 1; if (links == null) links = []; function defaultStrength(link) { return 1 / Math.min(count[link.source.index], count[link.target.index]); } function force(alpha) { for (var k = 0, n = links.length; k < iterations; ++k) { for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) { link = links[i], source = link.source, target = link.target; x = target.x + target.vx - source.x - source.vx || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(); y = target.y + target.vy - source.y - source.vy || Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(); l = Math.sqrt(x * x + y * y); l = (l - distances[i]) / l * alpha * strengths[i]; x *= l, y *= l; target.vx -= x * (b = bias[i]); target.vy -= y * b; source.vx += x * (b = 1 - b); source.vy += y * b; } } } function initialize() { if (!nodes) return; var i, n = nodes.length, m = links.length, nodeById = Object(d3_collection__WEBPACK_IMPORTED_MODULE_2__["map"])(nodes, id), link; for (i = 0, count = new Array(n); i < m; ++i) { link = links[i], link.index = i; if (typeof link.source !== "object") link.source = find(nodeById, link.source); if (typeof link.target !== "object") link.target = find(nodeById, link.target); count[link.source.index] = (count[link.source.index] || 0) + 1; count[link.target.index] = (count[link.target.index] || 0) + 1; } for (i = 0, bias = new Array(m); i < m; ++i) { link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]); } strengths = new Array(m), initializeStrength(); distances = new Array(m), initializeDistance(); } function initializeStrength() { if (!nodes) return; for (var i = 0, n = links.length; i < n; ++i) { strengths[i] = +strength(links[i], i, links); } } function initializeDistance() { if (!nodes) return; for (var i = 0, n = links.length; i < n; ++i) { distances[i] = +distance(links[i], i, links); } } force.initialize = function(_) { nodes = _; initialize(); }; force.links = function(_) { return arguments.length ? (links = _, initialize(), force) : links; }; force.id = function(_) { return arguments.length ? (id = _, force) : id; }; force.iterations = function(_) { return arguments.length ? (iterations = +_, force) : iterations; }; force.strength = function(_) { return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeStrength(), force) : strength; }; force.distance = function(_) { return arguments.length ? (distance = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initializeDistance(), force) : distance; }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/manyBody.js": /*!***********************************************!*\ !*** ./node_modules/d3-force/src/manyBody.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony import */ var _jiggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jiggle */ "./node_modules/d3-force/src/jiggle.js"); /* harmony import */ var d3_quadtree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-quadtree */ "./node_modules/d3-quadtree/index.js"); /* harmony import */ var _simulation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulation */ "./node_modules/d3-force/src/simulation.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var nodes, node, alpha, strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(-30), strengths, distanceMin2 = 1, distanceMax2 = Infinity, theta2 = 0.81; function force(_) { var i, n = nodes.length, tree = Object(d3_quadtree__WEBPACK_IMPORTED_MODULE_2__["quadtree"])(nodes, _simulation__WEBPACK_IMPORTED_MODULE_3__["x"], _simulation__WEBPACK_IMPORTED_MODULE_3__["y"]).visitAfter(accumulate); for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply); } function initialize() { if (!nodes) return; var i, n = nodes.length, node; strengths = new Array(n); for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes); } function accumulate(quad) { var strength = 0, q, c, weight = 0, x, y, i; // For internal nodes, accumulate forces from child quadrants. if (quad.length) { for (x = y = i = 0; i < 4; ++i) { if ((q = quad[i]) && (c = Math.abs(q.value))) { strength += q.value, weight += c, x += c * q.x, y += c * q.y; } } quad.x = x / weight; quad.y = y / weight; } // For leaf nodes, accumulate forces from coincident quadrants. else { q = quad; q.x = q.data.x; q.y = q.data.y; do strength += strengths[q.data.index]; while (q = q.next); } quad.value = strength; } function apply(quad, x1, _, x2) { if (!quad.value) return true; var x = quad.x - node.x, y = quad.y - node.y, w = x2 - x1, l = x * x + y * y; // Apply the Barnes-Hut approximation if possible. // Limit forces for very close nodes; randomize direction if coincident. if (w * w / theta2 < l) { if (l < distanceMax2) { if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x; if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y; if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l); node.vx += x * quad.value * alpha / l; node.vy += y * quad.value * alpha / l; } return true; } // Otherwise, process points directly. else if (quad.length || l >= distanceMax2) return; // Limit forces for very close nodes; randomize direction if coincident. if (quad.data !== node || quad.next) { if (x === 0) x = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += x * x; if (y === 0) y = Object(_jiggle__WEBPACK_IMPORTED_MODULE_1__["default"])(), l += y * y; if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l); } do if (quad.data !== node) { w = strengths[quad.data.index] * alpha / l; node.vx += x * w; node.vy += y * w; } while (quad = quad.next); } force.initialize = function(_) { nodes = _; initialize(); }; force.strength = function(_) { return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength; }; force.distanceMin = function(_) { return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2); }; force.distanceMax = function(_) { return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2); }; force.theta = function(_) { return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2); }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/radial.js": /*!*********************************************!*\ !*** ./node_modules/d3-force/src/radial.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony default export */ __webpack_exports__["default"] = (function(radius, x, y) { var nodes, strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1), strengths, radiuses; if (typeof radius !== "function") radius = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+radius); if (x == null) x = 0; if (y == null) y = 0; function force(alpha) { for (var i = 0, n = nodes.length; i < n; ++i) { var node = nodes[i], dx = node.x - x || 1e-6, dy = node.y - y || 1e-6, r = Math.sqrt(dx * dx + dy * dy), k = (radiuses[i] - r) * strengths[i] * alpha / r; node.vx += dx * k; node.vy += dy * k; } } function initialize() { if (!nodes) return; var i, n = nodes.length; strengths = new Array(n); radiuses = new Array(n); for (i = 0; i < n; ++i) { radiuses[i] = +radius(nodes[i], i, nodes); strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes); } } force.initialize = function(_) { nodes = _, initialize(); }; force.strength = function(_) { return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength; }; force.radius = function(_) { return arguments.length ? (radius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : radius; }; force.x = function(_) { return arguments.length ? (x = +_, force) : x; }; force.y = function(_) { return arguments.length ? (y = +_, force) : y; }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/simulation.js": /*!*************************************************!*\ !*** ./node_modules/d3-force/src/simulation.js ***! \*************************************************/ /*! exports provided: x, y, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; }); /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/index.js"); /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/index.js"); /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/index.js"); function x(d) { return d.x; } function y(d) { return d.y; } var initialRadius = 10, initialAngle = Math.PI * (3 - Math.sqrt(5)); /* harmony default export */ __webpack_exports__["default"] = (function(nodes) { var simulation, alpha = 1, alphaMin = 0.001, alphaDecay = 1 - Math.pow(alphaMin, 1 / 300), alphaTarget = 0, velocityDecay = 0.6, forces = Object(d3_collection__WEBPACK_IMPORTED_MODULE_1__["map"])(), stepper = Object(d3_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(step), event = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("tick", "end"); if (nodes == null) nodes = []; function step() { tick(); event.call("tick", simulation); if (alpha < alphaMin) { stepper.stop(); event.call("end", simulation); } } function tick(iterations) { var i, n = nodes.length, node; if (iterations === undefined) iterations = 1; for (var k = 0; k < iterations; ++k) { alpha += (alphaTarget - alpha) * alphaDecay; forces.each(function (force) { force(alpha); }); for (i = 0; i < n; ++i) { node = nodes[i]; if (node.fx == null) node.x += node.vx *= velocityDecay; else node.x = node.fx, node.vx = 0; if (node.fy == null) node.y += node.vy *= velocityDecay; else node.y = node.fy, node.vy = 0; } } return simulation; } function initializeNodes() { for (var i = 0, n = nodes.length, node; i < n; ++i) { node = nodes[i], node.index = i; if (node.fx != null) node.x = node.fx; if (node.fy != null) node.y = node.fy; if (isNaN(node.x) || isNaN(node.y)) { var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle; node.x = radius * Math.cos(angle); node.y = radius * Math.sin(angle); } if (isNaN(node.vx) || isNaN(node.vy)) { node.vx = node.vy = 0; } } } function initializeForce(force) { if (force.initialize) force.initialize(nodes); return force; } initializeNodes(); return simulation = { tick: tick, restart: function() { return stepper.restart(step), simulation; }, stop: function() { return stepper.stop(), simulation; }, nodes: function(_) { return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes; }, alpha: function(_) { return arguments.length ? (alpha = +_, simulation) : alpha; }, alphaMin: function(_) { return arguments.length ? (alphaMin = +_, simulation) : alphaMin; }, alphaDecay: function(_) { return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay; }, alphaTarget: function(_) { return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget; }, velocityDecay: function(_) { return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay; }, force: function(name, _) { return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name); }, find: function(x, y, radius) { var i = 0, n = nodes.length, dx, dy, d2, node, closest; if (radius == null) radius = Infinity; else radius *= radius; for (i = 0; i < n; ++i) { node = nodes[i]; dx = x - node.x; dy = y - node.y; d2 = dx * dx + dy * dy; if (d2 < radius) closest = node, radius = d2; } return closest; }, on: function(name, _) { return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name); } }; }); /***/ }), /***/ "./node_modules/d3-force/src/x.js": /*!****************************************!*\ !*** ./node_modules/d3-force/src/x.js ***! \****************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x) { var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1), nodes, strengths, xz; if (typeof x !== "function") x = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(x == null ? 0 : +x); function force(alpha) { for (var i = 0, n = nodes.length, node; i < n; ++i) { node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha; } } function initialize() { if (!nodes) return; var i, n = nodes.length; strengths = new Array(n); xz = new Array(n); for (i = 0; i < n; ++i) { strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } force.initialize = function(_) { nodes = _; initialize(); }; force.strength = function(_) { return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength; }; force.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : x; }; return force; }); /***/ }), /***/ "./node_modules/d3-force/src/y.js": /*!****************************************!*\ !*** ./node_modules/d3-force/src/y.js ***! \****************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-force/src/constant.js"); /* harmony default export */ __webpack_exports__["default"] = (function(y) { var strength = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0.1), nodes, strengths, yz; if (typeof y !== "function") y = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(y == null ? 0 : +y); function force(alpha) { for (var i = 0, n = nodes.length, node; i < n; ++i) { node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha; } } function initialize() { if (!nodes) return; var i, n = nodes.length; strengths = new Array(n); yz = new Array(n); for (i = 0; i < n; ++i) { strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } force.initialize = function(_) { nodes = _; initialize(); }; force.strength = function(_) { return arguments.length ? (strength = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : strength; }; force.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), initialize(), force) : y; }; return force; }); /***/ }), /***/ "./node_modules/d3-format/src/defaultLocale.js": /*!*****************************************************!*\ !*** ./node_modules/d3-format/src/defaultLocale.js ***! \*****************************************************/ /*! exports provided: format, formatPrefix, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return format; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return formatPrefix; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; }); /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-format/src/locale.js"); var locale; var format; var formatPrefix; defaultLocale({ decimal: ".", thousands: ",", grouping: [3], currency: ["$", ""] }); function defaultLocale(definition) { locale = Object(_locale__WEBPACK_IMPORTED_MODULE_0__["default"])(definition); format = locale.format; formatPrefix = locale.formatPrefix; return locale; } /***/ }), /***/ "./node_modules/d3-format/src/exponent.js": /*!************************************************!*\ !*** ./node_modules/d3-format/src/exponent.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(x)), x ? x[1] : NaN; }); /***/ }), /***/ "./node_modules/d3-format/src/formatDecimal.js": /*!*****************************************************!*\ !*** ./node_modules/d3-format/src/formatDecimal.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // Computes the decimal coefficient and exponent of the specified number x with // significant digits p, where x is positive and p is in [1, 21] or undefined. // For example, formatDecimal(1.23) returns ["123", 0]. /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity var i, coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+ // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3). return [ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1) ]; }); /***/ }), /***/ "./node_modules/d3-format/src/formatGroup.js": /*!***************************************************!*\ !*** ./node_modules/d3-format/src/formatGroup.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(grouping, thousands) { return function(value, width) { var i = value.length, t = [], j = 0, g = grouping[0], length = 0; while (i > 0 && g > 0) { if (length + g + 1 > width) g = Math.max(1, width - length); t.push(value.substring(i -= g, i + g)); if ((length += g + 1) > width) break; g = grouping[j = (j + 1) % grouping.length]; } return t.reverse().join(thousands); }; }); /***/ }), /***/ "./node_modules/d3-format/src/formatNumerals.js": /*!******************************************************!*\ !*** ./node_modules/d3-format/src/formatNumerals.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(numerals) { return function(value) { return value.replace(/[0-9]/g, function(i) { return numerals[+i]; }); }; }); /***/ }), /***/ "./node_modules/d3-format/src/formatPrefixAuto.js": /*!********************************************************!*\ !*** ./node_modules/d3-format/src/formatPrefixAuto.js ***! \********************************************************/ /*! exports provided: prefixExponent, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefixExponent", function() { return prefixExponent; }); /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js"); var prefixExponent; /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { var d = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length; return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, Math.max(0, p + i - 1))[0]; // less than 1y! }); /***/ }), /***/ "./node_modules/d3-format/src/formatRounded.js": /*!*****************************************************!*\ !*** ./node_modules/d3-format/src/formatRounded.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatDecimal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal */ "./node_modules/d3-format/src/formatDecimal.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x, p) { var d = Object(_formatDecimal__WEBPACK_IMPORTED_MODULE_0__["default"])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1]; return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0"); }); /***/ }), /***/ "./node_modules/d3-format/src/formatSpecifier.js": /*!*******************************************************!*\ !*** ./node_modules/d3-format/src/formatSpecifier.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatSpecifier; }); // [[fill]align][sign][symbol][0][width][,][.precision][~][type] var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function formatSpecifier(specifier) { return new FormatSpecifier(specifier); } formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof function FormatSpecifier(specifier) { if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); var match; this.fill = match[1] || " "; this.align = match[2] || ">"; this.sign = match[3] || "-"; this.symbol = match[4] || ""; this.zero = !!match[5]; this.width = match[6] && +match[6]; this.comma = !!match[7]; this.precision = match[8] && +match[8].slice(1); this.trim = !!match[9]; this.type = match[10] || ""; } FormatSpecifier.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width == null ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision == null ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; /***/ }), /***/ "./node_modules/d3-format/src/formatTrim.js": /*!**************************************************!*\ !*** ./node_modules/d3-format/src/formatTrim.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k. /* harmony default export */ __webpack_exports__["default"] = (function(s) { out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) { switch (s[i]) { case ".": i0 = i1 = i; break; case "0": if (i0 === 0) i0 = i; i1 = i; break; default: if (i0 > 0) { if (!+s[i]) break out; i0 = 0; } break; } } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; }); /***/ }), /***/ "./node_modules/d3-format/src/formatTypes.js": /*!***************************************************!*\ !*** ./node_modules/d3-format/src/formatTypes.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatPrefixAuto */ "./node_modules/d3-format/src/formatPrefixAuto.js"); /* harmony import */ var _formatRounded__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatRounded */ "./node_modules/d3-format/src/formatRounded.js"); /* harmony default export */ __webpack_exports__["default"] = ({ "%": function(x, p) { return (x * 100).toFixed(p); }, "b": function(x) { return Math.round(x).toString(2); }, "c": function(x) { return x + ""; }, "d": function(x) { return Math.round(x).toString(10); }, "e": function(x, p) { return x.toExponential(p); }, "f": function(x, p) { return x.toFixed(p); }, "g": function(x, p) { return x.toPrecision(p); }, "o": function(x) { return Math.round(x).toString(8); }, "p": function(x, p) { return Object(_formatRounded__WEBPACK_IMPORTED_MODULE_1__["default"])(x * 100, p); }, "r": _formatRounded__WEBPACK_IMPORTED_MODULE_1__["default"], "s": _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_0__["default"], "X": function(x) { return Math.round(x).toString(16).toUpperCase(); }, "x": function(x) { return Math.round(x).toString(16); } }); /***/ }), /***/ "./node_modules/d3-format/src/identity.js": /*!************************************************!*\ !*** ./node_modules/d3-format/src/identity.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return x; }); /***/ }), /***/ "./node_modules/d3-format/src/index.js": /*!*********************************************!*\ !*** ./node_modules/d3-format/src/index.js ***! \*********************************************/ /*! exports provided: formatDefaultLocale, format, formatPrefix, formatLocale, formatSpecifier, precisionFixed, precisionPrefix, precisionRound */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-format/src/defaultLocale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "format", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["format"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["formatPrefix"]; }); /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-format/src/locale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return _locale__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _formatSpecifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatSpecifier */ "./node_modules/d3-format/src/formatSpecifier.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return _formatSpecifier__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _precisionFixed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./precisionFixed */ "./node_modules/d3-format/src/precisionFixed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return _precisionFixed__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _precisionPrefix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./precisionPrefix */ "./node_modules/d3-format/src/precisionPrefix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return _precisionPrefix__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _precisionRound__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./precisionRound */ "./node_modules/d3-format/src/precisionRound.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return _precisionRound__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /***/ }), /***/ "./node_modules/d3-format/src/locale.js": /*!**********************************************!*\ !*** ./node_modules/d3-format/src/locale.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js"); /* harmony import */ var _formatGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatGroup */ "./node_modules/d3-format/src/formatGroup.js"); /* harmony import */ var _formatNumerals__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatNumerals */ "./node_modules/d3-format/src/formatNumerals.js"); /* harmony import */ var _formatSpecifier__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatSpecifier */ "./node_modules/d3-format/src/formatSpecifier.js"); /* harmony import */ var _formatTrim__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatTrim */ "./node_modules/d3-format/src/formatTrim.js"); /* harmony import */ var _formatTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatTypes */ "./node_modules/d3-format/src/formatTypes.js"); /* harmony import */ var _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatPrefixAuto */ "./node_modules/d3-format/src/formatPrefixAuto.js"); /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-format/src/identity.js"); var prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]; /* harmony default export */ __webpack_exports__["default"] = (function(locale) { var group = locale.grouping && locale.thousands ? Object(_formatGroup__WEBPACK_IMPORTED_MODULE_1__["default"])(locale.grouping, locale.thousands) : _identity__WEBPACK_IMPORTED_MODULE_7__["default"], currency = locale.currency, decimal = locale.decimal, numerals = locale.numerals ? Object(_formatNumerals__WEBPACK_IMPORTED_MODULE_2__["default"])(locale.numerals) : _identity__WEBPACK_IMPORTED_MODULE_7__["default"], percent = locale.percent || "%"; function newFormat(specifier) { specifier = Object(_formatSpecifier__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier); var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type; // The "n" type is an alias for ",g". if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g". else if (!_formatTypes__WEBPACK_IMPORTED_MODULE_5__["default"][type]) precision == null && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "="; // Compute the prefix and suffix. // For SI-prefix, the suffix is lazily computed. var prefix = symbol === "$" ? currency[0] : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currency[1] : /[%p]/.test(type) ? percent : ""; // What format function should we use? // Is this an integer type? // Can this type generate exponential notation? var formatType = _formatTypes__WEBPACK_IMPORTED_MODULE_5__["default"][type], maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified, // or clamp the specified precision to the supported range. // For significant precision, it must be in [1, 21]. // For fixed precision, it must be in [0, 20]. precision = precision == null ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format(value) { var valuePrefix = prefix, valueSuffix = suffix, i, n, c; if (type === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; } else { value = +value; // Perform the initial formatting. var valueNegative = value < 0; value = formatType(Math.abs(value), precision); // Trim insignificant zeros. if (trim) value = Object(_formatTrim__WEBPACK_IMPORTED_MODULE_4__["default"])(value); // If a negative value rounds to zero during formatting, treat as positive. if (valueNegative && +value === 0) valueNegative = false; // Compute the prefix and suffix. valuePrefix = (valueNegative ? (sign === "(" ? sign : "-") : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; valueSuffix = (type === "s" ? prefixes[8 + _formatPrefixAuto__WEBPACK_IMPORTED_MODULE_6__["prefixExponent"] / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be // grouped, and fractional or exponential “suffix” part that is not. if (maybeSuffix) { i = -1, n = value.length; while (++i < n) { if (c = value.charCodeAt(i), 48 > c || c > 57) { valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } // If the fill character is not "0", grouping is applied before padding. if (comma && !zero) value = group(value, Infinity); // Compute the padding. var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment. switch (align) { case "<": value = valuePrefix + value + valueSuffix + padding; break; case "=": value = valuePrefix + padding + value + valueSuffix; break; case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break; default: value = padding + valuePrefix + value + valueSuffix; break; } return numerals(value); } format.toString = function() { return specifier + ""; }; return format; } function formatPrefix(specifier, value) { var f = newFormat((specifier = Object(_formatSpecifier__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3]; return function(value) { return f(k * value) + prefix; }; } return { format: newFormat, formatPrefix: formatPrefix }; }); /***/ }), /***/ "./node_modules/d3-format/src/precisionFixed.js": /*!******************************************************!*\ !*** ./node_modules/d3-format/src/precisionFixed.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step) { return Math.max(0, -Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step))); }); /***/ }), /***/ "./node_modules/d3-format/src/precisionPrefix.js": /*!*******************************************************!*\ !*** ./node_modules/d3-format/src/precisionPrefix.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step, value) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3 - Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step))); }); /***/ }), /***/ "./node_modules/d3-format/src/precisionRound.js": /*!******************************************************!*\ !*** ./node_modules/d3-format/src/precisionRound.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _exponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent */ "./node_modules/d3-format/src/exponent.js"); /* harmony default export */ __webpack_exports__["default"] = (function(step, max) { step = Math.abs(step), max = Math.abs(max) - step; return Math.max(0, Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(max) - Object(_exponent__WEBPACK_IMPORTED_MODULE_0__["default"])(step)) + 1; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/accessors.js": /*!****************************************************!*\ !*** ./node_modules/d3-hierarchy/src/accessors.js ***! \****************************************************/ /*! exports provided: optional, required */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "optional", function() { return optional; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "required", function() { return required; }); function optional(f) { return f == null ? null : required(f); } function required(f) { if (typeof f !== "function") throw new Error; return f; } /***/ }), /***/ "./node_modules/d3-hierarchy/src/array.js": /*!************************************************!*\ !*** ./node_modules/d3-hierarchy/src/array.js ***! \************************************************/ /*! exports provided: slice, shuffle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return shuffle; }); var slice = Array.prototype.slice; function shuffle(array) { var m = array.length, t, i; while (m) { i = Math.random() * m-- | 0; t = array[m]; array[m] = array[i]; array[i] = t; } return array; } /***/ }), /***/ "./node_modules/d3-hierarchy/src/cluster.js": /*!**************************************************!*\ !*** ./node_modules/d3-hierarchy/src/cluster.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function defaultSeparation(a, b) { return a.parent === b.parent ? 1 : 2; } function meanX(children) { return children.reduce(meanXReduce, 0) / children.length; } function meanXReduce(x, c) { return x + c.x; } function maxY(children) { return 1 + children.reduce(maxYReduce, 0); } function maxYReduce(y, c) { return Math.max(y, c.y); } function leafLeft(node) { var children; while (children = node.children) node = children[0]; return node; } function leafRight(node) { var children; while (children = node.children) node = children[children.length - 1]; return node; } /* harmony default export */ __webpack_exports__["default"] = (function() { var separation = defaultSeparation, dx = 1, dy = 1, nodeSize = false; function cluster(root) { var previousNode, x = 0; // First walk, computing the initial x & y values. root.eachAfter(function(node) { var children = node.children; if (children) { node.x = meanX(children); node.y = maxY(children); } else { node.x = previousNode ? x += separation(node, previousNode) : 0; node.y = 0; previousNode = node; } }); var left = leafLeft(root), right = leafRight(root), x0 = left.x - separation(left, right) / 2, x1 = right.x + separation(right, left) / 2; // Second walk, normalizing x & y to the desired size. return root.eachAfter(nodeSize ? function(node) { node.x = (node.x - root.x) * dx; node.y = (root.y - node.y) * dy; } : function(node) { node.x = (node.x - x0) / (x1 - x0) * dx; node.y = (1 - (root.y ? node.y / root.y : 1)) * dy; }); } cluster.separation = function(x) { return arguments.length ? (separation = x, cluster) : separation; }; cluster.size = function(x) { return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]); }; cluster.nodeSize = function(x) { return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null); }; return cluster; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/constant.js": /*!***************************************************!*\ !*** ./node_modules/d3-hierarchy/src/constant.js ***! \***************************************************/ /*! exports provided: constantZero, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "constantZero", function() { return constantZero; }); function constantZero() { return 0; } /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js": /*!**************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/ancestors.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var node = this, nodes = [node]; while (node = node.parent) { nodes.push(node); } return nodes; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/count.js": /*!**********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/count.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function count(node) { var sum = 0, children = node.children, i = children && children.length; if (!i) sum = 1; else while (--i >= 0) sum += children[i].value; node.value = sum; } /* harmony default export */ __webpack_exports__["default"] = (function() { return this.eachAfter(count); }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js": /*!****************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/descendants.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var nodes = []; this.each(function(node) { nodes.push(node); }); return nodes; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/each.js": /*!*********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/each.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { var node = this, current, next = [node], children, i, n; do { current = next.reverse(), next = []; while (node = current.pop()) { callback(node), children = node.children; if (children) for (i = 0, n = children.length; i < n; ++i) { next.push(children[i]); } } } while (next.length); return this; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js": /*!**************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { var node = this, nodes = [node], next = [], children, i, n; while (node = nodes.pop()) { next.push(node), children = node.children; if (children) for (i = 0, n = children.length; i < n; ++i) { nodes.push(children[i]); } } while (node = next.pop()) { callback(node); } return this; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js": /*!***************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { var node = this, nodes = [node], children, i; while (node = nodes.pop()) { callback(node), children = node.children; if (children) for (i = children.length - 1; i >= 0; --i) { nodes.push(children[i]); } } return this; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/index.js": /*!**********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/index.js ***! \**********************************************************/ /*! exports provided: default, computeHeight, Node */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return hierarchy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "computeHeight", function() { return computeHeight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Node", function() { return Node; }); /* harmony import */ var _count__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./count */ "./node_modules/d3-hierarchy/src/hierarchy/count.js"); /* harmony import */ var _each__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./each */ "./node_modules/d3-hierarchy/src/hierarchy/each.js"); /* harmony import */ var _eachBefore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./eachBefore */ "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js"); /* harmony import */ var _eachAfter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eachAfter */ "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js"); /* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-hierarchy/src/hierarchy/sum.js"); /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sort */ "./node_modules/d3-hierarchy/src/hierarchy/sort.js"); /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "./node_modules/d3-hierarchy/src/hierarchy/path.js"); /* harmony import */ var _ancestors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ancestors */ "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js"); /* harmony import */ var _descendants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./descendants */ "./node_modules/d3-hierarchy/src/hierarchy/descendants.js"); /* harmony import */ var _leaves__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./leaves */ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js"); /* harmony import */ var _links__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./links */ "./node_modules/d3-hierarchy/src/hierarchy/links.js"); function hierarchy(data, children) { var root = new Node(data), valued = +data.value && (root.value = data.value), node, nodes = [root], child, childs, i, n; if (children == null) children = defaultChildren; while (node = nodes.pop()) { if (valued) node.value = +node.data.value; if ((childs = children(node.data)) && (n = childs.length)) { node.children = new Array(n); for (i = n - 1; i >= 0; --i) { nodes.push(child = node.children[i] = new Node(childs[i])); child.parent = node; child.depth = node.depth + 1; } } } return root.eachBefore(computeHeight); } function node_copy() { return hierarchy(this).eachBefore(copyData); } function defaultChildren(d) { return d.children; } function copyData(node) { node.data = node.data.data; } function computeHeight(node) { var height = 0; do node.height = height; while ((node = node.parent) && (node.height < ++height)); } function Node(data) { this.data = data; this.depth = this.height = 0; this.parent = null; } Node.prototype = hierarchy.prototype = { constructor: Node, count: _count__WEBPACK_IMPORTED_MODULE_0__["default"], each: _each__WEBPACK_IMPORTED_MODULE_1__["default"], eachAfter: _eachAfter__WEBPACK_IMPORTED_MODULE_3__["default"], eachBefore: _eachBefore__WEBPACK_IMPORTED_MODULE_2__["default"], sum: _sum__WEBPACK_IMPORTED_MODULE_4__["default"], sort: _sort__WEBPACK_IMPORTED_MODULE_5__["default"], path: _path__WEBPACK_IMPORTED_MODULE_6__["default"], ancestors: _ancestors__WEBPACK_IMPORTED_MODULE_7__["default"], descendants: _descendants__WEBPACK_IMPORTED_MODULE_8__["default"], leaves: _leaves__WEBPACK_IMPORTED_MODULE_9__["default"], links: _links__WEBPACK_IMPORTED_MODULE_10__["default"], copy: node_copy }; /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/leaves.js": /*!***********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/leaves.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var leaves = []; this.eachBefore(function(node) { if (!node.children) { leaves.push(node); } }); return leaves; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/links.js": /*!**********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/links.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var root = this, links = []; root.each(function(node) { if (node !== root) { // Don’t include the root’s parent, if any. links.push({source: node.parent, target: node}); } }); return links; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/path.js": /*!*********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/path.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(end) { var start = this, ancestor = leastCommonAncestor(start, end), nodes = [start]; while (start !== ancestor) { start = start.parent; nodes.push(start); } var k = nodes.length; while (end !== ancestor) { nodes.splice(k, 0, end); end = end.parent; } return nodes; }); function leastCommonAncestor(a, b) { if (a === b) return a; var aNodes = a.ancestors(), bNodes = b.ancestors(), c = null; a = aNodes.pop(); b = bNodes.pop(); while (a === b) { c = a; a = aNodes.pop(); b = bNodes.pop(); } return c; } /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/sort.js": /*!*********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/sort.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(compare) { return this.eachBefore(function(node) { if (node.children) { node.children.sort(compare); } }); }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/hierarchy/sum.js": /*!********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/hierarchy/sum.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(value) { return this.eachAfter(function(node) { var sum = +value(node.data) || 0, children = node.children, i = children && children.length; while (--i >= 0) sum += children[i].value; node.value = sum; }); }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/index.js": /*!************************************************!*\ !*** ./node_modules/d3-hierarchy/src/index.js ***! \************************************************/ /*! exports provided: cluster, hierarchy, pack, packSiblings, packEnclose, partition, stratify, tree, treemap, treemapBinary, treemapDice, treemapSlice, treemapSliceDice, treemapSquarify, treemapResquarify */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cluster__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cluster */ "./node_modules/d3-hierarchy/src/cluster.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "cluster", function() { return _cluster__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hierarchy", function() { return _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _pack_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pack/index */ "./node_modules/d3-hierarchy/src/pack/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pack", function() { return _pack_index__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _pack_siblings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pack/siblings */ "./node_modules/d3-hierarchy/src/pack/siblings.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packSiblings", function() { return _pack_siblings__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _pack_enclose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pack/enclose */ "./node_modules/d3-hierarchy/src/pack/enclose.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return _pack_enclose__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _partition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./partition */ "./node_modules/d3-hierarchy/src/partition.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _partition__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _stratify__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./stratify */ "./node_modules/d3-hierarchy/src/stratify.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stratify", function() { return _stratify__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tree */ "./node_modules/d3-hierarchy/src/tree.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tree", function() { return _tree__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _treemap_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./treemap/index */ "./node_modules/d3-hierarchy/src/treemap/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemap", function() { return _treemap_index__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _treemap_binary__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./treemap/binary */ "./node_modules/d3-hierarchy/src/treemap/binary.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapBinary", function() { return _treemap_binary__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _treemap_dice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./treemap/dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapDice", function() { return _treemap_dice__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _treemap_slice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./treemap/slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSlice", function() { return _treemap_slice__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _treemap_sliceDice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./treemap/sliceDice */ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSliceDice", function() { return _treemap_sliceDice__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _treemap_squarify__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./treemap/squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapSquarify", function() { return _treemap_squarify__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _treemap_resquarify__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./treemap/resquarify */ "./node_modules/d3-hierarchy/src/treemap/resquarify.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "treemapResquarify", function() { return _treemap_resquarify__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/pack/enclose.js": /*!*******************************************************!*\ !*** ./node_modules/d3-hierarchy/src/pack/enclose.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-hierarchy/src/array.js"); /* harmony default export */ __webpack_exports__["default"] = (function(circles) { var i = 0, n = (circles = Object(_array__WEBPACK_IMPORTED_MODULE_0__["shuffle"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(circles))).length, B = [], p, e; while (i < n) { p = circles[i]; if (e && enclosesWeak(e, p)) ++i; else e = encloseBasis(B = extendBasis(B, p)), i = 0; } return e; }); function extendBasis(B, p) { var i, j; if (enclosesWeakAll(p, B)) return [p]; // If we get here then B must have at least one element. for (i = 0; i < B.length; ++i) { if (enclosesNot(p, B[i]) && enclosesWeakAll(encloseBasis2(B[i], p), B)) { return [B[i], p]; } } // If we get here then B must have at least two elements. for (i = 0; i < B.length - 1; ++i) { for (j = i + 1; j < B.length; ++j) { if (enclosesNot(encloseBasis2(B[i], B[j]), p) && enclosesNot(encloseBasis2(B[i], p), B[j]) && enclosesNot(encloseBasis2(B[j], p), B[i]) && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) { return [B[i], B[j], p]; } } } // If we get here then something is very wrong. throw new Error; } function enclosesNot(a, b) { var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y; return dr < 0 || dr * dr < dx * dx + dy * dy; } function enclosesWeak(a, b) { var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } function enclosesWeakAll(a, B) { for (var i = 0; i < B.length; ++i) { if (!enclosesWeak(a, B[i])) { return false; } } return true; } function encloseBasis(B) { switch (B.length) { case 1: return encloseBasis1(B[0]); case 2: return encloseBasis2(B[0], B[1]); case 3: return encloseBasis3(B[0], B[1], B[2]); } } function encloseBasis1(a) { return { x: a.x, y: a.y, r: a.r }; } function encloseBasis2(a, b) { var x1 = a.x, y1 = a.y, r1 = a.r, x2 = b.x, y2 = b.y, r2 = b.r, x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1, l = Math.sqrt(x21 * x21 + y21 * y21); return { x: (x1 + x2 + x21 / l * r21) / 2, y: (y1 + y2 + y21 / l * r21) / 2, r: (l + r1 + r2) / 2 }; } function encloseBasis3(a, b, c) { var x1 = a.x, y1 = a.y, r1 = a.r, x2 = b.x, y2 = b.y, r2 = b.r, x3 = c.x, y3 = c.y, r3 = c.r, a2 = x1 - x2, a3 = x1 - x3, b2 = y1 - y2, b3 = y1 - y3, c2 = r2 - r1, c3 = r3 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2, d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3, ab = a3 * b2 - a2 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c2 - b2 * c3) / ab, ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1, yb = (a2 * c3 - a3 * c2) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); return { x: x1 + xa + xb * r, y: y1 + ya + yb * r, r: r }; } /***/ }), /***/ "./node_modules/d3-hierarchy/src/pack/index.js": /*!*****************************************************!*\ !*** ./node_modules/d3-hierarchy/src/pack/index.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _siblings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./siblings */ "./node_modules/d3-hierarchy/src/pack/siblings.js"); /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../accessors */ "./node_modules/d3-hierarchy/src/accessors.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-hierarchy/src/constant.js"); function defaultRadius(d) { return Math.sqrt(d.value); } /* harmony default export */ __webpack_exports__["default"] = (function() { var radius = null, dx = 1, dy = 1, padding = _constant__WEBPACK_IMPORTED_MODULE_2__["constantZero"]; function pack(root) { root.x = dx / 2, root.y = dy / 2; if (radius) { root.eachBefore(radiusLeaf(radius)) .eachAfter(packChildren(padding, 0.5)) .eachBefore(translateChild(1)); } else { root.eachBefore(radiusLeaf(defaultRadius)) .eachAfter(packChildren(_constant__WEBPACK_IMPORTED_MODULE_2__["constantZero"], 1)) .eachAfter(packChildren(padding, root.r / Math.min(dx, dy))) .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r))); } return root; } pack.radius = function(x) { return arguments.length ? (radius = Object(_accessors__WEBPACK_IMPORTED_MODULE_1__["optional"])(x), pack) : radius; }; pack.size = function(x) { return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy]; }; pack.padding = function(x) { return arguments.length ? (padding = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+x), pack) : padding; }; return pack; }); function radiusLeaf(radius) { return function(node) { if (!node.children) { node.r = Math.max(0, +radius(node) || 0); } }; } function packChildren(padding, k) { return function(node) { if (children = node.children) { var children, i, n = children.length, r = padding(node) * k || 0, e; if (r) for (i = 0; i < n; ++i) children[i].r += r; e = Object(_siblings__WEBPACK_IMPORTED_MODULE_0__["packEnclose"])(children); if (r) for (i = 0; i < n; ++i) children[i].r -= r; node.r = e + r; } }; } function translateChild(k) { return function(node) { var parent = node.parent; node.r *= k; if (parent) { node.x = parent.x + k * node.x; node.y = parent.y + k * node.y; } }; } /***/ }), /***/ "./node_modules/d3-hierarchy/src/pack/siblings.js": /*!********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/pack/siblings.js ***! \********************************************************/ /*! exports provided: packEnclose, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "packEnclose", function() { return packEnclose; }); /* harmony import */ var _enclose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enclose */ "./node_modules/d3-hierarchy/src/pack/enclose.js"); function place(b, a, c) { var dx = b.x - a.x, x, a2, dy = b.y - a.y, y, b2, d2 = dx * dx + dy * dy; if (d2) { a2 = a.r + c.r, a2 *= a2; b2 = b.r + c.r, b2 *= b2; if (a2 > b2) { x = (d2 + b2 - a2) / (2 * d2); y = Math.sqrt(Math.max(0, b2 / d2 - x * x)); c.x = b.x - x * dx - y * dy; c.y = b.y - x * dy + y * dx; } else { x = (d2 + a2 - b2) / (2 * d2); y = Math.sqrt(Math.max(0, a2 / d2 - x * x)); c.x = a.x + x * dx - y * dy; c.y = a.y + x * dy + y * dx; } } else { c.x = a.x + c.r; c.y = a.y; } } function intersects(a, b) { var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } function score(node) { var a = node._, b = node.next._, ab = a.r + b.r, dx = (a.x * b.r + b.x * a.r) / ab, dy = (a.y * b.r + b.y * a.r) / ab; return dx * dx + dy * dy; } function Node(circle) { this._ = circle; this.next = null; this.previous = null; } function packEnclose(circles) { if (!(n = circles.length)) return 0; var a, b, c, n, aa, ca, i, j, k, sj, sk; // Place the first circle. a = circles[0], a.x = 0, a.y = 0; if (!(n > 1)) return a.r; // Place the second circle. b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0; if (!(n > 2)) return a.r + b.r; // Place the third circle. place(b, a, c = circles[2]); // Initialize the front-chain using the first three circles a, b and c. a = new Node(a), b = new Node(b), c = new Node(c); a.next = c.previous = b; b.next = a.previous = c; c.next = b.previous = a; // Attempt to place each remaining circle… pack: for (i = 3; i < n; ++i) { place(a._, b._, c = circles[i]), c = new Node(c); // Find the closest intersecting circle on the front-chain, if any. // “Closeness” is determined by linear distance along the front-chain. // “Ahead” or “behind” is likewise determined by linear distance. j = b.next, k = a.previous, sj = b._.r, sk = a._.r; do { if (sj <= sk) { if (intersects(j._, c._)) { b = j, a.next = b, b.previous = a, --i; continue pack; } sj += j._.r, j = j.next; } else { if (intersects(k._, c._)) { a = k, a.next = b, b.previous = a, --i; continue pack; } sk += k._.r, k = k.previous; } } while (j !== k.next); // Success! Insert the new circle c between a and b. c.previous = a, c.next = b, a.next = b.previous = b = c; // Compute the new closest circle pair to the centroid. aa = score(a); while ((c = c.next) !== b) { if ((ca = score(c)) < aa) { a = c, aa = ca; } } b = a.next; } // Compute the enclosing circle of the front chain. a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = Object(_enclose__WEBPACK_IMPORTED_MODULE_0__["default"])(a); // Translate the circles to put the enclosing circle around the origin. for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y; return c.r; } /* harmony default export */ __webpack_exports__["default"] = (function(circles) { packEnclose(circles); return circles; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/partition.js": /*!****************************************************!*\ !*** ./node_modules/d3-hierarchy/src/partition.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _treemap_round__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./treemap/round */ "./node_modules/d3-hierarchy/src/treemap/round.js"); /* harmony import */ var _treemap_dice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treemap/dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var dx = 1, dy = 1, padding = 0, round = false; function partition(root) { var n = root.height + 1; root.x0 = root.y0 = padding; root.x1 = dx; root.y1 = dy / n; root.eachBefore(positionNode(dy, n)); if (round) root.eachBefore(_treemap_round__WEBPACK_IMPORTED_MODULE_0__["default"]); return root; } function positionNode(dy, n) { return function(node) { if (node.children) { Object(_treemap_dice__WEBPACK_IMPORTED_MODULE_1__["default"])(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n); } var x0 = node.x0, y0 = node.y0, x1 = node.x1 - padding, y1 = node.y1 - padding; if (x1 < x0) x0 = x1 = (x0 + x1) / 2; if (y1 < y0) y0 = y1 = (y0 + y1) / 2; node.x0 = x0; node.y0 = y0; node.x1 = x1; node.y1 = y1; }; } partition.round = function(x) { return arguments.length ? (round = !!x, partition) : round; }; partition.size = function(x) { return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy]; }; partition.padding = function(x) { return arguments.length ? (padding = +x, partition) : padding; }; return partition; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/stratify.js": /*!***************************************************!*\ !*** ./node_modules/d3-hierarchy/src/stratify.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./accessors */ "./node_modules/d3-hierarchy/src/accessors.js"); /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js"); var keyPrefix = "$", // Protect against keys like “__proto__”. preroot = {depth: -1}, ambiguous = {}; function defaultId(d) { return d.id; } function defaultParentId(d) { return d.parentId; } /* harmony default export */ __webpack_exports__["default"] = (function() { var id = defaultId, parentId = defaultParentId; function stratify(data) { var d, i, n = data.length, root, parent, node, nodes = new Array(n), nodeId, nodeKey, nodeByKey = {}; for (i = 0; i < n; ++i) { d = data[i], node = nodes[i] = new _hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["Node"](d); if ((nodeId = id(d, i, data)) != null && (nodeId += "")) { nodeKey = keyPrefix + (node.id = nodeId); nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node; } } for (i = 0; i < n; ++i) { node = nodes[i], nodeId = parentId(data[i], i, data); if (nodeId == null || !(nodeId += "")) { if (root) throw new Error("multiple roots"); root = node; } else { parent = nodeByKey[keyPrefix + nodeId]; if (!parent) throw new Error("missing: " + nodeId); if (parent === ambiguous) throw new Error("ambiguous: " + nodeId); if (parent.children) parent.children.push(node); else parent.children = [node]; node.parent = parent; } } if (!root) throw new Error("no root"); root.parent = preroot; root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(_hierarchy_index__WEBPACK_IMPORTED_MODULE_1__["computeHeight"]); root.parent = null; if (n > 0) throw new Error("cycle"); return root; } stratify.id = function(x) { return arguments.length ? (id = Object(_accessors__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : id; }; stratify.parentId = function(x) { return arguments.length ? (parentId = Object(_accessors__WEBPACK_IMPORTED_MODULE_0__["required"])(x), stratify) : parentId; }; return stratify; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/tree.js": /*!***********************************************!*\ !*** ./node_modules/d3-hierarchy/src/tree.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _hierarchy_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hierarchy/index */ "./node_modules/d3-hierarchy/src/hierarchy/index.js"); function defaultSeparation(a, b) { return a.parent === b.parent ? 1 : 2; } // function radialSeparation(a, b) { // return (a.parent === b.parent ? 1 : 2) / a.depth; // } // This function is used to traverse the left contour of a subtree (or // subforest). It returns the successor of v on this contour. This successor is // either given by the leftmost child of v or by the thread of v. The function // returns null if and only if v is on the highest level of its subtree. function nextLeft(v) { var children = v.children; return children ? children[0] : v.t; } // This function works analogously to nextLeft. function nextRight(v) { var children = v.children; return children ? children[children.length - 1] : v.t; } // Shifts the current subtree rooted at w+. This is done by increasing // prelim(w+) and mod(w+) by shift. function moveSubtree(wm, wp, shift) { var change = shift / (wp.i - wm.i); wp.c -= change; wp.s += shift; wm.c += change; wp.z += shift; wp.m += shift; } // All other shifts, applied to the smaller subtrees between w- and w+, are // performed by this function. To prepare the shifts, we have to adjust // change(w+), shift(w+), and change(w-). function executeShifts(v) { var shift = 0, change = 0, children = v.children, i = children.length, w; while (--i >= 0) { w = children[i]; w.z += shift; w.m += shift; shift += w.s + (change += w.c); } } // If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise, // returns the specified (default) ancestor. function nextAncestor(vim, v, ancestor) { return vim.a.parent === v.parent ? vim.a : ancestor; } function TreeNode(node, i) { this._ = node; this.parent = null; this.children = null; this.A = null; // default ancestor this.a = this; // ancestor this.z = 0; // prelim this.m = 0; // mod this.c = 0; // change this.s = 0; // shift this.t = null; // thread this.i = i; // number } TreeNode.prototype = Object.create(_hierarchy_index__WEBPACK_IMPORTED_MODULE_0__["Node"].prototype); function treeRoot(root) { var tree = new TreeNode(root, 0), node, nodes = [tree], child, children, i, n; while (node = nodes.pop()) { if (children = node._.children) { node.children = new Array(n = children.length); for (i = n - 1; i >= 0; --i) { nodes.push(child = node.children[i] = new TreeNode(children[i], i)); child.parent = node; } } } (tree.parent = new TreeNode(null, 0)).children = [tree]; return tree; } // Node-link tree diagram using the Reingold-Tilford "tidy" algorithm /* harmony default export */ __webpack_exports__["default"] = (function() { var separation = defaultSeparation, dx = 1, dy = 1, nodeSize = null; function tree(root) { var t = treeRoot(root); // Compute the layout using Buchheim et al.’s algorithm. t.eachAfter(firstWalk), t.parent.m = -t.z; t.eachBefore(secondWalk); // If a fixed node size is specified, scale x and y. if (nodeSize) root.eachBefore(sizeNode); // If a fixed tree size is specified, scale x and y based on the extent. // Compute the left-most, right-most, and depth-most nodes for extents. else { var left = root, right = root, bottom = root; root.eachBefore(function(node) { if (node.x < left.x) left = node; if (node.x > right.x) right = node; if (node.depth > bottom.depth) bottom = node; }); var s = left === right ? 1 : separation(left, right) / 2, tx = s - left.x, kx = dx / (right.x + s + tx), ky = dy / (bottom.depth || 1); root.eachBefore(function(node) { node.x = (node.x + tx) * kx; node.y = node.depth * ky; }); } return root; } // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is // applied recursively to the children of v, as well as the function // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the // node v is placed to the midpoint of its outermost children. function firstWalk(v) { var children = v.children, siblings = v.parent.children, w = v.i ? siblings[v.i - 1] : null; if (children) { executeShifts(v); var midpoint = (children[0].z + children[children.length - 1].z) / 2; if (w) { v.z = w.z + separation(v._, w._); v.m = v.z - midpoint; } else { v.z = midpoint; } } else if (w) { v.z = w.z + separation(v._, w._); } v.parent.A = apportion(v, w, v.parent.A || siblings[0]); } // Computes all real x-coordinates by summing up the modifiers recursively. function secondWalk(v) { v._.x = v.z + v.parent.m; v.m += v.parent.m; } // The core of the algorithm. Here, a new subtree is combined with the // previous subtrees. Threads are used to traverse the inside and outside // contours of the left and right subtree up to the highest common level. The // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the // superscript o means outside and i means inside, the subscript - means left // subtree and + means right subtree. For summing up the modifiers along the // contour, we use respective variables si+, si-, so-, and so+. Whenever two // nodes of the inside contours conflict, we compute the left one of the // greatest uncommon ancestors using the function ANCESTOR and call MOVE // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees. // Finally, we add a new thread (if necessary). function apportion(v, w, ancestor) { if (w) { var vip = v, vop = v, vim = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim.m, som = vom.m, shift; while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) { vom = nextLeft(vom); vop = nextRight(vop); vop.a = v; shift = vim.z + sim - vip.z - sip + separation(vim._, vip._); if (shift > 0) { moveSubtree(nextAncestor(vim, v, ancestor), v, shift); sip += shift; sop += shift; } sim += vim.m; sip += vip.m; som += vom.m; sop += vop.m; } if (vim && !nextRight(vop)) { vop.t = vim; vop.m += sim - sop; } if (vip && !nextLeft(vom)) { vom.t = vip; vom.m += sip - som; ancestor = v; } } return ancestor; } function sizeNode(node) { node.x *= dx; node.y = node.depth * dy; } tree.separation = function(x) { return arguments.length ? (separation = x, tree) : separation; }; tree.size = function(x) { return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]); }; tree.nodeSize = function(x) { return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null); }; return tree; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/binary.js": /*!*********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/binary.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) { var nodes = parent.children, i, n = nodes.length, sum, sums = new Array(n + 1); for (sums[0] = sum = i = 0; i < n; ++i) { sums[i + 1] = sum += nodes[i].value; } partition(0, n, parent.value, x0, y0, x1, y1); function partition(i, j, value, x0, y0, x1, y1) { if (i >= j - 1) { var node = nodes[i]; node.x0 = x0, node.y0 = y0; node.x1 = x1, node.y1 = y1; return; } var valueOffset = sums[i], valueTarget = (value / 2) + valueOffset, k = i + 1, hi = j - 1; while (k < hi) { var mid = k + hi >>> 1; if (sums[mid] < valueTarget) k = mid + 1; else hi = mid; } if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k; var valueLeft = sums[k] - valueOffset, valueRight = value - valueLeft; if ((x1 - x0) > (y1 - y0)) { var xk = (x0 * valueRight + x1 * valueLeft) / value; partition(i, k, valueLeft, x0, y0, xk, y1); partition(k, j, valueRight, xk, y0, x1, y1); } else { var yk = (y0 * valueRight + y1 * valueLeft) / value; partition(i, k, valueLeft, x0, y0, x1, yk); partition(k, j, valueRight, x0, yk, x1, y1); } } }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/dice.js": /*!*******************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/dice.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) { var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value; while (++i < n) { node = nodes[i], node.y0 = y0, node.y1 = y1; node.x0 = x0, node.x1 = x0 += node.value * k; } }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/index.js": /*!********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/index.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _round__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./round */ "./node_modules/d3-hierarchy/src/treemap/round.js"); /* harmony import */ var _squarify__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js"); /* harmony import */ var _accessors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../accessors */ "./node_modules/d3-hierarchy/src/accessors.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-hierarchy/src/constant.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var tile = _squarify__WEBPACK_IMPORTED_MODULE_1__["default"], round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"], paddingTop = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"], paddingRight = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"], paddingBottom = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"], paddingLeft = _constant__WEBPACK_IMPORTED_MODULE_3__["constantZero"]; function treemap(root) { root.x0 = root.y0 = 0; root.x1 = dx; root.y1 = dy; root.eachBefore(positionNode); paddingStack = [0]; if (round) root.eachBefore(_round__WEBPACK_IMPORTED_MODULE_0__["default"]); return root; } function positionNode(node) { var p = paddingStack[node.depth], x0 = node.x0 + p, y0 = node.y0 + p, x1 = node.x1 - p, y1 = node.y1 - p; if (x1 < x0) x0 = x1 = (x0 + x1) / 2; if (y1 < y0) y0 = y1 = (y0 + y1) / 2; node.x0 = x0; node.y0 = y0; node.x1 = x1; node.y1 = y1; if (node.children) { p = paddingStack[node.depth + 1] = paddingInner(node) / 2; x0 += paddingLeft(node) - p; y0 += paddingTop(node) - p; x1 -= paddingRight(node) - p; y1 -= paddingBottom(node) - p; if (x1 < x0) x0 = x1 = (x0 + x1) / 2; if (y1 < y0) y0 = y1 = (y0 + y1) / 2; tile(node, x0, y0, x1, y1); } } treemap.round = function(x) { return arguments.length ? (round = !!x, treemap) : round; }; treemap.size = function(x) { return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy]; }; treemap.tile = function(x) { return arguments.length ? (tile = Object(_accessors__WEBPACK_IMPORTED_MODULE_2__["required"])(x), treemap) : tile; }; treemap.padding = function(x) { return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner(); }; treemap.paddingInner = function(x) { return arguments.length ? (paddingInner = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingInner; }; treemap.paddingOuter = function(x) { return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop(); }; treemap.paddingTop = function(x) { return arguments.length ? (paddingTop = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingTop; }; treemap.paddingRight = function(x) { return arguments.length ? (paddingRight = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingRight; }; treemap.paddingBottom = function(x) { return arguments.length ? (paddingBottom = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingBottom; }; treemap.paddingLeft = function(x) { return arguments.length ? (paddingLeft = typeof x === "function" ? x : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(+x), treemap) : paddingLeft; }; return treemap; }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/resquarify.js": /*!*************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/resquarify.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js"); /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js"); /* harmony import */ var _squarify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./squarify */ "./node_modules/d3-hierarchy/src/treemap/squarify.js"); /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) { function resquarify(parent, x0, y0, x1, y1) { if ((rows = parent._squarify) && (rows.ratio === ratio)) { var rows, row, nodes, i, j = -1, n, m = rows.length, value = parent.value; while (++j < m) { row = rows[j], nodes = row.children; for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value; if (row.dice) Object(_dice__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value); else Object(_slice__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1); value -= row.value; } } else { parent._squarify = rows = Object(_squarify__WEBPACK_IMPORTED_MODULE_2__["squarifyRatio"])(ratio, parent, x0, y0, x1, y1); rows.ratio = ratio; } } resquarify.ratio = function(x) { return custom((x = +x) > 1 ? x : 1); }; return resquarify; })(_squarify__WEBPACK_IMPORTED_MODULE_2__["phi"])); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/round.js": /*!********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/round.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(node) { node.x0 = Math.round(node.x0); node.y0 = Math.round(node.y0); node.x1 = Math.round(node.x1); node.y1 = Math.round(node.y1); }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/slice.js": /*!********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/slice.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) { var nodes = parent.children, node, i = -1, n = nodes.length, k = parent.value && (y1 - y0) / parent.value; while (++i < n) { node = nodes[i], node.x0 = x0, node.x1 = x1; node.y0 = y0, node.y1 = y0 += node.value * k; } }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/sliceDice.js": /*!************************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/sliceDice.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js"); /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js"); /* harmony default export */ __webpack_exports__["default"] = (function(parent, x0, y0, x1, y1) { (parent.depth & 1 ? _slice__WEBPACK_IMPORTED_MODULE_1__["default"] : _dice__WEBPACK_IMPORTED_MODULE_0__["default"])(parent, x0, y0, x1, y1); }); /***/ }), /***/ "./node_modules/d3-hierarchy/src/treemap/squarify.js": /*!***********************************************************!*\ !*** ./node_modules/d3-hierarchy/src/treemap/squarify.js ***! \***********************************************************/ /*! exports provided: phi, squarifyRatio, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "phi", function() { return phi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "squarifyRatio", function() { return squarifyRatio; }); /* harmony import */ var _dice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dice */ "./node_modules/d3-hierarchy/src/treemap/dice.js"); /* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./node_modules/d3-hierarchy/src/treemap/slice.js"); var phi = (1 + Math.sqrt(5)) / 2; function squarifyRatio(ratio, parent, x0, y0, x1, y1) { var rows = [], nodes = parent.children, row, nodeValue, i0 = 0, i1 = 0, n = nodes.length, dx, dy, value = parent.value, sumValue, minValue, maxValue, newRatio, minRatio, alpha, beta; while (i0 < n) { dx = x1 - x0, dy = y1 - y0; // Find the next non-empty node. do sumValue = nodes[i1++].value; while (!sumValue && i1 < n); minValue = maxValue = sumValue; alpha = Math.max(dy / dx, dx / dy) / (value * ratio); beta = sumValue * sumValue * alpha; minRatio = Math.max(maxValue / beta, beta / minValue); // Keep adding nodes while the aspect ratio maintains or improves. for (; i1 < n; ++i1) { sumValue += nodeValue = nodes[i1].value; if (nodeValue < minValue) minValue = nodeValue; if (nodeValue > maxValue) maxValue = nodeValue; beta = sumValue * sumValue * alpha; newRatio = Math.max(maxValue / beta, beta / minValue); if (newRatio > minRatio) { sumValue -= nodeValue; break; } minRatio = newRatio; } // Position and record the row orientation. rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)}); if (row.dice) Object(_dice__WEBPACK_IMPORTED_MODULE_0__["default"])(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1); else Object(_slice__WEBPACK_IMPORTED_MODULE_1__["default"])(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1); value -= sumValue, i0 = i1; } return rows; } /* harmony default export */ __webpack_exports__["default"] = ((function custom(ratio) { function squarify(parent, x0, y0, x1, y1) { squarifyRatio(ratio, parent, x0, y0, x1, y1); } squarify.ratio = function(x) { return custom((x = +x) > 1 ? x : 1); }; return squarify; })(phi)); /***/ }), /***/ "./node_modules/d3-interpolate/src/array.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/array.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i; for (i = 0; i < na; ++i) x[i] = Object(_value__WEBPACK_IMPORTED_MODULE_0__["default"])(a[i], b[i]); for (; i < nb; ++i) c[i] = b[i]; return function(t) { for (i = 0; i < na; ++i) c[i] = x[i](t); return c; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/basis.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/basis.js ***! \**************************************************/ /*! exports provided: basis, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basis", function() { return basis; }); function basis(t1, v0, v1, v2, v3) { var t2 = t1 * t1, t3 = t2 * t1; return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; } /* harmony default export */ __webpack_exports__["default"] = (function(values) { var n = values.length - 1; return function(t) { var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/basisClosed.js": /*!********************************************************!*\ !*** ./node_modules/d3-interpolate/src/basisClosed.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js"); /* harmony default export */ __webpack_exports__["default"] = (function(values) { var n = values.length; return function(t) { var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; return Object(_basis__WEBPACK_IMPORTED_MODULE_0__["basis"])((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/color.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/color.js ***! \**************************************************/ /*! exports provided: hue, gamma, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hue", function() { return hue; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gamma", function() { return gamma; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return nogamma; }); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-interpolate/src/constant.js"); function linear(a, d) { return function(t) { return a + t * d; }; } function exponential(a, b, y) { return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { return Math.pow(a + t * b, y); }; } function hue(a, b) { var d = b - a; return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); } function gamma(y) { return (y = +y) === 1 ? nogamma : function(a, b) { return b - a ? exponential(a, b, y) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); }; } function nogamma(a, b) { var d = b - a; return d ? linear(a, d) : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a); } /***/ }), /***/ "./node_modules/d3-interpolate/src/constant.js": /*!*****************************************************!*\ !*** ./node_modules/d3-interpolate/src/constant.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/cubehelix.js": /*!******************************************************!*\ !*** ./node_modules/d3-interpolate/src/cubehelix.js ***! \******************************************************/ /*! exports provided: default, cubehelixLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cubehelixLong", function() { return cubehelixLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); function cubehelix(hue) { return (function cubehelixGamma(y) { y = +y; function cubehelix(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(end)).h), s = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s), l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(Math.pow(t, y)); start.opacity = opacity(t); return start + ""; }; } cubehelix.gamma = cubehelixGamma; return cubehelix; })(1); } /* harmony default export */ __webpack_exports__["default"] = (cubehelix(_color__WEBPACK_IMPORTED_MODULE_1__["hue"])); var cubehelixLong = cubehelix(_color__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "./node_modules/d3-interpolate/src/date.js": /*!*************************************************!*\ !*** ./node_modules/d3-interpolate/src/date.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var d = new Date; return a = +a, b -= a, function(t) { return d.setTime(a + b * t), d; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/discrete.js": /*!*****************************************************!*\ !*** ./node_modules/d3-interpolate/src/discrete.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(range) { var n = range.length; return function(t) { return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/hcl.js": /*!************************************************!*\ !*** ./node_modules/d3-interpolate/src/hcl.js ***! \************************************************/ /*! exports provided: default, hclLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hclLong", function() { return hclLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); function hcl(hue) { return function(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hcl"])(end)).h), c = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.c, end.c), l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.c = c(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["default"] = (hcl(_color__WEBPACK_IMPORTED_MODULE_1__["hue"])); var hclLong = hcl(_color__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "./node_modules/d3-interpolate/src/hsl.js": /*!************************************************!*\ !*** ./node_modules/d3-interpolate/src/hsl.js ***! \************************************************/ /*! exports provided: default, hslLong */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hslLong", function() { return hslLong; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); function hsl(hue) { return function(start, end) { var h = hue((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(start)).h, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["hsl"])(end)).h), s = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s), l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l), opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["default"] = (hsl(_color__WEBPACK_IMPORTED_MODULE_1__["hue"])); var hslLong = hsl(_color__WEBPACK_IMPORTED_MODULE_1__["default"]); /***/ }), /***/ "./node_modules/d3-interpolate/src/hue.js": /*!************************************************!*\ !*** ./node_modules/d3-interpolate/src/hue.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var i = Object(_color__WEBPACK_IMPORTED_MODULE_0__["hue"])(+a, +b); return function(t) { var x = i(t); return x - 360 * Math.floor(x / 360); }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/index.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/index.js ***! \**************************************************/ /*! exports provided: interpolate, interpolateArray, interpolateBasis, interpolateBasisClosed, interpolateDate, interpolateDiscrete, interpolateHue, interpolateNumber, interpolateObject, interpolateRound, interpolateString, interpolateTransformCss, interpolateTransformSvg, interpolateZoom, interpolateRgb, interpolateRgbBasis, interpolateRgbBasisClosed, interpolateHsl, interpolateHslLong, interpolateLab, interpolateHcl, interpolateHclLong, interpolateCubehelix, interpolateCubehelixLong, piecewise, quantize */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return _value__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-interpolate/src/array.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return _array__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return _basis__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _basisClosed__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed */ "./node_modules/d3-interpolate/src/basisClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return _basisClosed__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./date */ "./node_modules/d3-interpolate/src/date.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return _date__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _discrete__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./discrete */ "./node_modules/d3-interpolate/src/discrete.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateDiscrete", function() { return _discrete__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _hue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./hue */ "./node_modules/d3-interpolate/src/hue.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHue", function() { return _hue__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return _number__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object */ "./node_modules/d3-interpolate/src/object.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return _object__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _round__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./round */ "./node_modules/d3-interpolate/src/round.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return _round__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./string */ "./node_modules/d3-interpolate/src/string.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return _string__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _transform_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./transform/index */ "./node_modules/d3-interpolate/src/transform/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return _transform_index__WEBPACK_IMPORTED_MODULE_11__["interpolateTransformCss"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return _transform_index__WEBPACK_IMPORTED_MODULE_11__["interpolateTransformSvg"]; }); /* harmony import */ var _zoom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./zoom */ "./node_modules/d3-interpolate/src/zoom.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return _zoom__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./rgb */ "./node_modules/d3-interpolate/src/rgb.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["rgbBasis"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return _rgb__WEBPACK_IMPORTED_MODULE_13__["rgbBasisClosed"]; }); /* harmony import */ var _hsl__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./hsl */ "./node_modules/d3-interpolate/src/hsl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return _hsl__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return _hsl__WEBPACK_IMPORTED_MODULE_14__["hslLong"]; }); /* harmony import */ var _lab__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lab */ "./node_modules/d3-interpolate/src/lab.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return _lab__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _hcl__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./hcl */ "./node_modules/d3-interpolate/src/hcl.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return _hcl__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return _hcl__WEBPACK_IMPORTED_MODULE_16__["hclLong"]; }); /* harmony import */ var _cubehelix__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./cubehelix */ "./node_modules/d3-interpolate/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return _cubehelix__WEBPACK_IMPORTED_MODULE_17__["cubehelixLong"]; }); /* harmony import */ var _piecewise__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./piecewise */ "./node_modules/d3-interpolate/src/piecewise.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return _piecewise__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _quantize__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./quantize */ "./node_modules/d3-interpolate/src/quantize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return _quantize__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/lab.js": /*!************************************************!*\ !*** ./node_modules/d3-interpolate/src/lab.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return lab; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); function lab(start, end) { var l = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(start)).l, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["lab"])(end)).l), a = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.a, end.a), b = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.b, end.b), opacity = Object(_color__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity); return function(t) { start.l = l(t); start.a = a(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } /***/ }), /***/ "./node_modules/d3-interpolate/src/number.js": /*!***************************************************!*\ !*** ./node_modules/d3-interpolate/src/number.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a = +a, b -= a, function(t) { return a + b * t; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/object.js": /*!***************************************************!*\ !*** ./node_modules/d3-interpolate/src/object.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _value__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value */ "./node_modules/d3-interpolate/src/value.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var i = {}, c = {}, k; if (a === null || typeof a !== "object") a = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { if (k in a) { i[k] = Object(_value__WEBPACK_IMPORTED_MODULE_0__["default"])(a[k], b[k]); } else { c[k] = b[k]; } } return function(t) { for (k in i) c[k] = i[k](t); return c; }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/piecewise.js": /*!******************************************************!*\ !*** ./node_modules/d3-interpolate/src/piecewise.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return piecewise; }); function piecewise(interpolate, values) { var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); while (i < n) I[i] = interpolate(v, v = values[++i]); return function(t) { var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); return I[i](t - i); }; } /***/ }), /***/ "./node_modules/d3-interpolate/src/quantize.js": /*!*****************************************************!*\ !*** ./node_modules/d3-interpolate/src/quantize.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(interpolator, n) { var samples = new Array(n); for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); return samples; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/rgb.js": /*!************************************************!*\ !*** ./node_modules/d3-interpolate/src/rgb.js ***! \************************************************/ /*! exports provided: default, rgbBasis, rgbBasisClosed */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasis", function() { return rgbBasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rgbBasisClosed", function() { return rgbBasisClosed; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-interpolate/src/basis.js"); /* harmony import */ var _basisClosed__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basisClosed */ "./node_modules/d3-interpolate/src/basisClosed.js"); /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./color */ "./node_modules/d3-interpolate/src/color.js"); /* harmony default export */ __webpack_exports__["default"] = ((function rgbGamma(y) { var color = Object(_color__WEBPACK_IMPORTED_MODULE_3__["gamma"])(y); function rgb(start, end) { var r = color((start = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(start)).r, (end = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = Object(_color__WEBPACK_IMPORTED_MODULE_3__["default"])(start.opacity, end.opacity); return function(t) { start.r = r(t); start.g = g(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } rgb.gamma = rgbGamma; return rgb; })(1)); function rgbSpline(spline) { return function(colors) { var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color; for (i = 0; i < n; ++i) { color = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["rgb"])(colors[i]); r[i] = color.r || 0; g[i] = color.g || 0; b[i] = color.b || 0; } r = spline(r); g = spline(g); b = spline(b); color.opacity = 1; return function(t) { color.r = r(t); color.g = g(t); color.b = b(t); return color + ""; }; }; } var rgbBasis = rgbSpline(_basis__WEBPACK_IMPORTED_MODULE_1__["default"]); var rgbBasisClosed = rgbSpline(_basisClosed__WEBPACK_IMPORTED_MODULE_2__["default"]); /***/ }), /***/ "./node_modules/d3-interpolate/src/round.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/round.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return a = +a, b -= a, function(t) { return Math.round(a + b * t); }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/string.js": /*!***************************************************!*\ !*** ./node_modules/d3-interpolate/src/string.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js"); var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); function zero(b) { return function() { return b; }; } function one(b) { return function(t) { return b(t) + ""; }; } /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b am, // current match in a bm, // current match in b bs, // string preceding current number in b, if any i = -1, // index in s s = [], // string constants and placeholders q = []; // number interpolators // Coerce inputs to strings. a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b. while ((am = reA.exec(a)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi) { // a string precedes the next number in b bs = b.slice(bi, bs); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match if (s[i]) s[i] += bm; // coalesce with previous string else s[++i] = bm; } else { // interpolate non-matching numbers s[++i] = null; q.push({i: i, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(am, bm)}); } bi = reB.lastIndex; } // Add remains of b. if (bi < b.length) { bs = b.slice(bi); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } // Special optimization for only a single match. // Otherwise, interpolate each of the numbers and rejoin the string. return s.length < 2 ? (q[0] ? one(q[0].x) : zero(b)) : (b = q.length, function(t) { for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); return s.join(""); }); }); /***/ }), /***/ "./node_modules/d3-interpolate/src/transform/decompose.js": /*!****************************************************************!*\ !*** ./node_modules/d3-interpolate/src/transform/decompose.js ***! \****************************************************************/ /*! exports provided: identity, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; }); var degrees = 180 / Math.PI; var identity = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; /* harmony default export */ __webpack_exports__["default"] = (function(a, b, c, d, e, f) { var scaleX, scaleY, skewX; if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e, translateY: f, rotate: Math.atan2(b, a) * degrees, skewX: Math.atan(skewX) * degrees, scaleX: scaleX, scaleY: scaleY }; }); /***/ }), /***/ "./node_modules/d3-interpolate/src/transform/index.js": /*!************************************************************!*\ !*** ./node_modules/d3-interpolate/src/transform/index.js ***! \************************************************************/ /*! exports provided: interpolateTransformCss, interpolateTransformSvg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return interpolateTransformCss; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return interpolateTransformSvg; }); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../number */ "./node_modules/d3-interpolate/src/number.js"); /* harmony import */ var _parse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse */ "./node_modules/d3-interpolate/src/transform/parse.js"); function interpolateTransform(parse, pxComma, pxParen, degParen) { function pop(s) { return s.length ? s.pop() + " " : ""; } function translate(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); q.push({i: i - 4, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)}); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } function rotate(a, b, s, q) { if (a !== b) { if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)}); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a, b, s, q) { if (a !== b) { q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b)}); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } } function scale(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); q.push({i: i - 4, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(xa, xb)}, {i: i - 2, x: Object(_number__WEBPACK_IMPORTED_MODULE_0__["default"])(ya, yb)}); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } return function(a, b) { var s = [], // string constants and placeholders q = []; // number interpolators a = parse(a), b = parse(b); translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); rotate(a.rotate, b.rotate, s, q); skewX(a.skewX, b.skewX, s, q); scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); a = b = null; // gc return function(t) { var i = -1, n = q.length, o; while (++i < n) s[(o = q[i]).i] = o.x(t); return s.join(""); }; }; } var interpolateTransformCss = interpolateTransform(_parse__WEBPACK_IMPORTED_MODULE_1__["parseCss"], "px, ", "px)", "deg)"); var interpolateTransformSvg = interpolateTransform(_parse__WEBPACK_IMPORTED_MODULE_1__["parseSvg"], ", ", ")", ")"); /***/ }), /***/ "./node_modules/d3-interpolate/src/transform/parse.js": /*!************************************************************!*\ !*** ./node_modules/d3-interpolate/src/transform/parse.js ***! \************************************************************/ /*! exports provided: parseCss, parseSvg */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCss", function() { return parseCss; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSvg", function() { return parseSvg; }); /* harmony import */ var _decompose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./decompose */ "./node_modules/d3-interpolate/src/transform/decompose.js"); var cssNode, cssRoot, cssView, svgNode; function parseCss(value) { if (value === "none") return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"]; if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView; cssNode.style.transform = value; value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"); cssRoot.removeChild(cssNode); value = value.slice(7, -1).split(","); return Object(_decompose__WEBPACK_IMPORTED_MODULE_0__["default"])(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]); } function parseSvg(value) { if (value == null) return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"]; if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); svgNode.setAttribute("transform", value); if (!(value = svgNode.transform.baseVal.consolidate())) return _decompose__WEBPACK_IMPORTED_MODULE_0__["identity"]; value = value.matrix; return Object(_decompose__WEBPACK_IMPORTED_MODULE_0__["default"])(value.a, value.b, value.c, value.d, value.e, value.f); } /***/ }), /***/ "./node_modules/d3-interpolate/src/value.js": /*!**************************************************!*\ !*** ./node_modules/d3-interpolate/src/value.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var _rgb__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rgb */ "./node_modules/d3-interpolate/src/rgb.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "./node_modules/d3-interpolate/src/array.js"); /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./date */ "./node_modules/d3-interpolate/src/date.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "./node_modules/d3-interpolate/src/number.js"); /* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./object */ "./node_modules/d3-interpolate/src/object.js"); /* harmony import */ var _string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./string */ "./node_modules/d3-interpolate/src/string.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-interpolate/src/constant.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var t = typeof b, c; return b == null || t === "boolean" ? Object(_constant__WEBPACK_IMPORTED_MODULE_7__["default"])(b) : (t === "number" ? _number__WEBPACK_IMPORTED_MODULE_4__["default"] : t === "string" ? ((c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, _rgb__WEBPACK_IMPORTED_MODULE_1__["default"]) : _string__WEBPACK_IMPORTED_MODULE_6__["default"]) : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? _rgb__WEBPACK_IMPORTED_MODULE_1__["default"] : b instanceof Date ? _date__WEBPACK_IMPORTED_MODULE_3__["default"] : Array.isArray(b) ? _array__WEBPACK_IMPORTED_MODULE_2__["default"] : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object__WEBPACK_IMPORTED_MODULE_5__["default"] : _number__WEBPACK_IMPORTED_MODULE_4__["default"])(a, b); }); /***/ }), /***/ "./node_modules/d3-interpolate/src/zoom.js": /*!*************************************************!*\ !*** ./node_modules/d3-interpolate/src/zoom.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var rho = Math.SQRT2, rho2 = 2, rho4 = 4, epsilon2 = 1e-12; function cosh(x) { return ((x = Math.exp(x)) + 1 / x) / 2; } function sinh(x) { return ((x = Math.exp(x)) - 1 / x) / 2; } function tanh(x) { return ((x = Math.exp(2 * x)) - 1) / (x + 1); } // p0 = [ux0, uy0, w0] // p1 = [ux1, uy1, w1] /* harmony default export */ __webpack_exports__["default"] = (function(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; // Special case for u0 ≅ u1. if (d2 < epsilon2) { S = Math.log(w1 / w0) / rho; i = function(t) { return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S) ]; } } // General case. else { var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); S = (r1 - r0) / rho; i = function(t) { var s = t * S, coshr0 = cosh(r0), u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / cosh(rho * s + r0) ]; } } i.duration = S * 1000; return i; }); /***/ }), /***/ "./node_modules/d3-path/index.js": /*!***************************************!*\ !*** ./node_modules/d3-path/index.js ***! \***************************************/ /*! exports provided: path */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/path */ "./node_modules/d3-path/src/path.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "path", function() { return _src_path__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "./node_modules/d3-path/src/path.js": /*!******************************************!*\ !*** ./node_modules/d3-path/src/path.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon; function Path() { this._x0 = this._y0 = // start of current subpath this._x1 = this._y1 = null; // end of current subpath this._ = ""; } function path() { return new Path; } Path.prototype = path.prototype = { constructor: Path, moveTo: function(x, y) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y); }, closePath: function() { if (this._x1 !== null) { this._x1 = this._x0, this._y1 = this._y0; this._ += "Z"; } }, lineTo: function(x, y) { this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y); }, quadraticCurveTo: function(x1, y1, x, y) { this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, arcTo: function(x1, y1, x2, y2, r) { x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; var x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x1,y1). if (this._x1 === null) { this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1); } // Or, is (x1,y1) coincident with (x0,y0)? Do nothing. else if (!(l01_2 > epsilon)) {} // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear? // Equivalently, is (x1,y1) coincident with (x2,y2)? // Or, is the radius zero? Line to (x1,y1). else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) { this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1); } // Otherwise, draw an arc! else { var x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; // If the start tangent is not coincident with (x0,y0), line to. if (Math.abs(t01 - 1) > epsilon) { this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01); } this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21); } }, arc: function(x, y, r, a0, a1, ccw) { x = +x, y = +y, r = +r; var dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x0,y0). if (this._x1 === null) { this._ += "M" + x0 + "," + y0; } // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0). else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) { this._ += "L" + x0 + "," + y0; } // Is this arc empty? We’re done. if (!r) return; // Does the angle go the wrong way? Flip the direction. if (da < 0) da = da % tau + tau; // Is this a complete circle? Draw two arcs to complete the circle. if (da > tauEpsilon) { this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0); } // Is this arc non-empty? Draw an arc! else if (da > epsilon) { this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1)); } }, rect: function(x, y, w, h) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z"; }, toString: function() { return this._; } }; /* harmony default export */ __webpack_exports__["default"] = (path); /***/ }), /***/ "./node_modules/d3-quadtree/index.js": /*!*******************************************!*\ !*** ./node_modules/d3-quadtree/index.js ***! \*******************************************/ /*! exports provided: quadtree */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_quadtree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/quadtree */ "./node_modules/d3-quadtree/src/quadtree.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "quadtree", function() { return _src_quadtree__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/add.js": /*!*********************************************!*\ !*** ./node_modules/d3-quadtree/src/add.js ***! \*********************************************/ /*! exports provided: default, addAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAll", function() { return addAll; }); /* harmony default export */ __webpack_exports__["default"] = (function(d) { var x = +this._x.call(null, d), y = +this._y.call(null, d); return add(this.cover(x, y), x, y, d); }); function add(tree, x, y, d) { if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points var parent, node = tree._root, leaf = {data: d}, x0 = tree._x0, y0 = tree._y0, x1 = tree._x1, y1 = tree._y1, xm, ym, xp, yp, right, bottom, i, j; // If the tree is empty, initialize the root as a leaf. if (!node) return tree._root = leaf, tree; // Find the existing leaf for the new point, or add it. while (node.length) { if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree; } // Is the new point is exactly coincident with the existing point? xp = +tree._x.call(null, node.data); yp = +tree._y.call(null, node.data); if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree; // Otherwise, split the leaf node until the old and new point are separated. do { parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4); if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm))); return parent[j] = node, parent[i] = leaf, tree; } function addAll(data) { var d, i, n = data.length, x, y, xz = new Array(n), yz = new Array(n), x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity; // Compute the points and their extent. for (i = 0; i < n; ++i) { if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue; xz[i] = x; yz[i] = y; if (x < x0) x0 = x; if (x > x1) x1 = x; if (y < y0) y0 = y; if (y > y1) y1 = y; } // If there were no (valid) points, inherit the existing extent. if (x1 < x0) x0 = this._x0, x1 = this._x1; if (y1 < y0) y0 = this._y0, y1 = this._y1; // Expand the tree to cover the new points. this.cover(x0, y0).cover(x1, y1); // Add the new points. for (i = 0; i < n; ++i) { add(this, xz[i], yz[i], data[i]); } return this; } /***/ }), /***/ "./node_modules/d3-quadtree/src/cover.js": /*!***********************************************!*\ !*** ./node_modules/d3-quadtree/src/cover.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x, y) { if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points var x0 = this._x0, y0 = this._y0, x1 = this._x1, y1 = this._y1; // If the quadtree has no extent, initialize them. // Integer extent are necessary so that if we later double the extent, // the existing quadrant boundaries don’t change due to floating point error! if (isNaN(x0)) { x1 = (x0 = Math.floor(x)) + 1; y1 = (y0 = Math.floor(y)) + 1; } // Otherwise, double repeatedly to cover. else if (x0 > x || x > x1 || y0 > y || y > y1) { var z = x1 - x0, node = this._root, parent, i; switch (i = (y < (y0 + y1) / 2) << 1 | (x < (x0 + x1) / 2)) { case 0: { do parent = new Array(4), parent[i] = node, node = parent; while (z *= 2, x1 = x0 + z, y1 = y0 + z, x > x1 || y > y1); break; } case 1: { do parent = new Array(4), parent[i] = node, node = parent; while (z *= 2, x0 = x1 - z, y1 = y0 + z, x0 > x || y > y1); break; } case 2: { do parent = new Array(4), parent[i] = node, node = parent; while (z *= 2, x1 = x0 + z, y0 = y1 - z, x > x1 || y0 > y); break; } case 3: { do parent = new Array(4), parent[i] = node, node = parent; while (z *= 2, x0 = x1 - z, y0 = y1 - z, x0 > x || y0 > y); break; } } if (this._root && this._root.length) this._root = node; } // If the quadtree covers the point already, just return. else return this; this._x0 = x0; this._y0 = y0; this._x1 = x1; this._y1 = y1; return this; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/data.js": /*!**********************************************!*\ !*** ./node_modules/d3-quadtree/src/data.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var data = []; this.visit(function(node) { if (!node.length) do data.push(node.data); while (node = node.next) }); return data; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/extent.js": /*!************************************************!*\ !*** ./node_modules/d3-quadtree/src/extent.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(_) { return arguments.length ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1]) : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]]; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/find.js": /*!**********************************************!*\ !*** ./node_modules/d3-quadtree/src/find.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js"); /* harmony default export */ __webpack_exports__["default"] = (function(x, y, radius) { var data, x0 = this._x0, y0 = this._y0, x1, y1, x2, y2, x3 = this._x1, y3 = this._y1, quads = [], node = this._root, q, i; if (node) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node, x0, y0, x3, y3)); if (radius == null) radius = Infinity; else { x0 = x - radius, y0 = y - radius; x3 = x + radius, y3 = y + radius; radius *= radius; } while (q = quads.pop()) { // Stop searching if this quadrant can’t contain a closer node. if (!(node = q.node) || (x1 = q.x0) > x3 || (y1 = q.y0) > y3 || (x2 = q.x1) < x0 || (y2 = q.y1) < y0) continue; // Bisect the current quadrant. if (node.length) { var xm = (x1 + x2) / 2, ym = (y1 + y2) / 2; quads.push( new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[3], xm, ym, x2, y2), new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[2], x1, ym, xm, y2), new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[1], xm, y1, x2, ym), new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node[0], x1, y1, xm, ym) ); // Visit the closest quadrant first. if (i = (y >= ym) << 1 | (x >= xm)) { q = quads[quads.length - 1]; quads[quads.length - 1] = quads[quads.length - 1 - i]; quads[quads.length - 1 - i] = q; } } // Visit this point. (Visiting coincident points isn’t necessary!) else { var dx = x - +this._x.call(null, node.data), dy = y - +this._y.call(null, node.data), d2 = dx * dx + dy * dy; if (d2 < radius) { var d = Math.sqrt(radius = d2); x0 = x - d, y0 = y - d; x3 = x + d, y3 = y + d; data = node.data; } } } return data; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/quad.js": /*!**********************************************!*\ !*** ./node_modules/d3-quadtree/src/quad.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(node, x0, y0, x1, y1) { this.node = node; this.x0 = x0; this.y0 = y0; this.x1 = x1; this.y1 = y1; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/quadtree.js": /*!**************************************************!*\ !*** ./node_modules/d3-quadtree/src/quadtree.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quadtree; }); /* harmony import */ var _add__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add */ "./node_modules/d3-quadtree/src/add.js"); /* harmony import */ var _cover__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cover */ "./node_modules/d3-quadtree/src/cover.js"); /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data */ "./node_modules/d3-quadtree/src/data.js"); /* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-quadtree/src/extent.js"); /* harmony import */ var _find__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./find */ "./node_modules/d3-quadtree/src/find.js"); /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-quadtree/src/remove.js"); /* harmony import */ var _root__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./root */ "./node_modules/d3-quadtree/src/root.js"); /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./size */ "./node_modules/d3-quadtree/src/size.js"); /* harmony import */ var _visit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./visit */ "./node_modules/d3-quadtree/src/visit.js"); /* harmony import */ var _visitAfter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./visitAfter */ "./node_modules/d3-quadtree/src/visitAfter.js"); /* harmony import */ var _x__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./x */ "./node_modules/d3-quadtree/src/x.js"); /* harmony import */ var _y__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./y */ "./node_modules/d3-quadtree/src/y.js"); function quadtree(nodes, x, y) { var tree = new Quadtree(x == null ? _x__WEBPACK_IMPORTED_MODULE_10__["defaultX"] : x, y == null ? _y__WEBPACK_IMPORTED_MODULE_11__["defaultY"] : y, NaN, NaN, NaN, NaN); return nodes == null ? tree : tree.addAll(nodes); } function Quadtree(x, y, x0, y0, x1, y1) { this._x = x; this._y = y; this._x0 = x0; this._y0 = y0; this._x1 = x1; this._y1 = y1; this._root = undefined; } function leaf_copy(leaf) { var copy = {data: leaf.data}, next = copy; while (leaf = leaf.next) next = next.next = {data: leaf.data}; return copy; } var treeProto = quadtree.prototype = Quadtree.prototype; treeProto.copy = function() { var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child; if (!node) return copy; if (!node.length) return copy._root = leaf_copy(node), copy; nodes = [{source: node, target: copy._root = new Array(4)}]; while (node = nodes.pop()) { for (var i = 0; i < 4; ++i) { if (child = node.source[i]) { if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)}); else node.target[i] = leaf_copy(child); } } } return copy; }; treeProto.add = _add__WEBPACK_IMPORTED_MODULE_0__["default"]; treeProto.addAll = _add__WEBPACK_IMPORTED_MODULE_0__["addAll"]; treeProto.cover = _cover__WEBPACK_IMPORTED_MODULE_1__["default"]; treeProto.data = _data__WEBPACK_IMPORTED_MODULE_2__["default"]; treeProto.extent = _extent__WEBPACK_IMPORTED_MODULE_3__["default"]; treeProto.find = _find__WEBPACK_IMPORTED_MODULE_4__["default"]; treeProto.remove = _remove__WEBPACK_IMPORTED_MODULE_5__["default"]; treeProto.removeAll = _remove__WEBPACK_IMPORTED_MODULE_5__["removeAll"]; treeProto.root = _root__WEBPACK_IMPORTED_MODULE_6__["default"]; treeProto.size = _size__WEBPACK_IMPORTED_MODULE_7__["default"]; treeProto.visit = _visit__WEBPACK_IMPORTED_MODULE_8__["default"]; treeProto.visitAfter = _visitAfter__WEBPACK_IMPORTED_MODULE_9__["default"]; treeProto.x = _x__WEBPACK_IMPORTED_MODULE_10__["default"]; treeProto.y = _y__WEBPACK_IMPORTED_MODULE_11__["default"]; /***/ }), /***/ "./node_modules/d3-quadtree/src/remove.js": /*!************************************************!*\ !*** ./node_modules/d3-quadtree/src/remove.js ***! \************************************************/ /*! exports provided: default, removeAll */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAll", function() { return removeAll; }); /* harmony default export */ __webpack_exports__["default"] = (function(d) { if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points var parent, node = this._root, retainer, previous, next, x0 = this._x0, y0 = this._y0, x1 = this._x1, y1 = this._y1, x, y, xm, ym, right, bottom, i, j; // If the tree is empty, initialize the root as a leaf. if (!node) return this; // Find the leaf node for the point. // While descending, also retain the deepest parent with a non-removed sibling. if (node.length) while (true) { if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm; if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym; if (!(parent = node, node = node[i = bottom << 1 | right])) return this; if (!node.length) break; if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i; } // Find the point to remove. while (node.data !== d) if (!(previous = node, node = node.next)) return this; if (next = node.next) delete node.next; // If there are multiple coincident points, remove just the point. if (previous) return (next ? previous.next = next : delete previous.next), this; // If this is the root point, remove it. if (!parent) return this._root = next, this; // Remove this leaf. next ? parent[i] = next : delete parent[i]; // If the parent now contains exactly one leaf, collapse superfluous parents. if ((node = parent[0] || parent[1] || parent[2] || parent[3]) && node === (parent[3] || parent[2] || parent[1] || parent[0]) && !node.length) { if (retainer) retainer[j] = node; else this._root = node; } return this; }); function removeAll(data) { for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]); return this; } /***/ }), /***/ "./node_modules/d3-quadtree/src/root.js": /*!**********************************************!*\ !*** ./node_modules/d3-quadtree/src/root.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { return this._root; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/size.js": /*!**********************************************!*\ !*** ./node_modules/d3-quadtree/src/size.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var size = 0; this.visit(function(node) { if (!node.length) do ++size; while (node = node.next) }); return size; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/visit.js": /*!***********************************************!*\ !*** ./node_modules/d3-quadtree/src/visit.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { var quads = [], q, node = this._root, child, x0, y0, x1, y1; if (node) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](node, this._x0, this._y0, this._x1, this._y1)); while (q = quads.pop()) { if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) { var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2; if (child = node[3]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1)); if (child = node[2]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1)); if (child = node[1]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym)); if (child = node[0]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym)); } } return this; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/visitAfter.js": /*!****************************************************!*\ !*** ./node_modules/d3-quadtree/src/visitAfter.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _quad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./quad */ "./node_modules/d3-quadtree/src/quad.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { var quads = [], next = [], q; if (this._root) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](this._root, this._x0, this._y0, this._x1, this._y1)); while (q = quads.pop()) { var node = q.node; if (node.length) { var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2; if (child = node[0]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, y0, xm, ym)); if (child = node[1]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, y0, x1, ym)); if (child = node[2]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, x0, ym, xm, y1)); if (child = node[3]) quads.push(new _quad__WEBPACK_IMPORTED_MODULE_0__["default"](child, xm, ym, x1, y1)); } next.push(q); } while (q = next.pop()) { callback(q.node, q.x0, q.y0, q.x1, q.y1); } return this; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/x.js": /*!*******************************************!*\ !*** ./node_modules/d3-quadtree/src/x.js ***! \*******************************************/ /*! exports provided: defaultX, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultX", function() { return defaultX; }); function defaultX(d) { return d[0]; } /* harmony default export */ __webpack_exports__["default"] = (function(_) { return arguments.length ? (this._x = _, this) : this._x; }); /***/ }), /***/ "./node_modules/d3-quadtree/src/y.js": /*!*******************************************!*\ !*** ./node_modules/d3-quadtree/src/y.js ***! \*******************************************/ /*! exports provided: defaultY, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultY", function() { return defaultY; }); function defaultY(d) { return d[1]; } /* harmony default export */ __webpack_exports__["default"] = (function(_) { return arguments.length ? (this._y = _, this) : this._y; }); /***/ }), /***/ "./node_modules/d3-scale/index.js": /*!****************************************!*\ !*** ./node_modules/d3-scale/index.js ***! \****************************************/ /*! exports provided: scaleBand, scalePoint, scaleIdentity, scaleLinear, scaleLog, scaleOrdinal, scaleImplicit, scalePow, scaleSqrt, scaleQuantile, scaleQuantize, scaleThreshold, scaleTime, scaleUtc, schemeCategory10, schemeCategory20b, schemeCategory20c, schemeCategory20, interpolateCubehelixDefault, interpolateRainbow, interpolateWarm, interpolateCool, interpolateViridis, interpolateMagma, interpolateInferno, interpolatePlasma, scaleSequential */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_band__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/band */ "./node_modules/d3-scale/src/band.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return _src_band__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return _src_band__WEBPACK_IMPORTED_MODULE_0__["point"]; }); /* harmony import */ var _src_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/identity */ "./node_modules/d3-scale/src/identity.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return _src_identity__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _src_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/linear */ "./node_modules/d3-scale/src/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return _src_linear__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _src_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/log */ "./node_modules/d3-scale/src/log.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return _src_log__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _src_ordinal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/ordinal */ "./node_modules/d3-scale/src/ordinal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return _src_ordinal__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return _src_ordinal__WEBPACK_IMPORTED_MODULE_4__["implicit"]; }); /* harmony import */ var _src_pow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/pow */ "./node_modules/d3-scale/src/pow.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return _src_pow__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return _src_pow__WEBPACK_IMPORTED_MODULE_5__["sqrt"]; }); /* harmony import */ var _src_quantile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/quantile */ "./node_modules/d3-scale/src/quantile.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return _src_quantile__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _src_quantize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/quantize */ "./node_modules/d3-scale/src/quantize.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return _src_quantize__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _src_threshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/threshold */ "./node_modules/d3-scale/src/threshold.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return _src_threshold__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _src_time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/time */ "./node_modules/d3-scale/src/time.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return _src_time__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _src_utcTime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./src/utcTime */ "./node_modules/d3-scale/src/utcTime.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return _src_utcTime__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _src_category10__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./src/category10 */ "./node_modules/d3-scale/src/category10.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { return _src_category10__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _src_category20b__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./src/category20b */ "./node_modules/d3-scale/src/category20b.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20b", function() { return _src_category20b__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _src_category20c__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./src/category20c */ "./node_modules/d3-scale/src/category20c.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20c", function() { return _src_category20c__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _src_category20__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./src/category20 */ "./node_modules/d3-scale/src/category20.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "schemeCategory20", function() { return _src_category20__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./src/cubehelix */ "./node_modules/d3-scale/src/cubehelix.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { return _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _src_rainbow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./src/rainbow */ "./node_modules/d3-scale/src/rainbow.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["warm"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { return _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["cool"]; }); /* harmony import */ var _src_viridis__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./src/viridis */ "./node_modules/d3-scale/src/viridis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["magma"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["inferno"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { return _src_viridis__WEBPACK_IMPORTED_MODULE_17__["plasma"]; }); /* harmony import */ var _src_sequential__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./src/sequential */ "./node_modules/d3-scale/src/sequential.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return _src_sequential__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /***/ }), /***/ "./node_modules/d3-scale/src/array.js": /*!********************************************!*\ !*** ./node_modules/d3-scale/src/array.js ***! \********************************************/ /*! exports provided: map, slice */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); var array = Array.prototype; var map = array.map; var slice = array.slice; /***/ }), /***/ "./node_modules/d3-scale/src/band.js": /*!*******************************************!*\ !*** ./node_modules/d3-scale/src/band.js ***! \*******************************************/ /*! exports provided: default, point */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return band; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js"); function band() { var scale = Object(_ordinal__WEBPACK_IMPORTED_MODULE_1__["default"])().unknown(undefined), domain = scale.domain, ordinalRange = scale.range, range = [0, 1], step, bandwidth, round = false, paddingInner = 0, paddingOuter = 0, align = 0.5; delete scale.unknown; function rescale() { var n = domain().length, reverse = range[1] < range[0], start = range[reverse - 0], stop = range[1 - reverse]; step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); if (round) step = Math.floor(step); start += (stop - start - step * (n - paddingInner)) * align; bandwidth = step * (1 - paddingInner); if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); var values = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["range"])(n).map(function(i) { return start + step * i; }); return ordinalRange(reverse ? values.reverse() : values); } scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.range = function(_) { return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = [+_[0], +_[1]], round = true, rescale(); }; scale.bandwidth = function() { return bandwidth; }; scale.step = function() { return step; }; scale.round = function(_) { return arguments.length ? (round = !!_, rescale()) : round; }; scale.padding = function(_) { return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingInner = function(_) { return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingOuter = function(_) { return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; }; scale.align = function(_) { return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; }; scale.copy = function() { return band() .domain(domain()) .range(range) .round(round) .paddingInner(paddingInner) .paddingOuter(paddingOuter) .align(align); }; return rescale(); } function pointish(scale) { var copy = scale.copy; scale.padding = scale.paddingOuter; delete scale.paddingInner; delete scale.paddingOuter; scale.copy = function() { return pointish(copy()); }; return scale; } function point() { return pointish(band().paddingInner(1)); } /***/ }), /***/ "./node_modules/d3-scale/src/category10.js": /*!*************************************************!*\ !*** ./node_modules/d3-scale/src/category10.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")); /***/ }), /***/ "./node_modules/d3-scale/src/category20.js": /*!*************************************************!*\ !*** ./node_modules/d3-scale/src/category20.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")); /***/ }), /***/ "./node_modules/d3-scale/src/category20b.js": /*!**************************************************!*\ !*** ./node_modules/d3-scale/src/category20b.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")); /***/ }), /***/ "./node_modules/d3-scale/src/category20c.js": /*!**************************************************!*\ !*** ./node_modules/d3-scale/src/category20c.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")); /***/ }), /***/ "./node_modules/d3-scale/src/colors.js": /*!*********************************************!*\ !*** ./node_modules/d3-scale/src/colors.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(s) { return s.match(/.{6}/g).map(function(x) { return "#" + x; }); }); /***/ }), /***/ "./node_modules/d3-scale/src/constant.js": /*!***********************************************!*\ !*** ./node_modules/d3-scale/src/constant.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-scale/src/continuous.js": /*!*************************************************!*\ !*** ./node_modules/d3-scale/src/continuous.js ***! \*************************************************/ /*! exports provided: deinterpolateLinear, copy, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deinterpolateLinear", function() { return deinterpolateLinear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copy", function() { return copy; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return continuous; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js"); var unit = [0, 1]; function deinterpolateLinear(a, b) { return (b -= (a = +a)) ? function(x) { return (x - a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_3__["default"])(b); } function deinterpolateClamp(deinterpolate) { return function(a, b) { var d = deinterpolate(a = +a, b = +b); return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); }; }; } function reinterpolateClamp(reinterpolate) { return function(a, b) { var r = reinterpolate(a = +a, b = +b); return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); }; }; } function bimap(domain, range, deinterpolate, reinterpolate) { var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0); else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1); return function(x) { return r0(d0(x)); }; } function polymap(domain, range, deinterpolate, reinterpolate) { var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; // Reverse descending domains. if (domain[j] < domain[0]) { domain = domain.slice().reverse(); range = range.slice().reverse(); } while (++i < j) { d[i] = deinterpolate(domain[i], domain[i + 1]); r[i] = reinterpolate(range[i], range[i + 1]); } return function(x) { var i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 1, j) - 1; return r[i](d[i](x)); }; } function copy(source, target) { return target .domain(source.domain()) .range(source.range()) .interpolate(source.interpolate()) .clamp(source.clamp()); } // deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. // reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b]. function continuous(deinterpolate, reinterpolate) { var domain = unit, range = unit, interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolate"], clamp = false, piecewise, output, input; function rescale() { piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap; output = input = null; return scale; } function scale(x) { return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x); } scale.invert = function(y) { return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); }; scale.domain = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_2__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_4__["default"]), rescale()) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = _array__WEBPACK_IMPORTED_MODULE_2__["slice"].call(_), interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRound"], rescale(); }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, rescale()) : clamp; }; scale.interpolate = function(_) { return arguments.length ? (interpolate = _, rescale()) : interpolate; }; return rescale(); } /***/ }), /***/ "./node_modules/d3-scale/src/cubehelix.js": /*!************************************************!*\ !*** ./node_modules/d3-scale/src/cubehelix.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(300, 0.5, 0.0), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-240, 0.5, 1.0))); /***/ }), /***/ "./node_modules/d3-scale/src/identity.js": /*!***********************************************!*\ !*** ./node_modules/d3-scale/src/identity.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return identity; }); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js"); /* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js"); function identity() { var domain = [0, 1]; function scale(x) { return +x; } scale.invert = scale; scale.domain = scale.range = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_0__["map"].call(_, _number__WEBPACK_IMPORTED_MODULE_2__["default"]), scale) : domain.slice(); }; scale.copy = function() { return identity().domain(domain); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale); } /***/ }), /***/ "./node_modules/d3-scale/src/linear.js": /*!*********************************************!*\ !*** ./node_modules/d3-scale/src/linear.js ***! \*********************************************/ /*! exports provided: linearish, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linearish", function() { return linearish; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return linear; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js"); /* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tickFormat */ "./node_modules/d3-scale/src/tickFormat.js"); function linearish(scale) { var domain = scale.domain; scale.ticks = function(count) { var d = domain(); return Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(d[0], d[d.length - 1], count == null ? 10 : count); }; scale.tickFormat = function(count, specifier) { return Object(_tickFormat__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), count, specifier); }; scale.nice = function(count) { if (count == null) count = 10; var d = domain(), i0 = 0, i1 = d.length - 1, start = d[i0], stop = d[i1], step; if (stop < start) { step = start, start = stop, stop = step; step = i0, i0 = i1, i1 = step; } step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); if (step > 0) { start = Math.floor(start / step) * step; stop = Math.ceil(stop / step) * step; step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); } else if (step < 0) { start = Math.ceil(start * step) / step; stop = Math.floor(stop * step) / step; step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickIncrement"])(start, stop, count); } if (step > 0) { d[i0] = Math.floor(start / step) * step; d[i1] = Math.ceil(stop / step) * step; domain(d); } else if (step < 0) { d[i0] = Math.ceil(start * step) / step; d[i1] = Math.floor(stop * step) / step; domain(d); } return scale; }; return scale; } function linear() { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_2__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]); scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, linear()); }; return linearish(scale); } /***/ }), /***/ "./node_modules/d3-scale/src/log.js": /*!******************************************!*\ !*** ./node_modules/d3-scale/src/log.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return log; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js"); /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js"); function deinterpolate(a, b) { return (b = Math.log(b / a)) ? function(x) { return Math.log(x / a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(b); } function reinterpolate(a, b) { return a < 0 ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); } : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); }; } function pow10(x) { return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; } function powp(base) { return base === 10 ? pow10 : base === Math.E ? Math.exp : function(x) { return Math.pow(base, x); }; } function logp(base) { return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), function(x) { return Math.log(x) / base; }); } function reflect(f) { return function(x) { return -f(-x); }; } function log() { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["default"])(deinterpolate, reinterpolate).domain([1, 10]), domain = scale.domain, base = 10, logs = logp(10), pows = powp(10); function rescale() { logs = logp(base), pows = powp(base); if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows); return scale; } scale.base = function(_) { return arguments.length ? (base = +_, rescale()) : base; }; scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.ticks = function(count) { var d = domain(), u = d[0], v = d[d.length - 1], r; if (r = v < u) i = u, u = v, v = i; var i = logs(u), j = logs(v), p, k, t, n = count == null ? 10 : +count, z = []; if (!(base % 1) && j - i < n) { i = Math.round(i) - 1, j = Math.round(j) + 1; if (u > 0) for (; i < j; ++i) { for (k = 1, p = pows(i); k < base; ++k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } else for (; i < j; ++i) { for (k = base - 1, p = pows(i); k >= 1; --k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } } else { z = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["ticks"])(i, j, Math.min(j - i, n)).map(pows); } return r ? z.reverse() : z; }; scale.tickFormat = function(count, specifier) { if (specifier == null) specifier = base === 10 ? ".0e" : ","; if (typeof specifier !== "function") specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier); if (count === Infinity) return specifier; if (count == null) count = 10; var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate? return function(d) { var i = d / pows(Math.round(logs(d))); if (i * base < base - 0.5) i *= base; return i <= k ? specifier(d) : ""; }; }; scale.nice = function() { return domain(Object(_nice__WEBPACK_IMPORTED_MODULE_3__["default"])(domain(), { floor: function(x) { return pows(Math.floor(logs(x))); }, ceil: function(x) { return pows(Math.ceil(logs(x))); } })); }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_4__["copy"])(scale, log().base(base)); }; return scale; } /***/ }), /***/ "./node_modules/d3-scale/src/nice.js": /*!*******************************************!*\ !*** ./node_modules/d3-scale/src/nice.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(domain, interval) { domain = domain.slice(); var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t; if (x1 < x0) { t = i0, i0 = i1, i1 = t; t = x0, x0 = x1, x1 = t; } domain[i0] = interval.floor(x0); domain[i1] = interval.ceil(x1); return domain; }); /***/ }), /***/ "./node_modules/d3-scale/src/number.js": /*!*********************************************!*\ !*** ./node_modules/d3-scale/src/number.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return +x; }); /***/ }), /***/ "./node_modules/d3-scale/src/ordinal.js": /*!**********************************************!*\ !*** ./node_modules/d3-scale/src/ordinal.js ***! \**********************************************/ /*! exports provided: implicit, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implicit", function() { return implicit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ordinal; }); /* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); var implicit = {name: "implicit"}; function ordinal(range) { var index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(), domain = [], unknown = implicit; range = range == null ? [] : _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(range); function scale(d) { var key = d + "", i = index.get(key); if (!i) { if (unknown !== implicit) return unknown; index.set(key, i = domain.push(d)); } return range[(i - 1) % range.length]; } scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = [], index = Object(d3_collection__WEBPACK_IMPORTED_MODULE_0__["map"])(); var i = -1, n = _.length, d, key; while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d)); return scale; }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), scale) : range.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return ordinal() .domain(domain) .range(range) .unknown(unknown); }; return scale; } /***/ }), /***/ "./node_modules/d3-scale/src/pow.js": /*!******************************************!*\ !*** ./node_modules/d3-scale/src/pow.js ***! \******************************************/ /*! exports provided: default, sqrt */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return pow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; }); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js"); function raise(x, exponent) { return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); } function pow() { var exponent = 1, scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(deinterpolate, reinterpolate), domain = scale.domain; function deinterpolate(a, b) { return (b = raise(b, exponent) - (a = raise(a, exponent))) ? function(x) { return (raise(x, exponent) - a) / b; } : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(b); } function reinterpolate(a, b) { b = raise(b, exponent) - (a = raise(a, exponent)); return function(t) { return raise(a + b * t, 1 / exponent); }; } scale.exponent = function(_) { return arguments.length ? (exponent = +_, domain(domain())) : exponent; }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_2__["copy"])(scale, pow().exponent(exponent)); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_1__["linearish"])(scale); } function sqrt() { return pow().exponent(0.5); } /***/ }), /***/ "./node_modules/d3-scale/src/quantile.js": /*!***********************************************!*\ !*** ./node_modules/d3-scale/src/quantile.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantile; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); function quantile() { var domain = [], range = [], thresholds = []; function rescale() { var i = 0, n = Math.max(1, range.length); thresholds = new Array(n - 1); while (++i < n) thresholds[i - 1] = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["quantile"])(domain, i / n); return scale; } function scale(x) { if (!isNaN(x = +x)) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(thresholds, x)]; } scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : [ i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1] ]; }; scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = []; for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d); domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__["ascending"]); return rescale(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), rescale()) : range.slice(); }; scale.quantiles = function() { return thresholds.slice(); }; scale.copy = function() { return quantile() .domain(domain) .range(range); }; return scale; } /***/ }), /***/ "./node_modules/d3-scale/src/quantize.js": /*!***********************************************!*\ !*** ./node_modules/d3-scale/src/quantize.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return quantize; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js"); function quantize() { var x0 = 0, x1 = 1, n = 1, domain = [0.5], range = [0, 1]; function scale(x) { if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)]; } function rescale() { var i = -1; domain = new Array(n); while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); return scale; } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1]; }; scale.range = function(_) { return arguments.length ? (n = (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_)).length - 1, rescale()) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : i < 1 ? [x0, domain[0]] : i >= n ? [domain[n - 1], x1] : [domain[i - 1], domain[i]]; }; scale.copy = function() { return quantize() .domain([x0, x1]) .range(range); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_2__["linearish"])(scale); } /***/ }), /***/ "./node_modules/d3-scale/src/rainbow.js": /*!**********************************************!*\ !*** ./node_modules/d3-scale/src/rainbow.js ***! \**********************************************/ /*! exports provided: warm, cool, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warm", function() { return warm; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cool", function() { return cool; }); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); var warm = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(-100, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8)); var cool = Object(d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateCubehelixLong"])(Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(260, 0.75, 0.35), Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(80, 1.50, 0.8)); var rainbow = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["cubehelix"])(); /* harmony default export */ __webpack_exports__["default"] = (function(t) { if (t < 0 || t > 1) t -= Math.floor(t); var ts = Math.abs(t - 0.5); rainbow.h = 360 * t - 100; rainbow.s = 1.5 - 1.5 * ts; rainbow.l = 0.8 - 0.9 * ts; return rainbow + ""; }); /***/ }), /***/ "./node_modules/d3-scale/src/sequential.js": /*!*************************************************!*\ !*** ./node_modules/d3-scale/src/sequential.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return sequential; }); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js"); function sequential(interpolator) { var x0 = 0, x1 = 1, clamp = false; function scale(x) { var t = (x - x0) / (x1 - x0); return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [x0, x1]; }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, scale) : clamp; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; scale.copy = function() { return sequential(interpolator).domain([x0, x1]).clamp(clamp); }; return Object(_linear__WEBPACK_IMPORTED_MODULE_0__["linearish"])(scale); } /***/ }), /***/ "./node_modules/d3-scale/src/threshold.js": /*!************************************************!*\ !*** ./node_modules/d3-scale/src/threshold.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return threshold; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); function threshold() { var domain = [0.5], range = [0, 1], n = 1; function scale(x) { if (x <= x) return range[Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisect"])(domain, x, 0, n)]; } scale.domain = function(_) { return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return [domain[i - 1], domain[i]]; }; scale.copy = function() { return threshold() .domain(domain) .range(range); }; return scale; } /***/ }), /***/ "./node_modules/d3-scale/src/tickFormat.js": /*!*************************************************!*\ !*** ./node_modules/d3-scale/src/tickFormat.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(domain, count, specifier) { var start = domain[0], stop = domain[domain.length - 1], step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, count == null ? 10 : count), precision; specifier = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatSpecifier"])(specifier == null ? ",f" : specifier); switch (specifier.type) { case "s": { var value = Math.max(Math.abs(start), Math.abs(stop)); if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionPrefix"])(step, value))) specifier.precision = precision; return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["formatPrefix"])(specifier, value); } case "": case "e": case "g": case "p": case "r": { if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionRound"])(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); break; } case "f": case "%": { if (specifier.precision == null && !isNaN(precision = Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["precisionFixed"])(step))) specifier.precision = precision - (specifier.type === "%") * 2; break; } } return Object(d3_format__WEBPACK_IMPORTED_MODULE_1__["format"])(specifier); }); /***/ }), /***/ "./node_modules/d3-scale/src/time.js": /*!*******************************************!*\ !*** ./node_modules/d3-scale/src/time.js ***! \*******************************************/ /*! exports provided: calendar, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calendar", function() { return calendar; }); /* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/index.js"); /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js"); /* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js"); /* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js"); var durationSecond = 1000, durationMinute = durationSecond * 60, durationHour = durationMinute * 60, durationDay = durationHour * 24, durationWeek = durationDay * 7, durationMonth = durationDay * 30, durationYear = durationDay * 365; function date(t) { return new Date(t); } function number(t) { return t instanceof Date ? +t : +new Date(+t); } function calendar(year, month, week, day, hour, minute, second, millisecond, format) { var scale = Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_5__["deinterpolateLinear"], d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"]), invert = scale.invert, domain = scale.domain; var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y"); var tickIntervals = [ [second, 1, durationSecond], [second, 5, 5 * durationSecond], [second, 15, 15 * durationSecond], [second, 30, 30 * durationSecond], [minute, 1, durationMinute], [minute, 5, 5 * durationMinute], [minute, 15, 15 * durationMinute], [minute, 30, 30 * durationMinute], [ hour, 1, durationHour ], [ hour, 3, 3 * durationHour ], [ hour, 6, 6 * durationHour ], [ hour, 12, 12 * durationHour ], [ day, 1, durationDay ], [ day, 2, 2 * durationDay ], [ week, 1, durationWeek ], [ month, 1, durationMonth ], [ month, 3, 3 * durationMonth ], [ year, 1, durationYear ] ]; function tickFormat(date) { return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? (week(date) < date ? formatDay : formatWeek) : year(date) < date ? formatMonth : formatYear)(date); } function tickInterval(interval, start, stop, step) { if (interval == null) interval = 10; // If a desired tick count is specified, pick a reasonable tick interval // based on the extent of the domain and a rough estimate of tick size. // Otherwise, assume interval is already a time interval and use it. if (typeof interval === "number") { var target = Math.abs(stop - start) / interval, i = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["bisector"])(function(i) { return i[2]; }).right(tickIntervals, target); if (i === tickIntervals.length) { step = Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start / durationYear, stop / durationYear, interval); interval = year; } else if (i) { i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; step = i[1]; interval = i[0]; } else { step = Math.max(Object(d3_array__WEBPACK_IMPORTED_MODULE_0__["tickStep"])(start, stop, interval), 1); interval = millisecond; } } return step == null ? interval : interval.every(step); } scale.invert = function(y) { return new Date(invert(y)); }; scale.domain = function(_) { return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_4__["map"].call(_, number)) : domain().map(date); }; scale.ticks = function(interval, step) { var d = domain(), t0 = d[0], t1 = d[d.length - 1], r = t1 < t0, t; if (r) t = t0, t0 = t1, t1 = t; t = tickInterval(interval, t0, t1, step); t = t ? t.range(t0, t1 + 1) : []; // inclusive stop return r ? t.reverse() : t; }; scale.tickFormat = function(count, specifier) { return specifier == null ? tickFormat : format(specifier); }; scale.nice = function(interval, step) { var d = domain(); return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) ? domain(Object(_nice__WEBPACK_IMPORTED_MODULE_6__["default"])(d, interval)) : scale; }; scale.copy = function() { return Object(_continuous__WEBPACK_IMPORTED_MODULE_5__["copy"])(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); }; return scale; } /* harmony default export */ __webpack_exports__["default"] = (function() { return calendar(d3_time__WEBPACK_IMPORTED_MODULE_2__["timeYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["timeMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_3__["timeFormat"]).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]); }); /***/ }), /***/ "./node_modules/d3-scale/src/utcTime.js": /*!**********************************************!*\ !*** ./node_modules/d3-scale/src/utcTime.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js"); /* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/index.js"); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return Object(_time__WEBPACK_IMPORTED_MODULE_0__["calendar"])(d3_time__WEBPACK_IMPORTED_MODULE_2__["utcYear"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMonth"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcWeek"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcDay"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcHour"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMinute"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcSecond"], d3_time__WEBPACK_IMPORTED_MODULE_2__["utcMillisecond"], d3_time_format__WEBPACK_IMPORTED_MODULE_1__["utcFormat"]).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]); }); /***/ }), /***/ "./node_modules/d3-scale/src/viridis.js": /*!**********************************************!*\ !*** ./node_modules/d3-scale/src/viridis.js ***! \**********************************************/ /*! exports provided: default, magma, inferno, plasma */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "magma", function() { return magma; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inferno", function() { return inferno; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "plasma", function() { return plasma; }); /* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js"); function ramp(range) { var n = range.length; return function(t) { return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; }; } /* harmony default export */ __webpack_exports__["default"] = (ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"))); var magma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")); var inferno = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")); var plasma = ramp(Object(_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")); /***/ }), /***/ "./node_modules/d3-selection/src/constant.js": /*!***************************************************!*\ !*** ./node_modules/d3-selection/src/constant.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function() { return x; }; }); /***/ }), /***/ "./node_modules/d3-selection/src/create.js": /*!*************************************************!*\ !*** ./node_modules/d3-selection/src/create.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js"); /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js"); /* harmony default export */ __webpack_exports__["default"] = (function(name) { return Object(_select__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name).call(document.documentElement)); }); /***/ }), /***/ "./node_modules/d3-selection/src/creator.js": /*!**************************************************!*\ !*** ./node_modules/d3-selection/src/creator.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js"); /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js"); function creatorInherit(name) { return function() { var document = this.ownerDocument, uri = this.namespaceURI; return uri === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"] && document.documentElement.namespaceURI === _namespaces__WEBPACK_IMPORTED_MODULE_1__["xhtml"] ? document.createElement(name) : document.createElementNS(uri, name); }; } function creatorFixed(fullname) { return function() { return this.ownerDocument.createElementNS(fullname.space, fullname.local); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name) { var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name); return (fullname.local ? creatorFixed : creatorInherit)(fullname); }); /***/ }), /***/ "./node_modules/d3-selection/src/index.js": /*!************************************************!*\ !*** ./node_modules/d3-selection/src/index.js ***! \************************************************/ /*! exports provided: create, creator, local, matcher, mouse, namespace, namespaces, clientPoint, select, selectAll, selection, selector, selectorAll, style, touch, touches, window, event, customEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create */ "./node_modules/d3-selection/src/create.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./creator */ "./node_modules/d3-selection/src/creator.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return _creator__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _local__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./local */ "./node_modules/d3-selection/src/local.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "local", function() { return _local__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./matcher */ "./node_modules/d3-selection/src/matcher.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return _matcher__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _mouse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mouse */ "./node_modules/d3-selection/src/mouse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return _mouse__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./namespace */ "./node_modules/d3-selection/src/namespace.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return _namespace__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return _namespaces__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return _point__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/select.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _select__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selectAll.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return _selectAll__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return _selection_index__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selector */ "./node_modules/d3-selection/src/selector.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return _selector__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selectorAll */ "./node_modules/d3-selection/src/selectorAll.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return _selectorAll__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _selection_style__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./selection/style */ "./node_modules/d3-selection/src/selection/style.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "style", function() { return _selection_style__WEBPACK_IMPORTED_MODULE_13__["styleValue"]; }); /* harmony import */ var _touch__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./touch */ "./node_modules/d3-selection/src/touch.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return _touch__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _touches__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./touches */ "./node_modules/d3-selection/src/touches.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return _touches__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./window */ "./node_modules/d3-selection/src/window.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _window__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "event", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["event"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return _selection_on__WEBPACK_IMPORTED_MODULE_17__["customEvent"]; }); /***/ }), /***/ "./node_modules/d3-selection/src/local.js": /*!************************************************!*\ !*** ./node_modules/d3-selection/src/local.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return local; }); var nextId = 0; function local() { return new Local; } function Local() { this._ = "@" + (++nextId).toString(36); } Local.prototype = local.prototype = { constructor: Local, get: function(node) { var id = this._; while (!(id in node)) if (!(node = node.parentNode)) return; return node[id]; }, set: function(node, value) { return node[this._] = value; }, remove: function(node) { return this._ in node && delete node[this._]; }, toString: function() { return this._; } }; /***/ }), /***/ "./node_modules/d3-selection/src/matcher.js": /*!**************************************************!*\ !*** ./node_modules/d3-selection/src/matcher.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(selector) { return function() { return this.matches(selector); }; }); /***/ }), /***/ "./node_modules/d3-selection/src/mouse.js": /*!************************************************!*\ !*** ./node_modules/d3-selection/src/mouse.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function(node) { var event = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])(); if (event.changedTouches) event = event.changedTouches[0]; return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, event); }); /***/ }), /***/ "./node_modules/d3-selection/src/namespace.js": /*!****************************************************!*\ !*** ./node_modules/d3-selection/src/namespace.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _namespaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./namespaces */ "./node_modules/d3-selection/src/namespaces.js"); /* harmony default export */ __webpack_exports__["default"] = (function(name) { var prefix = name += "", i = prefix.indexOf(":"); if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1); return _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProperty(prefix) ? {space: _namespaces__WEBPACK_IMPORTED_MODULE_0__["default"][prefix], local: name} : name; }); /***/ }), /***/ "./node_modules/d3-selection/src/namespaces.js": /*!*****************************************************!*\ !*** ./node_modules/d3-selection/src/namespaces.js ***! \*****************************************************/ /*! exports provided: xhtml, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xhtml", function() { return xhtml; }); var xhtml = "http://www.w3.org/1999/xhtml"; /* harmony default export */ __webpack_exports__["default"] = ({ svg: "http://www.w3.org/2000/svg", xhtml: xhtml, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }); /***/ }), /***/ "./node_modules/d3-selection/src/point.js": /*!************************************************!*\ !*** ./node_modules/d3-selection/src/point.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(node, event) { var svg = node.ownerSVGElement || node; if (svg.createSVGPoint) { var point = svg.createSVGPoint(); point.x = event.clientX, point.y = event.clientY; point = point.matrixTransform(node.getScreenCTM().inverse()); return [point.x, point.y]; } var rect = node.getBoundingClientRect(); return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop]; }); /***/ }), /***/ "./node_modules/d3-selection/src/select.js": /*!*************************************************!*\ !*** ./node_modules/d3-selection/src/select.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(selector) { return typeof selector === "string" ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[document.querySelector(selector)]], [document.documentElement]) : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([[selector]], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]); }); /***/ }), /***/ "./node_modules/d3-selection/src/selectAll.js": /*!****************************************************!*\ !*** ./node_modules/d3-selection/src/selectAll.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(selector) { return typeof selector === "string" ? new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([document.querySelectorAll(selector)], [document.documentElement]) : new _selection_index__WEBPACK_IMPORTED_MODULE_0__["Selection"]([selector == null ? [] : selector], _selection_index__WEBPACK_IMPORTED_MODULE_0__["root"]); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/append.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/append.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js"); /* harmony default export */ __webpack_exports__["default"] = (function(name) { var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name); return this.select(function() { return this.appendChild(create.apply(this, arguments)); }); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/attr.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/attr.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../namespace */ "./node_modules/d3-selection/src/namespace.js"); function attrRemove(name) { return function() { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, value) { return function() { this.setAttribute(name, value); }; } function attrConstantNS(fullname, value) { return function() { this.setAttributeNS(fullname.space, fullname.local, value); }; } function attrFunction(name, value) { return function() { var v = value.apply(this, arguments); if (v == null) this.removeAttribute(name); else this.setAttribute(name, v); }; } function attrFunctionNS(fullname, value) { return function() { var v = value.apply(this, arguments); if (v == null) this.removeAttributeNS(fullname.space, fullname.local); else this.setAttributeNS(fullname.space, fullname.local, v); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { var fullname = Object(_namespace__WEBPACK_IMPORTED_MODULE_0__["default"])(name); if (arguments.length < 2) { var node = this.node(); return fullname.local ? node.getAttributeNS(fullname.space, fullname.local) : node.getAttribute(fullname); } return this.each((value == null ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function" ? (fullname.local ? attrFunctionNS : attrFunction) : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value)); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/call.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/call.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var callback = arguments[0]; arguments[0] = this; callback.apply(null, arguments); return this; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/classed.js": /*!************************************************************!*\ !*** ./node_modules/d3-selection/src/selection/classed.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function classArray(string) { return string.trim().split(/^|\s+/); } function classList(node) { return node.classList || new ClassList(node); } function ClassList(node) { this._node = node; this._names = classArray(node.getAttribute("class") || ""); } ClassList.prototype = { add: function(name) { var i = this._names.indexOf(name); if (i < 0) { this._names.push(name); this._node.setAttribute("class", this._names.join(" ")); } }, remove: function(name) { var i = this._names.indexOf(name); if (i >= 0) { this._names.splice(i, 1); this._node.setAttribute("class", this._names.join(" ")); } }, contains: function(name) { return this._names.indexOf(name) >= 0; } }; function classedAdd(node, names) { var list = classList(node), i = -1, n = names.length; while (++i < n) list.add(names[i]); } function classedRemove(node, names) { var list = classList(node), i = -1, n = names.length; while (++i < n) list.remove(names[i]); } function classedTrue(names) { return function() { classedAdd(this, names); }; } function classedFalse(names) { return function() { classedRemove(this, names); }; } function classedFunction(names, value) { return function() { (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { var names = classArray(name + ""); if (arguments.length < 2) { var list = classList(this.node()), i = -1, n = names.length; while (++i < n) if (!list.contains(names[i])) return false; return true; } return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value)); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/clone.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/clone.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function selection_cloneShallow() { return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling); } function selection_cloneDeep() { return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling); } /* harmony default export */ __webpack_exports__["default"] = (function(deep) { return this.select(deep ? selection_cloneDeep : selection_cloneShallow); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/data.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/data.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-selection/src/constant.js"); var keyPrefix = "$"; // Protect against keys like “__proto__”. function bindIndex(parent, group, enter, update, exit, data) { var i = 0, node, groupLength = group.length, dataLength = data.length; // Put any non-null nodes that fit into update. // Put any null nodes into enter. // Put any remaining data into enter. for (; i < dataLength; ++i) { if (node = group[i]) { node.__data__ = data[i]; update[i] = node; } else { enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]); } } // Put any non-null nodes that don’t fit into exit. for (; i < groupLength; ++i) { if (node = group[i]) { exit[i] = node; } } } function bindKey(parent, group, enter, update, exit, data, key) { var i, node, nodeByKeyValue = {}, groupLength = group.length, dataLength = data.length, keyValues = new Array(groupLength), keyValue; // Compute the key for each node. // If multiple nodes have the same key, the duplicates are added to exit. for (i = 0; i < groupLength; ++i) { if (node = group[i]) { keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group); if (keyValue in nodeByKeyValue) { exit[i] = node; } else { nodeByKeyValue[keyValue] = node; } } } // Compute the key for each datum. // If there a node associated with this key, join and add it to update. // If there is not (or the key is a duplicate), add it to enter. for (i = 0; i < dataLength; ++i) { keyValue = keyPrefix + key.call(parent, data[i], i, data); if (node = nodeByKeyValue[keyValue]) { update[i] = node; node.__data__ = data[i]; nodeByKeyValue[keyValue] = null; } else { enter[i] = new _enter__WEBPACK_IMPORTED_MODULE_1__["EnterNode"](parent, data[i]); } } // Add any remaining nodes that were not bound to data to exit. for (i = 0; i < groupLength; ++i) { if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) { exit[i] = node; } } } /* harmony default export */ __webpack_exports__["default"] = (function(value, key) { if (!value) { data = new Array(this.size()), j = -1; this.each(function(d) { data[++j] = d; }); return data; } var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups; if (typeof value !== "function") value = Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(value); for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) { var parent = parents[j], group = groups[j], groupLength = group.length, data = value.call(parent, parent && parent.__data__, j, parents), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength); bind(parent, group, enterGroup, updateGroup, exitGroup, data, key); // Now connect the enter nodes to their following update node, such that // appendChild can insert the materialized enter node before this node, // rather than at the end of the parent node. for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) { if (previous = enterGroup[i0]) { if (i0 >= i1) i1 = i0 + 1; while (!(next = updateGroup[i1]) && ++i1 < dataLength); previous._next = next || null; } } } update = new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](update, parents); update._enter = enter; update._exit = exit; return update; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/datum.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/datum.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(value) { return arguments.length ? this.property("__data__", value) : this.node().__data__; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/dispatch.js": /*!*************************************************************!*\ !*** ./node_modules/d3-selection/src/selection/dispatch.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js"); function dispatchEvent(node, type, params) { var window = Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node), event = window.CustomEvent; if (typeof event === "function") { event = new event(type, params); } else { event = window.document.createEvent("Event"); if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail; else event.initEvent(type, false, false); } node.dispatchEvent(event); } function dispatchConstant(type, params) { return function() { return dispatchEvent(this, type, params); }; } function dispatchFunction(type, params) { return function() { return dispatchEvent(this, type, params.apply(this, arguments)); }; } /* harmony default export */ __webpack_exports__["default"] = (function(type, params) { return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params)); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/each.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/each.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(callback) { for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) { if (node = group[i]) callback.call(node, node.__data__, i, group); } } return this; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/empty.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/empty.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { return !this.node(); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/enter.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/enter.js ***! \**********************************************************/ /*! exports provided: default, EnterNode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnterNode", function() { return EnterNode; }); /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._enter || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents); }); function EnterNode(parent, datum) { this.ownerDocument = parent.ownerDocument; this.namespaceURI = parent.namespaceURI; this._next = null; this._parent = parent; this.__data__ = datum; } EnterNode.prototype = { constructor: EnterNode, appendChild: function(child) { return this._parent.insertBefore(child, this._next); }, insertBefore: function(child, next) { return this._parent.insertBefore(child, next); }, querySelector: function(selector) { return this._parent.querySelector(selector); }, querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); } }; /***/ }), /***/ "./node_modules/d3-selection/src/selection/exit.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/exit.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _sparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sparse */ "./node_modules/d3-selection/src/selection/sparse.js"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { return new _index__WEBPACK_IMPORTED_MODULE_1__["Selection"](this._exit || this._groups.map(_sparse__WEBPACK_IMPORTED_MODULE_0__["default"]), this._parents); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/filter.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/filter.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony import */ var _matcher__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../matcher */ "./node_modules/d3-selection/src/matcher.js"); /* harmony default export */ __webpack_exports__["default"] = (function(match) { if (typeof match !== "function") match = Object(_matcher__WEBPACK_IMPORTED_MODULE_1__["default"])(match); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { if ((node = group[i]) && match.call(node, node.__data__, i, group)) { subgroup.push(node); } } } return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/html.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/html.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function htmlRemove() { this.innerHTML = ""; } function htmlConstant(value) { return function() { this.innerHTML = value; }; } function htmlFunction(value) { return function() { var v = value.apply(this, arguments); this.innerHTML = v == null ? "" : v; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { return arguments.length ? this.each(value == null ? htmlRemove : (typeof value === "function" ? htmlFunction : htmlConstant)(value)) : this.node().innerHTML; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/index.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/index.js ***! \**********************************************************/ /*! exports provided: root, Selection, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "root", function() { return root; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Selection", function() { return Selection; }); /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./select */ "./node_modules/d3-selection/src/selection/select.js"); /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-selection/src/selection/selectAll.js"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./filter */ "./node_modules/d3-selection/src/selection/filter.js"); /* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./data */ "./node_modules/d3-selection/src/selection/data.js"); /* harmony import */ var _enter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./enter */ "./node_modules/d3-selection/src/selection/enter.js"); /* harmony import */ var _exit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exit */ "./node_modules/d3-selection/src/selection/exit.js"); /* harmony import */ var _join__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./join */ "./node_modules/d3-selection/src/selection/join.js"); /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-selection/src/selection/merge.js"); /* harmony import */ var _order__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./order */ "./node_modules/d3-selection/src/selection/order.js"); /* harmony import */ var _sort__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./sort */ "./node_modules/d3-selection/src/selection/sort.js"); /* harmony import */ var _call__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./call */ "./node_modules/d3-selection/src/selection/call.js"); /* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./nodes */ "./node_modules/d3-selection/src/selection/nodes.js"); /* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node */ "./node_modules/d3-selection/src/selection/node.js"); /* harmony import */ var _size__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./size */ "./node_modules/d3-selection/src/selection/size.js"); /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./empty */ "./node_modules/d3-selection/src/selection/empty.js"); /* harmony import */ var _each__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./each */ "./node_modules/d3-selection/src/selection/each.js"); /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./attr */ "./node_modules/d3-selection/src/selection/attr.js"); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./style */ "./node_modules/d3-selection/src/selection/style.js"); /* harmony import */ var _property__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./property */ "./node_modules/d3-selection/src/selection/property.js"); /* harmony import */ var _classed__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./classed */ "./node_modules/d3-selection/src/selection/classed.js"); /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./text */ "./node_modules/d3-selection/src/selection/text.js"); /* harmony import */ var _html__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./html */ "./node_modules/d3-selection/src/selection/html.js"); /* harmony import */ var _raise__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./raise */ "./node_modules/d3-selection/src/selection/raise.js"); /* harmony import */ var _lower__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./lower */ "./node_modules/d3-selection/src/selection/lower.js"); /* harmony import */ var _append__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./append */ "./node_modules/d3-selection/src/selection/append.js"); /* harmony import */ var _insert__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./insert */ "./node_modules/d3-selection/src/selection/insert.js"); /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-selection/src/selection/remove.js"); /* harmony import */ var _clone__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./clone */ "./node_modules/d3-selection/src/selection/clone.js"); /* harmony import */ var _datum__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./datum */ "./node_modules/d3-selection/src/selection/datum.js"); /* harmony import */ var _on__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./on */ "./node_modules/d3-selection/src/selection/on.js"); /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./dispatch */ "./node_modules/d3-selection/src/selection/dispatch.js"); var root = [null]; function Selection(groups, parents) { this._groups = groups; this._parents = parents; } function selection() { return new Selection([[document.documentElement]], root); } Selection.prototype = selection.prototype = { constructor: Selection, select: _select__WEBPACK_IMPORTED_MODULE_0__["default"], selectAll: _selectAll__WEBPACK_IMPORTED_MODULE_1__["default"], filter: _filter__WEBPACK_IMPORTED_MODULE_2__["default"], data: _data__WEBPACK_IMPORTED_MODULE_3__["default"], enter: _enter__WEBPACK_IMPORTED_MODULE_4__["default"], exit: _exit__WEBPACK_IMPORTED_MODULE_5__["default"], join: _join__WEBPACK_IMPORTED_MODULE_6__["default"], merge: _merge__WEBPACK_IMPORTED_MODULE_7__["default"], order: _order__WEBPACK_IMPORTED_MODULE_8__["default"], sort: _sort__WEBPACK_IMPORTED_MODULE_9__["default"], call: _call__WEBPACK_IMPORTED_MODULE_10__["default"], nodes: _nodes__WEBPACK_IMPORTED_MODULE_11__["default"], node: _node__WEBPACK_IMPORTED_MODULE_12__["default"], size: _size__WEBPACK_IMPORTED_MODULE_13__["default"], empty: _empty__WEBPACK_IMPORTED_MODULE_14__["default"], each: _each__WEBPACK_IMPORTED_MODULE_15__["default"], attr: _attr__WEBPACK_IMPORTED_MODULE_16__["default"], style: _style__WEBPACK_IMPORTED_MODULE_17__["default"], property: _property__WEBPACK_IMPORTED_MODULE_18__["default"], classed: _classed__WEBPACK_IMPORTED_MODULE_19__["default"], text: _text__WEBPACK_IMPORTED_MODULE_20__["default"], html: _html__WEBPACK_IMPORTED_MODULE_21__["default"], raise: _raise__WEBPACK_IMPORTED_MODULE_22__["default"], lower: _lower__WEBPACK_IMPORTED_MODULE_23__["default"], append: _append__WEBPACK_IMPORTED_MODULE_24__["default"], insert: _insert__WEBPACK_IMPORTED_MODULE_25__["default"], remove: _remove__WEBPACK_IMPORTED_MODULE_26__["default"], clone: _clone__WEBPACK_IMPORTED_MODULE_27__["default"], datum: _datum__WEBPACK_IMPORTED_MODULE_28__["default"], on: _on__WEBPACK_IMPORTED_MODULE_29__["default"], dispatch: _dispatch__WEBPACK_IMPORTED_MODULE_30__["default"] }; /* harmony default export */ __webpack_exports__["default"] = (selection); /***/ }), /***/ "./node_modules/d3-selection/src/selection/insert.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/insert.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _creator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../creator */ "./node_modules/d3-selection/src/creator.js"); /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js"); function constantNull() { return null; } /* harmony default export */ __webpack_exports__["default"] = (function(name, before) { var create = typeof name === "function" ? name : Object(_creator__WEBPACK_IMPORTED_MODULE_0__["default"])(name), select = before == null ? constantNull : typeof before === "function" ? before : Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(before); return this.select(function() { return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null); }); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/join.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/join.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(onenter, onupdate, onexit) { var enter = this.enter(), update = this, exit = this.exit(); enter = typeof onenter === "function" ? onenter(enter) : enter.append(onenter + ""); if (onupdate != null) update = onupdate(update); if (onexit == null) exit.remove(); else onexit(exit); return enter && update ? enter.merge(update).order() : update; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/lower.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/lower.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function lower() { if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild); } /* harmony default export */ __webpack_exports__["default"] = (function() { return this.each(lower); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/merge.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/merge.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(selection) { for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group0[i] || group1[i]) { merge[i] = node; } } } for (; j < m0; ++j) { merges[j] = groups0[j]; } return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](merges, this._parents); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/node.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/node.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { for (var group = groups[j], i = 0, n = group.length; i < n; ++i) { var node = group[i]; if (node) return node; } } return null; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/nodes.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/nodes.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var nodes = new Array(this.size()), i = -1; this.each(function() { nodes[++i] = this; }); return nodes; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/on.js": /*!*******************************************************!*\ !*** ./node_modules/d3-selection/src/selection/on.js ***! \*******************************************************/ /*! exports provided: event, default, customEvent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "event", function() { return event; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return customEvent; }); var filterEvents = {}; var event = null; if (typeof document !== "undefined") { var element = document.documentElement; if (!("onmouseenter" in element)) { filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"}; } } function filterContextListener(listener, index, group) { listener = contextListener(listener, index, group); return function(event) { var related = event.relatedTarget; if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) { listener.call(this, event); } }; } function contextListener(listener, index, group) { return function(event1) { var event0 = event; // Events can be reentrant (e.g., focus). event = event1; try { listener.call(this, this.__data__, index, group); } finally { event = event0; } }; } function parseTypenames(typenames) { return typenames.trim().split(/^|\s+/).map(function(t) { var name = "", i = t.indexOf("."); if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); return {type: t, name: name}; }); } function onRemove(typename) { return function() { var on = this.__on; if (!on) return; for (var j = 0, i = -1, m = on.length, o; j < m; ++j) { if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) { this.removeEventListener(o.type, o.listener, o.capture); } else { on[++i] = o; } } if (++i) on.length = i; else delete this.__on; }; } function onAdd(typename, value, capture) { var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener; return function(d, i, group) { var on = this.__on, o, listener = wrap(value, i, group); if (on) for (var j = 0, m = on.length; j < m; ++j) { if ((o = on[j]).type === typename.type && o.name === typename.name) { this.removeEventListener(o.type, o.listener, o.capture); this.addEventListener(o.type, o.listener = listener, o.capture = capture); o.value = value; return; } } this.addEventListener(typename.type, listener, capture); o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture}; if (!on) this.__on = [o]; else on.push(o); }; } /* harmony default export */ __webpack_exports__["default"] = (function(typename, value, capture) { var typenames = parseTypenames(typename + ""), i, n = typenames.length, t; if (arguments.length < 2) { var on = this.node().__on; if (on) for (var j = 0, m = on.length, o; j < m; ++j) { for (i = 0, o = on[j]; i < n; ++i) { if ((t = typenames[i]).type === o.type && t.name === o.name) { return o.value; } } } return; } on = value ? onAdd : onRemove; if (capture == null) capture = false; for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture)); return this; }); function customEvent(event1, listener, that, args) { var event0 = event; event1.sourceEvent = event; event = event1; try { return listener.apply(that, args); } finally { event = event0; } } /***/ }), /***/ "./node_modules/d3-selection/src/selection/order.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/order.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) { for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) { if (node = group[i]) { if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next); next = node; } } } return this; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/property.js": /*!*************************************************************!*\ !*** ./node_modules/d3-selection/src/selection/property.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function propertyRemove(name) { return function() { delete this[name]; }; } function propertyConstant(name, value) { return function() { this[name] = value; }; } function propertyFunction(name, value) { return function() { var v = value.apply(this, arguments); if (v == null) delete this[name]; else this[name] = v; }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { return arguments.length > 1 ? this.each((value == null ? propertyRemove : typeof value === "function" ? propertyFunction : propertyConstant)(name, value)) : this.node()[name]; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/raise.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/raise.js ***! \**********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function raise() { if (this.nextSibling) this.parentNode.appendChild(this); } /* harmony default export */ __webpack_exports__["default"] = (function() { return this.each(raise); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/remove.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/remove.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function remove() { var parent = this.parentNode; if (parent) parent.removeChild(this); } /* harmony default export */ __webpack_exports__["default"] = (function() { return this.each(remove); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/select.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/select.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony import */ var _selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selector */ "./node_modules/d3-selection/src/selector.js"); /* harmony default export */ __webpack_exports__["default"] = (function(select) { if (typeof select !== "function") select = Object(_selector__WEBPACK_IMPORTED_MODULE_1__["default"])(select); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { if ("__data__" in node) subnode.__data__ = node.__data__; subgroup[i] = subnode; } } } return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, this._parents); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/selectAll.js": /*!**************************************************************!*\ !*** ./node_modules/d3-selection/src/selection/selectAll.js ***! \**************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony import */ var _selectorAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selectorAll */ "./node_modules/d3-selection/src/selectorAll.js"); /* harmony default export */ __webpack_exports__["default"] = (function(select) { if (typeof select !== "function") select = Object(_selectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(select); for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { subgroups.push(select.call(node, node.__data__, i, group)); parents.push(node); } } } return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](subgroups, parents); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/size.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/size.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() { var size = 0; this.each(function() { ++size; }); return size; }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/sort.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/sort.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-selection/src/selection/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(compare) { if (!compare) compare = ascending; function compareNode(a, b) { return a && b ? compare(a.__data__, b.__data__) : !a - !b; } for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group[i]) { sortgroup[i] = node; } } sortgroup.sort(compareNode); } return new _index__WEBPACK_IMPORTED_MODULE_0__["Selection"](sortgroups, this._parents).order(); }); function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; } /***/ }), /***/ "./node_modules/d3-selection/src/selection/sparse.js": /*!***********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/sparse.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(update) { return new Array(update.length); }); /***/ }), /***/ "./node_modules/d3-selection/src/selection/style.js": /*!**********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/style.js ***! \**********************************************************/ /*! exports provided: default, styleValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "styleValue", function() { return styleValue; }); /* harmony import */ var _window__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../window */ "./node_modules/d3-selection/src/window.js"); function styleRemove(name) { return function() { this.style.removeProperty(name); }; } function styleConstant(name, value, priority) { return function() { this.style.setProperty(name, value, priority); }; } function styleFunction(name, value, priority) { return function() { var v = value.apply(this, arguments); if (v == null) this.style.removeProperty(name); else this.style.setProperty(name, v, priority); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) { return arguments.length > 1 ? this.each((value == null ? styleRemove : typeof value === "function" ? styleFunction : styleConstant)(name, value, priority == null ? "" : priority)) : styleValue(this.node(), name); }); function styleValue(node, name) { return node.style.getPropertyValue(name) || Object(_window__WEBPACK_IMPORTED_MODULE_0__["default"])(node).getComputedStyle(node, null).getPropertyValue(name); } /***/ }), /***/ "./node_modules/d3-selection/src/selection/text.js": /*!*********************************************************!*\ !*** ./node_modules/d3-selection/src/selection/text.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function textRemove() { this.textContent = ""; } function textConstant(value) { return function() { this.textContent = value; }; } function textFunction(value) { return function() { var v = value.apply(this, arguments); this.textContent = v == null ? "" : v; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { return arguments.length ? this.each(value == null ? textRemove : (typeof value === "function" ? textFunction : textConstant)(value)) : this.node().textContent; }); /***/ }), /***/ "./node_modules/d3-selection/src/selector.js": /*!***************************************************!*\ !*** ./node_modules/d3-selection/src/selector.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function none() {} /* harmony default export */ __webpack_exports__["default"] = (function(selector) { return selector == null ? none : function() { return this.querySelector(selector); }; }); /***/ }), /***/ "./node_modules/d3-selection/src/selectorAll.js": /*!******************************************************!*\ !*** ./node_modules/d3-selection/src/selectorAll.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function empty() { return []; } /* harmony default export */ __webpack_exports__["default"] = (function(selector) { return selector == null ? empty : function() { return this.querySelectorAll(selector); }; }); /***/ }), /***/ "./node_modules/d3-selection/src/sourceEvent.js": /*!******************************************************!*\ !*** ./node_modules/d3-selection/src/sourceEvent.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _selection_on__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selection/on */ "./node_modules/d3-selection/src/selection/on.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var current = _selection_on__WEBPACK_IMPORTED_MODULE_0__["event"], source; while (source = current.sourceEvent) current = source; return current; }); /***/ }), /***/ "./node_modules/d3-selection/src/touch.js": /*!************************************************!*\ !*** ./node_modules/d3-selection/src/touch.js ***! \************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function(node, touches, identifier) { if (arguments.length < 3) identifier = touches, touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().changedTouches; for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) { if ((touch = touches[i]).identifier === identifier) { return Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touch); } } return null; }); /***/ }), /***/ "./node_modules/d3-selection/src/touches.js": /*!**************************************************!*\ !*** ./node_modules/d3-selection/src/touches.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _sourceEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sourceEvent */ "./node_modules/d3-selection/src/sourceEvent.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./point */ "./node_modules/d3-selection/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function(node, touches) { if (touches == null) touches = Object(_sourceEvent__WEBPACK_IMPORTED_MODULE_0__["default"])().touches; for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) { points[i] = Object(_point__WEBPACK_IMPORTED_MODULE_1__["default"])(node, touches[i]); } return points; }); /***/ }), /***/ "./node_modules/d3-selection/src/window.js": /*!*************************************************!*\ !*** ./node_modules/d3-selection/src/window.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(node) { return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node || (node.document && node) // node is a Window || node.defaultView; // node is a Document }); /***/ }), /***/ "./node_modules/d3-shape/src/arc.js": /*!******************************************!*\ !*** ./node_modules/d3-shape/src/arc.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./math */ "./node_modules/d3-shape/src/math.js"); function arcInnerRadius(d) { return d.innerRadius; } function arcOuterRadius(d) { return d.outerRadius; } function arcStartAngle(d) { return d.startAngle; } function arcEndAngle(d) { return d.endAngle; } function arcPadAngle(d) { return d && d.padAngle; // Note: optional! } function intersect(x0, y0, x1, y1, x2, y2, x3, y3) { var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10; if (t * t < _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) return; t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t; return [x0 + t * x10, y0 + t * y10]; } // Compute perpendicular offset line of length rc. // http://mathworld.wolfram.com/Circle-LineIntersection.html function cornerTangents(x0, y0, x1, y1, r1, rc, cw) { var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["max"])(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00; // Pick the closer of the two intersection points. // TODO Is there a faster way to determine which intersection to use? if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1; return { cx: cx0, cy: cy0, x01: -ox, y01: -oy, x11: cx0 * (r1 / r - 1), y11: cy0 * (r1 / r - 1) }; } /* harmony default export */ __webpack_exports__["default"] = (function() { var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null; function arc() { var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"], a1 = endAngle.apply(this, arguments) - _math__WEBPACK_IMPORTED_MODULE_2__["halfPi"], da = Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(a1 - a0), cw = a1 > a0; if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); // Ensure that the outer radius is always larger than the inner radius. if (r1 < r0) r = r1, r1 = r0, r0 = r; // Is it a point? if (!(r1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(0, 0); // Or is it a circle or annulus? else if (da > _math__WEBPACK_IMPORTED_MODULE_2__["tau"] - _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { context.moveTo(r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a0), r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a0)); context.arc(0, 0, r1, a0, a1, !cw); if (r0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { context.moveTo(r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a1), r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a1)); context.arc(0, 0, r0, a1, a0, cw); } } // Or is it a circular or annular sector? else { var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = (ap > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) && (padRadius ? +padRadius.apply(this, arguments) : Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(r0 * r0 + r1 * r1)), rc = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["abs"])(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1; // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0. if (rp > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { var p0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)), p1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["asin"])(rp / r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(ap)); if ((da0 -= p0 * 2) > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0; else da0 = 0, a00 = a10 = (a0 + a1) / 2; if ((da1 -= p1 * 2) > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1; else da1 = 0, a01 = a11 = (a0 + a1) / 2; } var x01 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a01), y01 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a01), x10 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a10), y10 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a10); // Apply rounded corners? if (rc > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { var x11 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a11), y11 = r1 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a11), x00 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a00), y00 = r0 * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a00), oc; // Restrict the corner radius according to the sector angle. if (da < _math__WEBPACK_IMPORTED_MODULE_2__["pi"] && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) { var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(Object(_math__WEBPACK_IMPORTED_MODULE_2__["acos"])((ax * bx + ay * by) / (Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(ax * ax + ay * ay) * Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(bx * bx + by * by))) / 2), lc = Object(_math__WEBPACK_IMPORTED_MODULE_2__["sqrt"])(oc[0] * oc[0] + oc[1] * oc[1]); rc0 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r0 - lc) / (kc - 1)); rc1 = Object(_math__WEBPACK_IMPORTED_MODULE_2__["min"])(rc, (r1 - lc) / (kc + 1)); } } // Is the sector collapsed to a line? if (!(da1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.moveTo(x01, y01); // Does the sector’s outer ring have rounded corners? else if (rc1 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw); t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw); context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw); context.arc(0, 0, r1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), !cw); context.arc(t1.cx, t1.cy, rc1, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); } } // Or is the outer ring just a circular arc? else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw); // Is there no inner ring, and it’s a circular sector? // Or perhaps it’s an annular sector collapsed due to padding? if (!(r0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) || !(da0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"])) context.lineTo(x10, y10); // Does the sector’s inner ring (or point) have rounded corners? else if (rc0 > _math__WEBPACK_IMPORTED_MODULE_2__["epsilon"]) { t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw); t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw); context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y01, t0.x01), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.y11, t0.x11), !cw); context.arc(0, 0, r0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t0.cy + t0.y11, t0.cx + t0.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.cy + t1.y11, t1.cx + t1.x11), cw); context.arc(t1.cx, t1.cy, rc0, Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y11, t1.x11), Object(_math__WEBPACK_IMPORTED_MODULE_2__["atan2"])(t1.y01, t1.x01), !cw); } } // Or is the inner ring just a circular arc? else context.arc(0, 0, r0, a10, a00, cw); } context.closePath(); if (buffer) return context = null, buffer + "" || null; } arc.centroid = function() { var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math__WEBPACK_IMPORTED_MODULE_2__["pi"] / 2; return [Object(_math__WEBPACK_IMPORTED_MODULE_2__["cos"])(a) * r, Object(_math__WEBPACK_IMPORTED_MODULE_2__["sin"])(a) * r]; }; arc.innerRadius = function(_) { return arguments.length ? (innerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : innerRadius; }; arc.outerRadius = function(_) { return arguments.length ? (outerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : outerRadius; }; arc.cornerRadius = function(_) { return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : cornerRadius; }; arc.padRadius = function(_) { return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padRadius; }; arc.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : startAngle; }; arc.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : endAngle; }; arc.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padAngle; }; arc.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), arc) : context; }; return arc; }); /***/ }), /***/ "./node_modules/d3-shape/src/area.js": /*!*******************************************!*\ !*** ./node_modules/d3-shape/src/area.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js"); /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./point */ "./node_modules/d3-shape/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var x0 = _point__WEBPACK_IMPORTED_MODULE_4__["x"], x1 = null, y0 = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(0), y1 = _point__WEBPACK_IMPORTED_MODULE_4__["y"], defined = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(true), context = null, curve = _curve_linear__WEBPACK_IMPORTED_MODULE_2__["default"], output = null; function area(data) { var i, j, k, n = data.length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n); if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) { j = i; output.areaStart(); output.lineStart(); } else { output.lineEnd(); output.lineStart(); for (k = i - 1; k >= j; --k) { output.point(x0z[k], y0z[k]); } output.lineEnd(); output.areaEnd(); } } if (defined0) { x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); } } if (buffer) return output = null, buffer + "" || null; } function arealine() { return Object(_line__WEBPACK_IMPORTED_MODULE_3__["default"])().defined(defined).curve(curve).context(context); } area.x = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), x1 = null, area) : x0; }; area.x0 = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x0; }; area.x1 = function(_) { return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x1; }; area.y = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), y1 = null, area) : y0; }; area.y0 = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y0; }; area.y1 = function(_) { return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y1; }; area.lineX0 = area.lineY0 = function() { return arealine().x(x0).y(y0); }; area.lineY1 = function() { return arealine().x(x0).y(y1); }; area.lineX1 = function() { return arealine().x(x1).y(y0); }; area.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), area) : defined; }; area.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; }; area.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; }; return area; }); /***/ }), /***/ "./node_modules/d3-shape/src/areaRadial.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/areaRadial.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _curve_radial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial */ "./node_modules/d3-shape/src/curve/radial.js"); /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./node_modules/d3-shape/src/area.js"); /* harmony import */ var _lineRadial__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial */ "./node_modules/d3-shape/src/lineRadial.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var a = Object(_area__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"]), c = a.curve, x0 = a.lineX0, x1 = a.lineX1, y0 = a.lineY0, y1 = a.lineY1; a.angle = a.x, delete a.x; a.startAngle = a.x0, delete a.x0; a.endAngle = a.x1, delete a.x1; a.radius = a.y, delete a.y; a.innerRadius = a.y0, delete a.y0; a.outerRadius = a.y1, delete a.y1; a.lineStartAngle = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x0()); }, delete a.lineX0; a.lineEndAngle = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(x1()); }, delete a.lineX1; a.lineInnerRadius = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y0()); }, delete a.lineY0; a.lineOuterRadius = function() { return Object(_lineRadial__WEBPACK_IMPORTED_MODULE_2__["lineRadial"])(y1()); }, delete a.lineY1; a.curve = function(_) { return arguments.length ? c(Object(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve; }; return a; }); /***/ }), /***/ "./node_modules/d3-shape/src/array.js": /*!********************************************!*\ !*** ./node_modules/d3-shape/src/array.js ***! \********************************************/ /*! exports provided: slice */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slice", function() { return slice; }); var slice = Array.prototype.slice; /***/ }), /***/ "./node_modules/d3-shape/src/constant.js": /*!***********************************************!*\ !*** ./node_modules/d3-shape/src/constant.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x) { return function constant() { return x; }; }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/basis.js": /*!**************************************************!*\ !*** ./node_modules/d3-shape/src/curve/basis.js ***! \**************************************************/ /*! exports provided: point, Basis, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Basis", function() { return Basis; }); function point(that, x, y) { that._context.bezierCurveTo( (2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6 ); } function Basis(context) { this._context = context; } Basis.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 3: point(this, this._x1, this._y1); // proceed case 2: this._context.lineTo(this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Basis(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/basisClosed.js": /*!********************************************************!*\ !*** ./node_modules/d3-shape/src/curve/basisClosed.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js"); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js"); function BasisClosed(context) { this._context = context; } BasisClosed.prototype = { areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x2, this._y2); this._context.closePath(); break; } case 2: { this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3); this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3); this._context.closePath(); break; } case 3: { this.point(this._x2, this._y2); this.point(this._x3, this._y3); this.point(this._x4, this._y4); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x2 = x, this._y2 = y; break; case 1: this._point = 2; this._x3 = x, this._y3 = y; break; case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break; default: Object(_basis__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new BasisClosed(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/basisOpen.js": /*!******************************************************!*\ !*** ./node_modules/d3-shape/src/curve/basisOpen.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js"); function BasisOpen(context) { this._context = context; } BasisOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break; case 3: this._point = 4; // proceed default: Object(_basis__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new BasisOpen(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/bundle.js": /*!***************************************************!*\ !*** ./node_modules/d3-shape/src/curve/bundle.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _basis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis */ "./node_modules/d3-shape/src/curve/basis.js"); function Bundle(context, beta) { this._basis = new _basis__WEBPACK_IMPORTED_MODULE_0__["Basis"](context); this._beta = beta; } Bundle.prototype = { lineStart: function() { this._x = []; this._y = []; this._basis.lineStart(); }, lineEnd: function() { var x = this._x, y = this._y, j = x.length - 1; if (j > 0) { var x0 = x[0], y0 = y[0], dx = x[j] - x0, dy = y[j] - y0, i = -1, t; while (++i <= j) { t = i / j; this._basis.point( this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy) ); } } this._x = this._y = null; this._basis.lineEnd(); }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(beta) { function bundle(context) { return beta === 1 ? new _basis__WEBPACK_IMPORTED_MODULE_0__["Basis"](context) : new Bundle(context, beta); } bundle.beta = function(beta) { return custom(+beta); }; return bundle; })(0.85)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/cardinal.js": /*!*****************************************************!*\ !*** ./node_modules/d3-shape/src/curve/cardinal.js ***! \*****************************************************/ /*! exports provided: point, Cardinal, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cardinal", function() { return Cardinal; }); function point(that, x, y) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), that._y1 + that._k * (that._y2 - that._y0), that._x2 + that._k * (that._x1 - x), that._y2 + that._k * (that._y1 - y), that._x2, that._y2 ); } function Cardinal(context, tension) { this._context = context; this._k = (1 - tension) / 6; } Cardinal.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: point(this, this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; this._x1 = x, this._y1 = y; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new Cardinal(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/cardinalClosed.js": /*!***********************************************************!*\ !*** ./node_modules/d3-shape/src/curve/cardinalClosed.js ***! \***********************************************************/ /*! exports provided: CardinalClosed, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalClosed", function() { return CardinalClosed; }); /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js"); /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js"); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalClosed.prototype = { areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(_cardinal__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new CardinalClosed(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/cardinalOpen.js": /*!*********************************************************!*\ !*** ./node_modules/d3-shape/src/curve/cardinalOpen.js ***! \*********************************************************/ /*! exports provided: CardinalOpen, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CardinalOpen", function() { return CardinalOpen; }); /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js"); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(_cardinal__WEBPACK_IMPORTED_MODULE_0__["point"])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(tension) { function cardinal(context) { return new CardinalOpen(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/catmullRom.js": /*!*******************************************************!*\ !*** ./node_modules/d3-shape/src/curve/catmullRom.js ***! \*******************************************************/ /*! exports provided: point, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "point", function() { return point; }); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js"); /* harmony import */ var _cardinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js"); function point(that, x, y) { var x1 = that._x1, y1 = that._y1, x2 = that._x2, y2 = that._y2; if (that._l01_a > _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) { var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, n = 3 * that._l01_a * (that._l01_a + that._l12_a); x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n; y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n; } if (that._l23_a > _math__WEBPACK_IMPORTED_MODULE_0__["epsilon"]) { var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, m = 3 * that._l23_a * (that._l23_a + that._l12_a); x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m; y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m; } that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); } function CatmullRom(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRom.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: this.point(this._x2, this._y2); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRom(context, alpha) : new _cardinal__WEBPACK_IMPORTED_MODULE_1__["Cardinal"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/catmullRomClosed.js": /*!*************************************************************!*\ !*** ./node_modules/d3-shape/src/curve/catmullRomClosed.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cardinalClosed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalClosed */ "./node_modules/d3-shape/src/curve/cardinalClosed.js"); /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js"); /* harmony import */ var _catmullRom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js"); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomClosed.prototype = { areaStart: _noop__WEBPACK_IMPORTED_MODULE_1__["default"], areaEnd: _noop__WEBPACK_IMPORTED_MODULE_1__["default"], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(_catmullRom__WEBPACK_IMPORTED_MODULE_2__["point"])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed__WEBPACK_IMPORTED_MODULE_0__["CardinalClosed"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/catmullRomOpen.js": /*!***********************************************************!*\ !*** ./node_modules/d3-shape/src/curve/catmullRomOpen.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _cardinalOpen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinalOpen */ "./node_modules/d3-shape/src/curve/cardinalOpen.js"); /* harmony import */ var _catmullRom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js"); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(_catmullRom__WEBPACK_IMPORTED_MODULE_1__["point"])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["default"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen__WEBPACK_IMPORTED_MODULE_0__["CardinalOpen"](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /***/ "./node_modules/d3-shape/src/curve/linear.js": /*!***************************************************!*\ !*** ./node_modules/d3-shape/src/curve/linear.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function Linear(context) { this._context = context; } Linear.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: this._context.lineTo(x, y); break; } } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Linear(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/linearClosed.js": /*!*********************************************************!*\ !*** ./node_modules/d3-shape/src/curve/linearClosed.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop */ "./node_modules/d3-shape/src/noop.js"); function LinearClosed(context) { this._context = context; } LinearClosed.prototype = { areaStart: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], areaEnd: _noop__WEBPACK_IMPORTED_MODULE_0__["default"], lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._point) this._context.closePath(); }, point: function(x, y) { x = +x, y = +y; if (this._point) this._context.lineTo(x, y); else this._point = 1, this._context.moveTo(x, y); } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new LinearClosed(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/monotone.js": /*!*****************************************************!*\ !*** ./node_modules/d3-shape/src/curve/monotone.js ***! \*****************************************************/ /*! exports provided: monotoneX, monotoneY */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneX", function() { return monotoneX; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monotoneY", function() { return monotoneY; }); function sign(x) { return x < 0 ? -1 : 1; } // Calculate the slopes of the tangents (Hermite-type interpolation) based on // the following paper: Steffen, M. 1990. A Simple Method for Monotonic // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO. // NOV(II), P. 443, 1990. function slope3(that, x2, y2) { var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0; } // Calculate a one-sided slope. function slope2(that, t) { var h = that._x1 - that._x0; return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; } // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations // "you can express cubic Hermite interpolation in terms of cubic Bézier curves // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1". function point(that, t0, t1) { var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); } function MonotoneX(context) { this._context = context; } MonotoneX.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x1, this._y1); break; case 3: point(this, this._t0, slope2(this, this._t0)); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { var t1 = NaN; x = +x, y = +y; if (x === this._x1 && y === this._y1) return; // Ignore coincident points. switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break; default: point(this, this._t0, t1 = slope3(this, x, y)); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; this._t0 = t1; } } function MonotoneY(context) { this._context = new ReflectContext(context); } (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { MonotoneX.prototype.point.call(this, y, x); }; function ReflectContext(context) { this._context = context; } ReflectContext.prototype = { moveTo: function(x, y) { this._context.moveTo(y, x); }, closePath: function() { this._context.closePath(); }, lineTo: function(x, y) { this._context.lineTo(y, x); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); } }; function monotoneX(context) { return new MonotoneX(context); } function monotoneY(context) { return new MonotoneY(context); } /***/ }), /***/ "./node_modules/d3-shape/src/curve/natural.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/curve/natural.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function Natural(context) { this._context = context; } Natural.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = []; this._y = []; }, lineEnd: function() { var x = this._x, y = this._y, n = x.length; if (n) { this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]); if (n === 2) { this._context.lineTo(x[1], y[1]); } else { var px = controlPoints(x), py = controlPoints(y); for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) { this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); } } } if (this._line || (this._line !== 0 && n === 1)) this._context.closePath(); this._line = 1 - this._line; this._x = this._y = null; }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; // See https://www.particleincell.com/2012/bezier-splines/ for derivation. function controlPoints(x) { var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n); a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1]; for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n]; for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1]; a[n - 1] = r[n - 1] / b[n - 1]; for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; b[n - 1] = (x[n] + a[n - 1]) / 2; for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; return [a, b]; } /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Natural(context); }); /***/ }), /***/ "./node_modules/d3-shape/src/curve/radial.js": /*!***************************************************!*\ !*** ./node_modules/d3-shape/src/curve/radial.js ***! \***************************************************/ /*! exports provided: curveRadialLinear, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "curveRadialLinear", function() { return curveRadialLinear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return curveRadial; }); /* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-shape/src/curve/linear.js"); var curveRadialLinear = curveRadial(_linear__WEBPACK_IMPORTED_MODULE_0__["default"]); function Radial(curve) { this._curve = curve; } Radial.prototype = { areaStart: function() { this._curve.areaStart(); }, areaEnd: function() { this._curve.areaEnd(); }, lineStart: function() { this._curve.lineStart(); }, lineEnd: function() { this._curve.lineEnd(); }, point: function(a, r) { this._curve.point(r * Math.sin(a), r * -Math.cos(a)); } }; function curveRadial(curve) { function radial(context) { return new Radial(curve(context)); } radial._curve = curve; return radial; } /***/ }), /***/ "./node_modules/d3-shape/src/curve/step.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/curve/step.js ***! \*************************************************/ /*! exports provided: default, stepBefore, stepAfter */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepBefore", function() { return stepBefore; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stepAfter", function() { return stepAfter; }); function Step(context, t) { this._context = context; this._t = t; } Step.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = this._y = NaN; this._point = 0; }, lineEnd: function() { if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y); if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: { if (this._t <= 0) { this._context.lineTo(this._x, y); this._context.lineTo(x, y); } else { var x1 = this._x * (1 - this._t) + x * this._t; this._context.lineTo(x1, this._y); this._context.lineTo(x1, y); } break; } } this._x = x, this._y = y; } }; /* harmony default export */ __webpack_exports__["default"] = (function(context) { return new Step(context, 0.5); }); function stepBefore(context) { return new Step(context, 0); } function stepAfter(context) { return new Step(context, 1); } /***/ }), /***/ "./node_modules/d3-shape/src/descending.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/descending.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /***/ "./node_modules/d3-shape/src/identity.js": /*!***********************************************!*\ !*** ./node_modules/d3-shape/src/identity.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(d) { return d; }); /***/ }), /***/ "./node_modules/d3-shape/src/index.js": /*!********************************************!*\ !*** ./node_modules/d3-shape/src/index.js ***! \********************************************/ /*! exports provided: arc, area, line, pie, areaRadial, radialArea, lineRadial, radialLine, pointRadial, linkHorizontal, linkVertical, linkRadial, symbol, symbols, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye, curveBasisClosed, curveBasisOpen, curveBasis, curveBundle, curveCardinalClosed, curveCardinalOpen, curveCardinal, curveCatmullRomClosed, curveCatmullRomOpen, curveCatmullRom, curveLinearClosed, curveLinear, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, stack, stackOffsetExpand, stackOffsetDiverging, stackOffsetNone, stackOffsetSilhouette, stackOffsetWiggle, stackOrderAppearance, stackOrderAscending, stackOrderDescending, stackOrderInsideOut, stackOrderNone, stackOrderReverse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _arc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc */ "./node_modules/d3-shape/src/arc.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return _arc__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./node_modules/d3-shape/src/area.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "area", function() { return _area__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "line", function() { return _line__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _pie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie */ "./node_modules/d3-shape/src/pie.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return _pie__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony import */ var _areaRadial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial */ "./node_modules/d3-shape/src/areaRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return _areaRadial__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return _areaRadial__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony import */ var _lineRadial__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial */ "./node_modules/d3-shape/src/lineRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return _lineRadial__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return _lineRadial__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony import */ var _pointRadial__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial */ "./node_modules/d3-shape/src/pointRadial.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return _pointRadial__WEBPACK_IMPORTED_MODULE_6__["default"]; }); /* harmony import */ var _link_index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index */ "./node_modules/d3-shape/src/link/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkHorizontal"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkVertical"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return _link_index__WEBPACK_IMPORTED_MODULE_7__["linkRadial"]; }); /* harmony import */ var _symbol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol */ "./node_modules/d3-shape/src/symbol.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return _symbol__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return _symbol__WEBPACK_IMPORTED_MODULE_8__["symbols"]; }); /* harmony import */ var _symbol_circle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle */ "./node_modules/d3-shape/src/symbol/circle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return _symbol_circle__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony import */ var _symbol_cross__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross */ "./node_modules/d3-shape/src/symbol/cross.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return _symbol_cross__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony import */ var _symbol_diamond__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond */ "./node_modules/d3-shape/src/symbol/diamond.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return _symbol_diamond__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony import */ var _symbol_square__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square */ "./node_modules/d3-shape/src/symbol/square.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return _symbol_square__WEBPACK_IMPORTED_MODULE_12__["default"]; }); /* harmony import */ var _symbol_star__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star */ "./node_modules/d3-shape/src/symbol/star.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return _symbol_star__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony import */ var _symbol_triangle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle */ "./node_modules/d3-shape/src/symbol/triangle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return _symbol_triangle__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony import */ var _symbol_wye__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye */ "./node_modules/d3-shape/src/symbol/wye.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return _symbol_wye__WEBPACK_IMPORTED_MODULE_15__["default"]; }); /* harmony import */ var _curve_basisClosed__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed */ "./node_modules/d3-shape/src/curve/basisClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return _curve_basisClosed__WEBPACK_IMPORTED_MODULE_16__["default"]; }); /* harmony import */ var _curve_basisOpen__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen */ "./node_modules/d3-shape/src/curve/basisOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return _curve_basisOpen__WEBPACK_IMPORTED_MODULE_17__["default"]; }); /* harmony import */ var _curve_basis__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis */ "./node_modules/d3-shape/src/curve/basis.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return _curve_basis__WEBPACK_IMPORTED_MODULE_18__["default"]; }); /* harmony import */ var _curve_bundle__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle */ "./node_modules/d3-shape/src/curve/bundle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return _curve_bundle__WEBPACK_IMPORTED_MODULE_19__["default"]; }); /* harmony import */ var _curve_cardinalClosed__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed */ "./node_modules/d3-shape/src/curve/cardinalClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return _curve_cardinalClosed__WEBPACK_IMPORTED_MODULE_20__["default"]; }); /* harmony import */ var _curve_cardinalOpen__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen */ "./node_modules/d3-shape/src/curve/cardinalOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return _curve_cardinalOpen__WEBPACK_IMPORTED_MODULE_21__["default"]; }); /* harmony import */ var _curve_cardinal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal */ "./node_modules/d3-shape/src/curve/cardinal.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return _curve_cardinal__WEBPACK_IMPORTED_MODULE_22__["default"]; }); /* harmony import */ var _curve_catmullRomClosed__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed */ "./node_modules/d3-shape/src/curve/catmullRomClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return _curve_catmullRomClosed__WEBPACK_IMPORTED_MODULE_23__["default"]; }); /* harmony import */ var _curve_catmullRomOpen__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen */ "./node_modules/d3-shape/src/curve/catmullRomOpen.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return _curve_catmullRomOpen__WEBPACK_IMPORTED_MODULE_24__["default"]; }); /* harmony import */ var _curve_catmullRom__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom */ "./node_modules/d3-shape/src/curve/catmullRom.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return _curve_catmullRom__WEBPACK_IMPORTED_MODULE_25__["default"]; }); /* harmony import */ var _curve_linearClosed__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed */ "./node_modules/d3-shape/src/curve/linearClosed.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return _curve_linearClosed__WEBPACK_IMPORTED_MODULE_26__["default"]; }); /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return _curve_linear__WEBPACK_IMPORTED_MODULE_27__["default"]; }); /* harmony import */ var _curve_monotone__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone */ "./node_modules/d3-shape/src/curve/monotone.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return _curve_monotone__WEBPACK_IMPORTED_MODULE_28__["monotoneX"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return _curve_monotone__WEBPACK_IMPORTED_MODULE_28__["monotoneY"]; }); /* harmony import */ var _curve_natural__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural */ "./node_modules/d3-shape/src/curve/natural.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return _curve_natural__WEBPACK_IMPORTED_MODULE_29__["default"]; }); /* harmony import */ var _curve_step__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step */ "./node_modules/d3-shape/src/curve/step.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["stepAfter"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return _curve_step__WEBPACK_IMPORTED_MODULE_30__["stepBefore"]; }); /* harmony import */ var _stack__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack */ "./node_modules/d3-shape/src/stack.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return _stack__WEBPACK_IMPORTED_MODULE_31__["default"]; }); /* harmony import */ var _offset_expand__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand */ "./node_modules/d3-shape/src/offset/expand.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return _offset_expand__WEBPACK_IMPORTED_MODULE_32__["default"]; }); /* harmony import */ var _offset_diverging__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging */ "./node_modules/d3-shape/src/offset/diverging.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return _offset_diverging__WEBPACK_IMPORTED_MODULE_33__["default"]; }); /* harmony import */ var _offset_none__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none */ "./node_modules/d3-shape/src/offset/none.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return _offset_none__WEBPACK_IMPORTED_MODULE_34__["default"]; }); /* harmony import */ var _offset_silhouette__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette */ "./node_modules/d3-shape/src/offset/silhouette.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return _offset_silhouette__WEBPACK_IMPORTED_MODULE_35__["default"]; }); /* harmony import */ var _offset_wiggle__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle */ "./node_modules/d3-shape/src/offset/wiggle.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return _offset_wiggle__WEBPACK_IMPORTED_MODULE_36__["default"]; }); /* harmony import */ var _order_appearance__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/appearance */ "./node_modules/d3-shape/src/order/appearance.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAppearance", function() { return _order_appearance__WEBPACK_IMPORTED_MODULE_37__["default"]; }); /* harmony import */ var _order_ascending__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/ascending */ "./node_modules/d3-shape/src/order/ascending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return _order_ascending__WEBPACK_IMPORTED_MODULE_38__["default"]; }); /* harmony import */ var _order_descending__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/descending */ "./node_modules/d3-shape/src/order/descending.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return _order_descending__WEBPACK_IMPORTED_MODULE_39__["default"]; }); /* harmony import */ var _order_insideOut__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/insideOut */ "./node_modules/d3-shape/src/order/insideOut.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return _order_insideOut__WEBPACK_IMPORTED_MODULE_40__["default"]; }); /* harmony import */ var _order_none__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/none */ "./node_modules/d3-shape/src/order/none.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return _order_none__WEBPACK_IMPORTED_MODULE_41__["default"]; }); /* harmony import */ var _order_reverse__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./order/reverse */ "./node_modules/d3-shape/src/order/reverse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return _order_reverse__WEBPACK_IMPORTED_MODULE_42__["default"]; }); // Note: radialArea is deprecated! // Note: radialLine is deprecated! /***/ }), /***/ "./node_modules/d3-shape/src/line.js": /*!*******************************************!*\ !*** ./node_modules/d3-shape/src/line.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/index.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _curve_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear */ "./node_modules/d3-shape/src/curve/linear.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./point */ "./node_modules/d3-shape/src/point.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var x = _point__WEBPACK_IMPORTED_MODULE_3__["x"], y = _point__WEBPACK_IMPORTED_MODULE_3__["y"], defined = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(true), context = null, curve = _curve_linear__WEBPACK_IMPORTED_MODULE_2__["default"], output = null; function line(data) { var i, n = data.length, d, defined0 = false, buffer; if (context == null) output = curve(buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) output.lineStart(); else output.lineEnd(); } if (defined0) output.point(+x(d, i, data), +y(d, i, data)); } if (buffer) return output = null, buffer + "" || null; } line.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : x; }; line.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : y; }; line.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), line) : defined; }; line.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve; }; line.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context; }; return line; }); /***/ }), /***/ "./node_modules/d3-shape/src/lineRadial.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/lineRadial.js ***! \*************************************************/ /*! exports provided: lineRadial, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return lineRadial; }); /* harmony import */ var _curve_radial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial */ "./node_modules/d3-shape/src/curve/radial.js"); /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line */ "./node_modules/d3-shape/src/line.js"); function lineRadial(l) { var c = l.curve; l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; l.curve = function(_) { return arguments.length ? c(Object(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve; }; return l; } /* harmony default export */ __webpack_exports__["default"] = (function() { return lineRadial(Object(_line__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial__WEBPACK_IMPORTED_MODULE_0__["curveRadialLinear"])); }); /***/ }), /***/ "./node_modules/d3-shape/src/link/index.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/link/index.js ***! \*************************************************/ /*! exports provided: linkHorizontal, linkVertical, linkRadial */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return linkHorizontal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return linkVertical; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return linkRadial; }); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/index.js"); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array */ "./node_modules/d3-shape/src/array.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _point__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../point */ "./node_modules/d3-shape/src/point.js"); /* harmony import */ var _pointRadial__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial */ "./node_modules/d3-shape/src/pointRadial.js"); function linkSource(d) { return d.source; } function linkTarget(d) { return d.target; } function link(curve) { var source = linkSource, target = linkTarget, x = _point__WEBPACK_IMPORTED_MODULE_3__["x"], y = _point__WEBPACK_IMPORTED_MODULE_3__["y"], context = null; function link() { var buffer, argv = _array__WEBPACK_IMPORTED_MODULE_1__["slice"].call(arguments), s = source.apply(this, argv), t = target.apply(this, argv); if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv)); if (buffer) return context = null, buffer + "" || null; } link.source = function(_) { return arguments.length ? (source = _, link) : source; }; link.target = function(_) { return arguments.length ? (target = _, link) : target; }; link.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : x; }; link.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), link) : y; }; link.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), link) : context; }; return link; } function curveHorizontal(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1); } function curveVertical(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1); } function curveRadial(context, x0, y0, x1, y1) { var p0 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0), p1 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0 = (y0 + y1) / 2), p2 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y0), p3 = Object(_pointRadial__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y1); context.moveTo(p0[0], p0[1]); context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]); } function linkHorizontal() { return link(curveHorizontal); } function linkVertical() { return link(curveVertical); } function linkRadial() { var l = link(curveRadial); l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; return l; } /***/ }), /***/ "./node_modules/d3-shape/src/math.js": /*!*******************************************!*\ !*** ./node_modules/d3-shape/src/math.js ***! \*******************************************/ /*! exports provided: abs, atan2, cos, max, min, sin, sqrt, epsilon, pi, halfPi, tau, acos, asin */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "abs", function() { return abs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "atan2", function() { return atan2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cos", function() { return cos; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sin", function() { return sin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sqrt", function() { return sqrt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "epsilon", function() { return epsilon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pi", function() { return pi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "halfPi", function() { return halfPi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tau", function() { return tau; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "acos", function() { return acos; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asin", function() { return asin; }); var abs = Math.abs; var atan2 = Math.atan2; var cos = Math.cos; var max = Math.max; var min = Math.min; var sin = Math.sin; var sqrt = Math.sqrt; var epsilon = 1e-12; var pi = Math.PI; var halfPi = pi / 2; var tau = 2 * pi; function acos(x) { return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); } function asin(x) { return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x); } /***/ }), /***/ "./node_modules/d3-shape/src/noop.js": /*!*******************************************!*\ !*** ./node_modules/d3-shape/src/noop.js ***! \*******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function() {}); /***/ }), /***/ "./node_modules/d3-shape/src/offset/diverging.js": /*!*******************************************************!*\ !*** ./node_modules/d3-shape/src/offset/diverging.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) { for (yp = yn = 0, i = 0; i < n; ++i) { if ((dy = (d = series[order[i]][j])[1] - d[0]) >= 0) { d[0] = yp, d[1] = yp += dy; } else if (dy < 0) { d[1] = yn, d[0] = yn += dy; } else { d[0] = yp; } } } }); /***/ }), /***/ "./node_modules/d3-shape/src/offset/expand.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/offset/expand.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) { for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; } Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "./node_modules/d3-shape/src/offset/none.js": /*!**************************************************!*\ !*** ./node_modules/d3-shape/src/offset/none.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 1)) return; for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) { s0 = s1, s1 = series[order[i]]; for (j = 0; j < m; ++j) { s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; } } }); /***/ }), /***/ "./node_modules/d3-shape/src/offset/silhouette.js": /*!********************************************************!*\ !*** ./node_modules/d3-shape/src/offset/silhouette.js ***! \********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) { for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; s0[j][1] += s0[j][0] = -y / 2; } Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "./node_modules/d3-shape/src/offset/wiggle.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/offset/wiggle.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/offset/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series, order) { if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return; for (var y = 0, j = 1, s0, m, n; j < m; ++j) { for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { var si = series[order[i]], sij0 = si[j][1] || 0, sij1 = si[j - 1][1] || 0, s3 = (sij0 - sij1) / 2; for (var k = 0; k < i; ++k) { var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0; s3 += skj0 - skj1; } s1 += sij0, s2 += s3 * sij0; } s0[j - 1][1] += s0[j - 1][0] = y; if (s1) y -= s2 / s1; } s0[j - 1][1] += s0[j - 1][0] = y; Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order); }); /***/ }), /***/ "./node_modules/d3-shape/src/order/appearance.js": /*!*******************************************************!*\ !*** ./node_modules/d3-shape/src/order/appearance.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var peaks = series.map(peak); return Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return peaks[a] - peaks[b]; }); }); function peak(series) { var i = -1, j = 0, n = series.length, vi, vj = -Infinity; while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i; return j; } /***/ }), /***/ "./node_modules/d3-shape/src/order/ascending.js": /*!******************************************************!*\ !*** ./node_modules/d3-shape/src/order/ascending.js ***! \******************************************************/ /*! exports provided: default, sum */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return sum; }); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var sums = series.map(sum); return Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[a] - sums[b]; }); }); function sum(series) { var s = 0, i = -1, n = series.length, v; while (++i < n) if (v = +series[i][1]) s += v; return s; } /***/ }), /***/ "./node_modules/d3-shape/src/order/descending.js": /*!*******************************************************!*\ !*** ./node_modules/d3-shape/src/order/descending.js ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-shape/src/order/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { return Object(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse(); }); /***/ }), /***/ "./node_modules/d3-shape/src/order/insideOut.js": /*!******************************************************!*\ !*** ./node_modules/d3-shape/src/order/insideOut.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _appearance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./appearance */ "./node_modules/d3-shape/src/order/appearance.js"); /* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-shape/src/order/ascending.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var n = series.length, i, j, sums = series.map(_ascending__WEBPACK_IMPORTED_MODULE_1__["sum"]), order = Object(_appearance__WEBPACK_IMPORTED_MODULE_0__["default"])(series), top = 0, bottom = 0, tops = [], bottoms = []; for (i = 0; i < n; ++i) { j = order[i]; if (top < bottom) { top += sums[j]; tops.push(j); } else { bottom += sums[j]; bottoms.push(j); } } return bottoms.reverse().concat(tops); }); /***/ }), /***/ "./node_modules/d3-shape/src/order/none.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/order/none.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(series) { var n = series.length, o = new Array(n); while (--n >= 0) o[n] = n; return o; }); /***/ }), /***/ "./node_modules/d3-shape/src/order/reverse.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/order/reverse.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _none__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none */ "./node_modules/d3-shape/src/order/none.js"); /* harmony default export */ __webpack_exports__["default"] = (function(series) { return Object(_none__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse(); }); /***/ }), /***/ "./node_modules/d3-shape/src/pie.js": /*!******************************************!*\ !*** ./node_modules/d3-shape/src/pie.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-shape/src/descending.js"); /* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-shape/src/identity.js"); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math */ "./node_modules/d3-shape/src/math.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var value = _identity__WEBPACK_IMPORTED_MODULE_2__["default"], sortValues = _descending__WEBPACK_IMPORTED_MODULE_1__["default"], sort = null, startAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0), endAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(_math__WEBPACK_IMPORTED_MODULE_3__["tau"]), padAngle = Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(0); function pie(data) { var i, n = data.length, j, k, sum = 0, index = new Array(n), arcs = new Array(n), a0 = +startAngle.apply(this, arguments), da = Math.min(_math__WEBPACK_IMPORTED_MODULE_3__["tau"], Math.max(-_math__WEBPACK_IMPORTED_MODULE_3__["tau"], endAngle.apply(this, arguments) - a0)), a1, p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), pa = p * (da < 0 ? -1 : 1), v; for (i = 0; i < n; ++i) { if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) { sum += v; } } // Optionally sort the arcs by previously-computed values or by data. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); }); else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); }); // Compute the arcs! They are stored in the original data's order. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) { j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = { data: data[j], index: i, value: v, startAngle: a0, endAngle: a1, padAngle: p }; } return arcs; } pie.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : value; }; pie.sortValues = function(_) { return arguments.length ? (sortValues = _, sort = null, pie) : sortValues; }; pie.sort = function(_) { return arguments.length ? (sort = _, sortValues = null, pie) : sort; }; pie.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : startAngle; }; pie.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : endAngle; }; pie.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), pie) : padAngle; }; return pie; }); /***/ }), /***/ "./node_modules/d3-shape/src/point.js": /*!********************************************!*\ !*** ./node_modules/d3-shape/src/point.js ***! \********************************************/ /*! exports provided: x, y */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return x; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return y; }); function x(p) { return p[0]; } function y(p) { return p[1]; } /***/ }), /***/ "./node_modules/d3-shape/src/pointRadial.js": /*!**************************************************!*\ !*** ./node_modules/d3-shape/src/pointRadial.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = (function(x, y) { return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)]; }); /***/ }), /***/ "./node_modules/d3-shape/src/stack.js": /*!********************************************!*\ !*** ./node_modules/d3-shape/src/stack.js ***! \********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-shape/src/array.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); /* harmony import */ var _offset_none__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none */ "./node_modules/d3-shape/src/offset/none.js"); /* harmony import */ var _order_none__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./order/none */ "./node_modules/d3-shape/src/order/none.js"); function stackValue(d, key) { return d[key]; } /* harmony default export */ __webpack_exports__["default"] = (function() { var keys = Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])([]), order = _order_none__WEBPACK_IMPORTED_MODULE_3__["default"], offset = _offset_none__WEBPACK_IMPORTED_MODULE_2__["default"], value = stackValue; function stack(data) { var kz = keys.apply(this, arguments), i, m = data.length, n = kz.length, sz = new Array(n), oz; for (i = 0; i < n; ++i) { for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) { si[j] = sij = [0, +value(data[j], ki, j, data)]; sij.data = data[j]; } si.key = ki; } for (i = 0, oz = order(sz); i < n; ++i) { sz[oz[i]].index = i; } offset(sz, oz); return sz; } stack.keys = function(_) { return arguments.length ? (keys = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : keys; }; stack.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), stack) : value; }; stack.order = function(_) { return arguments.length ? (order = _ == null ? _order_none__WEBPACK_IMPORTED_MODULE_3__["default"] : typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__["slice"].call(_)), stack) : order; }; stack.offset = function(_) { return arguments.length ? (offset = _ == null ? _offset_none__WEBPACK_IMPORTED_MODULE_2__["default"] : _, stack) : offset; }; return stack; }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol.js": /*!*********************************************!*\ !*** ./node_modules/d3-shape/src/symbol.js ***! \*********************************************/ /*! exports provided: symbols, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return symbols; }); /* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/index.js"); /* harmony import */ var _symbol_circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/circle */ "./node_modules/d3-shape/src/symbol/circle.js"); /* harmony import */ var _symbol_cross__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/cross */ "./node_modules/d3-shape/src/symbol/cross.js"); /* harmony import */ var _symbol_diamond__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/diamond */ "./node_modules/d3-shape/src/symbol/diamond.js"); /* harmony import */ var _symbol_star__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star */ "./node_modules/d3-shape/src/symbol/star.js"); /* harmony import */ var _symbol_square__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/square */ "./node_modules/d3-shape/src/symbol/square.js"); /* harmony import */ var _symbol_triangle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/triangle */ "./node_modules/d3-shape/src/symbol/triangle.js"); /* harmony import */ var _symbol_wye__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./symbol/wye */ "./node_modules/d3-shape/src/symbol/wye.js"); /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-shape/src/constant.js"); var symbols = [ _symbol_circle__WEBPACK_IMPORTED_MODULE_1__["default"], _symbol_cross__WEBPACK_IMPORTED_MODULE_2__["default"], _symbol_diamond__WEBPACK_IMPORTED_MODULE_3__["default"], _symbol_square__WEBPACK_IMPORTED_MODULE_5__["default"], _symbol_star__WEBPACK_IMPORTED_MODULE_4__["default"], _symbol_triangle__WEBPACK_IMPORTED_MODULE_6__["default"], _symbol_wye__WEBPACK_IMPORTED_MODULE_7__["default"] ]; /* harmony default export */ __webpack_exports__["default"] = (function() { var type = Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(_symbol_circle__WEBPACK_IMPORTED_MODULE_1__["default"]), size = Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(64), context = null; function symbol() { var buffer; if (!context) context = buffer = Object(d3_path__WEBPACK_IMPORTED_MODULE_0__["path"])(); type.apply(this, arguments).draw(context, +size.apply(this, arguments)); if (buffer) return context = null, buffer + "" || null; } symbol.type = function(_) { return arguments.length ? (type = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(_), symbol) : type; }; symbol.size = function(_) { return arguments.length ? (size = typeof _ === "function" ? _ : Object(_constant__WEBPACK_IMPORTED_MODULE_8__["default"])(+_), symbol) : size; }; symbol.context = function(_) { return arguments.length ? (context = _ == null ? null : _, symbol) : context; }; return symbol; }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/circle.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/circle.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js"); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / _math__WEBPACK_IMPORTED_MODULE_0__["pi"]); context.moveTo(r, 0); context.arc(0, 0, r, 0, _math__WEBPACK_IMPORTED_MODULE_0__["tau"]); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/cross.js": /*!***************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/cross.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / 5) / 2; context.moveTo(-3 * r, -r); context.lineTo(-r, -r); context.lineTo(-r, -3 * r); context.lineTo(r, -3 * r); context.lineTo(r, -r); context.lineTo(3 * r, -r); context.lineTo(3 * r, r); context.lineTo(r, r); context.lineTo(r, 3 * r); context.lineTo(-r, 3 * r); context.lineTo(-r, r); context.lineTo(-3 * r, r); context.closePath(); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/diamond.js": /*!*****************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/diamond.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var tan30 = Math.sqrt(1 / 3), tan30_2 = tan30 * 2; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var y = Math.sqrt(size / tan30_2), x = y * tan30; context.moveTo(0, -y); context.lineTo(x, 0); context.lineTo(0, y); context.lineTo(-x, 0); context.closePath(); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/square.js": /*!****************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/square.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var w = Math.sqrt(size), x = -w / 2; context.rect(x, x, w, w); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/star.js": /*!**************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/star.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _math__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math */ "./node_modules/d3-shape/src/math.js"); var ka = 0.89081309152928522810, kr = Math.sin(_math__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10) / Math.sin(7 * _math__WEBPACK_IMPORTED_MODULE_0__["pi"] / 10), kx = Math.sin(_math__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr, ky = -Math.cos(_math__WEBPACK_IMPORTED_MODULE_0__["tau"] / 10) * kr; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size * ka), x = kx * r, y = ky * r; context.moveTo(0, -r); context.lineTo(x, y); for (var i = 1; i < 5; ++i) { var a = _math__WEBPACK_IMPORTED_MODULE_0__["tau"] * i / 5, c = Math.cos(a), s = Math.sin(a); context.lineTo(s * r, -c * r); context.lineTo(c * x - s * y, s * x + c * y); } context.closePath(); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/triangle.js": /*!******************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/triangle.js ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var sqrt3 = Math.sqrt(3); /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var y = -Math.sqrt(size / (sqrt3 * 3)); context.moveTo(0, y * 2); context.lineTo(-sqrt3 * y, -y); context.lineTo(sqrt3 * y, -y); context.closePath(); } }); /***/ }), /***/ "./node_modules/d3-shape/src/symbol/wye.js": /*!*************************************************!*\ !*** ./node_modules/d3-shape/src/symbol/wye.js ***! \*************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); var c = -0.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = (k / 2 + 1) * 3; /* harmony default export */ __webpack_exports__["default"] = ({ draw: function(context, size) { var r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1; context.moveTo(x0, y0); context.lineTo(x1, y1); context.lineTo(x2, y2); context.lineTo(c * x0 - s * y0, s * x0 + c * y0); context.lineTo(c * x1 - s * y1, s * x1 + c * y1); context.lineTo(c * x2 - s * y2, s * x2 + c * y2); context.lineTo(c * x0 + s * y0, c * y0 - s * x0); context.lineTo(c * x1 + s * y1, c * y1 - s * x1); context.lineTo(c * x2 + s * y2, c * y2 - s * x2); context.closePath(); } }); /***/ }), /***/ "./node_modules/d3-time-format/src/defaultLocale.js": /*!**********************************************************!*\ !*** ./node_modules/d3-time-format/src/defaultLocale.js ***! \**********************************************************/ /*! exports provided: timeFormat, timeParse, utcFormat, utcParse, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return timeFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return timeParse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return utcFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return utcParse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return defaultLocale; }); /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-time-format/src/locale.js"); var locale; var timeFormat; var timeParse; var utcFormat; var utcParse; defaultLocale({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); function defaultLocale(definition) { locale = Object(_locale__WEBPACK_IMPORTED_MODULE_0__["default"])(definition); timeFormat = locale.format; timeParse = locale.parse; utcFormat = locale.utcFormat; utcParse = locale.utcParse; return locale; } /***/ }), /***/ "./node_modules/d3-time-format/src/index.js": /*!**************************************************!*\ !*** ./node_modules/d3-time-format/src/index.js ***! \**************************************************/ /*! exports provided: timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse, timeFormatLocale, isoFormat, isoParse */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["timeFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["timeParse"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcFormat"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return _defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcParse"]; }); /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./locale */ "./node_modules/d3-time-format/src/locale.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return _locale__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _isoFormat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isoFormat */ "./node_modules/d3-time-format/src/isoFormat.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return _isoFormat__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _isoParse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isoParse */ "./node_modules/d3-time-format/src/isoParse.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return _isoParse__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /***/ }), /***/ "./node_modules/d3-time-format/src/isoFormat.js": /*!******************************************************!*\ !*** ./node_modules/d3-time-format/src/isoFormat.js ***! \******************************************************/ /*! exports provided: isoSpecifier, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isoSpecifier", function() { return isoSpecifier; }); /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js"); var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; function formatIsoNative(date) { return date.toISOString(); } var formatIso = Date.prototype.toISOString ? formatIsoNative : Object(_defaultLocale__WEBPACK_IMPORTED_MODULE_0__["utcFormat"])(isoSpecifier); /* harmony default export */ __webpack_exports__["default"] = (formatIso); /***/ }), /***/ "./node_modules/d3-time-format/src/isoParse.js": /*!*****************************************************!*\ !*** ./node_modules/d3-time-format/src/isoParse.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _isoFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isoFormat */ "./node_modules/d3-time-format/src/isoFormat.js"); /* harmony import */ var _defaultLocale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultLocale */ "./node_modules/d3-time-format/src/defaultLocale.js"); function parseIsoNative(string) { var date = new Date(string); return isNaN(date) ? null : date; } var parseIso = +new Date("2000-01-01T00:00:00.000Z") ? parseIsoNative : Object(_defaultLocale__WEBPACK_IMPORTED_MODULE_1__["utcParse"])(_isoFormat__WEBPACK_IMPORTED_MODULE_0__["isoSpecifier"]); /* harmony default export */ __webpack_exports__["default"] = (parseIso); /***/ }), /***/ "./node_modules/d3-time-format/src/locale.js": /*!***************************************************!*\ !*** ./node_modules/d3-time-format/src/locale.js ***! \***************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLocale; }); /* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/index.js"); function localDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); date.setFullYear(d.y); return date; } return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); } function utcDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); date.setUTCFullYear(d.y); return date; } return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); } function newYear(y) { return {y: y, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0}; } function formatLocale(locale) { var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths; var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths); var formats = { "a": formatShortWeekday, "A": formatWeekday, "b": formatShortMonth, "B": formatMonth, "c": null, "d": formatDayOfMonth, "e": formatDayOfMonth, "f": formatMicroseconds, "H": formatHour24, "I": formatHour12, "j": formatDayOfYear, "L": formatMilliseconds, "m": formatMonthNumber, "M": formatMinutes, "p": formatPeriod, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatSeconds, "u": formatWeekdayNumberMonday, "U": formatWeekNumberSunday, "V": formatWeekNumberISO, "w": formatWeekdayNumberSunday, "W": formatWeekNumberMonday, "x": null, "X": null, "y": formatYear, "Y": formatFullYear, "Z": formatZone, "%": formatLiteralPercent }; var utcFormats = { "a": formatUTCShortWeekday, "A": formatUTCWeekday, "b": formatUTCShortMonth, "B": formatUTCMonth, "c": null, "d": formatUTCDayOfMonth, "e": formatUTCDayOfMonth, "f": formatUTCMicroseconds, "H": formatUTCHour24, "I": formatUTCHour12, "j": formatUTCDayOfYear, "L": formatUTCMilliseconds, "m": formatUTCMonthNumber, "M": formatUTCMinutes, "p": formatUTCPeriod, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatUTCSeconds, "u": formatUTCWeekdayNumberMonday, "U": formatUTCWeekNumberSunday, "V": formatUTCWeekNumberISO, "w": formatUTCWeekdayNumberSunday, "W": formatUTCWeekNumberMonday, "x": null, "X": null, "y": formatUTCYear, "Y": formatUTCFullYear, "Z": formatUTCZone, "%": formatLiteralPercent }; var parses = { "a": parseShortWeekday, "A": parseWeekday, "b": parseShortMonth, "B": parseMonth, "c": parseLocaleDateTime, "d": parseDayOfMonth, "e": parseDayOfMonth, "f": parseMicroseconds, "H": parseHour24, "I": parseHour24, "j": parseDayOfYear, "L": parseMilliseconds, "m": parseMonthNumber, "M": parseMinutes, "p": parsePeriod, "Q": parseUnixTimestamp, "s": parseUnixTimestampSeconds, "S": parseSeconds, "u": parseWeekdayNumberMonday, "U": parseWeekNumberSunday, "V": parseWeekNumberISO, "w": parseWeekdayNumberSunday, "W": parseWeekNumberMonday, "x": parseLocaleDate, "X": parseLocaleTime, "y": parseYear, "Y": parseFullYear, "Z": parseZone, "%": parseLiteralPercent }; // These recursive directive definitions must be deferred. formats.x = newFormat(locale_date, formats); formats.X = newFormat(locale_time, formats); formats.c = newFormat(locale_dateTime, formats); utcFormats.x = newFormat(locale_date, utcFormats); utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats) { return function(date) { var string = [], i = -1, j = 0, n = specifier.length, c, pad, format; if (!(date instanceof Date)) date = new Date(+date); while (++i < n) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j, i)); if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); else pad = c === "e" ? " " : "0"; if (format = formats[c]) c = format(date, pad); string.push(c); j = i + 1; } } string.push(specifier.slice(j, i)); return string.join(""); }; } function newParse(specifier, newDate) { return function(string) { var d = newYear(1900), i = parseSpecifier(d, specifier, string += "", 0), week, day; if (i != string.length) return null; // If a UNIX timestamp is specified, return it. if ("Q" in d) return new Date(d.Q); // The am-pm flag is 0 for AM, and 1 for PM. if ("p" in d) d.H = d.H % 12 + d.p * 12; // Convert day-of-week and week-of-year to day-of-year. if ("V" in d) { if (d.V < 1 || d.V > 53) return null; if (!("w" in d)) d.w = 1; if ("Z" in d) { week = utcDate(newYear(d.y)), day = week.getUTCDay(); week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"])(week); week = d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].offset(week, (d.V - 1) * 7); d.y = week.getUTCFullYear(); d.m = week.getUTCMonth(); d.d = week.getUTCDate() + (d.w + 6) % 7; } else { week = newDate(newYear(d.y)), day = week.getDay(); week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].ceil(week) : Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"])(week); week = d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].offset(week, (d.V - 1) * 7); d.y = week.getFullYear(); d.m = week.getMonth(); d.d = week.getDate() + (d.w + 6) % 7; } } else if ("W" in d || "U" in d) { if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0; day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay(); d.m = 0; d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; } // If a time zone is specified, all fields are interpreted as UTC and then // offset according to the specified time zone. if ("Z" in d) { d.H += d.Z / 100 | 0; d.M += d.Z % 100; return utcDate(d); } // Otherwise, all fields are in local time. return newDate(d); }; } function parseSpecifier(d, specifier, string, j) { var i = 0, n = specifier.length, m = string.length, c, parse; while (i < n) { if (j >= m) return -1; c = specifier.charCodeAt(i++); if (c === 37) { c = specifier.charAt(i++); parse = parses[c in pads ? specifier.charAt(i++) : c]; if (!parse || ((j = parse(d, string, j)) < 0)) return -1; } else if (c != string.charCodeAt(j++)) { return -1; } } return j; } function parsePeriod(d, string, i) { var n = periodRe.exec(string.slice(i)); return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortWeekday(d, string, i) { var n = shortWeekdayRe.exec(string.slice(i)); return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseWeekday(d, string, i) { var n = weekdayRe.exec(string.slice(i)); return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortMonth(d, string, i) { var n = shortMonthRe.exec(string.slice(i)); return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseMonth(d, string, i) { var n = monthRe.exec(string.slice(i)); return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseLocaleDateTime(d, string, i) { return parseSpecifier(d, locale_dateTime, string, i); } function parseLocaleDate(d, string, i) { return parseSpecifier(d, locale_date, string, i); } function parseLocaleTime(d, string, i) { return parseSpecifier(d, locale_time, string, i); } function formatShortWeekday(d) { return locale_shortWeekdays[d.getDay()]; } function formatWeekday(d) { return locale_weekdays[d.getDay()]; } function formatShortMonth(d) { return locale_shortMonths[d.getMonth()]; } function formatMonth(d) { return locale_months[d.getMonth()]; } function formatPeriod(d) { return locale_periods[+(d.getHours() >= 12)]; } function formatUTCShortWeekday(d) { return locale_shortWeekdays[d.getUTCDay()]; } function formatUTCWeekday(d) { return locale_weekdays[d.getUTCDay()]; } function formatUTCShortMonth(d) { return locale_shortMonths[d.getUTCMonth()]; } function formatUTCMonth(d) { return locale_months[d.getUTCMonth()]; } function formatUTCPeriod(d) { return locale_periods[+(d.getUTCHours() >= 12)]; } return { format: function(specifier) { var f = newFormat(specifier += "", formats); f.toString = function() { return specifier; }; return f; }, parse: function(specifier) { var p = newParse(specifier += "", localDate); p.toString = function() { return specifier; }; return p; }, utcFormat: function(specifier) { var f = newFormat(specifier += "", utcFormats); f.toString = function() { return specifier; }; return f; }, utcParse: function(specifier) { var p = newParse(specifier, utcDate); p.toString = function() { return specifier; }; return p; } }; } var pads = {"-": "", "_": " ", "0": "0"}, numberRe = /^\s*\d+/, // note: ignores next directive percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; function pad(value, fill, width) { var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); } function requote(s) { return s.replace(requoteRe, "\\$&"); } function formatRe(names) { return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); } function formatLookup(names) { var map = {}, i = -1, n = names.length; while (++i < n) map[names[i].toLowerCase()] = i; return map; } function parseWeekdayNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.w = +n[0], i + n[0].length) : -1; } function parseWeekdayNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.u = +n[0], i + n[0].length) : -1; } function parseWeekNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.U = +n[0], i + n[0].length) : -1; } function parseWeekNumberISO(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.V = +n[0], i + n[0].length) : -1; } function parseWeekNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.W = +n[0], i + n[0].length) : -1; } function parseFullYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 4)); return n ? (d.y = +n[0], i + n[0].length) : -1; } function parseYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1; } function parseZone(d, string, i) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; } function parseMonthNumber(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.m = n[0] - 1, i + n[0].length) : -1; } function parseDayOfMonth(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.d = +n[0], i + n[0].length) : -1; } function parseDayOfYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; } function parseHour24(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.H = +n[0], i + n[0].length) : -1; } function parseMinutes(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.M = +n[0], i + n[0].length) : -1; } function parseSeconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.S = +n[0], i + n[0].length) : -1; } function parseMilliseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.L = +n[0], i + n[0].length) : -1; } function parseMicroseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 6)); return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1; } function parseLiteralPercent(d, string, i) { var n = percentRe.exec(string.slice(i, i + 1)); return n ? i + n[0].length : -1; } function parseUnixTimestamp(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = +n[0], i + n[0].length) : -1; } function parseUnixTimestampSeconds(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = (+n[0]) * 1000, i + n[0].length) : -1; } function formatDayOfMonth(d, p) { return pad(d.getDate(), p, 2); } function formatHour24(d, p) { return pad(d.getHours(), p, 2); } function formatHour12(d, p) { return pad(d.getHours() % 12 || 12, p, 2); } function formatDayOfYear(d, p) { return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["timeDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 3); } function formatMilliseconds(d, p) { return pad(d.getMilliseconds(), p, 3); } function formatMicroseconds(d, p) { return formatMilliseconds(d, p) + "000"; } function formatMonthNumber(d, p) { return pad(d.getMonth() + 1, p, 2); } function formatMinutes(d, p) { return pad(d.getMinutes(), p, 2); } function formatSeconds(d, p) { return pad(d.getSeconds(), p, 2); } function formatWeekdayNumberMonday(d) { var day = d.getDay(); return day === 0 ? 7 : day; } function formatWeekNumberSunday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 2); } function formatWeekNumberISO(d, p) { var day = d.getDay(); d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].ceil(d); return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d).getDay() === 4), p, 2); } function formatWeekdayNumberSunday(d) { return d.getDay(); } function formatWeekNumberMonday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["timeYear"])(d), d), p, 2); } function formatYear(d, p) { return pad(d.getFullYear() % 100, p, 2); } function formatFullYear(d, p) { return pad(d.getFullYear() % 10000, p, 4); } function formatZone(d) { var z = d.getTimezoneOffset(); return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); } function formatUTCDayOfMonth(d, p) { return pad(d.getUTCDate(), p, 2); } function formatUTCHour24(d, p) { return pad(d.getUTCHours(), p, 2); } function formatUTCHour12(d, p) { return pad(d.getUTCHours() % 12 || 12, p, 2); } function formatUTCDayOfYear(d, p) { return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_0__["utcDay"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 3); } function formatUTCMilliseconds(d, p) { return pad(d.getUTCMilliseconds(), p, 3); } function formatUTCMicroseconds(d, p) { return formatUTCMilliseconds(d, p) + "000"; } function formatUTCMonthNumber(d, p) { return pad(d.getUTCMonth() + 1, p, 2); } function formatUTCMinutes(d, p) { return pad(d.getUTCMinutes(), p, 2); } function formatUTCSeconds(d, p) { return pad(d.getUTCSeconds(), p, 2); } function formatUTCWeekdayNumberMonday(d) { var dow = d.getUTCDay(); return dow === 0 ? 7 : dow; } function formatUTCWeekNumberSunday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcSunday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 2); } function formatUTCWeekNumberISO(d, p) { var day = d.getUTCDay(); d = (day >= 4 || day === 0) ? Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"])(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].ceil(d); return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcThursday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d) + (Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d).getUTCDay() === 4), p, 2); } function formatUTCWeekdayNumberSunday(d) { return d.getUTCDay(); } function formatUTCWeekNumberMonday(d, p) { return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcMonday"].count(Object(d3_time__WEBPACK_IMPORTED_MODULE_0__["utcYear"])(d), d), p, 2); } function formatUTCYear(d, p) { return pad(d.getUTCFullYear() % 100, p, 2); } function formatUTCFullYear(d, p) { return pad(d.getUTCFullYear() % 10000, p, 4); } function formatUTCZone() { return "+0000"; } function formatLiteralPercent() { return "%"; } function formatUnixTimestamp(d) { return +d; } function formatUnixTimestampSeconds(d) { return Math.floor(+d / 1000); } /***/ }), /***/ "./node_modules/d3-time/index.js": /*!***************************************!*\ !*** ./node_modules/d3-time/index.js ***! \***************************************/ /*! exports provided: timeInterval, timeMillisecond, timeMilliseconds, utcMillisecond, utcMilliseconds, timeSecond, timeSeconds, utcSecond, utcSeconds, timeMinute, timeMinutes, timeHour, timeHours, timeDay, timeDays, timeWeek, timeWeeks, timeSunday, timeSundays, timeMonday, timeMondays, timeTuesday, timeTuesdays, timeWednesday, timeWednesdays, timeThursday, timeThursdays, timeFriday, timeFridays, timeSaturday, timeSaturdays, timeMonth, timeMonths, timeYear, timeYears, utcMinute, utcMinutes, utcHour, utcHours, utcDay, utcDays, utcWeek, utcWeeks, utcSunday, utcSundays, utcMonday, utcMondays, utcTuesday, utcTuesdays, utcWednesday, utcWednesdays, utcThursday, utcThursdays, utcFriday, utcFridays, utcSaturday, utcSaturdays, utcMonth, utcMonths, utcYear, utcYears */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/interval */ "./node_modules/d3-time/src/interval.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _src_interval__WEBPACK_IMPORTED_MODULE_0__["default"]; }); /* harmony import */ var _src_millisecond__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/millisecond */ "./node_modules/d3-time/src/millisecond.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return _src_millisecond__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return _src_millisecond__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return _src_millisecond__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return _src_millisecond__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; }); /* harmony import */ var _src_second__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/second */ "./node_modules/d3-time/src/second.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return _src_second__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return _src_second__WEBPACK_IMPORTED_MODULE_2__["seconds"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return _src_second__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return _src_second__WEBPACK_IMPORTED_MODULE_2__["seconds"]; }); /* harmony import */ var _src_minute__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/minute */ "./node_modules/d3-time/src/minute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return _src_minute__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return _src_minute__WEBPACK_IMPORTED_MODULE_3__["minutes"]; }); /* harmony import */ var _src_hour__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/hour */ "./node_modules/d3-time/src/hour.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return _src_hour__WEBPACK_IMPORTED_MODULE_4__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return _src_hour__WEBPACK_IMPORTED_MODULE_4__["hours"]; }); /* harmony import */ var _src_day__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/day */ "./node_modules/d3-time/src/day.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return _src_day__WEBPACK_IMPORTED_MODULE_5__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return _src_day__WEBPACK_IMPORTED_MODULE_5__["days"]; }); /* harmony import */ var _src_week__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/week */ "./node_modules/d3-time/src/week.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["sunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["sundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["sunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["sundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["monday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["mondays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["tuesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["tuesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["wednesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["wednesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["thursday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["thursdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["friday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["fridays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["saturday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return _src_week__WEBPACK_IMPORTED_MODULE_6__["saturdays"]; }); /* harmony import */ var _src_month__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/month */ "./node_modules/d3-time/src/month.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return _src_month__WEBPACK_IMPORTED_MODULE_7__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return _src_month__WEBPACK_IMPORTED_MODULE_7__["months"]; }); /* harmony import */ var _src_year__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/year */ "./node_modules/d3-time/src/year.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return _src_year__WEBPACK_IMPORTED_MODULE_8__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return _src_year__WEBPACK_IMPORTED_MODULE_8__["years"]; }); /* harmony import */ var _src_utcMinute__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/utcMinute */ "./node_modules/d3-time/src/utcMinute.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return _src_utcMinute__WEBPACK_IMPORTED_MODULE_9__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return _src_utcMinute__WEBPACK_IMPORTED_MODULE_9__["utcMinutes"]; }); /* harmony import */ var _src_utcHour__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./src/utcHour */ "./node_modules/d3-time/src/utcHour.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return _src_utcHour__WEBPACK_IMPORTED_MODULE_10__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return _src_utcHour__WEBPACK_IMPORTED_MODULE_10__["utcHours"]; }); /* harmony import */ var _src_utcDay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./src/utcDay */ "./node_modules/d3-time/src/utcDay.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return _src_utcDay__WEBPACK_IMPORTED_MODULE_11__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return _src_utcDay__WEBPACK_IMPORTED_MODULE_11__["utcDays"]; }); /* harmony import */ var _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./src/utcWeek */ "./node_modules/d3-time/src/utcWeek.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcMonday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcMondays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcTuesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcTuesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcWednesday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcWednesdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcThursday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcThursdays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcFriday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcFridays"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSaturday"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return _src_utcWeek__WEBPACK_IMPORTED_MODULE_12__["utcSaturdays"]; }); /* harmony import */ var _src_utcMonth__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./src/utcMonth */ "./node_modules/d3-time/src/utcMonth.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return _src_utcMonth__WEBPACK_IMPORTED_MODULE_13__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return _src_utcMonth__WEBPACK_IMPORTED_MODULE_13__["utcMonths"]; }); /* harmony import */ var _src_utcYear__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./src/utcYear */ "./node_modules/d3-time/src/utcYear.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return _src_utcYear__WEBPACK_IMPORTED_MODULE_14__["default"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return _src_utcYear__WEBPACK_IMPORTED_MODULE_14__["utcYears"]; }); /***/ }), /***/ "./node_modules/d3-time/src/day.js": /*!*****************************************!*\ !*** ./node_modules/d3-time/src/day.js ***! \*****************************************/ /*! exports provided: default, days */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "days", function() { return days; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var day = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationDay"]; }, function(date) { return date.getDate() - 1; }); /* harmony default export */ __webpack_exports__["default"] = (day); var days = day.range; /***/ }), /***/ "./node_modules/d3-time/src/duration.js": /*!**********************************************!*\ !*** ./node_modules/d3-time/src/duration.js ***! \**********************************************/ /*! exports provided: durationSecond, durationMinute, durationHour, durationDay, durationWeek */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationSecond", function() { return durationSecond; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationMinute", function() { return durationMinute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationHour", function() { return durationHour; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationDay", function() { return durationDay; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationWeek", function() { return durationWeek; }); var durationSecond = 1e3; var durationMinute = 6e4; var durationHour = 36e5; var durationDay = 864e5; var durationWeek = 6048e5; /***/ }), /***/ "./node_modules/d3-time/src/hour.js": /*!******************************************!*\ !*** ./node_modules/d3-time/src/hour.js ***! \******************************************/ /*! exports provided: default, hours */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hours", function() { return hours; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var hour = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { var offset = date.getTimezoneOffset() * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"] % _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; if (offset < 0) offset += _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; date.setTime(Math.floor((+date - offset) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"] + offset); }, function(date, step) { date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; }, function(date) { return date.getHours(); }); /* harmony default export */ __webpack_exports__["default"] = (hour); var hours = hour.range; /***/ }), /***/ "./node_modules/d3-time/src/interval.js": /*!**********************************************!*\ !*** ./node_modules/d3-time/src/interval.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return newInterval; }); var t0 = new Date, t1 = new Date; function newInterval(floori, offseti, count, field) { function interval(date) { return floori(date = new Date(+date)), date; } interval.floor = interval; interval.ceil = function(date) { return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; }; interval.round = function(date) { var d0 = interval(date), d1 = interval.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; interval.offset = function(date, step) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval.range = function(start, stop, step) { var range = [], previous; start = interval.ceil(start); step = step == null ? 1 : Math.floor(step); if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date do range.push(previous = new Date(+start)), offseti(start, step), floori(start); while (previous < start && start < stop); return range; }; interval.filter = function(test) { return newInterval(function(date) { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); }, function(date, step) { if (date >= date) { if (step < 0) while (++step <= 0) { while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty } else while (--step >= 0) { while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty } } }); }; if (count) { interval.count = function(start, end) { t0.setTime(+start), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count(t0, t1)); }; interval.every = function(step) { step = Math.floor(step); return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? function(d) { return field(d) % step === 0; } : function(d) { return interval.count(0, d) % step === 0; }); }; } return interval; } /***/ }), /***/ "./node_modules/d3-time/src/millisecond.js": /*!*************************************************!*\ !*** ./node_modules/d3-time/src/millisecond.js ***! \*************************************************/ /*! exports provided: default, milliseconds */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "milliseconds", function() { return milliseconds; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); var millisecond = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function() { // noop }, function(date, step) { date.setTime(+date + step); }, function(start, end) { return end - start; }); // An optimized implementation for this simple case. millisecond.every = function(k) { k = Math.floor(k); if (!isFinite(k) || !(k > 0)) return null; if (!(k > 1)) return millisecond; return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(Math.floor(date / k) * k); }, function(date, step) { date.setTime(+date + step * k); }, function(start, end) { return (end - start) / k; }); }; /* harmony default export */ __webpack_exports__["default"] = (millisecond); var milliseconds = millisecond.range; /***/ }), /***/ "./node_modules/d3-time/src/minute.js": /*!********************************************!*\ !*** ./node_modules/d3-time/src/minute.js ***! \********************************************/ /*! exports provided: default, minutes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutes", function() { return minutes; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var minute = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(Math.floor(date / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(date, step) { date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]; }, function(date) { return date.getMinutes(); }); /* harmony default export */ __webpack_exports__["default"] = (minute); var minutes = minute.range; /***/ }), /***/ "./node_modules/d3-time/src/month.js": /*!*******************************************!*\ !*** ./node_modules/d3-time/src/month.js ***! \*******************************************/ /*! exports provided: default, months */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "months", function() { return months; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); var month = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setDate(1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setMonth(date.getMonth() + step); }, function(start, end) { return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; }, function(date) { return date.getMonth(); }); /* harmony default export */ __webpack_exports__["default"] = (month); var months = month.range; /***/ }), /***/ "./node_modules/d3-time/src/second.js": /*!********************************************!*\ !*** ./node_modules/d3-time/src/second.js ***! \********************************************/ /*! exports provided: default, seconds */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seconds", function() { return seconds; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var second = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setTime(Math.floor(date / _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]); }, function(date, step) { date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]; }, function(date) { return date.getUTCSeconds(); }); /* harmony default export */ __webpack_exports__["default"] = (second); var seconds = second.range; /***/ }), /***/ "./node_modules/d3-time/src/utcDay.js": /*!********************************************!*\ !*** ./node_modules/d3-time/src/utcDay.js ***! \********************************************/ /*! exports provided: default, utcDays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return utcDays; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var utcDay = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationDay"]; }, function(date) { return date.getUTCDate() - 1; }); /* harmony default export */ __webpack_exports__["default"] = (utcDay); var utcDays = utcDay.range; /***/ }), /***/ "./node_modules/d3-time/src/utcHour.js": /*!*********************************************!*\ !*** ./node_modules/d3-time/src/utcHour.js ***! \*********************************************/ /*! exports provided: default, utcHours */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return utcHours; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var utcHour = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCMinutes(0, 0, 0); }, function(date, step) { date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationHour"]; }, function(date) { return date.getUTCHours(); }); /* harmony default export */ __webpack_exports__["default"] = (utcHour); var utcHours = utcHour.range; /***/ }), /***/ "./node_modules/d3-time/src/utcMinute.js": /*!***********************************************!*\ !*** ./node_modules/d3-time/src/utcMinute.js ***! \***********************************************/ /*! exports provided: default, utcMinutes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return utcMinutes; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); var utcMinute = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCSeconds(0, 0); }, function(date, step) { date.setTime(+date + step * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]; }, function(date) { return date.getUTCMinutes(); }); /* harmony default export */ __webpack_exports__["default"] = (utcMinute); var utcMinutes = utcMinute.range; /***/ }), /***/ "./node_modules/d3-time/src/utcMonth.js": /*!**********************************************!*\ !*** ./node_modules/d3-time/src/utcMonth.js ***! \**********************************************/ /*! exports provided: default, utcMonths */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return utcMonths; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); var utcMonth = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCDate(1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCMonth(date.getUTCMonth() + step); }, function(start, end) { return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; }, function(date) { return date.getUTCMonth(); }); /* harmony default export */ __webpack_exports__["default"] = (utcMonth); var utcMonths = utcMonth.range; /***/ }), /***/ "./node_modules/d3-time/src/utcWeek.js": /*!*********************************************!*\ !*** ./node_modules/d3-time/src/utcWeek.js ***! \*********************************************/ /*! exports provided: utcSunday, utcMonday, utcTuesday, utcWednesday, utcThursday, utcFriday, utcSaturday, utcSundays, utcMondays, utcTuesdays, utcWednesdays, utcThursdays, utcFridays, utcSaturdays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return utcSunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return utcMonday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return utcTuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return utcWednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return utcThursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return utcFriday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return utcSaturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return utcSundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return utcMondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return utcTuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return utcWednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return utcThursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return utcFridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return utcSaturdays; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); function utcWeekday(i) { return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step * 7); }, function(start, end) { return (end - start) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationWeek"]; }); } var utcSunday = utcWeekday(0); var utcMonday = utcWeekday(1); var utcTuesday = utcWeekday(2); var utcWednesday = utcWeekday(3); var utcThursday = utcWeekday(4); var utcFriday = utcWeekday(5); var utcSaturday = utcWeekday(6); var utcSundays = utcSunday.range; var utcMondays = utcMonday.range; var utcTuesdays = utcTuesday.range; var utcWednesdays = utcWednesday.range; var utcThursdays = utcThursday.range; var utcFridays = utcFriday.range; var utcSaturdays = utcSaturday.range; /***/ }), /***/ "./node_modules/d3-time/src/utcYear.js": /*!*********************************************!*\ !*** ./node_modules/d3-time/src/utcYear.js ***! \*********************************************/ /*! exports provided: default, utcYears */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return utcYears; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); var utcYear = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step); }, function(start, end) { return end.getUTCFullYear() - start.getUTCFullYear(); }, function(date) { return date.getUTCFullYear(); }); // An optimized implementation for this simple case. utcYear.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["default"] = (utcYear); var utcYears = utcYear.range; /***/ }), /***/ "./node_modules/d3-time/src/week.js": /*!******************************************!*\ !*** ./node_modules/d3-time/src/week.js ***! \******************************************/ /*! exports provided: sunday, monday, tuesday, wednesday, thursday, friday, saturday, sundays, mondays, tuesdays, wednesdays, thursdays, fridays, saturdays */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sunday", function() { return sunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monday", function() { return monday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesday", function() { return tuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesday", function() { return wednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursday", function() { return thursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "friday", function() { return friday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturday", function() { return saturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sundays", function() { return sundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mondays", function() { return mondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesdays", function() { return tuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesdays", function() { return wednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursdays", function() { return thursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fridays", function() { return fridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturdays", function() { return saturdays; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-time/src/duration.js"); function weekday(i) { return Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step * 7); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration__WEBPACK_IMPORTED_MODULE_1__["durationWeek"]; }); } var sunday = weekday(0); var monday = weekday(1); var tuesday = weekday(2); var wednesday = weekday(3); var thursday = weekday(4); var friday = weekday(5); var saturday = weekday(6); var sundays = sunday.range; var mondays = monday.range; var tuesdays = tuesday.range; var wednesdays = wednesday.range; var thursdays = thursday.range; var fridays = friday.range; var saturdays = saturday.range; /***/ }), /***/ "./node_modules/d3-time/src/year.js": /*!******************************************!*\ !*** ./node_modules/d3-time/src/year.js ***! \******************************************/ /*! exports provided: default, years */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "years", function() { return years; }); /* harmony import */ var _interval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval */ "./node_modules/d3-time/src/interval.js"); var year = Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step); }, function(start, end) { return end.getFullYear() - start.getFullYear(); }, function(date) { return date.getFullYear(); }); // An optimized implementation for this simple case. year.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["default"] = (year); var years = year.range; /***/ }), /***/ "./node_modules/d3-timer/index.js": /*!****************************************!*\ !*** ./node_modules/d3-timer/index.js ***! \****************************************/ /*! exports provided: now, timer, timerFlush, timeout, interval */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/timer */ "./node_modules/d3-timer/src/timer.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "now", function() { return _src_timer__WEBPACK_IMPORTED_MODULE_0__["now"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _src_timer__WEBPACK_IMPORTED_MODULE_0__["timer"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return _src_timer__WEBPACK_IMPORTED_MODULE_0__["timerFlush"]; }); /* harmony import */ var _src_timeout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/timeout */ "./node_modules/d3-timer/src/timeout.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _src_timeout__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _src_interval__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/interval */ "./node_modules/d3-timer/src/interval.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _src_interval__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /***/ }), /***/ "./node_modules/d3-timer/src/interval.js": /*!***********************************************!*\ !*** ./node_modules/d3-timer/src/interval.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer */ "./node_modules/d3-timer/src/timer.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) { var t = new _timer__WEBPACK_IMPORTED_MODULE_0__["Timer"], total = delay; if (delay == null) return t.restart(callback, delay, time), t; delay = +delay, time = time == null ? Object(_timer__WEBPACK_IMPORTED_MODULE_0__["now"])() : +time; t.restart(function tick(elapsed) { elapsed += total; t.restart(tick, total += delay, time); callback(elapsed); }, delay, time); return t; }); /***/ }), /***/ "./node_modules/d3-timer/src/timeout.js": /*!**********************************************!*\ !*** ./node_modules/d3-timer/src/timeout.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timer */ "./node_modules/d3-timer/src/timer.js"); /* harmony default export */ __webpack_exports__["default"] = (function(callback, delay, time) { var t = new _timer__WEBPACK_IMPORTED_MODULE_0__["Timer"]; delay = delay == null ? 0 : +delay; t.restart(function(elapsed) { t.stop(); callback(elapsed + delay); }, delay, time); return t; }); /***/ }), /***/ "./node_modules/d3-timer/src/timer.js": /*!********************************************!*\ !*** ./node_modules/d3-timer/src/timer.js ***! \********************************************/ /*! exports provided: now, Timer, timer, timerFlush */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "now", function() { return now; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timer", function() { return Timer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timerFlush", function() { return timerFlush; }); var frame = 0, // is an animation frame pending? timeout = 0, // is a timeout pending? interval = 0, // are any timers active? pokeDelay = 1000, // how frequently we check for clock skew taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance === "object" && performance.now ? performance : Date, setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); }; function now() { return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew); } function clearNow() { clockNow = 0; } function Timer() { this._call = this._time = this._next = null; } Timer.prototype = timer.prototype = { constructor: Timer, restart: function(callback, delay, time) { if (typeof callback !== "function") throw new TypeError("callback is not a function"); time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); if (!this._next && taskTail !== this) { if (taskTail) taskTail._next = this; else taskHead = this; taskTail = this; } this._call = callback; this._time = time; sleep(); }, stop: function() { if (this._call) { this._call = null; this._time = Infinity; sleep(); } } }; function timer(callback, delay, time) { var t = new Timer; t.restart(callback, delay, time); return t; } function timerFlush() { now(); // Get the current time, if not already set. ++frame; // Pretend we’ve set an alarm, if we haven’t already. var t = taskHead, e; while (t) { if ((e = clockNow - t._time) >= 0) t._call.call(null, e); t = t._next; } --frame; } function wake() { clockNow = (clockLast = clock.now()) + clockSkew; frame = timeout = 0; try { timerFlush(); } finally { frame = 0; nap(); clockNow = 0; } } function poke() { var now = clock.now(), delay = now - clockLast; if (delay > pokeDelay) clockSkew -= delay, clockLast = now; } function nap() { var t0, t1 = taskHead, t2, time = Infinity; while (t1) { if (t1._call) { if (time > t1._time) time = t1._time; t0 = t1, t1 = t1._next; } else { t2 = t1._next, t1._next = null; t1 = t0 ? t0._next = t2 : taskHead = t2; } } taskTail = t0; sleep(time); } function sleep(time) { if (frame) return; // Soonest alarm already set, or will be. if (timeout) timeout = clearTimeout(timeout); var delay = time - clockNow; // Strictly less than if we recomputed clockNow. if (delay > 24) { if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew); if (interval) interval = clearInterval(interval); } else { if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay); frame = 1, setFrame(wake); } } /***/ }), /***/ "./node_modules/d3-transition/index.js": /*!*********************************************!*\ !*** ./node_modules/d3-transition/index.js ***! \*********************************************/ /*! exports provided: transition, active, interrupt */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _src_selection_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/selection/index */ "./node_modules/d3-transition/src/selection/index.js"); /* harmony import */ var _src_transition_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/transition/index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return _src_transition_index__WEBPACK_IMPORTED_MODULE_1__["default"]; }); /* harmony import */ var _src_active__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/active */ "./node_modules/d3-transition/src/active.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "active", function() { return _src_active__WEBPACK_IMPORTED_MODULE_2__["default"]; }); /* harmony import */ var _src_interrupt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/interrupt */ "./node_modules/d3-transition/src/interrupt.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return _src_interrupt__WEBPACK_IMPORTED_MODULE_3__["default"]; }); /***/ }), /***/ "./node_modules/d3-transition/src/active.js": /*!**************************************************!*\ !*** ./node_modules/d3-transition/src/active.js ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transition_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); var root = [null]; /* harmony default export */ __webpack_exports__["default"] = (function(node, name) { var schedules = node.__transition, schedule, i; if (schedules) { name = name == null ? null : name + ""; for (i in schedules) { if ((schedule = schedules[i]).state > _transition_schedule__WEBPACK_IMPORTED_MODULE_1__["SCHEDULED"] && schedule.name === name) { return new _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"]([[node]], root, name, +i); } } } return null; }); /***/ }), /***/ "./node_modules/d3-transition/src/interrupt.js": /*!*****************************************************!*\ !*** ./node_modules/d3-transition/src/interrupt.js ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); /* harmony default export */ __webpack_exports__["default"] = (function(node, name) { var schedules = node.__transition, schedule, active, empty = true, i; if (!schedules) return; name = name == null ? null : name + ""; for (i in schedules) { if ((schedule = schedules[i]).name !== name) { empty = false; continue; } active = schedule.state > _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["STARTING"] && schedule.state < _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["ENDING"]; schedule.state = _transition_schedule__WEBPACK_IMPORTED_MODULE_0__["ENDED"]; schedule.timer.stop(); if (active) schedule.on.call("interrupt", node, node.__data__, schedule.index, schedule.group); delete schedules[i]; } if (empty) delete node.__transition; }); /***/ }), /***/ "./node_modules/d3-transition/src/selection/index.js": /*!***********************************************************!*\ !*** ./node_modules/d3-transition/src/selection/index.js ***! \***********************************************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _interrupt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interrupt */ "./node_modules/d3-transition/src/selection/interrupt.js"); /* harmony import */ var _transition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transition */ "./node_modules/d3-transition/src/selection/transition.js"); d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.interrupt = _interrupt__WEBPACK_IMPORTED_MODULE_1__["default"]; d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.transition = _transition__WEBPACK_IMPORTED_MODULE_2__["default"]; /***/ }), /***/ "./node_modules/d3-transition/src/selection/interrupt.js": /*!***************************************************************!*\ !*** ./node_modules/d3-transition/src/selection/interrupt.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _interrupt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../interrupt */ "./node_modules/d3-transition/src/interrupt.js"); /* harmony default export */ __webpack_exports__["default"] = (function(name) { return this.each(function() { Object(_interrupt__WEBPACK_IMPORTED_MODULE_0__["default"])(this, name); }); }); /***/ }), /***/ "./node_modules/d3-transition/src/selection/transition.js": /*!****************************************************************!*\ !*** ./node_modules/d3-transition/src/selection/transition.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _transition_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transition/index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony import */ var _transition_schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transition/schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); /* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/index.js"); /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/index.js"); var defaultTiming = { time: null, // Set on use. delay: 0, duration: 250, ease: d3_ease__WEBPACK_IMPORTED_MODULE_2__["easeCubicInOut"] }; function inherit(node, id) { var timing; while (!(timing = node.__transition) || !(timing = timing[id])) { if (!(node = node.parentNode)) { return defaultTiming.time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), defaultTiming; } } return timing; } /* harmony default export */ __webpack_exports__["default"] = (function(name) { var id, timing; if (name instanceof _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"]) { id = name._id, name = name._name; } else { id = Object(_transition_index__WEBPACK_IMPORTED_MODULE_0__["newId"])(), (timing = defaultTiming).time = Object(d3_timer__WEBPACK_IMPORTED_MODULE_3__["now"])(), name = name == null ? null : name + ""; } for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { Object(_transition_schedule__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id, i, group, timing || inherit(node, id)); } } } return new _transition_index__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/attr.js": /*!***********************************************************!*\ !*** ./node_modules/d3-transition/src/transition/attr.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js"); /* harmony import */ var _interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interpolate */ "./node_modules/d3-transition/src/transition/interpolate.js"); function attrRemove(name) { return function() { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, interpolate, value1) { var value00, interpolate0; return function() { var value0 = this.getAttribute(name); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function attrConstantNS(fullname, interpolate, value1) { var value00, interpolate0; return function() { var value0 = this.getAttributeNS(fullname.space, fullname.local); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function attrFunction(name, interpolate, value) { var value00, value10, interpolate0; return function() { var value0, value1 = value(this); if (value1 == null) return void this.removeAttribute(name); value0 = this.getAttribute(name); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } function attrFunctionNS(fullname, interpolate, value) { var value00, value10, interpolate0; return function() { var value0, value1 = value(this); if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local); value0 = this.getAttributeNS(fullname.space, fullname.local); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["namespace"])(name), i = fullname === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformSvg"] : _interpolate__WEBPACK_IMPORTED_MODULE_3__["default"]; return this.attrTween(name, typeof value === "function" ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, Object(_tween__WEBPACK_IMPORTED_MODULE_2__["tweenValue"])(this, "attr." + name, value)) : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname) : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value + "")); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/attrTween.js": /*!****************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/attrTween.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); function attrTweenNS(fullname, value) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.setAttributeNS(fullname.space, fullname.local, i(t)); }; } tween._value = value; return tween; } function attrTween(name, value) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.setAttribute(name, i(t)); }; } tween._value = value; return tween; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { var key = "attr." + name; if (arguments.length < 2) return (key = this.tween(key)) && key._value; if (value == null) return this.tween(key, null); if (typeof value !== "function") throw new Error; var fullname = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["namespace"])(name); return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value)); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/delay.js": /*!************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/delay.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); function delayFunction(id, value) { return function() { Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = +value.apply(this, arguments); }; } function delayConstant(id, value) { return value = +value, function() { Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["init"])(this, id).delay = value; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { var id = this._id; return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id, value)) : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).delay; }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/duration.js": /*!***************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/duration.js ***! \***************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); function durationFunction(id, value) { return function() { Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = +value.apply(this, arguments); }; } function durationConstant(id, value) { return value = +value, function() { Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).duration = value; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { var id = this._id; return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).duration; }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/ease.js": /*!***********************************************************!*\ !*** ./node_modules/d3-transition/src/transition/ease.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); function easeConstant(id, value) { if (typeof value !== "function") throw new Error; return function() { Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id).ease = value; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { var id = this._id; return arguments.length ? this.each(easeConstant(id, value)) : Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).ease; }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/filter.js": /*!*************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/filter.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(match) { if (typeof match !== "function") match = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["matcher"])(match); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { if ((node = group[i]) && match.call(node, node.__data__, i, group)) { subgroup.push(node); } } } return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, this._name, this._id); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/index.js": /*!************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/index.js ***! \************************************************************/ /*! exports provided: Transition, default, newId */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Transition", function() { return Transition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return transition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "newId", function() { return newId; }); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _attr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attr */ "./node_modules/d3-transition/src/transition/attr.js"); /* harmony import */ var _attrTween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./attrTween */ "./node_modules/d3-transition/src/transition/attrTween.js"); /* harmony import */ var _delay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./delay */ "./node_modules/d3-transition/src/transition/delay.js"); /* harmony import */ var _duration__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./duration */ "./node_modules/d3-transition/src/transition/duration.js"); /* harmony import */ var _ease__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ease */ "./node_modules/d3-transition/src/transition/ease.js"); /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./filter */ "./node_modules/d3-transition/src/transition/filter.js"); /* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-transition/src/transition/merge.js"); /* harmony import */ var _on__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./on */ "./node_modules/d3-transition/src/transition/on.js"); /* harmony import */ var _remove__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./remove */ "./node_modules/d3-transition/src/transition/remove.js"); /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select */ "./node_modules/d3-transition/src/transition/select.js"); /* harmony import */ var _selectAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selectAll */ "./node_modules/d3-transition/src/transition/selectAll.js"); /* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./selection */ "./node_modules/d3-transition/src/transition/selection.js"); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./style */ "./node_modules/d3-transition/src/transition/style.js"); /* harmony import */ var _styleTween__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./styleTween */ "./node_modules/d3-transition/src/transition/styleTween.js"); /* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./text */ "./node_modules/d3-transition/src/transition/text.js"); /* harmony import */ var _transition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./transition */ "./node_modules/d3-transition/src/transition/transition.js"); /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js"); var id = 0; function Transition(groups, parents, name, id) { this._groups = groups; this._parents = parents; this._name = name; this._id = id; } function transition(name) { return Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"])().transition(name); } function newId() { return ++id; } var selection_prototype = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype; Transition.prototype = transition.prototype = { constructor: Transition, select: _select__WEBPACK_IMPORTED_MODULE_10__["default"], selectAll: _selectAll__WEBPACK_IMPORTED_MODULE_11__["default"], filter: _filter__WEBPACK_IMPORTED_MODULE_6__["default"], merge: _merge__WEBPACK_IMPORTED_MODULE_7__["default"], selection: _selection__WEBPACK_IMPORTED_MODULE_12__["default"], transition: _transition__WEBPACK_IMPORTED_MODULE_16__["default"], call: selection_prototype.call, nodes: selection_prototype.nodes, node: selection_prototype.node, size: selection_prototype.size, empty: selection_prototype.empty, each: selection_prototype.each, on: _on__WEBPACK_IMPORTED_MODULE_8__["default"], attr: _attr__WEBPACK_IMPORTED_MODULE_1__["default"], attrTween: _attrTween__WEBPACK_IMPORTED_MODULE_2__["default"], style: _style__WEBPACK_IMPORTED_MODULE_13__["default"], styleTween: _styleTween__WEBPACK_IMPORTED_MODULE_14__["default"], text: _text__WEBPACK_IMPORTED_MODULE_15__["default"], remove: _remove__WEBPACK_IMPORTED_MODULE_9__["default"], tween: _tween__WEBPACK_IMPORTED_MODULE_17__["default"], delay: _delay__WEBPACK_IMPORTED_MODULE_3__["default"], duration: _duration__WEBPACK_IMPORTED_MODULE_4__["default"], ease: _ease__WEBPACK_IMPORTED_MODULE_5__["default"] }; /***/ }), /***/ "./node_modules/d3-transition/src/transition/interpolate.js": /*!******************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/interpolate.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/index.js"); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(a, b) { var c; return (typeof b === "number" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateNumber"] : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_0__["color"] ? d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"] : (c = Object(d3_color__WEBPACK_IMPORTED_MODULE_0__["color"])(b)) ? (b = c, d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateRgb"]) : d3_interpolate__WEBPACK_IMPORTED_MODULE_1__["interpolateString"])(a, b); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/merge.js": /*!************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/merge.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony default export */ __webpack_exports__["default"] = (function(transition) { if (transition._id !== this._id) throw new Error; for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group0[i] || group1[i]) { merge[i] = node; } } } for (; j < m0; ++j) { merges[j] = groups0[j]; } return new _index__WEBPACK_IMPORTED_MODULE_0__["Transition"](merges, this._parents, this._name, this._id); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/on.js": /*!*********************************************************!*\ !*** ./node_modules/d3-transition/src/transition/on.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); function start(name) { return (name + "").trim().split(/^|\s+/).every(function(t) { var i = t.indexOf("."); if (i >= 0) t = t.slice(0, i); return !t || t === "start"; }); } function onFunction(id, name, listener) { var on0, on1, sit = start(name) ? _schedule__WEBPACK_IMPORTED_MODULE_0__["init"] : _schedule__WEBPACK_IMPORTED_MODULE_0__["set"]; return function() { var schedule = sit(this, id), on = schedule.on; // If this node shared a dispatch with the previous node, // just assign the updated shared dispatch and we’re done! // Otherwise, copy-on-write. if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener); schedule.on = on1; }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, listener) { var id = this._id; return arguments.length < 2 ? Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).on.on(name) : this.each(onFunction(id, name, listener)); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/remove.js": /*!*************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/remove.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function removeFunction(id) { return function() { var parent = this.parentNode; for (var i in this.__transition) if (+i !== id) return; if (parent) parent.removeChild(this); }; } /* harmony default export */ __webpack_exports__["default"] = (function() { return this.on("end.remove", removeFunction(this._id)); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/schedule.js": /*!***************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/schedule.js ***! \***************************************************************/ /*! exports provided: CREATED, SCHEDULED, STARTING, STARTED, RUNNING, ENDING, ENDED, default, init, set, get */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CREATED", function() { return CREATED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SCHEDULED", function() { return SCHEDULED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTING", function() { return STARTING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "STARTED", function() { return STARTED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RUNNING", function() { return RUNNING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDING", function() { return ENDING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDED", function() { return ENDED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return set; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "get", function() { return get; }); /* harmony import */ var d3_dispatch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-dispatch */ "./node_modules/d3-dispatch/index.js"); /* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/index.js"); var emptyOn = Object(d3_dispatch__WEBPACK_IMPORTED_MODULE_0__["dispatch"])("start", "end", "interrupt"); var emptyTween = []; var CREATED = 0; var SCHEDULED = 1; var STARTING = 2; var STARTED = 3; var RUNNING = 4; var ENDING = 5; var ENDED = 6; /* harmony default export */ __webpack_exports__["default"] = (function(node, name, id, index, group, timing) { var schedules = node.__transition; if (!schedules) node.__transition = {}; else if (id in schedules) return; create(node, id, { name: name, index: index, // For context during callback. group: group, // For context during callback. on: emptyOn, tween: emptyTween, time: timing.time, delay: timing.delay, duration: timing.duration, ease: timing.ease, timer: null, state: CREATED }); }); function init(node, id) { var schedule = get(node, id); if (schedule.state > CREATED) throw new Error("too late; already scheduled"); return schedule; } function set(node, id) { var schedule = get(node, id); if (schedule.state > STARTING) throw new Error("too late; already started"); return schedule; } function get(node, id) { var schedule = node.__transition; if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found"); return schedule; } function create(node, id, self) { var schedules = node.__transition, tween; // Initialize the self timer when the transition is created. // Note the actual delay is not known until the first callback! schedules[id] = self; self.timer = Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timer"])(schedule, 0, self.time); function schedule(elapsed) { self.state = SCHEDULED; self.timer.restart(start, self.delay, self.time); // If the elapsed delay is less than our first sleep, start immediately. if (self.delay <= elapsed) start(elapsed - self.delay); } function start(elapsed) { var i, j, n, o; // If the state is not SCHEDULED, then we previously errored on start. if (self.state !== SCHEDULED) return stop(); for (i in schedules) { o = schedules[i]; if (o.name !== self.name) continue; // While this element already has a starting transition during this frame, // defer starting an interrupting transition until that transition has a // chance to tick (and possibly end); see d3/d3-transition#54! if (o.state === STARTED) return Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(start); // Interrupt the active transition, if any. // Dispatch the interrupt event. if (o.state === RUNNING) { o.state = ENDED; o.timer.stop(); o.on.call("interrupt", node, node.__data__, o.index, o.group); delete schedules[i]; } // Cancel any pre-empted transitions. No interrupt event is dispatched // because the cancelled transitions never started. Note that this also // removes this transition from the pending list! else if (+i < id) { o.state = ENDED; o.timer.stop(); delete schedules[i]; } } // Defer the first tick to end of the current frame; see d3/d3#1576. // Note the transition may be canceled after start and before the first tick! // Note this must be scheduled before the start event; see d3/d3-transition#16! // Assuming this is successful, subsequent callbacks go straight to tick. Object(d3_timer__WEBPACK_IMPORTED_MODULE_1__["timeout"])(function() { if (self.state === STARTED) { self.state = RUNNING; self.timer.restart(tick, self.delay, self.time); tick(elapsed); } }); // Dispatch the start event. // Note this must be done before the tween are initialized. self.state = STARTING; self.on.call("start", node, node.__data__, self.index, self.group); if (self.state !== STARTING) return; // interrupted self.state = STARTED; // Initialize the tween, deleting null tween. tween = new Array(n = self.tween.length); for (i = 0, j = -1; i < n; ++i) { if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) { tween[++j] = o; } } tween.length = j + 1; } function tick(elapsed) { var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1), i = -1, n = tween.length; while (++i < n) { tween[i].call(null, t); } // Dispatch the end event. if (self.state === ENDING) { self.on.call("end", node, node.__data__, self.index, self.group); stop(); } } function stop() { self.state = ENDED; self.timer.stop(); delete schedules[id]; for (var i in schedules) return; // eslint-disable-line no-unused-vars delete node.__transition; } } /***/ }), /***/ "./node_modules/d3-transition/src/transition/select.js": /*!*************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/select.js ***! \*************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); /* harmony default export */ __webpack_exports__["default"] = (function(select) { var name = this._name, id = this._id; if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selector"])(select); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { if ("__data__" in node) subnode.__data__ = node.__data__; subgroup[i] = subnode; Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["default"])(subgroup[i], name, id, i, subgroup, Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id)); } } } return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, this._parents, name, id); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/selectAll.js": /*!****************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/selectAll.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); /* harmony default export */ __webpack_exports__["default"] = (function(select) { var name = this._name, id = this._id; if (typeof select !== "function") select = Object(d3_selection__WEBPACK_IMPORTED_MODULE_0__["selectorAll"])(select); for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { for (var children = select.call(node, node.__data__, i, group), child, inherit = Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["get"])(node, id), k = 0, l = children.length; k < l; ++k) { if (child = children[k]) { Object(_schedule__WEBPACK_IMPORTED_MODULE_2__["default"])(child, name, id, k, children, inherit); } } subgroups.push(children); parents.push(node); } } } return new _index__WEBPACK_IMPORTED_MODULE_1__["Transition"](subgroups, parents, name, id); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/selection.js": /*!****************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/selection.js ***! \****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); var Selection = d3_selection__WEBPACK_IMPORTED_MODULE_0__["selection"].prototype.constructor; /* harmony default export */ __webpack_exports__["default"] = (function() { return new Selection(this._groups, this._parents); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/style.js": /*!************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/style.js ***! \************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/index.js"); /* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-selection */ "./node_modules/d3-selection/src/index.js"); /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js"); /* harmony import */ var _interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interpolate */ "./node_modules/d3-transition/src/transition/interpolate.js"); function styleRemove(name, interpolate) { var value00, value10, interpolate0; return function() { var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name), value1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name)); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } function styleRemoveEnd(name) { return function() { this.style.removeProperty(name); }; } function styleConstant(name, interpolate, value1) { var value00, interpolate0; return function() { var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function styleFunction(name, interpolate, value) { var value00, value10, interpolate0; return function() { var value0 = Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name), value1 = value(this); if (value1 == null) value1 = (this.style.removeProperty(name), Object(d3_selection__WEBPACK_IMPORTED_MODULE_1__["style"])(this, name)); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) { var i = (name += "") === "transform" ? d3_interpolate__WEBPACK_IMPORTED_MODULE_0__["interpolateTransformCss"] : _interpolate__WEBPACK_IMPORTED_MODULE_3__["default"]; return value == null ? this .styleTween(name, styleRemove(name, i)) .on("end.style." + name, styleRemoveEnd(name)) : this.styleTween(name, typeof value === "function" ? styleFunction(name, i, Object(_tween__WEBPACK_IMPORTED_MODULE_2__["tweenValue"])(this, "style." + name, value)) : styleConstant(name, i, value + ""), priority); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/styleTween.js": /*!*****************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/styleTween.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); function styleTween(name, value, priority) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.style.setProperty(name, i(t), priority); }; } tween._value = value; return tween; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value, priority) { var key = "style." + (name += ""); if (arguments.length < 2) return (key = this.tween(key)) && key._value; if (value == null) return this.tween(key, null); if (typeof value !== "function") throw new Error; return this.tween(key, styleTween(name, value, priority == null ? "" : priority)); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/text.js": /*!***********************************************************!*\ !*** ./node_modules/d3-transition/src/transition/text.js ***! \***********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _tween__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tween */ "./node_modules/d3-transition/src/transition/tween.js"); function textConstant(value) { return function() { this.textContent = value; }; } function textFunction(value) { return function() { var value1 = value(this); this.textContent = value1 == null ? "" : value1; }; } /* harmony default export */ __webpack_exports__["default"] = (function(value) { return this.tween("text", typeof value === "function" ? textFunction(Object(_tween__WEBPACK_IMPORTED_MODULE_0__["tweenValue"])(this, "text", value)) : textConstant(value == null ? "" : value + "")); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/transition.js": /*!*****************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/transition.js ***! \*****************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./node_modules/d3-transition/src/transition/index.js"); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); /* harmony default export */ __webpack_exports__["default"] = (function() { var name = this._name, id0 = this._id, id1 = Object(_index__WEBPACK_IMPORTED_MODULE_0__["newId"])(); for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { var inherit = Object(_schedule__WEBPACK_IMPORTED_MODULE_1__["get"])(node, id0); Object(_schedule__WEBPACK_IMPORTED_MODULE_1__["default"])(node, name, id1, i, group, { time: inherit.time + inherit.delay + inherit.duration, delay: 0, duration: inherit.duration, ease: inherit.ease }); } } } return new _index__WEBPACK_IMPORTED_MODULE_0__["Transition"](groups, this._parents, name, id1); }); /***/ }), /***/ "./node_modules/d3-transition/src/transition/tween.js": /*!************************************************************!*\ !*** ./node_modules/d3-transition/src/transition/tween.js ***! \************************************************************/ /*! exports provided: default, tweenValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tweenValue", function() { return tweenValue; }); /* harmony import */ var _schedule__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule */ "./node_modules/d3-transition/src/transition/schedule.js"); function tweenRemove(id, name) { var tween0, tween1; return function() { var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id), tween = schedule.tween; // If this node shared tween with the previous node, // just assign the updated shared tween and we’re done! // Otherwise, copy-on-write. if (tween !== tween0) { tween1 = tween0 = tween; for (var i = 0, n = tween1.length; i < n; ++i) { if (tween1[i].name === name) { tween1 = tween1.slice(); tween1.splice(i, 1); break; } } } schedule.tween = tween1; }; } function tweenFunction(id, name, value) { var tween0, tween1; if (typeof value !== "function") throw new Error; return function() { var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id), tween = schedule.tween; // If this node shared tween with the previous node, // just assign the updated shared tween and we’re done! // Otherwise, copy-on-write. if (tween !== tween0) { tween1 = (tween0 = tween).slice(); for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) { if (tween1[i].name === name) { tween1[i] = t; break; } } if (i === n) tween1.push(t); } schedule.tween = tween1; }; } /* harmony default export */ __webpack_exports__["default"] = (function(name, value) { var id = this._id; name += ""; if (arguments.length < 2) { var tween = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(this.node(), id).tween; for (var i = 0, n = tween.length, t; i < n; ++i) { if ((t = tween[i]).name === name) { return t.value; } } return null; } return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value)); }); function tweenValue(transition, name, value) { var id = transition._id; transition.each(function() { var schedule = Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["set"])(this, id); (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments); }); return function(node) { return Object(_schedule__WEBPACK_IMPORTED_MODULE_0__["get"])(node, id).value[name]; }; } /***/ }), /***/ "./src/@fuse/components/widget/widget.module.ts": /*!******************************************************!*\ !*** ./src/@fuse/components/widget/widget.module.ts ***! \******************************************************/ /*! exports provided: FuseWidgetModule */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FuseWidgetModule", function() { return FuseWidgetModule; }); class FuseWidgetModule { } /***/ }) }]);