How to use the react-digraph.GraphUtils.classNames function in react-digraph

To help you get started, we’ve selected a few react-digraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github futpib / pagraphcontrol / components / graph / base.js View on Github external
render() {
		const { data } = this.props;
		const id = `${data.source || ''}_${data.target}`;
		const className = GraphUtils.classNames('edge', {
			selected: this.props.isSelected,
		});

		return r.g({
			className: 'edge-container ' + (this.props.className || ''),
			'data-source': data.source,
			'data-target': data.target,
		}, [
			r.g({
				className,
			}, [
				r.path({
					className: 'edge-path',
					d: this.getPathDescription(data) || undefined,
				}),
			]),

react-digraph

directed graph react component

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis