@easyv/utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
export * from '@easyv/utils-reduce-config'; | ||
export * from './lib/Container'; | ||
export * from './lib/getColor'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
4083
159435
31