@visx/shape
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -24,2 +24,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); } | ||
var isRectilinear = from.x === to.x || from.y === to.y; | ||
return /*#__PURE__*/React.createElement("line", _extends({ | ||
@@ -32,4 +33,5 @@ ref: innerRef, | ||
y2: to.y, | ||
fill: fill | ||
fill: fill, | ||
shapeRendering: isRectilinear ? 'crispEdges' : 'auto' | ||
}, restProps)); | ||
} |
@@ -38,5 +38,5 @@ 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); } | ||
_ref2$x = _ref2.x, | ||
x = _ref2$x === void 0 ? getX : _ref2$x, | ||
x = _ref2$x === void 0 ? getY : _ref2$x, | ||
_ref2$y = _ref2.y, | ||
y = _ref2$y === void 0 ? getY : _ref2$y, | ||
y = _ref2$y === void 0 ? getX : _ref2$y, | ||
_ref2$source = _ref2.source, | ||
@@ -43,0 +43,0 @@ source = _ref2$source === void 0 ? getSource : _ref2$source, |
@@ -33,2 +33,3 @@ "use strict"; | ||
var isRectilinear = from.x === to.x || from.y === to.y; | ||
return /*#__PURE__*/_react.default.createElement("line", _extends({ | ||
@@ -41,4 +42,5 @@ ref: innerRef, | ||
y2: to.y, | ||
fill: fill | ||
fill: fill, | ||
shapeRendering: isRectilinear ? 'crispEdges' : 'auto' | ||
}, restProps)); | ||
} |
@@ -9,4 +9,6 @@ /// <reference types="react" /> | ||
} & AccessorProps<Link, Node> & SharedLinkProps<Link>; | ||
export default function LinkHorizontalStep<Link, Node>({ className, innerRef, data, path, percent, x, y, source, target, children, ...restProps }: AddSVGProps<LinkHorizontalStepProps<Link, Node>, SVGPathElement>): JSX.Element; | ||
export default function LinkHorizontalStep<Link, Node>({ className, innerRef, data, path, percent, x, // note this returns a y value | ||
y, // note this returns a x value | ||
source, target, children, ...restProps }: AddSVGProps<LinkHorizontalStepProps<Link, Node>, SVGPathElement>): JSX.Element; | ||
export {}; | ||
//# sourceMappingURL=LinkHorizontalStep.d.ts.map |
@@ -51,5 +51,5 @@ "use strict"; | ||
_ref2$x = _ref2.x, | ||
x = _ref2$x === void 0 ? _accessors.getX : _ref2$x, | ||
x = _ref2$x === void 0 ? _accessors.getY : _ref2$x, | ||
_ref2$y = _ref2.y, | ||
y = _ref2$y === void 0 ? _accessors.getY : _ref2$y, | ||
y = _ref2$y === void 0 ? _accessors.getX : _ref2$y, | ||
_ref2$source = _ref2.source, | ||
@@ -56,0 +56,0 @@ source = _ref2$source === void 0 ? _accessors.getSource : _ref2$source, |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
side: number; | ||
} & Pick<PolygonProps, "center" | "size" | "rotate" | "sides">) => { | ||
} & Pick<PolygonProps, "rotate" | "sides" | "size" | "center">) => { | ||
x: number; | ||
@@ -8,0 +8,0 @@ y: number; |
{ | ||
"name": "@visx/shape", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "visx shape", | ||
@@ -31,3 +31,3 @@ "sideEffects": false, | ||
"@visx/group": "1.0.0", | ||
"@visx/scale": "1.0.0", | ||
"@visx/scale": "1.1.0", | ||
"classnames": "^2.2.5", | ||
@@ -49,3 +49,3 @@ "d3-path": "^1.0.5", | ||
}, | ||
"gitHead": "598445514c93f22b1b7c399efa894b0778fd6ca6" | ||
"gitHead": "2370dc7ace913ffbcf729f64059fee50498d66a4" | ||
} |
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
278793
4960
+ Added@types/d3-scale@3.3.5(transitive)
+ Added@types/d3-time@2.1.4(transitive)
+ Added@visx/scale@1.1.0(transitive)
- Removed@types/d3-scale@2.2.10(transitive)
- Removed@visx/scale@1.0.0(transitive)
Updated@visx/scale@1.1.0