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

abstract-chart

Package Overview
Dependencies
Maintainers
15
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-chart - npm Package Compare versions

Comparing version 5.0.1 to 6.0.0

12

lib/axis.js

@@ -23,3 +23,2 @@ "use strict";

exports.inverseLogarithmicTransform = exports.inverseLinearTransform = exports.logarithmicTransform = exports.linearTransform = exports.inverseTransformValue = exports.transformValue = exports.transformPoint = exports.getLogarithmicTicks = exports.getLinearTicks = exports.getTicks = exports.createLogarithmicAxis = exports.createLinearAxis = void 0;
const R = __importStar(require("ramda"));
const AbstractImage = __importStar(require("abstract-image"));

@@ -79,3 +78,3 @@ function createLinearAxis(min, max, label) {

const b = best;
return R.range(0, b.ticks).map((l) => b.min + b.step * l);
return range(0, b.ticks).map((l) => b.min + b.step * l);
}

@@ -94,3 +93,3 @@ exports.getLinearTicks = getLinearTicks;

const maxPow = Math.ceil(Math.log10(max)) + 1;
const powers = R.range(0, maxPow - minPow + 1).map((p) => minPow + p);
const powers = range(0, maxPow - minPow + 1).map((p) => minPow + p);
const alternatives = logarithmicAlternatives.map((stepAlt) => {

@@ -168,2 +167,9 @@ const altLines = powers.reduce((lines, power) => {

exports.inverseLogarithmicTransform = inverseLogarithmicTransform;
function range(from, to) {
const result = [];
for (let i = from; i < to; ++i) {
result.push(i);
}
return result;
}
//# sourceMappingURL=axis.js.map
{
"name": "abstract-chart",
"version": "5.0.1",
"version": "6.0.0",
"description": "Drawing charts using multiple unit of measure axes as coordinate system",

@@ -18,10 +18,6 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-chart",

"dependencies": {
"abstract-image": "^6.0.1",
"ramda": "^0.22.1",
"abstract-image": "^7.0.0",
"ts-exhaustive-check": "^1.0.0"
},
"devDependencies": {
"@types/ramda": "^0.25.29"
},
"gitHead": "f69aa4f8417ae1d9faad717bea3e725a326e97a7"
"gitHead": "0e2c5a08ebbf566b80332c545d09526d1d070f3d"
}

@@ -1,2 +0,1 @@

import * as R from "ramda";
import * as AbstractImage from "abstract-image";

@@ -84,3 +83,3 @@

const b = best;
return R.range(0, b.ticks).map((l) => b.min + b.step * l);
return range(0, b.ticks).map((l) => b.min + b.step * l);
}

@@ -100,3 +99,3 @@

const maxPow = Math.ceil(Math.log10(max)) + 1;
const powers = R.range(0, maxPow - minPow + 1).map((p) => minPow + p);
const powers = range(0, maxPow - minPow + 1).map((p) => minPow + p);
const alternatives = logarithmicAlternatives.map((stepAlt) => {

@@ -181,1 +180,9 @@ const altLines = powers.reduce((lines: Array<number>, power: number) => {

}
function range(from: number, to: number): ReadonlyArray<number> {
const result: Array<number> = [];
for (let i = from; i < to; ++i) {
result.push(i);
}
return result;
}

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