Guest User

Untitled

a guest
May 16th, 2019
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ERROR in Failed to find exported name of node (PieGridSeriesComponent = /** @class */ (function () {
  2.     function PieGridSeriesComponent(element) {
  3.         this.innerRadius = 70;
  4.         this.outerRadius = 80;
  5.         this.animations = true;
  6.         this.select = new EventEmitter();
  7.         this.element = element.nativeElement;
  8.     }
  9.     PieGridSeriesComponent.prototype.ngOnChanges = function (changes) {
  10.         this.update();
  11.     };
  12.     PieGridSeriesComponent.prototype.update = function () {
  13.         this.layout = pie()
  14.             .value(function (d) { return d.data.value; }).sort(null);
  15.         this.arcs = this.getArcs();
  16.     };
  17.     PieGridSeriesComponent.prototype.getArcs = function () {
  18.         var _this = this;
  19.         return this.layout(this.data).map(function (arc$$1, index) {
  20.             var label = arc$$1.data.data.name;
  21.             var other = arc$$1.data.data.other;
  22.             if (index === 0) {
  23.                 arc$$1.startAngle = 0;
  24.             }
  25.             var color = _this.colors(label);
  26.             return {
  27.                 data: arc$$1.data.data,
  28.                 class: 'arc ' + 'arc' + index,
  29.                 fill: color,
  30.                 startAngle: other ? 0 : arc$$1.startAngle,
  31.                 endAngle: arc$$1.endAngle,
  32.                 animate: _this.animations && !other,
  33.                 pointerEvents: !other
  34.             };
  35.         });
  36.     };
  37.     PieGridSeriesComponent.prototype.onClick = function (data) {
  38.         this.select.emit({
  39.             name: this.data[0].data.name,
  40.             value: this.data[0].data.value
  41.         });
  42.     };
  43.     PieGridSeriesComponent.prototype.trackBy = function (index, item) {
  44.         return item.data.name;
  45.     };
  46.     PieGridSeriesComponent.prototype.label = function (arc$$1) {
  47.         return arc$$1.data.name;
  48.     };
  49.     PieGridSeriesComponent.prototype.color = function (arc$$1) {
  50.         return this.colors(this.label(arc$$1));
  51.     };
  52.     var _a;
  53.     __decorate([
  54.         Input(),
  55.         __metadata("design:type", Object)
  56.     ], PieGridSeriesComponent.prototype, "colors", void 0);
  57.     __decorate([
  58.         Input(),
  59.         __metadata("design:type", Object)
  60.     ], PieGridSeriesComponent.prototype, "data", void 0);
  61.     __decorate([
  62.         Input(),
  63.         __metadata("design:type", Object)
  64.     ], PieGridSeriesComponent.prototype, "innerRadius", void 0);
  65.     __decorate([
  66.         Input(),
  67.         __metadata("design:type", Object)
  68.     ], PieGridSeriesComponent.prototype, "outerRadius", void 0);
  69.     __decorate([
  70.         Input(),
  71.         __metadata("design:type", Boolean)
  72.     ], PieGridSeriesComponent.prototype, "animations", void 0);
  73.     __decorate([
  74.         Output(),
  75.         __metadata("design:type", Object)
  76.     ], PieGridSeriesComponent.prototype, "select", void 0);
  77.     PieGridSeriesComponent = __decorate([
  78.         Component({
  79.             selector: 'g[ngx-charts-pie-grid-series]',
  80.             template: "\n    <svg:g class=\"pie-grid-arcs\">\n      <svg:g ngx-charts-pie-arc *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      </svg:g>\n    </svg:g>\n  ",
  81.             changeDetection: ChangeDetectionStrategy.OnPush,
  82.         }),
  83.         __metadata("design:paramtypes", [typeof (_a = typeof ElementRef !== "undefined" && ElementRef) === "function" ? _a : Object])
  84.     ], PieGridSeriesComponent);
  85.     return PieGridSeriesComponent;
  86. }())) in '/home/xxx/projects/apprc4/node_modules/@swimlane/ngx-charts/release/esm.js'.
Advertisement
Add Comment
Please, Sign In to add comment