Skip to content

Commit

Permalink
🔖 v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienjuif committed Mar 26, 2020
1 parent 54b1b2e commit 2a15397
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-kgraph",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",
"homepage": "https://github.com/unirakun/react-kgraph",
"repository": "github:unirakun/react-kgraph",
Expand Down
6 changes: 5 additions & 1 deletion pkg/dist-src/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ const Graph = (props) => {
React.createElement("path", { d: "M 0 0 L 5 2.5 L 0 5 z", fill: color })))),
React.createElement("g", { stroke: "#999" }, makeCurvedLinks(layout.links, { size }).map((link, index) => {
const { source, target } = link;
return (React.createElement(Link, Object.assign({ id: index }, link, { size: size, onClick: innerOnLinkClick, hover: hoverNode === source.id || hoverNode === target.id })));
return (React.createElement(Link
// eslint-disable-next-line react/no-array-index-key
, Object.assign({
// eslint-disable-next-line react/no-array-index-key
key: index, id: index }, link, { size: size, onClick: innerOnLinkClick, hover: hoverNode === source.id || hoverNode === target.id })));
})),
React.createElement("g", { stroke: "#fff", strokeWidth: 1 }, layout.nodes.map((node) => {
const { id, group, x, y, label, Component, color } = node;
Expand Down
6 changes: 5 additions & 1 deletion pkg/dist-web/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/dist-web/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-kgraph",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",
"files": [
"dist-*/",
Expand Down

0 comments on commit 2a15397

Please sign in to comment.