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.8.0 to 1.11.1

2

esm/shapes/BarGroup.js

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

*/
export default function BarGroupComponent(_ref) {
export default function BarGroup(_ref) {
var data = _ref.data,

@@ -52,0 +52,0 @@ className = _ref.className,

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

import getBandwidth from '../util/getBandwidth';
export default function BarGroupHorizontalComponent(_ref) {
export default function BarGroupHorizontal(_ref) {
var data = _ref.data,

@@ -13,0 +13,0 @@ className = _ref.className,

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

import Bar from './Bar';
export default function BarStackComponent(_ref) {
export default function BarStack(_ref) {
var data = _ref.data,

@@ -18,0 +18,0 @@ className = _ref.className,

import React from 'react';
import { ScaleInput } from '@visx/scale';
import { PositionScale, DatumObject, AnyScaleBand, AddSVGProps, BaseBarGroupProps, BarGroup, GroupKey, Accessor } from '../types';
import { PositionScale, DatumObject, AnyScaleBand, AddSVGProps, BaseBarGroupProps, BarGroup as BarGroupType, GroupKey, Accessor } from '../types';
export declare type BarGroupProps<Datum extends DatumObject, Key extends GroupKey = GroupKey, X0Scale extends AnyScaleBand = AnyScaleBand, X1Scale extends AnyScaleBand = AnyScaleBand> = BaseBarGroupProps<Datum, Key> & {

@@ -16,3 +16,3 @@ /** Returns the value mapped to the x0 (group position) of a bar */

/** Override render function which is passed the computed BarGroups. */
children?: (barGroups: BarGroup<Key>[]) => React.ReactNode;
children?: (barGroups: BarGroupType<Key>[]) => React.ReactNode;
};

@@ -57,3 +57,3 @@ /**

*/
export default function BarGroupComponent<Datum extends DatumObject, Key extends GroupKey = GroupKey, X0Scale extends AnyScaleBand = AnyScaleBand, X1Scale extends AnyScaleBand = AnyScaleBand>({ data, className, top, left, x0, x0Scale, x1Scale, yScale, color, keys, height, children, ...restProps }: AddSVGProps<BarGroupProps<Datum, Key, X0Scale, X1Scale>, SVGRectElement>): JSX.Element;
export default function BarGroup<Datum extends DatumObject, Key extends GroupKey = GroupKey, X0Scale extends AnyScaleBand = AnyScaleBand, X1Scale extends AnyScaleBand = AnyScaleBand>({ data, className, top, left, x0, x0Scale, x1Scale, yScale, color, keys, height, children, ...restProps }: AddSVGProps<BarGroupProps<Datum, Key, X0Scale, X1Scale>, SVGRectElement>): JSX.Element;
//# sourceMappingURL=BarGroup.d.ts.map
"use strict";
exports.__esModule = true;
exports.default = BarGroupComponent;
exports.default = BarGroup;

@@ -60,3 +60,3 @@ var _react = _interopRequireDefault(require("react"));

*/
function BarGroupComponent(_ref) {
function BarGroup(_ref) {
var data = _ref.data,

@@ -63,0 +63,0 @@ className = _ref.className,

import React from 'react';
import { ScaleInput } from '@visx/scale';
import { PositionScale, AnyScaleBand, DatumObject, AddSVGProps, BarGroupHorizontal, BaseBarGroupProps, GroupKey, Accessor } from '../types';
import { PositionScale, AnyScaleBand, DatumObject, AddSVGProps, BarGroupHorizontal as BarGroupHorizontalType, BaseBarGroupProps, GroupKey, Accessor } from '../types';
export declare type BarGroupHorizontalProps<Datum extends DatumObject, Key extends GroupKey = GroupKey, Y0Scale extends AnyScaleBand = AnyScaleBand, Y1Scale extends AnyScaleBand = AnyScaleBand> = BaseBarGroupProps<Datum, Key> & {

@@ -18,5 +18,5 @@ /** Returns the value (Datum[key]) mapped to the x of a bar */

/** Override render function which is passed the computed Ba/rGroups. */
children?: (barGroups: BarGroupHorizontal<Key>[]) => React.ReactNode;
children?: (barGroups: BarGroupHorizontalType<Key>[]) => React.ReactNode;
};
export default function BarGroupHorizontalComponent<Datum extends DatumObject, Key extends GroupKey = GroupKey, Y0Scale extends AnyScaleBand = AnyScaleBand, Y1Scale extends AnyScaleBand = AnyScaleBand>({ data, className, top, left, x, y0, y0Scale, y1Scale, xScale, color, keys, width, children, ...restProps }: AddSVGProps<BarGroupHorizontalProps<Datum, Key, Y0Scale, Y1Scale>, SVGRectElement>): JSX.Element;
export default function BarGroupHorizontal<Datum extends DatumObject, Key extends GroupKey = GroupKey, Y0Scale extends AnyScaleBand = AnyScaleBand, Y1Scale extends AnyScaleBand = AnyScaleBand>({ data, className, top, left, x, y0, y0Scale, y1Scale, xScale, color, keys, width, children, ...restProps }: AddSVGProps<BarGroupHorizontalProps<Datum, Key, Y0Scale, Y1Scale>, SVGRectElement>): JSX.Element;
//# sourceMappingURL=BarGroupHorizontal.d.ts.map
"use strict";
exports.__esModule = true;
exports.default = BarGroupHorizontalComponent;
exports.default = BarGroupHorizontal;

@@ -22,3 +22,3 @@ var _react = _interopRequireDefault(require("react"));

function BarGroupHorizontalComponent(_ref) {
function BarGroupHorizontal(_ref) {
var data = _ref.data,

@@ -25,0 +25,0 @@ className = _ref.className,

@@ -13,3 +13,3 @@ /// <reference types="react" />

};
export default function BarStackComponent<Datum, Key extends StackKey = StackKey, XScale extends PositionScale = PositionScale, YScale extends PositionScale = PositionScale>({ data, className, top, left, x, y0, y1, xScale, yScale, color, keys, value, order, offset, children, ...restProps }: AddSVGProps<BarStackProps<Datum, Key, XScale, YScale>, SVGRectElement>): JSX.Element;
export default function BarStack<Datum, Key extends StackKey = StackKey, XScale extends PositionScale = PositionScale, YScale extends PositionScale = PositionScale>({ data, className, top, left, x, y0, y1, xScale, yScale, color, keys, value, order, offset, children, ...restProps }: AddSVGProps<BarStackProps<Datum, Key, XScale, YScale>, SVGRectElement>): JSX.Element;
//# sourceMappingURL=BarStack.d.ts.map
"use strict";
exports.__esModule = true;
exports.default = BarStackComponent;
exports.default = BarStack;

@@ -32,3 +32,3 @@ var _react = _interopRequireDefault(require("react"));

function BarStackComponent(_ref) {
function BarStack(_ref) {
var data = _ref.data,

@@ -35,0 +35,0 @@ className = _ref.className,

{
"name": "@visx/shape",
"version": "1.8.0",
"version": "1.11.1",
"description": "visx shape",

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

"@visx/group": "1.7.0",
"@visx/scale": "1.7.0",
"@visx/scale": "1.11.1",
"classnames": "^2.2.5",

@@ -49,3 +49,3 @@ "d3-path": "^1.0.5",

},
"gitHead": "f5682b3984da506710f59ad13f59727db16131be"
"gitHead": "a19ceb8260c4ad80b0b3243330d9c3da55328516"
}

Sorry, the diff of this file is not supported yet

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