@data-ui/radial-chart
Advanced tools
Comparing version 0.0.74 to 0.0.75
import{scaleOrdinal}from"@vx/scale";import{allColors,grayColors,getPaletteForBrightness}from"@data-ui/theme";// returns an ordinal scale of multi-hue colors with normalized/comparable brightness | ||
export function multiHueScaleFactory(a,b){return scaleOrdinal({range:getPaletteForBrightness(a,b)})}// returns an ordinal scale of single-hue colors with varying brightness (dark to light) | ||
// if no hue is specified or is invalid, returns grays | ||
export function singleHueScaleFactory(a){return scaleOrdinal({range:(allColors[a]||grayColors).concat().reverse()})} | ||
export function singleHueScaleFactory(a){return scaleOrdinal({range:[].concat(allColors[a]||grayColors).reverse()})} |
"use strict";exports.__esModule=!0,exports.multiHueScaleFactory=multiHueScaleFactory,exports.singleHueScaleFactory=singleHueScaleFactory;var _scale=require("@vx/scale"),_theme=require("@data-ui/theme");// returns an ordinal scale of multi-hue colors with normalized/comparable brightness | ||
function multiHueScaleFactory(a,b){return(0,_scale.scaleOrdinal)({range:(0,_theme.getPaletteForBrightness)(a,b)})}// returns an ordinal scale of single-hue colors with varying brightness (dark to light) | ||
// if no hue is specified or is invalid, returns grays | ||
function singleHueScaleFactory(a){return(0,_scale.scaleOrdinal)({range:(_theme.allColors[a]||_theme.grayColors).concat().reverse()})} | ||
function singleHueScaleFactory(a){return(0,_scale.scaleOrdinal)({range:[].concat(_theme.allColors[a]||_theme.grayColors).reverse()})} |
{ | ||
"name": "@data-ui/radial-chart", | ||
"version": "0.0.74", | ||
"version": "0.0.75", | ||
"description": "A package for radial-axis visualizations https://williaster.github.io/data-ui", | ||
@@ -35,4 +35,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@data-ui/shared": "^0.0.74", | ||
"@data-ui/theme": "^0.0.74", | ||
"@data-ui/shared": "^0.0.75", | ||
"@data-ui/theme": "^0.0.75", | ||
"@vx/event": "0.0.140", | ||
@@ -73,3 +73,3 @@ "@vx/group": "0.0.140", | ||
}, | ||
"gitHead": "1dff24fef34cf4dd9be10429b6f3a122ba7a62d1" | ||
"gitHead": "e1255169fe3ee48e0245de1c9a42960b9cf8dd4c" | ||
} |
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
+ Added@data-ui/shared@0.0.75(transitive)
+ Added@data-ui/theme@0.0.75(transitive)
- Removed@data-ui/shared@0.0.74(transitive)
- Removed@data-ui/theme@0.0.74(transitive)
Updated@data-ui/shared@^0.0.75
Updated@data-ui/theme@^0.0.75