@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,43 @@
1
+ 'use strict';
2
+
3
+ var math = require('./math.js');
4
+
5
+ function spherical(cartesian) {
6
+ return [math.atan2(cartesian[1], cartesian[0]), math.asin(cartesian[2])];
7
+ }
8
+
9
+ function cartesian(spherical) {
10
+ var lambda = spherical[0], phi = spherical[1], cosPhi = math.cos(phi);
11
+ return [cosPhi * math.cos(lambda), cosPhi * math.sin(lambda), math.sin(phi)];
12
+ }
13
+
14
+ function cartesianDot(a, b) {
15
+ return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
16
+ }
17
+
18
+ function cartesianCross(a, b) {
19
+ 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]];
20
+ }
21
+
22
+ // TODO return a
23
+ function cartesianAddInPlace(a, b) {
24
+ a[0] += b[0], a[1] += b[1], a[2] += b[2];
25
+ }
26
+
27
+ function cartesianScale(vector, k) {
28
+ return [vector[0] * k, vector[1] * k, vector[2] * k];
29
+ }
30
+
31
+ // TODO return d
32
+ function cartesianNormalizeInPlace(d) {
33
+ var l = math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
34
+ d[0] /= l, d[1] /= l, d[2] /= l;
35
+ }
36
+
37
+ exports.cartesian = cartesian;
38
+ exports.cartesianAddInPlace = cartesianAddInPlace;
39
+ exports.cartesianCross = cartesianCross;
40
+ exports.cartesianDot = cartesianDot;
41
+ exports.cartesianNormalizeInPlace = cartesianNormalizeInPlace;
42
+ exports.cartesianScale = cartesianScale;
43
+ exports.spherical = spherical;
@@ -0,0 +1,149 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var math = require('./math.js');
6
+ var noop = require('./noop.js');
7
+ var stream = require('./stream.js');
8
+ var fsum = require('../../d3-array/src/fsum.js');
9
+
10
+ var W0, W1,
11
+ X0, Y0, Z0,
12
+ X1, Y1, Z1,
13
+ X2, Y2, Z2,
14
+ lambda00, phi00, // first point
15
+ x0, y0, z0; // previous point
16
+
17
+ var centroidStream = {
18
+ sphere: noop.default,
19
+ point: centroidPoint,
20
+ lineStart: centroidLineStart,
21
+ lineEnd: centroidLineEnd,
22
+ polygonStart: function() {
23
+ centroidStream.lineStart = centroidRingStart;
24
+ centroidStream.lineEnd = centroidRingEnd;
25
+ },
26
+ polygonEnd: function() {
27
+ centroidStream.lineStart = centroidLineStart;
28
+ centroidStream.lineEnd = centroidLineEnd;
29
+ }
30
+ };
31
+
32
+ // Arithmetic mean of Cartesian vectors.
33
+ function centroidPoint(lambda, phi) {
34
+ lambda *= math.radians, phi *= math.radians;
35
+ var cosPhi = math.cos(phi);
36
+ centroidPointCartesian(cosPhi * math.cos(lambda), cosPhi * math.sin(lambda), math.sin(phi));
37
+ }
38
+
39
+ function centroidPointCartesian(x, y, z) {
40
+ ++W0;
41
+ X0 += (x - X0) / W0;
42
+ Y0 += (y - Y0) / W0;
43
+ Z0 += (z - Z0) / W0;
44
+ }
45
+
46
+ function centroidLineStart() {
47
+ centroidStream.point = centroidLinePointFirst;
48
+ }
49
+
50
+ function centroidLinePointFirst(lambda, phi) {
51
+ lambda *= math.radians, phi *= math.radians;
52
+ var cosPhi = math.cos(phi);
53
+ x0 = cosPhi * math.cos(lambda);
54
+ y0 = cosPhi * math.sin(lambda);
55
+ z0 = math.sin(phi);
56
+ centroidStream.point = centroidLinePoint;
57
+ centroidPointCartesian(x0, y0, z0);
58
+ }
59
+
60
+ function centroidLinePoint(lambda, phi) {
61
+ lambda *= math.radians, phi *= math.radians;
62
+ var cosPhi = math.cos(phi),
63
+ x = cosPhi * math.cos(lambda),
64
+ y = cosPhi * math.sin(lambda),
65
+ z = math.sin(phi),
66
+ w = math.atan2(math.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);
67
+ W1 += w;
68
+ X1 += w * (x0 + (x0 = x));
69
+ Y1 += w * (y0 + (y0 = y));
70
+ Z1 += w * (z0 + (z0 = z));
71
+ centroidPointCartesian(x0, y0, z0);
72
+ }
73
+
74
+ function centroidLineEnd() {
75
+ centroidStream.point = centroidPoint;
76
+ }
77
+
78
+ // See J. E. Brock, The Inertia Tensor for a Spherical Triangle,
79
+ // J. Applied Mechanics 42, 239 (1975).
80
+ function centroidRingStart() {
81
+ centroidStream.point = centroidRingPointFirst;
82
+ }
83
+
84
+ function centroidRingEnd() {
85
+ centroidRingPoint(lambda00, phi00);
86
+ centroidStream.point = centroidPoint;
87
+ }
88
+
89
+ function centroidRingPointFirst(lambda, phi) {
90
+ lambda00 = lambda, phi00 = phi;
91
+ lambda *= math.radians, phi *= math.radians;
92
+ centroidStream.point = centroidRingPoint;
93
+ var cosPhi = math.cos(phi);
94
+ x0 = cosPhi * math.cos(lambda);
95
+ y0 = cosPhi * math.sin(lambda);
96
+ z0 = math.sin(phi);
97
+ centroidPointCartesian(x0, y0, z0);
98
+ }
99
+
100
+ function centroidRingPoint(lambda, phi) {
101
+ lambda *= math.radians, phi *= math.radians;
102
+ var cosPhi = math.cos(phi),
103
+ x = cosPhi * math.cos(lambda),
104
+ y = cosPhi * math.sin(lambda),
105
+ z = math.sin(phi),
106
+ cx = y0 * z - z0 * y,
107
+ cy = z0 * x - x0 * z,
108
+ cz = x0 * y - y0 * x,
109
+ m = math.hypot(cx, cy, cz),
110
+ w = math.asin(m), // line weight = angle
111
+ v = m && -w / m; // area weight multiplier
112
+ X2.add(v * cx);
113
+ Y2.add(v * cy);
114
+ Z2.add(v * cz);
115
+ W1 += w;
116
+ X1 += w * (x0 + (x0 = x));
117
+ Y1 += w * (y0 + (y0 = y));
118
+ Z1 += w * (z0 + (z0 = z));
119
+ centroidPointCartesian(x0, y0, z0);
120
+ }
121
+
122
+ function geoCentroid$1(object) {
123
+ W0 = W1 =
124
+ X0 = Y0 = Z0 =
125
+ X1 = Y1 = Z1 = 0;
126
+ X2 = new fsum.Adder();
127
+ Y2 = new fsum.Adder();
128
+ Z2 = new fsum.Adder();
129
+ stream.default(object, centroidStream);
130
+
131
+ var x = +X2,
132
+ y = +Y2,
133
+ z = +Z2,
134
+ m = math.hypot(x, y, z);
135
+
136
+ // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.
137
+ if (m < math.epsilon2) {
138
+ x = X1, y = Y1, z = Z1;
139
+ // If the feature has zero length, fall back to arithmetic mean of point vectors.
140
+ if (W1 < math.epsilon) x = X0, y = Y0, z = Z0;
141
+ m = math.hypot(x, y, z);
142
+ // If the feature still has an undefined ccentroid, then return.
143
+ if (m < math.epsilon2) return [NaN, NaN];
144
+ }
145
+
146
+ return [math.atan2(y, x) * math.degrees, math.asin(z / m) * math.degrees];
147
+ }
148
+
149
+ exports.default = geoCentroid$1;
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var cartesian = require('./cartesian.js');
4
+ var math = require('./math.js');
5
+ require('./rotation.js');
6
+
7
+ // Generates a circle centered at [0°, 0°], with a given radius and precision.
8
+ function circleStream(stream, radius, delta, direction, t0, t1) {
9
+ if (!delta) return;
10
+ var cosRadius = math.cos(radius),
11
+ sinRadius = math.sin(radius),
12
+ step = direction * delta;
13
+ if (t0 == null) {
14
+ t0 = radius + direction * math.tau;
15
+ t1 = radius - step / 2;
16
+ } else {
17
+ t0 = circleRadius(cosRadius, t0);
18
+ t1 = circleRadius(cosRadius, t1);
19
+ if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * math.tau;
20
+ }
21
+ for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
22
+ point = cartesian.spherical([cosRadius, -sinRadius * math.cos(t), -sinRadius * math.sin(t)]);
23
+ stream.point(point[0], point[1]);
24
+ }
25
+ }
26
+
27
+ // Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].
28
+ function circleRadius(cosRadius, point) {
29
+ point = cartesian.cartesian(point), point[0] -= cosRadius;
30
+ cartesian.cartesianNormalizeInPlace(point);
31
+ var radius = math.acos(-point[1]);
32
+ return ((-point[2] < 0 ? -radius : radius) + math.tau - math.epsilon) % math.tau;
33
+ }
34
+
35
+ exports.circleStream = circleStream;
@@ -0,0 +1,98 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('./index.js');
6
+ var math = require('../math.js');
7
+
8
+ var clipAntimeridian = index.default(
9
+ function() { return true; },
10
+ clipAntimeridianLine,
11
+ clipAntimeridianInterpolate,
12
+ [-math.pi, -math.halfPi]
13
+ );
14
+
15
+ // Takes a line and cuts into visible segments. Return values: 0 - there were
16
+ // intersections or the line was empty; 1 - no intersections; 2 - there were
17
+ // intersections, and the first and last segments should be rejoined.
18
+ function clipAntimeridianLine(stream) {
19
+ var lambda0 = NaN,
20
+ phi0 = NaN,
21
+ sign0 = NaN,
22
+ clean; // no intersections
23
+
24
+ return {
25
+ lineStart: function() {
26
+ stream.lineStart();
27
+ clean = 1;
28
+ },
29
+ point: function(lambda1, phi1) {
30
+ var sign1 = lambda1 > 0 ? math.pi : -math.pi,
31
+ delta = math.abs(lambda1 - lambda0);
32
+ if (math.abs(delta - math.pi) < math.epsilon) { // line crosses a pole
33
+ stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? math.halfPi : -math.halfPi);
34
+ stream.point(sign0, phi0);
35
+ stream.lineEnd();
36
+ stream.lineStart();
37
+ stream.point(sign1, phi0);
38
+ stream.point(lambda1, phi0);
39
+ clean = 0;
40
+ } else if (sign0 !== sign1 && delta >= math.pi) { // line crosses antimeridian
41
+ if (math.abs(lambda0 - sign0) < math.epsilon) lambda0 -= sign0 * math.epsilon; // handle degeneracies
42
+ if (math.abs(lambda1 - sign1) < math.epsilon) lambda1 -= sign1 * math.epsilon;
43
+ phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
44
+ stream.point(sign0, phi0);
45
+ stream.lineEnd();
46
+ stream.lineStart();
47
+ stream.point(sign1, phi0);
48
+ clean = 0;
49
+ }
50
+ stream.point(lambda0 = lambda1, phi0 = phi1);
51
+ sign0 = sign1;
52
+ },
53
+ lineEnd: function() {
54
+ stream.lineEnd();
55
+ lambda0 = phi0 = NaN;
56
+ },
57
+ clean: function() {
58
+ return 2 - clean; // if intersections, rejoin first and last segments
59
+ }
60
+ };
61
+ }
62
+
63
+ function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
64
+ var cosPhi0,
65
+ cosPhi1,
66
+ sinLambda0Lambda1 = math.sin(lambda0 - lambda1);
67
+ return math.abs(sinLambda0Lambda1) > math.epsilon
68
+ ? math.atan((math.sin(phi0) * (cosPhi1 = math.cos(phi1)) * math.sin(lambda1)
69
+ - math.sin(phi1) * (cosPhi0 = math.cos(phi0)) * math.sin(lambda0))
70
+ / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))
71
+ : (phi0 + phi1) / 2;
72
+ }
73
+
74
+ function clipAntimeridianInterpolate(from, to, direction, stream) {
75
+ var phi;
76
+ if (from == null) {
77
+ phi = direction * math.halfPi;
78
+ stream.point(-math.pi, phi);
79
+ stream.point(0, phi);
80
+ stream.point(math.pi, phi);
81
+ stream.point(math.pi, 0);
82
+ stream.point(math.pi, -phi);
83
+ stream.point(0, -phi);
84
+ stream.point(-math.pi, -phi);
85
+ stream.point(-math.pi, 0);
86
+ stream.point(-math.pi, phi);
87
+ } else if (math.abs(from[0] - to[0]) > math.epsilon) {
88
+ var lambda = from[0] < to[0] ? math.pi : -math.pi;
89
+ phi = direction * lambda / 2;
90
+ stream.point(-lambda, phi);
91
+ stream.point(0, phi);
92
+ stream.point(lambda, phi);
93
+ } else {
94
+ stream.point(to[0], to[1]);
95
+ }
96
+ }
97
+
98
+ exports.default = clipAntimeridian;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var noop = require('../noop.js');
6
+
7
+ function clipBuffer() {
8
+ var lines = [],
9
+ line;
10
+ return {
11
+ point: function(x, y, m) {
12
+ line.push([x, y, m]);
13
+ },
14
+ lineStart: function() {
15
+ lines.push(line = []);
16
+ },
17
+ lineEnd: noop.default,
18
+ rejoin: function() {
19
+ if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
20
+ },
21
+ result: function() {
22
+ var result = lines;
23
+ lines = [];
24
+ line = null;
25
+ return result;
26
+ }
27
+ };
28
+ }
29
+
30
+ exports.default = clipBuffer;
@@ -0,0 +1,183 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var cartesian = require('../cartesian.js');
6
+ var circle = require('../circle.js');
7
+ var math = require('../math.js');
8
+ var pointEqual = require('../pointEqual.js');
9
+ var index = require('./index.js');
10
+
11
+ function clipCircle(radius) {
12
+ var cr = math.cos(radius),
13
+ delta = 2 * math.radians,
14
+ smallRadius = cr > 0,
15
+ notHemisphere = math.abs(cr) > math.epsilon; // TODO optimise for this common case
16
+
17
+ function interpolate(from, to, direction, stream) {
18
+ circle.circleStream(stream, radius, delta, direction, from, to);
19
+ }
20
+
21
+ function visible(lambda, phi) {
22
+ return math.cos(lambda) * math.cos(phi) > cr;
23
+ }
24
+
25
+ // Takes a line and cuts into visible segments. Return values used for polygon
26
+ // clipping: 0 - there were intersections or the line was empty; 1 - no
27
+ // intersections 2 - there were intersections, and the first and last segments
28
+ // should be rejoined.
29
+ function clipLine(stream) {
30
+ var point0, // previous point
31
+ c0, // code for previous point
32
+ v0, // visibility of previous point
33
+ v00, // visibility of first point
34
+ clean; // no intersections
35
+ return {
36
+ lineStart: function() {
37
+ v00 = v0 = false;
38
+ clean = 1;
39
+ },
40
+ point: function(lambda, phi) {
41
+ var point1 = [lambda, phi],
42
+ point2,
43
+ v = visible(lambda, phi),
44
+ c = smallRadius
45
+ ? v ? 0 : code(lambda, phi)
46
+ : v ? code(lambda + (lambda < 0 ? math.pi : -math.pi), phi) : 0;
47
+ if (!point0 && (v00 = v0 = v)) stream.lineStart();
48
+ if (v !== v0) {
49
+ point2 = intersect(point0, point1);
50
+ if (!point2 || pointEqual.default(point0, point2) || pointEqual.default(point1, point2))
51
+ point1[2] = 1;
52
+ }
53
+ if (v !== v0) {
54
+ clean = 0;
55
+ if (v) {
56
+ // outside going in
57
+ stream.lineStart();
58
+ point2 = intersect(point1, point0);
59
+ stream.point(point2[0], point2[1]);
60
+ } else {
61
+ // inside going out
62
+ point2 = intersect(point0, point1);
63
+ stream.point(point2[0], point2[1], 2);
64
+ stream.lineEnd();
65
+ }
66
+ point0 = point2;
67
+ } else if (notHemisphere && point0 && smallRadius ^ v) {
68
+ var t;
69
+ // If the codes for two points are different, or are both zero,
70
+ // and there this segment intersects with the small circle.
71
+ if (!(c & c0) && (t = intersect(point1, point0, true))) {
72
+ clean = 0;
73
+ if (smallRadius) {
74
+ stream.lineStart();
75
+ stream.point(t[0][0], t[0][1]);
76
+ stream.point(t[1][0], t[1][1]);
77
+ stream.lineEnd();
78
+ } else {
79
+ stream.point(t[1][0], t[1][1]);
80
+ stream.lineEnd();
81
+ stream.lineStart();
82
+ stream.point(t[0][0], t[0][1], 3);
83
+ }
84
+ }
85
+ }
86
+ if (v && (!point0 || !pointEqual.default(point0, point1))) {
87
+ stream.point(point1[0], point1[1]);
88
+ }
89
+ point0 = point1, v0 = v, c0 = c;
90
+ },
91
+ lineEnd: function() {
92
+ if (v0) stream.lineEnd();
93
+ point0 = null;
94
+ },
95
+ // Rejoin first and last segments if there were intersections and the first
96
+ // and last points were visible.
97
+ clean: function() {
98
+ return clean | ((v00 && v0) << 1);
99
+ }
100
+ };
101
+ }
102
+
103
+ // Intersects the great circle between a and b with the clip circle.
104
+ function intersect(a, b, two) {
105
+ var pa = cartesian.cartesian(a),
106
+ pb = cartesian.cartesian(b);
107
+
108
+ // We have two planes, n1.p = d1 and n2.p = d2.
109
+ // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).
110
+ var n1 = [1, 0, 0], // normal
111
+ n2 = cartesian.cartesianCross(pa, pb),
112
+ n2n2 = cartesian.cartesianDot(n2, n2),
113
+ n1n2 = n2[0], // cartesianDot(n1, n2),
114
+ determinant = n2n2 - n1n2 * n1n2;
115
+
116
+ // Two polar points.
117
+ if (!determinant) return !two && a;
118
+
119
+ var c1 = cr * n2n2 / determinant,
120
+ c2 = -cr * n1n2 / determinant,
121
+ n1xn2 = cartesian.cartesianCross(n1, n2),
122
+ A = cartesian.cartesianScale(n1, c1),
123
+ B = cartesian.cartesianScale(n2, c2);
124
+ cartesian.cartesianAddInPlace(A, B);
125
+
126
+ // Solve |p(t)|^2 = 1.
127
+ var u = n1xn2,
128
+ w = cartesian.cartesianDot(A, u),
129
+ uu = cartesian.cartesianDot(u, u),
130
+ t2 = w * w - uu * (cartesian.cartesianDot(A, A) - 1);
131
+
132
+ if (t2 < 0) return;
133
+
134
+ var t = math.sqrt(t2),
135
+ q = cartesian.cartesianScale(u, (-w - t) / uu);
136
+ cartesian.cartesianAddInPlace(q, A);
137
+ q = cartesian.spherical(q);
138
+
139
+ if (!two) return q;
140
+
141
+ // Two intersection points.
142
+ var lambda0 = a[0],
143
+ lambda1 = b[0],
144
+ phi0 = a[1],
145
+ phi1 = b[1],
146
+ z;
147
+
148
+ if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;
149
+
150
+ var delta = lambda1 - lambda0,
151
+ polar = math.abs(delta - math.pi) < math.epsilon,
152
+ meridian = polar || delta < math.epsilon;
153
+
154
+ if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
155
+
156
+ // Check that the first point is between a and b.
157
+ if (meridian
158
+ ? polar
159
+ ? phi0 + phi1 > 0 ^ q[1] < (math.abs(q[0] - lambda0) < math.epsilon ? phi0 : phi1)
160
+ : phi0 <= q[1] && q[1] <= phi1
161
+ : delta > math.pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {
162
+ var q1 = cartesian.cartesianScale(u, (-w + t) / uu);
163
+ cartesian.cartesianAddInPlace(q1, A);
164
+ return [q, cartesian.spherical(q1)];
165
+ }
166
+ }
167
+
168
+ // Generates a 4-bit vector representing the location of a point relative to
169
+ // the small circle's bounding box.
170
+ function code(lambda, phi) {
171
+ var r = smallRadius ? radius : math.pi - radius,
172
+ code = 0;
173
+ if (lambda < -r) code |= 1; // left
174
+ else if (lambda > r) code |= 2; // right
175
+ if (phi < -r) code |= 4; // below
176
+ else if (phi > r) code |= 8; // above
177
+ return code;
178
+ }
179
+
180
+ return index.default(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-math.pi, radius - math.pi]);
181
+ }
182
+
183
+ exports.default = clipCircle;
@@ -0,0 +1,137 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var buffer = require('./buffer.js');
6
+ var rejoin = require('./rejoin.js');
7
+ var math = require('../math.js');
8
+ var polygonContains = require('../polygonContains.js');
9
+ var merge = require('../../../d3-array/src/merge.js');
10
+
11
+ function clip(pointVisible, clipLine, interpolate, start) {
12
+ return function(sink) {
13
+ var line = clipLine(sink),
14
+ ringBuffer = buffer.default(),
15
+ ringSink = clipLine(ringBuffer),
16
+ polygonStarted = false,
17
+ polygon,
18
+ segments,
19
+ ring;
20
+
21
+ var clip = {
22
+ point: point,
23
+ lineStart: lineStart,
24
+ lineEnd: lineEnd,
25
+ polygonStart: function() {
26
+ clip.point = pointRing;
27
+ clip.lineStart = ringStart;
28
+ clip.lineEnd = ringEnd;
29
+ segments = [];
30
+ polygon = [];
31
+ },
32
+ polygonEnd: function() {
33
+ clip.point = point;
34
+ clip.lineStart = lineStart;
35
+ clip.lineEnd = lineEnd;
36
+ segments = merge.default(segments);
37
+ var startInside = polygonContains.default(polygon, start);
38
+ if (segments.length) {
39
+ if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
40
+ rejoin.default(segments, compareIntersection, startInside, interpolate, sink);
41
+ } else if (startInside) {
42
+ if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
43
+ sink.lineStart();
44
+ interpolate(null, null, 1, sink);
45
+ sink.lineEnd();
46
+ }
47
+ if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
48
+ segments = polygon = null;
49
+ },
50
+ sphere: function() {
51
+ sink.polygonStart();
52
+ sink.lineStart();
53
+ interpolate(null, null, 1, sink);
54
+ sink.lineEnd();
55
+ sink.polygonEnd();
56
+ }
57
+ };
58
+
59
+ function point(lambda, phi) {
60
+ if (pointVisible(lambda, phi)) sink.point(lambda, phi);
61
+ }
62
+
63
+ function pointLine(lambda, phi) {
64
+ line.point(lambda, phi);
65
+ }
66
+
67
+ function lineStart() {
68
+ clip.point = pointLine;
69
+ line.lineStart();
70
+ }
71
+
72
+ function lineEnd() {
73
+ clip.point = point;
74
+ line.lineEnd();
75
+ }
76
+
77
+ function pointRing(lambda, phi) {
78
+ ring.push([lambda, phi]);
79
+ ringSink.point(lambda, phi);
80
+ }
81
+
82
+ function ringStart() {
83
+ ringSink.lineStart();
84
+ ring = [];
85
+ }
86
+
87
+ function ringEnd() {
88
+ pointRing(ring[0][0], ring[0][1]);
89
+ ringSink.lineEnd();
90
+
91
+ var clean = ringSink.clean(),
92
+ ringSegments = ringBuffer.result(),
93
+ i, n = ringSegments.length, m,
94
+ segment,
95
+ point;
96
+
97
+ ring.pop();
98
+ polygon.push(ring);
99
+ ring = null;
100
+
101
+ if (!n) return;
102
+
103
+ // No intersections.
104
+ if (clean & 1) {
105
+ segment = ringSegments[0];
106
+ if ((m = segment.length - 1) > 0) {
107
+ if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
108
+ sink.lineStart();
109
+ for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);
110
+ sink.lineEnd();
111
+ }
112
+ return;
113
+ }
114
+
115
+ // Rejoin connected segments.
116
+ // TODO reuse ringBuffer.rejoin()?
117
+ if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
118
+
119
+ segments.push(ringSegments.filter(validSegment));
120
+ }
121
+
122
+ return clip;
123
+ };
124
+ }
125
+
126
+ function validSegment(segment) {
127
+ return segment.length > 1;
128
+ }
129
+
130
+ // Intersections are sorted along the clip edge. For both antimeridian cutting
131
+ // and circle clipping, the same comparison is used.
132
+ function compareIntersection(a, b) {
133
+ return ((a = a.x)[0] < 0 ? a[1] - math.halfPi - math.epsilon : math.halfPi - a[1])
134
+ - ((b = b.x)[0] < 0 ? b[1] - math.halfPi - math.epsilon : math.halfPi - b[1]);
135
+ }
136
+
137
+ exports.default = clip;