@veritone-ce/design-system 2.8.12 → 2.8.13-next.1

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 (688) hide show
  1. package/dist/cjs/Dialog/components.js +29 -90
  2. package/dist/cjs/Dialog/state.js +2 -8
  3. package/dist/cjs/Dialog/styles.module.scss.js +2 -2
  4. package/dist/cjs/FileUploader/controlled.js +7 -0
  5. package/dist/cjs/Table/AutoTable/controlled.js +2 -1
  6. package/dist/cjs/Table/AutoTable/styles.module.scss.js +1 -1
  7. package/dist/cjs/TablePagination/index.js +21 -8
  8. package/dist/cjs/bundled_modules/d3-array/src/ascending.js +9 -0
  9. package/dist/cjs/bundled_modules/d3-array/src/bisect.js +16 -0
  10. package/dist/cjs/bundled_modules/d3-array/src/bisector.js +62 -0
  11. package/dist/cjs/bundled_modules/d3-array/src/descending.js +13 -0
  12. package/dist/cjs/bundled_modules/d3-array/src/deviation.js +12 -0
  13. package/dist/cjs/bundled_modules/d3-array/src/fsum.js +45 -0
  14. package/dist/cjs/bundled_modules/d3-array/src/intersection.js +25 -0
  15. package/dist/cjs/bundled_modules/d3-array/src/max.js +26 -0
  16. package/dist/cjs/bundled_modules/d3-array/src/mean.js +25 -0
  17. package/dist/cjs/bundled_modules/d3-array/src/median.js +11 -0
  18. package/dist/cjs/bundled_modules/d3-array/src/merge.js +15 -0
  19. package/dist/cjs/bundled_modules/d3-array/src/min.js +26 -0
  20. package/dist/cjs/bundled_modules/d3-array/src/number.js +27 -0
  21. package/dist/cjs/bundled_modules/d3-array/src/permute.js +9 -0
  22. package/dist/cjs/bundled_modules/d3-array/src/quantile.js +36 -0
  23. package/dist/cjs/bundled_modules/d3-array/src/quickselect.js +59 -0
  24. package/dist/cjs/bundled_modules/d3-array/src/range.js +19 -0
  25. package/dist/cjs/bundled_modules/d3-array/src/sort.js +20 -0
  26. package/dist/cjs/bundled_modules/d3-array/src/sum.js +17 -0
  27. package/dist/cjs/bundled_modules/d3-array/src/ticks.js +63 -0
  28. package/dist/cjs/bundled_modules/d3-array/src/union.js +17 -0
  29. package/dist/cjs/bundled_modules/d3-array/src/variance.js +31 -0
  30. package/dist/cjs/bundled_modules/d3-color/src/color.js +410 -0
  31. package/dist/cjs/bundled_modules/d3-color/src/cubehelix.js +68 -0
  32. package/dist/cjs/bundled_modules/d3-color/src/define.js +17 -0
  33. package/dist/cjs/bundled_modules/d3-color/src/lab.js +124 -0
  34. package/dist/cjs/bundled_modules/d3-color/src/math.js +7 -0
  35. package/dist/cjs/bundled_modules/d3-delaunay/src/delaunay.js +254 -0
  36. package/dist/cjs/bundled_modules/d3-delaunay/src/path.js +43 -0
  37. package/dist/cjs/bundled_modules/d3-delaunay/src/polygon.js +23 -0
  38. package/dist/cjs/bundled_modules/d3-delaunay/src/voronoi.js +338 -0
  39. package/dist/cjs/bundled_modules/d3-dispatch/src/dispatch.js +88 -0
  40. package/dist/cjs/bundled_modules/d3-dsv/src/dsv.js +170 -0
  41. package/dist/cjs/bundled_modules/d3-force/src/center.js +46 -0
  42. package/dist/cjs/bundled_modules/d3-force/src/collide.js +106 -0
  43. package/dist/cjs/bundled_modules/d3-force/src/constant.js +11 -0
  44. package/dist/cjs/bundled_modules/d3-force/src/jiggle.js +9 -0
  45. package/dist/cjs/bundled_modules/d3-force/src/lcg.js +15 -0
  46. package/dist/cjs/bundled_modules/d3-force/src/link.js +123 -0
  47. package/dist/cjs/bundled_modules/d3-force/src/manyBody.js +122 -0
  48. package/dist/cjs/bundled_modules/d3-force/src/simulation.js +164 -0
  49. package/dist/cjs/bundled_modules/d3-force/src/x.js +47 -0
  50. package/dist/cjs/bundled_modules/d3-force/src/y.js +47 -0
  51. package/dist/cjs/bundled_modules/d3-format/src/defaultLocale.js +24 -0
  52. package/dist/cjs/bundled_modules/d3-format/src/exponent.js +11 -0
  53. package/dist/cjs/bundled_modules/d3-format/src/formatDecimal.js +27 -0
  54. package/dist/cjs/bundled_modules/d3-format/src/formatGroup.js +24 -0
  55. package/dist/cjs/bundled_modules/d3-format/src/formatNumerals.js +13 -0
  56. package/dist/cjs/bundled_modules/d3-format/src/formatPrefixAuto.js +22 -0
  57. package/dist/cjs/bundled_modules/d3-format/src/formatRounded.js +17 -0
  58. package/dist/cjs/bundled_modules/d3-format/src/formatSpecifier.js +54 -0
  59. package/dist/cjs/bundled_modules/d3-format/src/formatTrim.js +17 -0
  60. package/dist/cjs/bundled_modules/d3-format/src/formatTypes.js +25 -0
  61. package/dist/cjs/bundled_modules/d3-format/src/identity.js +9 -0
  62. package/dist/cjs/bundled_modules/d3-format/src/locale.js +154 -0
  63. package/dist/cjs/bundled_modules/d3-format/src/precisionFixed.js +11 -0
  64. package/dist/cjs/bundled_modules/d3-format/src/precisionPrefix.js +11 -0
  65. package/dist/cjs/bundled_modules/d3-format/src/precisionRound.js +12 -0
  66. package/dist/cjs/bundled_modules/d3-geo/src/area.js +83 -0
  67. package/dist/cjs/bundled_modules/d3-geo/src/bounds.js +185 -0
  68. package/dist/cjs/bundled_modules/d3-geo/src/cartesian.js +43 -0
  69. package/dist/cjs/bundled_modules/d3-geo/src/centroid.js +149 -0
  70. package/dist/cjs/bundled_modules/d3-geo/src/circle.js +35 -0
  71. package/dist/cjs/bundled_modules/d3-geo/src/clip/antimeridian.js +98 -0
  72. package/dist/cjs/bundled_modules/d3-geo/src/clip/buffer.js +30 -0
  73. package/dist/cjs/bundled_modules/d3-geo/src/clip/circle.js +183 -0
  74. package/dist/cjs/bundled_modules/d3-geo/src/clip/index.js +137 -0
  75. package/dist/cjs/bundled_modules/d3-geo/src/clip/line.js +65 -0
  76. package/dist/cjs/bundled_modules/d3-geo/src/clip/rectangle.js +174 -0
  77. package/dist/cjs/bundled_modules/d3-geo/src/clip/rejoin.js +109 -0
  78. package/dist/cjs/bundled_modules/d3-geo/src/compose.js +18 -0
  79. package/dist/cjs/bundled_modules/d3-geo/src/graticule.js +107 -0
  80. package/dist/cjs/bundled_modules/d3-geo/src/identity.js +7 -0
  81. package/dist/cjs/bundled_modules/d3-geo/src/math.js +57 -0
  82. package/dist/cjs/bundled_modules/d3-geo/src/noop.js +7 -0
  83. package/dist/cjs/bundled_modules/d3-geo/src/path/area.js +54 -0
  84. package/dist/cjs/bundled_modules/d3-geo/src/path/bounds.js +32 -0
  85. package/dist/cjs/bundled_modules/d3-geo/src/path/centroid.js +104 -0
  86. package/dist/cjs/bundled_modules/d3-geo/src/path/context.js +51 -0
  87. package/dist/cjs/bundled_modules/d3-geo/src/path/index.js +82 -0
  88. package/dist/cjs/bundled_modules/d3-geo/src/path/measure.js +49 -0
  89. package/dist/cjs/bundled_modules/d3-geo/src/path/string.js +92 -0
  90. package/dist/cjs/bundled_modules/d3-geo/src/pointEqual.js +11 -0
  91. package/dist/cjs/bundled_modules/d3-geo/src/polygonContains.js +80 -0
  92. package/dist/cjs/bundled_modules/d3-geo/src/projection/albers.js +16 -0
  93. package/dist/cjs/bundled_modules/d3-geo/src/projection/albersUsa.js +117 -0
  94. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthal.js +32 -0
  95. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +24 -0
  96. package/dist/cjs/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +24 -0
  97. package/dist/cjs/bundled_modules/d3-geo/src/projection/conic.js +19 -0
  98. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicConformal.js +45 -0
  99. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEqualArea.js +40 -0
  100. package/dist/cjs/bundled_modules/d3-geo/src/projection/conicEquidistant.js +39 -0
  101. package/dist/cjs/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +19 -0
  102. package/dist/cjs/bundled_modules/d3-geo/src/projection/equalEarth.js +43 -0
  103. package/dist/cjs/bundled_modules/d3-geo/src/projection/equirectangular.js +19 -0
  104. package/dist/cjs/bundled_modules/d3-geo/src/projection/fit.js +54 -0
  105. package/dist/cjs/bundled_modules/d3-geo/src/projection/gnomonic.js +23 -0
  106. package/dist/cjs/bundled_modules/d3-geo/src/projection/identity.js +91 -0
  107. package/dist/cjs/bundled_modules/d3-geo/src/projection/index.js +184 -0
  108. package/dist/cjs/bundled_modules/d3-geo/src/projection/mercator.js +60 -0
  109. package/dist/cjs/bundled_modules/d3-geo/src/projection/naturalEarth1.js +35 -0
  110. package/dist/cjs/bundled_modules/d3-geo/src/projection/orthographic.js +22 -0
  111. package/dist/cjs/bundled_modules/d3-geo/src/projection/resample.js +108 -0
  112. package/dist/cjs/bundled_modules/d3-geo/src/projection/stereographic.js +25 -0
  113. package/dist/cjs/bundled_modules/d3-geo/src/projection/transverseMercator.js +34 -0
  114. package/dist/cjs/bundled_modules/d3-geo/src/rotation.js +86 -0
  115. package/dist/cjs/bundled_modules/d3-geo/src/stream.js +75 -0
  116. package/dist/cjs/bundled_modules/d3-geo/src/transform.js +24 -0
  117. package/dist/cjs/bundled_modules/d3-geo-projection/src/math.js +28 -0
  118. package/dist/cjs/bundled_modules/d3-geo-projection/src/mollweide.js +38 -0
  119. package/dist/cjs/bundled_modules/d3-hierarchy/src/accessors.js +13 -0
  120. package/dist/cjs/bundled_modules/d3-hierarchy/src/array.js +27 -0
  121. package/dist/cjs/bundled_modules/d3-hierarchy/src/cluster.js +90 -0
  122. package/dist/cjs/bundled_modules/d3-hierarchy/src/constant.js +16 -0
  123. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +13 -0
  124. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/count.js +18 -0
  125. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +9 -0
  126. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/each.js +13 -0
  127. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +21 -0
  128. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +18 -0
  129. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/find.js +14 -0
  130. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/index.js +99 -0
  131. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +20 -0
  132. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +15 -0
  133. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/links.js +15 -0
  134. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/path.js +36 -0
  135. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +13 -0
  136. package/dist/cjs/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +15 -0
  137. package/dist/cjs/bundled_modules/d3-hierarchy/src/lcg.js +15 -0
  138. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/enclose.js +122 -0
  139. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/index.js +87 -0
  140. package/dist/cjs/bundled_modules/d3-hierarchy/src/pack/siblings.js +118 -0
  141. package/dist/cjs/bundled_modules/d3-hierarchy/src/partition.js +58 -0
  142. package/dist/cjs/bundled_modules/d3-hierarchy/src/stratify.js +151 -0
  143. package/dist/cjs/bundled_modules/d3-hierarchy/src/tree.js +243 -0
  144. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/binary.js +52 -0
  145. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/dice.js +18 -0
  146. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/index.js +100 -0
  147. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +42 -0
  148. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/round.js +12 -0
  149. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/slice.js +18 -0
  150. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +12 -0
  151. package/dist/cjs/bundled_modules/d3-hierarchy/src/treemap/squarify.js +74 -0
  152. package/dist/cjs/bundled_modules/d3-interpolate/src/array.js +29 -0
  153. package/dist/cjs/bundled_modules/d3-interpolate/src/basis.js +26 -0
  154. package/dist/cjs/bundled_modules/d3-interpolate/src/basisClosed.js +19 -0
  155. package/dist/cjs/bundled_modules/d3-interpolate/src/color.js +37 -0
  156. package/dist/cjs/bundled_modules/d3-interpolate/src/constant.js +7 -0
  157. package/dist/cjs/bundled_modules/d3-interpolate/src/cubehelix.js +36 -0
  158. package/dist/cjs/bundled_modules/d3-interpolate/src/date.js +12 -0
  159. package/dist/cjs/bundled_modules/d3-interpolate/src/discrete.js +12 -0
  160. package/dist/cjs/bundled_modules/d3-interpolate/src/hcl.js +28 -0
  161. package/dist/cjs/bundled_modules/d3-interpolate/src/hsl.js +28 -0
  162. package/dist/cjs/bundled_modules/d3-interpolate/src/hue.js +15 -0
  163. package/dist/cjs/bundled_modules/d3-interpolate/src/index.js +53 -0
  164. package/dist/cjs/bundled_modules/d3-interpolate/src/lab.js +22 -0
  165. package/dist/cjs/bundled_modules/d3-interpolate/src/number.js +11 -0
  166. package/dist/cjs/bundled_modules/d3-interpolate/src/numberArray.js +21 -0
  167. package/dist/cjs/bundled_modules/d3-interpolate/src/object.js +29 -0
  168. package/dist/cjs/bundled_modules/d3-interpolate/src/piecewise.js +17 -0
  169. package/dist/cjs/bundled_modules/d3-interpolate/src/quantize.js +11 -0
  170. package/dist/cjs/bundled_modules/d3-interpolate/src/rgb.js +63 -0
  171. package/dist/cjs/bundled_modules/d3-interpolate/src/round.js +11 -0
  172. package/dist/cjs/bundled_modules/d3-interpolate/src/string.js +70 -0
  173. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/decompose.js +33 -0
  174. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/index.js +68 -0
  175. package/dist/cjs/bundled_modules/d3-interpolate/src/transform/parse.js +23 -0
  176. package/dist/cjs/bundled_modules/d3-interpolate/src/value.js +28 -0
  177. package/dist/cjs/bundled_modules/d3-interpolate/src/zoom.js +77 -0
  178. package/dist/cjs/bundled_modules/d3-path/src/path.js +157 -0
  179. package/dist/cjs/bundled_modules/d3-quadtree/src/add.js +91 -0
  180. package/dist/cjs/bundled_modules/d3-quadtree/src/cover.js +49 -0
  181. package/dist/cjs/bundled_modules/d3-quadtree/src/data.js +13 -0
  182. package/dist/cjs/bundled_modules/d3-quadtree/src/extent.js +11 -0
  183. package/dist/cjs/bundled_modules/d3-quadtree/src/find.js +76 -0
  184. package/dist/cjs/bundled_modules/d3-quadtree/src/quad.js +13 -0
  185. package/dist/cjs/bundled_modules/d3-quadtree/src/quadtree.js +79 -0
  186. package/dist/cjs/bundled_modules/d3-quadtree/src/remove.js +69 -0
  187. package/dist/cjs/bundled_modules/d3-quadtree/src/root.js +9 -0
  188. package/dist/cjs/bundled_modules/d3-quadtree/src/size.js +13 -0
  189. package/dist/cjs/bundled_modules/d3-quadtree/src/visit.js +22 -0
  190. package/dist/cjs/bundled_modules/d3-quadtree/src/visitAfter.js +27 -0
  191. package/dist/cjs/bundled_modules/d3-quadtree/src/x.js +14 -0
  192. package/dist/cjs/bundled_modules/d3-quadtree/src/y.js +14 -0
  193. package/dist/cjs/bundled_modules/d3-scale/src/constant.js +11 -0
  194. package/dist/cjs/bundled_modules/d3-scale/src/continuous.js +136 -0
  195. package/dist/cjs/bundled_modules/d3-scale/src/diverging.js +116 -0
  196. package/dist/cjs/bundled_modules/d3-scale/src/identity.js +34 -0
  197. package/dist/cjs/bundled_modules/d3-scale/src/init.js +31 -0
  198. package/dist/cjs/bundled_modules/d3-scale/src/linear.js +77 -0
  199. package/dist/cjs/bundled_modules/d3-scale/src/log.js +148 -0
  200. package/dist/cjs/bundled_modules/d3-scale/src/nice.js +24 -0
  201. package/dist/cjs/bundled_modules/d3-scale/src/number.js +9 -0
  202. package/dist/cjs/bundled_modules/d3-scale/src/ordinal.js +53 -0
  203. package/dist/cjs/bundled_modules/d3-scale/src/pow.js +58 -0
  204. package/dist/cjs/bundled_modules/d3-scale/src/quantile.js +65 -0
  205. package/dist/cjs/bundled_modules/d3-scale/src/quantize.js +62 -0
  206. package/dist/cjs/bundled_modules/d3-scale/src/sequential.js +119 -0
  207. package/dist/cjs/bundled_modules/d3-scale/src/symlog.js +42 -0
  208. package/dist/cjs/bundled_modules/d3-scale/src/threshold.js +45 -0
  209. package/dist/cjs/bundled_modules/d3-scale/src/tickFormat.js +39 -0
  210. package/dist/cjs/bundled_modules/d3-scale/src/time.js +85 -0
  211. package/dist/cjs/bundled_modules/d3-scale/src/utcTime.js +21 -0
  212. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +9 -0
  213. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +9 -0
  214. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +9 -0
  215. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +9 -0
  216. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +9 -0
  217. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +9 -0
  218. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +9 -0
  219. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +9 -0
  220. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +9 -0
  221. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +9 -0
  222. package/dist/cjs/bundled_modules/d3-scale-chromatic/src/colors.js +11 -0
  223. package/dist/cjs/bundled_modules/d3-shape/src/arc.js +274 -0
  224. package/dist/cjs/bundled_modules/d3-shape/src/area.js +118 -0
  225. package/dist/cjs/bundled_modules/d3-shape/src/array.js +11 -0
  226. package/dist/cjs/bundled_modules/d3-shape/src/constant.js +11 -0
  227. package/dist/cjs/bundled_modules/d3-shape/src/curve/basis.js +59 -0
  228. package/dist/cjs/bundled_modules/d3-shape/src/curve/basisClosed.js +58 -0
  229. package/dist/cjs/bundled_modules/d3-shape/src/curve/basisOpen.js +45 -0
  230. package/dist/cjs/bundled_modules/d3-shape/src/curve/bundle.js +62 -0
  231. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinal.js +69 -0
  232. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalClosed.js +68 -0
  233. package/dist/cjs/bundled_modules/d3-shape/src/curve/cardinalOpen.js +56 -0
  234. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRom.js +95 -0
  235. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +80 -0
  236. package/dist/cjs/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +68 -0
  237. package/dist/cjs/bundled_modules/d3-shape/src/curve/linear.js +37 -0
  238. package/dist/cjs/bundled_modules/d3-shape/src/curve/linearClosed.js +31 -0
  239. package/dist/cjs/bundled_modules/d3-shape/src/curve/monotone.js +109 -0
  240. package/dist/cjs/bundled_modules/d3-shape/src/curve/natural.js +71 -0
  241. package/dist/cjs/bundled_modules/d3-shape/src/curve/step.js +61 -0
  242. package/dist/cjs/bundled_modules/d3-shape/src/line.js +64 -0
  243. package/dist/cjs/bundled_modules/d3-shape/src/math.js +36 -0
  244. package/dist/cjs/bundled_modules/d3-shape/src/noop.js +7 -0
  245. package/dist/cjs/bundled_modules/d3-shape/src/path.js +23 -0
  246. package/dist/cjs/bundled_modules/d3-shape/src/point.js +12 -0
  247. package/dist/cjs/bundled_modules/d3-shape/src/symbol/circle.js +15 -0
  248. package/dist/cjs/bundled_modules/d3-shape/src/symbol.js +38 -0
  249. package/dist/cjs/bundled_modules/d3-time/src/day.js +41 -0
  250. package/dist/cjs/bundled_modules/d3-time/src/duration.js +17 -0
  251. package/dist/cjs/bundled_modules/d3-time/src/hour.js +31 -0
  252. package/dist/cjs/bundled_modules/d3-time/src/interval.js +73 -0
  253. package/dist/cjs/bundled_modules/d3-time/src/millisecond.js +29 -0
  254. package/dist/cjs/bundled_modules/d3-time/src/minute.js +31 -0
  255. package/dist/cjs/bundled_modules/d3-time/src/month.js +32 -0
  256. package/dist/cjs/bundled_modules/d3-time/src/second.js +18 -0
  257. package/dist/cjs/bundled_modules/d3-time/src/ticks.js +64 -0
  258. package/dist/cjs/bundled_modules/d3-time/src/week.js +73 -0
  259. package/dist/cjs/bundled_modules/d3-time/src/year.js +54 -0
  260. package/dist/cjs/bundled_modules/d3-time-format/src/defaultLocale.js +33 -0
  261. package/dist/cjs/bundled_modules/d3-time-format/src/locale.js +694 -0
  262. package/dist/cjs/bundled_modules/d3-timer/src/interval.js +23 -0
  263. package/dist/cjs/bundled_modules/d3-timer/src/timer.js +117 -0
  264. package/dist/cjs/bundled_modules/delaunator/index.js +485 -0
  265. package/dist/cjs/bundled_modules/internmap/src/index.js +66 -0
  266. package/dist/cjs/bundled_modules/json-stringify-pretty-compact/index.js +104 -0
  267. package/dist/cjs/bundled_modules/robust-predicates/esm/orient2d.js +184 -0
  268. package/dist/cjs/bundled_modules/robust-predicates/esm/util.js +95 -0
  269. package/dist/cjs/bundled_modules/topojson-client/src/feature.js +77 -0
  270. package/dist/cjs/bundled_modules/topojson-client/src/identity.js +9 -0
  271. package/dist/cjs/bundled_modules/topojson-client/src/mesh.js +60 -0
  272. package/dist/cjs/bundled_modules/topojson-client/src/reverse.js +10 -0
  273. package/dist/cjs/bundled_modules/topojson-client/src/stitch.js +79 -0
  274. package/dist/cjs/bundled_modules/topojson-client/src/transform.js +25 -0
  275. package/dist/cjs/bundled_modules/vega/build/vega.module.js +272 -0
  276. package/dist/cjs/bundled_modules/vega-canvas/build/vega-canvas.browser.js +18 -0
  277. package/dist/cjs/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +676 -0
  278. package/dist/cjs/bundled_modules/vega-dataflow/build/vega-dataflow.js +2102 -0
  279. package/dist/cjs/bundled_modules/vega-embed/build/embed.js +2939 -0
  280. package/dist/cjs/bundled_modules/vega-encode/build/vega-encode.js +962 -0
  281. package/dist/cjs/bundled_modules/vega-event-selector/build/vega-event-selector.js +192 -0
  282. package/dist/cjs/bundled_modules/vega-expression/build/vega-expression.js +1615 -0
  283. package/dist/cjs/bundled_modules/vega-force/build/vega-force.js +295 -0
  284. package/dist/cjs/bundled_modules/vega-format/build/vega-format.js +201 -0
  285. package/dist/cjs/bundled_modules/vega-functions/build/vega-functions.js +842 -0
  286. package/dist/cjs/bundled_modules/vega-geo/build/vega-geo.js +1333 -0
  287. package/dist/cjs/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +580 -0
  288. package/dist/cjs/bundled_modules/vega-interpreter/build/vega-interpreter.js +310 -0
  289. package/dist/cjs/bundled_modules/vega-label/build/vega-label.js +876 -0
  290. package/dist/cjs/bundled_modules/vega-lite/build/index.js +20157 -0
  291. package/dist/cjs/bundled_modules/vega-loader/build/vega-loader.browser.js +337 -0
  292. package/dist/cjs/bundled_modules/vega-parser/build/vega-parser.js +3805 -0
  293. package/dist/cjs/bundled_modules/vega-projection/build/vega-projection.js +90 -0
  294. package/dist/cjs/bundled_modules/vega-regression/build/vega-regression.js +236 -0
  295. package/dist/cjs/bundled_modules/vega-runtime/build/vega-runtime.js +588 -0
  296. package/dist/cjs/bundled_modules/vega-scale/build/vega-scale.js +846 -0
  297. package/dist/cjs/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +5040 -0
  298. package/dist/cjs/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +7 -0
  299. package/dist/cjs/bundled_modules/vega-selections/build/vega-selection.js +342 -0
  300. package/dist/cjs/bundled_modules/vega-statistics/build/vega-statistics.js +1193 -0
  301. package/dist/cjs/bundled_modules/vega-themes/build/index.js +853 -0
  302. package/dist/cjs/bundled_modules/vega-time/build/vega-time.js +342 -0
  303. package/dist/cjs/bundled_modules/vega-tooltip/build/index.js +353 -0
  304. package/dist/cjs/bundled_modules/vega-transforms/build/vega-transforms.js +3781 -0
  305. package/dist/cjs/bundled_modules/vega-util/build/vega-util.js +824 -0
  306. package/dist/cjs/bundled_modules/vega-view/build/vega-view.js +1306 -0
  307. package/dist/cjs/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1313 -0
  308. package/dist/cjs/bundled_modules/vega-voronoi/build/vega-voronoi.js +80 -0
  309. package/dist/cjs/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +540 -0
  310. package/dist/cjs/index.js +11 -0
  311. package/dist/cjs/styles/createPalette.js +11 -0
  312. package/dist/cjs/styles/entrypoint.scss.js +7 -0
  313. package/dist/cjs/styles.css +1 -1
  314. package/dist/cjs/unstable/Card/components.js +213 -0
  315. package/dist/cjs/unstable/Card/state.js +53 -0
  316. package/dist/cjs/unstable/Card/styles.module.scss.js +1 -1
  317. package/dist/cjs/unstable/StatCard/index.js +124 -0
  318. package/dist/cjs/unstable/StatCard/index.module.scss.js +7 -0
  319. package/dist/cjs/unstable/extras/chart/BarChart.js +42 -0
  320. package/dist/cjs/unstable/extras/chart/Chart.js +100 -0
  321. package/dist/cjs/unstable/extras/chart/DistributionChart.js +84 -0
  322. package/dist/cjs/unstable/extras/chart/DonutChart.js +43 -0
  323. package/dist/cjs/unstable/extras/chart/LineChart.js +45 -0
  324. package/dist/cjs/unstable/extras/chart/PieChart.js +39 -0
  325. package/dist/cjs/unstable/extras/chart/TimelineChart.js +48 -0
  326. package/dist/cjs/unstable/extras/chart/index.js +23 -0
  327. package/dist/cjs/unstable/index.js +39 -13
  328. package/dist/cjs/unstable/skeleton/index.js +74 -0
  329. package/dist/cjs/unstable/skeleton/index.module.scss.js +7 -0
  330. package/dist/cjs/unstable/suspense/index.js +18 -0
  331. package/dist/cjs/unstable/suspense/index.module.scss.js +7 -0
  332. package/dist/cjs/unstable/suspense/loader.js +23 -0
  333. package/dist/esm/Dialog/components.js +28 -89
  334. package/dist/esm/Dialog/state.js +2 -8
  335. package/dist/esm/Dialog/styles.module.scss.js +2 -2
  336. package/dist/esm/FileUploader/controlled.js +7 -0
  337. package/dist/esm/Table/AutoTable/controlled.js +2 -1
  338. package/dist/esm/Table/AutoTable/styles.module.scss.js +1 -1
  339. package/dist/esm/TablePagination/index.js +21 -8
  340. package/dist/esm/bundled_modules/d3-array/src/ascending.js +5 -0
  341. package/dist/esm/bundled_modules/d3-array/src/bisect.js +10 -0
  342. package/dist/esm/bundled_modules/d3-array/src/bisector.js +58 -0
  343. package/dist/esm/bundled_modules/d3-array/src/descending.js +9 -0
  344. package/dist/esm/bundled_modules/d3-array/src/deviation.js +8 -0
  345. package/dist/esm/bundled_modules/d3-array/src/fsum.js +43 -0
  346. package/dist/esm/bundled_modules/d3-array/src/intersection.js +21 -0
  347. package/dist/esm/bundled_modules/d3-array/src/max.js +22 -0
  348. package/dist/esm/bundled_modules/d3-array/src/mean.js +21 -0
  349. package/dist/esm/bundled_modules/d3-array/src/median.js +7 -0
  350. package/dist/esm/bundled_modules/d3-array/src/merge.js +11 -0
  351. package/dist/esm/bundled_modules/d3-array/src/min.js +22 -0
  352. package/dist/esm/bundled_modules/d3-array/src/number.js +22 -0
  353. package/dist/esm/bundled_modules/d3-array/src/permute.js +5 -0
  354. package/dist/esm/bundled_modules/d3-array/src/quantile.js +31 -0
  355. package/dist/esm/bundled_modules/d3-array/src/quickselect.js +55 -0
  356. package/dist/esm/bundled_modules/d3-array/src/range.js +15 -0
  357. package/dist/esm/bundled_modules/d3-array/src/sort.js +17 -0
  358. package/dist/esm/bundled_modules/d3-array/src/sum.js +13 -0
  359. package/dist/esm/bundled_modules/d3-array/src/ticks.js +57 -0
  360. package/dist/esm/bundled_modules/d3-array/src/union.js +13 -0
  361. package/dist/esm/bundled_modules/d3-array/src/variance.js +27 -0
  362. package/dist/esm/bundled_modules/d3-color/src/color.js +398 -0
  363. package/dist/esm/bundled_modules/d3-color/src/cubehelix.js +63 -0
  364. package/dist/esm/bundled_modules/d3-color/src/define.js +12 -0
  365. package/dist/esm/bundled_modules/d3-color/src/lab.js +117 -0
  366. package/dist/esm/bundled_modules/d3-color/src/math.js +4 -0
  367. package/dist/esm/bundled_modules/d3-delaunay/src/delaunay.js +250 -0
  368. package/dist/esm/bundled_modules/d3-delaunay/src/path.js +39 -0
  369. package/dist/esm/bundled_modules/d3-delaunay/src/polygon.js +19 -0
  370. package/dist/esm/bundled_modules/d3-delaunay/src/voronoi.js +334 -0
  371. package/dist/esm/bundled_modules/d3-dispatch/src/dispatch.js +84 -0
  372. package/dist/esm/bundled_modules/d3-dsv/src/dsv.js +166 -0
  373. package/dist/esm/bundled_modules/d3-force/src/center.js +42 -0
  374. package/dist/esm/bundled_modules/d3-force/src/collide.js +102 -0
  375. package/dist/esm/bundled_modules/d3-force/src/constant.js +7 -0
  376. package/dist/esm/bundled_modules/d3-force/src/jiggle.js +5 -0
  377. package/dist/esm/bundled_modules/d3-force/src/lcg.js +11 -0
  378. package/dist/esm/bundled_modules/d3-force/src/link.js +119 -0
  379. package/dist/esm/bundled_modules/d3-force/src/manyBody.js +118 -0
  380. package/dist/esm/bundled_modules/d3-force/src/simulation.js +158 -0
  381. package/dist/esm/bundled_modules/d3-force/src/x.js +43 -0
  382. package/dist/esm/bundled_modules/d3-force/src/y.js +43 -0
  383. package/dist/esm/bundled_modules/d3-format/src/defaultLocale.js +20 -0
  384. package/dist/esm/bundled_modules/d3-format/src/exponent.js +7 -0
  385. package/dist/esm/bundled_modules/d3-format/src/formatDecimal.js +22 -0
  386. package/dist/esm/bundled_modules/d3-format/src/formatGroup.js +20 -0
  387. package/dist/esm/bundled_modules/d3-format/src/formatNumerals.js +9 -0
  388. package/dist/esm/bundled_modules/d3-format/src/formatPrefixAuto.js +18 -0
  389. package/dist/esm/bundled_modules/d3-format/src/formatRounded.js +13 -0
  390. package/dist/esm/bundled_modules/d3-format/src/formatSpecifier.js +49 -0
  391. package/dist/esm/bundled_modules/d3-format/src/formatTrim.js +13 -0
  392. package/dist/esm/bundled_modules/d3-format/src/formatTypes.js +21 -0
  393. package/dist/esm/bundled_modules/d3-format/src/identity.js +5 -0
  394. package/dist/esm/bundled_modules/d3-format/src/locale.js +150 -0
  395. package/dist/esm/bundled_modules/d3-format/src/precisionFixed.js +7 -0
  396. package/dist/esm/bundled_modules/d3-format/src/precisionPrefix.js +7 -0
  397. package/dist/esm/bundled_modules/d3-format/src/precisionRound.js +8 -0
  398. package/dist/esm/bundled_modules/d3-geo/src/area.js +78 -0
  399. package/dist/esm/bundled_modules/d3-geo/src/bounds.js +181 -0
  400. package/dist/esm/bundled_modules/d3-geo/src/cartesian.js +35 -0
  401. package/dist/esm/bundled_modules/d3-geo/src/centroid.js +145 -0
  402. package/dist/esm/bundled_modules/d3-geo/src/circle.js +33 -0
  403. package/dist/esm/bundled_modules/d3-geo/src/clip/antimeridian.js +94 -0
  404. package/dist/esm/bundled_modules/d3-geo/src/clip/buffer.js +26 -0
  405. package/dist/esm/bundled_modules/d3-geo/src/clip/circle.js +179 -0
  406. package/dist/esm/bundled_modules/d3-geo/src/clip/index.js +133 -0
  407. package/dist/esm/bundled_modules/d3-geo/src/clip/line.js +61 -0
  408. package/dist/esm/bundled_modules/d3-geo/src/clip/rectangle.js +170 -0
  409. package/dist/esm/bundled_modules/d3-geo/src/clip/rejoin.js +105 -0
  410. package/dist/esm/bundled_modules/d3-geo/src/compose.js +14 -0
  411. package/dist/esm/bundled_modules/d3-geo/src/graticule.js +103 -0
  412. package/dist/esm/bundled_modules/d3-geo/src/identity.js +3 -0
  413. package/dist/esm/bundled_modules/d3-geo/src/math.js +33 -0
  414. package/dist/esm/bundled_modules/d3-geo/src/noop.js +3 -0
  415. package/dist/esm/bundled_modules/d3-geo/src/path/area.js +50 -0
  416. package/dist/esm/bundled_modules/d3-geo/src/path/bounds.js +28 -0
  417. package/dist/esm/bundled_modules/d3-geo/src/path/centroid.js +100 -0
  418. package/dist/esm/bundled_modules/d3-geo/src/path/context.js +47 -0
  419. package/dist/esm/bundled_modules/d3-geo/src/path/index.js +78 -0
  420. package/dist/esm/bundled_modules/d3-geo/src/path/measure.js +45 -0
  421. package/dist/esm/bundled_modules/d3-geo/src/path/string.js +88 -0
  422. package/dist/esm/bundled_modules/d3-geo/src/pointEqual.js +7 -0
  423. package/dist/esm/bundled_modules/d3-geo/src/polygonContains.js +76 -0
  424. package/dist/esm/bundled_modules/d3-geo/src/projection/albers.js +12 -0
  425. package/dist/esm/bundled_modules/d3-geo/src/projection/albersUsa.js +113 -0
  426. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthal.js +29 -0
  427. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEqualArea.js +19 -0
  428. package/dist/esm/bundled_modules/d3-geo/src/projection/azimuthalEquidistant.js +19 -0
  429. package/dist/esm/bundled_modules/d3-geo/src/projection/conic.js +17 -0
  430. package/dist/esm/bundled_modules/d3-geo/src/projection/conicConformal.js +40 -0
  431. package/dist/esm/bundled_modules/d3-geo/src/projection/conicEqualArea.js +35 -0
  432. package/dist/esm/bundled_modules/d3-geo/src/projection/conicEquidistant.js +34 -0
  433. package/dist/esm/bundled_modules/d3-geo/src/projection/cylindricalEqualArea.js +17 -0
  434. package/dist/esm/bundled_modules/d3-geo/src/projection/equalEarth.js +38 -0
  435. package/dist/esm/bundled_modules/d3-geo/src/projection/equirectangular.js +14 -0
  436. package/dist/esm/bundled_modules/d3-geo/src/projection/fit.js +49 -0
  437. package/dist/esm/bundled_modules/d3-geo/src/projection/gnomonic.js +18 -0
  438. package/dist/esm/bundled_modules/d3-geo/src/projection/identity.js +87 -0
  439. package/dist/esm/bundled_modules/d3-geo/src/projection/index.js +179 -0
  440. package/dist/esm/bundled_modules/d3-geo/src/projection/mercator.js +54 -0
  441. package/dist/esm/bundled_modules/d3-geo/src/projection/naturalEarth1.js +30 -0
  442. package/dist/esm/bundled_modules/d3-geo/src/projection/orthographic.js +17 -0
  443. package/dist/esm/bundled_modules/d3-geo/src/projection/resample.js +104 -0
  444. package/dist/esm/bundled_modules/d3-geo/src/projection/stereographic.js +20 -0
  445. package/dist/esm/bundled_modules/d3-geo/src/projection/transverseMercator.js +29 -0
  446. package/dist/esm/bundled_modules/d3-geo/src/rotation.js +81 -0
  447. package/dist/esm/bundled_modules/d3-geo/src/stream.js +71 -0
  448. package/dist/esm/bundled_modules/d3-geo/src/transform.js +22 -0
  449. package/dist/esm/bundled_modules/d3-geo-projection/src/math.js +18 -0
  450. package/dist/esm/bundled_modules/d3-geo-projection/src/mollweide.js +31 -0
  451. package/dist/esm/bundled_modules/d3-hierarchy/src/accessors.js +10 -0
  452. package/dist/esm/bundled_modules/d3-hierarchy/src/array.js +22 -0
  453. package/dist/esm/bundled_modules/d3-hierarchy/src/cluster.js +86 -0
  454. package/dist/esm/bundled_modules/d3-hierarchy/src/constant.js +11 -0
  455. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/ancestors.js +9 -0
  456. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/count.js +14 -0
  457. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/descendants.js +5 -0
  458. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/each.js +9 -0
  459. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachAfter.js +17 -0
  460. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/eachBefore.js +14 -0
  461. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/find.js +10 -0
  462. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/index.js +93 -0
  463. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/iterator.js +16 -0
  464. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/leaves.js +11 -0
  465. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/links.js +11 -0
  466. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/path.js +32 -0
  467. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sort.js +9 -0
  468. package/dist/esm/bundled_modules/d3-hierarchy/src/hierarchy/sum.js +11 -0
  469. package/dist/esm/bundled_modules/d3-hierarchy/src/lcg.js +11 -0
  470. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/enclose.js +120 -0
  471. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/index.js +83 -0
  472. package/dist/esm/bundled_modules/d3-hierarchy/src/pack/siblings.js +116 -0
  473. package/dist/esm/bundled_modules/d3-hierarchy/src/partition.js +54 -0
  474. package/dist/esm/bundled_modules/d3-hierarchy/src/stratify.js +147 -0
  475. package/dist/esm/bundled_modules/d3-hierarchy/src/tree.js +239 -0
  476. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/binary.js +48 -0
  477. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/dice.js +14 -0
  478. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/index.js +96 -0
  479. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/resquarify.js +38 -0
  480. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/round.js +8 -0
  481. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/slice.js +14 -0
  482. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/sliceDice.js +8 -0
  483. package/dist/esm/bundled_modules/d3-hierarchy/src/treemap/squarify.js +68 -0
  484. package/dist/esm/bundled_modules/d3-interpolate/src/array.js +24 -0
  485. package/dist/esm/bundled_modules/d3-interpolate/src/basis.js +21 -0
  486. package/dist/esm/bundled_modules/d3-interpolate/src/basisClosed.js +15 -0
  487. package/dist/esm/bundled_modules/d3-interpolate/src/color.js +31 -0
  488. package/dist/esm/bundled_modules/d3-interpolate/src/constant.js +3 -0
  489. package/dist/esm/bundled_modules/d3-interpolate/src/cubehelix.js +31 -0
  490. package/dist/esm/bundled_modules/d3-interpolate/src/date.js +8 -0
  491. package/dist/esm/bundled_modules/d3-interpolate/src/discrete.js +8 -0
  492. package/dist/esm/bundled_modules/d3-interpolate/src/hcl.js +23 -0
  493. package/dist/esm/bundled_modules/d3-interpolate/src/hsl.js +23 -0
  494. package/dist/esm/bundled_modules/d3-interpolate/src/hue.js +11 -0
  495. package/dist/esm/bundled_modules/d3-interpolate/src/index.js +21 -0
  496. package/dist/esm/bundled_modules/d3-interpolate/src/lab.js +18 -0
  497. package/dist/esm/bundled_modules/d3-interpolate/src/number.js +7 -0
  498. package/dist/esm/bundled_modules/d3-interpolate/src/numberArray.js +16 -0
  499. package/dist/esm/bundled_modules/d3-interpolate/src/object.js +25 -0
  500. package/dist/esm/bundled_modules/d3-interpolate/src/piecewise.js +13 -0
  501. package/dist/esm/bundled_modules/d3-interpolate/src/quantize.js +7 -0
  502. package/dist/esm/bundled_modules/d3-interpolate/src/rgb.js +57 -0
  503. package/dist/esm/bundled_modules/d3-interpolate/src/round.js +7 -0
  504. package/dist/esm/bundled_modules/d3-interpolate/src/string.js +66 -0
  505. package/dist/esm/bundled_modules/d3-interpolate/src/transform/decompose.js +28 -0
  506. package/dist/esm/bundled_modules/d3-interpolate/src/transform/index.js +65 -0
  507. package/dist/esm/bundled_modules/d3-interpolate/src/transform/parse.js +20 -0
  508. package/dist/esm/bundled_modules/d3-interpolate/src/value.js +24 -0
  509. package/dist/esm/bundled_modules/d3-interpolate/src/zoom.js +73 -0
  510. package/dist/esm/bundled_modules/d3-path/src/path.js +154 -0
  511. package/dist/esm/bundled_modules/d3-quadtree/src/add.js +86 -0
  512. package/dist/esm/bundled_modules/d3-quadtree/src/cover.js +45 -0
  513. package/dist/esm/bundled_modules/d3-quadtree/src/data.js +9 -0
  514. package/dist/esm/bundled_modules/d3-quadtree/src/extent.js +7 -0
  515. package/dist/esm/bundled_modules/d3-quadtree/src/find.js +72 -0
  516. package/dist/esm/bundled_modules/d3-quadtree/src/quad.js +9 -0
  517. package/dist/esm/bundled_modules/d3-quadtree/src/quadtree.js +75 -0
  518. package/dist/esm/bundled_modules/d3-quadtree/src/remove.js +64 -0
  519. package/dist/esm/bundled_modules/d3-quadtree/src/root.js +5 -0
  520. package/dist/esm/bundled_modules/d3-quadtree/src/size.js +9 -0
  521. package/dist/esm/bundled_modules/d3-quadtree/src/visit.js +18 -0
  522. package/dist/esm/bundled_modules/d3-quadtree/src/visitAfter.js +23 -0
  523. package/dist/esm/bundled_modules/d3-quadtree/src/x.js +9 -0
  524. package/dist/esm/bundled_modules/d3-quadtree/src/y.js +9 -0
  525. package/dist/esm/bundled_modules/d3-scale/src/constant.js +7 -0
  526. package/dist/esm/bundled_modules/d3-scale/src/continuous.js +129 -0
  527. package/dist/esm/bundled_modules/d3-scale/src/diverging.js +108 -0
  528. package/dist/esm/bundled_modules/d3-scale/src/identity.js +30 -0
  529. package/dist/esm/bundled_modules/d3-scale/src/init.js +28 -0
  530. package/dist/esm/bundled_modules/d3-scale/src/linear.js +72 -0
  531. package/dist/esm/bundled_modules/d3-scale/src/log.js +143 -0
  532. package/dist/esm/bundled_modules/d3-scale/src/nice.js +20 -0
  533. package/dist/esm/bundled_modules/d3-scale/src/number.js +5 -0
  534. package/dist/esm/bundled_modules/d3-scale/src/ordinal.js +48 -0
  535. package/dist/esm/bundled_modules/d3-scale/src/pow.js +52 -0
  536. package/dist/esm/bundled_modules/d3-scale/src/quantile.js +61 -0
  537. package/dist/esm/bundled_modules/d3-scale/src/quantize.js +58 -0
  538. package/dist/esm/bundled_modules/d3-scale/src/sequential.js +110 -0
  539. package/dist/esm/bundled_modules/d3-scale/src/symlog.js +37 -0
  540. package/dist/esm/bundled_modules/d3-scale/src/threshold.js +41 -0
  541. package/dist/esm/bundled_modules/d3-scale/src/tickFormat.js +35 -0
  542. package/dist/esm/bundled_modules/d3-scale/src/time.js +80 -0
  543. package/dist/esm/bundled_modules/d3-scale/src/utcTime.js +17 -0
  544. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Accent.js +5 -0
  545. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Dark2.js +5 -0
  546. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Paired.js +5 -0
  547. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel1.js +5 -0
  548. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Pastel2.js +5 -0
  549. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set1.js +5 -0
  550. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set2.js +5 -0
  551. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/Set3.js +5 -0
  552. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/category10.js +5 -0
  553. package/dist/esm/bundled_modules/d3-scale-chromatic/src/categorical/observable10.js +5 -0
  554. package/dist/esm/bundled_modules/d3-scale-chromatic/src/colors.js +7 -0
  555. package/dist/esm/bundled_modules/d3-shape/src/arc.js +270 -0
  556. package/dist/esm/bundled_modules/d3-shape/src/area.js +114 -0
  557. package/dist/esm/bundled_modules/d3-shape/src/array.js +7 -0
  558. package/dist/esm/bundled_modules/d3-shape/src/constant.js +7 -0
  559. package/dist/esm/bundled_modules/d3-shape/src/curve/basis.js +53 -0
  560. package/dist/esm/bundled_modules/d3-shape/src/curve/basisClosed.js +54 -0
  561. package/dist/esm/bundled_modules/d3-shape/src/curve/basisOpen.js +41 -0
  562. package/dist/esm/bundled_modules/d3-shape/src/curve/bundle.js +58 -0
  563. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinal.js +63 -0
  564. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalClosed.js +63 -0
  565. package/dist/esm/bundled_modules/d3-shape/src/curve/cardinalOpen.js +51 -0
  566. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRom.js +90 -0
  567. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomClosed.js +76 -0
  568. package/dist/esm/bundled_modules/d3-shape/src/curve/catmullRomOpen.js +64 -0
  569. package/dist/esm/bundled_modules/d3-shape/src/curve/linear.js +33 -0
  570. package/dist/esm/bundled_modules/d3-shape/src/curve/linearClosed.js +27 -0
  571. package/dist/esm/bundled_modules/d3-shape/src/curve/monotone.js +106 -0
  572. package/dist/esm/bundled_modules/d3-shape/src/curve/natural.js +67 -0
  573. package/dist/esm/bundled_modules/d3-shape/src/curve/step.js +55 -0
  574. package/dist/esm/bundled_modules/d3-shape/src/line.js +60 -0
  575. package/dist/esm/bundled_modules/d3-shape/src/math.js +22 -0
  576. package/dist/esm/bundled_modules/d3-shape/src/noop.js +3 -0
  577. package/dist/esm/bundled_modules/d3-shape/src/path.js +21 -0
  578. package/dist/esm/bundled_modules/d3-shape/src/point.js +9 -0
  579. package/dist/esm/bundled_modules/d3-shape/src/symbol/circle.js +11 -0
  580. package/dist/esm/bundled_modules/d3-shape/src/symbol.js +34 -0
  581. package/dist/esm/bundled_modules/d3-time/src/day.js +37 -0
  582. package/dist/esm/bundled_modules/d3-time/src/duration.js +9 -0
  583. package/dist/esm/bundled_modules/d3-time/src/hour.js +28 -0
  584. package/dist/esm/bundled_modules/d3-time/src/interval.js +71 -0
  585. package/dist/esm/bundled_modules/d3-time/src/millisecond.js +27 -0
  586. package/dist/esm/bundled_modules/d3-time/src/minute.js +28 -0
  587. package/dist/esm/bundled_modules/d3-time/src/month.js +29 -0
  588. package/dist/esm/bundled_modules/d3-time/src/second.js +16 -0
  589. package/dist/esm/bundled_modules/d3-time/src/ticks.js +59 -0
  590. package/dist/esm/bundled_modules/d3-time/src/week.js +58 -0
  591. package/dist/esm/bundled_modules/d3-time/src/year.js +51 -0
  592. package/dist/esm/bundled_modules/d3-time-format/src/defaultLocale.js +29 -0
  593. package/dist/esm/bundled_modules/d3-time-format/src/locale.js +690 -0
  594. package/dist/esm/bundled_modules/d3-timer/src/interval.js +19 -0
  595. package/dist/esm/bundled_modules/d3-timer/src/timer.js +112 -0
  596. package/dist/esm/bundled_modules/delaunator/index.js +481 -0
  597. package/dist/esm/bundled_modules/internmap/src/index.js +63 -0
  598. package/dist/esm/bundled_modules/json-stringify-pretty-compact/index.js +100 -0
  599. package/dist/esm/bundled_modules/robust-predicates/esm/orient2d.js +182 -0
  600. package/dist/esm/bundled_modules/robust-predicates/esm/util.js +88 -0
  601. package/dist/esm/bundled_modules/topojson-client/src/feature.js +72 -0
  602. package/dist/esm/bundled_modules/topojson-client/src/identity.js +5 -0
  603. package/dist/esm/bundled_modules/topojson-client/src/mesh.js +55 -0
  604. package/dist/esm/bundled_modules/topojson-client/src/reverse.js +6 -0
  605. package/dist/esm/bundled_modules/topojson-client/src/stitch.js +75 -0
  606. package/dist/esm/bundled_modules/topojson-client/src/transform.js +21 -0
  607. package/dist/esm/bundled_modules/vega/build/vega.module.js +38 -0
  608. package/dist/esm/bundled_modules/vega-canvas/build/vega-canvas.browser.js +14 -0
  609. package/dist/esm/bundled_modules/vega-crossfilter/build/vega-crossfilter.js +673 -0
  610. package/dist/esm/bundled_modules/vega-dataflow/build/vega-dataflow.js +2080 -0
  611. package/dist/esm/bundled_modules/vega-embed/build/embed.js +2932 -0
  612. package/dist/esm/bundled_modules/vega-encode/build/vega-encode.js +952 -0
  613. package/dist/esm/bundled_modules/vega-event-selector/build/vega-event-selector.js +190 -0
  614. package/dist/esm/bundled_modules/vega-expression/build/vega-expression.js +1597 -0
  615. package/dist/esm/bundled_modules/vega-force/build/vega-force.js +293 -0
  616. package/dist/esm/bundled_modules/vega-format/build/vega-format.js +191 -0
  617. package/dist/esm/bundled_modules/vega-functions/build/vega-functions.js +779 -0
  618. package/dist/esm/bundled_modules/vega-geo/build/vega-geo.js +1322 -0
  619. package/dist/esm/bundled_modules/vega-hierarchy/build/vega-hierarchy.js +572 -0
  620. package/dist/esm/bundled_modules/vega-interpreter/build/vega-interpreter.js +308 -0
  621. package/dist/esm/bundled_modules/vega-label/build/vega-label.js +874 -0
  622. package/dist/esm/bundled_modules/vega-lite/build/index.js +20110 -0
  623. package/dist/esm/bundled_modules/vega-loader/build/vega-loader.browser.js +328 -0
  624. package/dist/esm/bundled_modules/vega-parser/build/vega-parser.js +3783 -0
  625. package/dist/esm/bundled_modules/vega-projection/build/vega-projection.js +86 -0
  626. package/dist/esm/bundled_modules/vega-regression/build/vega-regression.js +233 -0
  627. package/dist/esm/bundled_modules/vega-runtime/build/vega-runtime.js +586 -0
  628. package/dist/esm/bundled_modules/vega-scale/build/vega-scale.js +799 -0
  629. package/dist/esm/bundled_modules/vega-scenegraph/build/vega-scenegraph.js +4982 -0
  630. package/dist/esm/bundled_modules/vega-schema-url-parser/dist/parser.modern.js +3 -0
  631. package/dist/esm/bundled_modules/vega-selections/build/vega-selection.js +336 -0
  632. package/dist/esm/bundled_modules/vega-statistics/build/vega-statistics.js +1157 -0
  633. package/dist/esm/bundled_modules/vega-themes/build/index.js +837 -0
  634. package/dist/esm/bundled_modules/vega-time/build/vega-time.js +314 -0
  635. package/dist/esm/bundled_modules/vega-tooltip/build/index.js +339 -0
  636. package/dist/esm/bundled_modules/vega-transforms/build/vega-transforms.js +3740 -0
  637. package/dist/esm/bundled_modules/vega-util/build/vega-util.js +753 -0
  638. package/dist/esm/bundled_modules/vega-view/build/vega-view.js +1304 -0
  639. package/dist/esm/bundled_modules/vega-view-transforms/build/vega-view-transforms.js +1306 -0
  640. package/dist/esm/bundled_modules/vega-voronoi/build/vega-voronoi.js +78 -0
  641. package/dist/esm/bundled_modules/vega-wordcloud/build/vega-wordcloud.js +538 -0
  642. package/dist/esm/index.js +1 -1
  643. package/dist/esm/styles/createPalette.js +1 -1
  644. package/dist/esm/styles/entrypoint.scss.js +3 -0
  645. package/dist/esm/styles.css +1 -1
  646. package/dist/esm/unstable/Card/components.js +182 -0
  647. package/dist/esm/unstable/Card/state.js +30 -0
  648. package/dist/esm/unstable/Card/styles.module.scss.js +1 -1
  649. package/dist/esm/unstable/StatCard/index.js +116 -0
  650. package/dist/esm/unstable/StatCard/index.module.scss.js +3 -0
  651. package/dist/esm/unstable/extras/chart/BarChart.js +40 -0
  652. package/dist/esm/unstable/extras/chart/Chart.js +96 -0
  653. package/dist/esm/unstable/extras/chart/DistributionChart.js +82 -0
  654. package/dist/esm/unstable/extras/chart/DonutChart.js +41 -0
  655. package/dist/esm/unstable/extras/chart/LineChart.js +43 -0
  656. package/dist/esm/unstable/extras/chart/PieChart.js +37 -0
  657. package/dist/esm/unstable/extras/chart/TimelineChart.js +46 -0
  658. package/dist/esm/unstable/extras/chart/index.js +8 -0
  659. package/dist/esm/unstable/index.js +5 -1
  660. package/dist/esm/unstable/skeleton/index.js +69 -0
  661. package/dist/esm/unstable/skeleton/index.module.scss.js +3 -0
  662. package/dist/esm/unstable/suspense/index.js +15 -0
  663. package/dist/esm/unstable/suspense/index.module.scss.js +3 -0
  664. package/dist/esm/unstable/suspense/loader.js +20 -0
  665. package/dist/types/Dialog/components.d.ts +27 -20
  666. package/dist/types/Dialog/factory.d.ts +4 -5
  667. package/dist/types/Dialog/state.d.ts +1 -15
  668. package/dist/types/TablePagination/index.d.ts +1 -1
  669. package/dist/types/styles/createPalette.d.ts +13 -2
  670. package/dist/types/unstable/Card/components.d.ts +90 -0
  671. package/dist/types/unstable/Card/index.d.ts +2 -11
  672. package/dist/types/unstable/Card/state.d.ts +20 -0
  673. package/dist/types/unstable/StatCard/index.d.ts +33 -0
  674. package/dist/types/unstable/extras/chart/BarChart.d.ts +16 -0
  675. package/dist/types/unstable/extras/chart/Chart.d.ts +33 -0
  676. package/dist/types/unstable/extras/chart/DistributionChart.d.ts +18 -0
  677. package/dist/types/unstable/extras/chart/DonutChart.d.ts +16 -0
  678. package/dist/types/unstable/extras/chart/LineChart.d.ts +16 -0
  679. package/dist/types/unstable/extras/chart/PieChart.d.ts +14 -0
  680. package/dist/types/unstable/extras/chart/TimelineChart.d.ts +15 -0
  681. package/dist/types/unstable/extras/chart/index.d.ts +15 -33
  682. package/dist/types/unstable/index.d.ts +3 -0
  683. package/dist/types/unstable/skeleton/index.d.ts +15 -0
  684. package/dist/types/unstable/suspense/index.d.ts +9 -0
  685. package/dist/types/unstable/suspense/loader.d.ts +7 -0
  686. package/package.json +1 -7
  687. package/dist/cjs/unstable/Card/index.js +0 -33
  688. package/dist/esm/unstable/Card/index.js +0 -29
