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.1.0 to 1.2.0

7

esm/shapes/Arc.js

@@ -35,3 +35,8 @@ 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); }

}));
if (!data) return null;
if (!data && (startAngle == null || endAngle == null || innerRadius == null || outerRadius == null)) {
console.warn('[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing.');
return null;
}
return /*#__PURE__*/React.createElement("path", _extends({

@@ -38,0 +43,0 @@ ref: innerRef,

@@ -45,3 +45,8 @@ "use strict";

}));
if (!data) return null;
if (!data && (startAngle == null || endAngle == null || innerRadius == null || outerRadius == null)) {
console.warn('[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing.');
return null;
}
return /*#__PURE__*/_react.default.createElement("path", _extends({

@@ -48,0 +53,0 @@ ref: innerRef,

2

lib/shapes/Polygon.d.ts

@@ -5,3 +5,3 @@ import React from 'react';

side: number;
} & Pick<PolygonProps, "rotate" | "sides" | "size" | "center">) => {
} & Pick<PolygonProps, "center" | "size" | "rotate" | "sides">) => {
x: number;

@@ -8,0 +8,0 @@ y: number;

{
"name": "@visx/shape",
"version": "1.1.0",
"version": "1.2.0",
"description": "visx shape",

@@ -48,3 +48,3 @@ "sideEffects": false,

},
"gitHead": "2370dc7ace913ffbcf729f64059fee50498d66a4"
"gitHead": "e2bbccba2f642cfc7e840f669704b19f2379e75f"
}

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