@visx/heatmap
Advanced tools
Comparing version 2.1.0 to 2.1.2
import _pt from "prop-types"; | ||
var _excluded = ["className", "top", "left", "data", "gap", "radius", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
@@ -32,10 +33,10 @@ 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); } | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column && column.bins; | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell && cell.count; | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["className", "top", "left", "data", "gap", "radius", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]); | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -42,0 +43,0 @@ var innerRadius = radius - gap; |
import _pt from "prop-types"; | ||
var _excluded = ["className", "top", "left", "data", "binWidth", "binHeight", "x0", "gap", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
@@ -36,10 +37,10 @@ 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); } | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d && d.bins; | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d && d.count; | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["className", "top", "left", "data", "binWidth", "binHeight", "x0", "gap", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]); | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -46,0 +47,0 @@ var width = binWidth - gap; |
@@ -41,3 +41,5 @@ import React from 'react'; | ||
}; | ||
export default function HeatmapCircle<ColumnDatum, BinDatum>({ className, top, left, data, gap, radius, xScale, yScale, colorScale, opacityScale, bins, count, children, ...restProps }: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<React.SVGProps<SVGCircleElement>, keyof HeatmapCircleProps<ColumnDatum, BinDatum> | 'r' | 'cx' | 'cy' | 'fill' | 'fillOpacity'>): JSX.Element; | ||
export default function HeatmapCircle<ColumnDatum, BinDatum>({ className, top, left, data, gap, radius, xScale, yScale, colorScale, opacityScale, bins, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
count, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
children, ...restProps }: HeatmapCircleProps<ColumnDatum, BinDatum> & Omit<React.SVGProps<SVGCircleElement>, keyof HeatmapCircleProps<ColumnDatum, BinDatum> | 'r' | 'cx' | 'cy' | 'fill' | 'fillOpacity'>): JSX.Element; | ||
//# sourceMappingURL=HeatmapCircle.d.ts.map |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _excluded = ["className", "top", "left", "data", "gap", "radius", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -43,10 +45,10 @@ | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column && column.bins; | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell && cell.count; | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["className", "top", "left", "data", "gap", "radius", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]); | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -53,0 +55,0 @@ var innerRadius = radius - gap; |
@@ -46,3 +46,5 @@ import React from 'react'; | ||
export declare type ComponentProps<ColumnDatum, BinDatum> = HeatmapRectProps<ColumnDatum, BinDatum> & Omit<React.SVGProps<SVGRectElement>, keyof HeatmapRectProps<ColumnDatum, BinDatum> | 'width' | 'height' | 'x' | 'y' | 'fill' | 'fillOpacity'>; | ||
export default function HeatmapRect<ColumnDatum, BinDatum>({ className, top, left, data, binWidth, binHeight, x0, gap, xScale, yScale, colorScale, opacityScale, bins, count, children, ...restProps }: ComponentProps<ColumnDatum, BinDatum>): JSX.Element; | ||
export default function HeatmapRect<ColumnDatum, BinDatum>({ className, top, left, data, binWidth, binHeight, x0, gap, xScale, yScale, colorScale, opacityScale, bins, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
count, // eslint-disable-line @typescript-eslint/no-explicit-any | ||
children, ...restProps }: ComponentProps<ColumnDatum, BinDatum>): JSX.Element; | ||
//# sourceMappingURL=HeatmapRect.d.ts.map |
@@ -14,2 +14,4 @@ "use strict"; | ||
var _excluded = ["className", "top", "left", "data", "binWidth", "binHeight", "x0", "gap", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -47,10 +49,10 @@ | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d && d.bins; | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d && d.count; | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, ["className", "top", "left", "data", "binWidth", "binHeight", "x0", "gap", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]); | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
@@ -57,0 +59,0 @@ var width = binWidth - gap; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
{ | ||
"name": "@visx/heatmap", | ||
"version": "2.1.0", | ||
"version": "2.1.2", | ||
"description": "visx heatmap", | ||
@@ -42,3 +42,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
29600
514