abstract-chart
Advanced tools
Comparing version 5.0.1 to 6.0.0
@@ -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
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
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
99626
2
0
1547
+ Addedabstract-image@7.2.3(transitive)
- Removedramda@^0.22.1
- Removedabstract-image@6.0.1(transitive)
- Removedramda@0.22.1(transitive)
Updatedabstract-image@^7.0.0