Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@visx/shape

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visx/shape - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

esm/shapes/Line.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc