Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
curveCatmullRomFactory = d3Shape.curveCatmullRomClosed;
curveCatmullRomFactory = d3Shape.curveCatmullRomClosed.alpha(0.5);
curveGenerator = d3Shape.curveCatmullRomClosed.alpha(0.5)(context!); // force context to be non-null with post-fix for mock
curveGenerator = d3Shape.curveCatmullRomClosed.alpha(0.5)(path());
curveFactory = d3Shape.curveLinear;
curveFactory = d3Shape.curveLinearClosed;
curveFactory = d3Shape.curveMonotoneX;
curveFactory = d3Shape.curveMonotoneY;
curveFactory = d3Shape.curveNatural;
curveFactory = d3Shape.curveStep;
curveFactory = d3Shape.curveStepAfter;
curveFactory = d3Shape.curveStepBefore;
// -----------------------------------------------------------------------------------
// Test Link/LinkRadial Generators
// -----------------------------------------------------------------------------------
// Preparatory steps =================================================================
interface TreeNodeDatum {
whatever: any;
}
return (colors.length > this.props.accounts.length) ?
colors : getAccountColors(colors.concat(colors));
};
const accountColors = getAccountColors(AccountColors);
return (
<>
{/*
// @ts-ignore */}
render() {
const data = [50, 10, 40, 95, -4, -24, 85, 91, 35, 53, -53, 24, 50, -20, -80]
return (
)
}
}
'rgb(138, 0, 230, 0.8)',
'rgb(173, 51, 255, 0.8)',
'rgb(194, 102, 255, 0.8)',
'rgb(214, 153, 255, 0.8)',
]
const keys = ['apples', 'bananas', 'cherries', 'dates']
return (
render() {
const data = [50, 10, 40, 95, -4, -24, 85, 91, 35, 53, -53, 24, 50, -20, -80]
const min = array.extent(data)[0]
return (
)
}
}
curveClosed: shape.curveCardinalClosed
};
const curves = {
'Basis': shape.curveBasis,
'Basis Closed': shape.curveBasisClosed,
'Bundle': shape.curveBundle.beta(1),
'Cardinal': shape.curveCardinal,
'Cardinal Closed': shape.curveCardinalClosed,
'Catmull Rom': shape.curveCatmullRom,
'Catmull Rom Closed': shape.curveCatmullRomClosed,
'Linear': shape.curveLinear,
'Linear Closed': shape.curveLinearClosed,
'Monotone X': shape.curveMonotoneX,
'Monotone Y': shape.curveMonotoneY,
'Natural': shape.curveNatural,
'Step': shape.curveStep,
'Step After': shape.curveStepAfter,
'Step Before': shape.curveStepBefore,
'default': shape.curveLinear
};
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['../../node_modules/@swimlane/ngx-ui/release/index.css', './app.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements OnInit {
chartTypes = chartTypes;
const Line = ({ line }) => (
this.curve = shape.curveCardinal;
}
if (curveType === 'Catmull Rom') {
this.curve = shape.curveCatmullRom;
}
if (curveType === 'Linear') {
this.curve = shape.curveLinear;
}
if (curveType === 'Monotone X') {
this.curve = shape.curveMonotoneX;
}
if (curveType === 'Monotone Y') {
this.curve = shape.curveMonotoneY;
}
if (curveType === 'Natural') {
this.curve = shape.curveNatural;
}
if (curveType === 'Step') {
this.curve = shape.curveStep;
}
if (curveType === 'Step After') {
this.curve = shape.curveStepAfter;
}
if (curveType === 'Step Before') {
this.curve = shape.curveStepBefore;
}
}