Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
color,
trackStyle,
determinate,
theme,
testID,
} = this.props;
const {
indicatorPosition,
indicatorScaleX,
indicatorWidth,
trackScaleY,
trackOpacity,
} = this.state;
const trackColor = color
? colorTool(color)
.fade(0.4)
.string()
: colorTool(theme.primary.main)
.fade(0.4)
.string(); // .6 alpha of indicator
const indicatorColor = color ? color : theme.primary.main;
return (
theme,
testID,
} = this.props;
const {
indicatorPosition,
indicatorScaleX,
indicatorWidth,
trackScaleY,
trackOpacity,
} = this.state;
const trackColor = color
? colorTool(color)
.fade(0.4)
.string()
: colorTool(theme.primary.main)
.fade(0.4)
.string(); // .6 alpha of indicator
const indicatorColor = color ? color : theme.primary.main;
return (
.style('fill', d => color(d.meta().color).fade(0.9));
break;
render() {
const { name, color, header } = this.props;
const textColor = ColorTool(color).isLight() ? 'black' : 'white';
return (
_parse (data) {
let parsedData,
color;
if (!data) {
return null;
}
parsedData = Object.assign({}, data);
parsedData.timestamp = utils.ISO8601toNativeDate(parsedData.timestamp);
color = Color(parsedData.color);
parsedData.flowColor = color.rgb().opaquer(-0.5);
return parsedData;
}
.style('fill', d => {
if (d.hunk.recent) {
return d.hunk.meta.color;
} else {
return color(d.hunk.meta.color).fade(0.9);
}
});
break;