pax_global_header00006660000000000000000000000064135653334410014521gustar00rootroot0000000000000052 comment=ec754d4df6f408a2304baab29cf8a62ecdd18dad d3-interpolate-1.4.0/000077500000000000000000000000001356533344100143555ustar00rootroot00000000000000d3-interpolate-1.4.0/.eslintrc.json000066400000000000000000000003421356533344100171500ustar00rootroot00000000000000{ "extends": "eslint:recommended", "parserOptions": { "sourceType": "module", "ecmaVersion": 8 }, "env": { "es6": true, "node": true, "browser": true }, "rules": { "no-cond-assign": 0 } } d3-interpolate-1.4.0/.gitignore000066400000000000000000000000771356533344100163510ustar00rootroot00000000000000*.sublime-workspace .DS_Store dist/ node_modules npm-debug.log d3-interpolate-1.4.0/LICENSE000066400000000000000000000027031356533344100153640ustar00rootroot00000000000000Copyright 2010-2016 Mike Bostock All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. d3-interpolate-1.4.0/README.md000066400000000000000000000627771356533344100156570ustar00rootroot00000000000000# d3-interpolate This module provides a variety of interpolation methods for blending between two values. Values may be numbers, colors, strings, arrays, or even deeply-nested objects. For example: ```js var i = d3.interpolateNumber(10, 20); i(0.0); // 10 i(0.2); // 12 i(0.5); // 15 i(1.0); // 20 ``` The returned function `i` is called an *interpolator*. Given a starting value *a* and an ending value *b*, it takes a parameter *t* in the domain [0, 1] and returns the corresponding interpolated value between *a* and *b*. An interpolator typically returns a value equivalent to *a* at *t* = 0 and a value equivalent to *b* at *t* = 1. You can interpolate more than just numbers. To find the perceptual midpoint between steelblue and brown: ```js d3.interpolateLab("steelblue", "brown")(0.5); // "rgb(142, 92, 109)" ``` Here’s a more elaborate example demonstrating type inference used by [interpolate](#interpolate): ```js var i = d3.interpolate({colors: ["red", "blue"]}, {colors: ["white", "black"]}); i(0.0); // {colors: ["rgb(255, 0, 0)", "rgb(0, 0, 255)"]} i(0.5); // {colors: ["rgb(255, 128, 128)", "rgb(0, 0, 128)"]} i(1.0); // {colors: ["rgb(255, 255, 255)", "rgb(0, 0, 0)"]} ``` Note that the generic value interpolator detects not only nested objects and arrays, but also color strings and numbers embedded in strings! ## Installing If you use NPM, `npm install d3-interpolate`. Otherwise, download the [latest release](https://github.com/d3/d3-interpolate/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-interpolate.v1.min.js) or as part of [D3](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported: ```html ``` ## API Reference # d3.interpolate(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/value.js), [Examples](https://observablehq.com/@d3/d3-interpolate) Returns an interpolator between the two arbitrary values *a* and *b*. The interpolator implementation is based on the type of the end value *b*, using the following algorithm: 1. If *b* is null, undefined or a boolean, use the constant *b*. 2. If *b* is a number, use [interpolateNumber](#interpolateNumber). 3. If *b* is a [color](https://github.com/d3/d3-color/blob/master/README.md#color) or a string coercible to a color, use [interpolateRgb](#interpolateRgb). 4. If *b* is a [date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date), use [interpolateDate](#interpolateDate). 5. If *b* is a string, use [interpolateString](#interpolateString). 6. If *b* is a [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) of numbers, use [interpolateNumberArray](#interpolateNumberArray). 7. If *b* is a generic [array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray), use [interpolateArray](#interpolateArray). 8. If *b* is coercible to a number, use [interpolateNumber](#interpolateNumber). 9. Use [interpolateObject](#interpolateObject). Based on the chosen interpolator, *a* is coerced to the suitable corresponding type. # d3.interpolateNumber(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/number.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumber) Returns an interpolator between the two numbers *a* and *b*. The returned interpolator is equivalent to: ```js function interpolator(t) { return a * (1 - t) + b * t; } ``` Caution: avoid interpolating to or from the number zero when the interpolator is used to generate a string. When very small values are stringified, they may be converted to scientific notation, which is an invalid attribute or style property value in older browsers. For example, the number `0.0000001` is converted to the string `"1e-7"`. This is particularly noticeable with interpolating opacity. To avoid scientific notation, start or end the transition at 1e-6: the smallest value that is not stringified in scientific notation. # d3.interpolateRound(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/round.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumber) Returns an interpolator between the two numbers *a* and *b*; the interpolator is similar to [interpolateNumber](#interpolateNumber), except it will round the resulting value to the nearest integer. # d3.interpolateString(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/string.js), [Examples](https://observablehq.com/@d3/d3-interpolatestring) Returns an interpolator between the two strings *a* and *b*. The string interpolator finds numbers embedded in *a* and *b*, where each number is of the form understood by JavaScript. A few examples of numbers that will be detected within a string: `-1`, `42`, `3.14159`, and `6.0221413e+23`. For each number embedded in *b*, the interpolator will attempt to find a corresponding number in *a*. If a corresponding number is found, a numeric interpolator is created using [interpolateNumber](#interpolateNumber). The remaining parts of the string *b* are used as a template: the static parts of the string *b* remain constant for the interpolation, with the interpolated numeric values embedded in the template. For example, if *a* is `"300 12px sans-serif"`, and *b* is `"500 36px Comic-Sans"`, two embedded numbers are found. The remaining static parts (of string *b*) are a space between the two numbers (`" "`), and the suffix (`"px Comic-Sans"`). The result of the interpolator at *t* = 0.5 is `"400 24px Comic-Sans"`. # d3.interpolateDate(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/date.js), [Examples](https://observablehq.com/@d3/d3-interpolatedate) Returns an interpolator between the two [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) *a* and *b*. Note: **no defensive copy** of the returned date is created; the same Date instance is returned for every evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). # d3.interpolateArray(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/array.js), [Examples](https://observablehq.com/@d3/d3-interpolateobject) Returns an interpolator between the two arrays *a* and *b*. If *b* is a typed array (e.g., Float64Array), [interpolateNumberArray](#interpolateNumberArray) is called instead. Internally, an array template is created that is the same length as *b*. For each element in *b*, if there exists a corresponding element in *a*, a generic interpolator is created for the two elements using [interpolate](#interpolate). If there is no such element, the static value from *b* is used in the template. Then, for the given parameter *t*, the template’s embedded interpolators are evaluated. The updated array template is then returned. For example, if *a* is the array `[0, 1]` and *b* is the array `[1, 10, 100]`, then the result of the interpolator for *t* = 0.5 is the array `[0.5, 5.5, 100]`. Note: **no defensive copy** of the template array is created; modifications of the returned array may adversely affect subsequent evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). # d3.interpolateNumberArray(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/numberArray.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumberarray) Returns an interpolator between the two arrays of numbers *a* and *b*. Internally, an array template is created that is the same type and length as *b*. For each element in *b*, if there exists a corresponding element in *a*, the values are directly interpolated in the array template. If there is no such element, the static value from *b* is copied. The updated array template is then returned. Note: For performance reasons, **no defensive copy** is made of the template array and the arguments *a* and *b*; modifications of these arrays may affect subsequent evaluation of the interpolator. # d3.interpolateObject(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/object.js), [Examples](https://observablehq.com/@d3/d3-interpolateobject) Returns an interpolator between the two objects *a* and *b*. Internally, an object template is created that has the same properties as *b*. For each property in *b*, if there exists a corresponding property in *a*, a generic interpolator is created for the two elements using [interpolate](#interpolate). If there is no such property, the static value from *b* is used in the template. Then, for the given parameter *t*, the template's embedded interpolators are evaluated and the updated object template is then returned. For example, if *a* is the object `{x: 0, y: 1}` and *b* is the object `{x: 1, y: 10, z: 100}`, the result of the interpolator for *t* = 0.5 is the object `{x: 0.5, y: 5.5, z: 100}`. Object interpolation is particularly useful for *dataspace interpolation*, where data is interpolated rather than attribute values. For example, you can interpolate an object which describes an arc in a pie chart, and then use [d3.arc](https://github.com/d3/d3-shape/blob/master/README.md#arc) to compute the new SVG path data. Note: **no defensive copy** of the template object is created; modifications of the returned object may adversely affect subsequent evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). # d3.interpolateTransformCss(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/transform/index.js#L62), [Examples](https://observablehq.com/@d3/d3-interpolatetransformcss) Returns an interpolator between the two 2D CSS transforms represented by *a* and *b*. Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated. This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition). # d3.interpolateTransformSvg(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/transform/index.js#L63), [Examples](https://observablehq.com/@d3/d3-interpolatetransformcss) Returns an interpolator between the two 2D SVG transforms represented by *a* and *b*. Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated. This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition). # d3.interpolateZoom(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/zoom.js), [Examples](https://observablehq.com/@d3/d3-interpolatezoom) Returns an interpolator between the two views *a* and *b* of a two-dimensional plane, based on [“Smooth and efficient zooming and panning”](http://www.win.tue.nl/~vanwijk/zoompan.pdf) by Jarke J. van Wijk and Wim A.A. Nuij. Each view is defined as an array of three numbers: *cx*, *cy* and *width*. The first two coordinates *cx*, *cy* represent the center of the viewport; the last coordinate *width* represents the size of the viewport. The returned interpolator exposes a *duration* property which encodes the recommended transition duration in milliseconds. This duration is based on the path length of the curved trajectory through *x,y* space. If you want a slower or faster transition, multiply this by an arbitrary scale factor (V as described in the original paper). # d3.interpolateDiscrete(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/discrete.js), [Examples](https://observablehq.com/@d3/d3-interpolatediscrete) Returns a discrete interpolator for the given array of *values*. The returned interpolator maps *t* in [0, 1 / *n*) to *values*[0], *t* in [1 / *n*, 2 / *n*) to *values*[1], and so on, where *n* = *values*.length. In effect, this is a lightweight [quantize scale](https://github.com/d3/d3-scale/blob/master/README.md#quantize-scales) with a fixed domain of [0, 1]. ### Sampling # d3.quantize(interpolator, n) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/d3-quantize) Returns *n* uniformly-spaced samples from the specified *interpolator*, where *n* is an integer greater than one. The first sample is always at *t* = 0, and the last sample is always at *t* = 1. This can be useful in generating a fixed number of samples from a given interpolator, such as to derive the range of a [quantize scale](https://github.com/d3/d3-scale/blob/master/README.md#quantize-scales) from a [continuous interpolator](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#interpolateWarm). Caution: this method will not work with interpolators that do not return defensive copies of their output, such as [d3.interpolateArray](#interpolateArray), [d3.interpolateDate](#interpolateDate) and [d3.interpolateObject](#interpolateObject). For those interpolators, you must wrap the interpolator and create a copy for each returned value. ### Color Spaces # d3.interpolateRgb(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js), [Examples](https://observablehq.com/@d3/working-with-color) rgb Or, with a corrected [gamma](#interpolate_gamma) of 2.2: rgbGamma Returns an RGB color space interpolator between the two colors *a* and *b* with a configurable [gamma](#interpolate_gamma). If the gamma is not specified, it defaults to 1.0. The colors *a* and *b* need not be in RGB; they will be converted to RGB using [d3.rgb](https://github.com/d3/d3-color/blob/master/README.md#rgb). The return value of the interpolator is an RGB string. # d3.interpolateRgbBasis(colors) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js#L54), [Examples](https://observablehq.com/@d3/working-with-color) Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to [RGB color space](https://github.com/d3/d3-color/blob/master/README.md#rgb). Implicit control points are generated such that the interpolator returns *colors*[0] at *t* = 0 and *colors*[*colors*.length - 1] at *t* = 1. Opacity interpolation is not currently supported. See also [d3.interpolateBasis](#interpolateBasis), and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples. # d3.interpolateRgbBasisClosed(colors) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js#L55), [Examples](https://observablehq.com/@d3/working-with-color) Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to [RGB color space](https://github.com/d3/d3-color/blob/master/README.md#rgb). The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around *t* in [0,1]; this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported. See also [d3.interpolateBasisClosed](#interpolateBasisClosed), and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples. # d3.interpolateHsl(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hsl.js), [Examples](https://observablehq.com/@d3/working-with-color) hsl Returns an HSL color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in HSL; they will be converted to HSL using [d3.hsl](https://github.com/d3/d3-color/blob/master/README.md#hsl). If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. # d3.interpolateHslLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hsl.js#L21), [Examples](https://observablehq.com/@d3/working-with-color) hslLong Like [interpolateHsl](#interpolateHsl), but does not use the shortest path between hues. # d3.interpolateLab(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/lab.js), [Examples](https://observablehq.com/@d3/working-with-color) lab Returns a [CIELAB color space](https://en.wikipedia.org/wiki/Lab_color_space#CIELAB) interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in CIELAB; they will be converted to CIELAB using [d3.lab](https://github.com/d3/d3-color/blob/master/README.md#lab). The return value of the interpolator is an RGB string. # d3.interpolateHcl(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hcl.js), [Examples](https://observablehq.com/@d3/working-with-color) hcl Returns a [CIELChab color space](https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_representation:_CIELCh_or_CIEHLC) interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in CIELChab; they will be converted to CIELChab using [d3.hcl](https://github.com/d3/d3-color/blob/master/README.md#hcl). If either color’s hue or chroma is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. # d3.interpolateHclLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hcl.js#L21), [Examples](https://observablehq.com/@d3/working-with-color) hclLong Like [interpolateHcl](#interpolateHcl), but does not use the shortest path between hues. # d3.interpolateCubehelix(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/cubehelix.js), [Examples](https://observablehq.com/@d3/working-with-color) cubehelix Or, with a [gamma](#interpolate_gamma) of 3.0 to emphasize high-intensity values: cubehelixGamma Returns a Cubehelix color space interpolator between the two colors *a* and *b* using a configurable [gamma](#interpolate_gamma). If the gamma is not specified, it defaults to 1.0. The colors *a* and *b* need not be in Cubehelix; they will be converted to Cubehelix using [d3.cubehelix](https://github.com/d3/d3-color/blob/master/README.md#cubehelix). If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. # d3.interpolateCubehelixLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/cubehelix.js#L29), [Examples](https://observablehq.com/@d3/working-with-color) cubehelixLong Or, with a [gamma](#interpolate_gamma) of 3.0 to emphasize high-intensity values: cubehelixGammaLong Like [interpolateCubehelix](#interpolateCubehelix), but does not use the shortest path between hues. # interpolate.gamma(gamma) Given that *interpolate* is one of [interpolateRgb](#interpolateRgb), [interpolateCubehelix](#interpolateCubehelix) or [interpolateCubehelixLong](#interpolateCubehelixLong), returns a new interpolator factory of the same type using the specified *gamma*. For example, to interpolate from purple to orange with a gamma of 2.2 in RGB space: ```js var interpolator = d3.interpolateRgb.gamma(2.2)("purple", "orange"); ``` See Eric Brasseur’s article, [Gamma error in picture scaling](https://web.archive.org/web/20160112115812/http://www.4p8.com/eric.brasseur/gamma.html), for more on gamma correction. # d3.interpolateHue(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hue.js), [Examples](https://observablehq.com/@d3/working-with-color) Returns an interpolator between the two hue angles *a* and *b*. If either hue is NaN, the opposing value is used. The shortest path between hues is used. The return value of the interpolator is a number in [0, 360). ### Splines Whereas standard interpolators blend from a starting value *a* at *t* = 0 to an ending value *b* at *t* = 1, spline interpolators smoothly blend multiple input values for *t* in [0,1] using piecewise polynomial functions. Only cubic uniform nonrational [B-splines](https://en.wikipedia.org/wiki/B-spline) are currently supported, also known as basis splines. # d3.interpolateBasis(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/basis.js), [Examples](https://observablehq.com/@d3/d3-interpolatebasis) Returns a uniform nonrational B-spline interpolator through the specified array of *values*, which must be numbers. Implicit control points are generated such that the interpolator returns *values*[0] at *t* = 0 and *values*[*values*.length - 1] at *t* = 1. See also [d3.curveBasis](https://github.com/d3/d3-shape/blob/master/README.md#curveBasis). # d3.interpolateBasisClosed(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/basisClosed.js), [Examples](https://observablehq.com/@d3/d3-interpolatebasis) Returns a uniform nonrational B-spline interpolator through the specified array of *values*, which must be numbers. The control points are implicitly repeated such that the resulting one-dimensional spline has cyclical C² continuity when repeated around *t* in [0,1]. See also [d3.curveBasisClosed](https://github.com/d3/d3-shape/blob/master/README.md#curveBasisClosed). ### Piecewise # d3.piecewise(interpolate, values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/piecewise.js), [Examples](https://observablehq.com/@d3/d3-piecewise) Returns a piecewise interpolator, composing interpolators for each adjacent pair of *values*. The returned interpolator maps *t* in [0, 1 / (*n* - 1)] to *interpolate*(*values*[0], *values*[1]), *t* in [1 / (*n* - 1), 2 / (*n* - 1)] to *interpolate*(*values*[1], *values*[2]), and so on, where *n* = *values*.length. In effect, this is a lightweight [linear scale](https://github.com/d3/d3-scale/blob/master/README.md#linear-scales). For example, to blend through red, green and blue: ```js var interpolate = d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"]); ``` d3-interpolate-1.4.0/d3-interpolate.sublime-project000066400000000000000000000005241356533344100222360ustar00rootroot00000000000000{ "folders": [ { "path": ".", "file_exclude_patterns": ["*.sublime-workspace"], "folder_exclude_patterns": ["dist"] } ], "build_systems": [ { "name": "yarn test", "cmd": ["yarn", "test"], "file_regex": "\\((...*?):([0-9]*):([0-9]*)\\)", "working_dir": "$project_path" } ] } d3-interpolate-1.4.0/img/000077500000000000000000000000001356533344100151315ustar00rootroot00000000000000d3-interpolate-1.4.0/img/cubehelix.png000066400000000000000000000126761356533344100176230ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V /IDATxAv0dNg B`U_y,7c|?g]em]=?z;sw>=Yg~߹=''>_3~|Y5Y=֗-wg˭3lg+9G5.{/=g=vԧ9zGM;>t~}QYbկYwLqT\5oe٫u j0:>}[m}=.=?_Y}ws{׃z+<ͳyO<9~y=.o}ӧ}G綮y|{]mM56Z7uyg ~{~o=㡾~z~Y<}.ϱ|:sum}g/go][՚3+!@ @/  @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @?PuY IENDB`d3-interpolate-1.4.0/img/cubehelixGamma.png000066400000000000000000000126741356533344100205640ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V -IDATxR0d?g,ˑ,[y-^?.s?oy/k/{3{Zyں|ѻzowg;ܯK^}]^?5ozrz}{ҫgZ{g<_Yu/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxn9@;_?wHIqCN8(xC}|ϷQ?c9k6Xc}?.{7oggǾqLjkǞN}}{w3W_s~bǓz=.gu-{]voXssϷ9c͹{= @h( @T : @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ }Jmw6UIENDB`d3-interpolate-1.4.0/img/cubehelixLong.png000066400000000000000000000131371356533344100204340ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxٮ8@;_?wU%HrP2ZH\vv6ؘߵm~׫sG}w>n|w[3[#Zιzf{̎a_59}e0f<-GuN?[L}6|ivۿ՞1pz\evw}=Gnn̽quvcncN|zok3߼_1VW?(uǖy%ybL~46s8z26cz:o_uϧ9Vms߾yq߯_:ι_ܿ<߮qcur_~l}}nw}v[s/ncs}=nog}zz>|n?ǟ<l?ϩGkPzǢ=^s!^_n߮cslsYk=؞/}+zQ4eso/>xSmgc}1#@ @ ^@@ @"S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @~nѻFkIENDB`d3-interpolate-1.4.0/img/hcl.png000066400000000000000000000130551356533344100164110ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxn0к_?oE%q-n3D_U:zsٞ^gO9{ޚ2k]7;_{^; zw=j?2g{wYku;ky;?eX܃;ߙo6~t8>۲OsƳ}Nj^Ʒl;{Zw\___dy}?o_=C[^+36O٧jw:~M{痘V}soʟey`weǙylcXP[_>cZ ںcw-{]|﷏աkctּveM/O^6:ڬ;vN_߿2~ݞsǯ{sZwrʹeyw=nޱ۞on{7^~qmem`ZW:.gu6neܓY|;wÇ @  @ P< @!^H#A @ @ @@He @ @@s @ " 4R @ @x!T @/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxr6PIo7c[] Ѥ:ow')Ag7˯˯r}\RZk-k}\:ԗg[/{:smqiw{53kyx?3޷]g5~}v]|ν\ek׹5Vso5][׷ ~׹>o`מ5mOgݸ6^6}Ny|^;9ۚ2훧}g]|tcn\cwzxV=Ӿ=|37'b:uXyj7޹Nk{q/G_Ιݾ 5Gώp=7nGn׃#o^׺k5Zk-?Ǎ|̏qʹgu2nVkn׍ھakmj;v]Jѵ=v̞Gky~ٙwwg][(~}v=;|ޜSo%{mvgc~ @ @ @@D! @ @ h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @  @ @@/$ @ @O  @ @ D@Ha @ @@ @ " I0 @ S @$R @ @hB)  @h @B4x! @4xj @!D  @<5@ @ ^H"A @>,IENDB`d3-interpolate-1.4.0/img/hsl.png000066400000000000000000000126561356533344100164370ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxR0P=_pgS~ٯo/o/v>]^{C̸u|?׵7g{y9_W>ǯw{(ʳcZRK׾wV;˫}~f/}>3~,Wg{{yk=ן{Pe\7_h4~}w75}^e_곏}y|h]2vlvvc-zY\jq?֔olv=w{v޻-5woGϔOq}̷{v8}ona~)K'ןg[G߹GkJ܎,/o-[n{,LJr~4^-0 @ @| @ @*  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @ @BF* @ @ @@He @ @@3 @B  @xf @!^H#A @  @ @ D@ i2 @  @x!T @<3@ @/ @ @g @ " 4R @uyIENDB`d3-interpolate-1.4.0/img/hslLong.png000066400000000000000000000131141356533344100172450ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATxn:к_/「,)Yv/S"E&ǯ~,_6N׷ۋc}sUZ{<f{kG38k=3g}g~~ysϟ~`W}ck03u{uۅoW}몗x^7^Y?,kںv8ߟfz^y+|W_a6]ŵqiqϞN.9u|xq˷FΙ{6Yk۾|3?}ޟyplYor'B}/=u:ita}Z;\g=}WkәKfﴖkg{|ڳy~8we)g|qxX[y3Op}EcӿW'dyޭm|j4| @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ /  @t x= @" BA @n{~'@ @@P( @ - uO @  @ @B @ @@=? @ @ ^( @{ @D@  @^tO @xP @ @[@랟  @ D/IENDB`d3-interpolate-1.4.0/img/lab.png000066400000000000000000000133061356533344100164000ustar00rootroot00000000000000PNG  IHDRxih iCCPICC ProfileHPSϽBc**!JbG\ *"TV",*X#}o{3ߜ||䜙 _fi,A=*: 8)a2AAw}l_%Nd!d!| _5VegyAg3-?ϽssBd 8~GlCF#lcsy["Jb"됑g0--} Ou8/drD<-s{p35vo PG$ ]ٳt?.0=,' }l S])X|[`Az>/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V 7IDATx6 lX4Fֻxr͵]+^m~\%mmcܼ-ܣOocssŎ^5~5-FmkXk~߯Xz׺#~;?=k*Ǵ>ޢiϛ{kd9صh Yk=yͷgsg1ڿFio\c޲ulcqñEߞٶ=9ڢ1Y m{kum]d=F=,mϹݜv9u{wk>ގXϞ/u~C b,pNRXgs#.pfJwQ^ (}cZbo,ZYIa>=Da'xxp|~&?5hToQ>3;Tnr8X'H? VϞ+_#r-I3x,cCwn'}OKb.$Y15|bNrvpf%df:fi TFX_o+xP$ 2B٢QT"Jڀ*@PM.T&jEStG Rt ݋AOc(%Da8U|L1ӊ|b4냍&cbw`a!(v p@Ý>IxU9 sY s4AE'؄5]jB:a0M$adfb xD"H$.iBL!}&KX\K&'P(J %RO@yB$F3c6{#Nw_!#^,~Rk SbDD]IIdd+/pRRRl*TU'U>s/2tWz*KPSRQU M먇7? jj$jјT \٨@eu@OkJ[G;R{v 9NN#]nn-=^!A}XJ?ILl`m58d0d13V5"e5ӌsۍߘhĘ13njejZmL,׬읹9˼bE[KÖVV[zYX m4mlmJlshw} ?R^,Yzɨ#ӱq؉tiY͙\EÅRU57S7[۔znGǀgg/u/WׄZn eQϘ]G +{/ | %\,,d]H_(5tehC0]auÅ=SEQ&Q룮E+Ds;bp1151<_6k{g˯PXJ̕'0qq q_*d<#<~:zvac'8&%u}aM_pܫlҮ*>=}YuDuO?(|ׅ7(5jb 8dTLk.l-–?|߉'Ni*oAmk&ړڇ;;:};{Z132gv%;;s.d7yў=/D];pK^.x+Wm_oկmmw v -:{7/bܺv{;wݍ;|}od?~QcOT[OF_ױggU׿0qzk|岗c_!G7t"jb̻~34c驂O>~%u}h&mf0 81wP0Ql s9YP@&r -8k\la!(3|qO33uM033}hf[5}3?,l5iTXtXML:com.adobe.xmp 888 105 *V IDATx˖* PX?r֮Aʀߎa,kپlAn{^io9.ӹ}{;mm;g_ٶ_#r~.沷GWPcZg{mm{vyܖG1{x߱V{m͘庻uWI .ۙXs]gObn}:Q̶Vw=o}imy͘m{z޷}lY?s͵w7i1/{۟3mﵼg[}{8ݷ _w9Ww֦u6Lk۳z>As~Okw1%NM5MSv_vlYj[1ǡ#ztW7K:pZ;6)f[xVK'ٿLs/s&2 (lw4: ʖ._-ʮ6:22N!o55l,a:{[9tРçC׬6miCfϝiSQ3a.;piQ3>fEΰhi }~~KIY>3epnJd pVZD/i^$,cFlo\)=J&yH(xa0=tt?i>+'Bl6f8:['T>pO+TBd3PA @bh*R~NCPtF7g)"sa&‘"g¹p .+p3|<ma"^H$#"d R#H҆t!7 ahDa8LVL)ӌ b0߰T:eac<2l>[m^`q8gspF\;7*xS >gGaGE& B10B N"XEl# 'H$C )JZO*!5.ޒd#9'#ɟ( e!ELFSQRT;5MF^>~XȰd2kedee^ee=d˞!R(g %ǖ[#W&wZܸD>C~  > \< hME6ҪhhÊ8ECEbb11%%[hJeJg$tn@g'h4g˜9s>()+')(7*(VaTiQyQ5Q S]z@K5E5g5Z 갺zJ~B}5^j55S5wkբijvkzPbx0%NƘXBG{BP'JgN#].S7Ywn^*zD}~^.1 Z * s Q܌2*n㌙i{M`;2)tiL`Vivǜbac^o>hA`bj;vfignYeJ*jUkku-ZV׶Il6u}w7؏:9$8;a*2C[Wk8~rwv:sg %ͫ7vp2\\JܴnnOuݹ#G=^yZz<.^vrr&+i%f%ge*UW X]Zcڼծ'O[ Emؖ.oeEw69o:g͖}[p Z~zGK~ܖg;p;;ntY[$_[4+xWn,sض^^^IIPI>};})M)(,k,W/Ra?w 5|n_EsAeaO~bTWZ]XFP# s;~d{=\/=h1c ~}"DIɆSʛhMP汖Ik\kmmMXRsFLYϑ坛<{~]Pǒc/ xe<_qrטZ_onצ7Z{{wp[[ݎ};ܻ{}?ău =*~7%ރO"< =/yOOGFY?;3;|/ѫS=;6Zzַ*okپ>ć*k?1?u}<2 KWm=̘EVANNM 8;@MOBK;QB=4Q)K`iCY6ӵ(~| ɉ_fО9ŧCPc[s W"LBOYiTXtXML:com.adobe.xmp 888 105 *V8IDATxMs0ѫ,zY8 3PQ!+Y?>j|T=~FQ5Ʊύ^i5vn稪céwg\|EuW9?ˉj92? T{w\y7cacưד֛wvŬfvc!uˇ(,cpW\T?}MiN\kfYn\5?y}#:Hڿ~oKqY|tΟ9]N4w€|_v~z/ BBzj/W /^d3-/.test(key)), output: { file: `dist/${meta.name}.js`, name: "d3", format: "umd", indent: false, extend: true, banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) }, plugins: [] }; export default [ config, { ...config, output: { ...config.output, file: `dist/${meta.name}.min.js` }, plugins: [ ...config.plugins, terser({ output: { preamble: config.output.banner } }) ] } ]; d3-interpolate-1.4.0/src/000077500000000000000000000000001356533344100151445ustar00rootroot00000000000000d3-interpolate-1.4.0/src/array.js000066400000000000000000000010341356533344100166160ustar00rootroot00000000000000import value from "./value.js"; import numberArray, {isNumberArray} from "./numberArray.js"; export default function(a, b) { return (isNumberArray(b) ? numberArray : genericArray)(a, b); } export function genericArray(a, b) { var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i; for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]); for (; i < nb; ++i) c[i] = b[i]; return function(t) { for (i = 0; i < na; ++i) c[i] = x[i](t); return c; }; } d3-interpolate-1.4.0/src/basis.js000066400000000000000000000011301356533344100165760ustar00rootroot00000000000000export function basis(t1, v0, v1, v2, v3) { var t2 = t1 * t1, t3 = t2 * t1; return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; } export default function(values) { var n = values.length - 1; return function(t) { var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t - i / n) * n, v0, v1, v2, v3); }; } d3-interpolate-1.4.0/src/basisClosed.js000066400000000000000000000005531356533344100177400ustar00rootroot00000000000000import {basis} from "./basis.js"; export default function(values) { var n = values.length; return function(t) { var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; return basis((t - i / n) * n, v0, v1, v2, v3); }; } d3-interpolate-1.4.0/src/color.js000066400000000000000000000012741356533344100166240ustar00rootroot00000000000000import constant from "./constant.js"; function linear(a, d) { return function(t) { return a + t * d; }; } function exponential(a, b, y) { return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { return Math.pow(a + t * b, y); }; } export function hue(a, b) { var d = b - a; return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a); } export function gamma(y) { return (y = +y) === 1 ? nogamma : function(a, b) { return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a); }; } export default function nogamma(a, b) { var d = b - a; return d ? linear(a, d) : constant(isNaN(a) ? b : a); } d3-interpolate-1.4.0/src/constant.js000066400000000000000000000001101356533344100173230ustar00rootroot00000000000000export default function(x) { return function() { return x; }; } d3-interpolate-1.4.0/src/cubehelix.js000066400000000000000000000013731356533344100174560ustar00rootroot00000000000000import {cubehelix as colorCubehelix} from "d3-color"; import color, {hue} from "./color.js"; function cubehelix(hue) { return (function cubehelixGamma(y) { y = +y; function cubehelix(start, end) { var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h), s = color(start.s, end.s), l = color(start.l, end.l), opacity = color(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(Math.pow(t, y)); start.opacity = opacity(t); return start + ""; }; } cubehelix.gamma = cubehelixGamma; return cubehelix; })(1); } export default cubehelix(hue); export var cubehelixLong = cubehelix(color); d3-interpolate-1.4.0/src/date.js000066400000000000000000000002201356533344100164110ustar00rootroot00000000000000export default function(a, b) { var d = new Date; return a = +a, b = +b, function(t) { return d.setTime(a * (1 - t) + b * t), d; }; } d3-interpolate-1.4.0/src/discrete.js000066400000000000000000000002321356533344100173010ustar00rootroot00000000000000export default function(range) { var n = range.length; return function(t) { return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; }; } d3-interpolate-1.4.0/src/hcl.js000066400000000000000000000010461356533344100162510ustar00rootroot00000000000000import {hcl as colorHcl} from "d3-color"; import color, {hue} from "./color.js"; function hcl(hue) { return function(start, end) { var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h), c = color(start.c, end.c), l = color(start.l, end.l), opacity = color(start.opacity, end.opacity); return function(t) { start.h = h(t); start.c = c(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } export default hcl(hue); export var hclLong = hcl(color); d3-interpolate-1.4.0/src/hsl.js000066400000000000000000000010461356533344100162710ustar00rootroot00000000000000import {hsl as colorHsl} from "d3-color"; import color, {hue} from "./color.js"; function hsl(hue) { return function(start, end) { var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h), s = color(start.s, end.s), l = color(start.l, end.l), opacity = color(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } export default hsl(hue); export var hslLong = hsl(color); d3-interpolate-1.4.0/src/hue.js000066400000000000000000000002621356533344100162630ustar00rootroot00000000000000import {hue} from "./color.js"; export default function(a, b) { var i = hue(+a, +b); return function(t) { var x = i(t); return x - 360 * Math.floor(x / 360); }; } d3-interpolate-1.4.0/src/index.js000066400000000000000000000025651356533344100166210ustar00rootroot00000000000000export {default as interpolate} from "./value.js"; export {default as interpolateArray} from "./array.js"; export {default as interpolateBasis} from "./basis.js"; export {default as interpolateBasisClosed} from "./basisClosed.js"; export {default as interpolateDate} from "./date.js"; export {default as interpolateDiscrete} from "./discrete.js"; export {default as interpolateHue} from "./hue.js"; export {default as interpolateNumber} from "./number.js"; export {default as interpolateNumberArray} from "./numberArray.js"; export {default as interpolateObject} from "./object.js"; export {default as interpolateRound} from "./round.js"; export {default as interpolateString} from "./string.js"; export {interpolateTransformCss, interpolateTransformSvg} from "./transform/index.js"; export {default as interpolateZoom} from "./zoom.js"; export {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from "./rgb.js"; export {default as interpolateHsl, hslLong as interpolateHslLong} from "./hsl.js"; export {default as interpolateLab} from "./lab.js"; export {default as interpolateHcl, hclLong as interpolateHclLong} from "./hcl.js"; export {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from "./cubehelix.js"; export {default as piecewise} from "./piecewise.js"; export {default as quantize} from "./quantize.js"; d3-interpolate-1.4.0/src/lab.js000066400000000000000000000007021356533344100162370ustar00rootroot00000000000000import {lab as colorLab} from "d3-color"; import color from "./color.js"; export default function lab(start, end) { var l = color((start = colorLab(start)).l, (end = colorLab(end)).l), a = color(start.a, end.a), b = color(start.b, end.b), opacity = color(start.opacity, end.opacity); return function(t) { start.l = l(t); start.a = a(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } d3-interpolate-1.4.0/src/number.js000066400000000000000000000001561356533344100167740ustar00rootroot00000000000000export default function(a, b) { return a = +a, b = +b, function(t) { return a * (1 - t) + b * t; }; } d3-interpolate-1.4.0/src/numberArray.js000066400000000000000000000005141356533344100177710ustar00rootroot00000000000000export default function(a, b) { if (!b) b = []; var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i; return function(t) { for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t; return c; }; } export function isNumberArray(x) { return ArrayBuffer.isView(x) && !(x instanceof DataView); } d3-interpolate-1.4.0/src/object.js000066400000000000000000000006111356533344100167460ustar00rootroot00000000000000import value from "./value.js"; export default function(a, b) { var i = {}, c = {}, k; if (a === null || typeof a !== "object") a = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { if (k in a) { i[k] = value(a[k], b[k]); } else { c[k] = b[k]; } } return function(t) { for (k in i) c[k] = i[k](t); return c; }; } d3-interpolate-1.4.0/src/piecewise.js000066400000000000000000000004661356533344100174650ustar00rootroot00000000000000export default function piecewise(interpolate, values) { var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); while (i < n) I[i] = interpolate(v, v = values[++i]); return function(t) { var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); return I[i](t - i); }; } d3-interpolate-1.4.0/src/quantize.js000066400000000000000000000002431356533344100173410ustar00rootroot00000000000000export default function(interpolator, n) { var samples = new Array(n); for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); return samples; } d3-interpolate-1.4.0/src/rgb.js000066400000000000000000000024211356533344100162530ustar00rootroot00000000000000import {rgb as colorRgb} from "d3-color"; import basis from "./basis.js"; import basisClosed from "./basisClosed.js"; import nogamma, {gamma} from "./color.js"; export default (function rgbGamma(y) { var color = gamma(y); function rgb(start, end) { var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); return function(t) { start.r = r(t); start.g = g(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } rgb.gamma = rgbGamma; return rgb; })(1); function rgbSpline(spline) { return function(colors) { var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color; for (i = 0; i < n; ++i) { color = colorRgb(colors[i]); r[i] = color.r || 0; g[i] = color.g || 0; b[i] = color.b || 0; } r = spline(r); g = spline(g); b = spline(b); color.opacity = 1; return function(t) { color.r = r(t); color.g = g(t); color.b = b(t); return color + ""; }; }; } export var rgbBasis = rgbSpline(basis); export var rgbBasisClosed = rgbSpline(basisClosed); d3-interpolate-1.4.0/src/round.js000066400000000000000000000001721356533344100166310ustar00rootroot00000000000000export default function(a, b) { return a = +a, b = +b, function(t) { return Math.round(a * (1 - t) + b * t); }; } d3-interpolate-1.4.0/src/string.js000066400000000000000000000033411356533344100170110ustar00rootroot00000000000000import number from "./number.js"; var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); function zero(b) { return function() { return b; }; } function one(b) { return function(t) { return b(t) + ""; }; } export default function(a, b) { var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b am, // current match in a bm, // current match in b bs, // string preceding current number in b, if any i = -1, // index in s s = [], // string constants and placeholders q = []; // number interpolators // Coerce inputs to strings. a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b. while ((am = reA.exec(a)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi) { // a string precedes the next number in b bs = b.slice(bi, bs); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match if (s[i]) s[i] += bm; // coalesce with previous string else s[++i] = bm; } else { // interpolate non-matching numbers s[++i] = null; q.push({i: i, x: number(am, bm)}); } bi = reB.lastIndex; } // Add remains of b. if (bi < b.length) { bs = b.slice(bi); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } // Special optimization for only a single match. // Otherwise, interpolate each of the numbers and rejoin the string. return s.length < 2 ? (q[0] ? one(q[0].x) : zero(b)) : (b = q.length, function(t) { for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); return s.join(""); }); } d3-interpolate-1.4.0/src/transform/000077500000000000000000000000001356533344100171575ustar00rootroot00000000000000d3-interpolate-1.4.0/src/transform/decompose.js000066400000000000000000000012401356533344100214700ustar00rootroot00000000000000var degrees = 180 / Math.PI; export var identity = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; export default function(a, b, c, d, e, f) { var scaleX, scaleY, skewX; if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e, translateY: f, rotate: Math.atan2(b, a) * degrees, skewX: Math.atan(skewX) * degrees, scaleX: scaleX, scaleY: scaleY }; } d3-interpolate-1.4.0/src/transform/index.js000066400000000000000000000040261356533344100206260ustar00rootroot00000000000000import number from "../number.js"; import {parseCss, parseSvg} from "./parse.js"; function interpolateTransform(parse, pxComma, pxParen, degParen) { function pop(s) { return s.length ? s.pop() + " " : ""; } function translate(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)}); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } function rotate(a, b, s, q) { if (a !== b) { if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number(a, b)}); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a, b, s, q) { if (a !== b) { q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number(a, b)}); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } } function scale(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)}); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } return function(a, b) { var s = [], // string constants and placeholders q = []; // number interpolators a = parse(a), b = parse(b); translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); rotate(a.rotate, b.rotate, s, q); skewX(a.skewX, b.skewX, s, q); scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); a = b = null; // gc return function(t) { var i = -1, n = q.length, o; while (++i < n) s[(o = q[i]).i] = o.x(t); return s.join(""); }; }; } export var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)"); export var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")"); d3-interpolate-1.4.0/src/transform/parse.js000066400000000000000000000017271356533344100206360ustar00rootroot00000000000000import decompose, {identity} from "./decompose.js"; var cssNode, cssRoot, cssView, svgNode; export function parseCss(value) { if (value === "none") return identity; if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView; cssNode.style.transform = value; value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"); cssRoot.removeChild(cssNode); value = value.slice(7, -1).split(","); return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]); } export function parseSvg(value) { if (value == null) return identity; if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); svgNode.setAttribute("transform", value); if (!(value = svgNode.transform.baseVal.consolidate())) return identity; value = value.matrix; return decompose(value.a, value.b, value.c, value.d, value.e, value.f); } d3-interpolate-1.4.0/src/value.js000066400000000000000000000014461356533344100166230ustar00rootroot00000000000000import {color} from "d3-color"; import rgb from "./rgb.js"; import {genericArray} from "./array.js"; import date from "./date.js"; import number from "./number.js"; import object from "./object.js"; import string from "./string.js"; import constant from "./constant.js"; import numberArray, {isNumberArray} from "./numberArray.js"; export default function(a, b) { var t = typeof b, c; return b == null || t === "boolean" ? constant(b) : (t === "number" ? number : t === "string" ? ((c = color(b)) ? (b = c, rgb) : string) : b instanceof color ? rgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : number)(a, b); } d3-interpolate-1.4.0/src/zoom.js000066400000000000000000000025531356533344100164730ustar00rootroot00000000000000var rho = Math.SQRT2, rho2 = 2, rho4 = 4, epsilon2 = 1e-12; function cosh(x) { return ((x = Math.exp(x)) + 1 / x) / 2; } function sinh(x) { return ((x = Math.exp(x)) - 1 / x) / 2; } function tanh(x) { return ((x = Math.exp(2 * x)) - 1) / (x + 1); } // p0 = [ux0, uy0, w0] // p1 = [ux1, uy1, w1] export default function(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; // Special case for u0 ≅ u1. if (d2 < epsilon2) { S = Math.log(w1 / w0) / rho; i = function(t) { return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S) ]; } } // General case. else { var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); S = (r1 - r0) / rho; i = function(t) { var s = t * S, coshr0 = cosh(r0), u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / cosh(rho * s + r0) ]; } } i.duration = S * 1000; return i; } d3-interpolate-1.4.0/test/000077500000000000000000000000001356533344100153345ustar00rootroot00000000000000d3-interpolate-1.4.0/test/array-test.js000066400000000000000000000035651356533344100177760ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateArray(a, b) interpolates defined elements in a and b", function(test) { test.deepEqual(interpolate.interpolateArray([2, 12], [4, 24])(0.5), [3, 18]); test.end(); }); tape("interpolateArray(a, b) interpolates nested objects and arrays", function(test) { test.deepEqual(interpolate.interpolateArray([[2, 12]], [[4, 24]])(0.5), [[3, 18]]); test.deepEqual(interpolate.interpolateArray([{foo: [2, 12]}], [{foo: [4, 24]}])(0.5), [{foo: [3, 18]}]); test.end(); }); tape("interpolateArray(a, b) ignores elements in a that are not in b", function(test) { test.deepEqual(interpolate.interpolateArray([2, 12, 12], [4, 24])(0.5), [3, 18]); test.end(); }); tape("interpolateArray(a, b) uses constant elements in b that are not in a", function(test) { test.deepEqual(interpolate.interpolateArray([2, 12], [4, 24, 12])(0.5), [3, 18, 12]); test.end(); }); tape("interpolateArray(a, b) treats undefined as an empty array", function(test) { test.deepEqual(interpolate.interpolateArray(undefined, [2, 12])(0.5), [2, 12]); test.deepEqual(interpolate.interpolateArray([2, 12], undefined)(0.5), []); test.deepEqual(interpolate.interpolateArray(undefined, undefined)(0.5), []); test.end(); }); tape("interpolateArray(a, b) interpolates array-like objects", function(test) { var array = new Float64Array(2), args = (function() { return arguments; })(2, 12); array[0] = 2; array[1] = 12; test.deepEqual(interpolate.interpolateArray(array, [4, 24])(0.5), [3, 18]); test.deepEqual(interpolate.interpolateArray(args, [4, 24])(0.5), [3, 18]); test.end(); }); tape("interpolateArray(a, b) gives exact ends for t=0 and t=1", function(test) { var a = [2e+42], b = [335]; test.deepEqual(interpolate.interpolateArray(a, b)(1), b); test.deepEqual(interpolate.interpolateArray(a, b)(0), a); test.end(); }); d3-interpolate-1.4.0/test/cubehelix-test.js000066400000000000000000000077511356533344100206310ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateCubehelix(a, b) converts a and b to Cubehelix colors", function(test) { test.equal(interpolate.interpolateCubehelix("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateCubehelix("steelblue", color.hcl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateCubehelix("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateCubehelix(a, b) interpolates in Cubehelix and returns an RGB string", function(test) { test.equal(interpolate.interpolateCubehelix("steelblue", "#f00")(0.2), "rgb(88, 100, 218)"); test.equal(interpolate.interpolateCubehelix("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(88, 100, 218, 0.84)"); test.end(); }); tape("interpolateCubehelix.gamma(3)(a, b) returns the expected values", function(test) { test.equal(interpolate.interpolateCubehelix.gamma(3)("steelblue", "#f00")(0.2), "rgb(96, 107, 228)"); test.end(); }); tape("interpolateCubehelix.gamma(g) coerces the specified gamma to a number", function(test) { test.equal(interpolate.interpolateCubehelix.gamma({valueOf: function() { return 3; }})("steelblue", "#f00")(0.2), "rgb(96, 107, 228)"); test.end(); }); tape("interpolateCubehelix(a, b) is equivalent to interpolateCubehelix.gamma(1)(a, b)", function(test) { var i0 = interpolate.interpolateCubehelix.gamma(1)("purple", "orange"), i1 = interpolate.interpolateCubehelix("purple", "orange"); test.equal(i1(0.0), i0(0.0)); test.equal(i1(0.2), i0(0.2)); test.equal(i1(0.4), i0(0.4)); test.equal(i1(0.6), i0(0.6)); test.equal(i1(0.8), i0(0.8)); test.equal(i1(1.0), i0(1.0)); test.end(); }); tape("interpolateCubehelix(a, b) uses the shortest path when interpolating hue difference greater than 180°", function(test) { var i = interpolate.interpolateCubehelix("purple", "orange"); test.equal(i(0.0), "rgb(128, 0, 128)"); test.equal(i(0.2), "rgb(208, 1, 127)"); test.equal(i(0.4), "rgb(255, 17, 93)"); test.equal(i(0.6), "rgb(255, 52, 43)"); test.equal(i(0.8), "rgb(255, 105, 5)"); test.equal(i(1.0), "rgb(255, 165, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateCubehelix("#f60", color.cubehelix(NaN, NaN, 0))(0.5), "rgb(162, 41, 0)"); test.equal(interpolate.interpolateCubehelix("#6f0", color.cubehelix(NaN, NaN, 0))(0.5), "rgb(3, 173, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateCubehelix(color.cubehelix(NaN, NaN, 0), "#f60")(0.5), "rgb(162, 41, 0)"); test.equal(interpolate.interpolateCubehelix(color.cubehelix(NaN, NaN, 0), "#6f0")(0.5), "rgb(3, 173, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses a’s chroma when b’s chroma is undefined", function(test) { test.equal(interpolate.interpolateCubehelix("#ccc", color.cubehelix(NaN, NaN, 0))(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateCubehelix("#f00", color.cubehelix(NaN, NaN, 0))(0.5), "rgb(147, 0, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses b’s chroma when a’s chroma is undefined", function(test) { test.equal(interpolate.interpolateCubehelix(color.cubehelix(NaN, NaN, 0), "#ccc")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateCubehelix(color.cubehelix(NaN, NaN, 0), "#f00")(0.5), "rgb(147, 0, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses b’s luminance when a’s luminance is undefined", function(test) { test.equal(interpolate.interpolateCubehelix(null, color.cubehelix(20, 1.5, 0.5))(0.5), "rgb(248, 93, 0)"); test.end(); }); tape("interpolateCubehelix(a, b) uses a’s luminance when b’s luminance is undefined", function(test) { test.equal(interpolate.interpolateCubehelix(color.cubehelix(20, 1.5, 0.5), null)(0.5), "rgb(248, 93, 0)"); test.end(); }); d3-interpolate-1.4.0/test/cubehelixLong-test.js000066400000000000000000000100711356533344100214360ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateCubehelixLong(a, b) converts a and b to Cubehelix colors", function(test) { test.equal(interpolate.interpolateCubehelixLong("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateCubehelixLong("steelblue", color.hcl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateCubehelixLong("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateCubehelixLong(a, b) interpolates in Cubehelix and returns an RGB string", function(test) { test.equal(interpolate.interpolateCubehelixLong("steelblue", "#f00")(0.2), "rgb(88, 100, 218)"); test.equal(interpolate.interpolateCubehelixLong("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(88, 100, 218, 0.84)"); test.end(); }); tape("interpolateCubehelixLong.gamma(3)(a, b) returns the expected values", function(test) { test.equal(interpolate.interpolateCubehelixLong.gamma(3)("steelblue", "#f00")(0.2), "rgb(96, 107, 228)"); test.end(); }); tape("interpolateCubehelixLong.gamma(g) coerces the specified gamma to a number", function(test) { test.equal(interpolate.interpolateCubehelixLong.gamma({valueOf: function() { return 3; }})("steelblue", "#f00")(0.2), "rgb(96, 107, 228)"); test.end(); }); tape("interpolateCubehelixLong(a, b) is equivalent to interpolateCubehelixLong.gamma(1)(a, b)", function(test) { var i0 = interpolate.interpolateCubehelixLong.gamma(1)("purple", "orange"), i1 = interpolate.interpolateCubehelixLong("purple", "orange"); test.equal(i1(0.0), i0(0.0)); test.equal(i1(0.2), i0(0.2)); test.equal(i1(0.4), i0(0.4)); test.equal(i1(0.6), i0(0.6)); test.equal(i1(0.8), i0(0.8)); test.equal(i1(1.0), i0(1.0)); test.end(); }); tape("interpolateCubehelixLong(a, b) uses the longest path when interpolating hue difference greater than 180°", function(test) { var i = interpolate.interpolateCubehelixLong("purple", "orange"); test.equal(i(0.0), "rgb(128, 0, 128)"); test.equal(i(0.2), "rgb(63, 54, 234)"); test.equal(i(0.4), "rgb(0, 151, 217)"); test.equal(i(0.6), "rgb(0, 223, 83)"); test.equal(i(0.8), "rgb(79, 219, 0)"); test.equal(i(1.0), "rgb(255, 165, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong("#f60", color.hcl(NaN, NaN, 0))(0.5), "rgb(162, 41, 0)"); test.equal(interpolate.interpolateCubehelixLong("#6f0", color.hcl(NaN, NaN, 0))(0.5), "rgb(3, 173, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong(color.hcl(NaN, NaN, 0), "#f60")(0.5), "rgb(162, 41, 0)"); test.equal(interpolate.interpolateCubehelixLong(color.hcl(NaN, NaN, 0), "#6f0")(0.5), "rgb(3, 173, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses a’s chroma when b’s chroma is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong("#ccc", color.hcl(NaN, NaN, 0))(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateCubehelixLong("#f00", color.hcl(NaN, NaN, 0))(0.5), "rgb(147, 0, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses b’s chroma when a’s chroma is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong(color.hcl(NaN, NaN, 0), "#ccc")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateCubehelixLong(color.hcl(NaN, NaN, 0), "#f00")(0.5), "rgb(147, 0, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses b’s luminance when a’s luminance is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong(null, color.cubehelix(20, 1.5, 0.5))(0.5), "rgb(248, 93, 0)"); test.end(); }); tape("interpolateCubehelixLong(a, b) uses a’s luminance when b’s luminance is undefined", function(test) { test.equal(interpolate.interpolateCubehelixLong(color.cubehelix(20, 1.5, 0.5), null)(0.5), "rgb(248, 93, 0)"); test.end(); }); d3-interpolate-1.4.0/test/date-test.js000066400000000000000000000017661356533344100175760ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateDate(a, b) interpolates between two dates a and b", function(test) { var i = interpolate.interpolateDate(new Date(2000, 0, 1), new Date(2000, 0, 2)); test.equal(i(0.0) instanceof Date, true); test.equal(i(0.5) instanceof Date, true); test.equal(i(1.0) instanceof Date, true); test.strictEqual(+i(0.2), +new Date(2000, 0, 1, 4, 48)); test.strictEqual(+i(0.4), +new Date(2000, 0, 1, 9, 36)); test.end(); }); tape("interpolateDate(a, b) reuses the output datea", function(test) { var i = interpolate.interpolateDate(new Date(2000, 0, 1), new Date(2000, 0, 2)); test.strictEqual(i(0.2), i(0.4)); test.end(); }); tape("interpolateDate(a, b) gives exact ends for t=0 and t=1", function(test) { var a = new Date(1e8 * 24 * 60 * 60 * 1000), b = new Date(-1e8 * 24 * 60 * 60 * 1000 +1); test.equal(+interpolate.interpolateDate(a, b)(1), +b); test.equal(+interpolate.interpolateDate(a, b)(0), +a); test.end(); }); d3-interpolate-1.4.0/test/discrete-test.js000066400000000000000000000016231356533344100204530ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateDiscrete(values)(t) returns the expected values", function(test) { var i = interpolate.interpolateDiscrete("abcde".split("")); test.strictEqual(i(-1), "a"); test.strictEqual(i(0), "a"); test.strictEqual(i(0.19), "a"); test.strictEqual(i(0.21), "b"); test.strictEqual(i(1), "e"); test.end(); }); tape("interpolateDiscrete([0, 1]) is equivalent to similar to Math.round", function(test) { var i = interpolate.interpolateDiscrete([0, 1]); test.strictEqual(i(-1), 0); test.strictEqual(i(0), 0); test.strictEqual(i(0.49), 0); test.strictEqual(i(0.51), 1); test.strictEqual(i(1), 1); test.strictEqual(i(2), 1); test.end(); }); tape("interpolateDiscrete(…)(NaN) returned undefined", function(test) { var i = interpolate.interpolateDiscrete([0, 1]); test.strictEqual(i(NaN), undefined); test.end(); }); d3-interpolate-1.4.0/test/hcl-test.js000066400000000000000000000104631356533344100174210ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateHcl(a, b) converts a and b to HCL colors", function(test) { test.equal(interpolate.interpolateHcl("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateHcl("steelblue", color.hcl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateHcl("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateHcl(a, b) interpolates in HCL and returns an RGB string", function(test) { test.equal(interpolate.interpolateHcl("steelblue", "#f00")(0.2), "rgb(106, 121, 206)"); test.equal(interpolate.interpolateHcl("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(106, 121, 206, 0.84)"); test.end(); }); tape("interpolateHcl(a, b) uses the shortest path when interpolating hue difference greater than 180°", function(test) { var i = interpolate.interpolateHcl(color.hcl(10, 50, 50), color.hcl(350, 50, 50)); test.equal(i(0.0), "rgb(194, 78, 107)"); test.equal(i(0.2), "rgb(194, 78, 113)"); test.equal(i(0.4), "rgb(193, 78, 118)"); test.equal(i(0.6), "rgb(192, 78, 124)"); test.equal(i(0.8), "rgb(191, 78, 130)"); test.equal(i(1.0), "rgb(189, 79, 136)"); test.end(); }); tape("interpolateHcl(a, b) uses the shortest path when interpolating hue difference greater than 360°", function(test) { var i = interpolate.interpolateHcl(color.hcl(10, 50, 50), color.hcl(380, 50, 50)); test.equal(i(0.0), "rgb(194, 78, 107)"); test.equal(i(0.2), "rgb(194, 78, 104)"); test.equal(i(0.4), "rgb(194, 79, 101)"); test.equal(i(0.6), "rgb(194, 79, 98)"); test.equal(i(0.8), "rgb(194, 80, 96)"); test.equal(i(1.0), "rgb(194, 80, 93)"); test.end(); }); tape("interpolateHcl(a, b) uses the shortest path when interpolating hue difference greater than 540°", function(test) { var i = interpolate.interpolateHcl(color.hcl(10, 50, 50), color.hcl(710, 50, 50)); test.equal(i(0.0), "rgb(194, 78, 107)"); test.equal(i(0.2), "rgb(194, 78, 113)"); test.equal(i(0.4), "rgb(193, 78, 118)"); test.equal(i(0.6), "rgb(192, 78, 124)"); test.equal(i(0.8), "rgb(191, 78, 130)"); test.equal(i(1.0), "rgb(189, 79, 136)"); test.end(); }); tape("interpolateHcl(a, b) uses the shortest path when interpolating hue difference greater than 720°", function(test) { var i = interpolate.interpolateHcl(color.hcl(10, 50, 50), color.hcl(740, 50, 50)); test.equal(i(0.0), "rgb(194, 78, 107)"); test.equal(i(0.2), "rgb(194, 78, 104)"); test.equal(i(0.4), "rgb(194, 79, 101)"); test.equal(i(0.6), "rgb(194, 79, 98)"); test.equal(i(0.8), "rgb(194, 80, 96)"); test.equal(i(1.0), "rgb(194, 80, 93)"); test.end(); }); tape("interpolateHcl(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateHcl("#f60", color.hcl(NaN, NaN, 0))(0.5), "rgb(155, 0, 0)"); test.equal(interpolate.interpolateHcl("#6f0", color.hcl(NaN, NaN, 0))(0.5), "rgb(0, 129, 0)"); test.end(); }); tape("interpolateHcl(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateHcl(color.hcl(NaN, NaN, 0), "#f60")(0.5), "rgb(155, 0, 0)"); test.equal(interpolate.interpolateHcl(color.hcl(NaN, NaN, 0), "#6f0")(0.5), "rgb(0, 129, 0)"); test.end(); }); tape("interpolateHcl(a, b) uses a’s chroma when b’s chroma is undefined", function(test) { test.equal(interpolate.interpolateHcl("#ccc", color.hcl(NaN, NaN, 0))(0.5), "rgb(97, 97, 97)"); test.equal(interpolate.interpolateHcl("#f00", color.hcl(NaN, NaN, 0))(0.5), "rgb(166, 0, 0)"); test.end(); }); tape("interpolateHcl(a, b) uses b’s chroma when a’s chroma is undefined", function(test) { test.equal(interpolate.interpolateHcl(color.hcl(NaN, NaN, 0), "#ccc")(0.5), "rgb(97, 97, 97)"); test.equal(interpolate.interpolateHcl(color.hcl(NaN, NaN, 0), "#f00")(0.5), "rgb(166, 0, 0)"); test.end(); }); tape("interpolateHcl(a, b) uses b’s luminance when a’s luminance is undefined", function(test) { test.equal(interpolate.interpolateHcl(null, color.hcl(20, 80, 50))(0.5), "rgb(230, 13, 79)"); test.end(); }); tape("interpolateHcl(a, b) uses a’s luminance when b’s luminance is undefined", function(test) { test.equal(interpolate.interpolateHcl(color.hcl(20, 80, 50), null)(0.5), "rgb(230, 13, 79)"); test.end(); }); d3-interpolate-1.4.0/test/hclLong-test.js000066400000000000000000000057251356533344100202460ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateHclLong(a, b) converts a and b to HCL colors", function(test) { test.equal(interpolate.interpolateHclLong("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateHclLong("steelblue", color.hcl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateHclLong("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateHclLong(a, b) interpolates in HCL and returns an RGB string", function(test) { test.equal(interpolate.interpolateHclLong("steelblue", "#f00")(0.2), "rgb(0, 144, 169)"); test.equal(interpolate.interpolateHclLong("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(0, 144, 169, 0.84)"); test.end(); }); tape("interpolateHclLong(a, b) does not use the shortest path when interpolating hue", function(test) { var i = interpolate.interpolateHclLong(color.hcl(10, 50, 50), color.hcl(350, 50, 50)); test.equal(i(0.0), "rgb(194, 78, 107)"); test.equal(i(0.2), "rgb(151, 111, 28)"); test.equal(i(0.4), "rgb(35, 136, 68)"); test.equal(i(0.6), "rgb(0, 138, 165)"); test.equal(i(0.8), "rgb(91, 116, 203)"); test.equal(i(1.0), "rgb(189, 79, 136)"); test.end(); }); tape("interpolateHclLong(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateHclLong("#f60", color.hcl(NaN, NaN, 0))(0.5), "rgb(155, 0, 0)"); test.equal(interpolate.interpolateHclLong("#6f0", color.hcl(NaN, NaN, 0))(0.5), "rgb(0, 129, 0)"); test.end(); }); tape("interpolateHclLong(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateHclLong(color.hcl(NaN, NaN, 0), "#f60")(0.5), "rgb(155, 0, 0)"); test.equal(interpolate.interpolateHclLong(color.hcl(NaN, NaN, 0), "#6f0")(0.5), "rgb(0, 129, 0)"); test.end(); }); tape("interpolateHclLong(a, b) uses a’s chroma when b’s chroma is undefined", function(test) { test.equal(interpolate.interpolateHclLong("#ccc", color.hcl(NaN, NaN, 0))(0.5), "rgb(97, 97, 97)"); test.equal(interpolate.interpolateHclLong("#f00", color.hcl(NaN, NaN, 0))(0.5), "rgb(166, 0, 0)"); test.end(); }); tape("interpolateHclLong(a, b) uses b’s chroma when a’s chroma is undefined", function(test) { test.equal(interpolate.interpolateHclLong(color.hcl(NaN, NaN, 0), "#ccc")(0.5), "rgb(97, 97, 97)"); test.equal(interpolate.interpolateHclLong(color.hcl(NaN, NaN, 0), "#f00")(0.5), "rgb(166, 0, 0)"); test.end(); }); tape("interpolateHclLong(a, b) uses b’s luminance when a’s luminance is undefined", function(test) { test.equal(interpolate.interpolateHclLong(null, color.hcl(20, 80, 50))(0.5), "rgb(230, 13, 79)"); test.end(); }); tape("interpolateHclLong(a, b) uses a’s luminance when b’s luminance is undefined", function(test) { test.equal(interpolate.interpolateHclLong(color.hcl(20, 80, 50), null)(0.5), "rgb(230, 13, 79)"); test.end(); }); d3-interpolate-1.4.0/test/hsl-test.js000066400000000000000000000053771356533344100174510ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateHsl(a, b) converts a and b to HSL colors", function(test) { test.equal(interpolate.interpolateHsl("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateHsl("steelblue", color.hsl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateHsl("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateHsl(a, b) interpolates in HSL and returns an RGB string", function(test) { test.equal(interpolate.interpolateHsl("steelblue", "#f00")(0.2), "rgb(56, 61, 195)"); test.equal(interpolate.interpolateHsl("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(56, 61, 195, 0.84)"); test.end(); }); tape("interpolateHsl(a, b) uses the shortest path when interpolating hue", function(test) { var i = interpolate.interpolateHsl("hsl(10,50%,50%)", "hsl(350,50%,50%)"); test.equal(i(0.0), "rgb(191, 85, 64)"); test.equal(i(0.2), "rgb(191, 77, 64)"); test.equal(i(0.4), "rgb(191, 68, 64)"); test.equal(i(0.6), "rgb(191, 64, 68)"); test.equal(i(0.8), "rgb(191, 64, 77)"); test.equal(i(1.0), "rgb(191, 64, 85)"); test.end(); }); tape("interpolateHsl(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateHsl("#f60", "#000")(0.5), "rgb(128, 51, 0)"); test.equal(interpolate.interpolateHsl("#6f0", "#fff")(0.5), "rgb(179, 255, 128)"); test.end(); }); tape("interpolateHsl(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateHsl("#000", "#f60")(0.5), "rgb(128, 51, 0)"); test.equal(interpolate.interpolateHsl("#fff", "#6f0")(0.5), "rgb(179, 255, 128)"); test.end(); }); tape("interpolateHsl(a, b) uses a’s saturation when b’s saturation is undefined", function(test) { test.equal(interpolate.interpolateHsl("#ccc", "#000")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateHsl("#f00", "#000")(0.5), "rgb(128, 0, 0)"); test.end(); }); tape("interpolateHsl(a, b) uses b’s saturation when a’s saturation is undefined", function(test) { test.equal(interpolate.interpolateHsl("#000", "#ccc")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateHsl("#000", "#f00")(0.5), "rgb(128, 0, 0)"); test.end(); }); tape("interpolateHsl(a, b) uses b’s lightness when a’s lightness is undefined", function(test) { test.equal(interpolate.interpolateHsl(null, color.hsl(20, 1.0, 0.5))(0.5), "rgb(255, 85, 0)"); test.end(); }); tape("interpolateHsl(a, b) uses a’s lightness when b’s lightness is undefined", function(test) { test.equal(interpolate.interpolateHsl(color.hsl(20, 1.0, 0.5), null)(0.5), "rgb(255, 85, 0)"); test.end(); }); d3-interpolate-1.4.0/test/hslLong-test.js000066400000000000000000000055611356533344100202640ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateHslLong(a, b) converts a and b to HSL colors", function(test) { test.equal(interpolate.interpolateHslLong("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateHslLong("steelblue", color.hsl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateHslLong("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateHslLong(a, b) interpolates in HSL and returns an RGB string", function(test) { test.equal(interpolate.interpolateHslLong("steelblue", "#f00")(0.2), "rgb(56, 195, 162)"); test.equal(interpolate.interpolateHslLong("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(56, 195, 162, 0.84)"); test.end(); }); tape("interpolateHslLong(a, b) does not use the shortest path when interpolating hue", function(test) { var i = interpolate.interpolateHslLong("hsl(10,50%,50%)", "hsl(350,50%,50%)"); test.equal(i(0.0), "rgb(191, 85, 64)"); test.equal(i(0.2), "rgb(153, 191, 64)"); test.equal(i(0.4), "rgb(64, 191, 119)"); test.equal(i(0.6), "rgb(64, 119, 191)"); test.equal(i(0.8), "rgb(153, 64, 191)"); test.equal(i(1.0), "rgb(191, 64, 85)"); test.end(); }); tape("interpolateHslLong(a, b) uses a’s hue when b’s hue is undefined", function(test) { test.equal(interpolate.interpolateHslLong("#f60", "#000")(0.5), "rgb(128, 51, 0)"); test.equal(interpolate.interpolateHslLong("#6f0", "#fff")(0.5), "rgb(179, 255, 128)"); test.end(); }); tape("interpolateHslLong(a, b) uses b’s hue when a’s hue is undefined", function(test) { test.equal(interpolate.interpolateHslLong("#000", "#f60")(0.5), "rgb(128, 51, 0)"); test.equal(interpolate.interpolateHslLong("#fff", "#6f0")(0.5), "rgb(179, 255, 128)"); test.end(); }); tape("interpolateHslLong(a, b) uses a’s saturation when b’s saturation is undefined", function(test) { test.equal(interpolate.interpolateHslLong("#ccc", "#000")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateHslLong("#f00", "#000")(0.5), "rgb(128, 0, 0)"); test.end(); }); tape("interpolateHslLong(a, b) uses b’s saturation when a’s saturation is undefined", function(test) { test.equal(interpolate.interpolateHslLong("#000", "#ccc")(0.5), "rgb(102, 102, 102)"); test.equal(interpolate.interpolateHslLong("#000", "#f00")(0.5), "rgb(128, 0, 0)"); test.end(); }); tape("interpolateHslLong(a, b) uses b’s lightness when a’s lightness is undefined", function(test) { test.equal(interpolate.interpolateHslLong(null, color.hsl(20, 1.0, 0.5))(0.5), "rgb(255, 85, 0)"); test.end(); }); tape("interpolateHslLong(a, b) uses a’s lightness when b’s lightness is undefined", function(test) { test.equal(interpolate.interpolateHslLong(color.hsl(20, 1.0, 0.5), null)(0.5), "rgb(255, 85, 0)"); test.end(); }); d3-interpolate-1.4.0/test/hue-test.js000066400000000000000000000025171356533344100174350ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateHue(a, b) interpolate numbers", function(test) { var i = interpolate.interpolateHue("10", "20"); test.strictEqual(i(0.0), 10); test.strictEqual(i(0.2), 12); test.strictEqual(i(0.4), 14); test.strictEqual(i(0.6), 16); test.strictEqual(i(0.8), 18); test.strictEqual(i(1.0), 20); test.end(); }); tape("interpolateHue(a, b) returns a if b is NaN", function(test) { var i = interpolate.interpolateHue(10, NaN); test.equal(i(0.0), 10); test.equal(i(0.5), 10); test.equal(i(1.0), 10); test.end(); }); tape("interpolateHue(a, b) returns b if a is NaN", function(test) { var i = interpolate.interpolateHue(NaN, 20); test.equal(i(0.0), 20); test.equal(i(0.5), 20); test.equal(i(1.0), 20); test.end(); }); tape("interpolateHue(a, b) returns NaN if both a and b are NaN", function(test) { var i = interpolate.interpolateHue(NaN, NaN); test.equal(isNaN(i(0.0)), true); test.equal(isNaN(i(0.5)), true); test.equal(isNaN(i(1.0)), true); test.end(); }); tape("interpolateHue(a, b) uses the shortest path", function(test) { var i = interpolate.interpolateHue(10, 350); test.equal(i(0.0), 10); test.equal(i(0.2), 6); test.equal(i(0.4), 2); test.equal(i(0.6), 358); test.equal(i(0.8), 354); test.equal(i(1.0), 350); test.end(); }); d3-interpolate-1.4.0/test/inDelta.js000066400000000000000000000004171356533344100172540ustar00rootroot00000000000000var tape = require("tape"); tape.Test.prototype.inDelta = function(actual, expected) { this._assert(expected - 1e-6 < actual && actual < expected + 1e-6, { message: "should be in delta", operator: "inDelta", actual: actual, expected: expected }); }; d3-interpolate-1.4.0/test/lab-test.js000066400000000000000000000037471356533344100174200ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateLab(a, b) converts a and b to Lab colors", function(test) { test.equal(interpolate.interpolateLab("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateLab("steelblue", color.hsl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateLab("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateLab(a, b) interpolates in Lab and returns an RGB string", function(test) { test.equal(interpolate.interpolateLab("steelblue", "#f00")(0.2), "rgb(134, 120, 146)"); test.equal(interpolate.interpolateLab("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(134, 120, 146, 0.84)"); test.end(); }); tape("interpolateLab(a, b) uses b’s channel value when a’s channel value is undefined", function(test) { test.equal(interpolate.interpolateLab(null, color.lab(20, 40, 60))(0.5), color.lab(20, 40, 60) + ""); test.equal(interpolate.interpolateLab(color.lab(NaN, 20, 40), color.lab(60, 80, 100))(0.5), color.lab(60, 50, 70) + ""); test.equal(interpolate.interpolateLab(color.lab(20, NaN, 40), color.lab(60, 80, 100))(0.5), color.lab(40, 80, 70) + ""); test.equal(interpolate.interpolateLab(color.lab(20, 40, NaN), color.lab(60, 80, 100))(0.5), color.lab(40, 60, 100) + ""); test.end(); }); tape("interpolateLab(a, b) uses a’s channel value when b’s channel value is undefined", function(test) { test.equal(interpolate.interpolateLab(color.lab(20, 40, 60), null)(0.5), color.lab(20, 40, 60) + ""); test.equal(interpolate.interpolateLab(color.lab(60, 80, 100), color.lab(NaN, 20, 40))(0.5), color.lab(60, 50, 70) + ""); test.equal(interpolate.interpolateLab(color.lab(60, 80, 100), color.lab(20, NaN, 40))(0.5), color.lab(40, 80, 70) + ""); test.equal(interpolate.interpolateLab(color.lab(60, 80, 100), color.lab(20, 40, NaN))(0.5), color.lab(40, 60, 100) + ""); test.end(); }); d3-interpolate-1.4.0/test/number-test.js000066400000000000000000000014571356533344100201460ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); require("./inDelta"); tape("interpolateNumber(a, b) interpolates between two numbers a and b", function(test) { var i = interpolate.interpolateNumber(10, 42); test.inDelta(i(0.0), 10.0); test.inDelta(i(0.1), 13.2); test.inDelta(i(0.2), 16.4); test.inDelta(i(0.3), 19.6); test.inDelta(i(0.4), 22.8); test.inDelta(i(0.5), 26.0); test.inDelta(i(0.6), 29.2); test.inDelta(i(0.7), 32.4); test.inDelta(i(0.8), 35.6); test.inDelta(i(0.9), 38.8); test.inDelta(i(1.0), 42.0); test.end(); }); tape("interpolateNumber(a, b) gives exact ends for t=0 and t=1", function(test) { var a = 2e+42, b = 335; test.equal(interpolate.interpolateNumber(a, b)(1), b); test.equal(interpolate.interpolateNumber(a, b)(0), a); test.end(); }); d3-interpolate-1.4.0/test/numberArray-test.js000066400000000000000000000043441356533344100211430ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateNumberArray(a, b) interpolates defined elements in a and b", function(test) { test.deepEqual(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Float64Array.of(4, 24))(0.5), Float64Array.of(3, 18)); test.end(); }); tape("interpolateNumberArray(a, b) ignores elements in a that are not in b", function(test) { test.deepEqual(interpolate.interpolateNumberArray(Float64Array.of(2, 12, 12), Float64Array.of(4, 24))(0.5), Float64Array.of(3, 18)); test.end(); }); tape("interpolateNumberArray(a, b) uses constant elements in b that are not in a", function(test) { test.deepEqual(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Float64Array.of(4, 24, 12))(0.5), Float64Array.of(3, 18, 12)); test.end(); }); tape("interpolateNumberArray(a, b) treats undefined as an empty array", function(test) { test.deepEqual(interpolate.interpolateNumberArray(undefined, [2, 12])(0.5), [2, 12]); test.deepEqual(interpolate.interpolateNumberArray([2, 12], undefined)(0.5), []); test.deepEqual(interpolate.interpolateNumberArray(undefined, undefined)(0.5), []); test.end(); }); tape("interpolateNumberArray(a, b) uses b’s array type", function(test) { test.ok(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Float64Array.of(4, 24, 12))(0.5) instanceof Float64Array); test.ok(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Float32Array.of(4, 24, 12))(0.5) instanceof Float32Array); test.ok(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Uint8Array.of(4, 24, 12))(0.5) instanceof Uint8Array); test.ok(interpolate.interpolateNumberArray(Float64Array.of(2, 12), Uint16Array.of(4, 24, 12))(0.5) instanceof Uint16Array); test.end(); }); tape("interpolateNumberArray(a, b) works with unsigned data", function(test) { test.deepEqual(interpolate.interpolateNumberArray(Uint8Array.of(1, 12), Uint8Array.of(255, 0))(0.5), Uint8Array.of(128, 6)); test.end(); }); tape("interpolateNumberArray(a, b) gives exact ends", function(test) { var i = interpolate.interpolateNumberArray(Float64Array.of(2e42), Float64Array.of(355)); test.deepEqual(i(0), Float64Array.of(2e42)); test.deepEqual(i(1), Float64Array.of(355)); test.end(); });d3-interpolate-1.4.0/test/object-test.js000066400000000000000000000055531356533344100201250ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateObject(a, b) interpolates defined properties in a and b", function(test) { test.deepEqual(interpolate.interpolateObject({a: 2, b: 12}, {a: 4, b: 24})(0.5), {a: 3, b: 18}); test.end(); }); tape("interpolateObject(a, b) interpolates inherited properties in a and b", function(test) { function a(a) { this.a = a; } a.prototype.b = 12; test.deepEqual(interpolate.interpolateObject(new a(2), {a: 4, b: 12})(0.5), {a: 3, b: 12}); test.deepEqual(interpolate.interpolateObject({a: 2, b: 12}, new a(4))(0.5), {a: 3, b: 12}); test.deepEqual(interpolate.interpolateObject(new a(4), new a(2))(0.5), {a: 3, b: 12}); test.end(); }); tape("interpolateObject(a, b) interpolates color properties as rgb", function(test) { test.deepEqual(interpolate.interpolateObject({background: "red"}, {background: "green"})(0.5), {background: "rgb(128, 64, 0)"}); test.deepEqual(interpolate.interpolateObject({fill: "red"}, {fill: "green"})(0.5), {fill: "rgb(128, 64, 0)"}); test.deepEqual(interpolate.interpolateObject({stroke: "red"}, {stroke: "green"})(0.5), {stroke: "rgb(128, 64, 0)"}); test.deepEqual(interpolate.interpolateObject({color: "red"}, {color: "green"})(0.5), {color: "rgb(128, 64, 0)"}); test.end(); }); tape("interpolateObject(a, b) interpolates nested objects and arrays", function(test) { test.deepEqual(interpolate.interpolateObject({foo: [2, 12]}, {foo: [4, 24]})(0.5), {foo: [3, 18]}); test.deepEqual(interpolate.interpolateObject({foo: {bar: [2, 12]}}, {foo: {bar: [4, 24]}})(0.5), {foo: {bar: [3, 18]}}); test.end(); }); tape("interpolateObject(a, b) ignores properties in a that are not in b", function(test) { test.deepEqual(interpolate.interpolateObject({foo: 2, bar: 12}, {foo: 4})(0.5), {foo: 3}); test.end(); }); tape("interpolateObject(a, b) uses constant properties in b that are not in a", function(test) { test.deepEqual(interpolate.interpolateObject({foo: 2}, {foo: 4, bar: 12})(0.5), {foo: 3, bar: 12}); test.end(); }); tape("interpolateObject(a, b) treats undefined as an empty object", function(test) { test.deepEqual(interpolate.interpolateObject(NaN, {foo: 2})(0.5), {foo: 2}); test.deepEqual(interpolate.interpolateObject({foo: 2}, undefined)(0.5), {}); test.deepEqual(interpolate.interpolateObject(undefined, {foo: 2})(0.5), {foo: 2}); test.deepEqual(interpolate.interpolateObject({foo: 2}, null)(0.5), {}); test.deepEqual(interpolate.interpolateObject(null, {foo: 2})(0.5), {foo: 2}); test.deepEqual(interpolate.interpolateObject(null, NaN)(0.5), {}); test.end(); }); tape("interpolateObject(a, b) interpolates objects without prototype", function(test) { test.deepEqual(interpolate.interpolateObject(noproto({foo: 0}), noproto({foo: 2}))(0.5), {foo: 1}); test.end(); }); function noproto(properties) { return Object.assign(Object.create(null), properties); } d3-interpolate-1.4.0/test/quantize-test.js000066400000000000000000000010041356533344100205020ustar00rootroot00000000000000var tape = require("tape"), d3 = require("../"); tape("quantize(interpolate, n) returns n uniformly-spaced samples from the specified interpolator", function(test) { test.deepEqual(d3.quantize(d3.interpolateNumber(0, 1), 5), [ 0 / 4, 1 / 4, 2 / 4, 3 / 4, 4 / 4 ]); test.deepEqual(d3.quantize(d3.interpolateRgb("steelblue", "brown"), 5), [ "rgb(70, 130, 180)", "rgb(94, 108, 146)", "rgb(118, 86, 111)", "rgb(141, 64, 77)", "rgb(165, 42, 42)" ]); test.end(); }); d3-interpolate-1.4.0/test/rgb-test.js000066400000000000000000000060471356533344100174300ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolateRgb(a, b) converts a and b to RGB colors", function(test) { test.equal(interpolate.interpolateRgb("steelblue", "brown")(0), color.rgb("steelblue") + ""); test.equal(interpolate.interpolateRgb("steelblue", color.hsl("brown"))(1), color.rgb("brown") + ""); test.equal(interpolate.interpolateRgb("steelblue", color.rgb("brown"))(1), color.rgb("brown") + ""); test.end(); }); tape("interpolateRgb(a, b) interpolates in RGB and returns an RGB string", function(test) { test.equal(interpolate.interpolateRgb("steelblue", "#f00")(0.2), "rgb(107, 104, 144)"); test.equal(interpolate.interpolateRgb("rgba(70, 130, 180, 1)", "rgba(255, 0, 0, 0.2)")(0.2), "rgba(107, 104, 144, 0.84)"); test.end(); }); tape("interpolateRgb(a, b) uses b’s channel value when a’s channel value is undefined", function(test) { test.equal(interpolate.interpolateRgb(null, color.rgb(20, 40, 60))(0.5), color.rgb(20, 40, 60) + ""); test.equal(interpolate.interpolateRgb(color.rgb(NaN, 20, 40), color.rgb(60, 80, 100))(0.5), color.rgb(60, 50, 70) + ""); test.equal(interpolate.interpolateRgb(color.rgb(20, NaN, 40), color.rgb(60, 80, 100))(0.5), color.rgb(40, 80, 70) + ""); test.equal(interpolate.interpolateRgb(color.rgb(20, 40, NaN), color.rgb(60, 80, 100))(0.5), color.rgb(40, 60, 100) + ""); test.end(); }); tape("interpolateRgb(a, b) uses a’s channel value when b’s channel value is undefined", function(test) { test.equal(interpolate.interpolateRgb(color.rgb(20, 40, 60), null)(0.5), color.rgb(20, 40, 60) + ""); test.equal(interpolate.interpolateRgb(color.rgb(60, 80, 100), color.rgb(NaN, 20, 40))(0.5), color.rgb(60, 50, 70) + ""); test.equal(interpolate.interpolateRgb(color.rgb(60, 80, 100), color.rgb(20, NaN, 40))(0.5), color.rgb(40, 80, 70) + ""); test.equal(interpolate.interpolateRgb(color.rgb(60, 80, 100), color.rgb(20, 40, NaN))(0.5), color.rgb(40, 60, 100) + ""); test.end(); }); tape("interpolateRgb.gamma(3)(a, b) returns the expected values", function(test) { test.equal(interpolate.interpolateRgb.gamma(3)("steelblue", "#f00")(0.2), "rgb(153, 121, 167)"); test.end(); }); tape("interpolateRgb.gamma(3)(a, b) uses linear interpolation for opacity", function(test) { test.equal(interpolate.interpolateRgb.gamma(3)("transparent", "#f00")(0.2), "rgba(255, 0, 0, 0.2)"); test.end(); }); tape("interpolateRgb.gamma(g) coerces the specified gamma to a number", function(test) { test.equal(interpolate.interpolateRgb.gamma({valueOf: function() { return 3; }})("steelblue", "#f00")(0.2), "rgb(153, 121, 167)"); test.end(); }); tape("interpolateRgb(a, b) is equivalent to interpolateRgb.gamma(1)(a, b)", function(test) { var i0 = interpolate.interpolateRgb.gamma(1)("purple", "orange"), i1 = interpolate.interpolateRgb("purple", "orange"); test.equal(i1(0.0), i0(0.0)); test.equal(i1(0.2), i0(0.2)); test.equal(i1(0.4), i0(0.4)); test.equal(i1(0.6), i0(0.6)); test.equal(i1(0.8), i0(0.8)); test.equal(i1(1.0), i0(1.0)); test.end(); }); d3-interpolate-1.4.0/test/round-test.js000066400000000000000000000016401356533344100177770ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateRound(a, b) interpolates between two numbers a and b, and then rounds", function(test) { var i = interpolate.interpolateRound(10, 42); test.equal(i(0.0), 10); test.equal(i(0.1), 13); test.equal(i(0.2), 16); test.equal(i(0.3), 20); test.equal(i(0.4), 23); test.equal(i(0.5), 26); test.equal(i(0.6), 29); test.equal(i(0.7), 32); test.equal(i(0.8), 36); test.equal(i(0.9), 39); test.equal(i(1.0), 42); test.end(); }); tape("interpolateRound(a, b) does not pre-round a and b", function(test) { var i = interpolate.interpolateRound(2.6, 3.6); test.equal(i(0.6), 3); test.end(); }); tape("interpolateRound(a, b) gives exact ends for t=0 and t=1", function(test) { var a = 2e+42, b = 335; test.equal(interpolate.interpolateRound(a, b)(1), b); test.equal(interpolate.interpolateRound(a, b)(0), a); test.end(); }); d3-interpolate-1.4.0/test/string-test.js000066400000000000000000000056131356533344100201620ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateString(a, b) interpolates matching numbers in a and b", function(test) { test.equal(interpolate.interpolateString(" 10/20 30", "50/10 100 ")(0.2), "18/18 44 "); test.equal(interpolate.interpolateString(" 10/20 30", "50/10 100 ")(0.4), "26/16 58 "); test.end(); }); tape("interpolateString(a, b) coerces a and b to strings", function(test) { test.equal(interpolate.interpolateString({toString: function() { return "2px"; }}, {toString: function() { return "12px"; }})(0.25), "4.5px"); test.end(); }); tape("interpolateString(a, b) preserves non-numbers in string b", function(test) { test.equal(interpolate.interpolateString(" 10/20 30", "50/10 foo ")(0.2), "18/18 foo "); test.equal(interpolate.interpolateString(" 10/20 30", "50/10 foo ")(0.4), "26/16 foo "); test.end(); }); tape("interpolateString(a, b) preserves non-matching numbers in string b", function(test) { test.equal(interpolate.interpolateString(" 10/20 foo", "50/10 100 ")(0.2), "18/18 100 "); test.equal(interpolate.interpolateString(" 10/20 bar", "50/10 100 ")(0.4), "26/16 100 "); test.end(); }); tape("interpolateString(a, b) preserves equal-value numbers in both strings", function(test) { test.equal(interpolate.interpolateString(" 10/20 100 20", "50/10 100, 20 ")(0.2), "18/18 100, 20 "); test.equal(interpolate.interpolateString(" 10/20 100 20", "50/10 100, 20 ")(0.4), "26/16 100, 20 "); test.end(); }); tape("interpolateString(a, b) interpolates decimal notation correctly", function(test) { test.equal(interpolate.interpolateString("1.", "2.")(0.5), "1.5"); test.end(); }); tape("interpolateString(a, b) interpolates exponent notation correctly", function(test) { test.equal(interpolate.interpolateString("1e+3", "1e+4")(0.5), "5500"); test.equal(interpolate.interpolateString("1e-3", "1e-4")(0.5), "0.00055"); test.equal(interpolate.interpolateString("1.e-3", "1.e-4")(0.5), "0.00055"); test.equal(interpolate.interpolateString("-1.e-3", "-1.e-4")(0.5), "-0.00055"); test.equal(interpolate.interpolateString("+1.e-3", "+1.e-4")(0.5), "0.00055"); test.equal(interpolate.interpolateString(".1e-2", ".1e-3")(0.5), "0.00055"); test.end(); }); tape("interpolateString(a, b) with no numbers, returns the target string", function(test) { test.equal(interpolate.interpolateString("foo", "bar")(0.5), "bar"); test.equal(interpolate.interpolateString("foo", "")(0.5), ""); test.equal(interpolate.interpolateString("", "bar")(0.5), "bar"); test.equal(interpolate.interpolateString("", "")(0.5), ""); test.end(); }); tape("interpolateString(a, b) with two numerically-equivalent numbers, returns the default format", function(test) { test.equal(interpolate.interpolateString("top: 1000px;", "top: 1e3px;")(0.5), "top: 1000px;"); test.equal(interpolate.interpolateString("top: 1e3px;", "top: 1000px;")(0.5), "top: 1000px;"); test.end(); }); d3-interpolate-1.4.0/test/value-test.js000066400000000000000000000152601356533344100177670ustar00rootroot00000000000000var tape = require("tape"), color = require("d3-color"), interpolate = require("../"); tape("interpolate(a, b) interpolates strings if b is a string and not a color", function(test) { test.strictEqual(interpolate.interpolate("foo", "bar")(0.5), "bar"); test.end(); }); tape("interpolate(a, b) interpolates strings if b is a string and not a color, even if b is coercible to a number", function(test) { test.strictEqual(interpolate.interpolate("1", "2")(0.5), "1.5"); test.strictEqual(interpolate.interpolate(" 1", " 2")(0.5), " 1.5"); test.end(); }); tape("interpolate(a, b) interpolates RGB colors if b is a string and a color", function(test) { test.strictEqual(interpolate.interpolate("red", "blue")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("#ff0000", "#0000ff")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("#f00", "#00f")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("rgb(255, 0, 0)", "rgb(0, 0, 255)")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("rgba(255, 0, 0, 1.0)", "rgba(0, 0, 255, 1.0)")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("rgb(100%, 0%, 0%)", "rgb(0%, 0%, 100%)")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("rgba(100%, 0%, 0%, 1.0)", "rgba(0%, 0%, 100%, 1.0)")(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("rgba(100%, 0%, 0%, 0.5)", "rgba(0%, 0%, 100%, 0.7)")(0.5), "rgba(128, 0, 128, 0.6)"); test.end(); }); tape("interpolate(a, b) interpolates RGB colors if b is a color", function(test) { test.strictEqual(interpolate.interpolate("red", color.rgb("blue"))(0.5), "rgb(128, 0, 128)"); test.strictEqual(interpolate.interpolate("red", color.hsl("blue"))(0.5), "rgb(128, 0, 128)"); test.end(); }); tape("interpolate(a, b) interpolates arrays if b is an array", function(test) { test.deepEqual(interpolate.interpolate(["red"], ["blue"])(0.5), ["rgb(128, 0, 128)"]); test.end(); }); tape("interpolate(a, b) interpolates arrays if b is an array, even if b is coercible to a number", function(test) { test.deepEqual(interpolate.interpolate([1], [2])(0.5), [1.5]); test.end(); }); tape("interpolate(a, b) interpolates numbers if b is a number", function(test) { test.strictEqual(interpolate.interpolate(1, 2)(0.5), 1.5); test.ok(isNaN(interpolate.interpolate(1, NaN)(0.5))); test.end(); }); tape("interpolate(a, b) interpolates objects if b is an object that is not coercible to a number", function(test) { test.deepEqual(interpolate.interpolate({color: "red"}, {color: "blue"})(0.5), {color: "rgb(128, 0, 128)"}); test.end(); }); tape("interpolate(a, b) interpolates numbers if b is an object that is coercible to a number", function(test) { test.strictEqual(interpolate.interpolate(1, new Number(2))(0.5), 1.5); test.strictEqual(interpolate.interpolate(1, new String("2"))(0.5), 1.5); test.end(); }); tape("interpolate(a, b) interpolates dates if b is a date", function(test) { var i = interpolate.interpolate(new Date(2000, 0, 1), new Date(2000, 0, 2)), d = i(0.5); test.equal(d instanceof Date, true); test.strictEqual(+i(0.5), +new Date(2000, 0, 1, 12)); test.end(); }); tape("interpolate(a, b) returns the constant b if b is null, undefined or a boolean", function(test) { test.strictEqual(interpolate.interpolate(0, null)(0.5), null); test.strictEqual(interpolate.interpolate(0, undefined)(0.5), undefined); test.strictEqual(interpolate.interpolate(0, true)(0.5), true); test.strictEqual(interpolate.interpolate(0, false)(0.5), false); test.end(); }); tape("interpolate(a, b) interpolates objects without prototype", function(test) { test.deepEqual(interpolate.interpolate(noproto({foo: 0}), noproto({foo: 2}))(0.5), {foo: 1}); test.end(); }); tape("interpolate(a, b) interpolates objects with numeric valueOf as numbers", function(test) { var proto = {valueOf: foo}; test.deepEqual(interpolate.interpolate(noproto({foo: 0}, proto), noproto({foo: 2}, proto))(0.5), 1); test.end(); }); tape("interpolate(a, b) interpolates objects with string valueOf as numbers if valueOf result is coercible to number", function(test) { var proto = {valueOf: fooString}; test.deepEqual(interpolate.interpolate(noproto({foo: 0}, proto), noproto({foo: 2}, proto))(0.5), 1); test.end(); }); // valueOf appears here as object because: // - we use for-in loop and it will ignore only fields coming from built-in prototypes; // - we replace functions with objects. tape("interpolate(a, b) interpolates objects with string valueOf as objects if valueOf result is not coercible to number", function(test) { var proto = {valueOf: fooString}; test.deepEqual(interpolate.interpolate(noproto({foo: "bar"}, proto), noproto({foo: "baz"}, proto))(0.5), {foo: "baz", valueOf: {}}); test.end(); }); tape("interpolate(a, b) interpolates objects with toString as numbers if toString result is coercible to number", function(test) { var proto = {toString: fooString}; test.deepEqual(interpolate.interpolate(noproto({foo: 0}, proto), noproto({foo: 2}, proto))(0.5), 1); test.end(); }); // toString appears here as object because: // - we use for-in loop and it will ignore only fields coming from built-in prototypes; // - we replace functions with objects. tape("interpolate(a, b) interpolates objects with toString as objects if toString result is not coercible to number", function(test) { var proto = {toString: fooString}; test.deepEqual(interpolate.interpolate(noproto({foo: "bar"}, proto), noproto({foo: "baz"}, proto))(0.5), {foo: "baz", toString: {}}); test.end(); }); tape("interpolate(a, b) interpolates number arrays if b is a typed array", function(test) { test.deepEqual(interpolate.interpolate([0, 0], Float64Array.of(-1, 1))(0.5), Float64Array.of(-0.5, 0.5)); test.assert(interpolate.interpolate([0, 0], Float64Array.of(-1, 1))(0.5) instanceof Float64Array); test.deepEqual(interpolate.interpolate([0, 0], Float32Array.of(-1, 1))(0.5), Float32Array.of(-0.5, 0.5)); test.assert(interpolate.interpolate([0, 0], Float32Array.of(-1, 1))(0.5) instanceof Float32Array); test.deepEqual(interpolate.interpolate([0, 0], Uint32Array.of(-2, 2))(0.5), Uint32Array.of(Math.pow(2, 31) - 1, 1)); test.assert(interpolate.interpolate([0, 0], Uint32Array.of(-1, 1))(0.5) instanceof Uint32Array); test.deepEqual(interpolate.interpolate([0, 0], Uint8Array.of(-2, 2))(0.5), Uint8Array.of(Math.pow(2, 7) - 1, 1)); test.assert(interpolate.interpolate([0, 0], Uint8Array.of(-1, 1))(0.5) instanceof Uint8Array); test.end(); }); function noproto(properties, proto = null) { return Object.assign(Object.create(proto), properties); } function foo() { return this.foo; } function fooString() { return String(this.foo); } d3-interpolate-1.4.0/test/zoom-test.js000066400000000000000000000006121356533344100176320ustar00rootroot00000000000000var tape = require("tape"), interpolate = require("../"); tape("interpolateZoom(a, b) handles nearly-coincident points", function(test) { test.deepEqual(interpolate.interpolateZoom([324.68721096803614, 59.43501602433761, 1.8827137399562621], [324.6872108946794, 59.43501601062763, 7.399052110984391])(0.5), [324.68721093135775, 59.43501601748262, 3.7323313186268305]); test.end(); }); d3-interpolate-1.4.0/yarn.lock000066400000000000000000001317551356533344100162140ustar00rootroot00000000000000# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@babel/code-frame@^7.0.0": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw== dependencies: "@babel/highlight" "^7.0.0" "@babel/highlight@^7.0.0": version "7.5.0" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa619591d02472be6e8cb32540" integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ== dependencies: chalk "^2.0.0" esutils "^2.0.2" js-tokens "^4.0.0" "@types/estree@0.0.39": version "0.0.39" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== "@types/node@^12.6.2": version "12.6.8" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.8.tgz#e469b4bf9d1c9832aee4907ba8a051494357c12c" integrity sha512-aX+gFgA5GHcDi89KG5keey2zf0WfZk/HAQotEamsK2kbey+8yGKcson0hbK8E+v0NArlCJQCqMP161YhV6ZXLg== acorn-jsx@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.1.tgz#32a064fd925429216a09b141102bfdd185fae40e" integrity sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg== acorn@^6.0.7, acorn@^6.2.0: version "6.2.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.2.1.tgz#3ed8422d6dec09e6121cc7a843ca86a330a86b51" integrity sha512-JD0xT5FCRDNyjDda3Lrg/IxFscp9q4tiYtxE1/nOzlKCk7hIRuYjhq1kCNkbPjMRMZuFq20HNQn1I9k8Oj0E+Q== ajv@^6.10.0, ajv@^6.10.2: version "6.10.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw== dependencies: fast-deep-equal "^2.0.1" fast-json-stable-stringify "^2.0.0" json-schema-traverse "^0.4.1" uri-js "^4.2.2" ansi-escapes@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== ansi-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= ansi-regex@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== dependencies: sprintf-js "~1.0.2" astral-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" concat-map "0.0.1" buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: ansi-styles "^3.2.1" escape-string-regexp "^1.0.5" supports-color "^5.3.0" chardet@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== cli-cursor@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= dependencies: restore-cursor "^2.0.0" cli-width@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= color-convert@^1.9.0: version "1.9.3" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: color-name "1.1.3" color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= commander@^2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== dependencies: nice-try "^1.0.4" path-key "^2.0.1" semver "^5.5.0" shebang-command "^1.2.0" which "^1.2.9" d3-color@1: version "1.4.0" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.0.tgz#89c45a995ed773b13314f06460df26d60ba0ecaf" integrity sha512-TzNPeJy2+iEepfiL92LAAB7fvnp/dV2YwANPVHdDWmYMm23qIJBYww3qT8I8C1wXrmrg4UWs7BKc2tKIgyjzHg== debug@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== dependencies: ms "^2.1.1" deep-equal@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= define-properties@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== dependencies: object-keys "^1.0.12" defined@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM= doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== dependencies: esutils "^2.0.2" emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== es-abstract@^1.5.0: version "1.13.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9" integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg== dependencies: es-to-primitive "^1.2.0" function-bind "^1.1.1" has "^1.0.3" is-callable "^1.1.4" is-regex "^1.0.4" object-keys "^1.0.12" es-to-primitive@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== dependencies: is-callable "^1.1.4" is-date-object "^1.0.1" is-symbol "^1.0.2" escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= eslint-scope@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== dependencies: esrecurse "^4.1.0" estraverse "^4.1.1" eslint-utils@^1.3.1: version "1.4.3" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== dependencies: eslint-visitor-keys "^1.1.0" eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== eslint@6: version "6.1.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.1.0.tgz#06438a4a278b1d84fb107d24eaaa35471986e646" integrity sha512-QhrbdRD7ofuV09IuE2ySWBz0FyXCq0rriLTZXZqaWSI79CVtHVRdkFuFTViiqzZhkCgfOh9USpriuGN2gIpZDQ== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" chalk "^2.1.0" cross-spawn "^6.0.5" debug "^4.0.1" doctrine "^3.0.0" eslint-scope "^5.0.0" eslint-utils "^1.3.1" eslint-visitor-keys "^1.0.0" espree "^6.0.0" esquery "^1.0.1" esutils "^2.0.2" file-entry-cache "^5.0.1" functional-red-black-tree "^1.0.1" glob-parent "^5.0.0" globals "^11.7.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" inquirer "^6.4.1" is-glob "^4.0.0" js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.3.0" lodash "^4.17.14" minimatch "^3.0.4" mkdirp "^0.5.1" natural-compare "^1.4.0" optionator "^0.8.2" progress "^2.0.0" regexpp "^2.0.1" semver "^6.1.2" strip-ansi "^5.2.0" strip-json-comments "^3.0.1" table "^5.2.3" text-table "^0.2.0" v8-compile-cache "^2.0.3" espree@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/espree/-/espree-6.0.0.tgz#716fc1f5a245ef5b9a7fdb1d7b0d3f02322e75f6" integrity sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q== dependencies: acorn "^6.0.7" acorn-jsx "^5.0.0" eslint-visitor-keys "^1.0.0" esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== esquery@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== dependencies: estraverse "^4.0.0" esrecurse@^4.1.0: version "4.2.1" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== dependencies: estraverse "^4.1.0" estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM= estree-walker@^0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= external-editor@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== dependencies: chardet "^0.7.0" iconv-lite "^0.4.24" tmp "^0.0.33" fast-deep-equal@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= figures@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= dependencies: escape-string-regexp "^1.0.5" file-entry-cache@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== dependencies: flat-cache "^2.0.1" flat-cache@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== dependencies: flatted "^2.0.0" rimraf "2.6.3" write "1.0.3" flatted@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== for-each@~0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== dependencies: is-callable "^1.1.3" fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= glob-parent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.0.0.tgz#1dc99f0f39b006d3e92c2c284068382f0c20e954" integrity sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg== dependencies: is-glob "^4.0.1" glob@^7.1.3, glob@~7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" minimatch "^3.0.4" once "^1.3.0" path-is-absolute "^1.0.0" globals@^11.7.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= has-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= has@^1.0.1, has@^1.0.3, has@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== dependencies: function-bind "^1.1.1" iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== dependencies: safer-buffer ">= 2.1.2 < 3" ignore@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== import-fresh@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.1.0.tgz#6d33fa1dcef6df930fae003446f33415af905118" integrity sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ== dependencies: parent-module "^1.0.0" resolve-from "^4.0.0" imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= dependencies: once "^1.3.0" wrappy "1" inherits@2, inherits@~2.0.3, inherits@~2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== inquirer@^6.4.1: version "6.5.0" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== dependencies: ansi-escapes "^3.2.0" chalk "^2.4.2" cli-cursor "^2.1.0" cli-width "^2.0.0" external-editor "^3.0.3" figures "^2.0.0" lodash "^4.17.12" mute-stream "0.0.7" run-async "^2.2.0" rxjs "^6.4.0" string-width "^2.1.0" strip-ansi "^5.1.0" through "^2.3.6" is-callable@^1.1.3, is-callable@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== is-date-object@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= is-glob@^4.0.0, is-glob@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== dependencies: is-extglob "^2.1.1" is-promise@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= is-regex@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= dependencies: has "^1.0.1" is-symbol@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== dependencies: has-symbols "^1.0.0" isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= jest-worker@^24.6.0: version "24.6.0" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.6.0.tgz#7f81ceae34b7cde0c9827a6980c35b7cdc0161b3" integrity sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ== dependencies: merge-stream "^1.0.1" supports-color "^6.1.0" js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== js-yaml@^3.13.1: version "3.13.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== dependencies: argparse "^1.0.7" esprima "^4.0.0" json-schema-traverse@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= levn@^0.3.0, levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= dependencies: prelude-ls "~1.1.2" type-check "~0.3.2" lodash@^4.17.12, lodash@^4.17.14: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== merge-stream@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1" integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE= dependencies: readable-stream "^2.0.1" mimic-fn@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== dependencies: brace-expansion "^1.1.7" minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= minimist@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= dependencies: minimist "0.0.8" ms@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= nice-try@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== object-inspect@~1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== object-keys@^1.0.12: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== once@^1.3.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= dependencies: wrappy "1" onetime@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= dependencies: mimic-fn "^1.0.0" optionator@^0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= dependencies: deep-is "~0.1.3" fast-levenshtein "~2.0.4" levn "~0.3.0" prelude-ls "~1.1.2" type-check "~0.3.2" wordwrap "~1.0.0" os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= parent-module@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== dependencies: callsites "^3.0.0" path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= path-key@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= path-parse@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== progress@^2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== punycode@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== readable-stream@^2.0.1: version "2.3.6" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== dependencies: core-util-is "~1.0.0" inherits "~2.0.3" isarray "~1.0.0" process-nextick-args "~2.0.0" safe-buffer "~5.1.1" string_decoder "~1.1.1" util-deprecate "~1.0.1" regexpp@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== resolve@~1.11.1: version "1.11.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== dependencies: path-parse "^1.0.6" restore-cursor@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= dependencies: onetime "^2.0.0" signal-exit "^3.0.2" resumer@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759" integrity sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k= dependencies: through "~2.3.4" rimraf@2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== dependencies: glob "^7.1.3" rollup-plugin-terser@5: version "5.1.1" resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.1.1.tgz#e9d2545ec8d467f96ba99b9216d2285aad8d5b66" integrity sha512-McIMCDEY8EU6Y839C09UopeRR56wXHGdvKKjlfiZG/GrP6wvZQ62u2ko/Xh1MNH2M9WDL+obAAHySljIZYCuPQ== dependencies: "@babel/code-frame" "^7.0.0" jest-worker "^24.6.0" rollup-pluginutils "^2.8.1" serialize-javascript "^1.7.0" terser "^4.1.0" rollup-pluginutils@^2.8.1: version "2.8.1" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.1.tgz#8fa6dd0697344938ef26c2c09d2488ce9e33ce97" integrity sha512-J5oAoysWar6GuZo0s+3bZ6sVZAC0pfqKz68De7ZgDi5z63jOVZn1uJL/+z1jeKHNbGII8kAyHF5q8LnxSX5lQg== dependencies: estree-walker "^0.6.1" rollup@1: version "1.17.0" resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.17.0.tgz#47ee8b04514544fc93b39bae06271244c8db7dfa" integrity sha512-k/j1m0NIsI4SYgCJR4MWPstGJOWfJyd6gycKoMhyoKPVXxm+L49XtbUwZyFsrSU2YXsOkM4u1ll9CS/ZgJBUpw== dependencies: "@types/estree" "0.0.39" "@types/node" "^12.6.2" acorn "^6.2.0" run-async@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= dependencies: is-promise "^2.1.0" rxjs@^6.4.0: version "6.5.2" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.2.tgz#2e35ce815cd46d84d02a209fb4e5921e051dbec7" integrity sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg== dependencies: tslib "^1.9.0" safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== "safer-buffer@>= 2.1.2 < 3": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== semver@^5.5.0: version "5.7.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== semver@^6.1.2: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== serialize-javascript@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65" integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA== shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= dependencies: shebang-regex "^1.0.0" shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= slice-ansi@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== dependencies: ansi-styles "^3.2.0" astral-regex "^1.0.0" is-fullwidth-code-point "^2.0.0" source-map-support@~0.5.12: version "0.5.12" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.12.tgz#b4f3b10d51857a5af0138d3ce8003b201613d599" integrity sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ== dependencies: buffer-from "^1.0.0" source-map "^0.6.0" source-map@^0.6.0, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= string-width@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== dependencies: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" string-width@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== dependencies: emoji-regex "^7.0.1" is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" string.prototype.trim@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" integrity sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo= dependencies: define-properties "^1.1.2" es-abstract "^1.5.0" function-bind "^1.0.2" string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== dependencies: safe-buffer "~5.1.0" strip-ansi@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= dependencies: ansi-regex "^3.0.0" strip-ansi@^5.1.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== dependencies: ansi-regex "^4.1.0" strip-json-comments@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz#85713975a91fb87bf1b305cca77395e40d2a64a7" integrity sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: has-flag "^3.0.0" supports-color@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== dependencies: has-flag "^3.0.0" table@^5.2.3: version "5.4.4" resolved "https://registry.yarnpkg.com/table/-/table-5.4.4.tgz#6e0f88fdae3692793d1077fd172a4667afe986a6" integrity sha512-IIfEAUx5QlODLblLrGTTLJA7Tk0iLSGBvgY8essPRVNGHAzThujww1YqHLs6h3HfTg55h++RzLHH5Xw/rfv+mg== dependencies: ajv "^6.10.2" lodash "^4.17.14" slice-ansi "^2.1.0" string-width "^3.0.0" tape@4: version "4.11.0" resolved "https://registry.yarnpkg.com/tape/-/tape-4.11.0.tgz#63d41accd95e45a23a874473051c57fdbc58edc1" integrity sha512-yixvDMX7q7JIs/omJSzSZrqulOV51EC9dK8dM0TzImTIkHWfe2/kFyL5v+d9C+SrCMaICk59ujsqFAVidDqDaA== dependencies: deep-equal "~1.0.1" defined "~1.0.0" for-each "~0.3.3" function-bind "~1.1.1" glob "~7.1.4" has "~1.0.3" inherits "~2.0.4" minimist "~1.2.0" object-inspect "~1.6.0" resolve "~1.11.1" resumer "~0.0.0" string.prototype.trim "~1.1.2" through "~2.3.8" terser@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/terser/-/terser-4.1.2.tgz#b2656c8a506f7ce805a3f300a2ff48db022fa391" integrity sha512-jvNoEQSPXJdssFwqPSgWjsOrb+ELoE+ILpHPKXC83tIxOlh2U75F1KuB2luLD/3a6/7K3Vw5pDn+hvu0C4AzSw== dependencies: commander "^2.20.0" source-map "~0.6.1" source-map-support "~0.5.12" text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= through@^2.3.6, through@~2.3.4, through@~2.3.8: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== dependencies: os-tmpdir "~1.0.2" tslib@^1.9.0: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= dependencies: prelude-ls "~1.1.2" uri-js@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== dependencies: punycode "^2.1.0" util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= v8-compile-cache@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz#00f7494d2ae2b688cfe2899df6ed2c54bef91dbe" integrity sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w== which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== dependencies: isexe "^2.0.0" wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= write@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== dependencies: mkdirp "^0.5.1"