d3_interpolate library
d3-interpolate 3.0.1 in native Dart, with no Flutter import (D3 ADR 0008 §6).
Import it with a prefix, as import 'package:flutter_d3_interpolate_port/d3_interpolate.dart' as d3;. Then
the code reads d3.interpolateNumber(0, 10) and d3.interpolateRgb(a, b). The library compiles for the VM, for JavaScript and for WebAssembly
with no Flutter engine.
Classes
- InterpolateCubehelix
-
cubehelix.js:4
cubehelix(hue)with cubehelix.js:5cubehelixGamma(y): a Cubehelix interpolator factory with the hue interpolation of its kind and the gamma of its creation. - InterpolateRgb
-
rgb.js:6 the function
rgbofrgbGamma(y), with its propertygamma: an RGB interpolator factory with the gamma of its creation. - InterpolateZoom
-
zoom.js:15
zoomRho(rho, rho2, rho4): the zoom interpolator of the curvaturerho, withrho2 = rho * rhoandrho4 = rho2 * rho2. - TransformParts
-
The parts of a 2D transform, in the order of the CSS text
translate(translateX, translateY) rotate(rotate) skewX(skewX) scale(scaleX, scaleY): the object of decompose.js:3 and decompose.js:18. - ZoomInterpolator
-
zoom.js:31 and zoom.js:48 the interpolator
iof InterpolateZoom.call with its propertyduration(zoom.js:60).
Constants
- d3InterpolateVersion → const String
- The d3-interpolate release that this port tracks.
- interpolateCubehelix → const InterpolateCubehelix
-
cubehelix.js:28 the default export,
cubehelix(hue): the Cubehelix interpolator factory on the shortest path between the hues, with the gamma 1. - interpolateCubehelixLong → const InterpolateCubehelix
-
index.js:19
cubehelixLong as interpolateCubehelixLong: the Cubehelix interpolator factory with no shortest path between the hues, with the gamma 1 and its methodgamma,cubehelixLongof cubehelix.dart. - interpolateHclLong → const Hcl Function(double t) Function(Color start, Color end)
-
index.js:18
hclLong as interpolateHclLong: the interpolator of two colors in HCL, with no shortest path between the hues,hclLongof hcl.dart. - interpolateHslLong → const Hsl Function(double t) Function(Color start, Color end)
-
index.js:16
hslLong as interpolateHslLong: the interpolator of two colors in HSL, with no shortest path between the hues,hslLongof hsl.dart. - interpolateRgb → const InterpolateRgb
-
rgb.js:6 the default export,
rgbGamma(1): the RGB interpolator factory with the gamma 1. -
interpolateRgbBasis
→ const Rgb Function(double t) Function(List<
Color> colors) -
index.js:15
rgbBasis as interpolateRgbBasis: a uniform nonrational B-spline through a list of colors in RGB,rgbBasisof rgb.dart. -
interpolateRgbBasisClosed
→ const Rgb Function(double t) Function(List<
Color> colors) -
index.js:15
rgbBasisClosed as interpolateRgbBasisClosed: a closed uniform nonrational B-spline through a list of colors in RGB,rgbBasisClosedof rgb.dart. - interpolateZoom → const InterpolateZoom
-
zoom.js:15 the default export: the zoom interpolator of the curvature
sqrt(2)(zoom.js:71), the value that van Wijk and Nuij recommend.
Functions
-
decompose(
double a, double b, double c, double d, double e, double f) → TransformParts -
decompose.js:12
decompose(a, b, c, d, e, f): the parts of the 2D affine matrixmatrix(a, b, c, d, e, f)of CSS, that is -
interpolate<
T> (T a, T b) → T Function(double t) -
value.js:11 the default export (
interpolateof index.js:1): the interpolator fromatob, of the type ofb. -
interpolateArray<
E> (List< E> a, List<E> b) → List<E> Function(double t) -
array.js:4 the default export (
interpolateArrayof index.js:2): the interpolator from the items ofato the items ofb. -
interpolateBasis(
List< double> values) → double Function(double t) -
basis.js:9 the default export (
interpolateBasisof index.js:3): a uniform nonrational B-spline interpolator throughvalues. -
interpolateBasisClosed(
List< double> values) → double Function(double t) -
basisClosed.js:3 the default export (
interpolateBasisClosedof index.js:4): a closed uniform nonrational B-spline interpolator throughvalues. -
interpolateDate(
DateTime a, DateTime b) → DateTime Function(double t) -
date.js:1 the default export (
interpolateDateof index.js:5): the interpolator from the dateato the dateb. -
interpolateDiscrete<
T> (List< T> range) → T Function(double t) -
discrete.js:1 the default export (
interpolateDiscreteof index.js:6): a discrete interpolator overrange. -
interpolateHcl(
Color start, Color end) → Hcl Function(double t) -
hcl.js:20 the default export,
hcl(hue): the interpolator fromstarttoendin HCL, on the shortest path between the hues. -
interpolateHsl(
Color start, Color end) → Hsl Function(double t) -
hsl.js:20 the default export,
hsl(hue): the interpolator fromstarttoendin HSL, on the shortest path between the hues. -
interpolateHue(
double a, double b) → double Function(double t) -
hue.js:3 the default export (
interpolateHueof index.js:7): the interpolator from the angleato the anglebin degrees, along the shortest path. -
interpolateLab(
Color start, Color end) → Lab Function(double t) -
lab.js:4
lab(start, end), exported asinterpolateLab: the interpolator fromstarttoendin CIELAB. -
interpolateNumber(
double a, double b) → double Function(double t) -
number.js:1 the default export (
interpolateNumberof index.js:8): the interpolator from the numberato the numberb. -
interpolateNumberArray<
T extends List< (num> >List< num> a, T b) → T Function(double t) -
numberArray.js:1 the default export (
interpolateNumberArrayof index.js:9): the interpolator from the numbers ofato the numbers ofb. -
interpolateRound(
double a, double b) → double Function(double t) -
round.js:1 the default export (
interpolateRoundof index.js:11): the interpolator from the numberato the numberbthat rounds its result to the nearest whole number. -
interpolateTransform(
TransformParts a, TransformParts b) → TransformParts Function(double t) -
index.js:45 the interpolator of
interpolateTransform(parse, ...): the transform between the partsaandb. -
piecewise<
T> (List< T> values, {T Function(double t) interpolate(T a, T b)?}) → T Function(double t) -
piecewise.js:3 the default export (
piecewiseof index.js:20): the piecewise interpolator throughvalues, with the interpolator factoryinterpolatefor each pair of adjacent values. -
quantize<
T> (T interpolator(double t), int n) → List< T> -
quantize.js:1 the default export (
quantizeof index.js:21):nuniformly-spaced samples ofinterpolator, att = i / (n - 1)forifrom 0 ton - 1.