@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.
Files changed (629) hide show
  1. package/dist/cjs/bundled_modules/d3-array/src/ascending.js +9 -0
  2. package/dist/cjs/bundled_modules/d3-array/src/bisect.js +16 -0
  3. package/dist/cjs/bundled_modules/d3-array/src/bisector.js +62 -0
  4. package/dist/cjs/bundled_modules/d3-array/src/descending.js +13 -0
  5. package/dist/cjs/bundled_modules/d3-array/src/deviation.js +12 -0
  6. package/dist/cjs/bundled_modules/d3-array/src/fsum.js +45 -0
  7. package/dist/cjs/bundled_modules/d3-array/src/intersection.js +25 -0
  8. package/dist/cjs/bundled_modules/d3-array/src/max.js +26 -0
  9. package/dist/cjs/bundled_modules/d3-array/src/mean.js +25 -0
  10. package/dist/cjs/bundled_modules/d3-array/src/median.js +11 -0
  11. package/dist/cjs/bundled_modules/d3-array/src/merge.js +15 -0
  12. package/dist/cjs/bundled_modules/d3-array/src/min.js +26 -0
  13. package/dist/cjs/bundled_modules/d3-array/src/number.js +27 -0
  14. package/dist/cjs/bundled_modules/d3-array/src/permute.js +9 -0
  15. package/dist/cjs/bundled_modules/d3-array/src/quantile.js +36 -0
  16. package/dist/cjs/bundled_modules/d3-array/src/quickselect.js +59 -0
  17. package/dist/cjs/bundled_modules/d3-array/src/range.js +19 -0
  18. package/dist/cjs/bundled_modules/d3-array/src/sort.js +20 -0
  19. package/dist/cjs/bundled_modules/d3-array/src/sum.js +17 -0
  20. package/dist/cjs/bundled_modules/d3-array/src/ticks.js +63 -0
  21. package/dist/cjs/bundled_modules/d3-array/src/union.js +17 -0
  22. package/dist/cjs/bundled_modules/d3-array/src/variance.js +31 -0
  23. package/dist/cjs/bundled_modules/d3-color/src/color.js +410 -0
  24. package/dist/cjs/bundled_modules/d3-color/src/cubehelix.js +68 -0
  25. package/dist/cjs/bundled_modules/d3-color/src/define.js +17 -0
  26. package/dist/cjs/bundled_modules/d3-color/src/lab.js +124 -0
  27. package/dist/cjs/bundled_modules/d3-color/src/math.js +7 -0
  28. package/dist/cjs/bundled_modules/d3-delaunay/src/delaunay.js +254 -0
  29. package/dist/cjs/bundled_modules/d3-delaunay/src/path.js +43 -0
  30. package/dist/cjs/bundled_modules/d3-delaunay/src/polygon.js +23 -0
  31. package/dist/cjs/bundled_modules/d3-delaunay/src/voronoi.js +338 -0
  32. package/dist/cjs/bundled_modules/d3-dispatch/src/dispatch.js +88 -0
  33. package/dist/cjs/bundled_modules/d3-dsv/src/dsv.js +170 -0
  34. package/dist/cjs/bundled_modules/d3-force/src/center.js +46 -0
  35. package/dist/cjs/bundled_modules/d3-force/src/collide.js +106 -0
  36. package/dist/cjs/bundled_modules/d3-force/src/constant.js +11 -0
  37. package/dist/cjs/bundled_modules/d3-force/src/jiggle.js +9 -0
  38. package/dist/cjs/bundled_modules/d3-force/src/lcg.js +15 -0
  39. package/dist/cjs/bundled_modules/d3-force/src/link.js +123 -0
  40. package/dist/cjs/bundled_modules/d3-force/src/manyBody.js +122 -0
  41. package/dist/cjs/bundled_modules/d3-force/src/simulation.js +164 -0
  42. package/dist/cjs/bundled_modules/d3-force/src/x.js +47 -0
  43. package/dist/cjs/bundled_modules/d3-force/src/y.js +47 -0
  44. package/dist/cjs/bundled_modules/d3-format/src/defaultLocale.js +24 -0
  45. package/dist/cjs/bundled_modules/d3-format/src/exponent.js +11 -0
  46. package/dist/cjs/bundled_modules/d3-format/src/formatDecimal.js +27 -0
  47. package/dist/cjs/bundled_modules/d3-format/src/formatGroup.js +24 -0
  48. package/dist/cjs/bundled_modules/d3-format/src/formatNumerals.js +13 -0
  49. package/dist/cjs/bundled_modules/d3-format/src/formatPrefixAuto.js +22 -0
  50. package/dist/cjs/bundled_modules/d3-format/src/formatRounded.js +17 -0
  51. package/dist/cjs/bundled_modules/d3-format/src/formatSpecifier.js +54 -0
  52. package/dist/cjs/bundled_modules/d3-format/src/formatTrim.js +17 -0
  53. package/dist/cjs/bundled_modules/d3-format/src/formatTypes.js +25 -0
  54. package/dist/cjs/bundled_modules/d3-format/src/identity.js +9 -0
  55. package/dist/cjs/bundled_modules/d3-format/src/locale.js +154 -0
  56. package/dist/cjs/bundled_modules/d3-format/src/precisionFixed.js +11 -0
  57. package/dist/cjs/bundled_modules/d3-format/src/precisionPrefix.js +11 -0
  58. package/dist/cjs/bundled_modules/d3-format/src/precisionRound.js +12 -0
  59. package/dist/cjs/bundled_modules/d3-geo/src/area.js +83 -0
  60. package/dist/cjs/bundled_modules/d3-geo/src/bounds.js +185 -0
  61. package/dist/cjs/bundled_modules/d3-geo/src/cartesian.js +43 -0
  62. package/dist/cjs/bundled_modules/d3-geo/src/centroid.js +149 -0
  63. package/dist/cjs/bundled_modules/d3-geo/src/circle.js +35 -0
  64. package/dist/cjs/bundled_modules/d3-geo/src/clip/antimeridian.js +98 -0
  65. package/dist/cjs/bundled_modules/d3-geo/src/clip/buffer.js +30 -0
  66. package/dist/cjs/bundled_modules/d3-geo/src/clip/circle.js +183 -0
  67. package/dist/cjs/bundled_modules/d3-geo/src/clip/index.js +137 -0
  68. package/dist/cjs/bundled_modules/d3-geo/src/clip/line.js +65 -0
  69. package/dist/cjs/bundled_modules/d3-geo/src/clip/rectangle.js +174 -0
  70. package/dist/cjs/bundled_modules/d3-geo/src/clip/rejoin.js +109 -0
  71. package/dist/cjs/bundled_modules/d3-geo/src/compose.js +18 -0
  72. package/dist/cjs/bundled_modules/d3-geo/src/graticule.js +107 -0
  73. package/dist/cjs/bundled_modules/d3-geo/src/identity.js +7 -0
  74. package/dist/cjs/bundled_modules/d3-geo/src/math.js +57 -0
  75. package/dist/cjs/bundled_modules/d3-geo/src/noop.js +7 -0
  76. package/dist/cjs/bundled_modules/d3-geo/src/path/area.js +54 -0
  77. package/dist/cjs/bundled_modules/d3-geo/src/path/bounds.js +32 -0
  78. package/dist/cjs/bundled_modules/d3-geo/src/path/centroid.js +104 -0
  79. package/dist/cjs/bundled_modules/d3-geo/src/path/context.js +51 -0
  80. package/dist/cjs/bundled_modules/d3-geo/src/path/index.js +82 -0
  81. package/dist/cjs/bundled_modules/d3-geo/src/path/measure.js +49 -0
  82. package/dist/cjs/bundled_modules/d3-geo/src/path/string.js +92 -0
  83. package/dist/cjs/bundled_modules/d3-geo/src/pointEqual.js +11 -0
  84. package/dist/cjs/bundled_modules/d3-geo/src/polygonContains.js +80 -0
  85. package/dist/cjs/bundled_modules/d3-geo/src/projection/albers.js +16 -0
  86. package/dist/cjs/bundled_modules/d3-geo/src/projection/albersUsa.js +117 -0
  87. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthal.js +32 -0
  88. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +24 -0
  89. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +24 -0
  90. package/dist/cjs/bundled_modules/d3-geo/src/projection/conic.js +19 -0
  91. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicConformal.js +45 -0
  92. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEqualArea.js +40 -0
  93. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEquidistant.js +39 -0
  94. package/dist/cjs/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +19 -0
  95. package/dist/cjs/bundled_modules/d3-geo/src/projection/equalEarth.js +43 -0
  96. package/dist/cjs/bundled_modules/d3-geo/src/projection/equirectangular.js +19 -0
  97. package/dist/cjs/bundled_modules/d3-geo/src/projection/fit.js +54 -0
  98. package/dist/cjs/bundled_modules/d3-geo/src/projection/gnomonic.js +23 -0
  99. package/dist/cjs/bundled_modules/d3-geo/src/projection/identity.js +91 -0
  100. package/dist/cjs/bundled_modules/d3-geo/src/projection/index.js +184 -0
  101. package/dist/cjs/bundled_modules/d3-geo/src/projection/mercator.js +60 -0
  102. package/dist/cjs/bundled_modules/d3-geo/src/projection/naturalEarth1.js +35 -0
  103. package/dist/cjs/bundled_modules/d3-geo/src/projection/orthographic.js +22 -0
  104. package/dist/cjs/bundled_modules/d3-geo/src/projection/resample.js +108 -0
  105. package/dist/cjs/bundled_modules/d3-geo/src/projection/stereographic.js +25 -0
  106. package/dist/cjs/bundled_modules/d3-geo/src/projection/transverseMercator.js +34 -0
  107. package/dist/cjs/bundled_modules/d3-geo/src/rotation.js +86 -0
  108. package/dist/cjs/bundled_modules/d3-geo/src/stream.js +75 -0
  109. package/dist/cjs/bundled_modules/d3-geo/src/transform.js +24 -0
  110. package/dist/cjs/bundled_modules/d3-geo-projection/src/math.js +28 -0
  111. package/dist/cjs/bundled_modules/d3-geo-projection/src/mollweide.js +38 -0
  112. package/dist/cjs/bundled_modules/d3-hierarchy/src/accessors.js +13 -0
  113. package/dist/cjs/bundled_modules/d3-hierarchy/src/array.js +27 -0
  114. package/dist/cjs/bundled_modules/d3-hierarchy/src/cluster.js +90 -0
  115. package/dist/cjs/bundled_modules/d3-hierarchy/src/constant.js +16 -0
  116. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +13 -0
  117. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/count.js +18 -0
  118. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +9 -0
  119. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/each.js +13 -0
  120. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +21 -0
  121. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +18 -0
  122. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/find.js +14 -0
  123. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/index.js +99 -0
  124. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +20 -0
  125. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +15 -0
  126. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/links.js +15 -0
  127. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/path.js +36 -0
  128. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +13 -0
  129. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +15 -0
  130. package/dist/cjs/bundled_modules/d3-hierarchy/src/lcg.js +15 -0
  131. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/enclose.js +122 -0
  132. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/index.js +87 -0
  133. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/siblings.js +118 -0
  134. package/dist/cjs/bundled_modules/d3-hierarchy/src/partition.js +58 -0
  135. package/dist/cjs/bundled_modules/d3-hierarchy/src/stratify.js +151 -0
  136. package/dist/cjs/bundled_modules/d3-hierarchy/src/tree.js +243 -0
  137. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/binary.js +52 -0
  138. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/dice.js +18 -0
  139. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/index.js +100 -0
  140. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +42 -0
  141. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/round.js +12 -0
  142. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/slice.js +18 -0
  143. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +12 -0
  144. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/squarify.js +74 -0
  145. package/dist/cjs/bundled_modules/d3-interpolate/src/array.js +29 -0
  146. package/dist/cjs/bundled_modules/d3-interpolate/src/basis.js +26 -0
  147. package/dist/cjs/bundled_modules/d3-interpolate/src/basisClosed.js +19 -0
  148. package/dist/cjs/bundled_modules/d3-interpolate/src/color.js +37 -0
  149. package/dist/cjs/bundled_modules/d3-interpolate/src/constant.js +7 -0
  150. package/dist/cjs/bundled_modules/d3-interpolate/src/cubehelix.js +36 -0
  151. package/dist/cjs/bundled_modules/d3-interpolate/src/date.js +12 -0
  152. package/dist/cjs/bundled_modules/d3-interpolate/src/discrete.js +12 -0
  153. package/dist/cjs/bundled_modules/d3-interpolate/src/hcl.js +28 -0
  154. package/dist/cjs/bundled_modules/d3-interpolate/src/hsl.js +28 -0
  155. package/dist/cjs/bundled_modules/d3-interpolate/src/hue.js +15 -0
  156. package/dist/cjs/bundled_modules/d3-interpolate/src/index.js +53 -0
  157. package/dist/cjs/bundled_modules/d3-interpolate/src/lab.js +22 -0
  158. package/dist/cjs/bundled_modules/d3-interpolate/src/number.js +11 -0
  159. package/dist/cjs/bundled_modules/d3-interpolate/src/numberArray.js +21 -0
  160. package/dist/cjs/bundled_modules/d3-interpolate/src/object.js +29 -0
  161. package/dist/cjs/bundled_modules/d3-interpolate/src/piecewise.js +17 -0
  162. package/dist/cjs/bundled_modules/d3-interpolate/src/quantize.js +11 -0
  163. package/dist/cjs/bundled_modules/d3-interpolate/src/rgb.js +63 -0
  164. package/dist/cjs/bundled_modules/d3-interpolate/src/round.js +11 -0
  165. package/dist/cjs/bundled_modules/d3-interpolate/src/string.js +70 -0
  166. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/decompose.js +33 -0
  167. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/index.js +68 -0
  168. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/parse.js +23 -0
  169. package/dist/cjs/bundled_modules/d3-interpolate/src/value.js +28 -0
  170. package/dist/cjs/bundled_modules/d3-interpolate/src/zoom.js +77 -0
  171. package/dist/cjs/bundled_modules/d3-path/src/path.js +157 -0
  172. package/dist/cjs/bundled_modules/d3-quadtree/src/add.js +91 -0
  173. package/dist/cjs/bundled_modules/d3-quadtree/src/cover.js +49 -0
  174. package/dist/cjs/bundled_modules/d3-quadtree/src/data.js +13 -0
  175. package/dist/cjs/bundled_modules/d3-quadtree/src/extent.js +11 -0
  176. package/dist/cjs/bundled_modules/d3-quadtree/src/find.js +76 -0
  177. package/dist/cjs/bundled_modules/d3-quadtree/src/quad.js +13 -0
  178. package/dist/cjs/bundled_modules/d3-quadtree/src/quadtree.js +79 -0
  179. package/dist/cjs/bundled_modules/d3-quadtree/src/remove.js +69 -0
  180. package/dist/cjs/bundled_modules/d3-quadtree/src/root.js +9 -0
  181. package/dist/cjs/bundled_modules/d3-quadtree/src/size.js +13 -0
  182. package/dist/cjs/bundled_modules/d3-quadtree/src/visit.js +22 -0
  183. package/dist/cjs/bundled_modules/d3-quadtree/src/visitAfter.js +27 -0
  184. package/dist/cjs/bundled_modules/d3-quadtree/src/x.js +14 -0
  185. package/dist/cjs/bundled_modules/d3-quadtree/src/y.js +14 -0
  186. package/dist/cjs/bundled_modules/d3-scale/src/constant.js +11 -0
  187. package/dist/cjs/bundled_modules/d3-scale/src/continuous.js +136 -0
  188. package/dist/cjs/bundled_modules/d3-scale/src/diverging.js +116 -0
  189. package/dist/cjs/bundled_modules/d3-scale/src/identity.js +34 -0
  190. package/dist/cjs/bundled_modules/d3-scale/src/init.js +31 -0
  191. package/dist/cjs/bundled_modules/d3-scale/src/linear.js +77 -0
  192. package/dist/cjs/bundled_modules/d3-scale/src/log.js +148 -0
  193. package/dist/cjs/bundled_modules/d3-scale/src/nice.js +24 -0
  194. package/dist/cjs/bundled_modules/d3-scale/src/number.js +9 -0
  195. package/dist/cjs/bundled_modules/d3-scale/src/ordinal.js +53 -0
  196. package/dist/cjs/bundled_modules/d3-scale/src/pow.js +58 -0
  197. package/dist/cjs/bundled_modules/d3-scale/src/quantile.js +65 -0
  198. package/dist/cjs/bundled_modules/d3-scale/src/quantize.js +62 -0
  199. package/dist/cjs/bundled_modules/d3-scale/src/sequential.js +119 -0
  200. package/dist/cjs/bundled_modules/d3-scale/src/symlog.js +42 -0
  201. package/dist/cjs/bundled_modules/d3-scale/src/threshold.js +45 -0
  202. package/dist/cjs/bundled_modules/d3-scale/src/tickFormat.js +39 -0
  203. package/dist/cjs/bundled_modules/d3-scale/src/time.js +85 -0
  204. package/dist/cjs/bundled_modules/d3-scale/src/utcTime.js +21 -0
  205. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +9 -0
  206. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +9 -0
  207. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +9 -0
  208. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +9 -0
  209. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +9 -0
  210. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +9 -0
  211. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +9 -0
  212. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +9 -0
  213. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +9 -0
  214. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +9 -0
  215. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/colors.js +11 -0
  216. package/dist/cjs/bundled_modules/d3-shape/src/arc.js +274 -0
  217. package/dist/cjs/bundled_modules/d3-shape/src/area.js +118 -0
  218. package/dist/cjs/bundled_modules/d3-shape/src/array.js +11 -0
  219. package/dist/cjs/bundled_modules/d3-shape/src/constant.js +11 -0
  220. package/dist/cjs/bundled_modules/d3-shape/src/curve/basis.js +59 -0
  221. package/dist/cjs/bundled_modules/d3-shape/src/curve/basisClosed.js +58 -0
  222. package/dist/cjs/bundled_modules/d3-shape/src/curve/basisOpen.js +45 -0
  223. package/dist/cjs/bundled_modules/d3-shape/src/curve/bundle.js +62 -0
  224. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinal.js +69 -0
  225. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalClosed.js +68 -0
  226. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalOpen.js +56 -0
  227. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRom.js +95 -0
  228. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +80 -0
  229. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +68 -0
  230. package/dist/cjs/bundled_modules/d3-shape/src/curve/linear.js +37 -0
  231. package/dist/cjs/bundled_modules/d3-shape/src/curve/linearClosed.js +31 -0
  232. package/dist/cjs/bundled_modules/d3-shape/src/curve/monotone.js +109 -0
  233. package/dist/cjs/bundled_modules/d3-shape/src/curve/natural.js +71 -0
  234. package/dist/cjs/bundled_modules/d3-shape/src/curve/step.js +61 -0
  235. package/dist/cjs/bundled_modules/d3-shape/src/line.js +64 -0
  236. package/dist/cjs/bundled_modules/d3-shape/src/math.js +36 -0
  237. package/dist/cjs/bundled_modules/d3-shape/src/noop.js +7 -0
  238. package/dist/cjs/bundled_modules/d3-shape/src/path.js +23 -0
  239. package/dist/cjs/bundled_modules/d3-shape/src/point.js +12 -0
  240. package/dist/cjs/bundled_modules/d3-shape/src/symbol/circle.js +15 -0
  241. package/dist/cjs/bundled_modules/d3-shape/src/symbol.js +38 -0
  242. package/dist/cjs/bundled_modules/d3-time/src/day.js +41 -0
  243. package/dist/cjs/bundled_modules/d3-time/src/duration.js +17 -0
  244. package/dist/cjs/bundled_modules/d3-time/src/hour.js +31 -0
  245. package/dist/cjs/bundled_modules/d3-time/src/interval.js +73 -0
  246. package/dist/cjs/bundled_modules/d3-time/src/millisecond.js +29 -0
  247. package/dist/cjs/bundled_modules/d3-time/src/minute.js +31 -0
  248. package/dist/cjs/bundled_modules/d3-time/src/month.js +32 -0
  249. package/dist/cjs/bundled_modules/d3-time/src/second.js +18 -0
  250. package/dist/cjs/bundled_modules/d3-time/src/ticks.js +64 -0
  251. package/dist/cjs/bundled_modules/d3-time/src/week.js +73 -0
  252. package/dist/cjs/bundled_modules/d3-time/src/year.js +54 -0
  253. package/dist/cjs/bundled_modules/d3-time-format/src/defaultLocale.js +33 -0
  254. package/dist/cjs/bundled_modules/d3-time-format/src/locale.js +694 -0
  255. package/dist/cjs/bundled_modules/d3-timer/src/interval.js +23 -0
  256. package/dist/cjs/bundled_modules/d3-timer/src/timer.js +117 -0
  257. package/dist/cjs/bundled_modules/delaunator/index.js +485 -0
  258. package/dist/cjs/bundled_modules/internmap/src/index.js +66 -0
  259. package/dist/cjs/bundled_modules/json-stringify-pretty-compact/index.js +104 -0
  260. package/dist/cjs/bundled_modules/robust-predicates/esm/orient2d.js +184 -0
  261. package/dist/cjs/bundled_modules/robust-predicates/esm/util.js +95 -0
  262. package/dist/cjs/bundled_modules/topojson-client/src/feature.js +77 -0
  263. package/dist/cjs/bundled_modules/topojson-client/src/identity.js +9 -0
  264. package/dist/cjs/bundled_modules/topojson-client/src/mesh.js +60 -0
  265. package/dist/cjs/bundled_modules/topojson-client/src/reverse.js +10 -0
  266. package/dist/cjs/bundled_modules/topojson-client/src/stitch.js +79 -0
  267. package/dist/cjs/bundled_modules/topojson-client/src/transform.js +25 -0
  268. package/dist/cjs/bundled_modules/vega/build/vega.module.js +272 -0
  269. package/dist/cjs/bundled_modules/vega-canvas/build/vega-canvas.browser.js +18 -0
  270. package/dist/cjs/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +676 -0
  271. package/dist/cjs/bundled_modules/vega-dataflow/build/vega-dataflow.js +2102 -0
  272. package/dist/cjs/bundled_modules/vega-embed/build/embed.js +2939 -0
  273. package/dist/cjs/bundled_modules/vega-encode/build/vega-encode.js +962 -0
  274. package/dist/cjs/bundled_modules/vega-event-selector/build/vega-event-selector.js +192 -0
  275. package/dist/cjs/bundled_modules/vega-expression/build/vega-expression.js +1615 -0
  276. package/dist/cjs/bundled_modules/vega-force/build/vega-force.js +295 -0
  277. package/dist/cjs/bundled_modules/vega-format/build/vega-format.js +201 -0
  278. package/dist/cjs/bundled_modules/vega-functions/build/vega-functions.js +842 -0
  279. package/dist/cjs/bundled_modules/vega-geo/build/vega-geo.js +1333 -0
  280. package/dist/cjs/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +580 -0
  281. package/dist/cjs/bundled_modules/vega-interpreter/build/vega-interpreter.js +310 -0
  282. package/dist/cjs/bundled_modules/vega-label/build/vega-label.js +876 -0
  283. package/dist/cjs/bundled_modules/vega-lite/build/index.js +20157 -0
  284. package/dist/cjs/bundled_modules/vega-loader/build/vega-loader.browser.js +337 -0
  285. package/dist/cjs/bundled_modules/vega-parser/build/vega-parser.js +3805 -0
  286. package/dist/cjs/bundled_modules/vega-projection/build/vega-projection.js +90 -0
  287. package/dist/cjs/bundled_modules/vega-regression/build/vega-regression.js +236 -0
  288. package/dist/cjs/bundled_modules/vega-runtime/build/vega-runtime.js +588 -0
  289. package/dist/cjs/bundled_modules/vega-scale/build/vega-scale.js +846 -0
  290. package/dist/cjs/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +5040 -0
  291. package/dist/cjs/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +7 -0
  292. package/dist/cjs/bundled_modules/vega-selections/build/vega-selection.js +342 -0
  293. package/dist/cjs/bundled_modules/vega-statistics/build/vega-statistics.js +1193 -0
  294. package/dist/cjs/bundled_modules/vega-themes/build/index.js +853 -0
  295. package/dist/cjs/bundled_modules/vega-time/build/vega-time.js +342 -0
  296. package/dist/cjs/bundled_modules/vega-tooltip/build/index.js +353 -0
  297. package/dist/cjs/bundled_modules/vega-transforms/build/vega-transforms.js +3781 -0
  298. package/dist/cjs/bundled_modules/vega-util/build/vega-util.js +824 -0
  299. package/dist/cjs/bundled_modules/vega-view/build/vega-view.js +1306 -0
  300. package/dist/cjs/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1313 -0
  301. package/dist/cjs/bundled_modules/vega-voronoi/build/vega-voronoi.js +80 -0
  302. package/dist/cjs/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +540 -0
  303. package/dist/cjs/unstable/extras/chart/BarChart.js +42 -0
  304. package/dist/cjs/unstable/extras/chart/Chart.js +100 -0
  305. package/dist/cjs/unstable/extras/chart/DistributionChart.js +84 -0
  306. package/dist/cjs/unstable/extras/chart/DonutChart.js +43 -0
  307. package/dist/cjs/unstable/extras/chart/LineChart.js +45 -0
  308. package/dist/cjs/unstable/extras/chart/PieChart.js +39 -0
  309. package/dist/cjs/unstable/extras/chart/TimelineChart.js +48 -0
  310. package/dist/cjs/unstable/extras/chart/index.js +23 -0
  311. package/dist/esm/bundled_modules/d3-array/src/ascending.js +5 -0
  312. package/dist/esm/bundled_modules/d3-array/src/bisect.js +10 -0
  313. package/dist/esm/bundled_modules/d3-array/src/bisector.js +58 -0
  314. package/dist/esm/bundled_modules/d3-array/src/descending.js +9 -0
  315. package/dist/esm/bundled_modules/d3-array/src/deviation.js +8 -0
  316. package/dist/esm/bundled_modules/d3-array/src/fsum.js +43 -0
  317. package/dist/esm/bundled_modules/d3-array/src/intersection.js +21 -0
  318. package/dist/esm/bundled_modules/d3-array/src/max.js +22 -0
  319. package/dist/esm/bundled_modules/d3-array/src/mean.js +21 -0
  320. package/dist/esm/bundled_modules/d3-array/src/median.js +7 -0
  321. package/dist/esm/bundled_modules/d3-array/src/merge.js +11 -0
  322. package/dist/esm/bundled_modules/d3-array/src/min.js +22 -0
  323. package/dist/esm/bundled_modules/d3-array/src/number.js +22 -0
  324. package/dist/esm/bundled_modules/d3-array/src/permute.js +5 -0
  325. package/dist/esm/bundled_modules/d3-array/src/quantile.js +31 -0
  326. package/dist/esm/bundled_modules/d3-array/src/quickselect.js +55 -0
  327. package/dist/esm/bundled_modules/d3-array/src/range.js +15 -0
  328. package/dist/esm/bundled_modules/d3-array/src/sort.js +17 -0
  329. package/dist/esm/bundled_modules/d3-array/src/sum.js +13 -0
  330. package/dist/esm/bundled_modules/d3-array/src/ticks.js +57 -0
  331. package/dist/esm/bundled_modules/d3-array/src/union.js +13 -0
  332. package/dist/esm/bundled_modules/d3-array/src/variance.js +27 -0
  333. package/dist/esm/bundled_modules/d3-color/src/color.js +398 -0
  334. package/dist/esm/bundled_modules/d3-color/src/cubehelix.js +63 -0
  335. package/dist/esm/bundled_modules/d3-color/src/define.js +12 -0
  336. package/dist/esm/bundled_modules/d3-color/src/lab.js +117 -0
  337. package/dist/esm/bundled_modules/d3-color/src/math.js +4 -0
  338. package/dist/esm/bundled_modules/d3-delaunay/src/delaunay.js +250 -0
  339. package/dist/esm/bundled_modules/d3-delaunay/src/path.js +39 -0
  340. package/dist/esm/bundled_modules/d3-delaunay/src/polygon.js +19 -0
  341. package/dist/esm/bundled_modules/d3-delaunay/src/voronoi.js +334 -0
  342. package/dist/esm/bundled_modules/d3-dispatch/src/dispatch.js +84 -0
  343. package/dist/esm/bundled_modules/d3-dsv/src/dsv.js +166 -0
  344. package/dist/esm/bundled_modules/d3-force/src/center.js +42 -0
  345. package/dist/esm/bundled_modules/d3-force/src/collide.js +102 -0
  346. package/dist/esm/bundled_modules/d3-force/src/constant.js +7 -0
  347. package/dist/esm/bundled_modules/d3-force/src/jiggle.js +5 -0
  348. package/dist/esm/bundled_modules/d3-force/src/lcg.js +11 -0
  349. package/dist/esm/bundled_modules/d3-force/src/link.js +119 -0
  350. package/dist/esm/bundled_modules/d3-force/src/manyBody.js +118 -0
  351. package/dist/esm/bundled_modules/d3-force/src/simulation.js +158 -0
  352. package/dist/esm/bundled_modules/d3-force/src/x.js +43 -0
  353. package/dist/esm/bundled_modules/d3-force/src/y.js +43 -0
  354. package/dist/esm/bundled_modules/d3-format/src/defaultLocale.js +20 -0
  355. package/dist/esm/bundled_modules/d3-format/src/exponent.js +7 -0
  356. package/dist/esm/bundled_modules/d3-format/src/formatDecimal.js +22 -0
  357. package/dist/esm/bundled_modules/d3-format/src/formatGroup.js +20 -0
  358. package/dist/esm/bundled_modules/d3-format/src/formatNumerals.js +9 -0
  359. package/dist/esm/bundled_modules/d3-format/src/formatPrefixAuto.js +18 -0
  360. package/dist/esm/bundled_modules/d3-format/src/formatRounded.js +13 -0
  361. package/dist/esm/bundled_modules/d3-format/src/formatSpecifier.js +49 -0
  362. package/dist/esm/bundled_modules/d3-format/src/formatTrim.js +13 -0
  363. package/dist/esm/bundled_modules/d3-format/src/formatTypes.js +21 -0
  364. package/dist/esm/bundled_modules/d3-format/src/identity.js +5 -0
  365. package/dist/esm/bundled_modules/d3-format/src/locale.js +150 -0
  366. package/dist/esm/bundled_modules/d3-format/src/precisionFixed.js +7 -0
  367. package/dist/esm/bundled_modules/d3-format/src/precisionPrefix.js +7 -0
  368. package/dist/esm/bundled_modules/d3-format/src/precisionRound.js +8 -0
  369. package/dist/esm/bundled_modules/d3-geo/src/area.js +78 -0
  370. package/dist/esm/bundled_modules/d3-geo/src/bounds.js +181 -0
  371. package/dist/esm/bundled_modules/d3-geo/src/cartesian.js +35 -0
  372. package/dist/esm/bundled_modules/d3-geo/src/centroid.js +145 -0
  373. package/dist/esm/bundled_modules/d3-geo/src/circle.js +33 -0
  374. package/dist/esm/bundled_modules/d3-geo/src/clip/antimeridian.js +94 -0
  375. package/dist/esm/bundled_modules/d3-geo/src/clip/buffer.js +26 -0
  376. package/dist/esm/bundled_modules/d3-geo/src/clip/circle.js +179 -0
  377. package/dist/esm/bundled_modules/d3-geo/src/clip/index.js +133 -0
  378. package/dist/esm/bundled_modules/d3-geo/src/clip/line.js +61 -0
  379. package/dist/esm/bundled_modules/d3-geo/src/clip/rectangle.js +170 -0
  380. package/dist/esm/bundled_modules/d3-geo/src/clip/rejoin.js +105 -0
  381. package/dist/esm/bundled_modules/d3-geo/src/compose.js +14 -0
  382. package/dist/esm/bundled_modules/d3-geo/src/graticule.js +103 -0
  383. package/dist/esm/bundled_modules/d3-geo/src/identity.js +3 -0
  384. package/dist/esm/bundled_modules/d3-geo/src/math.js +33 -0
  385. package/dist/esm/bundled_modules/d3-geo/src/noop.js +3 -0
  386. package/dist/esm/bundled_modules/d3-geo/src/path/area.js +50 -0
  387. package/dist/esm/bundled_modules/d3-geo/src/path/bounds.js +28 -0
  388. package/dist/esm/bundled_modules/d3-geo/src/path/centroid.js +100 -0
  389. package/dist/esm/bundled_modules/d3-geo/src/path/context.js +47 -0
  390. package/dist/esm/bundled_modules/d3-geo/src/path/index.js +78 -0
  391. package/dist/esm/bundled_modules/d3-geo/src/path/measure.js +45 -0
  392. package/dist/esm/bundled_modules/d3-geo/src/path/string.js +88 -0
  393. package/dist/esm/bundled_modules/d3-geo/src/pointEqual.js +7 -0
  394. package/dist/esm/bundled_modules/d3-geo/src/polygonContains.js +76 -0
  395. package/dist/esm/bundled_modules/d3-geo/src/projection/albers.js +12 -0
  396. package/dist/esm/bundled_modules/d3-geo/src/projection/albersUsa.js +113 -0
  397. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthal.js +29 -0
  398. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +19 -0
  399. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +19 -0
  400. package/dist/esm/bundled_modules/d3-geo/src/projection/conic.js +17 -0
  401. package/dist/esm/bundled_modules/d3-geo/src/projection/conicConformal.js +40 -0
  402. package/dist/esm/bundled_modules/d3-geo/src/projection/conicEqualArea.js +35 -0
  403. package/dist/esm/bundled_modules/d3-geo/src/projection/conicEquidistant.js +34 -0
  404. package/dist/esm/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +17 -0
  405. package/dist/esm/bundled_modules/d3-geo/src/projection/equalEarth.js +38 -0
  406. package/dist/esm/bundled_modules/d3-geo/src/projection/equirectangular.js +14 -0
  407. package/dist/esm/bundled_modules/d3-geo/src/projection/fit.js +49 -0
  408. package/dist/esm/bundled_modules/d3-geo/src/projection/gnomonic.js +18 -0
  409. package/dist/esm/bundled_modules/d3-geo/src/projection/identity.js +87 -0
  410. package/dist/esm/bundled_modules/d3-geo/src/projection/index.js +179 -0
  411. package/dist/esm/bundled_modules/d3-geo/src/projection/mercator.js +54 -0
  412. package/dist/esm/bundled_modules/d3-geo/src/projection/naturalEarth1.js +30 -0
  413. package/dist/esm/bundled_modules/d3-geo/src/projection/orthographic.js +17 -0
  414. package/dist/esm/bundled_modules/d3-geo/src/projection/resample.js +104 -0
  415. package/dist/esm/bundled_modules/d3-geo/src/projection/stereographic.js +20 -0
  416. package/dist/esm/bundled_modules/d3-geo/src/projection/transverseMercator.js +29 -0
  417. package/dist/esm/bundled_modules/d3-geo/src/rotation.js +81 -0
  418. package/dist/esm/bundled_modules/d3-geo/src/stream.js +71 -0
  419. package/dist/esm/bundled_modules/d3-geo/src/transform.js +22 -0
  420. package/dist/esm/bundled_modules/d3-geo-projection/src/math.js +18 -0
  421. package/dist/esm/bundled_modules/d3-geo-projection/src/mollweide.js +31 -0
  422. package/dist/esm/bundled_modules/d3-hierarchy/src/accessors.js +10 -0
  423. package/dist/esm/bundled_modules/d3-hierarchy/src/array.js +22 -0
  424. package/dist/esm/bundled_modules/d3-hierarchy/src/cluster.js +86 -0
  425. package/dist/esm/bundled_modules/d3-hierarchy/src/constant.js +11 -0
  426. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +9 -0
  427. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/count.js +14 -0
  428. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +5 -0
  429. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/each.js +9 -0
  430. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +17 -0
  431. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +14 -0
  432. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/find.js +10 -0
  433. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/index.js +93 -0
  434. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +16 -0
  435. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +11 -0
  436. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/links.js +11 -0
  437. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/path.js +32 -0
  438. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +9 -0
  439. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +11 -0
  440. package/dist/esm/bundled_modules/d3-hierarchy/src/lcg.js +11 -0
  441. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/enclose.js +120 -0
  442. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/index.js +83 -0
  443. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/siblings.js +116 -0
  444. package/dist/esm/bundled_modules/d3-hierarchy/src/partition.js +54 -0
  445. package/dist/esm/bundled_modules/d3-hierarchy/src/stratify.js +147 -0
  446. package/dist/esm/bundled_modules/d3-hierarchy/src/tree.js +239 -0
  447. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/binary.js +48 -0
  448. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/dice.js +14 -0
  449. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/index.js +96 -0
  450. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +38 -0
  451. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/round.js +8 -0
  452. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/slice.js +14 -0
  453. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +8 -0
  454. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/squarify.js +68 -0
  455. package/dist/esm/bundled_modules/d3-interpolate/src/array.js +24 -0
  456. package/dist/esm/bundled_modules/d3-interpolate/src/basis.js +21 -0
  457. package/dist/esm/bundled_modules/d3-interpolate/src/basisClosed.js +15 -0
  458. package/dist/esm/bundled_modules/d3-interpolate/src/color.js +31 -0
  459. package/dist/esm/bundled_modules/d3-interpolate/src/constant.js +3 -0
  460. package/dist/esm/bundled_modules/d3-interpolate/src/cubehelix.js +31 -0
  461. package/dist/esm/bundled_modules/d3-interpolate/src/date.js +8 -0
  462. package/dist/esm/bundled_modules/d3-interpolate/src/discrete.js +8 -0
  463. package/dist/esm/bundled_modules/d3-interpolate/src/hcl.js +23 -0
  464. package/dist/esm/bundled_modules/d3-interpolate/src/hsl.js +23 -0
  465. package/dist/esm/bundled_modules/d3-interpolate/src/hue.js +11 -0
  466. package/dist/esm/bundled_modules/d3-interpolate/src/index.js +21 -0
  467. package/dist/esm/bundled_modules/d3-interpolate/src/lab.js +18 -0
  468. package/dist/esm/bundled_modules/d3-interpolate/src/number.js +7 -0
  469. package/dist/esm/bundled_modules/d3-interpolate/src/numberArray.js +16 -0
  470. package/dist/esm/bundled_modules/d3-interpolate/src/object.js +25 -0
  471. package/dist/esm/bundled_modules/d3-interpolate/src/piecewise.js +13 -0
  472. package/dist/esm/bundled_modules/d3-interpolate/src/quantize.js +7 -0
  473. package/dist/esm/bundled_modules/d3-interpolate/src/rgb.js +57 -0
  474. package/dist/esm/bundled_modules/d3-interpolate/src/round.js +7 -0
  475. package/dist/esm/bundled_modules/d3-interpolate/src/string.js +66 -0
  476. package/dist/esm/bundled_modules/d3-interpolate/src/transform/decompose.js +28 -0
  477. package/dist/esm/bundled_modules/d3-interpolate/src/transform/index.js +65 -0
  478. package/dist/esm/bundled_modules/d3-interpolate/src/transform/parse.js +20 -0
  479. package/dist/esm/bundled_modules/d3-interpolate/src/value.js +24 -0
  480. package/dist/esm/bundled_modules/d3-interpolate/src/zoom.js +73 -0
  481. package/dist/esm/bundled_modules/d3-path/src/path.js +154 -0
  482. package/dist/esm/bundled_modules/d3-quadtree/src/add.js +86 -0
  483. package/dist/esm/bundled_modules/d3-quadtree/src/cover.js +45 -0
  484. package/dist/esm/bundled_modules/d3-quadtree/src/data.js +9 -0
  485. package/dist/esm/bundled_modules/d3-quadtree/src/extent.js +7 -0
  486. package/dist/esm/bundled_modules/d3-quadtree/src/find.js +72 -0
  487. package/dist/esm/bundled_modules/d3-quadtree/src/quad.js +9 -0
  488. package/dist/esm/bundled_modules/d3-quadtree/src/quadtree.js +75 -0
  489. package/dist/esm/bundled_modules/d3-quadtree/src/remove.js +64 -0
  490. package/dist/esm/bundled_modules/d3-quadtree/src/root.js +5 -0
  491. package/dist/esm/bundled_modules/d3-quadtree/src/size.js +9 -0
  492. package/dist/esm/bundled_modules/d3-quadtree/src/visit.js +18 -0
  493. package/dist/esm/bundled_modules/d3-quadtree/src/visitAfter.js +23 -0
  494. package/dist/esm/bundled_modules/d3-quadtree/src/x.js +9 -0
  495. package/dist/esm/bundled_modules/d3-quadtree/src/y.js +9 -0
  496. package/dist/esm/bundled_modules/d3-scale/src/constant.js +7 -0
  497. package/dist/esm/bundled_modules/d3-scale/src/continuous.js +129 -0
  498. package/dist/esm/bundled_modules/d3-scale/src/diverging.js +108 -0
  499. package/dist/esm/bundled_modules/d3-scale/src/identity.js +30 -0
  500. package/dist/esm/bundled_modules/d3-scale/src/init.js +28 -0
  501. package/dist/esm/bundled_modules/d3-scale/src/linear.js +72 -0
  502. package/dist/esm/bundled_modules/d3-scale/src/log.js +143 -0
  503. package/dist/esm/bundled_modules/d3-scale/src/nice.js +20 -0
  504. package/dist/esm/bundled_modules/d3-scale/src/number.js +5 -0
  505. package/dist/esm/bundled_modules/d3-scale/src/ordinal.js +48 -0
  506. package/dist/esm/bundled_modules/d3-scale/src/pow.js +52 -0
  507. package/dist/esm/bundled_modules/d3-scale/src/quantile.js +61 -0
  508. package/dist/esm/bundled_modules/d3-scale/src/quantize.js +58 -0
  509. package/dist/esm/bundled_modules/d3-scale/src/sequential.js +110 -0
  510. package/dist/esm/bundled_modules/d3-scale/src/symlog.js +37 -0
  511. package/dist/esm/bundled_modules/d3-scale/src/threshold.js +41 -0
  512. package/dist/esm/bundled_modules/d3-scale/src/tickFormat.js +35 -0
  513. package/dist/esm/bundled_modules/d3-scale/src/time.js +80 -0
  514. package/dist/esm/bundled_modules/d3-scale/src/utcTime.js +17 -0
  515. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +5 -0
  516. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +5 -0
  517. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +5 -0
  518. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +5 -0
  519. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +5 -0
  520. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +5 -0
  521. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +5 -0
  522. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +5 -0
  523. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +5 -0
  524. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +5 -0
  525. package/dist/esm/bundled_modules/d3-scale-chromatic/src/colors.js +7 -0
  526. package/dist/esm/bundled_modules/d3-shape/src/arc.js +270 -0
  527. package/dist/esm/bundled_modules/d3-shape/src/area.js +114 -0
  528. package/dist/esm/bundled_modules/d3-shape/src/array.js +7 -0
  529. package/dist/esm/bundled_modules/d3-shape/src/constant.js +7 -0
  530. package/dist/esm/bundled_modules/d3-shape/src/curve/basis.js +53 -0
  531. package/dist/esm/bundled_modules/d3-shape/src/curve/basisClosed.js +54 -0
  532. package/dist/esm/bundled_modules/d3-shape/src/curve/basisOpen.js +41 -0
  533. package/dist/esm/bundled_modules/d3-shape/src/curve/bundle.js +58 -0
  534. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinal.js +63 -0
  535. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalClosed.js +63 -0
  536. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalOpen.js +51 -0
  537. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRom.js +90 -0
  538. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +76 -0
  539. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +64 -0
  540. package/dist/esm/bundled_modules/d3-shape/src/curve/linear.js +33 -0
  541. package/dist/esm/bundled_modules/d3-shape/src/curve/linearClosed.js +27 -0
  542. package/dist/esm/bundled_modules/d3-shape/src/curve/monotone.js +106 -0
  543. package/dist/esm/bundled_modules/d3-shape/src/curve/natural.js +67 -0
  544. package/dist/esm/bundled_modules/d3-shape/src/curve/step.js +55 -0
  545. package/dist/esm/bundled_modules/d3-shape/src/line.js +60 -0
  546. package/dist/esm/bundled_modules/d3-shape/src/math.js +22 -0
  547. package/dist/esm/bundled_modules/d3-shape/src/noop.js +3 -0
  548. package/dist/esm/bundled_modules/d3-shape/src/path.js +21 -0
  549. package/dist/esm/bundled_modules/d3-shape/src/point.js +9 -0
  550. package/dist/esm/bundled_modules/d3-shape/src/symbol/circle.js +11 -0
  551. package/dist/esm/bundled_modules/d3-shape/src/symbol.js +34 -0
  552. package/dist/esm/bundled_modules/d3-time/src/day.js +37 -0
  553. package/dist/esm/bundled_modules/d3-time/src/duration.js +9 -0
  554. package/dist/esm/bundled_modules/d3-time/src/hour.js +28 -0
  555. package/dist/esm/bundled_modules/d3-time/src/interval.js +71 -0
  556. package/dist/esm/bundled_modules/d3-time/src/millisecond.js +27 -0
  557. package/dist/esm/bundled_modules/d3-time/src/minute.js +28 -0
  558. package/dist/esm/bundled_modules/d3-time/src/month.js +29 -0
  559. package/dist/esm/bundled_modules/d3-time/src/second.js +16 -0
  560. package/dist/esm/bundled_modules/d3-time/src/ticks.js +59 -0
  561. package/dist/esm/bundled_modules/d3-time/src/week.js +58 -0
  562. package/dist/esm/bundled_modules/d3-time/src/year.js +51 -0
  563. package/dist/esm/bundled_modules/d3-time-format/src/defaultLocale.js +29 -0
  564. package/dist/esm/bundled_modules/d3-time-format/src/locale.js +690 -0
  565. package/dist/esm/bundled_modules/d3-timer/src/interval.js +19 -0
  566. package/dist/esm/bundled_modules/d3-timer/src/timer.js +112 -0
  567. package/dist/esm/bundled_modules/delaunator/index.js +481 -0
  568. package/dist/esm/bundled_modules/internmap/src/index.js +63 -0
  569. package/dist/esm/bundled_modules/json-stringify-pretty-compact/index.js +100 -0
  570. package/dist/esm/bundled_modules/robust-predicates/esm/orient2d.js +182 -0
  571. package/dist/esm/bundled_modules/robust-predicates/esm/util.js +88 -0
  572. package/dist/esm/bundled_modules/topojson-client/src/feature.js +72 -0
  573. package/dist/esm/bundled_modules/topojson-client/src/identity.js +5 -0
  574. package/dist/esm/bundled_modules/topojson-client/src/mesh.js +55 -0
  575. package/dist/esm/bundled_modules/topojson-client/src/reverse.js +6 -0
  576. package/dist/esm/bundled_modules/topojson-client/src/stitch.js +75 -0
  577. package/dist/esm/bundled_modules/topojson-client/src/transform.js +21 -0
  578. package/dist/esm/bundled_modules/vega/build/vega.module.js +38 -0
  579. package/dist/esm/bundled_modules/vega-canvas/build/vega-canvas.browser.js +14 -0
  580. package/dist/esm/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +673 -0
  581. package/dist/esm/bundled_modules/vega-dataflow/build/vega-dataflow.js +2080 -0
  582. package/dist/esm/bundled_modules/vega-embed/build/embed.js +2932 -0
  583. package/dist/esm/bundled_modules/vega-encode/build/vega-encode.js +952 -0
  584. package/dist/esm/bundled_modules/vega-event-selector/build/vega-event-selector.js +190 -0
  585. package/dist/esm/bundled_modules/vega-expression/build/vega-expression.js +1597 -0
  586. package/dist/esm/bundled_modules/vega-force/build/vega-force.js +293 -0
  587. package/dist/esm/bundled_modules/vega-format/build/vega-format.js +191 -0
  588. package/dist/esm/bundled_modules/vega-functions/build/vega-functions.js +779 -0
  589. package/dist/esm/bundled_modules/vega-geo/build/vega-geo.js +1322 -0
  590. package/dist/esm/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +572 -0
  591. package/dist/esm/bundled_modules/vega-interpreter/build/vega-interpreter.js +308 -0
  592. package/dist/esm/bundled_modules/vega-label/build/vega-label.js +874 -0
  593. package/dist/esm/bundled_modules/vega-lite/build/index.js +20110 -0
  594. package/dist/esm/bundled_modules/vega-loader/build/vega-loader.browser.js +328 -0
  595. package/dist/esm/bundled_modules/vega-parser/build/vega-parser.js +3783 -0
  596. package/dist/esm/bundled_modules/vega-projection/build/vega-projection.js +86 -0
  597. package/dist/esm/bundled_modules/vega-regression/build/vega-regression.js +233 -0
  598. package/dist/esm/bundled_modules/vega-runtime/build/vega-runtime.js +586 -0
  599. package/dist/esm/bundled_modules/vega-scale/build/vega-scale.js +799 -0
  600. package/dist/esm/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +4982 -0
  601. package/dist/esm/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +3 -0
  602. package/dist/esm/bundled_modules/vega-selections/build/vega-selection.js +336 -0
  603. package/dist/esm/bundled_modules/vega-statistics/build/vega-statistics.js +1157 -0
  604. package/dist/esm/bundled_modules/vega-themes/build/index.js +837 -0
  605. package/dist/esm/bundled_modules/vega-time/build/vega-time.js +314 -0
  606. package/dist/esm/bundled_modules/vega-tooltip/build/index.js +339 -0
  607. package/dist/esm/bundled_modules/vega-transforms/build/vega-transforms.js +3740 -0
  608. package/dist/esm/bundled_modules/vega-util/build/vega-util.js +753 -0
  609. package/dist/esm/bundled_modules/vega-view/build/vega-view.js +1304 -0
  610. package/dist/esm/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1306 -0
  611. package/dist/esm/bundled_modules/vega-voronoi/build/vega-voronoi.js +78 -0
  612. package/dist/esm/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +538 -0
  613. package/dist/esm/unstable/extras/chart/BarChart.js +40 -0
  614. package/dist/esm/unstable/extras/chart/Chart.js +96 -0
  615. package/dist/esm/unstable/extras/chart/DistributionChart.js +82 -0
  616. package/dist/esm/unstable/extras/chart/DonutChart.js +41 -0
  617. package/dist/esm/unstable/extras/chart/LineChart.js +43 -0
  618. package/dist/esm/unstable/extras/chart/PieChart.js +37 -0
  619. package/dist/esm/unstable/extras/chart/TimelineChart.js +46 -0
  620. package/dist/esm/unstable/extras/chart/index.js +8 -0
  621. package/dist/types/unstable/extras/chart/BarChart.d.ts +16 -0
  622. package/dist/types/unstable/extras/chart/Chart.d.ts +33 -0
  623. package/dist/types/unstable/extras/chart/DistributionChart.d.ts +18 -0
  624. package/dist/types/unstable/extras/chart/DonutChart.d.ts +16 -0
  625. package/dist/types/unstable/extras/chart/LineChart.d.ts +16 -0
  626. package/dist/types/unstable/extras/chart/PieChart.d.ts +14 -0
  627. package/dist/types/unstable/extras/chart/TimelineChart.d.ts +15 -0
  628. package/dist/types/unstable/extras/chart/index.d.ts +15 -0
  629. package/package.json +1 -1
