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

@data-ui/radial-chart

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@data-ui/radial-chart - npm Package Compare versions

Comparing version 0.0.74 to 0.0.75

2

esm/util/fillScaleFactory.js
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"
}
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