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

@nivo/scales

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/scales - npm Package Compare versions

Comparing version 0.71.0 to 0.72.0

2

dist/nivo-scales.cjs.js

@@ -36,3 +36,3 @@ 'use strict';

if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);

@@ -39,0 +39,0 @@ }

@@ -30,3 +30,3 @@ import uniq from 'lodash/uniq';

if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);

@@ -33,0 +33,0 @@ }

@@ -34,3 +34,3 @@ (function (global, factory) {

if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);

@@ -37,0 +37,0 @@ }

@@ -32,13 +32,7 @@ import { ScaleAxis, ScaleSpec, Series, ScaleValue, SerieAxis, ComputedSerieAxis } from './types';

export declare const compareDateValues: (a: Date, b: Date) => boolean;
export declare function computeScale<Input extends ScaleValue>(spec: ScaleSpec, data: ComputedSerieAxis<any>, size: number, axis: ScaleAxis): import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScalePoint<Input> | import("./types").ScaleBand<Input> | import("./types").ScaleTime<number | Date | {
valueOf(): number;
}>;
export declare function computeScale<Input extends ScaleValue>(spec: ScaleSpec, data: ComputedSerieAxis<any>, size: number, axis: ScaleAxis): import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScalePoint<Input> | import("./types").ScaleBand<Input> | import("./types").ScaleTime<Date | import("d3-scale").NumberValue>;
export declare const computeXYScalesForSeries: (_series: XYSeries[], xScaleSpec: ScaleSpec, yScaleSpec: ScaleSpec, width: number, height: number) => {
series: ComputedXYSeries[];
xScale: import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScaleTime<number | Date | {
valueOf(): number;
}> | import("./types").ScalePoint<ScaleValue> | import("./types").ScaleBand<ScaleValue>;
yScale: import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScaleTime<number | Date | {
valueOf(): number;
}> | import("./types").ScalePoint<ScaleValue> | import("./types").ScaleBand<ScaleValue>;
xScale: import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScaleTime<Date | import("d3-scale").NumberValue> | import("./types").ScalePoint<ScaleValue> | import("./types").ScaleBand<ScaleValue>;
yScale: import("./types").ScaleSymlog | import("d3-scale").ScaleLogarithmic<number, number, never> | import("./types").ScaleLinear<number> | import("./types").ScaleTime<Date | import("d3-scale").NumberValue> | import("./types").ScalePoint<ScaleValue> | import("./types").ScaleBand<ScaleValue>;
x: {

@@ -45,0 +39,0 @@ all: unknown[];

@@ -0,5 +1,4 @@

import { NumberValue } from 'd3-scale';
import { ComputedSerieAxis, ScaleTime, ScaleTimeSpec } from './types';
export declare const createTimeScale: <Input extends number | Date | {
valueOf(): number;
}>({ format, precision, min, max, useUTC, nice, }: ScaleTimeSpec, data: ComputedSerieAxis<string | Date>, size: number) => ScaleTime<Input>;
export declare const createTimeScale: <Input extends Date | NumberValue>({ format, precision, min, max, useUTC, nice, }: ScaleTimeSpec, data: ComputedSerieAxis<string | Date>, size: number) => ScaleTime<Input>;
//# sourceMappingURL=timeScale.d.ts.map
{
"name": "@nivo/scales",
"version": "0.71.0",
"version": "0.72.0",
"license": "MIT",

@@ -36,3 +36,3 @@ "author": {

},
"gitHead": "232b613bd61d2b8e5c783f4181b2d14580e2fd27"
"gitHead": "26098f6437cd8ab2be166bbc52973dcbb5ee7569"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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