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

@nivo/colors

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/colors - npm Package Compare versions

Comparing version 0.79.0 to 0.79.1

2

dist/nivo-colors.cjs.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-scale-chromatic"),r=require("lodash/isPlainObject"),t=require("lodash/get"),o=require("react"),n=require("d3-color"),i=require("react-motion"),l=require("prop-types"),u=require("d3-scale");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(r),c=a(t),p=a(l);function d(){return d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(this,arguments)}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function m(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:e.schemeCategory10,accent:e.schemeAccent,dark2:e.schemeDark2,paired:e.schemePaired,pastel1:e.schemePastel1,pastel2:e.schemePastel2,set1:e.schemeSet1,set2:e.schemeSet2,set3:e.schemeSet3},g=Object.keys(h),y={brown_blueGreen:e.schemeBrBG,purpleRed_green:e.schemePRGn,pink_yellowGreen:e.schemePiYG,purple_orange:e.schemePuOr,red_blue:e.schemeRdBu,red_grey:e.schemeRdGy,red_yellow_blue:e.schemeRdYlBu,red_yellow_green:e.schemeRdYlGn,spectral:e.schemeSpectral},v=Object.keys(y),b={brown_blueGreen:e.interpolateBrBG,purpleRed_green:e.interpolatePRGn,pink_yellowGreen:e.interpolatePiYG,purple_orange:e.interpolatePuOr,red_blue:e.interpolateRdBu,red_grey:e.interpolateRdGy,red_yellow_blue:e.interpolateRdYlBu,red_yellow_green:e.interpolateRdYlGn,spectral:e.interpolateSpectral},_={blues:e.schemeBlues,greens:e.schemeGreens,greys:e.schemeGreys,oranges:e.schemeOranges,purples:e.schemePurples,reds:e.schemeReds,blue_green:e.schemeBuGn,blue_purple:e.schemeBuPu,green_blue:e.schemeGnBu,orange_red:e.schemeOrRd,purple_blue_green:e.schemePuBuGn,purple_blue:e.schemePuBu,purple_red:e.schemePuRd,red_purple:e.schemeRdPu,yellow_green_blue:e.schemeYlGnBu,yellow_green:e.schemeYlGn,yellow_orange_brown:e.schemeYlOrBr,yellow_orange_red:e.schemeYlOrRd},w=Object.keys(_),x={blues:e.interpolateBlues,greens:e.interpolateGreens,greys:e.interpolateGreys,oranges:e.interpolateOranges,purples:e.interpolatePurples,reds:e.interpolateReds,turbo:e.interpolateTurbo,viridis:e.interpolateViridis,inferno:e.interpolateInferno,magma:e.interpolateMagma,plasma:e.interpolatePlasma,cividis:e.interpolateCividis,warm:e.interpolateWarm,cool:e.interpolateCool,cubehelixDefault:e.interpolateCubehelixDefault,blue_green:e.interpolateBuGn,blue_purple:e.interpolateBuPu,green_blue:e.interpolateGnBu,orange_red:e.interpolateOrRd,purple_blue_green:e.interpolatePuBuGn,purple_blue:e.interpolatePuBu,purple_red:e.interpolatePuRd,red_purple:e.interpolateRdPu,yellow_green_blue:e.interpolateYlGnBu,yellow_green:e.interpolateYlGn,yellow_orange_brown:e.interpolateYlOrBr,yellow_orange_red:e.interpolateYlOrRd},C=d({},h,y,_),S=Object.keys(C),O=function(e){return g.includes(e)},G=function(e){return v.includes(e)},R=function(e){return w.includes(e)},B={rainbow:e.interpolateRainbow,sinebow:e.interpolateSinebow},P=d({},b,x,B),q=Object.keys(P),I=function(e,r){if("function"==typeof e)return e;if(s.default(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var t=c.default(r,e.theme);if(void 0===t)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return t}}if(function(e){return void 0!==e.from}(e)){var o=function(r){return c.default(r,e.from)};if(Array.isArray(e.modifiers)){for(var i,l=[],u=function(){var e=i.value,r=e[0],t=e[1];if("brighter"===r)l.push((function(e){return e.brighter(t)}));else if("darker"===r)l.push((function(e){return e.darker(t)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");l.push((function(e){return e.opacity=t,e}))}},a=m(e.modifiers);!(i=a()).done;)u();return 0===l.length?o:function(e){return l.reduce((function(e,r){return r(e)}),n.rgb(o(e))).toString()}}return o}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},z=p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.string),p.default.shape({scheme:p.default.oneOf(S).isRequired,size:p.default.number}),p.default.shape({datum:p.default.string.isRequired}),p.default.string]),k=p.default.oneOfType([p.default.string,p.default.func,p.default.shape({theme:p.default.string.isRequired}),p.default.shape({from:p.default.string.isRequired,modifiers:p.default.arrayOf(p.default.array)})]),j={scheme:"turbo"},A=function(e,r){var t=e.scheme,o=void 0===t?j.scheme:t,n=e.minValue,i=e.maxValue,l=void 0!==n?n:r.min,a=void 0!==i?i:r.max;return u.scaleSequential().domain([l,a]).interpolator(P[o])},M={scheme:"red_yellow_blue",divergeAt:.5},Y=function(e,r){var t=e.scheme,o=void 0===t?M.scheme:t,n=e.divergeAt,i=void 0===n?M.divergeAt:n,l=e.minValue,a=e.maxValue,s=void 0!==l?l:r.min,c=void 0!==a?a:r.max,p=[s,s+(c-s)/2,c],d=P[o],f=.5-i;return u.scaleDiverging((function(e){return d(e+f)})).domain(p).clamp(!0)},E={scheme:"turbo",steps:7},D=function(e,r){var t=u.scaleQuantize().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)t.range(e.colors);else{var o=e.scheme||E.scheme,n=void 0===e.steps?E.steps:e.steps,i=P[o],l=Array.from({length:n}).map((function(e,r){return i(r*(1/(n-1)))}));t.range(l)}return t},T=function(e,r){if(function(e){return"sequential"===e.type}(e))return A(e,r);if(function(e){return"diverging"===e.type}(e))return Y(e,r);if(function(e){return"quantize"===e.type}(e))return D(e,r);throw new Error("Invalid continuous color scale config")},V=function(e,r){if("function"==typeof e)return e;var t="function"==typeof r?r:function(e){return c.default(e,r)};if(Array.isArray(e)){var o=u.scaleOrdinal(e),n=function(e){return o(t(e))};return n.scale=o,n}if(s.default(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return c.default(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(O(e.scheme)){var i=u.scaleOrdinal(C[e.scheme]),l=function(e){return i(t(e))};return l.scale=i,l}if(G(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var a=u.scaleOrdinal(C[e.scheme][e.size||11]),p=function(e){return a(t(e))};return p.scale=a,p}if(R(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var d=u.scaleOrdinal(C[e.scheme][e.size||9]),f=function(e){return d(t(e))};return f.scale=d,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}};exports.categoricalColorSchemeIds=g,exports.categoricalColorSchemes=h,exports.colorInterpolatorIds=q,exports.colorInterpolators=P,exports.colorSchemeIds=S,exports.colorSchemes=C,exports.computeContinuousColorScaleColorStops=function(e,r){void 0===r&&(r=16);var t=e.domain();if("thresholds"in e){var o=[],n=u.scaleLinear().domain(t).range([0,1]);return e.range().forEach((function(r,t){var i=e.invertExtent(r),l=i[0],u=i[1];o.push({key:t+".0",offset:n(l),stopColor:r}),o.push({key:t+".1",offset:n(u),stopColor:r})})),o}var i=e.copy();return 2===t.length?i.domain([0,1]):3===t.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},exports.cyclicalColorInterpolators=B,exports.divergingColorInterpolators=b,exports.divergingColorScaleDefaults=M,exports.divergingColorSchemeIds=v,exports.divergingColorSchemes=y,exports.getContinuousColorScale=T,exports.getDivergingColorScale=Y,exports.getInheritedColorGenerator=I,exports.getInterpolatedColor=function(e){var r=e.colorR,t=e.colorG,o=e.colorB;return"rgb("+Math.round(Math.max(r,0))+","+Math.round(Math.max(t,0))+","+Math.round(Math.max(o,0))+")"},exports.getOrdinalColorScale=V,exports.getQuantizeColorScale=D,exports.getSequentialColorScale=A,exports.inheritedColorPropType=k,exports.interpolateColor=function(e,r){var t=n.rgb(e);if(!r)return{colorR:t.r,colorG:t.g,colorB:t.b};var o=d({},r,{precision:1});return{colorR:i.spring(t.r,o),colorG:i.spring(t.g,o),colorB:i.spring(t.b,o)}},exports.isCategoricalColorScheme=O,exports.isDivergingColorScheme=G,exports.isSequentialColorScheme=R,exports.ordinalColorsPropType=z,exports.quantizeColorScaleDefaults=E,exports.sequentialColorInterpolators=x,exports.sequentialColorScaleDefaults=j,exports.sequentialColorSchemeIds=w,exports.sequentialColorSchemes=_,exports.useContinuousColorScale=function(e,r){return o.useMemo((function(){return T(e,r)}),[e,r])},exports.useDivergingColorScale=function(e,r){return o.useMemo((function(){return Y(e,r)}),[e,r])},exports.useInheritedColor=function(e,r){return o.useMemo((function(){return I(e,r)}),[e,r])},exports.useOrdinalColorScale=function(e,r){return o.useMemo((function(){return V(e,r)}),[e,r])},exports.useQuantizeColorScale=function(e,r){return o.useMemo((function(){return D(e,r)}),[e,r])},exports.useSequentialColorScale=function(e,r){return o.useMemo((function(){return A(e,r)}),[e,r])};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-scale-chromatic"),r=require("lodash/isPlainObject"),t=require("lodash/get"),n=require("react"),o=require("d3-color"),i=require("prop-types"),l=require("d3-scale");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(r),s=u(t),c=u(i);function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:e.schemeCategory10,accent:e.schemeAccent,dark2:e.schemeDark2,paired:e.schemePaired,pastel1:e.schemePastel1,pastel2:e.schemePastel2,set1:e.schemeSet1,set2:e.schemeSet2,set3:e.schemeSet3},h=Object.keys(m),g={brown_blueGreen:e.schemeBrBG,purpleRed_green:e.schemePRGn,pink_yellowGreen:e.schemePiYG,purple_orange:e.schemePuOr,red_blue:e.schemeRdBu,red_grey:e.schemeRdGy,red_yellow_blue:e.schemeRdYlBu,red_yellow_green:e.schemeRdYlGn,spectral:e.schemeSpectral},y=Object.keys(g),v={brown_blueGreen:e.interpolateBrBG,purpleRed_green:e.interpolatePRGn,pink_yellowGreen:e.interpolatePiYG,purple_orange:e.interpolatePuOr,red_blue:e.interpolateRdBu,red_grey:e.interpolateRdGy,red_yellow_blue:e.interpolateRdYlBu,red_yellow_green:e.interpolateRdYlGn,spectral:e.interpolateSpectral},b={blues:e.schemeBlues,greens:e.schemeGreens,greys:e.schemeGreys,oranges:e.schemeOranges,purples:e.schemePurples,reds:e.schemeReds,blue_green:e.schemeBuGn,blue_purple:e.schemeBuPu,green_blue:e.schemeGnBu,orange_red:e.schemeOrRd,purple_blue_green:e.schemePuBuGn,purple_blue:e.schemePuBu,purple_red:e.schemePuRd,red_purple:e.schemeRdPu,yellow_green_blue:e.schemeYlGnBu,yellow_green:e.schemeYlGn,yellow_orange_brown:e.schemeYlOrBr,yellow_orange_red:e.schemeYlOrRd},_=Object.keys(b),w={blues:e.interpolateBlues,greens:e.interpolateGreens,greys:e.interpolateGreys,oranges:e.interpolateOranges,purples:e.interpolatePurples,reds:e.interpolateReds,turbo:e.interpolateTurbo,viridis:e.interpolateViridis,inferno:e.interpolateInferno,magma:e.interpolateMagma,plasma:e.interpolatePlasma,cividis:e.interpolateCividis,warm:e.interpolateWarm,cool:e.interpolateCool,cubehelixDefault:e.interpolateCubehelixDefault,blue_green:e.interpolateBuGn,blue_purple:e.interpolateBuPu,green_blue:e.interpolateGnBu,orange_red:e.interpolateOrRd,purple_blue_green:e.interpolatePuBuGn,purple_blue:e.interpolatePuBu,purple_red:e.interpolatePuRd,red_purple:e.interpolateRdPu,yellow_green_blue:e.interpolateYlGnBu,yellow_green:e.interpolateYlGn,yellow_orange_brown:e.interpolateYlOrBr,yellow_orange_red:e.interpolateYlOrRd},x=p({},m,g,b),C=Object.keys(x),S=function(e){return h.includes(e)},O=function(e){return y.includes(e)},G=function(e){return _.includes(e)},P={rainbow:e.interpolateRainbow,sinebow:e.interpolateSinebow},R=p({},v,w,P),B=Object.keys(R),q=function(e,r){if("function"==typeof e)return e;if(a.default(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var t=s.default(r,e.theme);if(void 0===t)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return t}}if(function(e){return void 0!==e.from}(e)){var n=function(r){return s.default(r,e.from)};if(Array.isArray(e.modifiers)){for(var i,l=[],u=function(){var e=i.value,r=e[0],t=e[1];if("brighter"===r)l.push((function(e){return e.brighter(t)}));else if("darker"===r)l.push((function(e){return e.darker(t)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");l.push((function(e){return e.opacity=t,e}))}},c=f(e.modifiers);!(i=c()).done;)u();return 0===l.length?n:function(e){return l.reduce((function(e,r){return r(e)}),o.rgb(n(e))).toString()}}return n}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},I=c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.string),c.default.shape({scheme:c.default.oneOf(C).isRequired,size:c.default.number}),c.default.shape({datum:c.default.string.isRequired}),c.default.string]),z=c.default.oneOfType([c.default.string,c.default.func,c.default.shape({theme:c.default.string.isRequired}),c.default.shape({from:c.default.string.isRequired,modifiers:c.default.arrayOf(c.default.array)})]),k={scheme:"turbo"},j=function(e,r){var t=e.scheme,n=void 0===t?k.scheme:t,o=e.minValue,i=e.maxValue,u=void 0!==o?o:r.min,a=void 0!==i?i:r.max;return l.scaleSequential().domain([u,a]).interpolator(R[n])},A={scheme:"red_yellow_blue",divergeAt:.5},Y=function(e,r){var t=e.scheme,n=void 0===t?A.scheme:t,o=e.divergeAt,i=void 0===o?A.divergeAt:o,u=e.minValue,a=e.maxValue,s=void 0!==u?u:r.min,c=void 0!==a?a:r.max,p=[s,s+(c-s)/2,c],d=R[n],f=.5-i;return l.scaleDiverging((function(e){return d(e+f)})).domain(p).clamp(!0)},E={scheme:"turbo",steps:7},D=function(e,r){var t=l.scaleQuantize().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)t.range(e.colors);else{var n=e.scheme||E.scheme,o=void 0===e.steps?E.steps:e.steps,i=R[n],u=Array.from({length:o}).map((function(e,r){return i(r*(1/(o-1)))}));t.range(u)}return t},M=function(e,r){if(function(e){return"sequential"===e.type}(e))return j(e,r);if(function(e){return"diverging"===e.type}(e))return Y(e,r);if(function(e){return"quantize"===e.type}(e))return D(e,r);throw new Error("Invalid continuous color scale config")},T=function(e,r){if("function"==typeof e)return e;var t="function"==typeof r?r:function(e){return s.default(e,r)};if(Array.isArray(e)){var n=l.scaleOrdinal(e),o=function(e){return n(t(e))};return o.scale=n,o}if(a.default(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return s.default(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(S(e.scheme)){var i=l.scaleOrdinal(x[e.scheme]),u=function(e){return i(t(e))};return u.scale=i,u}if(O(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var c=l.scaleOrdinal(x[e.scheme][e.size||11]),p=function(e){return c(t(e))};return p.scale=c,p}if(G(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var d=l.scaleOrdinal(x[e.scheme][e.size||9]),f=function(e){return d(t(e))};return f.scale=d,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}};exports.categoricalColorSchemeIds=h,exports.categoricalColorSchemes=m,exports.colorInterpolatorIds=B,exports.colorInterpolators=R,exports.colorSchemeIds=C,exports.colorSchemes=x,exports.computeContinuousColorScaleColorStops=function(e,r){void 0===r&&(r=16);var t=e.domain();if("thresholds"in e){var n=[],o=l.scaleLinear().domain(t).range([0,1]);return e.range().forEach((function(r,t){var i=e.invertExtent(r),l=i[0],u=i[1];n.push({key:t+".0",offset:o(l),stopColor:r}),n.push({key:t+".1",offset:o(u),stopColor:r})})),n}var i=e.copy();return 2===t.length?i.domain([0,1]):3===t.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},exports.cyclicalColorInterpolators=P,exports.divergingColorInterpolators=v,exports.divergingColorScaleDefaults=A,exports.divergingColorSchemeIds=y,exports.divergingColorSchemes=g,exports.getContinuousColorScale=M,exports.getDivergingColorScale=Y,exports.getInheritedColorGenerator=q,exports.getOrdinalColorScale=T,exports.getQuantizeColorScale=D,exports.getSequentialColorScale=j,exports.inheritedColorPropType=z,exports.isCategoricalColorScheme=S,exports.isDivergingColorScheme=O,exports.isSequentialColorScheme=G,exports.ordinalColorsPropType=I,exports.quantizeColorScaleDefaults=E,exports.sequentialColorInterpolators=w,exports.sequentialColorScaleDefaults=k,exports.sequentialColorSchemeIds=_,exports.sequentialColorSchemes=b,exports.useContinuousColorScale=function(e,r){return n.useMemo((function(){return M(e,r)}),[e,r])},exports.useDivergingColorScale=function(e,r){return n.useMemo((function(){return Y(e,r)}),[e,r])},exports.useInheritedColor=function(e,r){return n.useMemo((function(){return q(e,r)}),[e,r])},exports.useOrdinalColorScale=function(e,r){return n.useMemo((function(){return T(e,r)}),[e,r])},exports.useQuantizeColorScale=function(e,r){return n.useMemo((function(){return D(e,r)}),[e,r])},exports.useSequentialColorScale=function(e,r){return n.useMemo((function(){return j(e,r)}),[e,r])};
//# sourceMappingURL=nivo-colors.cjs.js.map

@@ -1,2 +0,2 @@

import{schemeCategory10 as e,schemeAccent as r,schemeDark2 as n,schemePaired as t,schemePastel1 as o,schemePastel2 as i,schemeSet1 as u,schemeSet2 as a,schemeSet3 as c,schemeBrBG as l,schemePRGn as s,schemePiYG as f,schemePuOr as d,schemeRdBu as m,schemeRdGy as p,schemeRdYlBu as h,schemeRdYlGn as g,schemeSpectral as y,interpolateBrBG as b,interpolatePRGn as v,interpolatePiYG as _,interpolatePuOr as w,interpolateRdBu as O,interpolateRdGy as k,interpolateRdYlBu as z,interpolateRdYlGn as A,interpolateSpectral as j,schemeBlues as x,schemeGreens as E,schemeGreys as I,schemeOranges as R,schemePurples as q,schemeReds as G,schemeBuGn as M,schemeBuPu as S,schemeGnBu as C,schemeOrRd as V,schemePuBuGn as B,schemePuBu as T,schemePuRd as P,schemeRdPu as U,schemeYlGnBu as D,schemeYlGn as $,schemeYlOrBr as F,schemeYlOrRd as H,interpolateBlues as J,interpolateGreens as K,interpolateGreys as L,interpolateOranges as N,interpolatePurples as Q,interpolateReds as W,interpolateTurbo as X,interpolateViridis as Y,interpolateInferno as Z,interpolateMagma as ee,interpolatePlasma as re,interpolateCividis as ne,interpolateWarm as te,interpolateCool as oe,interpolateCubehelixDefault as ie,interpolateBuGn as ue,interpolateBuPu as ae,interpolateGnBu as ce,interpolateOrRd as le,interpolatePuBuGn as se,interpolatePuBu as fe,interpolatePuRd as de,interpolateRdPu as me,interpolateYlGnBu as pe,interpolateYlGn as he,interpolateYlOrBr as ge,interpolateYlOrRd as ye,interpolateRainbow as be,interpolateSinebow as ve}from"d3-scale-chromatic";import _e from"lodash/isPlainObject";import we from"lodash/get";import{useMemo as Oe}from"react";import{rgb as ke}from"d3-color";import{spring as ze}from"react-motion";import Ae from"prop-types";import{scaleSequential as je,scaleDiverging as xe,scaleQuantize as Ee,scaleLinear as Ie,scaleOrdinal as Re}from"d3-scale";function qe(){return qe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},qe.apply(this,arguments)}function Ge(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Me(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return Ge(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Se={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:e,accent:r,dark2:n,paired:t,pastel1:o,pastel2:i,set1:u,set2:a,set3:c},Ce=Object.keys(Se),Ve={brown_blueGreen:l,purpleRed_green:s,pink_yellowGreen:f,purple_orange:d,red_blue:m,red_grey:p,red_yellow_blue:h,red_yellow_green:g,spectral:y},Be=Object.keys(Ve),Te={brown_blueGreen:b,purpleRed_green:v,pink_yellowGreen:_,purple_orange:w,red_blue:O,red_grey:k,red_yellow_blue:z,red_yellow_green:A,spectral:j},Pe={blues:x,greens:E,greys:I,oranges:R,purples:q,reds:G,blue_green:M,blue_purple:S,green_blue:C,orange_red:V,purple_blue_green:B,purple_blue:T,purple_red:P,red_purple:U,yellow_green_blue:D,yellow_green:$,yellow_orange_brown:F,yellow_orange_red:H},Ue=Object.keys(Pe),De={blues:J,greens:K,greys:L,oranges:N,purples:Q,reds:W,turbo:X,viridis:Y,inferno:Z,magma:ee,plasma:re,cividis:ne,warm:te,cool:oe,cubehelixDefault:ie,blue_green:ue,blue_purple:ae,green_blue:ce,orange_red:le,purple_blue_green:se,purple_blue:fe,purple_red:de,red_purple:me,yellow_green_blue:pe,yellow_green:he,yellow_orange_brown:ge,yellow_orange_red:ye},$e=qe({},Se,Ve,Pe),Fe=Object.keys($e),He=function(e){return Ce.includes(e)},Je=function(e){return Be.includes(e)},Ke=function(e){return Ue.includes(e)},Le={rainbow:be,sinebow:ve},Ne=qe({},Te,De,Le),Qe=Object.keys(Ne),We=function(e,r){if("function"==typeof e)return e;if(_e(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var n=we(r,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var t=function(r){return we(r,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],u=function(){var e=o.value,r=e[0],n=e[1];if("brighter"===r)i.push((function(e){return e.brighter(n)}));else if("darker"===r)i.push((function(e){return e.darker(n)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");i.push((function(e){return e.opacity=n,e}))}},a=Me(e.modifiers);!(o=a()).done;)u();return 0===i.length?t:function(e){return i.reduce((function(e,r){return r(e)}),ke(t(e))).toString()}}return t}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},Xe=function(e,r){return Oe((function(){return We(e,r)}),[e,r])},Ye=function(e,r){var n=ke(e);if(!r)return{colorR:n.r,colorG:n.g,colorB:n.b};var t=qe({},r,{precision:1});return{colorR:ze(n.r,t),colorG:ze(n.g,t),colorB:ze(n.b,t)}},Ze=function(e){var r=e.colorR,n=e.colorG,t=e.colorB;return"rgb("+Math.round(Math.max(r,0))+","+Math.round(Math.max(n,0))+","+Math.round(Math.max(t,0))+")"},er=Ae.oneOfType([Ae.func,Ae.arrayOf(Ae.string),Ae.shape({scheme:Ae.oneOf(Fe).isRequired,size:Ae.number}),Ae.shape({datum:Ae.string.isRequired}),Ae.string]),rr=Ae.oneOfType([Ae.string,Ae.func,Ae.shape({theme:Ae.string.isRequired}),Ae.shape({from:Ae.string.isRequired,modifiers:Ae.arrayOf(Ae.array)})]),nr={scheme:"turbo"},tr=function(e,r){var n=e.scheme,t=void 0===n?nr.scheme:n,o=e.minValue,i=e.maxValue,u=void 0!==o?o:r.min,a=void 0!==i?i:r.max;return je().domain([u,a]).interpolator(Ne[t])},or=function(e,r){return Oe((function(){return tr(e,r)}),[e,r])},ir={scheme:"red_yellow_blue",divergeAt:.5},ur=function(e,r){var n=e.scheme,t=void 0===n?ir.scheme:n,o=e.divergeAt,i=void 0===o?ir.divergeAt:o,u=e.minValue,a=e.maxValue,c=void 0!==u?u:r.min,l=void 0!==a?a:r.max,s=[c,c+(l-c)/2,l],f=Ne[t],d=.5-i;return xe((function(e){return f(e+d)})).domain(s).clamp(!0)},ar=function(e,r){return Oe((function(){return ur(e,r)}),[e,r])},cr={scheme:"turbo",steps:7},lr=function(e,r){var n=Ee().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)n.range(e.colors);else{var t=e.scheme||cr.scheme,o=void 0===e.steps?cr.steps:e.steps,i=Ne[t],u=Array.from({length:o}).map((function(e,r){return i(r*(1/(o-1)))}));n.range(u)}return n},sr=function(e,r){return Oe((function(){return lr(e,r)}),[e,r])},fr=function(e,r){if(function(e){return"sequential"===e.type}(e))return tr(e,r);if(function(e){return"diverging"===e.type}(e))return ur(e,r);if(function(e){return"quantize"===e.type}(e))return lr(e,r);throw new Error("Invalid continuous color scale config")},dr=function(e,r){return Oe((function(){return fr(e,r)}),[e,r])},mr=function(e,r){void 0===r&&(r=16);var n=e.domain();if("thresholds"in e){var t=[],o=Ie().domain(n).range([0,1]);return e.range().forEach((function(r,n){var i=e.invertExtent(r),u=i[0],a=i[1];t.push({key:n+".0",offset:o(u),stopColor:r}),t.push({key:n+".1",offset:o(a),stopColor:r})})),t}var i=e.copy();return 2===n.length?i.domain([0,1]):3===n.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},pr=function(e,r){if("function"==typeof e)return e;var n="function"==typeof r?r:function(e){return we(e,r)};if(Array.isArray(e)){var t=Re(e),o=function(e){return t(n(e))};return o.scale=t,o}if(_e(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return we(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(He(e.scheme)){var i=Re($e[e.scheme]),u=function(e){return i(n(e))};return u.scale=i,u}if(Je(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var a=Re($e[e.scheme][e.size||11]),c=function(e){return a(n(e))};return c.scale=a,c}if(Ke(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var l=Re($e[e.scheme][e.size||9]),s=function(e){return l(n(e))};return s.scale=l,s}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},hr=function(e,r){return Oe((function(){return pr(e,r)}),[e,r])};export{Ce as categoricalColorSchemeIds,Se as categoricalColorSchemes,Qe as colorInterpolatorIds,Ne as colorInterpolators,Fe as colorSchemeIds,$e as colorSchemes,mr as computeContinuousColorScaleColorStops,Le as cyclicalColorInterpolators,Te as divergingColorInterpolators,ir as divergingColorScaleDefaults,Be as divergingColorSchemeIds,Ve as divergingColorSchemes,fr as getContinuousColorScale,ur as getDivergingColorScale,We as getInheritedColorGenerator,Ze as getInterpolatedColor,pr as getOrdinalColorScale,lr as getQuantizeColorScale,tr as getSequentialColorScale,rr as inheritedColorPropType,Ye as interpolateColor,He as isCategoricalColorScheme,Je as isDivergingColorScheme,Ke as isSequentialColorScheme,er as ordinalColorsPropType,cr as quantizeColorScaleDefaults,De as sequentialColorInterpolators,nr as sequentialColorScaleDefaults,Ue as sequentialColorSchemeIds,Pe as sequentialColorSchemes,dr as useContinuousColorScale,ar as useDivergingColorScale,Xe as useInheritedColor,hr as useOrdinalColorScale,sr as useQuantizeColorScale,or as useSequentialColorScale};
import{schemeCategory10 as e,schemeAccent as r,schemeDark2 as n,schemePaired as t,schemePastel1 as o,schemePastel2 as i,schemeSet1 as u,schemeSet2 as a,schemeSet3 as s,schemeBrBG as c,schemePRGn as l,schemePiYG as f,schemePuOr as d,schemeRdBu as p,schemeRdGy as m,schemeRdYlBu as h,schemeRdYlGn as g,schemeSpectral as y,interpolateBrBG as b,interpolatePRGn as v,interpolatePiYG as _,interpolatePuOr as w,interpolateRdBu as O,interpolateRdGy as k,interpolateRdYlBu as z,interpolateRdYlGn as A,interpolateSpectral as j,schemeBlues as E,schemeGreens as x,schemeGreys as I,schemeOranges as q,schemePurples as R,schemeReds as S,schemeBuGn as C,schemeBuPu as G,schemeGnBu as V,schemeOrRd as T,schemePuBuGn as P,schemePuBu as U,schemePuRd as D,schemeRdPu as M,schemeYlGnBu as $,schemeYlGn as B,schemeYlOrBr as F,schemeYlOrRd as H,interpolateBlues as J,interpolateGreens as K,interpolateGreys as L,interpolateOranges as N,interpolatePurples as Q,interpolateReds as W,interpolateTurbo as X,interpolateViridis as Y,interpolateInferno as Z,interpolateMagma as ee,interpolatePlasma as re,interpolateCividis as ne,interpolateWarm as te,interpolateCool as oe,interpolateCubehelixDefault as ie,interpolateBuGn as ue,interpolateBuPu as ae,interpolateGnBu as se,interpolateOrRd as ce,interpolatePuBuGn as le,interpolatePuBu as fe,interpolatePuRd as de,interpolateRdPu as pe,interpolateYlGnBu as me,interpolateYlGn as he,interpolateYlOrBr as ge,interpolateYlOrRd as ye,interpolateRainbow as be,interpolateSinebow as ve}from"d3-scale-chromatic";import _e from"lodash/isPlainObject";import we from"lodash/get";import{useMemo as Oe}from"react";import{rgb as ke}from"d3-color";import ze from"prop-types";import{scaleSequential as Ae,scaleDiverging as je,scaleQuantize as Ee,scaleLinear as xe,scaleOrdinal as Ie}from"d3-scale";function qe(){return qe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},qe.apply(this,arguments)}function Re(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function Se(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return Re(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ce={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:e,accent:r,dark2:n,paired:t,pastel1:o,pastel2:i,set1:u,set2:a,set3:s},Ge=Object.keys(Ce),Ve={brown_blueGreen:c,purpleRed_green:l,pink_yellowGreen:f,purple_orange:d,red_blue:p,red_grey:m,red_yellow_blue:h,red_yellow_green:g,spectral:y},Te=Object.keys(Ve),Pe={brown_blueGreen:b,purpleRed_green:v,pink_yellowGreen:_,purple_orange:w,red_blue:O,red_grey:k,red_yellow_blue:z,red_yellow_green:A,spectral:j},Ue={blues:E,greens:x,greys:I,oranges:q,purples:R,reds:S,blue_green:C,blue_purple:G,green_blue:V,orange_red:T,purple_blue_green:P,purple_blue:U,purple_red:D,red_purple:M,yellow_green_blue:$,yellow_green:B,yellow_orange_brown:F,yellow_orange_red:H},De=Object.keys(Ue),Me={blues:J,greens:K,greys:L,oranges:N,purples:Q,reds:W,turbo:X,viridis:Y,inferno:Z,magma:ee,plasma:re,cividis:ne,warm:te,cool:oe,cubehelixDefault:ie,blue_green:ue,blue_purple:ae,green_blue:se,orange_red:ce,purple_blue_green:le,purple_blue:fe,purple_red:de,red_purple:pe,yellow_green_blue:me,yellow_green:he,yellow_orange_brown:ge,yellow_orange_red:ye},$e=qe({},Ce,Ve,Ue),Be=Object.keys($e),Fe=function(e){return Ge.includes(e)},He=function(e){return Te.includes(e)},Je=function(e){return De.includes(e)},Ke={rainbow:be,sinebow:ve},Le=qe({},Pe,Me,Ke),Ne=Object.keys(Le),Qe=function(e,r){if("function"==typeof e)return e;if(_e(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var n=we(r,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var t=function(r){return we(r,e.from)};if(Array.isArray(e.modifiers)){for(var o,i=[],u=function(){var e=o.value,r=e[0],n=e[1];if("brighter"===r)i.push((function(e){return e.brighter(n)}));else if("darker"===r)i.push((function(e){return e.darker(n)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");i.push((function(e){return e.opacity=n,e}))}},a=Se(e.modifiers);!(o=a()).done;)u();return 0===i.length?t:function(e){return i.reduce((function(e,r){return r(e)}),ke(t(e))).toString()}}return t}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},We=function(e,r){return Oe((function(){return Qe(e,r)}),[e,r])},Xe=ze.oneOfType([ze.func,ze.arrayOf(ze.string),ze.shape({scheme:ze.oneOf(Be).isRequired,size:ze.number}),ze.shape({datum:ze.string.isRequired}),ze.string]),Ye=ze.oneOfType([ze.string,ze.func,ze.shape({theme:ze.string.isRequired}),ze.shape({from:ze.string.isRequired,modifiers:ze.arrayOf(ze.array)})]),Ze={scheme:"turbo"},er=function(e,r){var n=e.scheme,t=void 0===n?Ze.scheme:n,o=e.minValue,i=e.maxValue,u=void 0!==o?o:r.min,a=void 0!==i?i:r.max;return Ae().domain([u,a]).interpolator(Le[t])},rr=function(e,r){return Oe((function(){return er(e,r)}),[e,r])},nr={scheme:"red_yellow_blue",divergeAt:.5},tr=function(e,r){var n=e.scheme,t=void 0===n?nr.scheme:n,o=e.divergeAt,i=void 0===o?nr.divergeAt:o,u=e.minValue,a=e.maxValue,s=void 0!==u?u:r.min,c=void 0!==a?a:r.max,l=[s,s+(c-s)/2,c],f=Le[t],d=.5-i;return je((function(e){return f(e+d)})).domain(l).clamp(!0)},or=function(e,r){return Oe((function(){return tr(e,r)}),[e,r])},ir={scheme:"turbo",steps:7},ur=function(e,r){var n=Ee().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)n.range(e.colors);else{var t=e.scheme||ir.scheme,o=void 0===e.steps?ir.steps:e.steps,i=Le[t],u=Array.from({length:o}).map((function(e,r){return i(r*(1/(o-1)))}));n.range(u)}return n},ar=function(e,r){return Oe((function(){return ur(e,r)}),[e,r])},sr=function(e,r){if(function(e){return"sequential"===e.type}(e))return er(e,r);if(function(e){return"diverging"===e.type}(e))return tr(e,r);if(function(e){return"quantize"===e.type}(e))return ur(e,r);throw new Error("Invalid continuous color scale config")},cr=function(e,r){return Oe((function(){return sr(e,r)}),[e,r])},lr=function(e,r){void 0===r&&(r=16);var n=e.domain();if("thresholds"in e){var t=[],o=xe().domain(n).range([0,1]);return e.range().forEach((function(r,n){var i=e.invertExtent(r),u=i[0],a=i[1];t.push({key:n+".0",offset:o(u),stopColor:r}),t.push({key:n+".1",offset:o(a),stopColor:r})})),t}var i=e.copy();return 2===n.length?i.domain([0,1]):3===n.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},fr=function(e,r){if("function"==typeof e)return e;var n="function"==typeof r?r:function(e){return we(e,r)};if(Array.isArray(e)){var t=Ie(e),o=function(e){return t(n(e))};return o.scale=t,o}if(_e(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return we(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(Fe(e.scheme)){var i=Ie($e[e.scheme]),u=function(e){return i(n(e))};return u.scale=i,u}if(He(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var a=Ie($e[e.scheme][e.size||11]),s=function(e){return a(n(e))};return s.scale=a,s}if(Je(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Ie($e[e.scheme][e.size||9]),l=function(e){return c(n(e))};return l.scale=c,l}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},dr=function(e,r){return Oe((function(){return fr(e,r)}),[e,r])};export{Ge as categoricalColorSchemeIds,Ce as categoricalColorSchemes,Ne as colorInterpolatorIds,Le as colorInterpolators,Be as colorSchemeIds,$e as colorSchemes,lr as computeContinuousColorScaleColorStops,Ke as cyclicalColorInterpolators,Pe as divergingColorInterpolators,nr as divergingColorScaleDefaults,Te as divergingColorSchemeIds,Ve as divergingColorSchemes,sr as getContinuousColorScale,tr as getDivergingColorScale,Qe as getInheritedColorGenerator,fr as getOrdinalColorScale,ur as getQuantizeColorScale,er as getSequentialColorScale,Ye as inheritedColorPropType,Fe as isCategoricalColorScheme,He as isDivergingColorScheme,Je as isSequentialColorScheme,Xe as ordinalColorsPropType,ir as quantizeColorScaleDefaults,Me as sequentialColorInterpolators,Ze as sequentialColorScaleDefaults,De as sequentialColorSchemeIds,Ue as sequentialColorSchemes,cr as useContinuousColorScale,or as useDivergingColorScale,We as useInheritedColor,dr as useOrdinalColorScale,ar as useQuantizeColorScale,rr as useSequentialColorScale};
//# sourceMappingURL=nivo-colors.es.js.map

@@ -1,2 +0,2 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("d3-scale-chromatic"),require("lodash/isPlainObject"),require("lodash/get"),require("react"),require("d3-color"),require("react-motion"),require("prop-types"),require("d3-scale")):"function"==typeof define&&define.amd?define(["exports","d3-scale-chromatic","lodash/isPlainObject","lodash/get","react","d3-color","react-motion","prop-types","d3-scale"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).nivo=e.nivo||{},e.d3,e["lodash/isPlainObject"],e["lodash/get"],e.React,e.d3,e.ReactMotion,e.PropTypes,e.d3)}(this,(function(e,r,t,n,o,i,l,u,a){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(t),d=s(n),f=s(u);function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function h(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:r.schemeCategory10,accent:r.schemeAccent,dark2:r.schemeDark2,paired:r.schemePaired,pastel1:r.schemePastel1,pastel2:r.schemePastel2,set1:r.schemeSet1,set2:r.schemeSet2,set3:r.schemeSet3},y=Object.keys(g),b={brown_blueGreen:r.schemeBrBG,purpleRed_green:r.schemePRGn,pink_yellowGreen:r.schemePiYG,purple_orange:r.schemePuOr,red_blue:r.schemeRdBu,red_grey:r.schemeRdGy,red_yellow_blue:r.schemeRdYlBu,red_yellow_green:r.schemeRdYlGn,spectral:r.schemeSpectral},v=Object.keys(b),_={brown_blueGreen:r.interpolateBrBG,purpleRed_green:r.interpolatePRGn,pink_yellowGreen:r.interpolatePiYG,purple_orange:r.interpolatePuOr,red_blue:r.interpolateRdBu,red_grey:r.interpolateRdGy,red_yellow_blue:r.interpolateRdYlBu,red_yellow_green:r.interpolateRdYlGn,spectral:r.interpolateSpectral},w={blues:r.schemeBlues,greens:r.schemeGreens,greys:r.schemeGreys,oranges:r.schemeOranges,purples:r.schemePurples,reds:r.schemeReds,blue_green:r.schemeBuGn,blue_purple:r.schemeBuPu,green_blue:r.schemeGnBu,orange_red:r.schemeOrRd,purple_blue_green:r.schemePuBuGn,purple_blue:r.schemePuBu,purple_red:r.schemePuRd,red_purple:r.schemeRdPu,yellow_green_blue:r.schemeYlGnBu,yellow_green:r.schemeYlGn,yellow_orange_brown:r.schemeYlOrBr,yellow_orange_red:r.schemeYlOrRd},C=Object.keys(w),S={blues:r.interpolateBlues,greens:r.interpolateGreens,greys:r.interpolateGreys,oranges:r.interpolateOranges,purples:r.interpolatePurples,reds:r.interpolateReds,turbo:r.interpolateTurbo,viridis:r.interpolateViridis,inferno:r.interpolateInferno,magma:r.interpolateMagma,plasma:r.interpolatePlasma,cividis:r.interpolateCividis,warm:r.interpolateWarm,cool:r.interpolateCool,cubehelixDefault:r.interpolateCubehelixDefault,blue_green:r.interpolateBuGn,blue_purple:r.interpolateBuPu,green_blue:r.interpolateGnBu,orange_red:r.interpolateOrRd,purple_blue_green:r.interpolatePuBuGn,purple_blue:r.interpolatePuBu,purple_red:r.interpolatePuRd,red_purple:r.interpolateRdPu,yellow_green_blue:r.interpolateYlGnBu,yellow_green:r.interpolateYlGn,yellow_orange_brown:r.interpolateYlOrBr,yellow_orange_red:r.interpolateYlOrRd},O=p({},g,b,w),G=Object.keys(O),R=function(e){return y.includes(e)},P=function(e){return v.includes(e)},B=function(e){return C.includes(e)},q={rainbow:r.interpolateRainbow,sinebow:r.interpolateSinebow},I=p({},_,S,q),j=Object.keys(I),z=function(e,r){if("function"==typeof e)return e;if(c.default(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var t=d.default(r,e.theme);if(void 0===t)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return t}}if(function(e){return void 0!==e.from}(e)){var n=function(r){return d.default(r,e.from)};if(Array.isArray(e.modifiers)){for(var o,l=[],u=function(){var e=o.value,r=e[0],t=e[1];if("brighter"===r)l.push((function(e){return e.brighter(t)}));else if("darker"===r)l.push((function(e){return e.darker(t)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");l.push((function(e){return e.opacity=t,e}))}},a=h(e.modifiers);!(o=a()).done;)u();return 0===l.length?n:function(e){return l.reduce((function(e,r){return r(e)}),i.rgb(n(e))).toString()}}return n}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},k=f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.string),f.default.shape({scheme:f.default.oneOf(G).isRequired,size:f.default.number}),f.default.shape({datum:f.default.string.isRequired}),f.default.string]),M=f.default.oneOfType([f.default.string,f.default.func,f.default.shape({theme:f.default.string.isRequired}),f.default.shape({from:f.default.string.isRequired,modifiers:f.default.arrayOf(f.default.array)})]),x={scheme:"turbo"},A=function(e,r){var t=e.scheme,n=void 0===t?x.scheme:t,o=e.minValue,i=e.maxValue,l=void 0!==o?o:r.min,u=void 0!==i?i:r.max;return a.scaleSequential().domain([l,u]).interpolator(I[n])},Y={scheme:"red_yellow_blue",divergeAt:.5},E=function(e,r){var t=e.scheme,n=void 0===t?Y.scheme:t,o=e.divergeAt,i=void 0===o?Y.divergeAt:o,l=e.minValue,u=e.maxValue,s=void 0!==l?l:r.min,c=void 0!==u?u:r.max,d=[s,s+(c-s)/2,c],f=I[n],p=.5-i;return a.scaleDiverging((function(e){return f(e+p)})).domain(d).clamp(!0)},D={scheme:"turbo",steps:7},T=function(e,r){var t=a.scaleQuantize().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)t.range(e.colors);else{var n=e.scheme||D.scheme,o=void 0===e.steps?D.steps:e.steps,i=I[n],l=Array.from({length:o}).map((function(e,r){return i(r*(1/(o-1)))}));t.range(l)}return t},V=function(e,r){if(function(e){return"sequential"===e.type}(e))return A(e,r);if(function(e){return"diverging"===e.type}(e))return E(e,r);if(function(e){return"quantize"===e.type}(e))return T(e,r);throw new Error("Invalid continuous color scale config")},Q=function(e,r){if("function"==typeof e)return e;var t="function"==typeof r?r:function(e){return d.default(e,r)};if(Array.isArray(e)){var n=a.scaleOrdinal(e),o=function(e){return n(t(e))};return o.scale=n,o}if(c.default(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return d.default(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(R(e.scheme)){var i=a.scaleOrdinal(O[e.scheme]),l=function(e){return i(t(e))};return l.scale=i,l}if(P(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var u=a.scaleOrdinal(O[e.scheme][e.size||11]),s=function(e){return u(t(e))};return s.scale=u,s}if(B(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var f=a.scaleOrdinal(O[e.scheme][e.size||9]),p=function(e){return f(t(e))};return p.scale=f,p}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}};e.categoricalColorSchemeIds=y,e.categoricalColorSchemes=g,e.colorInterpolatorIds=j,e.colorInterpolators=I,e.colorSchemeIds=G,e.colorSchemes=O,e.computeContinuousColorScaleColorStops=function(e,r){void 0===r&&(r=16);var t=e.domain();if("thresholds"in e){var n=[],o=a.scaleLinear().domain(t).range([0,1]);return e.range().forEach((function(r,t){var i=e.invertExtent(r),l=i[0],u=i[1];n.push({key:t+".0",offset:o(l),stopColor:r}),n.push({key:t+".1",offset:o(u),stopColor:r})})),n}var i=e.copy();return 2===t.length?i.domain([0,1]):3===t.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},e.cyclicalColorInterpolators=q,e.divergingColorInterpolators=_,e.divergingColorScaleDefaults=Y,e.divergingColorSchemeIds=v,e.divergingColorSchemes=b,e.getContinuousColorScale=V,e.getDivergingColorScale=E,e.getInheritedColorGenerator=z,e.getInterpolatedColor=function(e){var r=e.colorR,t=e.colorG,n=e.colorB;return"rgb("+Math.round(Math.max(r,0))+","+Math.round(Math.max(t,0))+","+Math.round(Math.max(n,0))+")"},e.getOrdinalColorScale=Q,e.getQuantizeColorScale=T,e.getSequentialColorScale=A,e.inheritedColorPropType=M,e.interpolateColor=function(e,r){var t=i.rgb(e);if(!r)return{colorR:t.r,colorG:t.g,colorB:t.b};var n=p({},r,{precision:1});return{colorR:l.spring(t.r,n),colorG:l.spring(t.g,n),colorB:l.spring(t.b,n)}},e.isCategoricalColorScheme=R,e.isDivergingColorScheme=P,e.isSequentialColorScheme=B,e.ordinalColorsPropType=k,e.quantizeColorScaleDefaults=D,e.sequentialColorInterpolators=S,e.sequentialColorScaleDefaults=x,e.sequentialColorSchemeIds=C,e.sequentialColorSchemes=w,e.useContinuousColorScale=function(e,r){return o.useMemo((function(){return V(e,r)}),[e,r])},e.useDivergingColorScale=function(e,r){return o.useMemo((function(){return E(e,r)}),[e,r])},e.useInheritedColor=function(e,r){return o.useMemo((function(){return z(e,r)}),[e,r])},e.useOrdinalColorScale=function(e,r){return o.useMemo((function(){return Q(e,r)}),[e,r])},e.useQuantizeColorScale=function(e,r){return o.useMemo((function(){return T(e,r)}),[e,r])},e.useSequentialColorScale=function(e,r){return o.useMemo((function(){return A(e,r)}),[e,r])},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("d3-scale-chromatic"),require("lodash/isPlainObject"),require("lodash/get"),require("react"),require("d3-color"),require("prop-types"),require("d3-scale")):"function"==typeof define&&define.amd?define(["exports","d3-scale-chromatic","lodash/isPlainObject","lodash/get","react","d3-color","prop-types","d3-scale"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).nivo=e.nivo||{},e.d3,e["lodash/isPlainObject"],e["lodash/get"],e.React,e.d3,e.PropTypes,e.d3)}(this,(function(e,r,n,t,o,i,l,u){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(n),c=a(t),d=a(l);function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function p(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function m(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return p(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:r.schemeCategory10,accent:r.schemeAccent,dark2:r.schemeDark2,paired:r.schemePaired,pastel1:r.schemePastel1,pastel2:r.schemePastel2,set1:r.schemeSet1,set2:r.schemeSet2,set3:r.schemeSet3},g=Object.keys(h),y={brown_blueGreen:r.schemeBrBG,purpleRed_green:r.schemePRGn,pink_yellowGreen:r.schemePiYG,purple_orange:r.schemePuOr,red_blue:r.schemeRdBu,red_grey:r.schemeRdGy,red_yellow_blue:r.schemeRdYlBu,red_yellow_green:r.schemeRdYlGn,spectral:r.schemeSpectral},b=Object.keys(y),v={brown_blueGreen:r.interpolateBrBG,purpleRed_green:r.interpolatePRGn,pink_yellowGreen:r.interpolatePiYG,purple_orange:r.interpolatePuOr,red_blue:r.interpolateRdBu,red_grey:r.interpolateRdGy,red_yellow_blue:r.interpolateRdYlBu,red_yellow_green:r.interpolateRdYlGn,spectral:r.interpolateSpectral},_={blues:r.schemeBlues,greens:r.schemeGreens,greys:r.schemeGreys,oranges:r.schemeOranges,purples:r.schemePurples,reds:r.schemeReds,blue_green:r.schemeBuGn,blue_purple:r.schemeBuPu,green_blue:r.schemeGnBu,orange_red:r.schemeOrRd,purple_blue_green:r.schemePuBuGn,purple_blue:r.schemePuBu,purple_red:r.schemePuRd,red_purple:r.schemeRdPu,yellow_green_blue:r.schemeYlGnBu,yellow_green:r.schemeYlGn,yellow_orange_brown:r.schemeYlOrBr,yellow_orange_red:r.schemeYlOrRd},w=Object.keys(_),C={blues:r.interpolateBlues,greens:r.interpolateGreens,greys:r.interpolateGreys,oranges:r.interpolateOranges,purples:r.interpolatePurples,reds:r.interpolateReds,turbo:r.interpolateTurbo,viridis:r.interpolateViridis,inferno:r.interpolateInferno,magma:r.interpolateMagma,plasma:r.interpolatePlasma,cividis:r.interpolateCividis,warm:r.interpolateWarm,cool:r.interpolateCool,cubehelixDefault:r.interpolateCubehelixDefault,blue_green:r.interpolateBuGn,blue_purple:r.interpolateBuPu,green_blue:r.interpolateGnBu,orange_red:r.interpolateOrRd,purple_blue_green:r.interpolatePuBuGn,purple_blue:r.interpolatePuBu,purple_red:r.interpolatePuRd,red_purple:r.interpolateRdPu,yellow_green_blue:r.interpolateYlGnBu,yellow_green:r.interpolateYlGn,yellow_orange_brown:r.interpolateYlOrBr,yellow_orange_red:r.interpolateYlOrRd},S=f({},h,y,_),O=Object.keys(S),P=function(e){return g.includes(e)},G=function(e){return b.includes(e)},R=function(e){return w.includes(e)},B={rainbow:r.interpolateRainbow,sinebow:r.interpolateSinebow},q=f({},v,C,B),I=Object.keys(q),j=function(e,r){if("function"==typeof e)return e;if(s.default(e)){if(function(e){return void 0!==e.theme}(e)){if(void 0===r)throw new Error("Unable to use color from theme as no theme was provided");var n=c.default(r,e.theme);if(void 0===n)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(e){return void 0!==e.from}(e)){var t=function(r){return c.default(r,e.from)};if(Array.isArray(e.modifiers)){for(var o,l=[],u=function(){var e=o.value,r=e[0],n=e[1];if("brighter"===r)l.push((function(e){return e.brighter(n)}));else if("darker"===r)l.push((function(e){return e.darker(n)}));else{if("opacity"!==r)throw new Error("Invalid color modifier: '"+r+"', must be one of: 'brighter', 'darker', 'opacity'");l.push((function(e){return e.opacity=n,e}))}},a=m(e.modifiers);!(o=a()).done;)u();return 0===l.length?t:function(e){return l.reduce((function(e,r){return r(e)}),i.rgb(t(e))).toString()}}return t}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},z=d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.string),d.default.shape({scheme:d.default.oneOf(O).isRequired,size:d.default.number}),d.default.shape({datum:d.default.string.isRequired}),d.default.string]),k=d.default.oneOfType([d.default.string,d.default.func,d.default.shape({theme:d.default.string.isRequired}),d.default.shape({from:d.default.string.isRequired,modifiers:d.default.arrayOf(d.default.array)})]),A={scheme:"turbo"},Y=function(e,r){var n=e.scheme,t=void 0===n?A.scheme:n,o=e.minValue,i=e.maxValue,l=void 0!==o?o:r.min,a=void 0!==i?i:r.max;return u.scaleSequential().domain([l,a]).interpolator(q[t])},x={scheme:"red_yellow_blue",divergeAt:.5},E=function(e,r){var n=e.scheme,t=void 0===n?x.scheme:n,o=e.divergeAt,i=void 0===o?x.divergeAt:o,l=e.minValue,a=e.maxValue,s=void 0!==l?l:r.min,c=void 0!==a?a:r.max,d=[s,s+(c-s)/2,c],f=q[t],p=.5-i;return u.scaleDiverging((function(e){return f(e+p)})).domain(d).clamp(!0)},D={scheme:"turbo",steps:7},M=function(e,r){var n=u.scaleQuantize().domain(e.domain||[r.min,r.max]).nice();if("colors"in e)n.range(e.colors);else{var t=e.scheme||D.scheme,o=void 0===e.steps?D.steps:e.steps,i=q[t],l=Array.from({length:o}).map((function(e,r){return i(r*(1/(o-1)))}));n.range(l)}return n},T=function(e,r){if(function(e){return"sequential"===e.type}(e))return Y(e,r);if(function(e){return"diverging"===e.type}(e))return E(e,r);if(function(e){return"quantize"===e.type}(e))return M(e,r);throw new Error("Invalid continuous color scale config")},V=function(e,r){if("function"==typeof e)return e;var n="function"==typeof r?r:function(e){return c.default(e,r)};if(Array.isArray(e)){var t=u.scaleOrdinal(e),o=function(e){return t(n(e))};return o.scale=t,o}if(s.default(e)){if(function(e){return void 0!==e.datum}(e))return function(r){return c.default(r,e.datum)};if(function(e){return void 0!==e.scheme}(e)){if(P(e.scheme)){var i=u.scaleOrdinal(S[e.scheme]),l=function(e){return i(n(e))};return l.scale=i,l}if(G(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var a=u.scaleOrdinal(S[e.scheme][e.size||11]),d=function(e){return a(n(e))};return d.scale=a,d}if(R(e.scheme)){if(void 0!==e.size&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var f=u.scaleOrdinal(S[e.scheme][e.size||9]),p=function(e){return f(n(e))};return p.scale=f,p}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}};e.categoricalColorSchemeIds=g,e.categoricalColorSchemes=h,e.colorInterpolatorIds=I,e.colorInterpolators=q,e.colorSchemeIds=O,e.colorSchemes=S,e.computeContinuousColorScaleColorStops=function(e,r){void 0===r&&(r=16);var n=e.domain();if("thresholds"in e){var t=[],o=u.scaleLinear().domain(n).range([0,1]);return e.range().forEach((function(r,n){var i=e.invertExtent(r),l=i[0],u=i[1];t.push({key:n+".0",offset:o(l),stopColor:r}),t.push({key:n+".1",offset:o(u),stopColor:r})})),t}var i=e.copy();return 2===n.length?i.domain([0,1]):3===n.length&&i.domain([0,.5,1]),i.ticks(r).map((function(e){return{key:""+e,offset:e,stopColor:""+i(e)}}))},e.cyclicalColorInterpolators=B,e.divergingColorInterpolators=v,e.divergingColorScaleDefaults=x,e.divergingColorSchemeIds=b,e.divergingColorSchemes=y,e.getContinuousColorScale=T,e.getDivergingColorScale=E,e.getInheritedColorGenerator=j,e.getOrdinalColorScale=V,e.getQuantizeColorScale=M,e.getSequentialColorScale=Y,e.inheritedColorPropType=k,e.isCategoricalColorScheme=P,e.isDivergingColorScheme=G,e.isSequentialColorScheme=R,e.ordinalColorsPropType=z,e.quantizeColorScaleDefaults=D,e.sequentialColorInterpolators=C,e.sequentialColorScaleDefaults=A,e.sequentialColorSchemeIds=w,e.sequentialColorSchemes=_,e.useContinuousColorScale=function(e,r){return o.useMemo((function(){return T(e,r)}),[e,r])},e.useDivergingColorScale=function(e,r){return o.useMemo((function(){return E(e,r)}),[e,r])},e.useInheritedColor=function(e,r){return o.useMemo((function(){return j(e,r)}),[e,r])},e.useOrdinalColorScale=function(e,r){return o.useMemo((function(){return V(e,r)}),[e,r])},e.useQuantizeColorScale=function(e,r){return o.useMemo((function(){return M(e,r)}),[e,r])},e.useSequentialColorScale=function(e,r){return o.useMemo((function(){return Y(e,r)}),[e,r])},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=nivo-colors.umd.js.map
export * from './schemes';
export * from './inheritedColor';
export * from './motion';
export * from './props';
export * from './scales';
//# sourceMappingURL=index.d.ts.map
{
"name": "@nivo/colors",
"version": "0.79.0",
"version": "0.79.1",
"license": "MIT",

@@ -27,4 +27,3 @@ "author": {

"d3-scale-chromatic": "^2.0.0",
"lodash": "^4.17.21",
"react-motion": "^0.5.2"
"lodash": "^4.17.21"
},

@@ -46,3 +45,3 @@ "devDependencies": {

},
"gitHead": "c9d8f198962d242872a0267e304f950eb57e2ec4"
"gitHead": "f0a673005e918b2e2d3e635c6f214aa088bac5e1"
}

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