@veritone-ce/design-system 2.9.0-next.2 → 2.9.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundled_modules/d3-array/src/ascending.js +9 -0
- package/dist/cjs/bundled_modules/d3-array/src/bisect.js +16 -0
- package/dist/cjs/bundled_modules/d3-array/src/bisector.js +62 -0
- package/dist/cjs/bundled_modules/d3-array/src/descending.js +13 -0
- package/dist/cjs/bundled_modules/d3-array/src/deviation.js +12 -0
- package/dist/cjs/bundled_modules/d3-array/src/fsum.js +45 -0
- package/dist/cjs/bundled_modules/d3-array/src/intersection.js +25 -0
- package/dist/cjs/bundled_modules/d3-array/src/max.js +26 -0
- package/dist/cjs/bundled_modules/d3-array/src/mean.js +25 -0
- package/dist/cjs/bundled_modules/d3-array/src/median.js +11 -0
- package/dist/cjs/bundled_modules/d3-array/src/merge.js +15 -0
- package/dist/cjs/bundled_modules/d3-array/src/min.js +26 -0
- package/dist/cjs/bundled_modules/d3-array/src/number.js +27 -0
- package/dist/cjs/bundled_modules/d3-array/src/permute.js +9 -0
- package/dist/cjs/bundled_modules/d3-array/src/quantile.js +36 -0
- package/dist/cjs/bundled_modules/d3-array/src/quickselect.js +59 -0
- package/dist/cjs/bundled_modules/d3-array/src/range.js +19 -0
- package/dist/cjs/bundled_modules/d3-array/src/sort.js +20 -0
- package/dist/cjs/bundled_modules/d3-array/src/sum.js +17 -0
- package/dist/cjs/bundled_modules/d3-array/src/ticks.js +63 -0
- package/dist/cjs/bundled_modules/d3-array/src/union.js +17 -0
- package/dist/cjs/bundled_modules/d3-array/src/variance.js +31 -0
- package/dist/cjs/bundled_modules/d3-color/src/color.js +410 -0
- package/dist/cjs/bundled_modules/d3-color/src/cubehelix.js +68 -0
- package/dist/cjs/bundled_modules/d3-color/src/define.js +17 -0
- package/dist/cjs/bundled_modules/d3-color/src/lab.js +124 -0
- package/dist/cjs/bundled_modules/d3-color/src/math.js +7 -0
- package/dist/cjs/bundled_modules/d3-delaunay/src/delaunay.js +254 -0
- package/dist/cjs/bundled_modules/d3-delaunay/src/path.js +43 -0
- package/dist/cjs/bundled_modules/d3-delaunay/src/polygon.js +23 -0
- package/dist/cjs/bundled_modules/d3-delaunay/src/voronoi.js +338 -0
- package/dist/cjs/bundled_modules/d3-dispatch/src/dispatch.js +88 -0
- package/dist/cjs/bundled_modules/d3-dsv/src/dsv.js +170 -0
- package/dist/cjs/bundled_modules/d3-force/src/center.js +46 -0
- package/dist/cjs/bundled_modules/d3-force/src/collide.js +106 -0
- package/dist/cjs/bundled_modules/d3-force/src/constant.js +11 -0
- package/dist/cjs/bundled_modules/d3-force/src/jiggle.js +9 -0
- package/dist/cjs/bundled_modules/d3-force/src/lcg.js +15 -0
- package/dist/cjs/bundled_modules/d3-force/src/link.js +123 -0
- package/dist/cjs/bundled_modules/d3-force/src/manyBody.js +122 -0
- package/dist/cjs/bundled_modules/d3-force/src/simulation.js +164 -0
- package/dist/cjs/bundled_modules/d3-force/src/x.js +47 -0
- package/dist/cjs/bundled_modules/d3-force/src/y.js +47 -0
- package/dist/cjs/bundled_modules/d3-format/src/defaultLocale.js +24 -0
- package/dist/cjs/bundled_modules/d3-format/src/exponent.js +11 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatDecimal.js +27 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatGroup.js +24 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatNumerals.js +13 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatPrefixAuto.js +22 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatRounded.js +17 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatSpecifier.js +54 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatTrim.js +17 -0
- package/dist/cjs/bundled_modules/d3-format/src/formatTypes.js +25 -0
- package/dist/cjs/bundled_modules/d3-format/src/identity.js +9 -0
- package/dist/cjs/bundled_modules/d3-format/src/locale.js +154 -0
- package/dist/cjs/bundled_modules/d3-format/src/precisionFixed.js +11 -0
- package/dist/cjs/bundled_modules/d3-format/src/precisionPrefix.js +11 -0
- package/dist/cjs/bundled_modules/d3-format/src/precisionRound.js +12 -0
- package/dist/cjs/bundled_modules/d3-geo/src/area.js +83 -0
- package/dist/cjs/bundled_modules/d3-geo/src/bounds.js +185 -0
- package/dist/cjs/bundled_modules/d3-geo/src/cartesian.js +43 -0
- package/dist/cjs/bundled_modules/d3-geo/src/centroid.js +149 -0
- package/dist/cjs/bundled_modules/d3-geo/src/circle.js +35 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/antimeridian.js +98 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/buffer.js +30 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/circle.js +183 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/index.js +137 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/line.js +65 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/rectangle.js +174 -0
- package/dist/cjs/bundled_modules/d3-geo/src/clip/rejoin.js +109 -0
- package/dist/cjs/bundled_modules/d3-geo/src/compose.js +18 -0
- package/dist/cjs/bundled_modules/d3-geo/src/graticule.js +107 -0
- package/dist/cjs/bundled_modules/d3-geo/src/identity.js +7 -0
- package/dist/cjs/bundled_modules/d3-geo/src/math.js +57 -0
- package/dist/cjs/bundled_modules/d3-geo/src/noop.js +7 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/area.js +54 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/bounds.js +32 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/centroid.js +104 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/context.js +51 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/index.js +82 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/measure.js +49 -0
- package/dist/cjs/bundled_modules/d3-geo/src/path/string.js +92 -0
- package/dist/cjs/bundled_modules/d3-geo/src/pointEqual.js +11 -0
- package/dist/cjs/bundled_modules/d3-geo/src/polygonContains.js +80 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/albers.js +16 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/albersUsa.js +117 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthal.js +32 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +24 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +24 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/conic.js +19 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/conicConformal.js +45 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEqualArea.js +40 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEquidistant.js +39 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +19 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/equalEarth.js +43 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/equirectangular.js +19 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/fit.js +54 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/gnomonic.js +23 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/identity.js +91 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/index.js +184 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/mercator.js +60 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/naturalEarth1.js +35 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/orthographic.js +22 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/resample.js +108 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/stereographic.js +25 -0
- package/dist/cjs/bundled_modules/d3-geo/src/projection/transverseMercator.js +34 -0
- package/dist/cjs/bundled_modules/d3-geo/src/rotation.js +86 -0
- package/dist/cjs/bundled_modules/d3-geo/src/stream.js +75 -0
- package/dist/cjs/bundled_modules/d3-geo/src/transform.js +24 -0
- package/dist/cjs/bundled_modules/d3-geo-projection/src/math.js +28 -0
- package/dist/cjs/bundled_modules/d3-geo-projection/src/mollweide.js +38 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/accessors.js +13 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/array.js +27 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/cluster.js +90 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/constant.js +16 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +13 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/count.js +18 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +9 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/each.js +13 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +21 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +18 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/find.js +14 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/index.js +99 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +20 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +15 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/links.js +15 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/path.js +36 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +13 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +15 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/lcg.js +15 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/enclose.js +122 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/index.js +87 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/siblings.js +118 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/partition.js +58 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/stratify.js +151 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/tree.js +243 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/binary.js +52 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/dice.js +18 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/index.js +100 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +42 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/round.js +12 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/slice.js +18 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +12 -0
- package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/squarify.js +74 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/array.js +29 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/basis.js +26 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/basisClosed.js +19 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/color.js +37 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/constant.js +7 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/cubehelix.js +36 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/date.js +12 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/discrete.js +12 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/hcl.js +28 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/hsl.js +28 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/hue.js +15 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/index.js +53 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/lab.js +22 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/number.js +11 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/numberArray.js +21 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/object.js +29 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/piecewise.js +17 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/quantize.js +11 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/rgb.js +63 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/round.js +11 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/string.js +70 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/transform/decompose.js +33 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/transform/index.js +68 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/transform/parse.js +23 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/value.js +28 -0
- package/dist/cjs/bundled_modules/d3-interpolate/src/zoom.js +77 -0
- package/dist/cjs/bundled_modules/d3-path/src/path.js +157 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/add.js +91 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/cover.js +49 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/data.js +13 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/extent.js +11 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/find.js +76 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/quad.js +13 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/quadtree.js +79 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/remove.js +69 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/root.js +9 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/size.js +13 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/visit.js +22 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/visitAfter.js +27 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/x.js +14 -0
- package/dist/cjs/bundled_modules/d3-quadtree/src/y.js +14 -0
- package/dist/cjs/bundled_modules/d3-scale/src/constant.js +11 -0
- package/dist/cjs/bundled_modules/d3-scale/src/continuous.js +136 -0
- package/dist/cjs/bundled_modules/d3-scale/src/diverging.js +116 -0
- package/dist/cjs/bundled_modules/d3-scale/src/identity.js +34 -0
- package/dist/cjs/bundled_modules/d3-scale/src/init.js +31 -0
- package/dist/cjs/bundled_modules/d3-scale/src/linear.js +77 -0
- package/dist/cjs/bundled_modules/d3-scale/src/log.js +148 -0
- package/dist/cjs/bundled_modules/d3-scale/src/nice.js +24 -0
- package/dist/cjs/bundled_modules/d3-scale/src/number.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale/src/ordinal.js +53 -0
- package/dist/cjs/bundled_modules/d3-scale/src/pow.js +58 -0
- package/dist/cjs/bundled_modules/d3-scale/src/quantile.js +65 -0
- package/dist/cjs/bundled_modules/d3-scale/src/quantize.js +62 -0
- package/dist/cjs/bundled_modules/d3-scale/src/sequential.js +119 -0
- package/dist/cjs/bundled_modules/d3-scale/src/symlog.js +42 -0
- package/dist/cjs/bundled_modules/d3-scale/src/threshold.js +45 -0
- package/dist/cjs/bundled_modules/d3-scale/src/tickFormat.js +39 -0
- package/dist/cjs/bundled_modules/d3-scale/src/time.js +85 -0
- package/dist/cjs/bundled_modules/d3-scale/src/utcTime.js +21 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +9 -0
- package/dist/cjs/bundled_modules/d3-scale-chromatic/src/colors.js +11 -0
- package/dist/cjs/bundled_modules/d3-shape/src/arc.js +274 -0
- package/dist/cjs/bundled_modules/d3-shape/src/area.js +118 -0
- package/dist/cjs/bundled_modules/d3-shape/src/array.js +11 -0
- package/dist/cjs/bundled_modules/d3-shape/src/constant.js +11 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/basis.js +59 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/basisClosed.js +58 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/basisOpen.js +45 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/bundle.js +62 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinal.js +69 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalClosed.js +68 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalOpen.js +56 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRom.js +95 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +80 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +68 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/linear.js +37 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/linearClosed.js +31 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/monotone.js +109 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/natural.js +71 -0
- package/dist/cjs/bundled_modules/d3-shape/src/curve/step.js +61 -0
- package/dist/cjs/bundled_modules/d3-shape/src/line.js +64 -0
- package/dist/cjs/bundled_modules/d3-shape/src/math.js +36 -0
- package/dist/cjs/bundled_modules/d3-shape/src/noop.js +7 -0
- package/dist/cjs/bundled_modules/d3-shape/src/path.js +23 -0
- package/dist/cjs/bundled_modules/d3-shape/src/point.js +12 -0
- package/dist/cjs/bundled_modules/d3-shape/src/symbol/circle.js +15 -0
- package/dist/cjs/bundled_modules/d3-shape/src/symbol.js +38 -0
- package/dist/cjs/bundled_modules/d3-time/src/day.js +41 -0
- package/dist/cjs/bundled_modules/d3-time/src/duration.js +17 -0
- package/dist/cjs/bundled_modules/d3-time/src/hour.js +31 -0
- package/dist/cjs/bundled_modules/d3-time/src/interval.js +73 -0
- package/dist/cjs/bundled_modules/d3-time/src/millisecond.js +29 -0
- package/dist/cjs/bundled_modules/d3-time/src/minute.js +31 -0
- package/dist/cjs/bundled_modules/d3-time/src/month.js +32 -0
- package/dist/cjs/bundled_modules/d3-time/src/second.js +18 -0
- package/dist/cjs/bundled_modules/d3-time/src/ticks.js +64 -0
- package/dist/cjs/bundled_modules/d3-time/src/week.js +73 -0
- package/dist/cjs/bundled_modules/d3-time/src/year.js +54 -0
- package/dist/cjs/bundled_modules/d3-time-format/src/defaultLocale.js +33 -0
- package/dist/cjs/bundled_modules/d3-time-format/src/locale.js +694 -0
- package/dist/cjs/bundled_modules/d3-timer/src/interval.js +23 -0
- package/dist/cjs/bundled_modules/d3-timer/src/timer.js +117 -0
- package/dist/cjs/bundled_modules/delaunator/index.js +485 -0
- package/dist/cjs/bundled_modules/internmap/src/index.js +66 -0
- package/dist/cjs/bundled_modules/json-stringify-pretty-compact/index.js +104 -0
- package/dist/cjs/bundled_modules/robust-predicates/esm/orient2d.js +184 -0
- package/dist/cjs/bundled_modules/robust-predicates/esm/util.js +95 -0
- package/dist/cjs/bundled_modules/topojson-client/src/feature.js +77 -0
- package/dist/cjs/bundled_modules/topojson-client/src/identity.js +9 -0
- package/dist/cjs/bundled_modules/topojson-client/src/mesh.js +60 -0
- package/dist/cjs/bundled_modules/topojson-client/src/reverse.js +10 -0
- package/dist/cjs/bundled_modules/topojson-client/src/stitch.js +79 -0
- package/dist/cjs/bundled_modules/topojson-client/src/transform.js +25 -0
- package/dist/cjs/bundled_modules/vega/build/vega.module.js +272 -0
- package/dist/cjs/bundled_modules/vega-canvas/build/vega-canvas.browser.js +18 -0
- package/dist/cjs/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +676 -0
- package/dist/cjs/bundled_modules/vega-dataflow/build/vega-dataflow.js +2102 -0
- package/dist/cjs/bundled_modules/vega-embed/build/embed.js +2939 -0
- package/dist/cjs/bundled_modules/vega-encode/build/vega-encode.js +962 -0
- package/dist/cjs/bundled_modules/vega-event-selector/build/vega-event-selector.js +192 -0
- package/dist/cjs/bundled_modules/vega-expression/build/vega-expression.js +1615 -0
- package/dist/cjs/bundled_modules/vega-force/build/vega-force.js +295 -0
- package/dist/cjs/bundled_modules/vega-format/build/vega-format.js +201 -0
- package/dist/cjs/bundled_modules/vega-functions/build/vega-functions.js +842 -0
- package/dist/cjs/bundled_modules/vega-geo/build/vega-geo.js +1333 -0
- package/dist/cjs/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +580 -0
- package/dist/cjs/bundled_modules/vega-interpreter/build/vega-interpreter.js +310 -0
- package/dist/cjs/bundled_modules/vega-label/build/vega-label.js +876 -0
- package/dist/cjs/bundled_modules/vega-lite/build/index.js +20157 -0
- package/dist/cjs/bundled_modules/vega-loader/build/vega-loader.browser.js +337 -0
- package/dist/cjs/bundled_modules/vega-parser/build/vega-parser.js +3805 -0
- package/dist/cjs/bundled_modules/vega-projection/build/vega-projection.js +90 -0
- package/dist/cjs/bundled_modules/vega-regression/build/vega-regression.js +236 -0
- package/dist/cjs/bundled_modules/vega-runtime/build/vega-runtime.js +588 -0
- package/dist/cjs/bundled_modules/vega-scale/build/vega-scale.js +846 -0
- package/dist/cjs/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +5040 -0
- package/dist/cjs/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +7 -0
- package/dist/cjs/bundled_modules/vega-selections/build/vega-selection.js +342 -0
- package/dist/cjs/bundled_modules/vega-statistics/build/vega-statistics.js +1193 -0
- package/dist/cjs/bundled_modules/vega-themes/build/index.js +853 -0
- package/dist/cjs/bundled_modules/vega-time/build/vega-time.js +342 -0
- package/dist/cjs/bundled_modules/vega-tooltip/build/index.js +353 -0
- package/dist/cjs/bundled_modules/vega-transforms/build/vega-transforms.js +3781 -0
- package/dist/cjs/bundled_modules/vega-util/build/vega-util.js +824 -0
- package/dist/cjs/bundled_modules/vega-view/build/vega-view.js +1306 -0
- package/dist/cjs/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1313 -0
- package/dist/cjs/bundled_modules/vega-voronoi/build/vega-voronoi.js +80 -0
- package/dist/cjs/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +540 -0
- package/dist/cjs/unstable/extras/chart/BarChart.js +42 -0
- package/dist/cjs/unstable/extras/chart/Chart.js +100 -0
- package/dist/cjs/unstable/extras/chart/DistributionChart.js +84 -0
- package/dist/cjs/unstable/extras/chart/DonutChart.js +43 -0
- package/dist/cjs/unstable/extras/chart/LineChart.js +45 -0
- package/dist/cjs/unstable/extras/chart/PieChart.js +39 -0
- package/dist/cjs/unstable/extras/chart/TimelineChart.js +48 -0
- package/dist/cjs/unstable/extras/chart/index.js +23 -0
- package/dist/esm/bundled_modules/d3-array/src/ascending.js +5 -0
- package/dist/esm/bundled_modules/d3-array/src/bisect.js +10 -0
- package/dist/esm/bundled_modules/d3-array/src/bisector.js +58 -0
- package/dist/esm/bundled_modules/d3-array/src/descending.js +9 -0
- package/dist/esm/bundled_modules/d3-array/src/deviation.js +8 -0
- package/dist/esm/bundled_modules/d3-array/src/fsum.js +43 -0
- package/dist/esm/bundled_modules/d3-array/src/intersection.js +21 -0
- package/dist/esm/bundled_modules/d3-array/src/max.js +22 -0
- package/dist/esm/bundled_modules/d3-array/src/mean.js +21 -0
- package/dist/esm/bundled_modules/d3-array/src/median.js +7 -0
- package/dist/esm/bundled_modules/d3-array/src/merge.js +11 -0
- package/dist/esm/bundled_modules/d3-array/src/min.js +22 -0
- package/dist/esm/bundled_modules/d3-array/src/number.js +22 -0
- package/dist/esm/bundled_modules/d3-array/src/permute.js +5 -0
- package/dist/esm/bundled_modules/d3-array/src/quantile.js +31 -0
- package/dist/esm/bundled_modules/d3-array/src/quickselect.js +55 -0
- package/dist/esm/bundled_modules/d3-array/src/range.js +15 -0
- package/dist/esm/bundled_modules/d3-array/src/sort.js +17 -0
- package/dist/esm/bundled_modules/d3-array/src/sum.js +13 -0
- package/dist/esm/bundled_modules/d3-array/src/ticks.js +57 -0
- package/dist/esm/bundled_modules/d3-array/src/union.js +13 -0
- package/dist/esm/bundled_modules/d3-array/src/variance.js +27 -0
- package/dist/esm/bundled_modules/d3-color/src/color.js +398 -0
- package/dist/esm/bundled_modules/d3-color/src/cubehelix.js +63 -0
- package/dist/esm/bundled_modules/d3-color/src/define.js +12 -0
- package/dist/esm/bundled_modules/d3-color/src/lab.js +117 -0
- package/dist/esm/bundled_modules/d3-color/src/math.js +4 -0
- package/dist/esm/bundled_modules/d3-delaunay/src/delaunay.js +250 -0
- package/dist/esm/bundled_modules/d3-delaunay/src/path.js +39 -0
- package/dist/esm/bundled_modules/d3-delaunay/src/polygon.js +19 -0
- package/dist/esm/bundled_modules/d3-delaunay/src/voronoi.js +334 -0
- package/dist/esm/bundled_modules/d3-dispatch/src/dispatch.js +84 -0
- package/dist/esm/bundled_modules/d3-dsv/src/dsv.js +166 -0
- package/dist/esm/bundled_modules/d3-force/src/center.js +42 -0
- package/dist/esm/bundled_modules/d3-force/src/collide.js +102 -0
- package/dist/esm/bundled_modules/d3-force/src/constant.js +7 -0
- package/dist/esm/bundled_modules/d3-force/src/jiggle.js +5 -0
- package/dist/esm/bundled_modules/d3-force/src/lcg.js +11 -0
- package/dist/esm/bundled_modules/d3-force/src/link.js +119 -0
- package/dist/esm/bundled_modules/d3-force/src/manyBody.js +118 -0
- package/dist/esm/bundled_modules/d3-force/src/simulation.js +158 -0
- package/dist/esm/bundled_modules/d3-force/src/x.js +43 -0
- package/dist/esm/bundled_modules/d3-force/src/y.js +43 -0
- package/dist/esm/bundled_modules/d3-format/src/defaultLocale.js +20 -0
- package/dist/esm/bundled_modules/d3-format/src/exponent.js +7 -0
- package/dist/esm/bundled_modules/d3-format/src/formatDecimal.js +22 -0
- package/dist/esm/bundled_modules/d3-format/src/formatGroup.js +20 -0
- package/dist/esm/bundled_modules/d3-format/src/formatNumerals.js +9 -0
- package/dist/esm/bundled_modules/d3-format/src/formatPrefixAuto.js +18 -0
- package/dist/esm/bundled_modules/d3-format/src/formatRounded.js +13 -0
- package/dist/esm/bundled_modules/d3-format/src/formatSpecifier.js +49 -0
- package/dist/esm/bundled_modules/d3-format/src/formatTrim.js +13 -0
- package/dist/esm/bundled_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/esm/bundled_modules/d3-format/src/identity.js +5 -0
- package/dist/esm/bundled_modules/d3-format/src/locale.js +150 -0
- package/dist/esm/bundled_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/esm/bundled_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/esm/bundled_modules/d3-format/src/precisionRound.js +8 -0
- package/dist/esm/bundled_modules/d3-geo/src/area.js +78 -0
- package/dist/esm/bundled_modules/d3-geo/src/bounds.js +181 -0
- package/dist/esm/bundled_modules/d3-geo/src/cartesian.js +35 -0
- package/dist/esm/bundled_modules/d3-geo/src/centroid.js +145 -0
- package/dist/esm/bundled_modules/d3-geo/src/circle.js +33 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/antimeridian.js +94 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/buffer.js +26 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/circle.js +179 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/index.js +133 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/line.js +61 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/rectangle.js +170 -0
- package/dist/esm/bundled_modules/d3-geo/src/clip/rejoin.js +105 -0
- package/dist/esm/bundled_modules/d3-geo/src/compose.js +14 -0
- package/dist/esm/bundled_modules/d3-geo/src/graticule.js +103 -0
- package/dist/esm/bundled_modules/d3-geo/src/identity.js +3 -0
- package/dist/esm/bundled_modules/d3-geo/src/math.js +33 -0
- package/dist/esm/bundled_modules/d3-geo/src/noop.js +3 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/area.js +50 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/bounds.js +28 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/centroid.js +100 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/context.js +47 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/index.js +78 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/measure.js +45 -0
- package/dist/esm/bundled_modules/d3-geo/src/path/string.js +88 -0
- package/dist/esm/bundled_modules/d3-geo/src/pointEqual.js +7 -0
- package/dist/esm/bundled_modules/d3-geo/src/polygonContains.js +76 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/albers.js +12 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/albersUsa.js +113 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthal.js +29 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +19 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +19 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/conic.js +17 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/conicConformal.js +40 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/conicEqualArea.js +35 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/conicEquidistant.js +34 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +17 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/equalEarth.js +38 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/equirectangular.js +14 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/fit.js +49 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/gnomonic.js +18 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/identity.js +87 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/index.js +179 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/mercator.js +54 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/naturalEarth1.js +30 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/orthographic.js +17 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/resample.js +104 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/stereographic.js +20 -0
- package/dist/esm/bundled_modules/d3-geo/src/projection/transverseMercator.js +29 -0
- package/dist/esm/bundled_modules/d3-geo/src/rotation.js +81 -0
- package/dist/esm/bundled_modules/d3-geo/src/stream.js +71 -0
- package/dist/esm/bundled_modules/d3-geo/src/transform.js +22 -0
- package/dist/esm/bundled_modules/d3-geo-projection/src/math.js +18 -0
- package/dist/esm/bundled_modules/d3-geo-projection/src/mollweide.js +31 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/accessors.js +10 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/array.js +22 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/cluster.js +86 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/constant.js +11 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +9 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/count.js +14 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +5 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/each.js +9 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +17 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +14 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/find.js +10 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/index.js +93 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +16 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +11 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/links.js +11 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/path.js +32 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +9 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +11 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/lcg.js +11 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/pack/enclose.js +120 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/pack/index.js +83 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/pack/siblings.js +116 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/partition.js +54 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/stratify.js +147 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/tree.js +239 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/binary.js +48 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/dice.js +14 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/index.js +96 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +38 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/round.js +8 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/slice.js +14 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +8 -0
- package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/squarify.js +68 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/array.js +24 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/basis.js +21 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/basisClosed.js +15 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/color.js +31 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/constant.js +3 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/cubehelix.js +31 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/date.js +8 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/discrete.js +8 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/hcl.js +23 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/hsl.js +23 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/hue.js +11 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/index.js +21 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/lab.js +18 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/number.js +7 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/numberArray.js +16 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/object.js +25 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/piecewise.js +13 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/quantize.js +7 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/rgb.js +57 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/round.js +7 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/string.js +66 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/transform/decompose.js +28 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/transform/index.js +65 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/transform/parse.js +20 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/value.js +24 -0
- package/dist/esm/bundled_modules/d3-interpolate/src/zoom.js +73 -0
- package/dist/esm/bundled_modules/d3-path/src/path.js +154 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/add.js +86 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/cover.js +45 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/data.js +9 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/extent.js +7 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/find.js +72 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/quad.js +9 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/quadtree.js +75 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/remove.js +64 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/root.js +5 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/size.js +9 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/visit.js +18 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/visitAfter.js +23 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/x.js +9 -0
- package/dist/esm/bundled_modules/d3-quadtree/src/y.js +9 -0
- package/dist/esm/bundled_modules/d3-scale/src/constant.js +7 -0
- package/dist/esm/bundled_modules/d3-scale/src/continuous.js +129 -0
- package/dist/esm/bundled_modules/d3-scale/src/diverging.js +108 -0
- package/dist/esm/bundled_modules/d3-scale/src/identity.js +30 -0
- package/dist/esm/bundled_modules/d3-scale/src/init.js +28 -0
- package/dist/esm/bundled_modules/d3-scale/src/linear.js +72 -0
- package/dist/esm/bundled_modules/d3-scale/src/log.js +143 -0
- package/dist/esm/bundled_modules/d3-scale/src/nice.js +20 -0
- package/dist/esm/bundled_modules/d3-scale/src/number.js +5 -0
- package/dist/esm/bundled_modules/d3-scale/src/ordinal.js +48 -0
- package/dist/esm/bundled_modules/d3-scale/src/pow.js +52 -0
- package/dist/esm/bundled_modules/d3-scale/src/quantile.js +61 -0
- package/dist/esm/bundled_modules/d3-scale/src/quantize.js +58 -0
- package/dist/esm/bundled_modules/d3-scale/src/sequential.js +110 -0
- package/dist/esm/bundled_modules/d3-scale/src/symlog.js +37 -0
- package/dist/esm/bundled_modules/d3-scale/src/threshold.js +41 -0
- package/dist/esm/bundled_modules/d3-scale/src/tickFormat.js +35 -0
- package/dist/esm/bundled_modules/d3-scale/src/time.js +80 -0
- package/dist/esm/bundled_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +5 -0
- package/dist/esm/bundled_modules/d3-scale-chromatic/src/colors.js +7 -0
- package/dist/esm/bundled_modules/d3-shape/src/arc.js +270 -0
- package/dist/esm/bundled_modules/d3-shape/src/area.js +114 -0
- package/dist/esm/bundled_modules/d3-shape/src/array.js +7 -0
- package/dist/esm/bundled_modules/d3-shape/src/constant.js +7 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/basis.js +53 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/basisClosed.js +54 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/basisOpen.js +41 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/bundle.js +58 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/cardinal.js +63 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalClosed.js +63 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalOpen.js +51 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRom.js +90 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +76 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +64 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/linear.js +33 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/linearClosed.js +27 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/monotone.js +106 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/natural.js +67 -0
- package/dist/esm/bundled_modules/d3-shape/src/curve/step.js +55 -0
- package/dist/esm/bundled_modules/d3-shape/src/line.js +60 -0
- package/dist/esm/bundled_modules/d3-shape/src/math.js +22 -0
- package/dist/esm/bundled_modules/d3-shape/src/noop.js +3 -0
- package/dist/esm/bundled_modules/d3-shape/src/path.js +21 -0
- package/dist/esm/bundled_modules/d3-shape/src/point.js +9 -0
- package/dist/esm/bundled_modules/d3-shape/src/symbol/circle.js +11 -0
- package/dist/esm/bundled_modules/d3-shape/src/symbol.js +34 -0
- package/dist/esm/bundled_modules/d3-time/src/day.js +37 -0
- package/dist/esm/bundled_modules/d3-time/src/duration.js +9 -0
- package/dist/esm/bundled_modules/d3-time/src/hour.js +28 -0
- package/dist/esm/bundled_modules/d3-time/src/interval.js +71 -0
- package/dist/esm/bundled_modules/d3-time/src/millisecond.js +27 -0
- package/dist/esm/bundled_modules/d3-time/src/minute.js +28 -0
- package/dist/esm/bundled_modules/d3-time/src/month.js +29 -0
- package/dist/esm/bundled_modules/d3-time/src/second.js +16 -0
- package/dist/esm/bundled_modules/d3-time/src/ticks.js +59 -0
- package/dist/esm/bundled_modules/d3-time/src/week.js +58 -0
- package/dist/esm/bundled_modules/d3-time/src/year.js +51 -0
- package/dist/esm/bundled_modules/d3-time-format/src/defaultLocale.js +29 -0
- package/dist/esm/bundled_modules/d3-time-format/src/locale.js +690 -0
- package/dist/esm/bundled_modules/d3-timer/src/interval.js +19 -0
- package/dist/esm/bundled_modules/d3-timer/src/timer.js +112 -0
- package/dist/esm/bundled_modules/delaunator/index.js +481 -0
- package/dist/esm/bundled_modules/internmap/src/index.js +63 -0
- package/dist/esm/bundled_modules/json-stringify-pretty-compact/index.js +100 -0
- package/dist/esm/bundled_modules/robust-predicates/esm/orient2d.js +182 -0
- package/dist/esm/bundled_modules/robust-predicates/esm/util.js +88 -0
- package/dist/esm/bundled_modules/topojson-client/src/feature.js +72 -0
- package/dist/esm/bundled_modules/topojson-client/src/identity.js +5 -0
- package/dist/esm/bundled_modules/topojson-client/src/mesh.js +55 -0
- package/dist/esm/bundled_modules/topojson-client/src/reverse.js +6 -0
- package/dist/esm/bundled_modules/topojson-client/src/stitch.js +75 -0
- package/dist/esm/bundled_modules/topojson-client/src/transform.js +21 -0
- package/dist/esm/bundled_modules/vega/build/vega.module.js +38 -0
- package/dist/esm/bundled_modules/vega-canvas/build/vega-canvas.browser.js +14 -0
- package/dist/esm/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +673 -0
- package/dist/esm/bundled_modules/vega-dataflow/build/vega-dataflow.js +2080 -0
- package/dist/esm/bundled_modules/vega-embed/build/embed.js +2932 -0
- package/dist/esm/bundled_modules/vega-encode/build/vega-encode.js +952 -0
- package/dist/esm/bundled_modules/vega-event-selector/build/vega-event-selector.js +190 -0
- package/dist/esm/bundled_modules/vega-expression/build/vega-expression.js +1597 -0
- package/dist/esm/bundled_modules/vega-force/build/vega-force.js +293 -0
- package/dist/esm/bundled_modules/vega-format/build/vega-format.js +191 -0
- package/dist/esm/bundled_modules/vega-functions/build/vega-functions.js +779 -0
- package/dist/esm/bundled_modules/vega-geo/build/vega-geo.js +1322 -0
- package/dist/esm/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +572 -0
- package/dist/esm/bundled_modules/vega-interpreter/build/vega-interpreter.js +308 -0
- package/dist/esm/bundled_modules/vega-label/build/vega-label.js +874 -0
- package/dist/esm/bundled_modules/vega-lite/build/index.js +20110 -0
- package/dist/esm/bundled_modules/vega-loader/build/vega-loader.browser.js +328 -0
- package/dist/esm/bundled_modules/vega-parser/build/vega-parser.js +3783 -0
- package/dist/esm/bundled_modules/vega-projection/build/vega-projection.js +86 -0
- package/dist/esm/bundled_modules/vega-regression/build/vega-regression.js +233 -0
- package/dist/esm/bundled_modules/vega-runtime/build/vega-runtime.js +586 -0
- package/dist/esm/bundled_modules/vega-scale/build/vega-scale.js +799 -0
- package/dist/esm/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +4982 -0
- package/dist/esm/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +3 -0
- package/dist/esm/bundled_modules/vega-selections/build/vega-selection.js +336 -0
- package/dist/esm/bundled_modules/vega-statistics/build/vega-statistics.js +1157 -0
- package/dist/esm/bundled_modules/vega-themes/build/index.js +837 -0
- package/dist/esm/bundled_modules/vega-time/build/vega-time.js +314 -0
- package/dist/esm/bundled_modules/vega-tooltip/build/index.js +339 -0
- package/dist/esm/bundled_modules/vega-transforms/build/vega-transforms.js +3740 -0
- package/dist/esm/bundled_modules/vega-util/build/vega-util.js +753 -0
- package/dist/esm/bundled_modules/vega-view/build/vega-view.js +1304 -0
- package/dist/esm/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1306 -0
- package/dist/esm/bundled_modules/vega-voronoi/build/vega-voronoi.js +78 -0
- package/dist/esm/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +538 -0
- package/dist/esm/unstable/extras/chart/BarChart.js +40 -0
- package/dist/esm/unstable/extras/chart/Chart.js +96 -0
- package/dist/esm/unstable/extras/chart/DistributionChart.js +82 -0
- package/dist/esm/unstable/extras/chart/DonutChart.js +41 -0
- package/dist/esm/unstable/extras/chart/LineChart.js +43 -0
- package/dist/esm/unstable/extras/chart/PieChart.js +37 -0
- package/dist/esm/unstable/extras/chart/TimelineChart.js +46 -0
- package/dist/esm/unstable/extras/chart/index.js +8 -0
- package/dist/types/unstable/extras/chart/BarChart.d.ts +16 -0
- package/dist/types/unstable/extras/chart/Chart.d.ts +33 -0
- package/dist/types/unstable/extras/chart/DistributionChart.d.ts +18 -0
- package/dist/types/unstable/extras/chart/DonutChart.d.ts +16 -0
- package/dist/types/unstable/extras/chart/LineChart.d.ts +16 -0
- package/dist/types/unstable/extras/chart/PieChart.d.ts +14 -0
- package/dist/types/unstable/extras/chart/TimelineChart.d.ts +15 -0
- package/dist/types/unstable/extras/chart/index.d.ts +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Basis } from './basis.js';
|
|
2
|
+
|
|
3
|
+
function Bundle(context, beta) {
|
|
4
|
+
this._basis = new Basis(context);
|
|
5
|
+
this._beta = beta;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
Bundle.prototype = {
|
|
9
|
+
lineStart: function() {
|
|
10
|
+
this._x = [];
|
|
11
|
+
this._y = [];
|
|
12
|
+
this._basis.lineStart();
|
|
13
|
+
},
|
|
14
|
+
lineEnd: function() {
|
|
15
|
+
var x = this._x,
|
|
16
|
+
y = this._y,
|
|
17
|
+
j = x.length - 1;
|
|
18
|
+
|
|
19
|
+
if (j > 0) {
|
|
20
|
+
var x0 = x[0],
|
|
21
|
+
y0 = y[0],
|
|
22
|
+
dx = x[j] - x0,
|
|
23
|
+
dy = y[j] - y0,
|
|
24
|
+
i = -1,
|
|
25
|
+
t;
|
|
26
|
+
|
|
27
|
+
while (++i <= j) {
|
|
28
|
+
t = i / j;
|
|
29
|
+
this._basis.point(
|
|
30
|
+
this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
|
|
31
|
+
this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
this._x = this._y = null;
|
|
37
|
+
this._basis.lineEnd();
|
|
38
|
+
},
|
|
39
|
+
point: function(x, y) {
|
|
40
|
+
this._x.push(+x);
|
|
41
|
+
this._y.push(+y);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var curveBundle = (function custom(beta) {
|
|
46
|
+
|
|
47
|
+
function bundle(context) {
|
|
48
|
+
return beta === 1 ? new Basis(context) : new Bundle(context, beta);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
bundle.beta = function(beta) {
|
|
52
|
+
return custom(+beta);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
return bundle;
|
|
56
|
+
})(0.85);
|
|
57
|
+
|
|
58
|
+
export { curveBundle as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function point(that, x, y) {
|
|
2
|
+
that._context.bezierCurveTo(
|
|
3
|
+
that._x1 + that._k * (that._x2 - that._x0),
|
|
4
|
+
that._y1 + that._k * (that._y2 - that._y0),
|
|
5
|
+
that._x2 + that._k * (that._x1 - x),
|
|
6
|
+
that._y2 + that._k * (that._y1 - y),
|
|
7
|
+
that._x2,
|
|
8
|
+
that._y2
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function Cardinal(context, tension) {
|
|
13
|
+
this._context = context;
|
|
14
|
+
this._k = (1 - tension) / 6;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
Cardinal.prototype = {
|
|
18
|
+
areaStart: function() {
|
|
19
|
+
this._line = 0;
|
|
20
|
+
},
|
|
21
|
+
areaEnd: function() {
|
|
22
|
+
this._line = NaN;
|
|
23
|
+
},
|
|
24
|
+
lineStart: function() {
|
|
25
|
+
this._x0 = this._x1 = this._x2 =
|
|
26
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
27
|
+
this._point = 0;
|
|
28
|
+
},
|
|
29
|
+
lineEnd: function() {
|
|
30
|
+
switch (this._point) {
|
|
31
|
+
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
32
|
+
case 3: point(this, this._x1, this._y1); break;
|
|
33
|
+
}
|
|
34
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
35
|
+
this._line = 1 - this._line;
|
|
36
|
+
},
|
|
37
|
+
point: function(x, y) {
|
|
38
|
+
x = +x, y = +y;
|
|
39
|
+
switch (this._point) {
|
|
40
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
41
|
+
case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
|
|
42
|
+
case 2: this._point = 3; // falls through
|
|
43
|
+
default: point(this, x, y); break;
|
|
44
|
+
}
|
|
45
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
46
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var curveCardinal = (function custom(tension) {
|
|
51
|
+
|
|
52
|
+
function cardinal(context) {
|
|
53
|
+
return new Cardinal(context, tension);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
cardinal.tension = function(tension) {
|
|
57
|
+
return custom(+tension);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return cardinal;
|
|
61
|
+
})(0);
|
|
62
|
+
|
|
63
|
+
export { Cardinal, curveCardinal as default, point };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import noop from '../noop.js';
|
|
2
|
+
import { point } from './cardinal.js';
|
|
3
|
+
|
|
4
|
+
function CardinalClosed(context, tension) {
|
|
5
|
+
this._context = context;
|
|
6
|
+
this._k = (1 - tension) / 6;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
CardinalClosed.prototype = {
|
|
10
|
+
areaStart: noop,
|
|
11
|
+
areaEnd: noop,
|
|
12
|
+
lineStart: function() {
|
|
13
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
|
|
14
|
+
this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
15
|
+
this._point = 0;
|
|
16
|
+
},
|
|
17
|
+
lineEnd: function() {
|
|
18
|
+
switch (this._point) {
|
|
19
|
+
case 1: {
|
|
20
|
+
this._context.moveTo(this._x3, this._y3);
|
|
21
|
+
this._context.closePath();
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
case 2: {
|
|
25
|
+
this._context.lineTo(this._x3, this._y3);
|
|
26
|
+
this._context.closePath();
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
case 3: {
|
|
30
|
+
this.point(this._x3, this._y3);
|
|
31
|
+
this.point(this._x4, this._y4);
|
|
32
|
+
this.point(this._x5, this._y5);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
point: function(x, y) {
|
|
38
|
+
x = +x, y = +y;
|
|
39
|
+
switch (this._point) {
|
|
40
|
+
case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
|
|
41
|
+
case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
|
|
42
|
+
case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
|
|
43
|
+
default: point(this, x, y); break;
|
|
44
|
+
}
|
|
45
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
46
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var curveCardinalClosed = (function custom(tension) {
|
|
51
|
+
|
|
52
|
+
function cardinal(context) {
|
|
53
|
+
return new CardinalClosed(context, tension);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
cardinal.tension = function(tension) {
|
|
57
|
+
return custom(+tension);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return cardinal;
|
|
61
|
+
})(0);
|
|
62
|
+
|
|
63
|
+
export { CardinalClosed, curveCardinalClosed as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { point } from './cardinal.js';
|
|
2
|
+
|
|
3
|
+
function CardinalOpen(context, tension) {
|
|
4
|
+
this._context = context;
|
|
5
|
+
this._k = (1 - tension) / 6;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
CardinalOpen.prototype = {
|
|
9
|
+
areaStart: function() {
|
|
10
|
+
this._line = 0;
|
|
11
|
+
},
|
|
12
|
+
areaEnd: function() {
|
|
13
|
+
this._line = NaN;
|
|
14
|
+
},
|
|
15
|
+
lineStart: function() {
|
|
16
|
+
this._x0 = this._x1 = this._x2 =
|
|
17
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
18
|
+
this._point = 0;
|
|
19
|
+
},
|
|
20
|
+
lineEnd: function() {
|
|
21
|
+
if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
|
|
22
|
+
this._line = 1 - this._line;
|
|
23
|
+
},
|
|
24
|
+
point: function(x, y) {
|
|
25
|
+
x = +x, y = +y;
|
|
26
|
+
switch (this._point) {
|
|
27
|
+
case 0: this._point = 1; break;
|
|
28
|
+
case 1: this._point = 2; break;
|
|
29
|
+
case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
|
|
30
|
+
case 3: this._point = 4; // falls through
|
|
31
|
+
default: point(this, x, y); break;
|
|
32
|
+
}
|
|
33
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
34
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var curveCardinalOpen = (function custom(tension) {
|
|
39
|
+
|
|
40
|
+
function cardinal(context) {
|
|
41
|
+
return new CardinalOpen(context, tension);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
cardinal.tension = function(tension) {
|
|
45
|
+
return custom(+tension);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
return cardinal;
|
|
49
|
+
})(0);
|
|
50
|
+
|
|
51
|
+
export { CardinalOpen, curveCardinalOpen as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { epsilon } from '../math.js';
|
|
2
|
+
import { Cardinal } from './cardinal.js';
|
|
3
|
+
|
|
4
|
+
function point(that, x, y) {
|
|
5
|
+
var x1 = that._x1,
|
|
6
|
+
y1 = that._y1,
|
|
7
|
+
x2 = that._x2,
|
|
8
|
+
y2 = that._y2;
|
|
9
|
+
|
|
10
|
+
if (that._l01_a > epsilon) {
|
|
11
|
+
var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
|
|
12
|
+
n = 3 * that._l01_a * (that._l01_a + that._l12_a);
|
|
13
|
+
x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
|
|
14
|
+
y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (that._l23_a > epsilon) {
|
|
18
|
+
var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
|
|
19
|
+
m = 3 * that._l23_a * (that._l23_a + that._l12_a);
|
|
20
|
+
x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
|
|
21
|
+
y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function CatmullRom(context, alpha) {
|
|
28
|
+
this._context = context;
|
|
29
|
+
this._alpha = alpha;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
CatmullRom.prototype = {
|
|
33
|
+
areaStart: function() {
|
|
34
|
+
this._line = 0;
|
|
35
|
+
},
|
|
36
|
+
areaEnd: function() {
|
|
37
|
+
this._line = NaN;
|
|
38
|
+
},
|
|
39
|
+
lineStart: function() {
|
|
40
|
+
this._x0 = this._x1 = this._x2 =
|
|
41
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
42
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
43
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
44
|
+
this._point = 0;
|
|
45
|
+
},
|
|
46
|
+
lineEnd: function() {
|
|
47
|
+
switch (this._point) {
|
|
48
|
+
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
49
|
+
case 3: this.point(this._x2, this._y2); break;
|
|
50
|
+
}
|
|
51
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
52
|
+
this._line = 1 - this._line;
|
|
53
|
+
},
|
|
54
|
+
point: function(x, y) {
|
|
55
|
+
x = +x, y = +y;
|
|
56
|
+
|
|
57
|
+
if (this._point) {
|
|
58
|
+
var x23 = this._x2 - x,
|
|
59
|
+
y23 = this._y2 - y;
|
|
60
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
switch (this._point) {
|
|
64
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
65
|
+
case 1: this._point = 2; break;
|
|
66
|
+
case 2: this._point = 3; // falls through
|
|
67
|
+
default: point(this, x, y); break;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
71
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
72
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
73
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
var curveCatmullRom = (function custom(alpha) {
|
|
78
|
+
|
|
79
|
+
function catmullRom(context) {
|
|
80
|
+
return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
catmullRom.alpha = function(alpha) {
|
|
84
|
+
return custom(+alpha);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return catmullRom;
|
|
88
|
+
})(0.5);
|
|
89
|
+
|
|
90
|
+
export { curveCatmullRom as default, point };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CardinalClosed } from './cardinalClosed.js';
|
|
2
|
+
import noop from '../noop.js';
|
|
3
|
+
import { point } from './catmullRom.js';
|
|
4
|
+
|
|
5
|
+
function CatmullRomClosed(context, alpha) {
|
|
6
|
+
this._context = context;
|
|
7
|
+
this._alpha = alpha;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
CatmullRomClosed.prototype = {
|
|
11
|
+
areaStart: noop,
|
|
12
|
+
areaEnd: noop,
|
|
13
|
+
lineStart: function() {
|
|
14
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
|
|
15
|
+
this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
16
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
17
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
18
|
+
this._point = 0;
|
|
19
|
+
},
|
|
20
|
+
lineEnd: function() {
|
|
21
|
+
switch (this._point) {
|
|
22
|
+
case 1: {
|
|
23
|
+
this._context.moveTo(this._x3, this._y3);
|
|
24
|
+
this._context.closePath();
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
case 2: {
|
|
28
|
+
this._context.lineTo(this._x3, this._y3);
|
|
29
|
+
this._context.closePath();
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
case 3: {
|
|
33
|
+
this.point(this._x3, this._y3);
|
|
34
|
+
this.point(this._x4, this._y4);
|
|
35
|
+
this.point(this._x5, this._y5);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
point: function(x, y) {
|
|
41
|
+
x = +x, y = +y;
|
|
42
|
+
|
|
43
|
+
if (this._point) {
|
|
44
|
+
var x23 = this._x2 - x,
|
|
45
|
+
y23 = this._y2 - y;
|
|
46
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
switch (this._point) {
|
|
50
|
+
case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
|
|
51
|
+
case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
|
|
52
|
+
case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
|
|
53
|
+
default: point(this, x, y); break;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
57
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
58
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
59
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
var curveCatmullRomClosed = (function custom(alpha) {
|
|
64
|
+
|
|
65
|
+
function catmullRom(context) {
|
|
66
|
+
return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
catmullRom.alpha = function(alpha) {
|
|
70
|
+
return custom(+alpha);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return catmullRom;
|
|
74
|
+
})(0.5);
|
|
75
|
+
|
|
76
|
+
export { curveCatmullRomClosed as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CardinalOpen } from './cardinalOpen.js';
|
|
2
|
+
import { point } from './catmullRom.js';
|
|
3
|
+
|
|
4
|
+
function CatmullRomOpen(context, alpha) {
|
|
5
|
+
this._context = context;
|
|
6
|
+
this._alpha = alpha;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
CatmullRomOpen.prototype = {
|
|
10
|
+
areaStart: function() {
|
|
11
|
+
this._line = 0;
|
|
12
|
+
},
|
|
13
|
+
areaEnd: function() {
|
|
14
|
+
this._line = NaN;
|
|
15
|
+
},
|
|
16
|
+
lineStart: function() {
|
|
17
|
+
this._x0 = this._x1 = this._x2 =
|
|
18
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
19
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
20
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
21
|
+
this._point = 0;
|
|
22
|
+
},
|
|
23
|
+
lineEnd: function() {
|
|
24
|
+
if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
|
|
25
|
+
this._line = 1 - this._line;
|
|
26
|
+
},
|
|
27
|
+
point: function(x, y) {
|
|
28
|
+
x = +x, y = +y;
|
|
29
|
+
|
|
30
|
+
if (this._point) {
|
|
31
|
+
var x23 = this._x2 - x,
|
|
32
|
+
y23 = this._y2 - y;
|
|
33
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
switch (this._point) {
|
|
37
|
+
case 0: this._point = 1; break;
|
|
38
|
+
case 1: this._point = 2; break;
|
|
39
|
+
case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
|
|
40
|
+
case 3: this._point = 4; // falls through
|
|
41
|
+
default: point(this, x, y); break;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
45
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
46
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
47
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var curveCatmullRomOpen = (function custom(alpha) {
|
|
52
|
+
|
|
53
|
+
function catmullRom(context) {
|
|
54
|
+
return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
catmullRom.alpha = function(alpha) {
|
|
58
|
+
return custom(+alpha);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return catmullRom;
|
|
62
|
+
})(0.5);
|
|
63
|
+
|
|
64
|
+
export { curveCatmullRomOpen as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function Linear(context) {
|
|
2
|
+
this._context = context;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
Linear.prototype = {
|
|
6
|
+
areaStart: function() {
|
|
7
|
+
this._line = 0;
|
|
8
|
+
},
|
|
9
|
+
areaEnd: function() {
|
|
10
|
+
this._line = NaN;
|
|
11
|
+
},
|
|
12
|
+
lineStart: function() {
|
|
13
|
+
this._point = 0;
|
|
14
|
+
},
|
|
15
|
+
lineEnd: function() {
|
|
16
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
17
|
+
this._line = 1 - this._line;
|
|
18
|
+
},
|
|
19
|
+
point: function(x, y) {
|
|
20
|
+
x = +x, y = +y;
|
|
21
|
+
switch (this._point) {
|
|
22
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
23
|
+
case 1: this._point = 2; // falls through
|
|
24
|
+
default: this._context.lineTo(x, y); break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function curveLinear(context) {
|
|
30
|
+
return new Linear(context);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { curveLinear as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import noop from '../noop.js';
|
|
2
|
+
|
|
3
|
+
function LinearClosed(context) {
|
|
4
|
+
this._context = context;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
LinearClosed.prototype = {
|
|
8
|
+
areaStart: noop,
|
|
9
|
+
areaEnd: noop,
|
|
10
|
+
lineStart: function() {
|
|
11
|
+
this._point = 0;
|
|
12
|
+
},
|
|
13
|
+
lineEnd: function() {
|
|
14
|
+
if (this._point) this._context.closePath();
|
|
15
|
+
},
|
|
16
|
+
point: function(x, y) {
|
|
17
|
+
x = +x, y = +y;
|
|
18
|
+
if (this._point) this._context.lineTo(x, y);
|
|
19
|
+
else this._point = 1, this._context.moveTo(x, y);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function curveLinearClosed(context) {
|
|
24
|
+
return new LinearClosed(context);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { curveLinearClosed as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
function sign(x) {
|
|
2
|
+
return x < 0 ? -1 : 1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// Calculate the slopes of the tangents (Hermite-type interpolation) based on
|
|
6
|
+
// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
|
|
7
|
+
// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
|
|
8
|
+
// NOV(II), P. 443, 1990.
|
|
9
|
+
function slope3(that, x2, y2) {
|
|
10
|
+
var h0 = that._x1 - that._x0,
|
|
11
|
+
h1 = x2 - that._x1,
|
|
12
|
+
s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
|
|
13
|
+
s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
|
|
14
|
+
p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
15
|
+
return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Calculate a one-sided slope.
|
|
19
|
+
function slope2(that, t) {
|
|
20
|
+
var h = that._x1 - that._x0;
|
|
21
|
+
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
|
|
25
|
+
// "you can express cubic Hermite interpolation in terms of cubic Bézier curves
|
|
26
|
+
// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
|
|
27
|
+
function point(that, t0, t1) {
|
|
28
|
+
var x0 = that._x0,
|
|
29
|
+
y0 = that._y0,
|
|
30
|
+
x1 = that._x1,
|
|
31
|
+
y1 = that._y1,
|
|
32
|
+
dx = (x1 - x0) / 3;
|
|
33
|
+
that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function MonotoneX(context) {
|
|
37
|
+
this._context = context;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
MonotoneX.prototype = {
|
|
41
|
+
areaStart: function() {
|
|
42
|
+
this._line = 0;
|
|
43
|
+
},
|
|
44
|
+
areaEnd: function() {
|
|
45
|
+
this._line = NaN;
|
|
46
|
+
},
|
|
47
|
+
lineStart: function() {
|
|
48
|
+
this._x0 = this._x1 =
|
|
49
|
+
this._y0 = this._y1 =
|
|
50
|
+
this._t0 = NaN;
|
|
51
|
+
this._point = 0;
|
|
52
|
+
},
|
|
53
|
+
lineEnd: function() {
|
|
54
|
+
switch (this._point) {
|
|
55
|
+
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
56
|
+
case 3: point(this, this._t0, slope2(this, this._t0)); break;
|
|
57
|
+
}
|
|
58
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
59
|
+
this._line = 1 - this._line;
|
|
60
|
+
},
|
|
61
|
+
point: function(x, y) {
|
|
62
|
+
var t1 = NaN;
|
|
63
|
+
|
|
64
|
+
x = +x, y = +y;
|
|
65
|
+
if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
|
|
66
|
+
switch (this._point) {
|
|
67
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
68
|
+
case 1: this._point = 2; break;
|
|
69
|
+
case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
|
|
70
|
+
default: point(this, this._t0, t1 = slope3(this, x, y)); break;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
this._x0 = this._x1, this._x1 = x;
|
|
74
|
+
this._y0 = this._y1, this._y1 = y;
|
|
75
|
+
this._t0 = t1;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
function MonotoneY(context) {
|
|
80
|
+
this._context = new ReflectContext(context);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
|
|
84
|
+
MonotoneX.prototype.point.call(this, y, x);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
function ReflectContext(context) {
|
|
88
|
+
this._context = context;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
ReflectContext.prototype = {
|
|
92
|
+
moveTo: function(x, y) { this._context.moveTo(y, x); },
|
|
93
|
+
closePath: function() { this._context.closePath(); },
|
|
94
|
+
lineTo: function(x, y) { this._context.lineTo(y, x); },
|
|
95
|
+
bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
function monotoneX(context) {
|
|
99
|
+
return new MonotoneX(context);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function monotoneY(context) {
|
|
103
|
+
return new MonotoneY(context);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { monotoneX, monotoneY };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function Natural(context) {
|
|
2
|
+
this._context = context;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
Natural.prototype = {
|
|
6
|
+
areaStart: function() {
|
|
7
|
+
this._line = 0;
|
|
8
|
+
},
|
|
9
|
+
areaEnd: function() {
|
|
10
|
+
this._line = NaN;
|
|
11
|
+
},
|
|
12
|
+
lineStart: function() {
|
|
13
|
+
this._x = [];
|
|
14
|
+
this._y = [];
|
|
15
|
+
},
|
|
16
|
+
lineEnd: function() {
|
|
17
|
+
var x = this._x,
|
|
18
|
+
y = this._y,
|
|
19
|
+
n = x.length;
|
|
20
|
+
|
|
21
|
+
if (n) {
|
|
22
|
+
this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
|
|
23
|
+
if (n === 2) {
|
|
24
|
+
this._context.lineTo(x[1], y[1]);
|
|
25
|
+
} else {
|
|
26
|
+
var px = controlPoints(x),
|
|
27
|
+
py = controlPoints(y);
|
|
28
|
+
for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
|
|
29
|
+
this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
|
|
35
|
+
this._line = 1 - this._line;
|
|
36
|
+
this._x = this._y = null;
|
|
37
|
+
},
|
|
38
|
+
point: function(x, y) {
|
|
39
|
+
this._x.push(+x);
|
|
40
|
+
this._y.push(+y);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// See https://www.particleincell.com/2012/bezier-splines/ for derivation.
|
|
45
|
+
function controlPoints(x) {
|
|
46
|
+
var i,
|
|
47
|
+
n = x.length - 1,
|
|
48
|
+
m,
|
|
49
|
+
a = new Array(n),
|
|
50
|
+
b = new Array(n),
|
|
51
|
+
r = new Array(n);
|
|
52
|
+
a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
|
|
53
|
+
for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
|
|
54
|
+
a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
|
|
55
|
+
for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
|
|
56
|
+
a[n - 1] = r[n - 1] / b[n - 1];
|
|
57
|
+
for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
|
|
58
|
+
b[n - 1] = (x[n] + a[n - 1]) / 2;
|
|
59
|
+
for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
|
|
60
|
+
return [a, b];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function curveNatural(context) {
|
|
64
|
+
return new Natural(context);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { curveNatural as default };
|