Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let curveCardinalFactory: d3Shape.CurveCardinalFactory;
curveCardinalFactory = d3Shape.curveCardinal;
curveCardinalFactory = d3Shape.curveCardinal.tension(0.5);
curveGenerator = d3Shape.curveCardinal.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinal.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalOpen;
curveCardinalFactory = d3Shape.curveCardinalOpen.tension(0.5);
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalClosed;
curveCardinalFactory = d3Shape.curveCardinalClosed.tension(0.5);
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(path());
let curveCatmullRomFactory: d3Shape.CurveCatmullRomFactory;
curveCatmullRomFactory = d3Shape.curveCatmullRom;
curveCatmullRomFactory = d3Shape.curveCatmullRom.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(path());
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen;
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRomOpen.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
let curveCardinalFactory: d3Shape.CurveCardinalFactory;
curveCardinalFactory = d3Shape.curveCardinal;
curveCardinalFactory = d3Shape.curveCardinal.tension(0.5);
curveGenerator = d3Shape.curveCardinal.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinal.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalOpen;
curveCardinalFactory = d3Shape.curveCardinalOpen.tension(0.5);
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalClosed;
curveCardinalFactory = d3Shape.curveCardinalClosed.tension(0.5);
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(path());
let curveCatmullRomFactory: d3Shape.CurveCatmullRomFactory;
curveCatmullRomFactory = d3Shape.curveCatmullRom;
curveCatmullRomFactory = d3Shape.curveCatmullRom.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(path());
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen;
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen.alpha(0.5);
curveCardinalFactory = d3Shape.curveCardinal;
curveCardinalFactory = d3Shape.curveCardinal.tension(0.5);
curveGenerator = d3Shape.curveCardinal.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinal.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalOpen;
curveCardinalFactory = d3Shape.curveCardinalOpen.tension(0.5);
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalClosed;
curveCardinalFactory = d3Shape.curveCardinalClosed.tension(0.5);
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(path());
let curveCatmullRomFactory: d3Shape.CurveCatmullRomFactory;
curveCatmullRomFactory = d3Shape.curveCatmullRom;
curveCatmullRomFactory = d3Shape.curveCatmullRom.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(path());
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen;
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRomOpen.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRomOpen.alpha(0.5)(path());
let curveCardinalFactory: d3Shape.CurveCardinalFactory;
curveCardinalFactory = d3Shape.curveCardinal;
curveCardinalFactory = d3Shape.curveCardinal.tension(0.5);
curveGenerator = d3Shape.curveCardinal.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinal.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalOpen;
curveCardinalFactory = d3Shape.curveCardinalOpen.tension(0.5);
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalOpen.tension(0.5)(path());
curveCardinalFactory = d3Shape.curveCardinalClosed;
curveCardinalFactory = d3Shape.curveCardinalClosed.tension(0.5);
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCardinalClosed.tension(0.5)(path());
let curveCatmullRomFactory: d3Shape.CurveCatmullRomFactory;
curveCatmullRomFactory = d3Shape.curveCatmullRom;
curveCatmullRomFactory = d3Shape.curveCatmullRom.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRom.alpha(0.5)(path());
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen;
curveCatmullRomFactory = d3Shape.curveCatmullRomOpen.alpha(0.5);
var THEME = 'monteCarlo';
var SECONDARY_THEME = 'vividCerise';
var OUTLINE_FILL = 50;
var OUTLINE_HOVER = 30;
var OUTLINE_STROKE = -20; // Line options
var LINE_STROKE_WIDTH = 2;
var LINE_TYPE = 'curveLinear';
var LINE_TYPES = {
curveBasis: d3Shape.curveBasis,
curveBasisClosed: d3Shape.curveBasisClosed,
curveBasisOpen: d3Shape.curveBasisOpen,
curveBundle: d3Shape.curveBundle,
curveCardinal: d3Shape.curveCardinal,
curveCardinalClosed: d3Shape.curveCardinalClosed,
curveCardinalOpen: d3Shape.curveCardinalOpen,
curveCatmullRom: d3Shape.curveCatmullRom,
curveCatmullRomClosed: d3Shape.curveCatmullRomClosed,
curveCatmullRomOpen: d3Shape.curveCatmullRomOpen,
curveLinear: d3Shape.curveLinear,
curveLinearClosed: d3Shape.curveLinearClosed,
curveMonotoneX: d3Shape.curveMonotoneX,
curveMonotoneY: d3Shape.curveMonotoneY,
curveNatural: d3Shape.curveNatural,
curveStep: d3Shape.curveStep,
curveStepAfter: d3Shape.curveStepAfter,
curveStepBefore: d3Shape.curveStepBefore
};
/**
* Calculate the size of the chart using aspect-ratio, margins, and parent size.
legendTitle: 'Legend',
gradient: false,
showXAxis: true,
showYAxis: true,
showXAxisLabel: true,
showYAxisLabel: true,
yAxisLabel: '',
xAxisLabel: '',
autoScale: true,
showGridLines: true,
rangeFillOpacity: 0.5,
roundDomains: false,
tooltipDisabled: false,
showSeriesOnHover: true,
curve: shape.curveLinear,
curveClosed: shape.curveCardinalClosed
} as CustomChart;
@Component({
selector: 'app-chart-builder',
templateUrl: './chart-builder.component.html',
styleUrls: ['./chart-builder.component.sass']
})
export class ChartBuilderComponent implements OnInit {
chartTypes = customChartTypes;
dataDims: string[] = [null, null, null, null, 'count'];
chartOptions: CustomChart;
colors: string;
colorsRight: string;
steps: number;
bezier: boolean;
legendTitle: 'Legend',
gradient: false,
showXAxis: true,
showYAxis: true,
showXAxisLabel: true,
showYAxisLabel: true,
yAxisLabel: '',
xAxisLabel: '',
autoScale: true,
showGridLines: true,
rangeFillOpacity: 0.5,
roundDomains: false,
tooltipDisabled: false,
showSeriesOnHover: true,
curve: shape.curveLinear,
curveClosed: shape.curveCardinalClosed
};
@Component({
selector: 'app-charts-builder',
templateUrl: './charts-builder.component.html',
styleUrls: ['./charts-builder.component.html']
})
export class ChartsBuilderComponent implements OnInit, DoCheck {
@Input() inputData: any[];
@Input() inputOptions: any;
@Output() validSlide = new EventEmitter();
@Output() validForm = new EventEmitter();
chartTypes = chartTypes;
config = {
lineNumbers: true,
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _d3Shape = require("d3-shape");
exports.default = {
curveBasisClosed: _d3Shape.curveBasisClosed,
curveBasisOpen: _d3Shape.curveBasisOpen,
curveBasis: _d3Shape.curveBasis,
curveBundle: _d3Shape.curveBundle,
curveCardinalClosed: _d3Shape.curveCardinalClosed,
curveCardinalOpen: _d3Shape.curveCardinalOpen,
curveCardinal: _d3Shape.curveCardinal,
curveCatmullRomClosed: _d3Shape.curveCatmullRomClosed,
curveCatmullRomOpen: _d3Shape.curveCatmullRomOpen,
curveCatmullRom: _d3Shape.curveCatmullRom,
curveLinearClosed: _d3Shape.curveLinearClosed,
curveLinear: _d3Shape.curveLinear,
curveMonotoneX: _d3Shape.curveMonotoneX,
curveMonotoneY: _d3Shape.curveMonotoneY,
curveNatural: _d3Shape.curveNatural,
curveStep: _d3Shape.curveStep,
curveStepAfter: _d3Shape.curveStepAfter,
curveStepBefore: _d3Shape.curveStepBefore
}; /**
* Copyright (c) 2017, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to receipt
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var d3_shape_1 = require("d3-shape");
var curves = {
curveBasisClosed: d3_shape_1.curveBasisClosed,
curveBasisOpen: d3_shape_1.curveBasisOpen,
curveBasis: d3_shape_1.curveBasis,
curveBundle: d3_shape_1.curveBundle,
curveCardinalClosed: d3_shape_1.curveCardinalClosed,
curveCardinalOpen: d3_shape_1.curveCardinalOpen,
curveCardinal: d3_shape_1.curveCardinal,
curveCatmullRomClosed: d3_shape_1.curveCatmullRomClosed,
curveCatmullRomOpen: d3_shape_1.curveCatmullRomOpen,
curveCatmullRom: d3_shape_1.curveCatmullRom,
curveLinearClosed: d3_shape_1.curveLinearClosed,
curveLinear: d3_shape_1.curveLinear,
curveMonotoneX: d3_shape_1.curveMonotoneX,
curveMonotoneY: d3_shape_1.curveMonotoneY,
curveNatural: d3_shape_1.curveNatural,
curveStep: d3_shape_1.curveStep,
curveStepAfter: d3_shape_1.curveStepAfter,
curveStepBefore: d3_shape_1.curveStepBefore
};
exports.default = curves;
//# sourceMappingURL=curve.js.map
get: function get() {
return _d3Shape.curveCardinalClosed;
}
});