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