@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,314 @@
|
|
|
1
|
+
import { extend, array, error, hasOwnProperty as has, span, peek, toSet, constant, zero, one } from '../../vega-util/build/vega-util.js';
|
|
2
|
+
import { timeMonth, utcMonth } from '../../d3-time/src/month.js';
|
|
3
|
+
import { utcDay, timeDay } from '../../d3-time/src/day.js';
|
|
4
|
+
import { utcSunday, timeSunday } from '../../d3-time/src/week.js';
|
|
5
|
+
import bisector from '../../d3-array/src/bisector.js';
|
|
6
|
+
import { tickStep } from '../../d3-array/src/ticks.js';
|
|
7
|
+
import { millisecond } from '../../d3-time/src/millisecond.js';
|
|
8
|
+
import { second } from '../../d3-time/src/second.js';
|
|
9
|
+
import { timeMinute, utcMinute } from '../../d3-time/src/minute.js';
|
|
10
|
+
import { timeHour, utcHour } from '../../d3-time/src/hour.js';
|
|
11
|
+
import { timeYear, utcYear } from '../../d3-time/src/year.js';
|
|
12
|
+
|
|
13
|
+
const YEAR = 'year';
|
|
14
|
+
const QUARTER = 'quarter';
|
|
15
|
+
const MONTH = 'month';
|
|
16
|
+
const WEEK = 'week';
|
|
17
|
+
const DATE = 'date';
|
|
18
|
+
const DAY = 'day';
|
|
19
|
+
const DAYOFYEAR = 'dayofyear';
|
|
20
|
+
const HOURS = 'hours';
|
|
21
|
+
const MINUTES = 'minutes';
|
|
22
|
+
const SECONDS = 'seconds';
|
|
23
|
+
const MILLISECONDS = 'milliseconds';
|
|
24
|
+
const TIME_UNITS = [YEAR, QUARTER, MONTH, WEEK, DATE, DAY, DAYOFYEAR, HOURS, MINUTES, SECONDS, MILLISECONDS];
|
|
25
|
+
const UNITS = TIME_UNITS.reduce((o, u, i) => (o[u] = 1 + i, o), {});
|
|
26
|
+
function timeUnits(units) {
|
|
27
|
+
const u = array(units).slice(),
|
|
28
|
+
m = {};
|
|
29
|
+
|
|
30
|
+
// check validity
|
|
31
|
+
if (!u.length) error('Missing time unit.');
|
|
32
|
+
u.forEach(unit => {
|
|
33
|
+
if (has(UNITS, unit)) {
|
|
34
|
+
m[unit] = 1;
|
|
35
|
+
} else {
|
|
36
|
+
error(`Invalid time unit: ${unit}.`);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const numTypes = (m[WEEK] || m[DAY] ? 1 : 0) + (m[QUARTER] || m[MONTH] || m[DATE] ? 1 : 0) + (m[DAYOFYEAR] ? 1 : 0);
|
|
40
|
+
if (numTypes > 1) {
|
|
41
|
+
error(`Incompatible time units: ${units}`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// ensure proper sort order
|
|
45
|
+
u.sort((a, b) => UNITS[a] - UNITS[b]);
|
|
46
|
+
return u;
|
|
47
|
+
}
|
|
48
|
+
const defaultSpecifiers = {
|
|
49
|
+
[YEAR]: '%Y ',
|
|
50
|
+
[QUARTER]: 'Q%q ',
|
|
51
|
+
[MONTH]: '%b ',
|
|
52
|
+
[DATE]: '%d ',
|
|
53
|
+
[WEEK]: 'W%U ',
|
|
54
|
+
[DAY]: '%a ',
|
|
55
|
+
[DAYOFYEAR]: '%j ',
|
|
56
|
+
[HOURS]: '%H:00',
|
|
57
|
+
[MINUTES]: '00:%M',
|
|
58
|
+
[SECONDS]: ':%S',
|
|
59
|
+
[MILLISECONDS]: '.%L',
|
|
60
|
+
[`${YEAR}-${MONTH}`]: '%Y-%m ',
|
|
61
|
+
[`${YEAR}-${MONTH}-${DATE}`]: '%Y-%m-%d ',
|
|
62
|
+
[`${HOURS}-${MINUTES}`]: '%H:%M'
|
|
63
|
+
};
|
|
64
|
+
function timeUnitSpecifier(units, specifiers) {
|
|
65
|
+
const s = extend({}, defaultSpecifiers, specifiers),
|
|
66
|
+
u = timeUnits(units),
|
|
67
|
+
n = u.length;
|
|
68
|
+
let fmt = '',
|
|
69
|
+
start = 0,
|
|
70
|
+
end,
|
|
71
|
+
key;
|
|
72
|
+
for (start = 0; start < n;) {
|
|
73
|
+
for (end = u.length; end > start; --end) {
|
|
74
|
+
key = u.slice(start, end).join('-');
|
|
75
|
+
if (s[key] != null) {
|
|
76
|
+
fmt += s[key];
|
|
77
|
+
start = end;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return fmt.trim();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const t0 = new Date();
|
|
86
|
+
function localYear(y) {
|
|
87
|
+
t0.setFullYear(y);
|
|
88
|
+
t0.setMonth(0);
|
|
89
|
+
t0.setDate(1);
|
|
90
|
+
t0.setHours(0, 0, 0, 0);
|
|
91
|
+
return t0;
|
|
92
|
+
}
|
|
93
|
+
function dayofyear(d) {
|
|
94
|
+
return localDayOfYear(new Date(d));
|
|
95
|
+
}
|
|
96
|
+
function week(d) {
|
|
97
|
+
return localWeekNum(new Date(d));
|
|
98
|
+
}
|
|
99
|
+
function localDayOfYear(d) {
|
|
100
|
+
return timeDay.count(localYear(d.getFullYear()) - 1, d);
|
|
101
|
+
}
|
|
102
|
+
function localWeekNum(d) {
|
|
103
|
+
return timeSunday.count(localYear(d.getFullYear()) - 1, d);
|
|
104
|
+
}
|
|
105
|
+
function localFirst(y) {
|
|
106
|
+
return localYear(y).getDay();
|
|
107
|
+
}
|
|
108
|
+
function localDate(y, m, d, H, M, S, L) {
|
|
109
|
+
if (0 <= y && y < 100) {
|
|
110
|
+
const date = new Date(-1, m, d, H, M, S, L);
|
|
111
|
+
date.setFullYear(y);
|
|
112
|
+
return date;
|
|
113
|
+
}
|
|
114
|
+
return new Date(y, m, d, H, M, S, L);
|
|
115
|
+
}
|
|
116
|
+
function utcdayofyear(d) {
|
|
117
|
+
return utcDayOfYear(new Date(d));
|
|
118
|
+
}
|
|
119
|
+
function utcweek(d) {
|
|
120
|
+
return utcWeekNum(new Date(d));
|
|
121
|
+
}
|
|
122
|
+
function utcDayOfYear(d) {
|
|
123
|
+
const y = Date.UTC(d.getUTCFullYear(), 0, 1);
|
|
124
|
+
return utcDay.count(y - 1, d);
|
|
125
|
+
}
|
|
126
|
+
function utcWeekNum(d) {
|
|
127
|
+
const y = Date.UTC(d.getUTCFullYear(), 0, 1);
|
|
128
|
+
return utcSunday.count(y - 1, d);
|
|
129
|
+
}
|
|
130
|
+
function utcFirst(y) {
|
|
131
|
+
t0.setTime(Date.UTC(y, 0, 1));
|
|
132
|
+
return t0.getUTCDay();
|
|
133
|
+
}
|
|
134
|
+
function utcDate(y, m, d, H, M, S, L) {
|
|
135
|
+
if (0 <= y && y < 100) {
|
|
136
|
+
const date = new Date(Date.UTC(-1, m, d, H, M, S, L));
|
|
137
|
+
date.setUTCFullYear(d.y);
|
|
138
|
+
return date;
|
|
139
|
+
}
|
|
140
|
+
return new Date(Date.UTC(y, m, d, H, M, S, L));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function floor(units, step, get, inv, newDate) {
|
|
144
|
+
const s = step || 1,
|
|
145
|
+
b = peek(units),
|
|
146
|
+
_ = (unit, p, key) => {
|
|
147
|
+
key = key || unit;
|
|
148
|
+
return getUnit(get[key], inv[key], unit === b && s, p);
|
|
149
|
+
};
|
|
150
|
+
const t = new Date(),
|
|
151
|
+
u = toSet(units),
|
|
152
|
+
y = u[YEAR] ? _(YEAR) : constant(2012),
|
|
153
|
+
m = u[MONTH] ? _(MONTH) : u[QUARTER] ? _(QUARTER) : zero,
|
|
154
|
+
d = u[WEEK] && u[DAY] ? _(DAY, 1, WEEK + DAY) : u[WEEK] ? _(WEEK, 1) : u[DAY] ? _(DAY, 1) : u[DATE] ? _(DATE, 1) : u[DAYOFYEAR] ? _(DAYOFYEAR, 1) : one,
|
|
155
|
+
H = u[HOURS] ? _(HOURS) : zero,
|
|
156
|
+
M = u[MINUTES] ? _(MINUTES) : zero,
|
|
157
|
+
S = u[SECONDS] ? _(SECONDS) : zero,
|
|
158
|
+
L = u[MILLISECONDS] ? _(MILLISECONDS) : zero;
|
|
159
|
+
return function (v) {
|
|
160
|
+
t.setTime(+v);
|
|
161
|
+
const year = y(t);
|
|
162
|
+
return newDate(year, m(t), d(t, year), H(t), M(t), S(t), L(t));
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function getUnit(f, inv, step, phase) {
|
|
166
|
+
const u = step <= 1 ? f : phase ? (d, y) => phase + step * Math.floor((f(d, y) - phase) / step) : (d, y) => step * Math.floor(f(d, y) / step);
|
|
167
|
+
return inv ? (d, y) => inv(u(d, y), y) : u;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// returns the day of the year based on week number, day of week,
|
|
171
|
+
// and the day of the week for the first day of the year
|
|
172
|
+
function weekday(week, day, firstDay) {
|
|
173
|
+
return day + week * 7 - (firstDay + 6) % 7;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// -- LOCAL TIME --
|
|
177
|
+
|
|
178
|
+
const localGet = {
|
|
179
|
+
[YEAR]: d => d.getFullYear(),
|
|
180
|
+
[QUARTER]: d => Math.floor(d.getMonth() / 3),
|
|
181
|
+
[MONTH]: d => d.getMonth(),
|
|
182
|
+
[DATE]: d => d.getDate(),
|
|
183
|
+
[HOURS]: d => d.getHours(),
|
|
184
|
+
[MINUTES]: d => d.getMinutes(),
|
|
185
|
+
[SECONDS]: d => d.getSeconds(),
|
|
186
|
+
[MILLISECONDS]: d => d.getMilliseconds(),
|
|
187
|
+
[DAYOFYEAR]: d => localDayOfYear(d),
|
|
188
|
+
[WEEK]: d => localWeekNum(d),
|
|
189
|
+
[WEEK + DAY]: (d, y) => weekday(localWeekNum(d), d.getDay(), localFirst(y)),
|
|
190
|
+
[DAY]: (d, y) => weekday(1, d.getDay(), localFirst(y))
|
|
191
|
+
};
|
|
192
|
+
const localInv = {
|
|
193
|
+
[QUARTER]: q => 3 * q,
|
|
194
|
+
[WEEK]: (w, y) => weekday(w, 0, localFirst(y))
|
|
195
|
+
};
|
|
196
|
+
function timeFloor(units, step) {
|
|
197
|
+
return floor(units, step || 1, localGet, localInv, localDate);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// -- UTC TIME --
|
|
201
|
+
|
|
202
|
+
const utcGet = {
|
|
203
|
+
[YEAR]: d => d.getUTCFullYear(),
|
|
204
|
+
[QUARTER]: d => Math.floor(d.getUTCMonth() / 3),
|
|
205
|
+
[MONTH]: d => d.getUTCMonth(),
|
|
206
|
+
[DATE]: d => d.getUTCDate(),
|
|
207
|
+
[HOURS]: d => d.getUTCHours(),
|
|
208
|
+
[MINUTES]: d => d.getUTCMinutes(),
|
|
209
|
+
[SECONDS]: d => d.getUTCSeconds(),
|
|
210
|
+
[MILLISECONDS]: d => d.getUTCMilliseconds(),
|
|
211
|
+
[DAYOFYEAR]: d => utcDayOfYear(d),
|
|
212
|
+
[WEEK]: d => utcWeekNum(d),
|
|
213
|
+
[DAY]: (d, y) => weekday(1, d.getUTCDay(), utcFirst(y)),
|
|
214
|
+
[WEEK + DAY]: (d, y) => weekday(utcWeekNum(d), d.getUTCDay(), utcFirst(y))
|
|
215
|
+
};
|
|
216
|
+
const utcInv = {
|
|
217
|
+
[QUARTER]: q => 3 * q,
|
|
218
|
+
[WEEK]: (w, y) => weekday(w, 0, utcFirst(y))
|
|
219
|
+
};
|
|
220
|
+
function utcFloor(units, step) {
|
|
221
|
+
return floor(units, step || 1, utcGet, utcInv, utcDate);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const timeIntervals = {
|
|
225
|
+
[YEAR]: timeYear,
|
|
226
|
+
[QUARTER]: timeMonth.every(3),
|
|
227
|
+
[MONTH]: timeMonth,
|
|
228
|
+
[WEEK]: timeSunday,
|
|
229
|
+
[DATE]: timeDay,
|
|
230
|
+
[DAY]: timeDay,
|
|
231
|
+
[DAYOFYEAR]: timeDay,
|
|
232
|
+
[HOURS]: timeHour,
|
|
233
|
+
[MINUTES]: timeMinute,
|
|
234
|
+
[SECONDS]: second,
|
|
235
|
+
[MILLISECONDS]: millisecond
|
|
236
|
+
};
|
|
237
|
+
const utcIntervals = {
|
|
238
|
+
[YEAR]: utcYear,
|
|
239
|
+
[QUARTER]: utcMonth.every(3),
|
|
240
|
+
[MONTH]: utcMonth,
|
|
241
|
+
[WEEK]: utcSunday,
|
|
242
|
+
[DATE]: utcDay,
|
|
243
|
+
[DAY]: utcDay,
|
|
244
|
+
[DAYOFYEAR]: utcDay,
|
|
245
|
+
[HOURS]: utcHour,
|
|
246
|
+
[MINUTES]: utcMinute,
|
|
247
|
+
[SECONDS]: second,
|
|
248
|
+
[MILLISECONDS]: millisecond
|
|
249
|
+
};
|
|
250
|
+
function timeInterval(unit) {
|
|
251
|
+
return timeIntervals[unit];
|
|
252
|
+
}
|
|
253
|
+
function utcInterval(unit) {
|
|
254
|
+
return utcIntervals[unit];
|
|
255
|
+
}
|
|
256
|
+
function offset(ival, date, step) {
|
|
257
|
+
return ival ? ival.offset(date, step) : undefined;
|
|
258
|
+
}
|
|
259
|
+
function timeOffset(unit, date, step) {
|
|
260
|
+
return offset(timeInterval(unit), date, step);
|
|
261
|
+
}
|
|
262
|
+
function utcOffset(unit, date, step) {
|
|
263
|
+
return offset(utcInterval(unit), date, step);
|
|
264
|
+
}
|
|
265
|
+
function sequence(ival, start, stop, step) {
|
|
266
|
+
return ival ? ival.range(start, stop, step) : undefined;
|
|
267
|
+
}
|
|
268
|
+
function timeSequence(unit, start, stop, step) {
|
|
269
|
+
return sequence(timeInterval(unit), start, stop, step);
|
|
270
|
+
}
|
|
271
|
+
function utcSequence(unit, start, stop, step) {
|
|
272
|
+
return sequence(utcInterval(unit), start, stop, step);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const durationSecond = 1000,
|
|
276
|
+
durationMinute = durationSecond * 60,
|
|
277
|
+
durationHour = durationMinute * 60,
|
|
278
|
+
durationDay = durationHour * 24,
|
|
279
|
+
durationWeek = durationDay * 7,
|
|
280
|
+
durationMonth = durationDay * 30,
|
|
281
|
+
durationYear = durationDay * 365;
|
|
282
|
+
const Milli = [YEAR, MONTH, DATE, HOURS, MINUTES, SECONDS, MILLISECONDS],
|
|
283
|
+
Seconds = Milli.slice(0, -1),
|
|
284
|
+
Minutes = Seconds.slice(0, -1),
|
|
285
|
+
Hours = Minutes.slice(0, -1),
|
|
286
|
+
Day = Hours.slice(0, -1),
|
|
287
|
+
Week = [YEAR, WEEK],
|
|
288
|
+
Month = [YEAR, MONTH],
|
|
289
|
+
Year = [YEAR];
|
|
290
|
+
const intervals = [[Seconds, 1, durationSecond], [Seconds, 5, 5 * durationSecond], [Seconds, 15, 15 * durationSecond], [Seconds, 30, 30 * durationSecond], [Minutes, 1, durationMinute], [Minutes, 5, 5 * durationMinute], [Minutes, 15, 15 * durationMinute], [Minutes, 30, 30 * durationMinute], [Hours, 1, durationHour], [Hours, 3, 3 * durationHour], [Hours, 6, 6 * durationHour], [Hours, 12, 12 * durationHour], [Day, 1, durationDay], [Week, 1, durationWeek], [Month, 1, durationMonth], [Month, 3, 3 * durationMonth], [Year, 1, durationYear]];
|
|
291
|
+
function bin (opt) {
|
|
292
|
+
const ext = opt.extent,
|
|
293
|
+
max = opt.maxbins || 40,
|
|
294
|
+
target = Math.abs(span(ext)) / max;
|
|
295
|
+
let i = bisector(i => i[2]).right(intervals, target),
|
|
296
|
+
units,
|
|
297
|
+
step;
|
|
298
|
+
if (i === intervals.length) {
|
|
299
|
+
units = Year, step = tickStep(ext[0] / durationYear, ext[1] / durationYear, max);
|
|
300
|
+
} else if (i) {
|
|
301
|
+
i = intervals[target / intervals[i - 1][2] < intervals[i][2] / target ? i - 1 : i];
|
|
302
|
+
units = i[0];
|
|
303
|
+
step = i[1];
|
|
304
|
+
} else {
|
|
305
|
+
units = Milli;
|
|
306
|
+
step = Math.max(tickStep(ext[0], ext[1], max), 1);
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
units,
|
|
310
|
+
step
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export { DATE, DAY, DAYOFYEAR, HOURS, MILLISECONDS, MINUTES, MONTH, QUARTER, SECONDS, TIME_UNITS, WEEK, YEAR, dayofyear, bin as timeBin, timeFloor, timeInterval, timeOffset, timeSequence, timeUnitSpecifier, timeUnits, utcFloor, utcInterval, utcOffset, utcSequence, utcdayofyear, utcweek, week };
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { isArray, isString, isObject } from '../../vega-util/build/vega-util.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Format the value to be shown in the tooltip.
|
|
5
|
+
*
|
|
6
|
+
* @param value The value to show in the tooltip.
|
|
7
|
+
* @param valueToHtml Function to convert a single cell value to an HTML string
|
|
8
|
+
*/
|
|
9
|
+
function formatValue(value, valueToHtml, maxDepth, baseURL) {
|
|
10
|
+
if (isArray(value)) {
|
|
11
|
+
return `[${value.map((v) => valueToHtml(isString(v) ? v : stringify(v, maxDepth))).join(', ')}]`;
|
|
12
|
+
}
|
|
13
|
+
if (isObject(value)) {
|
|
14
|
+
let content = '';
|
|
15
|
+
const { title, image, ...rest } = value;
|
|
16
|
+
if (title) {
|
|
17
|
+
content += `<h2>${valueToHtml(title)}</h2>`;
|
|
18
|
+
}
|
|
19
|
+
if (image) {
|
|
20
|
+
content += `<img src="${new URL(valueToHtml(image), baseURL || location.href).href}">`;
|
|
21
|
+
}
|
|
22
|
+
const keys = Object.keys(rest);
|
|
23
|
+
if (keys.length > 0) {
|
|
24
|
+
content += '<table>';
|
|
25
|
+
for (const key of keys) {
|
|
26
|
+
let val = rest[key];
|
|
27
|
+
// ignore undefined properties
|
|
28
|
+
if (val === undefined) {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (isObject(val)) {
|
|
32
|
+
val = stringify(val, maxDepth);
|
|
33
|
+
}
|
|
34
|
+
content += `<tr><td class="key">${valueToHtml(key)}</td><td class="value">${valueToHtml(val)}</td></tr>`;
|
|
35
|
+
}
|
|
36
|
+
content += `</table>`;
|
|
37
|
+
}
|
|
38
|
+
return content || '{}'; // show empty object if there are no properties
|
|
39
|
+
}
|
|
40
|
+
return valueToHtml(value);
|
|
41
|
+
}
|
|
42
|
+
function replacer(maxDepth) {
|
|
43
|
+
const stack = [];
|
|
44
|
+
return function (key, value) {
|
|
45
|
+
if (typeof value !== 'object' || value === null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
const pos = stack.indexOf(this) + 1;
|
|
49
|
+
stack.length = pos;
|
|
50
|
+
if (stack.length > maxDepth) {
|
|
51
|
+
return '[Object]';
|
|
52
|
+
}
|
|
53
|
+
if (stack.indexOf(value) >= 0) {
|
|
54
|
+
return '[Circular]';
|
|
55
|
+
}
|
|
56
|
+
stack.push(value);
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Stringify any JS object to valid JSON
|
|
62
|
+
*/
|
|
63
|
+
function stringify(obj, maxDepth) {
|
|
64
|
+
return JSON.stringify(obj, replacer(maxDepth));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// generated with build-style.sh
|
|
68
|
+
var defaultStyle = `#vg-tooltip-element {
|
|
69
|
+
visibility: hidden;
|
|
70
|
+
padding: 8px;
|
|
71
|
+
position: fixed;
|
|
72
|
+
z-index: 1000;
|
|
73
|
+
font-family: sans-serif;
|
|
74
|
+
font-size: 11px;
|
|
75
|
+
border-radius: 3px;
|
|
76
|
+
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
|
|
77
|
+
/* The default theme is the light theme. */
|
|
78
|
+
background-color: rgba(255, 255, 255, 0.95);
|
|
79
|
+
border: 1px solid #d9d9d9;
|
|
80
|
+
color: black;
|
|
81
|
+
}
|
|
82
|
+
#vg-tooltip-element.visible {
|
|
83
|
+
visibility: visible;
|
|
84
|
+
}
|
|
85
|
+
#vg-tooltip-element h2 {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
margin-bottom: 10px;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
}
|
|
90
|
+
#vg-tooltip-element table {
|
|
91
|
+
border-spacing: 0;
|
|
92
|
+
}
|
|
93
|
+
#vg-tooltip-element table tr {
|
|
94
|
+
border: none;
|
|
95
|
+
}
|
|
96
|
+
#vg-tooltip-element table tr td {
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
padding-top: 2px;
|
|
100
|
+
padding-bottom: 2px;
|
|
101
|
+
}
|
|
102
|
+
#vg-tooltip-element table tr td.key {
|
|
103
|
+
color: #808080;
|
|
104
|
+
max-width: 150px;
|
|
105
|
+
text-align: right;
|
|
106
|
+
padding-right: 4px;
|
|
107
|
+
}
|
|
108
|
+
#vg-tooltip-element table tr td.value {
|
|
109
|
+
display: block;
|
|
110
|
+
max-width: 300px;
|
|
111
|
+
max-height: 7em;
|
|
112
|
+
text-align: left;
|
|
113
|
+
}
|
|
114
|
+
#vg-tooltip-element.dark-theme {
|
|
115
|
+
background-color: rgba(32, 32, 32, 0.9);
|
|
116
|
+
border: 1px solid #f5f5f5;
|
|
117
|
+
color: white;
|
|
118
|
+
}
|
|
119
|
+
#vg-tooltip-element.dark-theme td.key {
|
|
120
|
+
color: #bfbfbf;
|
|
121
|
+
}
|
|
122
|
+
`;
|
|
123
|
+
|
|
124
|
+
const EL_ID = 'vg-tooltip-element';
|
|
125
|
+
const DEFAULT_OPTIONS = {
|
|
126
|
+
offsetX: 10,
|
|
127
|
+
offsetY: 10,
|
|
128
|
+
id: EL_ID,
|
|
129
|
+
styleId: 'vega-tooltip-style',
|
|
130
|
+
theme: 'light',
|
|
131
|
+
disableDefaultStyle: false,
|
|
132
|
+
sanitize: escapeHTML,
|
|
133
|
+
maxDepth: 2,
|
|
134
|
+
formatTooltip: formatValue,
|
|
135
|
+
baseURL: '',
|
|
136
|
+
anchor: 'cursor',
|
|
137
|
+
position: ['top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'],
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Escape special HTML characters.
|
|
141
|
+
*
|
|
142
|
+
* @param value A value to convert to string and HTML-escape.
|
|
143
|
+
*/
|
|
144
|
+
function escapeHTML(value) {
|
|
145
|
+
return String(value).replace(/&/g, '&').replace(/</g, '<');
|
|
146
|
+
}
|
|
147
|
+
function createDefaultStyle(id) {
|
|
148
|
+
// Just in case this id comes from a user, ensure these is no security issues
|
|
149
|
+
if (!/^[A-Za-z]+[-:.\w]*$/.test(id)) {
|
|
150
|
+
throw new Error('Invalid HTML ID');
|
|
151
|
+
}
|
|
152
|
+
return defaultStyle.toString().replaceAll(EL_ID, id);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Position the tooltip
|
|
157
|
+
*
|
|
158
|
+
* @param event The mouse event.
|
|
159
|
+
* @param tooltipBox
|
|
160
|
+
* @param options Tooltip handler options.
|
|
161
|
+
*/
|
|
162
|
+
function calculatePositionRelativeToCursor(event, tooltipBox, { offsetX, offsetY }) {
|
|
163
|
+
// the possible positions for the tooltip
|
|
164
|
+
const positions = getPositions({ x1: event.clientX, x2: event.clientX, y1: event.clientY, y2: event.clientY }, tooltipBox, offsetX, offsetY);
|
|
165
|
+
// order of positions to try
|
|
166
|
+
const postionArr = ['bottom-right', 'bottom-left', 'top-right', 'top-left'];
|
|
167
|
+
// test positions till a valid one is found
|
|
168
|
+
for (const p of postionArr) {
|
|
169
|
+
if (tooltipIsInViewport(positions[p], tooltipBox)) {
|
|
170
|
+
return positions[p];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
// default to top-left if a valid position is not found
|
|
174
|
+
// this is legacy behavior
|
|
175
|
+
return positions['top-left'];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Calculates the position of the tooltip relative to the mark.
|
|
179
|
+
* @param handler The handler instance.
|
|
180
|
+
* @param event The mouse event.
|
|
181
|
+
* @param item The item that the tooltip is being shown for.
|
|
182
|
+
* @param tooltipBox Client rect of the tooltip element.
|
|
183
|
+
* @param options Tooltip handler options.
|
|
184
|
+
* @returns
|
|
185
|
+
*/
|
|
186
|
+
function calculatePositionRelativeToMark(handler, event, item, tooltipBox, options) {
|
|
187
|
+
const { position, offsetX, offsetY } = options;
|
|
188
|
+
const containerBox = handler._el.getBoundingClientRect();
|
|
189
|
+
const origin = handler._origin;
|
|
190
|
+
// bounds of the mark relative to the viewport
|
|
191
|
+
const markBounds = getMarkBounds(containerBox, origin, item);
|
|
192
|
+
// the possible positions for the tooltip
|
|
193
|
+
const positions = getPositions(markBounds, tooltipBox, offsetX, offsetY);
|
|
194
|
+
// positions to test
|
|
195
|
+
const positionArr = Array.isArray(position) ? position : [position];
|
|
196
|
+
// test positions till a valid one is found
|
|
197
|
+
for (const p of positionArr) {
|
|
198
|
+
// verify that the tooltip is in the view and the mouse is not where the tooltip would be
|
|
199
|
+
if (tooltipIsInViewport(positions[p], tooltipBox) && !mouseIsOnTooltip(event, positions[p], tooltipBox)) {
|
|
200
|
+
return positions[p];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
// default to cursor position if a valid position is not found
|
|
204
|
+
return calculatePositionRelativeToCursor(event, tooltipBox, options);
|
|
205
|
+
}
|
|
206
|
+
// Calculates the bounds of the mark relative to the viewport.
|
|
207
|
+
function getMarkBounds(containerBox, origin, item) {
|
|
208
|
+
// if this is a voronoi mark, we want to use the bounds of the point that voronoi cell represents
|
|
209
|
+
const markBounds = item.isVoronoi ? item.datum.bounds : item.bounds;
|
|
210
|
+
let left = containerBox.left + origin[0] + markBounds.x1;
|
|
211
|
+
let top = containerBox.top + origin[1] + markBounds.y1;
|
|
212
|
+
// traverse mark groups, summing their offsets to get the total offset
|
|
213
|
+
// item bounds are relative to their group so if there are multiple nested groups we need to add them all
|
|
214
|
+
let parentItem = item;
|
|
215
|
+
while (parentItem.mark.group) {
|
|
216
|
+
parentItem = parentItem.mark.group;
|
|
217
|
+
left += parentItem.x ?? 0;
|
|
218
|
+
top += parentItem.y ?? 0;
|
|
219
|
+
}
|
|
220
|
+
const markWidth = markBounds.x2 - markBounds.x1;
|
|
221
|
+
const markHeight = markBounds.y2 - markBounds.y1;
|
|
222
|
+
return {
|
|
223
|
+
x1: left,
|
|
224
|
+
x2: left + markWidth,
|
|
225
|
+
y1: top,
|
|
226
|
+
y2: top + markHeight,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
// Calculates the tooltip xy for each possible position.
|
|
230
|
+
function getPositions(markBounds, tooltipBox, offsetX, offsetY) {
|
|
231
|
+
const xc = (markBounds.x1 + markBounds.x2) / 2;
|
|
232
|
+
const yc = (markBounds.y1 + markBounds.y2) / 2;
|
|
233
|
+
// x positions
|
|
234
|
+
const left = markBounds.x1 - tooltipBox.width - offsetX;
|
|
235
|
+
const center = xc - tooltipBox.width / 2;
|
|
236
|
+
const right = markBounds.x2 + offsetX;
|
|
237
|
+
// y positions
|
|
238
|
+
const top = markBounds.y1 - tooltipBox.height - offsetY;
|
|
239
|
+
const middle = yc - tooltipBox.height / 2;
|
|
240
|
+
const bottom = markBounds.y2 + offsetY;
|
|
241
|
+
const positions = {
|
|
242
|
+
top: { x: center, y: top },
|
|
243
|
+
bottom: { x: center, y: bottom },
|
|
244
|
+
left: { x: left, y: middle },
|
|
245
|
+
right: { x: right, y: middle },
|
|
246
|
+
'top-left': { x: left, y: top },
|
|
247
|
+
'top-right': { x: right, y: top },
|
|
248
|
+
'bottom-left': { x: left, y: bottom },
|
|
249
|
+
'bottom-right': { x: right, y: bottom },
|
|
250
|
+
};
|
|
251
|
+
return positions;
|
|
252
|
+
}
|
|
253
|
+
// Checks if the tooltip would be in the viewport at the given position
|
|
254
|
+
function tooltipIsInViewport(position, tooltipBox) {
|
|
255
|
+
return (position.x >= 0 &&
|
|
256
|
+
position.y >= 0 &&
|
|
257
|
+
position.x + tooltipBox.width <= window.innerWidth &&
|
|
258
|
+
position.y + tooltipBox.height <= window.innerHeight);
|
|
259
|
+
}
|
|
260
|
+
// Checks if the mouse is within the tooltip area
|
|
261
|
+
function mouseIsOnTooltip(event, position, tooltipBox) {
|
|
262
|
+
return (event.clientX >= position.x &&
|
|
263
|
+
event.clientX <= position.x + tooltipBox.width &&
|
|
264
|
+
event.clientY >= position.y &&
|
|
265
|
+
event.clientY <= position.y + tooltipBox.height);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The tooltip handler class.
|
|
270
|
+
*/
|
|
271
|
+
class Handler {
|
|
272
|
+
/**
|
|
273
|
+
* The handler function. We bind this to this function in the constructor.
|
|
274
|
+
*/
|
|
275
|
+
call;
|
|
276
|
+
/**
|
|
277
|
+
* Complete tooltip options.
|
|
278
|
+
*/
|
|
279
|
+
options;
|
|
280
|
+
/**
|
|
281
|
+
* The tooltip html element.
|
|
282
|
+
*/
|
|
283
|
+
el;
|
|
284
|
+
/**
|
|
285
|
+
* Create the tooltip handler and initialize the element and style.
|
|
286
|
+
*
|
|
287
|
+
* @param options Tooltip Options
|
|
288
|
+
*/
|
|
289
|
+
constructor(options) {
|
|
290
|
+
this.options = { ...DEFAULT_OPTIONS, ...options };
|
|
291
|
+
const elementId = this.options.id;
|
|
292
|
+
this.el = null;
|
|
293
|
+
// bind this to call
|
|
294
|
+
this.call = this.tooltipHandler.bind(this);
|
|
295
|
+
// prepend a default stylesheet for tooltips to the head
|
|
296
|
+
if (!this.options.disableDefaultStyle && !document.getElementById(this.options.styleId)) {
|
|
297
|
+
const style = document.createElement('style');
|
|
298
|
+
style.setAttribute('id', this.options.styleId);
|
|
299
|
+
style.innerHTML = createDefaultStyle(elementId);
|
|
300
|
+
const head = document.head;
|
|
301
|
+
if (head.childNodes.length > 0) {
|
|
302
|
+
head.insertBefore(style, head.childNodes[0]);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
head.appendChild(style);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* The tooltip handler function.
|
|
311
|
+
*/
|
|
312
|
+
tooltipHandler(handler, event, item, value) {
|
|
313
|
+
// append a div element that we use as a tooltip unless it already exists
|
|
314
|
+
this.el = document.getElementById(this.options.id);
|
|
315
|
+
if (!this.el) {
|
|
316
|
+
this.el = document.createElement('div');
|
|
317
|
+
this.el.setAttribute('id', this.options.id);
|
|
318
|
+
this.el.classList.add('vg-tooltip');
|
|
319
|
+
const tooltipContainer = document.fullscreenElement ?? document.body;
|
|
320
|
+
tooltipContainer.appendChild(this.el);
|
|
321
|
+
}
|
|
322
|
+
// hide tooltip for null, undefined, or empty string values
|
|
323
|
+
if (value == null || value === '') {
|
|
324
|
+
this.el.classList.remove('visible', `${this.options.theme}-theme`);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
// set the tooltip content
|
|
328
|
+
this.el.innerHTML = this.options.formatTooltip(value, this.options.sanitize, this.options.maxDepth, this.options.baseURL);
|
|
329
|
+
// make the tooltip visible
|
|
330
|
+
this.el.classList.add('visible', `${this.options.theme}-theme`);
|
|
331
|
+
const { x, y } = this.options.anchor === 'mark'
|
|
332
|
+
? calculatePositionRelativeToMark(handler, event, item, this.el.getBoundingClientRect(), this.options)
|
|
333
|
+
: calculatePositionRelativeToCursor(event, this.el.getBoundingClientRect(), this.options);
|
|
334
|
+
this.el.style.top = `${y}px`;
|
|
335
|
+
this.el.style.left = `${x}px`;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export { DEFAULT_OPTIONS, Handler, calculatePositionRelativeToCursor, calculatePositionRelativeToMark, createDefaultStyle, escapeHTML, formatValue, getMarkBounds, getPositions, mouseIsOnTooltip, replacer, stringify, tooltipIsInViewport };
|