@visx/network
Advanced tools
Comparing version 2.1.0 to 2.1.2
import React from 'react'; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export default function DefaultLink(_ref) { | ||
var link = _ref.link; | ||
return link && link.source && link.target ? /*#__PURE__*/React.createElement("line", { | ||
return link != null && link.source && link.target ? /*#__PURE__*/React.createElement("line", { | ||
x1: link.source.x, | ||
@@ -6,0 +7,0 @@ y1: link.source.y, |
import _pt from "prop-types"; | ||
var _excluded = ["r", "fill"]; | ||
@@ -13,3 +14,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
fill = _ref$fill === void 0 ? '#21D4FD' : _ref$fill, | ||
rest = _objectWithoutPropertiesLoose(_ref, ["r", "fill"]); | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -16,0 +17,0 @@ return /*#__PURE__*/React.createElement("circle", _extends({ |
@@ -14,7 +14,7 @@ import _pt from "prop-types"; | ||
x = _ref$x === void 0 ? function (d) { | ||
return d && d.x || 0; | ||
return (d == null ? void 0 : d.x) || 0; | ||
} : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? function (d) { | ||
return d && d.y || 0; | ||
return (d == null ? void 0 : d.y) || 0; | ||
} : _ref$y; | ||
@@ -21,0 +21,0 @@ return /*#__PURE__*/React.createElement(React.Fragment, null, nodes.map(function (node, i) { |
@@ -10,5 +10,6 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function DefaultLink(_ref) { | ||
var link = _ref.link; | ||
return link && link.source && link.target ? /*#__PURE__*/_react.default.createElement("line", { | ||
return link != null && link.source && link.target ? /*#__PURE__*/_react.default.createElement("line", { | ||
x1: link.source.x, | ||
@@ -15,0 +16,0 @@ y1: link.source.y, |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _excluded = ["r", "fill"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -22,3 +24,3 @@ | ||
fill = _ref$fill === void 0 ? '#21D4FD' : _ref$fill, | ||
rest = _objectWithoutPropertiesLoose(_ref, ["r", "fill"]); | ||
rest = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -25,0 +27,0 @@ return /*#__PURE__*/_react.default.createElement("circle", _extends({ |
@@ -15,3 +15,4 @@ import React from 'react'; | ||
}; | ||
export default function Nodes<Node>({ nodes, nodeComponent, className, x, y, }: NodeProps<Node>): JSX.Element; | ||
export default function Nodes<Node>({ nodes, nodeComponent, className, x, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
y, }: NodeProps<Node>): JSX.Element; | ||
//# sourceMappingURL=Nodes.d.ts.map |
@@ -26,7 +26,7 @@ "use strict"; | ||
x = _ref$x === void 0 ? function (d) { | ||
return d && d.x || 0; | ||
return (d == null ? void 0 : d.x) || 0; | ||
} : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? function (d) { | ||
return d && d.y || 0; | ||
return (d == null ? void 0 : d.y) || 0; | ||
} : _ref$y; | ||
@@ -33,0 +33,0 @@ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, nodes.map(function (node, i) { |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
{ | ||
"name": "@visx/network", | ||
"version": "2.1.0", | ||
"version": "2.1.2", | ||
"description": "visx network", | ||
@@ -34,3 +34,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "5b3d538fccb164202f4b28159123a2c4fe89a65f" | ||
"gitHead": "5da0b5912ee57ad28e83b850e9627ec799a90e3b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21397
351