@visx/scale
Advanced tools
Comparing version 2.1.0 to 2.1.2
@@ -118,2 +118,3 @@ "use strict"; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _Base[key]) return; | ||
exports[key] = _Base[key]; | ||
@@ -127,2 +128,3 @@ }); | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _Nice[key]) return; | ||
exports[key] = _Nice[key]; | ||
@@ -136,2 +138,3 @@ }); | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _Scale[key]) return; | ||
exports[key] = _Scale[key]; | ||
@@ -145,2 +148,3 @@ }); | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _ScaleConfig[key]) return; | ||
exports[key] = _ScaleConfig[key]; | ||
@@ -154,2 +158,3 @@ }); | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _ScaleInterpolate[key]) return; | ||
exports[key] = _ScaleInterpolate[key]; | ||
@@ -156,0 +161,0 @@ }); |
@@ -9,3 +9,3 @@ import { PickD3Scale } from '../types/Scale'; | ||
declare type OperatorType = typeof ALL_OPERATORS[number]; | ||
export default function scaleOperator<T extends ScaleType>(...ops: OperatorType[]): <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends string | number | Date = string | number | Date>(scale: Pick<import("../types/Scale").ScaleTypeToD3Scale<Output, DiscreteInput, ThresholdInput>, T>[T], config?: Pick<{ | ||
export default function scaleOperator<T extends ScaleType>(...ops: OperatorType[]): <Output = DefaultOutput, DiscreteInput extends StringLike = StringLike, ThresholdInput extends string | number | Date = string | number | Date>(scale: import("../types/Base").ValueOf<Pick<import("../types/Scale").ScaleTypeToD3Scale<Output, DiscreteInput, ThresholdInput>, T>>, config?: import("../types/Base").ValueOf<Pick<{ | ||
linear: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"linear", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "reverse" | "type" | "domain" | "range" | "clamp" | "interpolate" | "nice" | "round" | "zero">, "reverse" | "domain" | "range" | "clamp" | "interpolate" | "nice" | "round" | "zero">; | ||
@@ -25,4 +25,4 @@ log: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"log", import("../types/ScaleConfig").ContinuousDomain, Output[]>, "reverse" | "type" | "domain" | "range" | "base" | "clamp" | "interpolate" | "nice" | "round">, "reverse" | "domain" | "range" | "base" | "clamp" | "interpolate" | "nice" | "round">; | ||
band: Pick<Pick<import("../types/BaseScaleConfig").BaseScaleConfig<"band", DiscreteInput[], [number | import("../types/Base").NumberLike, number | import("../types/Base").NumberLike]>, "reverse" | "type" | "domain" | "range" | "align" | "padding" | "paddingInner" | "paddingOuter" | "round">, "reverse" | "domain" | "range" | "align" | "padding" | "paddingInner" | "paddingOuter" | "round">; | ||
}, T>[T] | undefined) => Pick<import("../types/Scale").ScaleTypeToD3Scale<Output, DiscreteInput, ThresholdInput>, T>[T]; | ||
}, T>> | undefined) => import("../types/Base").ValueOf<Pick<import("../types/Scale").ScaleTypeToD3Scale<Output, DiscreteInput, ThresholdInput>, T>>; | ||
export {}; | ||
//# sourceMappingURL=scaleOperator.d.ts.map |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -1,1 +0,3 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; |
@@ -8,5 +8,5 @@ "use strict"; | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
@@ -13,0 +13,0 @@ var applyAllOperators = _scaleOperator.default.apply(void 0, _scaleOperator.ALL_OPERATORS); // Overload function signature for more strict typing, e.g., |
{ | ||
"name": "@visx/scale", | ||
"version": "2.1.0", | ||
"version": "2.1.2", | ||
"description": "visx scale", | ||
@@ -44,3 +44,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "5b3d538fccb164202f4b28159123a2c4fe89a65f" | ||
"gitHead": "5da0b5912ee57ad28e83b850e9627ec799a90e3b" | ||
} |
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
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
141563
1696