@superset-ui/color
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,1 +0,1 @@ | ||
import"core-js/modules/es6.function.name";import CategoricalColorScale from"./CategoricalColorScale";import getCategoricalSchemeRegistry from"./CategoricalSchemeRegistrySingleton";var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||getCategoricalSchemeRegistry().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new CategoricalColorScale(getCategoricalSchemeRegistry().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();export{CategoricalColorNamespace as default};var namespaces={};export var DEFAULT_NAMESPACE="GLOBAL";export function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}export function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}export function getScale(a,b){return getNamespace(b).getScale(a)} | ||
import CategoricalColorScale from"./CategoricalColorScale";import getCategoricalSchemeRegistry from"./CategoricalSchemeRegistrySingleton";import stringifyAndTrim from"./stringifyAndTrim";var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||getCategoricalSchemeRegistry().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new CategoricalColorScale(getCategoricalSchemeRegistry().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[stringifyAndTrim(a)]=b,this},a}();export{CategoricalColorNamespace as default};var namespaces={};export var DEFAULT_NAMESPACE="GLOBAL";export function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}export function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}export function getScale(a,b){return getNamespace(b).getScale(a)} |
@@ -1,3 +0,2 @@ | ||
import"core-js/modules/web.dom.iterable";import"core-js/modules/es6.array.iterator";import"core-js/modules/es6.object.keys";export function cleanValue(a){// for superset series that should have the same color | ||
return(a+"").trim().toLowerCase()}var CategoricalColorScale=/*#__PURE__*/function(){/** | ||
import"core-js/modules/web.dom.iterable";import"core-js/modules/es6.array.iterator";import"core-js/modules/es6.object.keys";function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}import{ExtensibleFunction}from"@superset-ui/core";import stringifyAndTrim from"./stringifyAndTrim";var CategoricalColorScale=/*#__PURE__*/function(a){/** | ||
* Constructor | ||
@@ -7,2 +6,2 @@ * @param {*} colors an array of colors | ||
* (usually CategoricalColorNamespace) and supersede this.forcedColors | ||
*/function a(a,b){var c=this;this.colors=a,this.parentForcedColors=b,this.forcedColors={},this.seen={},this.fn=function(a){return c.getColor(a)}}var b=a.prototype;return b.getColor=function h(a){var b=cleanValue(a),c=this.parentForcedColors&&this.parentForcedColors[b];if(c)return c;var d=this.forcedColors[b];if(d)return d;var e=this.seen[b],f=this.colors.length;if(void 0!==e)return this.colors[e%f];var g=Object.keys(this.seen).length;return this.seen[b]=g,this.colors[g%f]},b.setColor=function c(a,b){return this.forcedColors[a]=b,this},b.toFunction=function a(){return this.fn},a}();export{CategoricalColorScale as default}; | ||
*/function b(b,c){var d;return d=a.call(this,function(){var a;return(a=d).getColor.apply(a,arguments)})||this,d.colors=b,d.parentForcedColors=c,d.forcedColors={},d.seen={},d}_inheritsLoose(b,a);var c=b.prototype;return c.getColor=function h(a){var b=stringifyAndTrim(a),c=this.parentForcedColors&&this.parentForcedColors[b];if(c)return c;var d=this.forcedColors[b];if(d)return d;var e=this.seen[b],f=this.colors.length;if(void 0!==e)return this.colors[e%f];var g=Object.keys(this.seen).length;return this.seen[b]=g,this.colors[g%f]},c.setColor=function c(a,b){return this.forcedColors[stringifyAndTrim(a)]=b,this},b}(ExtensibleFunction);export{CategoricalColorScale as default}; |
@@ -1,1 +0,1 @@ | ||
import"core-js/modules/es6.function.name";import{isRequired}from"@superset-ui/core";var ColorScheme=function(a){var b=a.name,c=void 0===b?isRequired("name"):b,d=a.label,e=a.colors,f=void 0===e?isRequired("colors"):e,g=a.description,h=void 0===g?"":g;this.name=c,this.label=d||c,this.colors=f,this.description=h};export{ColorScheme as default}; | ||
import{isRequired}from"@superset-ui/core";var ColorScheme=function(a){var b=a.colors,c=void 0===b?isRequired("colors"):b,d=a.description,e=void 0===d?"":d,f=a.id,g=void 0===f?isRequired("id"):f,h=a.label;this.id=g,this.label=h||g,this.colors=c,this.description=e};export{ColorScheme as default}; |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{name:"bnbColors",colors:["#ff5a5f",// rausch | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{id:"bnbColors",colors:["#ff5a5f",// rausch | ||
"#7b0051",// hackb | ||
@@ -3,0 +3,0 @@ "#007A87",// kazan |
@@ -1,1 +0,1 @@ | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{name:"d3Category10",colors:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]},{name:"d3Category20",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"]},{name:"d3Category20b",colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"]},{name:"d3Category20c",colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{id:"d3Category10",colors:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]},{id:"d3Category20",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"]},{id:"d3Category20b",colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"]},{id:"d3Category20c",colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; |
@@ -1,1 +0,1 @@ | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{name:"googleCategory10c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"]},{name:"googleCategory20c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{id:"googleCategory10c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"]},{id:"googleCategory20c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; |
@@ -1,1 +0,1 @@ | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{name:"lyftColors",colors:["#EA0B8C","#6C838E","#29ABE2","#33D9C1","#9DACB9","#7560AA","#2D5584","#831C4A","#333D47","#AC2077"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; | ||
/* eslint-disable sort-keys */import CategoricalScheme from"../../CategoricalScheme";var schemes=[{id:"lyftColors",colors:["#EA0B8C","#6C838E","#29ABE2","#33D9C1","#9DACB9","#7560AA","#2D5584","#831C4A","#333D47","#AC2077"]}].map(function(a){return new CategoricalScheme(a)});export default schemes; |
@@ -1,1 +0,1 @@ | ||
/* eslint-disable sort-keys */import SequentialScheme from"../../SequentialScheme";var schemes=[{name:"blue_white_yellow",label:"blue/white/yellow",colors:["#00d1c1","white","#ffb400"]},{name:"fire",colors:["white","yellow","red","black"]},{name:"white_black",label:"white/black",colors:["white","black"]},{name:"black_white",label:"black/white",colors:["black","white"]},{name:"dark_blue",label:"dark blues",colors:["#EBF5F8","#6BB1CC","#357E9B","#1B4150","#092935"]},{name:"pink_grey",label:"pink/grey",isDiverging:!0,colors:["#E70B81","#FAFAFA","#666666"]},{name:"greens",colors:["#ffffcc","#78c679","#006837"]},{name:"purples",colors:["#f2f0f7","#9e9ac8","#54278f"]},{name:"oranges",colors:["#fef0d9","#fc8d59","#b30000"]},{name:"red_yellow_blue",label:"red/yellow/blue",isDiverging:!0,colors:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"]},{name:"brown_white_green",label:"brown/white/green",isDiverging:!0,colors:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"]},{name:"purple_white_green",label:"purple/white/green",isDiverging:!0,colors:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"]}].map(function(a){return new SequentialScheme(a)});export default schemes; | ||
/* eslint-disable sort-keys */import SequentialScheme from"../../SequentialScheme";var schemes=[{id:"blue_white_yellow",label:"blue/white/yellow",colors:["#00d1c1","white","#ffb400"]},{id:"fire",colors:["white","yellow","red","black"]},{id:"white_black",label:"white/black",colors:["white","black"]},{id:"black_white",label:"black/white",colors:["black","white"]},{id:"dark_blue",label:"dark blues",colors:["#EBF5F8","#6BB1CC","#357E9B","#1B4150","#092935"]},{id:"pink_grey",label:"pink/grey",isDiverging:!0,colors:["#E70B81","#FAFAFA","#666666"]},{id:"greens",colors:["#ffffcc","#78c679","#006837"]},{id:"purples",colors:["#f2f0f7","#9e9ac8","#54278f"]},{id:"oranges",colors:["#fef0d9","#fc8d59","#b30000"]},{id:"red_yellow_blue",label:"red/yellow/blue",isDiverging:!0,colors:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"]},{id:"brown_white_green",label:"brown/white/green",isDiverging:!0,colors:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"]},{id:"purple_white_green",label:"purple/white/green",isDiverging:!0,colors:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"]}].map(function(a){return new SequentialScheme(a)});export default schemes; |
@@ -1,1 +0,1 @@ | ||
/* eslint-disable sort-keys */import SequentialScheme from"../../SequentialScheme";var schemes=[{name:"schemeBrBG",label:"brown/green",isDiverging:!0,colors:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},{name:"schemePRGn",label:"purple/green",isDiverging:!0,colors:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},{name:"schemePiYG",label:"pink/green",isDiverging:!0,colors:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},{name:"schemePuOr",label:"purple/orange",isDiverging:!0,colors:["#2d004b","#542788","#8073ac","#b2abd2","#d8daeb","#fee0b6","#fdb863","#e08214","#b35806","#7f3b08"]},{name:"schemeRdBu",label:"red/blue",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},{name:"schemeRdGy",label:"red/gray/black",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},{name:"schemeRdYlBu",label:"red/yellow/blue",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],isDiverging:!0},{name:"schemeRdYlGn",label:"red/yellow/green",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],isDiverging:!0},{name:"schemeSpectral",label:"rainbow",colors:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},{name:"schemeBlues",label:"blues",colors:["#b5d4e9","#93c3df","#6daed5","#4b97c9","#2f7ebc","#1864aa","#0a4a90","#08306b"]},{name:"schemeGreens",label:"greens",colors:["#b7e2b1","#97d494","#73c378","#4daf62","#2f984f","#157f3b","#036429","#00441b"]},{name:"schemeGrays",label:"grays",colors:["#cecece","#b4b4b4","#979797","#7a7a7a","#5f5f5f","#404040","#1e1e1e","#000000"]},{name:"schemeOranges",label:"oranges",colors:["#fdc28c","#fda762","#fb8d3d","#f2701d","#e25609","#c44103","#9f3303","#7f2704"]},{name:"schemePurples",label:"purples",colors:["#cecee5","#b6b5d8","#9e9bc9","#8782bc","#7363ac","#61409b","#501f8c","#3f007d"]},{name:"schemeReds",label:"reds",colors:["#fcaa8e","#fc8a6b","#f9694c","#ef4533","#d92723","#bb151a","#970b13","#67000d"]},{name:"schemeViridis",label:"Viridis",colors:["#482475","#414487","#355f8d","#2a788e","#21918c","#22a884","#44bf70","#7ad151","#bddf26","#fde725"]},{name:"schemeInferno",label:"Inferno",colors:["#160b39","#420a68","#6a176e","#932667","#bc3754","#dd513a","#f37819","#fca50a","#f6d746","#fcffa4"]},{name:"schemeMagma",label:"Magma",colors:["#140e36","#3b0f70","#641a80","#8c2981","#b73779","#de4968","#f7705c","#fe9f6d","#fecf92","#fcfdbf"]},{name:"schemeWarm",label:"Warm",colors:["#963db3","#bf3caf","#e4419d","#fe4b83","#ff5e63","#ff7847","#fb9633","#e2b72f","#c6d63c","#aff05b"]},{name:"schemeCool",label:"Cool",colors:["#6054c8","#4c6edb","#368ce1","#23abd8","#1ac7c2","#1ddfa3","#30ef82","#52f667","#7ff658","#aff05b"]},{name:"schemeCubehelixDefault",label:"Cube Helix",colors:["#1a1530","#163d4e","#1f6642","#54792f","#a07949","#d07e93","#cf9cda","#c1caf3","#d2eeef","#ffffff"]},{name:"schemeBuGn",label:"blue/green",colors:["#b7e4da","#8fd3c1","#68c2a3","#49b17f","#2f9959","#157f3c","#036429","#00441b"]},{name:"schemeBuPu",label:"blue/purple",colors:["#b2cae1","#9cb3d5","#8f95c6","#8c74b5","#8952a5","#852d8f","#730f71","#4d004b"]},{name:"schemeGnBu",label:"green/blue",colors:["#bde5bf","#9ed9bb","#7bcbc4","#58b7cd","#399cc6","#1d7eb7","#0b60a1","#084081"]},{name:"schemeOrRd",label:"orange/red",colors:["#fdca94","#fdb07a","#fa8e5d","#f16c49","#e04530","#c81d13","#a70403","#7f0000"]},{name:"schemePuBuGn",label:"purple/blue/green",colors:["#bec9e2","#98b9d9","#69a8cf","#4096c0","#19879f","#037877","#016353","#014636"]},{name:"schemePuBu",label:"purple/blue",colors:["#bfc9e2","#9bb9d9","#72a8cf","#4394c3","#1a7db6","#0667a1","#045281","#023858"]},{name:"schemePuRd",label:"purple/red",colors:["#d0aad2","#d08ac2","#dd63ae","#e33890","#d71c6c","#b70b4f","#8f023a","#67001f"]},{name:"schemeRdPu",label:"red/purple",colors:["#fbb5bc","#f993b0","#f369a3","#e03e98","#c01788","#99037c","#700174","#49006a"]},{name:"schemeYlGnBu",label:"yellow/green/blue",colors:["#d5eeb3","#a9ddb7","#73c9bd","#45b4c2","#2897bf","#2073b2","#234ea0","#1c3185","#081d58"]},{name:"schemeYlGn",label:"yellow/green",colors:["#e4f4ac","#c7e89b","#a2d88a","#78c578","#4eaf63","#2f944e","#15793f","#036034","#004529"]},{name:"schemeYlOrBr",label:"yellow/orange/brown",colors:["#feeaa1","#fed676","#feba4a","#fb992c","#ee7918","#d85b0a","#b74304","#8f3204","#662506"]},{name:"schemeYlOrRd",label:"yellow/orange/red",colors:["#fee087","#fec965","#feab4b","#fd893c","#fa5c2e","#ec3023","#d31121","#af0225","#800026"]}].map(function(a){return new SequentialScheme(a)});export default schemes; | ||
/* eslint-disable sort-keys */import SequentialScheme from"../../SequentialScheme";var schemes=[{id:"schemeBrBG",label:"brown/green",isDiverging:!0,colors:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},{id:"schemePRGn",label:"purple/green",isDiverging:!0,colors:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},{id:"schemePiYG",label:"pink/green",isDiverging:!0,colors:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},{id:"schemePuOr",label:"purple/orange",isDiverging:!0,colors:["#2d004b","#542788","#8073ac","#b2abd2","#d8daeb","#fee0b6","#fdb863","#e08214","#b35806","#7f3b08"]},{id:"schemeRdBu",label:"red/blue",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},{id:"schemeRdGy",label:"red/gray/black",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},{id:"schemeRdYlBu",label:"red/yellow/blue",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],isDiverging:!0},{id:"schemeRdYlGn",label:"red/yellow/green",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],isDiverging:!0},{id:"schemeSpectral",label:"rainbow",colors:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},{id:"schemeBlues",label:"blues",colors:["#b5d4e9","#93c3df","#6daed5","#4b97c9","#2f7ebc","#1864aa","#0a4a90","#08306b"]},{id:"schemeGreens",label:"greens",colors:["#b7e2b1","#97d494","#73c378","#4daf62","#2f984f","#157f3b","#036429","#00441b"]},{id:"schemeGrays",label:"grays",colors:["#cecece","#b4b4b4","#979797","#7a7a7a","#5f5f5f","#404040","#1e1e1e","#000000"]},{id:"schemeOranges",label:"oranges",colors:["#fdc28c","#fda762","#fb8d3d","#f2701d","#e25609","#c44103","#9f3303","#7f2704"]},{id:"schemePurples",label:"purples",colors:["#cecee5","#b6b5d8","#9e9bc9","#8782bc","#7363ac","#61409b","#501f8c","#3f007d"]},{id:"schemeReds",label:"reds",colors:["#fcaa8e","#fc8a6b","#f9694c","#ef4533","#d92723","#bb151a","#970b13","#67000d"]},{id:"schemeViridis",label:"Viridis",colors:["#482475","#414487","#355f8d","#2a788e","#21918c","#22a884","#44bf70","#7ad151","#bddf26","#fde725"]},{id:"schemeInferno",label:"Inferno",colors:["#160b39","#420a68","#6a176e","#932667","#bc3754","#dd513a","#f37819","#fca50a","#f6d746","#fcffa4"]},{id:"schemeMagma",label:"Magma",colors:["#140e36","#3b0f70","#641a80","#8c2981","#b73779","#de4968","#f7705c","#fe9f6d","#fecf92","#fcfdbf"]},{id:"schemeWarm",label:"Warm",colors:["#963db3","#bf3caf","#e4419d","#fe4b83","#ff5e63","#ff7847","#fb9633","#e2b72f","#c6d63c","#aff05b"]},{id:"schemeCool",label:"Cool",colors:["#6054c8","#4c6edb","#368ce1","#23abd8","#1ac7c2","#1ddfa3","#30ef82","#52f667","#7ff658","#aff05b"]},{id:"schemeCubehelixDefault",label:"Cube Helix",colors:["#1a1530","#163d4e","#1f6642","#54792f","#a07949","#d07e93","#cf9cda","#c1caf3","#d2eeef","#ffffff"]},{id:"schemeBuGn",label:"blue/green",colors:["#b7e4da","#8fd3c1","#68c2a3","#49b17f","#2f9959","#157f3c","#036429","#00441b"]},{id:"schemeBuPu",label:"blue/purple",colors:["#b2cae1","#9cb3d5","#8f95c6","#8c74b5","#8952a5","#852d8f","#730f71","#4d004b"]},{id:"schemeGnBu",label:"green/blue",colors:["#bde5bf","#9ed9bb","#7bcbc4","#58b7cd","#399cc6","#1d7eb7","#0b60a1","#084081"]},{id:"schemeOrRd",label:"orange/red",colors:["#fdca94","#fdb07a","#fa8e5d","#f16c49","#e04530","#c81d13","#a70403","#7f0000"]},{id:"schemePuBuGn",label:"purple/blue/green",colors:["#bec9e2","#98b9d9","#69a8cf","#4096c0","#19879f","#037877","#016353","#014636"]},{id:"schemePuBu",label:"purple/blue",colors:["#bfc9e2","#9bb9d9","#72a8cf","#4394c3","#1a7db6","#0667a1","#045281","#023858"]},{id:"schemePuRd",label:"purple/red",colors:["#d0aad2","#d08ac2","#dd63ae","#e33890","#d71c6c","#b70b4f","#8f023a","#67001f"]},{id:"schemeRdPu",label:"red/purple",colors:["#fbb5bc","#f993b0","#f369a3","#e03e98","#c01788","#99037c","#700174","#49006a"]},{id:"schemeYlGnBu",label:"yellow/green/blue",colors:["#d5eeb3","#a9ddb7","#73c9bd","#45b4c2","#2897bf","#2073b2","#234ea0","#1c3185","#081d58"]},{id:"schemeYlGn",label:"yellow/green",colors:["#e4f4ac","#c7e89b","#a2d88a","#78c578","#4eaf63","#2f944e","#15793f","#036034","#004529"]},{id:"schemeYlOrBr",label:"yellow/orange/brown",colors:["#feeaa1","#fed676","#feba4a","#fb992c","#ee7918","#d85b0a","#b74304","#8f3204","#662506"]},{id:"schemeYlOrRd",label:"yellow/orange/red",colors:["#fee087","#fec965","#feab4b","#fd893c","#fa5c2e","#ec3023","#d31121","#af0225","#800026"]}].map(function(a){return new SequentialScheme(a)});export default schemes; |
@@ -1,1 +0,1 @@ | ||
"use strict";exports.__esModule=!0,exports.getNamespace=getNamespace,exports.getColor=getColor,exports.getScale=getScale,exports.DEFAULT_NAMESPACE=exports.default=void 0,require("core-js/modules/es6.function.name");var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale")),_CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||(0,_CategoricalSchemeRegistrySingleton.default)().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new _CategoricalColorScale.default((0,_CategoricalSchemeRegistrySingleton.default)().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();exports.default=CategoricalColorNamespace;var namespaces={},DEFAULT_NAMESPACE="GLOBAL";exports.DEFAULT_NAMESPACE=DEFAULT_NAMESPACE;function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}function getScale(a,b){return getNamespace(b).getScale(a)} | ||
"use strict";exports.__esModule=!0,exports.getNamespace=getNamespace,exports.getColor=getColor,exports.getScale=getScale,exports.DEFAULT_NAMESPACE=exports.default=void 0;var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale")),_CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton")),_stringifyAndTrim=_interopRequireDefault(require("./stringifyAndTrim"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||(0,_CategoricalSchemeRegistrySingleton.default)().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new _CategoricalColorScale.default((0,_CategoricalSchemeRegistrySingleton.default)().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[(0,_stringifyAndTrim.default)(a)]=b,this},a}();exports.default=CategoricalColorNamespace;var namespaces={},DEFAULT_NAMESPACE="GLOBAL";exports.DEFAULT_NAMESPACE=DEFAULT_NAMESPACE;function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}function getScale(a,b){return getNamespace(b).getScale(a)} |
@@ -1,3 +0,2 @@ | ||
"use strict";exports.__esModule=!0,exports.cleanValue=cleanValue,exports.default=void 0,require("core-js/modules/web.dom.iterable"),require("core-js/modules/es6.array.iterator"),require("core-js/modules/es6.object.keys");function cleanValue(a){// for superset series that should have the same color | ||
return(a+"").trim().toLowerCase()}var CategoricalColorScale=/*#__PURE__*/function(){/** | ||
"use strict";exports.__esModule=!0,exports.default=void 0,require("core-js/modules/web.dom.iterable"),require("core-js/modules/es6.array.iterator"),require("core-js/modules/es6.object.keys");var _core=require("@superset-ui/core"),_stringifyAndTrim=_interopRequireDefault(require("./stringifyAndTrim"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}var CategoricalColorScale=/*#__PURE__*/function(a){/** | ||
* Constructor | ||
@@ -7,2 +6,2 @@ * @param {*} colors an array of colors | ||
* (usually CategoricalColorNamespace) and supersede this.forcedColors | ||
*/function a(a,b){var c=this;this.colors=a,this.parentForcedColors=b,this.forcedColors={},this.seen={},this.fn=function(a){return c.getColor(a)}}var b=a.prototype;return b.getColor=function h(a){var b=cleanValue(a),c=this.parentForcedColors&&this.parentForcedColors[b];if(c)return c;var d=this.forcedColors[b];if(d)return d;var e=this.seen[b],f=this.colors.length;if(void 0!==e)return this.colors[e%f];var g=Object.keys(this.seen).length;return this.seen[b]=g,this.colors[g%f]},b.setColor=function c(a,b){return this.forcedColors[a]=b,this},b.toFunction=function a(){return this.fn},a}();exports.default=CategoricalColorScale; | ||
*/function b(b,c){var d;return d=a.call(this,function(){var a;return(a=d).getColor.apply(a,arguments)})||this,d.colors=b,d.parentForcedColors=c,d.forcedColors={},d.seen={},d}_inheritsLoose(b,a);var c=b.prototype;return c.getColor=function h(a){var b=(0,_stringifyAndTrim.default)(a),c=this.parentForcedColors&&this.parentForcedColors[b];if(c)return c;var d=this.forcedColors[b];if(d)return d;var e=this.seen[b],f=this.colors.length;if(void 0!==e)return this.colors[e%f];var g=Object.keys(this.seen).length;return this.seen[b]=g,this.colors[g%f]},c.setColor=function c(a,b){return this.forcedColors[(0,_stringifyAndTrim.default)(a)]=b,this},b}(_core.ExtensibleFunction);exports.default=CategoricalColorScale; |
@@ -1,1 +0,1 @@ | ||
"use strict";exports.__esModule=!0,exports.default=void 0,require("core-js/modules/es6.function.name");var _core=require("@superset-ui/core"),ColorScheme=function(a){var b=a.name,c=void 0===b?(0,_core.isRequired)("name"):b,d=a.label,e=a.colors,f=void 0===e?(0,_core.isRequired)("colors"):e,g=a.description,h=void 0===g?"":g;this.name=c,this.label=d||c,this.colors=f,this.description=h};exports.default=ColorScheme; | ||
"use strict";exports.__esModule=!0,exports.default=void 0;var _core=require("@superset-ui/core"),ColorScheme=function(a){var b=a.colors,c=void 0===b?(0,_core.isRequired)("colors"):b,d=a.description,e=void 0===d?"":d,f=a.id,g=void 0===f?(0,_core.isRequired)("id"):f,h=a.label;this.id=g,this.label=h||g,this.colors=c,this.description=e};exports.default=ColorScheme; |
@@ -1,2 +0,2 @@ | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"bnbColors",colors:["#ff5a5f",// rausch | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"bnbColors",colors:["#ff5a5f",// rausch | ||
"#7b0051",// hackb | ||
@@ -3,0 +3,0 @@ "#007A87",// kazan |
@@ -1,1 +0,1 @@ | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"d3Category10",colors:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]},{name:"d3Category20",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"]},{name:"d3Category20b",colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"]},{name:"d3Category20c",colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"d3Category10",colors:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"]},{id:"d3Category20",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"]},{id:"d3Category20b",colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"]},{id:"d3Category20c",colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"googleCategory10c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"]},{name:"googleCategory20c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"googleCategory10c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"]},{id:"googleCategory20c",colors:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"lyftColors",colors:["#EA0B8C","#6C838E","#29ABE2","#33D9C1","#9DACB9","#7560AA","#2D5584","#831C4A","#333D47","#AC2077"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; | ||
"use strict";var _CategoricalScheme=_interopRequireDefault(require("../../CategoricalScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"lyftColors",colors:["#EA0B8C","#6C838E","#29ABE2","#33D9C1","#9DACB9","#7560AA","#2D5584","#831C4A","#333D47","#AC2077"]}].map(function(a){return new _CategoricalScheme.default(a)}),_default=schemes;exports.default=_default; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _SequentialScheme=_interopRequireDefault(require("../../SequentialScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"blue_white_yellow",label:"blue/white/yellow",colors:["#00d1c1","white","#ffb400"]},{name:"fire",colors:["white","yellow","red","black"]},{name:"white_black",label:"white/black",colors:["white","black"]},{name:"black_white",label:"black/white",colors:["black","white"]},{name:"dark_blue",label:"dark blues",colors:["#EBF5F8","#6BB1CC","#357E9B","#1B4150","#092935"]},{name:"pink_grey",label:"pink/grey",isDiverging:!0,colors:["#E70B81","#FAFAFA","#666666"]},{name:"greens",colors:["#ffffcc","#78c679","#006837"]},{name:"purples",colors:["#f2f0f7","#9e9ac8","#54278f"]},{name:"oranges",colors:["#fef0d9","#fc8d59","#b30000"]},{name:"red_yellow_blue",label:"red/yellow/blue",isDiverging:!0,colors:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"]},{name:"brown_white_green",label:"brown/white/green",isDiverging:!0,colors:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"]},{name:"purple_white_green",label:"purple/white/green",isDiverging:!0,colors:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"]}].map(function(a){return new _SequentialScheme.default(a)}),_default=schemes;exports.default=_default; | ||
"use strict";var _SequentialScheme=_interopRequireDefault(require("../../SequentialScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"blue_white_yellow",label:"blue/white/yellow",colors:["#00d1c1","white","#ffb400"]},{id:"fire",colors:["white","yellow","red","black"]},{id:"white_black",label:"white/black",colors:["white","black"]},{id:"black_white",label:"black/white",colors:["black","white"]},{id:"dark_blue",label:"dark blues",colors:["#EBF5F8","#6BB1CC","#357E9B","#1B4150","#092935"]},{id:"pink_grey",label:"pink/grey",isDiverging:!0,colors:["#E70B81","#FAFAFA","#666666"]},{id:"greens",colors:["#ffffcc","#78c679","#006837"]},{id:"purples",colors:["#f2f0f7","#9e9ac8","#54278f"]},{id:"oranges",colors:["#fef0d9","#fc8d59","#b30000"]},{id:"red_yellow_blue",label:"red/yellow/blue",isDiverging:!0,colors:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"]},{id:"brown_white_green",label:"brown/white/green",isDiverging:!0,colors:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"]},{id:"purple_white_green",label:"purple/white/green",isDiverging:!0,colors:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"]}].map(function(a){return new _SequentialScheme.default(a)}),_default=schemes;exports.default=_default; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _SequentialScheme=_interopRequireDefault(require("../../SequentialScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{name:"schemeBrBG",label:"brown/green",isDiverging:!0,colors:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},{name:"schemePRGn",label:"purple/green",isDiverging:!0,colors:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},{name:"schemePiYG",label:"pink/green",isDiverging:!0,colors:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},{name:"schemePuOr",label:"purple/orange",isDiverging:!0,colors:["#2d004b","#542788","#8073ac","#b2abd2","#d8daeb","#fee0b6","#fdb863","#e08214","#b35806","#7f3b08"]},{name:"schemeRdBu",label:"red/blue",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},{name:"schemeRdGy",label:"red/gray/black",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},{name:"schemeRdYlBu",label:"red/yellow/blue",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],isDiverging:!0},{name:"schemeRdYlGn",label:"red/yellow/green",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],isDiverging:!0},{name:"schemeSpectral",label:"rainbow",colors:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},{name:"schemeBlues",label:"blues",colors:["#b5d4e9","#93c3df","#6daed5","#4b97c9","#2f7ebc","#1864aa","#0a4a90","#08306b"]},{name:"schemeGreens",label:"greens",colors:["#b7e2b1","#97d494","#73c378","#4daf62","#2f984f","#157f3b","#036429","#00441b"]},{name:"schemeGrays",label:"grays",colors:["#cecece","#b4b4b4","#979797","#7a7a7a","#5f5f5f","#404040","#1e1e1e","#000000"]},{name:"schemeOranges",label:"oranges",colors:["#fdc28c","#fda762","#fb8d3d","#f2701d","#e25609","#c44103","#9f3303","#7f2704"]},{name:"schemePurples",label:"purples",colors:["#cecee5","#b6b5d8","#9e9bc9","#8782bc","#7363ac","#61409b","#501f8c","#3f007d"]},{name:"schemeReds",label:"reds",colors:["#fcaa8e","#fc8a6b","#f9694c","#ef4533","#d92723","#bb151a","#970b13","#67000d"]},{name:"schemeViridis",label:"Viridis",colors:["#482475","#414487","#355f8d","#2a788e","#21918c","#22a884","#44bf70","#7ad151","#bddf26","#fde725"]},{name:"schemeInferno",label:"Inferno",colors:["#160b39","#420a68","#6a176e","#932667","#bc3754","#dd513a","#f37819","#fca50a","#f6d746","#fcffa4"]},{name:"schemeMagma",label:"Magma",colors:["#140e36","#3b0f70","#641a80","#8c2981","#b73779","#de4968","#f7705c","#fe9f6d","#fecf92","#fcfdbf"]},{name:"schemeWarm",label:"Warm",colors:["#963db3","#bf3caf","#e4419d","#fe4b83","#ff5e63","#ff7847","#fb9633","#e2b72f","#c6d63c","#aff05b"]},{name:"schemeCool",label:"Cool",colors:["#6054c8","#4c6edb","#368ce1","#23abd8","#1ac7c2","#1ddfa3","#30ef82","#52f667","#7ff658","#aff05b"]},{name:"schemeCubehelixDefault",label:"Cube Helix",colors:["#1a1530","#163d4e","#1f6642","#54792f","#a07949","#d07e93","#cf9cda","#c1caf3","#d2eeef","#ffffff"]},{name:"schemeBuGn",label:"blue/green",colors:["#b7e4da","#8fd3c1","#68c2a3","#49b17f","#2f9959","#157f3c","#036429","#00441b"]},{name:"schemeBuPu",label:"blue/purple",colors:["#b2cae1","#9cb3d5","#8f95c6","#8c74b5","#8952a5","#852d8f","#730f71","#4d004b"]},{name:"schemeGnBu",label:"green/blue",colors:["#bde5bf","#9ed9bb","#7bcbc4","#58b7cd","#399cc6","#1d7eb7","#0b60a1","#084081"]},{name:"schemeOrRd",label:"orange/red",colors:["#fdca94","#fdb07a","#fa8e5d","#f16c49","#e04530","#c81d13","#a70403","#7f0000"]},{name:"schemePuBuGn",label:"purple/blue/green",colors:["#bec9e2","#98b9d9","#69a8cf","#4096c0","#19879f","#037877","#016353","#014636"]},{name:"schemePuBu",label:"purple/blue",colors:["#bfc9e2","#9bb9d9","#72a8cf","#4394c3","#1a7db6","#0667a1","#045281","#023858"]},{name:"schemePuRd",label:"purple/red",colors:["#d0aad2","#d08ac2","#dd63ae","#e33890","#d71c6c","#b70b4f","#8f023a","#67001f"]},{name:"schemeRdPu",label:"red/purple",colors:["#fbb5bc","#f993b0","#f369a3","#e03e98","#c01788","#99037c","#700174","#49006a"]},{name:"schemeYlGnBu",label:"yellow/green/blue",colors:["#d5eeb3","#a9ddb7","#73c9bd","#45b4c2","#2897bf","#2073b2","#234ea0","#1c3185","#081d58"]},{name:"schemeYlGn",label:"yellow/green",colors:["#e4f4ac","#c7e89b","#a2d88a","#78c578","#4eaf63","#2f944e","#15793f","#036034","#004529"]},{name:"schemeYlOrBr",label:"yellow/orange/brown",colors:["#feeaa1","#fed676","#feba4a","#fb992c","#ee7918","#d85b0a","#b74304","#8f3204","#662506"]},{name:"schemeYlOrRd",label:"yellow/orange/red",colors:["#fee087","#fec965","#feab4b","#fd893c","#fa5c2e","#ec3023","#d31121","#af0225","#800026"]}].map(function(a){return new _SequentialScheme.default(a)}),_default=schemes;exports.default=_default; | ||
"use strict";var _SequentialScheme=_interopRequireDefault(require("../../SequentialScheme"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}/* eslint-disable sort-keys */var schemes=[{id:"schemeBrBG",label:"brown/green",isDiverging:!0,colors:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},{id:"schemePRGn",label:"purple/green",isDiverging:!0,colors:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},{id:"schemePiYG",label:"pink/green",isDiverging:!0,colors:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},{id:"schemePuOr",label:"purple/orange",isDiverging:!0,colors:["#2d004b","#542788","#8073ac","#b2abd2","#d8daeb","#fee0b6","#fdb863","#e08214","#b35806","#7f3b08"]},{id:"schemeRdBu",label:"red/blue",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},{id:"schemeRdGy",label:"red/gray/black",isDiverging:!0,colors:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},{id:"schemeRdYlBu",label:"red/yellow/blue",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],isDiverging:!0},{id:"schemeRdYlGn",label:"red/yellow/green",colors:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],isDiverging:!0},{id:"schemeSpectral",label:"rainbow",colors:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},{id:"schemeBlues",label:"blues",colors:["#b5d4e9","#93c3df","#6daed5","#4b97c9","#2f7ebc","#1864aa","#0a4a90","#08306b"]},{id:"schemeGreens",label:"greens",colors:["#b7e2b1","#97d494","#73c378","#4daf62","#2f984f","#157f3b","#036429","#00441b"]},{id:"schemeGrays",label:"grays",colors:["#cecece","#b4b4b4","#979797","#7a7a7a","#5f5f5f","#404040","#1e1e1e","#000000"]},{id:"schemeOranges",label:"oranges",colors:["#fdc28c","#fda762","#fb8d3d","#f2701d","#e25609","#c44103","#9f3303","#7f2704"]},{id:"schemePurples",label:"purples",colors:["#cecee5","#b6b5d8","#9e9bc9","#8782bc","#7363ac","#61409b","#501f8c","#3f007d"]},{id:"schemeReds",label:"reds",colors:["#fcaa8e","#fc8a6b","#f9694c","#ef4533","#d92723","#bb151a","#970b13","#67000d"]},{id:"schemeViridis",label:"Viridis",colors:["#482475","#414487","#355f8d","#2a788e","#21918c","#22a884","#44bf70","#7ad151","#bddf26","#fde725"]},{id:"schemeInferno",label:"Inferno",colors:["#160b39","#420a68","#6a176e","#932667","#bc3754","#dd513a","#f37819","#fca50a","#f6d746","#fcffa4"]},{id:"schemeMagma",label:"Magma",colors:["#140e36","#3b0f70","#641a80","#8c2981","#b73779","#de4968","#f7705c","#fe9f6d","#fecf92","#fcfdbf"]},{id:"schemeWarm",label:"Warm",colors:["#963db3","#bf3caf","#e4419d","#fe4b83","#ff5e63","#ff7847","#fb9633","#e2b72f","#c6d63c","#aff05b"]},{id:"schemeCool",label:"Cool",colors:["#6054c8","#4c6edb","#368ce1","#23abd8","#1ac7c2","#1ddfa3","#30ef82","#52f667","#7ff658","#aff05b"]},{id:"schemeCubehelixDefault",label:"Cube Helix",colors:["#1a1530","#163d4e","#1f6642","#54792f","#a07949","#d07e93","#cf9cda","#c1caf3","#d2eeef","#ffffff"]},{id:"schemeBuGn",label:"blue/green",colors:["#b7e4da","#8fd3c1","#68c2a3","#49b17f","#2f9959","#157f3c","#036429","#00441b"]},{id:"schemeBuPu",label:"blue/purple",colors:["#b2cae1","#9cb3d5","#8f95c6","#8c74b5","#8952a5","#852d8f","#730f71","#4d004b"]},{id:"schemeGnBu",label:"green/blue",colors:["#bde5bf","#9ed9bb","#7bcbc4","#58b7cd","#399cc6","#1d7eb7","#0b60a1","#084081"]},{id:"schemeOrRd",label:"orange/red",colors:["#fdca94","#fdb07a","#fa8e5d","#f16c49","#e04530","#c81d13","#a70403","#7f0000"]},{id:"schemePuBuGn",label:"purple/blue/green",colors:["#bec9e2","#98b9d9","#69a8cf","#4096c0","#19879f","#037877","#016353","#014636"]},{id:"schemePuBu",label:"purple/blue",colors:["#bfc9e2","#9bb9d9","#72a8cf","#4394c3","#1a7db6","#0667a1","#045281","#023858"]},{id:"schemePuRd",label:"purple/red",colors:["#d0aad2","#d08ac2","#dd63ae","#e33890","#d71c6c","#b70b4f","#8f023a","#67001f"]},{id:"schemeRdPu",label:"red/purple",colors:["#fbb5bc","#f993b0","#f369a3","#e03e98","#c01788","#99037c","#700174","#49006a"]},{id:"schemeYlGnBu",label:"yellow/green/blue",colors:["#d5eeb3","#a9ddb7","#73c9bd","#45b4c2","#2897bf","#2073b2","#234ea0","#1c3185","#081d58"]},{id:"schemeYlGn",label:"yellow/green",colors:["#e4f4ac","#c7e89b","#a2d88a","#78c578","#4eaf63","#2f944e","#15793f","#036034","#004529"]},{id:"schemeYlOrBr",label:"yellow/orange/brown",colors:["#feeaa1","#fed676","#feba4a","#fb992c","#ee7918","#d85b0a","#b74304","#8f3204","#662506"]},{id:"schemeYlOrRd",label:"yellow/orange/red",colors:["#fee087","#fec965","#feab4b","#fd893c","#fa5c2e","#ec3023","#d31121","#af0225","#800026"]}].map(function(a){return new _SequentialScheme.default(a)}),_default=schemes;exports.default=_default; |
{ | ||
"name": "@superset-ui/color", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Superset UI color", | ||
@@ -29,5 +29,6 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@superset-ui/core": "^0.6.0", | ||
"@superset-ui/core": "^0.7.0", | ||
"d3-scale": "^2.1.2" | ||
} | ||
}, | ||
"gitHead": "88d453c21cbd4f206fe1c4b7e448284e831c0981" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
44277
35
43
15
1
+ Added@superset-ui/core@0.7.0(transitive)
- Removed@superset-ui/core@0.6.0(transitive)
Updated@superset-ui/core@^0.7.0