@visx/heatmap
Advanced tools
Comparing version 2.10.0 to 2.17.0-alpha.0
import _pt from "prop-types"; | ||
var _excluded = ["className", "top", "left", "data", "gap", "radius", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
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); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import React from 'react'; | ||
@@ -13,31 +10,30 @@ import cx from 'classnames'; | ||
var className = _ref.className, | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
_ref$radius = _ref.radius, | ||
radius = _ref$radius === void 0 ? 6 : _ref$radius, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
_ref$radius = _ref.radius, | ||
radius = _ref$radius === void 0 ? 6 : _ref$radius, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var innerRadius = radius - gap; | ||
@@ -44,0 +40,0 @@ var heatmap = data.map(function (columnDatum, column) { |
import _pt from "prop-types"; | ||
var _excluded = ["className", "top", "left", "data", "binWidth", "binHeight", "x0", "gap", "xScale", "yScale", "colorScale", "opacityScale", "bins", "count", "children"]; | ||
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); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import React from 'react'; | ||
@@ -13,35 +10,34 @@ import cx from 'classnames'; | ||
var className = _ref.className, | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$binWidth = _ref.binWidth, | ||
binWidth = _ref$binWidth === void 0 ? 6 : _ref$binWidth, | ||
_ref$binHeight = _ref.binHeight, | ||
binHeight = _ref$binHeight === void 0 ? 6 : _ref$binHeight, | ||
_ref$x = _ref.x0, | ||
x0 = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$binWidth = _ref.binWidth, | ||
binWidth = _ref$binWidth === void 0 ? 6 : _ref$binWidth, | ||
_ref$binHeight = _ref.binHeight, | ||
binHeight = _ref$binHeight === void 0 ? 6 : _ref$binHeight, | ||
_ref$x = _ref.x0, | ||
x0 = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var width = binWidth - gap; | ||
@@ -48,0 +44,0 @@ var height = binHeight - gap; |
@@ -5,50 +5,40 @@ "use strict"; | ||
exports.default = HeatmapCircle; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _group = require("@visx/group"); | ||
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 }; } | ||
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); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
function HeatmapCircle(_ref) { | ||
var className = _ref.className, | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
_ref$radius = _ref.radius, | ||
radius = _ref$radius === void 0 ? 6 : _ref$radius, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
_ref$radius = _ref.radius, | ||
radius = _ref$radius === void 0 ? 6 : _ref$radius, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (column) { | ||
return column == null ? void 0 : column.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (cell) { | ||
return cell == null ? void 0 : cell.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var innerRadius = radius - gap; | ||
@@ -94,3 +84,2 @@ var heatmap = data.map(function (columnDatum, column) { | ||
} | ||
HeatmapCircle.propTypes = { | ||
@@ -97,0 +86,0 @@ data: _propTypes.default.array, |
@@ -5,54 +5,44 @@ "use strict"; | ||
exports.default = HeatmapRect; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _group = require("@visx/group"); | ||
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 }; } | ||
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); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
function HeatmapRect(_ref) { | ||
var className = _ref.className, | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$binWidth = _ref.binWidth, | ||
binWidth = _ref$binWidth === void 0 ? 6 : _ref$binWidth, | ||
_ref$binHeight = _ref.binHeight, | ||
binHeight = _ref$binHeight === void 0 ? 6 : _ref$binHeight, | ||
_ref$x = _ref.x0, | ||
x0 = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
top = _ref.top, | ||
left = _ref.left, | ||
_ref$data = _ref.data, | ||
data = _ref$data === void 0 ? [] : _ref$data, | ||
_ref$binWidth = _ref.binWidth, | ||
binWidth = _ref$binWidth === void 0 ? 6 : _ref$binWidth, | ||
_ref$binHeight = _ref.binHeight, | ||
binHeight = _ref$binHeight === void 0 ? 6 : _ref$binHeight, | ||
_ref$x = _ref.x0, | ||
x0 = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$gap = _ref.gap, | ||
gap = _ref$gap === void 0 ? 1 : _ref$gap, | ||
xScale = _ref.xScale, | ||
yScale = _ref.yScale, | ||
_ref$colorScale = _ref.colorScale, | ||
colorScale = _ref$colorScale === void 0 ? function () { | ||
return undefined; | ||
} : _ref$colorScale, | ||
_ref$opacityScale = _ref.opacityScale, | ||
opacityScale = _ref$opacityScale === void 0 ? function () { | ||
return 1; | ||
} : _ref$opacityScale, | ||
_ref$bins = _ref.bins, | ||
bins = _ref$bins === void 0 ? function (d) { | ||
return d == null ? void 0 : d.bins; | ||
} : _ref$bins, | ||
_ref$count = _ref.count, | ||
count = _ref$count === void 0 ? function (d) { | ||
return d == null ? void 0 : d.count; | ||
} : _ref$count, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var width = binWidth - gap; | ||
@@ -100,3 +90,2 @@ var height = binHeight - gap; | ||
} | ||
HeatmapRect.propTypes = { | ||
@@ -103,0 +92,0 @@ data: _propTypes.default.array, |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.HeatmapRect = exports.HeatmapCircle = void 0; | ||
var _HeatmapCircle = _interopRequireDefault(require("./heatmaps/HeatmapCircle")); | ||
exports.HeatmapCircle = _HeatmapCircle.default; | ||
var _HeatmapRect = _interopRequireDefault(require("./heatmaps/HeatmapRect")); | ||
exports.HeatmapRect = _HeatmapRect.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@visx/heatmap", | ||
"version": "2.10.0", | ||
"version": "2.17.0-alpha.0", | ||
"description": "visx heatmap", | ||
@@ -38,7 +38,7 @@ "sideEffects": false, | ||
"@types/react": "*", | ||
"@visx/group": "2.10.0", | ||
"@visx/group": "2.17.0-alpha.0", | ||
"classnames": "^2.3.1", | ||
"prop-types": "^15.6.1" | ||
}, | ||
"gitHead": "3d655a8b100d862c91d4b5655e221259357a094d" | ||
"gitHead": "77292e262dfe082b554b64839eb3ee141439a95f" | ||
} |
@@ -47,5 +47,5 @@ # @visx/heatmap | ||
// Example accessors | ||
const x = d => d.myBin; | ||
const y = d => d.myBins; | ||
const z = d => d.myCount; | ||
const x = (d) => d.myBin; | ||
const y = (d) => d.myBins; | ||
const z = (d) => d.myCount; | ||
@@ -52,0 +52,0 @@ // Example scale with an accessors |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
29578
1
+ Added@visx/group@2.17.0-alpha.0(transitive)
- Removed@visx/group@2.10.0(transitive)
Updated@visx/group@2.17.0-alpha.0