@@ -0,0 +1,78 @@
1
+ import { tau, atan2, sin, cos, radians, quarterPi } from './math.js';
2
+ import noop from './noop.js';
3
+ import geoStream from './stream.js';
4
+ import { Adder } from '../../d3-array/src/fsum.js';
5
+
6
+ var areaRingSum = new Adder();
7
+
8
+ // hello?
9
+
10
+ var areaSum = new Adder(),
11
+ lambda00,
12
+ phi00,
13
+ lambda0,
14
+ cosPhi0,
15
+ sinPhi0;
16
+
17
+ var areaStream = {
18
+ point: noop,
19
+ lineStart: noop,
20
+ lineEnd: noop,
21
+ polygonStart: function() {
22
+ areaRingSum = new Adder();
23
+ areaStream.lineStart = areaRingStart;
24
+ areaStream.lineEnd = areaRingEnd;
25
+ },
26
+ polygonEnd: function() {
27
+ var areaRing = +areaRingSum;
28
+ areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);
29
+ this.lineStart = this.lineEnd = this.point = noop;
30
+ },
31
+ sphere: function() {
32
+ areaSum.add(tau);
33
+ }
34
+ };
35
+
36
+ function areaRingStart() {
37
+ areaStream.point = areaPointFirst;
38
+ }
39
+
40
+ function areaRingEnd() {
41
+ areaPoint(lambda00, phi00);
42
+ }
43
+
44
+ function areaPointFirst(lambda, phi) {
45
+ areaStream.point = areaPoint;
46
+ lambda00 = lambda, phi00 = phi;
47
+ lambda *= radians, phi *= radians;
48
+ lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);
49
+ }
50
+
51
+ function areaPoint(lambda, phi) {
52
+ lambda *= radians, phi *= radians;
53
+ phi = phi / 2 + quarterPi; // half the angular distance from south pole
54
+
55
+ // Spherical excess E for a spherical triangle with vertices: south pole,
56
+ // previous point, current point. Uses a formula derived from Cagnoli’s
57
+ // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).
58
+ var dLambda = lambda - lambda0,
59
+ sdLambda = dLambda >= 0 ? 1 : -1,
60
+ adLambda = sdLambda * dLambda,
61
+ cosPhi = cos(phi),
62
+ sinPhi = sin(phi),
63
+ k = sinPhi0 * sinPhi,
64
+ u = cosPhi0 * cosPhi + k * cos(adLambda),
65
+ v = k * sdLambda * sin(adLambda);
66
+ areaRingSum.add(atan2(v, u));
67
+
68
+ // Advance the previous points.
69
+ lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;
70
+ }
71
+
72
+ function geoArea$1(object) {
73
+ areaSum = new Adder();
74
+ geoStream(object, areaStream);
75
+ return areaSum * 2;
76
+ }
77
+
78
+ export { areaRingSum, areaStream, geoArea$1 as default };
@@ -0,0 +1,181 @@
1
+ import { areaStream, areaRingSum } from './area.js';
2
+ import { cartesian, cartesianCross, cartesianNormalizeInPlace, spherical } from './cartesian.js';
3
+ import { abs, epsilon, radians, degrees } from './math.js';
4
+ import geoStream from './stream.js';
5
+ import { Adder } from '../../d3-array/src/fsum.js';
6
+
7
+ var lambda0, phi0, lambda1, phi1, // bounds
8
+ lambda2, // previous lambda-coordinate
9
+ lambda00, phi00, // first point
10
+ p0, // previous 3D point
11
+ deltaSum,
12
+ ranges,
13
+ range;
14
+
15
+ var boundsStream = {
16
+ point: boundsPoint,
17
+ lineStart: boundsLineStart,
18
+ lineEnd: boundsLineEnd,
19
+ polygonStart: function() {
20
+ boundsStream.point = boundsRingPoint;
21
+ boundsStream.lineStart = boundsRingStart;
22
+ boundsStream.lineEnd = boundsRingEnd;
23
+ deltaSum = new Adder();
24
+ areaStream.polygonStart();
25
+ },
26
+ polygonEnd: function() {
27
+ areaStream.polygonEnd();
28
+ boundsStream.point = boundsPoint;
29
+ boundsStream.lineStart = boundsLineStart;
30
+ boundsStream.lineEnd = boundsLineEnd;
31
+ if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
32
+ else if (deltaSum > epsilon) phi1 = 90;
33
+ else if (deltaSum < -1e-6) phi0 = -90;
34
+ range[0] = lambda0, range[1] = lambda1;
35
+ },
36
+ sphere: function() {
37
+ lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);
38
+ }
39
+ };
40
+
41
+ function boundsPoint(lambda, phi) {
42
+ ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
43
+ if (phi < phi0) phi0 = phi;
44
+ if (phi > phi1) phi1 = phi;
45
+ }
46
+
47
+ function linePoint(lambda, phi) {
48
+ var p = cartesian([lambda * radians, phi * radians]);
49
+ if (p0) {
50
+ var normal = cartesianCross(p0, p),
51
+ equatorial = [normal[1], -normal[0], 0],
52
+ inflection = cartesianCross(equatorial, normal);
53
+ cartesianNormalizeInPlace(inflection);
54
+ inflection = spherical(inflection);
55
+ var delta = lambda - lambda2,
56
+ sign = delta > 0 ? 1 : -1,
57
+ lambdai = inflection[0] * degrees * sign,
58
+ phii,
59
+ antimeridian = abs(delta) > 180;
60
+ if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
61
+ phii = inflection[1] * degrees;
62
+ if (phii > phi1) phi1 = phii;
63
+ } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {
64
+ phii = -inflection[1] * degrees;
65
+ if (phii < phi0) phi0 = phii;
66
+ } else {
67
+ if (phi < phi0) phi0 = phi;
68
+ if (phi > phi1) phi1 = phi;
69
+ }
70
+ if (antimeridian) {
71
+ if (lambda < lambda2) {
72
+ if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
73
+ } else {
74
+ if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
75
+ }
76
+ } else {
77
+ if (lambda1 >= lambda0) {
78
+ if (lambda < lambda0) lambda0 = lambda;
79
+ if (lambda > lambda1) lambda1 = lambda;
80
+ } else {
81
+ if (lambda > lambda2) {
82
+ if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;
83
+ } else {
84
+ if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;
85
+ }
86
+ }
87
+ }
88
+ } else {
89
+ ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);
90
+ }
91
+ if (phi < phi0) phi0 = phi;
92
+ if (phi > phi1) phi1 = phi;
93
+ p0 = p, lambda2 = lambda;
94
+ }
95
+
96
+ function boundsLineStart() {
97
+ boundsStream.point = linePoint;
98
+ }
99
+
100
+ function boundsLineEnd() {
101
+ range[0] = lambda0, range[1] = lambda1;
102
+ boundsStream.point = boundsPoint;
103
+ p0 = null;
104
+ }
105
+
106
+ function boundsRingPoint(lambda, phi) {
107
+ if (p0) {
108
+ var delta = lambda - lambda2;
109
+ deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);
110
+ } else {
111
+ lambda00 = lambda, phi00 = phi;
112
+ }
113
+ areaStream.point(lambda, phi);
114
+ linePoint(lambda, phi);
115
+ }
116
+
117
+ function boundsRingStart() {
118
+ areaStream.lineStart();
119
+ }
120
+
121
+ function boundsRingEnd() {
122
+ boundsRingPoint(lambda00, phi00);
123
+ areaStream.lineEnd();
124
+ if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);
125
+ range[0] = lambda0, range[1] = lambda1;
126
+ p0 = null;
127
+ }
128
+
129
+ // Finds the left-right distance between two longitudes.
130
+ // This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want
131
+ // the distance between ±180° to be 360°.
132
+ function angle(lambda0, lambda1) {
133
+ return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;
134
+ }
135
+
136
+ function rangeCompare(a, b) {
137
+ return a[0] - b[0];
138
+ }
139
+
140
+ function rangeContains(range, x) {
141
+ return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;
142
+ }
143
+
144
+ function geoBounds$1(feature) {
145
+ var i, n, a, b, merged, deltaMax, delta;
146
+
147
+ phi1 = lambda1 = -(lambda0 = phi0 = Infinity);
148
+ ranges = [];
149
+ geoStream(feature, boundsStream);
150
+
151
+ // First, sort ranges by their minimum longitudes.
152
+ if (n = ranges.length) {
153
+ ranges.sort(rangeCompare);
154
+
155
+ // Then, merge any ranges that overlap.
156
+ for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {
157
+ b = ranges[i];
158
+ if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {
159
+ if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];
160
+ if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];
161
+ } else {
162
+ merged.push(a = b);
163
+ }
164
+ }
165
+
166
+ // Finally, find the largest gap between the merged ranges.
167
+ // The final bounding box will be the inverse of this gap.
168
+ for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {
169
+ b = merged[i];
170
+ if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];
171
+ }
172
+ }
173
+
174
+ ranges = range = null;
175
+
176
+ return lambda0 === Infinity || phi0 === Infinity
177
+ ? [[NaN, NaN], [NaN, NaN]]
178
+ : [[lambda0, phi0], [lambda1, phi1]];
179
+ }
180
+
181
+ export { geoBounds$1 as default };
@@ -0,0 +1,35 @@
1
+ import { sin, cos, sqrt, atan2, asin } from './math.js';
2
+
3
+ function spherical(cartesian) {
4
+ return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];
5
+ }
6
+
7
+ function cartesian(spherical) {
8
+ var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);
9
+ return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];
10
+ }
11
+
12
+ function cartesianDot(a, b) {
13
+ return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
14
+ }
15
+
16
+ function cartesianCross(a, b) {
17
+ return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];
18
+ }
19
+
20
+ // TODO return a
21
+ function cartesianAddInPlace(a, b) {
22
+ a[0] += b[0], a[1] += b[1], a[2] += b[2];
23
+ }
24
+
25
+ function cartesianScale(vector, k) {
26
+ return [vector[0] * k, vector[1] * k, vector[2] * k];
27
+ }
28
+
29
+ // TODO return d
30
+ function cartesianNormalizeInPlace(d) {
31
+ var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
32
+ d[0] /= l, d[1] /= l, d[2] /= l;
33
+ }
34
+
35
+ export { cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianNormalizeInPlace, cartesianScale, spherical };
@@ -0,0 +1,145 @@
1
+ import { epsilon2, hypot, atan2, degrees, asin, epsilon, sin, cos, sqrt, radians } from './math.js';
2
+ import noop from './noop.js';
3
+ import geoStream from './stream.js';
4
+ import { Adder } from '../../d3-array/src/fsum.js';
5
+
6
+ var W0, W1,
7
+ X0, Y0, Z0,
8
+ X1, Y1, Z1,
9
+ X2, Y2, Z2,
10
+ lambda00, phi00, // first point
11
+ x0, y0, z0; // previous point
12
+
13
+ var centroidStream = {
14
+ sphere: noop,
15
+ point: centroidPoint,
16
+ lineStart: centroidLineStart,
17
+ lineEnd: centroidLineEnd,
18
+ polygonStart: function() {
19
+ centroidStream.lineStart = centroidRingStart;
20
+ centroidStream.lineEnd = centroidRingEnd;
21
+ },
22
+ polygonEnd: function() {
23
+ centroidStream.lineStart = centroidLineStart;
24
+ centroidStream.lineEnd = centroidLineEnd;
25
+ }
26
+ };
27
+
28
+ // Arithmetic mean of Cartesian vectors.
29
+ function centroidPoint(lambda, phi) {
30
+ lambda *= radians, phi *= radians;
31
+ var cosPhi = cos(phi);
32
+ centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));
33
+ }
34
+
35
+ function centroidPointCartesian(x, y, z) {
36
+ ++W0;
37
+ X0 += (x - X0) / W0;
38
+ Y0 += (y - Y0) / W0;
39
+ Z0 += (z - Z0) / W0;
40
+ }
41
+
42
+ function centroidLineStart() {
43
+ centroidStream.point = centroidLinePointFirst;
44
+ }
45
+
46
+ function centroidLinePointFirst(lambda, phi) {
47
+ lambda *= radians, phi *= radians;
48
+ var cosPhi = cos(phi);
49
+ x0 = cosPhi * cos(lambda);
50
+ y0 = cosPhi * sin(lambda);
51
+ z0 = sin(phi);
52
+ centroidStream.point = centroidLinePoint;
53
+ centroidPointCartesian(x0, y0, z0);
54
+ }
55
+
56
+ function centroidLinePoint(lambda, phi) {
57
+ lambda *= radians, phi *= radians;
58
+ var cosPhi = cos(phi),
59
+ x = cosPhi * cos(lambda),
60
+ y = cosPhi * sin(lambda),
61
+ z = sin(phi),
62
+ w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
63
+ W1 += w;
64
+ X1 += w * (x0 + (x0 = x));
65
+ Y1 += w * (y0 + (y0 = y));
66
+ Z1 += w * (z0 + (z0 = z));
67
+ centroidPointCartesian(x0, y0, z0);
68
+ }
69
+
70
+ function centroidLineEnd() {
71
+ centroidStream.point = centroidPoint;
72
+ }
73
+
74
+ // See J. E. Brock, The Inertia Tensor for a Spherical Triangle,
75
+ // J. Applied Mechanics 42, 239 (1975).
76
+ function centroidRingStart() {
77
+ centroidStream.point = centroidRingPointFirst;
78
+ }
79
+
80
+ function centroidRingEnd() {
81
+ centroidRingPoint(lambda00, phi00);
82
+ centroidStream.point = centroidPoint;
83
+ }
84
+
85
+ function centroidRingPointFirst(lambda, phi) {
86
+ lambda00 = lambda, phi00 = phi;
87
+ lambda *= radians, phi *= radians;
88
+ centroidStream.point = centroidRingPoint;
89
+ var cosPhi = cos(phi);
90
+ x0 = cosPhi * cos(lambda);
91
+ y0 = cosPhi * sin(lambda);
92
+ z0 = sin(phi);
93
+ centroidPointCartesian(x0, y0, z0);
94
+ }
95
+
96
+ function centroidRingPoint(lambda, phi) {
97
+ lambda *= radians, phi *= radians;
98
+ var cosPhi = cos(phi),
99
+ x = cosPhi * cos(lambda),
100
+ y = cosPhi * sin(lambda),
101
+ z = sin(phi),
102
+ cx = y0 * z - z0 * y,
103
+ cy = z0 * x - x0 * z,
104
+ cz = x0 * y - y0 * x,
105
+ m = hypot(cx, cy, cz),
106
+ w = asin(m), // line weight = angle
107
+ v = m && -w / m; // area weight multiplier
108
+ X2.add(v * cx);
109
+ Y2.add(v * cy);
110
+ Z2.add(v * cz);
111
+ W1 += w;
112
+ X1 += w * (x0 + (x0 = x));
113
+ Y1 += w * (y0 + (y0 = y));
114
+ Z1 += w * (z0 + (z0 = z));
115
+ centroidPointCartesian(x0, y0, z0);
116
+ }
117
+
118
+ function geoCentroid$1(object) {
119
+ W0 = W1 =
120
+ X0 = Y0 = Z0 =
121
+ X1 = Y1 = Z1 = 0;
122
+ X2 = new Adder();
123
+ Y2 = new Adder();
124
+ Z2 = new Adder();
125
+ geoStream(object, centroidStream);
126
+
127
+ var x = +X2,
128
+ y = +Y2,
129
+ z = +Z2,
130
+ m = hypot(x, y, z);
131
+
132
+ // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.
133
+ if (m < epsilon2) {
134
+ x = X1, y = Y1, z = Z1;
135
+ // If the feature has zero length, fall back to arithmetic mean of point vectors.
136
+ if (W1 < epsilon) x = X0, y = Y0, z = Z0;
137
+ m = hypot(x, y, z);
138
+ // If the feature still has an undefined ccentroid, then return.
139
+ if (m < epsilon2) return [NaN, NaN];
140
+ }
141
+
142
+ return [atan2(y, x) * degrees, asin(z / m) * degrees];
143
+ }
144
+
145
+ export { geoCentroid$1 as default };
@@ -0,0 +1,33 @@
1
+ import { spherical, cartesian, cartesianNormalizeInPlace } from './cartesian.js';
2
+ import { tau, acos, epsilon, cos, sin } from './math.js';
3
+ import './rotation.js';
4
+
5
+ // Generates a circle centered at [0°, 0°], with a given radius and precision.
6
+ function circleStream(stream, radius, delta, direction, t0, t1) {
7
+ if (!delta) return;
8
+ var cosRadius = cos(radius),
9
+ sinRadius = sin(radius),
10
+ step = direction * delta;
11
+ if (t0 == null) {
12
+ t0 = radius + direction * tau;
13
+ t1 = radius - step / 2;
14
+ } else {
15
+ t0 = circleRadius(cosRadius, t0);
16
+ t1 = circleRadius(cosRadius, t1);
17
+ if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;
18
+ }
19
+ for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
20
+ point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);
21
+ stream.point(point[0], point[1]);
22
+ }
23
+ }
24
+
25
+ // Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
26
+ function circleRadius(cosRadius, point) {
27
+ point = cartesian(point), point[0] -= cosRadius;
28
+ cartesianNormalizeInPlace(point);
29
+ var radius = acos(-point[1]);
30
+ return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
31
+ }
32
+
33
+ export { circleStream };
@@ -0,0 +1,94 @@
1
+ import clip from './index.js';
2
+ import { pi, halfPi, abs, epsilon, atan, sin, cos } from '../math.js';
3
+
4
+ var clipAntimeridian = clip(
5
+ function() { return true; },
6
+ clipAntimeridianLine,
7
+ clipAntimeridianInterpolate,
8
+ [-pi, -halfPi]
9
+ );
10
+
11
+ // Takes a line and cuts into visible segments. Return values: 0 - there were
12
+ // intersections or the line was empty; 1 - no intersections; 2 - there were
13
+ // intersections, and the first and last segments should be rejoined.
14
+ function clipAntimeridianLine(stream) {
15
+ var lambda0 = NaN,
16
+ phi0 = NaN,
17
+ sign0 = NaN,
18
+ clean; // no intersections
19
+
20
+ return {
21
+ lineStart: function() {
22
+ stream.lineStart();
23
+ clean = 1;
24
+ },
25
+ point: function(lambda1, phi1) {
26
+ var sign1 = lambda1 > 0 ? pi : -pi,
27
+ delta = abs(lambda1 - lambda0);
28
+ if (abs(delta - pi) < epsilon) { // line crosses a pole
29
+ stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);
30
+ stream.point(sign0, phi0);
31
+ stream.lineEnd();
32
+ stream.lineStart();
33
+ stream.point(sign1, phi0);
34
+ stream.point(lambda1, phi0);
35
+ clean = 0;
36
+ } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian
37
+ if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies
38
+ if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;
39
+ phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
40
+ stream.point(sign0, phi0);
41
+ stream.lineEnd();
42
+ stream.lineStart();
43
+ stream.point(sign1, phi0);
44
+ clean = 0;
45
+ }
46
+ stream.point(lambda0 = lambda1, phi0 = phi1);
47
+ sign0 = sign1;
48
+ },
49
+ lineEnd: function() {
50
+ stream.lineEnd();
51
+ lambda0 = phi0 = NaN;
52
+ },
53
+ clean: function() {
54
+ return 2 - clean; // if intersections, rejoin first and last segments
55
+ }
56
+ };
57
+ }
58
+
59
+ function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
60
+ var cosPhi0,
61
+ cosPhi1,
62
+ sinLambda0Lambda1 = sin(lambda0 - lambda1);
63
+ return abs(sinLambda0Lambda1) > epsilon
64
+ ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)
65
+ - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))
66
+ / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))
67
+ : (phi0 + phi1) / 2;
68
+ }
69
+
70
+ function clipAntimeridianInterpolate(from, to, direction, stream) {
71
+ var phi;
72
+ if (from == null) {
73
+ phi = direction * halfPi;
74
+ stream.point(-pi, phi);
75
+ stream.point(0, phi);
76
+ stream.point(pi, phi);
77
+ stream.point(pi, 0);
78
+ stream.point(pi, -phi);
79
+ stream.point(0, -phi);
80
+ stream.point(-pi, -phi);
81
+ stream.point(-pi, 0);
82
+ stream.point(-pi, phi);
83
+ } else if (abs(from[0] - to[0]) > epsilon) {
84
+ var lambda = from[0] < to[0] ? pi : -pi;
85
+ phi = direction * lambda / 2;
86
+ stream.point(-lambda, phi);
87
+ stream.point(0, phi);
88
+ stream.point(lambda, phi);
89
+ } else {
90
+ stream.point(to[0], to[1]);
91
+ }
92
+ }
93
+
94
+ export { clipAntimeridian as default };
@@ -0,0 +1,26 @@
1
+ import noop from '../noop.js';
2
+
3
+ function clipBuffer() {
4
+ var lines = [],
5
+ line;
6
+ return {
7
+ point: function(x, y, m) {
8
+ line.push([x, y, m]);
9
+ },
10
+ lineStart: function() {
11
+ lines.push(line = []);
12
+ },
13
+ lineEnd: noop,
14
+ rejoin: function() {
15
+ if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
16
+ },
17
+ result: function() {
18
+ var result = lines;
19
+ lines = [];
20
+ line = null;
21
+ return result;
22
+ }
23
+ };
24
+ }
25
+
26
+ export { clipBuffer as default };