@@ -0,0 +1,842 @@
1
+ 'use strict';
2
+
3
+ var vegaUtil = require('../../vega-util/build/vega-util.js');
4
+ var vegaExpression = require('../../vega-expression/build/vega-expression.js');
5
+ var vegaScale = require('../../vega-scale/build/vega-scale.js');
6
+ var vegaDataflow = require('../../vega-dataflow/build/vega-dataflow.js');
7
+ var vegaScenegraph = require('../../vega-scenegraph/build/vega-scenegraph.js');
8
+ var vegaSelection = require('../../vega-selections/build/vega-selection.js');
9
+ var vegaStatistics = require('../../vega-statistics/build/vega-statistics.js');
10
+ var vegaTime = require('../../vega-time/build/vega-time.js');
11
+ var range$1 = require('../../d3-array/src/range.js');
12
+ var color = require('../../d3-color/src/color.js');
13
+ var lab = require('../../d3-color/src/lab.js');
14
+ var bounds = require('../../d3-geo/src/bounds.js');
15
+ var centroid = require('../../d3-geo/src/centroid.js');
16
+ var area = require('../../d3-geo/src/area.js');
17
+
18
+ function data(name) {
19
+ const data = this.context.data[name];
20
+ return data ? data.values.value : [];
21
+ }
22
+ function indata(name, field, value) {
23
+ const index = this.context.data[name]['index:' + field],
24
+ entry = index ? index.value.get(value) : undefined;
25
+ return entry ? entry.count : entry;
26
+ }
27
+ function setdata(name, tuples) {
28
+ const df = this.context.dataflow,
29
+ data = this.context.data[name],
30
+ input = data.input;
31
+ df.pulse(input, df.changeset().remove(vegaUtil.truthy).insert(tuples));
32
+ return 1;
33
+ }
34
+
35
+ function encode (item, name, retval) {
36
+ if (item) {
37
+ const df = this.context.dataflow,
38
+ target = item.mark.source;
39
+ df.pulse(target, df.changeset().encode(item, name));
40
+ }
41
+ return retval !== undefined ? retval : item;
42
+ }
43
+
44
+ const wrap = method => function (value, spec) {
45
+ const locale = this.context.dataflow.locale();
46
+ return value === null ? 'null' : locale[method](spec)(value);
47
+ };
48
+ const format = wrap('format');
49
+ const timeFormat = wrap('timeFormat');
50
+ const utcFormat = wrap('utcFormat');
51
+ const timeParse = wrap('timeParse');
52
+ const utcParse = wrap('utcParse');
53
+ const dateObj = new Date(2000, 0, 1);
54
+ function time(month, day, specifier) {
55
+ if (!Number.isInteger(month) || !Number.isInteger(day)) return '';
56
+ dateObj.setYear(2000);
57
+ dateObj.setMonth(month);
58
+ dateObj.setDate(day);
59
+ return timeFormat.call(this, dateObj, specifier);
60
+ }
61
+ function monthFormat(month) {
62
+ return time.call(this, month, 1, '%B');
63
+ }
64
+ function monthAbbrevFormat(month) {
65
+ return time.call(this, month, 1, '%b');
66
+ }
67
+ function dayFormat(day) {
68
+ return time.call(this, 0, 2 + day, '%A');
69
+ }
70
+ function dayAbbrevFormat(day) {
71
+ return time.call(this, 0, 2 + day, '%a');
72
+ }
73
+
74
+ const DataPrefix = ':';
75
+ const IndexPrefix = '@';
76
+ const ScalePrefix = '%';
77
+ const SignalPrefix = '$';
78
+
79
+ function dataVisitor(name, args, scope, params) {
80
+ if (args[0].type !== vegaExpression.Literal) {
81
+ vegaUtil.error('First argument to data functions must be a string literal.');
82
+ }
83
+ const data = args[0].value,
84
+ dataName = DataPrefix + data;
85
+ if (!vegaUtil.hasOwnProperty(dataName, params)) {
86
+ try {
87
+ params[dataName] = scope.getData(data).tuplesRef();
88
+ } catch (err) {
89
+ // if data set does not exist, there's nothing to track
90
+ }
91
+ }
92
+ }
93
+ function indataVisitor(name, args, scope, params) {
94
+ if (args[0].type !== vegaExpression.Literal) vegaUtil.error('First argument to indata must be a string literal.');
95
+ if (args[1].type !== vegaExpression.Literal) vegaUtil.error('Second argument to indata must be a string literal.');
96
+ const data = args[0].value,
97
+ field = args[1].value,
98
+ indexName = IndexPrefix + field;
99
+ if (!vegaUtil.hasOwnProperty(indexName, params)) {
100
+ params[indexName] = scope.getData(data).indataRef(scope, field);
101
+ }
102
+ }
103
+ function scaleVisitor(name, args, scope, params) {
104
+ if (args[0].type === vegaExpression.Literal) {
105
+ // add scale dependency
106
+ addScaleDependency(scope, params, args[0].value);
107
+ } else {
108
+ // indirect scale lookup; add all scales as parameters
109
+ for (name in scope.scales) {
110
+ addScaleDependency(scope, params, name);
111
+ }
112
+ }
113
+ }
114
+ function addScaleDependency(scope, params, name) {
115
+ const scaleName = ScalePrefix + name;
116
+ if (!vegaUtil.hasOwnProperty(params, scaleName)) {
117
+ try {
118
+ params[scaleName] = scope.scaleRef(name);
119
+ } catch (err) {
120
+ // TODO: error handling? warning?
121
+ }
122
+ }
123
+ }
124
+
125
+ /**
126
+ * nameOrFunction must be a string or function that was registered.
127
+ * Return undefined if scale is not recognized.
128
+ */
129
+ function getScale(nameOrFunction, ctx) {
130
+ if (vegaUtil.isString(nameOrFunction)) {
131
+ const maybeScale = ctx.scales[nameOrFunction];
132
+ return maybeScale && vegaScale.isRegisteredScale(maybeScale.value) ? maybeScale.value : undefined;
133
+ } else if (vegaUtil.isFunction(nameOrFunction)) {
134
+ return vegaScale.isRegisteredScale(nameOrFunction) ? nameOrFunction : undefined;
135
+ }
136
+ return undefined;
137
+ }
138
+ function internalScaleFunctions(codegen, fnctx, visitors) {
139
+ // add helper method to the 'this' expression function context
140
+ fnctx.__bandwidth = s => s && s.bandwidth ? s.bandwidth() : 0;
141
+
142
+ // register AST visitors for internal scale functions
143
+ visitors._bandwidth = scaleVisitor;
144
+ visitors._range = scaleVisitor;
145
+ visitors._scale = scaleVisitor;
146
+
147
+ // resolve scale reference directly to the signal hash argument
148
+ const ref = arg => '_[' + (arg.type === vegaExpression.Literal ? vegaUtil.stringValue(ScalePrefix + arg.value) : vegaUtil.stringValue(ScalePrefix) + '+' + codegen(arg)) + ']';
149
+
150
+ // define and return internal scale function code generators
151
+ // these internal functions are called by mark encoders
152
+ return {
153
+ _bandwidth: args => `this.__bandwidth(${ref(args[0])})`,
154
+ _range: args => `${ref(args[0])}.range()`,
155
+ _scale: args => `${ref(args[0])}(${codegen(args[1])})`
156
+ };
157
+ }
158
+
159
+ function geoMethod(methodName, globalMethod) {
160
+ return function (projection, geojson, group) {
161
+ if (projection) {
162
+ // projection defined, use it
163
+ const p = getScale(projection, (group || this).context);
164
+ return p && p.path[methodName](geojson);
165
+ } else {
166
+ // projection undefined, use global method
167
+ return globalMethod(geojson);
168
+ }
169
+ };
170
+ }
171
+ const geoArea = geoMethod('area', area.default);
172
+ const geoBounds = geoMethod('bounds', bounds.default);
173
+ const geoCentroid = geoMethod('centroid', centroid.default);
174
+ function geoScale(projection, group) {
175
+ const p = getScale(projection, (group || this).context);
176
+ return p && p.scale();
177
+ }
178
+
179
+ function inScope (item) {
180
+ const group = this.context.group;
181
+ let value = false;
182
+ if (group) while (item) {
183
+ if (item === group) {
184
+ value = true;
185
+ break;
186
+ }
187
+ item = item.mark.group;
188
+ }
189
+ return value;
190
+ }
191
+
192
+ function log(df, method, args) {
193
+ try {
194
+ df[method].apply(df, ['EXPRESSION'].concat([].slice.call(args)));
195
+ } catch (err) {
196
+ df.warn(err);
197
+ }
198
+ return args[args.length - 1];
199
+ }
200
+ function warn() {
201
+ return log(this.context.dataflow, 'warn', arguments);
202
+ }
203
+ function info() {
204
+ return log(this.context.dataflow, 'info', arguments);
205
+ }
206
+ function debug() {
207
+ return log(this.context.dataflow, 'debug', arguments);
208
+ }
209
+
210
+ // https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
211
+ function channel_luminance_value(channelValue) {
212
+ const val = channelValue / 255;
213
+ if (val <= 0.03928) {
214
+ return val / 12.92;
215
+ }
216
+ return Math.pow((val + 0.055) / 1.055, 2.4);
217
+ }
218
+ function luminance(color$1) {
219
+ const c = color.rgb(color$1),
220
+ r = channel_luminance_value(c.r),
221
+ g = channel_luminance_value(c.g),
222
+ b = channel_luminance_value(c.b);
223
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
224
+ }
225
+
226
+ // https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef
227
+ function contrast(color1, color2) {
228
+ const lum1 = luminance(color1),
229
+ lum2 = luminance(color2),
230
+ lumL = Math.max(lum1, lum2),
231
+ lumD = Math.min(lum1, lum2);
232
+ return (lumL + 0.05) / (lumD + 0.05);
233
+ }
234
+
235
+ function merge () {
236
+ const args = [].slice.call(arguments);
237
+ args.unshift({});
238
+ return vegaUtil.extend(...args);
239
+ }
240
+
241
+ function equal(a, b) {
242
+ return a === b || a !== a && b !== b ? true : vegaUtil.isArray(a) ? vegaUtil.isArray(b) && a.length === b.length ? equalArray(a, b) : false : vegaUtil.isObject(a) && vegaUtil.isObject(b) ? equalObject(a, b) : false;
243
+ }
244
+ function equalArray(a, b) {
245
+ for (let i = 0, n = a.length; i < n; ++i) {
246
+ if (!equal(a[i], b[i])) return false;
247
+ }
248
+ return true;
249
+ }
250
+ function equalObject(a, b) {
251
+ for (const key in a) {
252
+ if (!equal(a[key], b[key])) return false;
253
+ }
254
+ return true;
255
+ }
256
+ function removePredicate(props) {
257
+ return _ => equalObject(props, _);
258
+ }
259
+ function modify (name, insert, remove, toggle, modify, values) {
260
+ const df = this.context.dataflow,
261
+ data = this.context.data[name],
262
+ input = data.input,
263
+ stamp = df.stamp();
264
+ let changes = data.changes,
265
+ predicate,
266
+ key;
267
+ if (df._trigger === false || !(input.value.length || insert || toggle)) {
268
+ // nothing to do!
269
+ return 0;
270
+ }
271
+ if (!changes || changes.stamp < stamp) {
272
+ data.changes = changes = df.changeset();
273
+ changes.stamp = stamp;
274
+ df.runAfter(() => {
275
+ data.modified = true;
276
+ df.pulse(input, changes).run();
277
+ }, true, 1);
278
+ }
279
+ if (remove) {
280
+ predicate = remove === true ? vegaUtil.truthy : vegaUtil.isArray(remove) || vegaDataflow.isTuple(remove) ? remove : removePredicate(remove);
281
+ changes.remove(predicate);
282
+ }
283
+ if (insert) {
284
+ changes.insert(insert);
285
+ }
286
+ if (toggle) {
287
+ predicate = removePredicate(toggle);
288
+ if (input.value.some(predicate)) {
289
+ changes.remove(predicate);
290
+ } else {
291
+ changes.insert(toggle);
292
+ }
293
+ }
294
+ if (modify) {
295
+ for (key in values) {
296
+ changes.modify(modify, key, values[key]);
297
+ }
298
+ }
299
+ return 1;
300
+ }
301
+
302
+ function pinchDistance(event) {
303
+ const t = event.touches,
304
+ dx = t[0].clientX - t[1].clientX,
305
+ dy = t[0].clientY - t[1].clientY;
306
+ return Math.hypot(dx, dy);
307
+ }
308
+ function pinchAngle(event) {
309
+ const t = event.touches;
310
+ return Math.atan2(t[0].clientY - t[1].clientY, t[0].clientX - t[1].clientX);
311
+ }
312
+
313
+ // memoize accessor functions
314
+ const accessors = {};
315
+ function pluck (data, name) {
316
+ const accessor = accessors[name] || (accessors[name] = vegaUtil.field(name));
317
+ return vegaUtil.isArray(data) ? data.map(accessor) : accessor(data);
318
+ }
319
+
320
+ function array(seq) {
321
+ return vegaUtil.isArray(seq) || ArrayBuffer.isView(seq) ? seq : null;
322
+ }
323
+ function sequence(seq) {
324
+ return array(seq) || (vegaUtil.isString(seq) ? seq : null);
325
+ }
326
+ function join(seq, ...args) {
327
+ return array(seq).join(...args);
328
+ }
329
+ function indexof(seq, ...args) {
330
+ return sequence(seq).indexOf(...args);
331
+ }
332
+ function lastindexof(seq, ...args) {
333
+ return sequence(seq).lastIndexOf(...args);
334
+ }
335
+ function slice(seq, ...args) {
336
+ return sequence(seq).slice(...args);
337
+ }
338
+ function replace(str, pattern, repl) {
339
+ if (vegaUtil.isFunction(repl)) vegaUtil.error('Function argument passed to replace.');
340
+ if (!vegaUtil.isString(pattern) && !vegaUtil.isRegExp(pattern)) vegaUtil.error('Please pass a string or RegExp argument to replace.');
341
+ return String(str).replace(pattern, repl);
342
+ }
343
+ function reverse(seq) {
344
+ return array(seq).slice().reverse();
345
+ }
346
+ function sort(seq) {
347
+ return array(seq).slice().sort(vegaUtil.ascending);
348
+ }
349
+
350
+ function bandspace(count, paddingInner, paddingOuter) {
351
+ return vegaScale.bandSpace(count || 0, paddingInner || 0, paddingOuter || 0);
352
+ }
353
+ function bandwidth(name, group) {
354
+ const s = getScale(name, (group || this).context);
355
+ return s && s.bandwidth ? s.bandwidth() : 0;
356
+ }
357
+ function copy(name, group) {
358
+ const s = getScale(name, (group || this).context);
359
+ return s ? s.copy() : undefined;
360
+ }
361
+ function domain(name, group) {
362
+ const s = getScale(name, (group || this).context);
363
+ return s ? s.domain() : [];
364
+ }
365
+ function invert(name, range, group) {
366
+ const s = getScale(name, (group || this).context);
367
+ return !s ? undefined : vegaUtil.isArray(range) ? (s.invertRange || s.invert)(range) : (s.invert || s.invertExtent)(range);
368
+ }
369
+ function range(name, group) {
370
+ const s = getScale(name, (group || this).context);
371
+ return s && s.range ? s.range() : [];
372
+ }
373
+ function scale(name, value, group) {
374
+ const s = getScale(name, (group || this).context);
375
+ return s ? s(value) : undefined;
376
+ }
377
+
378
+ function scaleGradient (scale, p0, p1, count, group) {
379
+ scale = getScale(scale, (group || this).context);
380
+ const gradient = vegaScenegraph.Gradient(p0, p1);
381
+ let stops = scale.domain(),
382
+ min = stops[0],
383
+ max = vegaUtil.peek(stops),
384
+ fraction = vegaUtil.identity;
385
+ if (!(max - min)) {
386
+ // expand scale if domain has zero span, fix #1479
387
+ scale = (scale.interpolator ? vegaScale.scale('sequential')().interpolator(scale.interpolator()) : vegaScale.scale('linear')().interpolate(scale.interpolate()).range(scale.range())).domain([min = 0, max = 1]);
388
+ } else {
389
+ fraction = vegaScale.scaleFraction(scale, min, max);
390
+ }
391
+ if (scale.ticks) {
392
+ stops = scale.ticks(+count || 15);
393
+ if (min !== stops[0]) stops.unshift(min);
394
+ if (max !== vegaUtil.peek(stops)) stops.push(max);
395
+ }
396
+ stops.forEach(_ => gradient.stop(fraction(_), scale(_)));
397
+ return gradient;
398
+ }
399
+
400
+ function geoShape(projection, geojson, group) {
401
+ const p = getScale(projection, (group || this).context);
402
+ return function (context) {
403
+ return p ? p.path.context(context)(geojson) : '';
404
+ };
405
+ }
406
+ function pathShape(path) {
407
+ let p = null;
408
+ return function (context) {
409
+ return context ? vegaScenegraph.pathRender(context, p = p || vegaScenegraph.pathParse(path)) : path;
410
+ };
411
+ }
412
+
413
+ const datum = d => d.data;
414
+ function treeNodes(name, context) {
415
+ const tree = data.call(context, name);
416
+ return tree.root && tree.root.lookup || {};
417
+ }
418
+ function treePath(name, source, target) {
419
+ const nodes = treeNodes(name, this),
420
+ s = nodes[source],
421
+ t = nodes[target];
422
+ return s && t ? s.path(t).map(datum) : undefined;
423
+ }
424
+ function treeAncestors(name, node) {
425
+ const n = treeNodes(name, this)[node];
426
+ return n ? n.ancestors().map(datum) : undefined;
427
+ }
428
+
429
+ const _window = () => typeof window !== 'undefined' && window || null;
430
+ function screen() {
431
+ const w = _window();
432
+ return w ? w.screen : {};
433
+ }
434
+ function windowSize() {
435
+ const w = _window();
436
+ return w ? [w.innerWidth, w.innerHeight] : [undefined, undefined];
437
+ }
438
+ function containerSize() {
439
+ const view = this.context.dataflow,
440
+ el = view.container && view.container();
441
+ return el ? [el.clientWidth, el.clientHeight] : [undefined, undefined];
442
+ }
443
+
444
+ function intersect (b, opt, group) {
445
+ if (!b) return [];
446
+ const [u, v] = b,
447
+ box = new vegaScenegraph.Bounds().set(u[0], u[1], v[0], v[1]),
448
+ scene = group || this.context.dataflow.scenegraph().root;
449
+ return vegaScenegraph.intersect(scene, box, filter(opt));
450
+ }
451
+ function filter(opt) {
452
+ let p = null;
453
+ if (opt) {
454
+ const types = vegaUtil.array(opt.marktype),
455
+ names = vegaUtil.array(opt.markname);
456
+ p = _ => (!types.length || types.some(t => _.marktype === t)) && (!names.length || names.some(s => _.name === s));
457
+ }
458
+ return p;
459
+ }
460
+
461
+ /**
462
+ * Appends a new point to the lasso
463
+ *
464
+ * @param {*} lasso the lasso in pixel space
465
+ * @param {*} x the x coordinate in pixel space
466
+ * @param {*} y the y coordinate in pixel space
467
+ * @param {*} minDist the minimum distance, in pixels, that thenew point needs to be apart from the last point
468
+ * @returns a new array containing the lasso with the new point
469
+ */
470
+ function lassoAppend(lasso, x, y, minDist = 5) {
471
+ lasso = vegaUtil.array(lasso);
472
+ const last = lasso[lasso.length - 1];
473
+
474
+ // Add point to lasso if its the first point or distance to last point exceed minDist
475
+ return last === undefined || Math.hypot(last[0] - x, last[1] - y) > minDist ? [...lasso, [x, y]] : lasso;
476
+ }
477
+
478
+ /**
479
+ * Generates a svg path command which draws a lasso
480
+ *
481
+ * @param {*} lasso the lasso in pixel space in the form [[x,y], [x,y], ...]
482
+ * @returns the svg path command that draws the lasso
483
+ */
484
+ function lassoPath(lasso) {
485
+ return vegaUtil.array(lasso).reduce((svg, [x, y], i) => {
486
+ return svg += i == 0 ? `M ${x},${y} ` : i === lasso.length - 1 ? ' Z' : `L ${x},${y} `;
487
+ }, '');
488
+ }
489
+
490
+ /**
491
+ * Inverts the lasso from pixel space to an array of vega scenegraph tuples
492
+ *
493
+ * @param {*} data the dataset
494
+ * @param {*} pixelLasso the lasso in pixel space, [[x,y], [x,y], ...]
495
+ * @param {*} unit the unit where the lasso is defined
496
+ *
497
+ * @returns an array of vega scenegraph tuples
498
+ */
499
+ function intersectLasso(markname, pixelLasso, unit) {
500
+ const {
501
+ x,
502
+ y,
503
+ mark
504
+ } = unit;
505
+ const bb = new vegaScenegraph.Bounds().set(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER);
506
+
507
+ // Get bounding box around lasso
508
+ for (const [px, py] of pixelLasso) {
509
+ if (px < bb.x1) bb.x1 = px;
510
+ if (px > bb.x2) bb.x2 = px;
511
+ if (py < bb.y1) bb.y1 = py;
512
+ if (py > bb.y2) bb.y2 = py;
513
+ }
514
+
515
+ // Translate bb against unit coordinates
516
+ bb.translate(x, y);
517
+ const intersection = intersect([[bb.x1, bb.y1], [bb.x2, bb.y2]], markname, mark);
518
+
519
+ // Check every point against the lasso
520
+ return intersection.filter(tuple => pointInPolygon(tuple.x, tuple.y, pixelLasso));
521
+ }
522
+
523
+ /**
524
+ * Performs a test if a point is inside a polygon based on the idea from
525
+ * https://wrf.ecse.rpi.edu/Research/Short_Notes/pnpoly.html
526
+ *
527
+ * This method will not need the same start/end point since it wraps around the edges of the array
528
+ *
529
+ * @param {*} test a point to test against
530
+ * @param {*} polygon a polygon in the form [[x,y], [x,y], ...]
531
+ * @returns true if the point lies inside the polygon, false otherwise
532
+ */
533
+ function pointInPolygon(testx, testy, polygon) {
534
+ let intersections = 0;
535
+ for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
536
+ const [prevX, prevY] = polygon[j];
537
+ const [x, y] = polygon[i];
538
+
539
+ // count intersections
540
+ if (y > testy != prevY > testy && testx < (prevX - x) * (testy - y) / (prevY - y) + x) {
541
+ intersections++;
542
+ }
543
+ }
544
+
545
+ // point is in polygon if intersection count is odd
546
+ return intersections & 1;
547
+ }
548
+
549
+ // Expression function context object
550
+ const functionContext = {
551
+ random() {
552
+ return vegaStatistics.random();
553
+ },
554
+ // override default
555
+ cumulativeNormal: vegaStatistics.cumulativeNormal,
556
+ cumulativeLogNormal: vegaStatistics.cumulativeLogNormal,
557
+ cumulativeUniform: vegaStatistics.cumulativeUniform,
558
+ densityNormal: vegaStatistics.densityNormal,
559
+ densityLogNormal: vegaStatistics.densityLogNormal,
560
+ densityUniform: vegaStatistics.densityUniform,
561
+ quantileNormal: vegaStatistics.quantileNormal,
562
+ quantileLogNormal: vegaStatistics.quantileLogNormal,
563
+ quantileUniform: vegaStatistics.quantileUniform,
564
+ sampleNormal: vegaStatistics.sampleNormal,
565
+ sampleLogNormal: vegaStatistics.sampleLogNormal,
566
+ sampleUniform: vegaStatistics.sampleUniform,
567
+ isArray: vegaUtil.isArray,
568
+ isBoolean: vegaUtil.isBoolean,
569
+ isDate: vegaUtil.isDate,
570
+ isDefined(_) {
571
+ return _ !== undefined;
572
+ },
573
+ isNumber: vegaUtil.isNumber,
574
+ isObject: vegaUtil.isObject,
575
+ isRegExp: vegaUtil.isRegExp,
576
+ isString: vegaUtil.isString,
577
+ isTuple: vegaDataflow.isTuple,
578
+ isValid(_) {
579
+ return _ != null && _ === _;
580
+ },
581
+ toBoolean: vegaUtil.toBoolean,
582
+ toDate(_) {
583
+ return vegaUtil.toDate(_);
584
+ },
585
+ // suppress extra arguments
586
+ toNumber: vegaUtil.toNumber,
587
+ toString: vegaUtil.toString,
588
+ indexof,
589
+ join,
590
+ lastindexof,
591
+ replace,
592
+ reverse,
593
+ sort,
594
+ slice,
595
+ flush: vegaUtil.flush,
596
+ lerp: vegaUtil.lerp,
597
+ merge,
598
+ pad: vegaUtil.pad,
599
+ peek: vegaUtil.peek,
600
+ pluck,
601
+ span: vegaUtil.span,
602
+ inrange: vegaUtil.inrange,
603
+ truncate: vegaUtil.truncate,
604
+ rgb: color.rgb,
605
+ lab: lab.default,
606
+ hcl: lab.hcl,
607
+ hsl: color.hsl,
608
+ luminance,
609
+ contrast,
610
+ sequence: range$1.default,
611
+ format,
612
+ utcFormat,
613
+ utcParse,
614
+ utcOffset: vegaTime.utcOffset,
615
+ utcSequence: vegaTime.utcSequence,
616
+ timeFormat,
617
+ timeParse,
618
+ timeOffset: vegaTime.timeOffset,
619
+ timeSequence: vegaTime.timeSequence,
620
+ timeUnitSpecifier: vegaTime.timeUnitSpecifier,
621
+ monthFormat,
622
+ monthAbbrevFormat,
623
+ dayFormat,
624
+ dayAbbrevFormat,
625
+ quarter: vegaUtil.quarter,
626
+ utcquarter: vegaUtil.utcquarter,
627
+ week: vegaTime.week,
628
+ utcweek: vegaTime.utcweek,
629
+ dayofyear: vegaTime.dayofyear,
630
+ utcdayofyear: vegaTime.utcdayofyear,
631
+ warn,
632
+ info,
633
+ debug,
634
+ extent(_) {
635
+ return vegaUtil.extent(_);
636
+ },
637
+ // suppress extra arguments
638
+ inScope,
639
+ intersect,
640
+ clampRange: vegaUtil.clampRange,
641
+ pinchDistance,
642
+ pinchAngle,
643
+ screen,
644
+ containerSize,
645
+ windowSize,
646
+ bandspace,
647
+ setdata,
648
+ pathShape,
649
+ panLinear: vegaUtil.panLinear,
650
+ panLog: vegaUtil.panLog,
651
+ panPow: vegaUtil.panPow,
652
+ panSymlog: vegaUtil.panSymlog,
653
+ zoomLinear: vegaUtil.zoomLinear,
654
+ zoomLog: vegaUtil.zoomLog,
655
+ zoomPow: vegaUtil.zoomPow,
656
+ zoomSymlog: vegaUtil.zoomSymlog,
657
+ encode,
658
+ modify,
659
+ lassoAppend,
660
+ lassoPath,
661
+ intersectLasso
662
+ };
663
+ const eventFunctions = ['view', 'item', 'group', 'xy', 'x', 'y'],
664
+ // event functions
665
+ eventPrefix = 'event.vega.',
666
+ // event function prefix
667
+ thisPrefix = 'this.',
668
+ // function context prefix
669
+ astVisitors = {}; // AST visitors for dependency analysis
670
+
671
+ // export code generator parameters
672
+ const codegenParams = {
673
+ forbidden: ['_'],
674
+ allowed: ['datum', 'event', 'item'],
675
+ fieldvar: 'datum',
676
+ globalvar: id => `_[${vegaUtil.stringValue(SignalPrefix + id)}]`,
677
+ functions: buildFunctions,
678
+ constants: vegaExpression.constants,
679
+ visitors: astVisitors
680
+ };
681
+
682
+ // export code generator
683
+ const codeGenerator = vegaExpression.codegenExpression(codegenParams);
684
+
685
+ // Build expression function registry
686
+ function buildFunctions(codegen) {
687
+ const fn = vegaExpression.functions(codegen);
688
+ eventFunctions.forEach(name => fn[name] = eventPrefix + name);
689
+ for (const name in functionContext) {
690
+ fn[name] = thisPrefix + name;
691
+ }
692
+ vegaUtil.extend(fn, internalScaleFunctions(codegen, functionContext, astVisitors));
693
+ return fn;
694
+ }
695
+
696
+ // Register an expression function
697
+ function expressionFunction(name, fn, visitor) {
698
+ if (arguments.length === 1) {
699
+ return functionContext[name];
700
+ }
701
+
702
+ // register with the functionContext
703
+ functionContext[name] = fn;
704
+
705
+ // if there is an astVisitor register that, too
706
+ if (visitor) astVisitors[name] = visitor;
707
+
708
+ // if the code generator has already been initialized,
709
+ // we need to also register the function with it
710
+ if (codeGenerator) codeGenerator.functions[name] = thisPrefix + name;
711
+ return this;
712
+ }
713
+
714
+ // register expression functions with ast visitors
715
+ expressionFunction('bandwidth', bandwidth, scaleVisitor);
716
+ expressionFunction('copy', copy, scaleVisitor);
717
+ expressionFunction('domain', domain, scaleVisitor);
718
+ expressionFunction('range', range, scaleVisitor);
719
+ expressionFunction('invert', invert, scaleVisitor);
720
+ expressionFunction('scale', scale, scaleVisitor);
721
+ expressionFunction('gradient', scaleGradient, scaleVisitor);
722
+ expressionFunction('geoArea', geoArea, scaleVisitor);
723
+ expressionFunction('geoBounds', geoBounds, scaleVisitor);
724
+ expressionFunction('geoCentroid', geoCentroid, scaleVisitor);
725
+ expressionFunction('geoShape', geoShape, scaleVisitor);
726
+ expressionFunction('geoScale', geoScale, scaleVisitor);
727
+ expressionFunction('indata', indata, indataVisitor);
728
+ expressionFunction('data', data, dataVisitor);
729
+ expressionFunction('treePath', treePath, dataVisitor);
730
+ expressionFunction('treeAncestors', treeAncestors, dataVisitor);
731
+
732
+ // register Vega-Lite selection functions
733
+ expressionFunction('vlSelectionTest', vegaSelection.selectionTest, vegaSelection.selectionVisitor);
734
+ expressionFunction('vlSelectionIdTest', vegaSelection.selectionIdTest, vegaSelection.selectionVisitor);
735
+ expressionFunction('vlSelectionResolve', vegaSelection.selectionResolve, vegaSelection.selectionVisitor);
736
+ expressionFunction('vlSelectionTuples', vegaSelection.selectionTuples);
737
+
738
+ function parser (expr, scope) {
739
+ const params = {};
740
+
741
+ // parse the expression to an abstract syntax tree (ast)
742
+ let ast;
743
+ try {
744
+ expr = vegaUtil.isString(expr) ? expr : vegaUtil.stringValue(expr) + '';
745
+ ast = vegaExpression.parseExpression(expr);
746
+ } catch (err) {
747
+ vegaUtil.error('Expression parse error: ' + expr);
748
+ }
749
+
750
+ // analyze ast function calls for dependencies
751
+ ast.visit(node => {
752
+ if (node.type !== vegaExpression.CallExpression) return;
753
+ const name = node.callee.name,
754
+ visit = codegenParams.visitors[name];
755
+ if (visit) visit(name, node.arguments, scope, params);
756
+ });
757
+
758
+ // perform code generation
759
+ const gen = codeGenerator(ast);
760
+
761
+ // collect signal dependencies
762
+ gen.globals.forEach(name => {
763
+ const signalName = SignalPrefix + name;
764
+ if (!vegaUtil.hasOwnProperty(params, signalName) && scope.getSignal(name)) {
765
+ params[signalName] = scope.signalRef(name);
766
+ }
767
+ });
768
+
769
+ // return generated expression code and dependencies
770
+ return {
771
+ $expr: vegaUtil.extend({
772
+ code: gen.code
773
+ }, scope.options.ast ? {
774
+ ast
775
+ } : null),
776
+ $fields: gen.fields,
777
+ $params: params
778
+ };
779
+ }
780
+
781
+ exports.DataPrefix = DataPrefix;
782
+ exports.IndexPrefix = IndexPrefix;
783
+ exports.ScalePrefix = ScalePrefix;
784
+ exports.SignalPrefix = SignalPrefix;
785
+ exports.bandspace = bandspace;
786
+ exports.bandwidth = bandwidth;
787
+ exports.codeGenerator = codeGenerator;
788
+ exports.codegenParams = codegenParams;
789
+ exports.containerSize = containerSize;
790
+ exports.contrast = contrast;
791
+ exports.copy = copy;
792
+ exports.data = data;
793
+ exports.dataVisitor = dataVisitor;
794
+ exports.dayAbbrevFormat = dayAbbrevFormat;
795
+ exports.dayFormat = dayFormat;
796
+ exports.debug = debug;
797
+ exports.domain = domain;
798
+ exports.encode = encode;
799
+ exports.expressionFunction = expressionFunction;
800
+ exports.format = format;
801
+ exports.functionContext = functionContext;
802
+ exports.geoArea = geoArea;
803
+ exports.geoBounds = geoBounds;
804
+ exports.geoCentroid = geoCentroid;
805
+ exports.geoScale = geoScale;
806
+ exports.geoShape = geoShape;
807
+ exports.inScope = inScope;
808
+ exports.indata = indata;
809
+ exports.indataVisitor = indataVisitor;
810
+ exports.indexof = indexof;
811
+ exports.info = info;
812
+ exports.invert = invert;
813
+ exports.join = join;
814
+ exports.lastindexof = lastindexof;
815
+ exports.luminance = luminance;
816
+ exports.merge = merge;
817
+ exports.modify = modify;
818
+ exports.monthAbbrevFormat = monthAbbrevFormat;
819
+ exports.monthFormat = monthFormat;
820
+ exports.parseExpression = parser;
821
+ exports.pathShape = pathShape;
822
+ exports.pinchAngle = pinchAngle;
823
+ exports.pinchDistance = pinchDistance;
824
+ exports.pluck = pluck;
825
+ exports.range = range;
826
+ exports.replace = replace;
827
+ exports.reverse = reverse;
828
+ exports.scale = scale;
829
+ exports.scaleGradient = scaleGradient;
830
+ exports.scaleVisitor = scaleVisitor;
831
+ exports.screen = screen;
832
+ exports.setdata = setdata;
833
+ exports.slice = slice;
834
+ exports.sort = sort;
835
+ exports.timeFormat = timeFormat;
836
+ exports.timeParse = timeParse;
837
+ exports.treeAncestors = treeAncestors;
838
+ exports.treePath = treePath;
839
+ exports.utcFormat = utcFormat;
840
+ exports.utcParse = utcParse;
841
+ exports.warn = warn;
842
+ exports.windowSize = windowSize;