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

@easyv/utils

Package Overview
Dependencies
Maintainers
5
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyv/utils - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

0

index.js
export * from '@easyv/utils-reduce-config';
export * from './lib/Container';
export * from './lib/getColor';

@@ -0,0 +0,0 @@ "use strict";

8

lib/common/heatmap.js

@@ -208,4 +208,4 @@ "use strict";

/*,
TODO: rethink.
getValueAt: function(point) {
TODO: rethink.
getValueAt: function(point) {
var value;

@@ -216,3 +216,3 @@ var radius = 100;

var data = this._data;
if (data[x] && data[x][y]) {
if (data[x] && data[x][y]) {
return data[x][y];

@@ -226,3 +226,3 @@ } else {

var startY = y - distance;
for(var i = 0; i < neighbors; i++) {
for(var i = 0; i < neighbors; i++) {
for (var o = 0; o < neighbors; o++) {

@@ -229,0 +229,0 @@ if ((i == 0 || i == neighbors-1) || (o == 0 || o == neighbors-1)) {

@@ -0,0 +0,0 @@ "use strict";

@@ -75,9 +75,15 @@ "use strict";

function getTicksOfAxis(domain, ticksCount) {
function getTicksOfAxis(domain, count) {
var len = domain.length;
var ticksCount = Math.round(count);
if (ticksCount < 2 || ticksCount > len) return domain;
var step = Math.floor((len - ticksCount) / (ticksCount - 1));
return domain.filter(function (d, i) {
return i % (step + 1) === 0;
});
var newDomain = [];
for (var i = 0; i < ticksCount; i++) {
var _a = Math.round((len - 1) / (ticksCount - 1) * i);
newDomain.push(domain[_a]);
}
return newDomain;
}

@@ -84,0 +90,0 @@

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@easyv/utils",
"version": "0.0.21",
"version": "0.0.22",
"description": "",

@@ -23,3 +23,3 @@ "main": "index.js",

"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/plugin-proposal-export-default-from": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.11.5",

@@ -26,0 +26,0 @@ "@babel/preset-env": "^7.11.5",

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