react-cheminfo 0.9.0 → 0.11.0

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 (1285) hide show
  1. package/README.md +251 -20
  2. package/lib/chart/core/chartAxisScale.d.ts +88 -0
  3. package/lib/chart/core/chartAxisScale.d.ts.map +1 -0
  4. package/lib/chart/core/chartAxisScale.js +205 -0
  5. package/lib/chart/core/chartAxisScale.js.map +1 -0
  6. package/lib/chart/core/chartBand.d.ts +47 -0
  7. package/lib/chart/core/chartBand.d.ts.map +1 -0
  8. package/lib/chart/core/chartBand.js +55 -0
  9. package/lib/chart/core/chartBand.js.map +1 -0
  10. package/lib/chart/core/chartBins.d.ts +32 -0
  11. package/lib/chart/core/chartBins.d.ts.map +1 -0
  12. package/lib/chart/core/chartBins.js +64 -0
  13. package/lib/chart/core/chartBins.js.map +1 -0
  14. package/lib/chart/core/chartExtent.d.ts +105 -0
  15. package/lib/chart/core/chartExtent.d.ts.map +1 -0
  16. package/lib/chart/core/chartExtent.js +134 -0
  17. package/lib/chart/core/chartExtent.js.map +1 -0
  18. package/lib/chart/core/chartLabels.d.ts +49 -0
  19. package/lib/chart/core/chartLabels.d.ts.map +1 -0
  20. package/lib/chart/core/chartLabels.js +44 -0
  21. package/lib/chart/core/chartLabels.js.map +1 -0
  22. package/lib/chart/core/chartPalette.d.ts +33 -0
  23. package/lib/chart/core/chartPalette.d.ts.map +1 -0
  24. package/lib/chart/core/chartPalette.js +51 -0
  25. package/lib/chart/core/chartPalette.js.map +1 -0
  26. package/lib/chart/core/chartScale.d.ts +49 -0
  27. package/lib/chart/core/chartScale.d.ts.map +1 -0
  28. package/lib/chart/core/chartScale.js +53 -0
  29. package/lib/chart/core/chartScale.js.map +1 -0
  30. package/lib/chart/core/chartViewport.d.ts +88 -0
  31. package/lib/chart/core/chartViewport.d.ts.map +1 -0
  32. package/lib/chart/core/chartViewport.js +164 -0
  33. package/lib/chart/core/chartViewport.js.map +1 -0
  34. package/lib/chart/core/index.d.ts +29 -0
  35. package/lib/chart/core/index.d.ts.map +1 -0
  36. package/lib/chart/core/index.js +20 -0
  37. package/lib/chart/core/index.js.map +1 -0
  38. package/lib/chart/core/matrix.d.ts +56 -0
  39. package/lib/chart/core/matrix.d.ts.map +1 -0
  40. package/lib/chart/core/matrix.js +75 -0
  41. package/lib/chart/core/matrix.js.map +1 -0
  42. package/lib/chart/ui/ChartAxis.d.ts +50 -0
  43. package/lib/chart/ui/ChartAxis.d.ts.map +1 -0
  44. package/lib/chart/ui/ChartAxis.js +89 -0
  45. package/lib/chart/ui/ChartAxis.js.map +1 -0
  46. package/lib/chart/ui/ChartFrame.d.ts +136 -0
  47. package/lib/chart/ui/ChartFrame.d.ts.map +1 -0
  48. package/lib/chart/ui/ChartFrame.js +61 -0
  49. package/lib/chart/ui/ChartFrame.js.map +1 -0
  50. package/lib/chart/ui/ChartSeriesMarks.d.ts +44 -0
  51. package/lib/chart/ui/ChartSeriesMarks.d.ts.map +1 -0
  52. package/lib/chart/ui/ChartSeriesMarks.js +48 -0
  53. package/lib/chart/ui/ChartSeriesMarks.js.map +1 -0
  54. package/lib/chart/ui/ChartTrackingLayer.d.ts +54 -0
  55. package/lib/chart/ui/ChartTrackingLayer.d.ts.map +1 -0
  56. package/lib/chart/ui/ChartTrackingLayer.js +98 -0
  57. package/lib/chart/ui/ChartTrackingLayer.js.map +1 -0
  58. package/lib/chart/ui/TrackedLineChart.d.ts +136 -0
  59. package/lib/chart/ui/TrackedLineChart.d.ts.map +1 -0
  60. package/lib/chart/ui/TrackedLineChart.js +90 -0
  61. package/lib/chart/ui/TrackedLineChart.js.map +1 -0
  62. package/lib/chart/ui/TrackedStickChart.d.ts +88 -0
  63. package/lib/chart/ui/TrackedStickChart.d.ts.map +1 -0
  64. package/lib/chart/ui/TrackedStickChart.js +58 -0
  65. package/lib/chart/ui/TrackedStickChart.js.map +1 -0
  66. package/lib/chart/ui/chartStyles.d.ts +141 -0
  67. package/lib/chart/ui/chartStyles.d.ts.map +1 -0
  68. package/lib/chart/ui/chartStyles.js +154 -0
  69. package/lib/chart/ui/chartStyles.js.map +1 -0
  70. package/lib/chart/ui/index.d.ts +20 -0
  71. package/lib/chart/ui/index.d.ts.map +1 -0
  72. package/lib/chart/ui/index.js +13 -0
  73. package/lib/chart/ui/index.js.map +1 -0
  74. package/lib/chart/ui/stickChartModel.d.ts +99 -0
  75. package/lib/chart/ui/stickChartModel.d.ts.map +1 -0
  76. package/lib/chart/ui/stickChartModel.js +140 -0
  77. package/lib/chart/ui/stickChartModel.js.map +1 -0
  78. package/lib/chart/ui/useWheelZoom.d.ts +69 -0
  79. package/lib/chart/ui/useWheelZoom.d.ts.map +1 -0
  80. package/lib/chart/ui/useWheelZoom.js +122 -0
  81. package/lib/chart/ui/useWheelZoom.js.map +1 -0
  82. package/lib/chrome/ui/NavLink.d.ts.map +1 -1
  83. package/lib/chrome/ui/NavLink.js +4 -3
  84. package/lib/chrome/ui/NavLink.js.map +1 -1
  85. package/lib/chrome/ui/SiteFooter.d.ts +8 -0
  86. package/lib/chrome/ui/SiteFooter.d.ts.map +1 -1
  87. package/lib/chrome/ui/SiteFooter.js +7 -2
  88. package/lib/chrome/ui/SiteFooter.js.map +1 -1
  89. package/lib/chrome/ui/SiteHeader.d.ts +11 -0
  90. package/lib/chrome/ui/SiteHeader.d.ts.map +1 -1
  91. package/lib/chrome/ui/SiteHeader.js +7 -2
  92. package/lib/chrome/ui/SiteHeader.js.map +1 -1
  93. package/lib/chrome/ui/navItem.d.ts +12 -0
  94. package/lib/chrome/ui/navItem.d.ts.map +1 -1
  95. package/lib/chrome/ui/navItem.js.map +1 -1
  96. package/lib/color/core/gradient.d.ts +15 -0
  97. package/lib/color/core/gradient.d.ts.map +1 -0
  98. package/lib/color/core/gradient.js +28 -0
  99. package/lib/color/core/gradient.js.map +1 -0
  100. package/lib/color/core/hsv.d.ts +38 -0
  101. package/lib/color/core/hsv.d.ts.map +1 -0
  102. package/lib/color/core/hsv.js +92 -0
  103. package/lib/color/core/hsv.js.map +1 -0
  104. package/lib/color/core/index.d.ts +12 -1
  105. package/lib/color/core/index.d.ts.map +1 -1
  106. package/lib/color/core/index.js +6 -0
  107. package/lib/color/core/index.js.map +1 -1
  108. package/lib/color/core/interpolate.d.ts +67 -0
  109. package/lib/color/core/interpolate.d.ts.map +1 -0
  110. package/lib/color/core/interpolate.js +121 -0
  111. package/lib/color/core/interpolate.js.map +1 -0
  112. package/lib/color/core/scale.d.ts +11 -15
  113. package/lib/color/core/scale.d.ts.map +1 -1
  114. package/lib/color/core/scale.js +14 -41
  115. package/lib/color/core/scale.js.map +1 -1
  116. package/lib/color/core/scaleData.d.ts +19 -0
  117. package/lib/color/core/scaleData.d.ts.map +1 -0
  118. package/lib/color/core/scaleData.js +120 -0
  119. package/lib/color/core/scaleData.js.map +1 -0
  120. package/lib/color/core/scaleText.d.ts +43 -0
  121. package/lib/color/core/scaleText.d.ts.map +1 -0
  122. package/lib/color/core/scaleText.js +109 -0
  123. package/lib/color/core/scaleText.js.map +1 -0
  124. package/lib/color/core/scales.d.ts +42 -0
  125. package/lib/color/core/scales.d.ts.map +1 -0
  126. package/lib/color/core/scales.js +110 -0
  127. package/lib/color/core/scales.js.map +1 -0
  128. package/lib/color/ui/ColorScaleBar.d.ts +39 -0
  129. package/lib/color/ui/ColorScaleBar.d.ts.map +1 -0
  130. package/lib/color/ui/ColorScaleBar.js +27 -0
  131. package/lib/color/ui/ColorScaleBar.js.map +1 -0
  132. package/lib/color/ui/ColorScaleEditor.d.ts +21 -0
  133. package/lib/color/ui/ColorScaleEditor.d.ts.map +1 -0
  134. package/lib/color/ui/ColorScaleEditor.js +141 -0
  135. package/lib/color/ui/ColorScaleEditor.js.map +1 -0
  136. package/lib/color/ui/ColorScaleSelect.d.ts +38 -0
  137. package/lib/color/ui/ColorScaleSelect.d.ts.map +1 -0
  138. package/lib/color/ui/ColorScaleSelect.js +109 -0
  139. package/lib/color/ui/ColorScaleSelect.js.map +1 -0
  140. package/lib/color/ui/index.d.ts +6 -0
  141. package/lib/color/ui/index.d.ts.map +1 -1
  142. package/lib/color/ui/index.js +3 -0
  143. package/lib/color/ui/index.js.map +1 -1
  144. package/lib/core.d.ts +6 -0
  145. package/lib/core.d.ts.map +1 -1
  146. package/lib/core.js +6 -0
  147. package/lib/core.js.map +1 -1
  148. package/lib/credits/core/credits.d.ts +17 -0
  149. package/lib/credits/core/credits.d.ts.map +1 -1
  150. package/lib/credits/core/credits.js +20 -0
  151. package/lib/credits/core/credits.js.map +1 -1
  152. package/lib/download/core/cssTokens.d.ts +33 -0
  153. package/lib/download/core/cssTokens.d.ts.map +1 -0
  154. package/lib/download/core/cssTokens.js +82 -0
  155. package/lib/download/core/cssTokens.js.map +1 -0
  156. package/lib/download/core/downloadFigure.d.ts +39 -0
  157. package/lib/download/core/downloadFigure.d.ts.map +1 -0
  158. package/lib/download/core/downloadFigure.js +35 -0
  159. package/lib/download/core/downloadFigure.js.map +1 -0
  160. package/lib/download/core/figureLegend.d.ts +90 -0
  161. package/lib/download/core/figureLegend.d.ts.map +1 -0
  162. package/lib/download/core/figureLegend.js +77 -0
  163. package/lib/download/core/figureLegend.js.map +1 -0
  164. package/lib/download/core/figurePng.d.ts +21 -0
  165. package/lib/download/core/figurePng.d.ts.map +1 -0
  166. package/lib/download/core/figurePng.js +76 -0
  167. package/lib/download/core/figurePng.js.map +1 -0
  168. package/lib/download/core/figureScale.d.ts +61 -0
  169. package/lib/download/core/figureScale.d.ts.map +1 -0
  170. package/lib/download/core/figureScale.js +67 -0
  171. package/lib/download/core/figureScale.js.map +1 -0
  172. package/lib/download/core/figureSvg.d.ts +37 -0
  173. package/lib/download/core/figureSvg.d.ts.map +1 -0
  174. package/lib/download/core/figureSvg.js +164 -0
  175. package/lib/download/core/figureSvg.js.map +1 -0
  176. package/lib/download/core/figureSvgDocument.d.ts +62 -0
  177. package/lib/download/core/figureSvgDocument.d.ts.map +1 -0
  178. package/lib/download/core/figureSvgDocument.js +82 -0
  179. package/lib/download/core/figureSvgDocument.js.map +1 -0
  180. package/lib/download/core/figureTarget.d.ts +67 -0
  181. package/lib/download/core/figureTarget.d.ts.map +1 -0
  182. package/lib/download/core/figureTarget.js +138 -0
  183. package/lib/download/core/figureTarget.js.map +1 -0
  184. package/lib/download/core/index.d.ts +14 -0
  185. package/lib/download/core/index.d.ts.map +1 -1
  186. package/lib/download/core/index.js +8 -0
  187. package/lib/download/core/index.js.map +1 -1
  188. package/lib/download/ui/FigureDownload.d.ts +81 -0
  189. package/lib/download/ui/FigureDownload.d.ts.map +1 -0
  190. package/lib/download/ui/FigureDownload.js +65 -0
  191. package/lib/download/ui/FigureDownload.js.map +1 -0
  192. package/lib/download/ui/FigureDownloadPanel.d.ts +45 -0
  193. package/lib/download/ui/FigureDownloadPanel.d.ts.map +1 -0
  194. package/lib/download/ui/FigureDownloadPanel.js +86 -0
  195. package/lib/download/ui/FigureDownloadPanel.js.map +1 -0
  196. package/lib/download/ui/index.d.ts +13 -0
  197. package/lib/download/ui/index.d.ts.map +1 -0
  198. package/lib/download/ui/index.js +11 -0
  199. package/lib/download/ui/index.js.map +1 -0
  200. package/lib/ecosystem/core/sites.d.ts +1 -1
  201. package/lib/ecosystem/core/sites.d.ts.map +1 -1
  202. package/lib/ecosystem/core/sites.js +23 -0
  203. package/lib/ecosystem/core/sites.js.map +1 -1
  204. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  205. package/lib/ecosystem/ui/glyphs.js +9 -0
  206. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  207. package/lib/overlay/core/emptiestCorner.d.ts +47 -0
  208. package/lib/overlay/core/emptiestCorner.d.ts.map +1 -0
  209. package/lib/overlay/core/emptiestCorner.js +84 -0
  210. package/lib/overlay/core/emptiestCorner.js.map +1 -0
  211. package/lib/overlay/core/index.d.ts +23 -0
  212. package/lib/overlay/core/index.d.ts.map +1 -0
  213. package/lib/overlay/core/index.js +16 -0
  214. package/lib/overlay/core/index.js.map +1 -0
  215. package/lib/overlay/core/overlayCollapse.d.ts +14 -0
  216. package/lib/overlay/core/overlayCollapse.d.ts.map +1 -0
  217. package/lib/overlay/core/overlayCollapse.js +20 -0
  218. package/lib/overlay/core/overlayCollapse.js.map +1 -0
  219. package/lib/overlay/core/overlayMarks.d.ts +31 -0
  220. package/lib/overlay/core/overlayMarks.d.ts.map +1 -0
  221. package/lib/overlay/core/overlayMarks.js +38 -0
  222. package/lib/overlay/core/overlayMarks.js.map +1 -0
  223. package/lib/overlay/core/overlayMetrics.d.ts +41 -0
  224. package/lib/overlay/core/overlayMetrics.d.ts.map +1 -0
  225. package/lib/overlay/core/overlayMetrics.js +73 -0
  226. package/lib/overlay/core/overlayMetrics.js.map +1 -0
  227. package/lib/overlay/core/overlayPlacement.d.ts +60 -0
  228. package/lib/overlay/core/overlayPlacement.d.ts.map +1 -0
  229. package/lib/overlay/core/overlayPlacement.js +24 -0
  230. package/lib/overlay/core/overlayPlacement.js.map +1 -0
  231. package/lib/overlay/core/overlayTierRoom.d.ts +89 -0
  232. package/lib/overlay/core/overlayTierRoom.d.ts.map +1 -0
  233. package/lib/overlay/core/overlayTierRoom.js +135 -0
  234. package/lib/overlay/core/overlayTierRoom.js.map +1 -0
  235. package/lib/overlay/core/overlayTiers.d.ts +71 -0
  236. package/lib/overlay/core/overlayTiers.d.ts.map +1 -0
  237. package/lib/overlay/core/overlayTiers.js +89 -0
  238. package/lib/overlay/core/overlayTiers.js.map +1 -0
  239. package/lib/overlay/core/placeOverlayCard.d.ts +47 -0
  240. package/lib/overlay/core/placeOverlayCard.d.ts.map +1 -0
  241. package/lib/overlay/core/placeOverlayCard.js +42 -0
  242. package/lib/overlay/core/placeOverlayCard.js.map +1 -0
  243. package/lib/overlay/ui/OverlayAction.d.ts +32 -0
  244. package/lib/overlay/ui/OverlayAction.d.ts.map +1 -0
  245. package/lib/overlay/ui/OverlayAction.js +19 -0
  246. package/lib/overlay/ui/OverlayAction.js.map +1 -0
  247. package/lib/overlay/ui/OverlayBar.d.ts +122 -0
  248. package/lib/overlay/ui/OverlayBar.d.ts.map +1 -0
  249. package/lib/overlay/ui/OverlayBar.js +42 -0
  250. package/lib/overlay/ui/OverlayBar.js.map +1 -0
  251. package/lib/overlay/ui/OverlayBarButton.d.ts +38 -0
  252. package/lib/overlay/ui/OverlayBarButton.d.ts.map +1 -0
  253. package/lib/overlay/ui/OverlayBarButton.js +40 -0
  254. package/lib/overlay/ui/OverlayBarButton.js.map +1 -0
  255. package/lib/overlay/ui/OverlayBarCard.d.ts +25 -0
  256. package/lib/overlay/ui/OverlayBarCard.d.ts.map +1 -0
  257. package/lib/overlay/ui/OverlayBarCard.js +28 -0
  258. package/lib/overlay/ui/OverlayBarCard.js.map +1 -0
  259. package/lib/overlay/ui/OverlayBarStrip.d.ts +18 -0
  260. package/lib/overlay/ui/OverlayBarStrip.d.ts.map +1 -0
  261. package/lib/overlay/ui/OverlayBarStrip.js +26 -0
  262. package/lib/overlay/ui/OverlayBarStrip.js.map +1 -0
  263. package/lib/overlay/ui/OverlayCaption.d.ts +52 -0
  264. package/lib/overlay/ui/OverlayCaption.d.ts.map +1 -0
  265. package/lib/overlay/ui/OverlayCaption.js +62 -0
  266. package/lib/overlay/ui/OverlayCaption.js.map +1 -0
  267. package/lib/overlay/ui/OverlayChip.d.ts +60 -0
  268. package/lib/overlay/ui/OverlayChip.d.ts.map +1 -0
  269. package/lib/overlay/ui/OverlayChip.js +73 -0
  270. package/lib/overlay/ui/OverlayChip.js.map +1 -0
  271. package/lib/overlay/ui/OverlayDivider.d.ts +11 -0
  272. package/lib/overlay/ui/OverlayDivider.d.ts.map +1 -0
  273. package/lib/overlay/ui/OverlayDivider.js +16 -0
  274. package/lib/overlay/ui/OverlayDivider.js.map +1 -0
  275. package/lib/overlay/ui/OverlayGroup.d.ts +53 -0
  276. package/lib/overlay/ui/OverlayGroup.d.ts.map +1 -0
  277. package/lib/overlay/ui/OverlayGroup.js +63 -0
  278. package/lib/overlay/ui/OverlayGroup.js.map +1 -0
  279. package/lib/overlay/ui/OverlayIconButton.d.ts +75 -0
  280. package/lib/overlay/ui/OverlayIconButton.d.ts.map +1 -0
  281. package/lib/overlay/ui/OverlayIconButton.js +43 -0
  282. package/lib/overlay/ui/OverlayIconButton.js.map +1 -0
  283. package/lib/overlay/ui/OverlayInfo.d.ts +43 -0
  284. package/lib/overlay/ui/OverlayInfo.d.ts.map +1 -0
  285. package/lib/overlay/ui/OverlayInfo.js +47 -0
  286. package/lib/overlay/ui/OverlayInfo.js.map +1 -0
  287. package/lib/overlay/ui/OverlayLayer.d.ts +54 -0
  288. package/lib/overlay/ui/OverlayLayer.d.ts.map +1 -0
  289. package/lib/overlay/ui/OverlayLayer.js +50 -0
  290. package/lib/overlay/ui/OverlayLayer.js.map +1 -0
  291. package/lib/overlay/ui/OverlayLegend.d.ts +75 -0
  292. package/lib/overlay/ui/OverlayLegend.d.ts.map +1 -0
  293. package/lib/overlay/ui/OverlayLegend.js +81 -0
  294. package/lib/overlay/ui/OverlayLegend.js.map +1 -0
  295. package/lib/overlay/ui/OverlayLegendMark.d.ts +36 -0
  296. package/lib/overlay/ui/OverlayLegendMark.d.ts.map +1 -0
  297. package/lib/overlay/ui/OverlayLegendMark.js +43 -0
  298. package/lib/overlay/ui/OverlayLegendMark.js.map +1 -0
  299. package/lib/overlay/ui/OverlayNumber.d.ts +43 -0
  300. package/lib/overlay/ui/OverlayNumber.d.ts.map +1 -0
  301. package/lib/overlay/ui/OverlayNumber.js +74 -0
  302. package/lib/overlay/ui/OverlayNumber.js.map +1 -0
  303. package/lib/overlay/ui/OverlayPanel.d.ts +81 -0
  304. package/lib/overlay/ui/OverlayPanel.d.ts.map +1 -0
  305. package/lib/overlay/ui/OverlayPanel.js +42 -0
  306. package/lib/overlay/ui/OverlayPanel.js.map +1 -0
  307. package/lib/overlay/ui/OverlayPills.d.ts +73 -0
  308. package/lib/overlay/ui/OverlayPills.d.ts.map +1 -0
  309. package/lib/overlay/ui/OverlayPills.js +55 -0
  310. package/lib/overlay/ui/OverlayPills.js.map +1 -0
  311. package/lib/overlay/ui/OverlayReadout.d.ts +63 -0
  312. package/lib/overlay/ui/OverlayReadout.d.ts.map +1 -0
  313. package/lib/overlay/ui/OverlayReadout.js +129 -0
  314. package/lib/overlay/ui/OverlayReadout.js.map +1 -0
  315. package/lib/overlay/ui/OverlayRow.d.ts +111 -0
  316. package/lib/overlay/ui/OverlayRow.d.ts.map +1 -0
  317. package/lib/overlay/ui/OverlayRow.js +50 -0
  318. package/lib/overlay/ui/OverlayRow.js.map +1 -0
  319. package/lib/overlay/ui/OverlaySegmented.d.ts +28 -0
  320. package/lib/overlay/ui/OverlaySegmented.d.ts.map +1 -0
  321. package/lib/overlay/ui/OverlaySegmented.js +23 -0
  322. package/lib/overlay/ui/OverlaySegmented.js.map +1 -0
  323. package/lib/overlay/ui/OverlaySelect.d.ts +35 -0
  324. package/lib/overlay/ui/OverlaySelect.d.ts.map +1 -0
  325. package/lib/overlay/ui/OverlaySelect.js +30 -0
  326. package/lib/overlay/ui/OverlaySelect.js.map +1 -0
  327. package/lib/overlay/ui/OverlaySwatchIcon.d.ts +26 -0
  328. package/lib/overlay/ui/OverlaySwatchIcon.d.ts.map +1 -0
  329. package/lib/overlay/ui/OverlaySwatchIcon.js +94 -0
  330. package/lib/overlay/ui/OverlaySwatchIcon.js.map +1 -0
  331. package/lib/overlay/ui/OverlayToggle.d.ts +56 -0
  332. package/lib/overlay/ui/OverlayToggle.d.ts.map +1 -0
  333. package/lib/overlay/ui/OverlayToggle.js +42 -0
  334. package/lib/overlay/ui/OverlayToggle.js.map +1 -0
  335. package/lib/overlay/ui/OverlayValueButton.d.ts +80 -0
  336. package/lib/overlay/ui/OverlayValueButton.d.ts.map +1 -0
  337. package/lib/overlay/ui/OverlayValueButton.js +46 -0
  338. package/lib/overlay/ui/OverlayValueButton.js.map +1 -0
  339. package/lib/overlay/ui/OverlayValueMenu.d.ts +68 -0
  340. package/lib/overlay/ui/OverlayValueMenu.d.ts.map +1 -0
  341. package/lib/overlay/ui/OverlayValueMenu.js +40 -0
  342. package/lib/overlay/ui/OverlayValueMenu.js.map +1 -0
  343. package/lib/overlay/ui/index.d.ts +55 -0
  344. package/lib/overlay/ui/index.d.ts.map +1 -0
  345. package/lib/overlay/ui/index.js +33 -0
  346. package/lib/overlay/ui/index.js.map +1 -0
  347. package/lib/overlay/ui/overlayBarShape.d.ts +85 -0
  348. package/lib/overlay/ui/overlayBarShape.d.ts.map +1 -0
  349. package/lib/overlay/ui/overlayBarShape.js +48 -0
  350. package/lib/overlay/ui/overlayBarShape.js.map +1 -0
  351. package/lib/overlay/ui/overlayControlStyles.d.ts +82 -0
  352. package/lib/overlay/ui/overlayControlStyles.d.ts.map +1 -0
  353. package/lib/overlay/ui/overlayControlStyles.js +142 -0
  354. package/lib/overlay/ui/overlayControlStyles.js.map +1 -0
  355. package/lib/overlay/ui/overlayFigureStyles.d.ts +52 -0
  356. package/lib/overlay/ui/overlayFigureStyles.d.ts.map +1 -0
  357. package/lib/overlay/ui/overlayFigureStyles.js +98 -0
  358. package/lib/overlay/ui/overlayFigureStyles.js.map +1 -0
  359. package/lib/overlay/ui/overlayPanelContext.d.ts +34 -0
  360. package/lib/overlay/ui/overlayPanelContext.d.ts.map +1 -0
  361. package/lib/overlay/ui/overlayPanelContext.js +29 -0
  362. package/lib/overlay/ui/overlayPanelContext.js.map +1 -0
  363. package/lib/overlay/ui/overlayPanelStyles.d.ts +112 -0
  364. package/lib/overlay/ui/overlayPanelStyles.d.ts.map +1 -0
  365. package/lib/overlay/ui/overlayPanelStyles.js +193 -0
  366. package/lib/overlay/ui/overlayPanelStyles.js.map +1 -0
  367. package/lib/overlay/ui/overlayPillKeys.d.ts +19 -0
  368. package/lib/overlay/ui/overlayPillKeys.d.ts.map +1 -0
  369. package/lib/overlay/ui/overlayPillKeys.js +33 -0
  370. package/lib/overlay/ui/overlayPillKeys.js.map +1 -0
  371. package/lib/overlay/ui/overlayPillStyles.d.ts +78 -0
  372. package/lib/overlay/ui/overlayPillStyles.d.ts.map +1 -0
  373. package/lib/overlay/ui/overlayPillStyles.js +140 -0
  374. package/lib/overlay/ui/overlayPillStyles.js.map +1 -0
  375. package/lib/overlay/ui/overlayRowStyles.d.ts +113 -0
  376. package/lib/overlay/ui/overlayRowStyles.d.ts.map +1 -0
  377. package/lib/overlay/ui/overlayRowStyles.js +135 -0
  378. package/lib/overlay/ui/overlayRowStyles.js.map +1 -0
  379. package/lib/overlay/ui/overlayStepperStyles.d.ts +51 -0
  380. package/lib/overlay/ui/overlayStepperStyles.d.ts.map +1 -0
  381. package/lib/overlay/ui/overlayStepperStyles.js +96 -0
  382. package/lib/overlay/ui/overlayStepperStyles.js.map +1 -0
  383. package/lib/overlay/ui/overlayStyles.d.ts +123 -0
  384. package/lib/overlay/ui/overlayStyles.d.ts.map +1 -0
  385. package/lib/overlay/ui/overlayStyles.js +203 -0
  386. package/lib/overlay/ui/overlayStyles.js.map +1 -0
  387. package/lib/overlay/ui/overlaySurface.d.ts +54 -0
  388. package/lib/overlay/ui/overlaySurface.d.ts.map +1 -0
  389. package/lib/overlay/ui/overlaySurface.js +85 -0
  390. package/lib/overlay/ui/overlaySurface.js.map +1 -0
  391. package/lib/overlay/ui/overlaySwitchStyles.d.ts +70 -0
  392. package/lib/overlay/ui/overlaySwitchStyles.d.ts.map +1 -0
  393. package/lib/overlay/ui/overlaySwitchStyles.js +102 -0
  394. package/lib/overlay/ui/overlaySwitchStyles.js.map +1 -0
  395. package/lib/overlay/ui/overlayValueStyles.d.ts +101 -0
  396. package/lib/overlay/ui/overlayValueStyles.d.ts.map +1 -0
  397. package/lib/overlay/ui/overlayValueStyles.js +166 -0
  398. package/lib/overlay/ui/overlayValueStyles.js.map +1 -0
  399. package/lib/projection/core/embeddingResult.d.ts +60 -0
  400. package/lib/projection/core/embeddingResult.d.ts.map +1 -0
  401. package/lib/projection/core/embeddingResult.js +52 -0
  402. package/lib/projection/core/embeddingResult.js.map +1 -0
  403. package/lib/projection/core/explainedShares.d.ts +51 -0
  404. package/lib/projection/core/explainedShares.d.ts.map +1 -0
  405. package/lib/projection/core/explainedShares.js +55 -0
  406. package/lib/projection/core/explainedShares.js.map +1 -0
  407. package/lib/projection/core/index.d.ts +38 -0
  408. package/lib/projection/core/index.d.ts.map +1 -0
  409. package/lib/projection/core/index.js +25 -0
  410. package/lib/projection/core/index.js.map +1 -0
  411. package/lib/projection/core/loadingProfiles.d.ts +87 -0
  412. package/lib/projection/core/loadingProfiles.d.ts.map +1 -0
  413. package/lib/projection/core/loadingProfiles.js +125 -0
  414. package/lib/projection/core/loadingProfiles.js.map +1 -0
  415. package/lib/projection/core/pcaLike.d.ts +32 -0
  416. package/lib/projection/core/pcaLike.d.ts.map +1 -0
  417. package/lib/projection/core/pcaLike.js +2 -0
  418. package/lib/projection/core/pcaLike.js.map +1 -0
  419. package/lib/projection/core/pcaResult.d.ts +86 -0
  420. package/lib/projection/core/pcaResult.d.ts.map +1 -0
  421. package/lib/projection/core/pcaResult.js +122 -0
  422. package/lib/projection/core/pcaResult.js.map +1 -0
  423. package/lib/projection/core/projectionCopy.d.ts +134 -0
  424. package/lib/projection/core/projectionCopy.d.ts.map +1 -0
  425. package/lib/projection/core/projectionCopy.js +114 -0
  426. package/lib/projection/core/projectionCopy.js.map +1 -0
  427. package/lib/projection/core/projectionCopyPatch.d.ts +13 -0
  428. package/lib/projection/core/projectionCopyPatch.d.ts.map +1 -0
  429. package/lib/projection/core/projectionCopyPatch.js +2 -0
  430. package/lib/projection/core/projectionCopyPatch.js.map +1 -0
  431. package/lib/projection/core/projectionOptions.d.ts +143 -0
  432. package/lib/projection/core/projectionOptions.d.ts.map +1 -0
  433. package/lib/projection/core/projectionOptions.js +111 -0
  434. package/lib/projection/core/projectionOptions.js.map +1 -0
  435. package/lib/projection/core/projectionResult.d.ts +119 -0
  436. package/lib/projection/core/projectionResult.d.ts.map +1 -0
  437. package/lib/projection/core/projectionResult.js +2 -0
  438. package/lib/projection/core/projectionResult.js.map +1 -0
  439. package/lib/projection/core/projectionSamples.d.ts +77 -0
  440. package/lib/projection/core/projectionSamples.d.ts.map +1 -0
  441. package/lib/projection/core/projectionSamples.js +81 -0
  442. package/lib/projection/core/projectionSamples.js.map +1 -0
  443. package/lib/projection/core/projectionStrings.d.ts +138 -0
  444. package/lib/projection/core/projectionStrings.d.ts.map +1 -0
  445. package/lib/projection/core/projectionStrings.js +182 -0
  446. package/lib/projection/core/projectionStrings.js.map +1 -0
  447. package/lib/projection/core/projectionTabDefaults.d.ts +18 -0
  448. package/lib/projection/core/projectionTabDefaults.d.ts.map +1 -0
  449. package/lib/projection/core/projectionTabDefaults.js +58 -0
  450. package/lib/projection/core/projectionTabDefaults.js.map +1 -0
  451. package/lib/projection/core/projectionTabs.d.ts +25 -0
  452. package/lib/projection/core/projectionTabs.d.ts.map +1 -0
  453. package/lib/projection/core/projectionTabs.js +60 -0
  454. package/lib/projection/core/projectionTabs.js.map +1 -0
  455. package/lib/projection/core/variableAxis.d.ts +106 -0
  456. package/lib/projection/core/variableAxis.d.ts.map +1 -0
  457. package/lib/projection/core/variableAxis.js +84 -0
  458. package/lib/projection/core/variableAxis.js.map +1 -0
  459. package/lib/projection/core/variablesView.d.ts +33 -0
  460. package/lib/projection/core/variablesView.d.ts.map +1 -0
  461. package/lib/projection/core/variablesView.js +49 -0
  462. package/lib/projection/core/variablesView.js.map +1 -0
  463. package/lib/projection/ui/PcaViewer.d.ts +31 -0
  464. package/lib/projection/ui/PcaViewer.d.ts.map +1 -0
  465. package/lib/projection/ui/PcaViewer.js +46 -0
  466. package/lib/projection/ui/PcaViewer.js.map +1 -0
  467. package/lib/projection/ui/ProjectionBar.d.ts +55 -0
  468. package/lib/projection/ui/ProjectionBar.d.ts.map +1 -0
  469. package/lib/projection/ui/ProjectionBar.js +112 -0
  470. package/lib/projection/ui/ProjectionBar.js.map +1 -0
  471. package/lib/projection/ui/ProjectionMapCaption.d.ts +46 -0
  472. package/lib/projection/ui/ProjectionMapCaption.d.ts.map +1 -0
  473. package/lib/projection/ui/ProjectionMapCaption.js +54 -0
  474. package/lib/projection/ui/ProjectionMapCaption.js.map +1 -0
  475. package/lib/projection/ui/ProjectionMapControls.d.ts +67 -0
  476. package/lib/projection/ui/ProjectionMapControls.d.ts.map +1 -0
  477. package/lib/projection/ui/ProjectionMapControls.js +108 -0
  478. package/lib/projection/ui/ProjectionMapControls.js.map +1 -0
  479. package/lib/projection/ui/ProjectionMapLegend.d.ts +39 -0
  480. package/lib/projection/ui/ProjectionMapLegend.d.ts.map +1 -0
  481. package/lib/projection/ui/ProjectionMapLegend.js +29 -0
  482. package/lib/projection/ui/ProjectionMapLegend.js.map +1 -0
  483. package/lib/projection/ui/ProjectionMapMore.d.ts +42 -0
  484. package/lib/projection/ui/ProjectionMapMore.d.ts.map +1 -0
  485. package/lib/projection/ui/ProjectionMapMore.js +74 -0
  486. package/lib/projection/ui/ProjectionMapMore.js.map +1 -0
  487. package/lib/projection/ui/ProjectionMapTab.d.ts +107 -0
  488. package/lib/projection/ui/ProjectionMapTab.d.ts.map +1 -0
  489. package/lib/projection/ui/ProjectionMapTab.js +43 -0
  490. package/lib/projection/ui/ProjectionMapTab.js.map +1 -0
  491. package/lib/projection/ui/ProjectionPairsControls.d.ts +37 -0
  492. package/lib/projection/ui/ProjectionPairsControls.d.ts.map +1 -0
  493. package/lib/projection/ui/ProjectionPairsControls.js +20 -0
  494. package/lib/projection/ui/ProjectionPairsControls.js.map +1 -0
  495. package/lib/projection/ui/ProjectionPairsMore.d.ts +40 -0
  496. package/lib/projection/ui/ProjectionPairsMore.d.ts.map +1 -0
  497. package/lib/projection/ui/ProjectionPairsMore.js +31 -0
  498. package/lib/projection/ui/ProjectionPairsMore.js.map +1 -0
  499. package/lib/projection/ui/ProjectionPairsTab.d.ts +66 -0
  500. package/lib/projection/ui/ProjectionPairsTab.d.ts.map +1 -0
  501. package/lib/projection/ui/ProjectionPairsTab.js +64 -0
  502. package/lib/projection/ui/ProjectionPairsTab.js.map +1 -0
  503. package/lib/projection/ui/ProjectionPanel.d.ts +79 -0
  504. package/lib/projection/ui/ProjectionPanel.d.ts.map +1 -0
  505. package/lib/projection/ui/ProjectionPanel.js +72 -0
  506. package/lib/projection/ui/ProjectionPanel.js.map +1 -0
  507. package/lib/projection/ui/ProjectionReadout.d.ts +72 -0
  508. package/lib/projection/ui/ProjectionReadout.d.ts.map +1 -0
  509. package/lib/projection/ui/ProjectionReadout.js +47 -0
  510. package/lib/projection/ui/ProjectionReadout.js.map +1 -0
  511. package/lib/projection/ui/ProjectionSharesControls.d.ts +34 -0
  512. package/lib/projection/ui/ProjectionSharesControls.d.ts.map +1 -0
  513. package/lib/projection/ui/ProjectionSharesControls.js +20 -0
  514. package/lib/projection/ui/ProjectionSharesControls.js.map +1 -0
  515. package/lib/projection/ui/ProjectionSharesMarks.d.ts +49 -0
  516. package/lib/projection/ui/ProjectionSharesMarks.d.ts.map +1 -0
  517. package/lib/projection/ui/ProjectionSharesMarks.js +110 -0
  518. package/lib/projection/ui/ProjectionSharesMarks.js.map +1 -0
  519. package/lib/projection/ui/ProjectionSharesMore.d.ts +19 -0
  520. package/lib/projection/ui/ProjectionSharesMore.d.ts.map +1 -0
  521. package/lib/projection/ui/ProjectionSharesMore.js +25 -0
  522. package/lib/projection/ui/ProjectionSharesMore.js.map +1 -0
  523. package/lib/projection/ui/ProjectionSharesTab.d.ts +50 -0
  524. package/lib/projection/ui/ProjectionSharesTab.d.ts.map +1 -0
  525. package/lib/projection/ui/ProjectionSharesTab.js +48 -0
  526. package/lib/projection/ui/ProjectionSharesTab.js.map +1 -0
  527. package/lib/projection/ui/ProjectionSpaceControls.d.ts +51 -0
  528. package/lib/projection/ui/ProjectionSpaceControls.d.ts.map +1 -0
  529. package/lib/projection/ui/ProjectionSpaceControls.js +71 -0
  530. package/lib/projection/ui/ProjectionSpaceControls.js.map +1 -0
  531. package/lib/projection/ui/ProjectionSpaceMore.d.ts +32 -0
  532. package/lib/projection/ui/ProjectionSpaceMore.d.ts.map +1 -0
  533. package/lib/projection/ui/ProjectionSpaceMore.js +57 -0
  534. package/lib/projection/ui/ProjectionSpaceMore.js.map +1 -0
  535. package/lib/projection/ui/ProjectionSpaceTab.d.ts +98 -0
  536. package/lib/projection/ui/ProjectionSpaceTab.d.ts.map +1 -0
  537. package/lib/projection/ui/ProjectionSpaceTab.js +66 -0
  538. package/lib/projection/ui/ProjectionSpaceTab.js.map +1 -0
  539. package/lib/projection/ui/ProjectionSurface.d.ts +33 -0
  540. package/lib/projection/ui/ProjectionSurface.d.ts.map +1 -0
  541. package/lib/projection/ui/ProjectionSurface.js +35 -0
  542. package/lib/projection/ui/ProjectionSurface.js.map +1 -0
  543. package/lib/projection/ui/ProjectionTabStrip.d.ts +74 -0
  544. package/lib/projection/ui/ProjectionTabStrip.d.ts.map +1 -0
  545. package/lib/projection/ui/ProjectionTabStrip.js +64 -0
  546. package/lib/projection/ui/ProjectionTabStrip.js.map +1 -0
  547. package/lib/projection/ui/ProjectionVariablesControls.d.ts +33 -0
  548. package/lib/projection/ui/ProjectionVariablesControls.d.ts.map +1 -0
  549. package/lib/projection/ui/ProjectionVariablesControls.js +26 -0
  550. package/lib/projection/ui/ProjectionVariablesControls.js.map +1 -0
  551. package/lib/projection/ui/ProjectionVariablesMore.d.ts +33 -0
  552. package/lib/projection/ui/ProjectionVariablesMore.d.ts.map +1 -0
  553. package/lib/projection/ui/ProjectionVariablesMore.js +55 -0
  554. package/lib/projection/ui/ProjectionVariablesMore.js.map +1 -0
  555. package/lib/projection/ui/ProjectionVariablesTab.d.ts +78 -0
  556. package/lib/projection/ui/ProjectionVariablesTab.d.ts.map +1 -0
  557. package/lib/projection/ui/ProjectionVariablesTab.js +93 -0
  558. package/lib/projection/ui/ProjectionVariablesTab.js.map +1 -0
  559. package/lib/projection/ui/ProjectionViewer.d.ts +33 -0
  560. package/lib/projection/ui/ProjectionViewer.d.ts.map +1 -0
  561. package/lib/projection/ui/ProjectionViewer.js +91 -0
  562. package/lib/projection/ui/ProjectionViewer.js.map +1 -0
  563. package/lib/projection/ui/index.d.ts +20 -0
  564. package/lib/projection/ui/index.d.ts.map +1 -0
  565. package/lib/projection/ui/index.js +15 -0
  566. package/lib/projection/ui/index.js.map +1 -0
  567. package/lib/projection/ui/projectionBarModel.d.ts +92 -0
  568. package/lib/projection/ui/projectionBarModel.d.ts.map +1 -0
  569. package/lib/projection/ui/projectionBarModel.js +141 -0
  570. package/lib/projection/ui/projectionBarModel.js.map +1 -0
  571. package/lib/projection/ui/projectionBarReadings.d.ts +65 -0
  572. package/lib/projection/ui/projectionBarReadings.d.ts.map +1 -0
  573. package/lib/projection/ui/projectionBarReadings.js +138 -0
  574. package/lib/projection/ui/projectionBarReadings.js.map +1 -0
  575. package/lib/projection/ui/projectionBarSlots.d.ts +59 -0
  576. package/lib/projection/ui/projectionBarSlots.d.ts.map +1 -0
  577. package/lib/projection/ui/projectionBarSlots.js +98 -0
  578. package/lib/projection/ui/projectionBarSlots.js.map +1 -0
  579. package/lib/projection/ui/projectionBarStyles.d.ts +102 -0
  580. package/lib/projection/ui/projectionBarStyles.d.ts.map +1 -0
  581. package/lib/projection/ui/projectionBarStyles.js +154 -0
  582. package/lib/projection/ui/projectionBarStyles.js.map +1 -0
  583. package/lib/projection/ui/projectionCloudChoices.d.ts +18 -0
  584. package/lib/projection/ui/projectionCloudChoices.d.ts.map +1 -0
  585. package/lib/projection/ui/projectionCloudChoices.js +19 -0
  586. package/lib/projection/ui/projectionCloudChoices.js.map +1 -0
  587. package/lib/projection/ui/projectionEllipse.d.ts +50 -0
  588. package/lib/projection/ui/projectionEllipse.d.ts.map +1 -0
  589. package/lib/projection/ui/projectionEllipse.js +101 -0
  590. package/lib/projection/ui/projectionEllipse.js.map +1 -0
  591. package/lib/projection/ui/projectionEllipsoid.d.ts +38 -0
  592. package/lib/projection/ui/projectionEllipsoid.d.ts.map +1 -0
  593. package/lib/projection/ui/projectionEllipsoid.js +71 -0
  594. package/lib/projection/ui/projectionEllipsoid.js.map +1 -0
  595. package/lib/projection/ui/projectionFormat.d.ts +13 -0
  596. package/lib/projection/ui/projectionFormat.d.ts.map +1 -0
  597. package/lib/projection/ui/projectionFormat.js +19 -0
  598. package/lib/projection/ui/projectionFormat.js.map +1 -0
  599. package/lib/projection/ui/projectionMapChoices.d.ts +31 -0
  600. package/lib/projection/ui/projectionMapChoices.d.ts.map +1 -0
  601. package/lib/projection/ui/projectionMapChoices.js +46 -0
  602. package/lib/projection/ui/projectionMapChoices.js.map +1 -0
  603. package/lib/projection/ui/projectionMapChrome.d.ts +81 -0
  604. package/lib/projection/ui/projectionMapChrome.d.ts.map +1 -0
  605. package/lib/projection/ui/projectionMapChrome.js +139 -0
  606. package/lib/projection/ui/projectionMapChrome.js.map +1 -0
  607. package/lib/projection/ui/projectionMapModel.d.ts +114 -0
  608. package/lib/projection/ui/projectionMapModel.d.ts.map +1 -0
  609. package/lib/projection/ui/projectionMapModel.js +177 -0
  610. package/lib/projection/ui/projectionMapModel.js.map +1 -0
  611. package/lib/projection/ui/projectionMapView.d.ts +72 -0
  612. package/lib/projection/ui/projectionMapView.d.ts.map +1 -0
  613. package/lib/projection/ui/projectionMapView.js +116 -0
  614. package/lib/projection/ui/projectionMapView.js.map +1 -0
  615. package/lib/projection/ui/projectionPairsCeiling.d.ts +29 -0
  616. package/lib/projection/ui/projectionPairsCeiling.d.ts.map +1 -0
  617. package/lib/projection/ui/projectionPairsCeiling.js +29 -0
  618. package/lib/projection/ui/projectionPairsCeiling.js.map +1 -0
  619. package/lib/projection/ui/projectionSelection.d.ts +51 -0
  620. package/lib/projection/ui/projectionSelection.d.ts.map +1 -0
  621. package/lib/projection/ui/projectionSelection.js +66 -0
  622. package/lib/projection/ui/projectionSelection.js.map +1 -0
  623. package/lib/projection/ui/projectionSpaceModel.d.ts +14 -0
  624. package/lib/projection/ui/projectionSpaceModel.d.ts.map +1 -0
  625. package/lib/projection/ui/projectionSpaceModel.js +14 -0
  626. package/lib/projection/ui/projectionSpaceModel.js.map +1 -0
  627. package/lib/projection/ui/projectionTabInfo.d.ts +59 -0
  628. package/lib/projection/ui/projectionTabInfo.d.ts.map +1 -0
  629. package/lib/projection/ui/projectionTabInfo.js +108 -0
  630. package/lib/projection/ui/projectionTabInfo.js.map +1 -0
  631. package/lib/projection/ui/projectionTabModels.d.ts +49 -0
  632. package/lib/projection/ui/projectionTabModels.d.ts.map +1 -0
  633. package/lib/projection/ui/projectionTabModels.js +59 -0
  634. package/lib/projection/ui/projectionTabModels.js.map +1 -0
  635. package/lib/projection/ui/projectionTabStyles.d.ts +131 -0
  636. package/lib/projection/ui/projectionTabStyles.d.ts.map +1 -0
  637. package/lib/projection/ui/projectionTabStyles.js +134 -0
  638. package/lib/projection/ui/projectionTabStyles.js.map +1 -0
  639. package/lib/projection/ui/projectionVariablesModel.d.ts +104 -0
  640. package/lib/projection/ui/projectionVariablesModel.d.ts.map +1 -0
  641. package/lib/projection/ui/projectionVariablesModel.js +165 -0
  642. package/lib/projection/ui/projectionVariablesModel.js.map +1 -0
  643. package/lib/projection/ui/projectionVariablesWords.d.ts +50 -0
  644. package/lib/projection/ui/projectionVariablesWords.d.ts.map +1 -0
  645. package/lib/projection/ui/projectionVariablesWords.js +91 -0
  646. package/lib/projection/ui/projectionVariablesWords.js.map +1 -0
  647. package/lib/projection/ui/projectionViewChoices.d.ts +31 -0
  648. package/lib/projection/ui/projectionViewChoices.d.ts.map +1 -0
  649. package/lib/projection/ui/projectionViewChoices.js +53 -0
  650. package/lib/projection/ui/projectionViewChoices.js.map +1 -0
  651. package/lib/projection/ui/projectionViewerProps.d.ts +187 -0
  652. package/lib/projection/ui/projectionViewerProps.d.ts.map +1 -0
  653. package/lib/projection/ui/projectionViewerProps.js +9 -0
  654. package/lib/projection/ui/projectionViewerProps.js.map +1 -0
  655. package/lib/projection/ui/useProjectionState.d.ts +63 -0
  656. package/lib/projection/ui/useProjectionState.d.ts.map +1 -0
  657. package/lib/projection/ui/useProjectionState.js +107 -0
  658. package/lib/projection/ui/useProjectionState.js.map +1 -0
  659. package/lib/scatter/core/confidenceEllipse.d.ts +117 -0
  660. package/lib/scatter/core/confidenceEllipse.d.ts.map +1 -0
  661. package/lib/scatter/core/confidenceEllipse.js +132 -0
  662. package/lib/scatter/core/confidenceEllipse.js.map +1 -0
  663. package/lib/scatter/core/ellipseCoverage.d.ts +33 -0
  664. package/lib/scatter/core/ellipseCoverage.d.ts.map +1 -0
  665. package/lib/scatter/core/ellipseCoverage.js +46 -0
  666. package/lib/scatter/core/ellipseCoverage.js.map +1 -0
  667. package/lib/scatter/core/ellipseProjection.d.ts +53 -0
  668. package/lib/scatter/core/ellipseProjection.d.ts.map +1 -0
  669. package/lib/scatter/core/ellipseProjection.js +94 -0
  670. package/lib/scatter/core/ellipseProjection.js.map +1 -0
  671. package/lib/scatter/core/index.d.ts +24 -0
  672. package/lib/scatter/core/index.d.ts.map +1 -0
  673. package/lib/scatter/core/index.js +19 -0
  674. package/lib/scatter/core/index.js.map +1 -0
  675. package/lib/scatter/core/lassoPath.d.ts +60 -0
  676. package/lib/scatter/core/lassoPath.d.ts.map +1 -0
  677. package/lib/scatter/core/lassoPath.js +101 -0
  678. package/lib/scatter/core/lassoPath.js.map +1 -0
  679. package/lib/scatter/core/polygon.d.ts +58 -0
  680. package/lib/scatter/core/polygon.d.ts.map +1 -0
  681. package/lib/scatter/core/polygon.js +140 -0
  682. package/lib/scatter/core/polygon.js.map +1 -0
  683. package/lib/scatter/core/scatterSelection.d.ts +44 -0
  684. package/lib/scatter/core/scatterSelection.d.ts.map +1 -0
  685. package/lib/scatter/core/scatterSelection.js +81 -0
  686. package/lib/scatter/core/scatterSelection.js.map +1 -0
  687. package/lib/scatter/core/screenPoints.d.ts +58 -0
  688. package/lib/scatter/core/screenPoints.d.ts.map +1 -0
  689. package/lib/scatter/core/screenPoints.js +78 -0
  690. package/lib/scatter/core/screenPoints.js.map +1 -0
  691. package/lib/scatter/ui/ScatterEllipseLayer.d.ts +69 -0
  692. package/lib/scatter/ui/ScatterEllipseLayer.d.ts.map +1 -0
  693. package/lib/scatter/ui/ScatterEllipseLayer.js +77 -0
  694. package/lib/scatter/ui/ScatterEllipseLayer.js.map +1 -0
  695. package/lib/scatter/ui/ScatterLabelLayer.d.ts +40 -0
  696. package/lib/scatter/ui/ScatterLabelLayer.d.ts.map +1 -0
  697. package/lib/scatter/ui/ScatterLabelLayer.js +77 -0
  698. package/lib/scatter/ui/ScatterLabelLayer.js.map +1 -0
  699. package/lib/scatter/ui/ScatterMarkLayer.d.ts +68 -0
  700. package/lib/scatter/ui/ScatterMarkLayer.d.ts.map +1 -0
  701. package/lib/scatter/ui/ScatterMarkLayer.js +134 -0
  702. package/lib/scatter/ui/ScatterMarkLayer.js.map +1 -0
  703. package/lib/scatter/ui/ScatterMatrix.d.ts +19 -0
  704. package/lib/scatter/ui/ScatterMatrix.d.ts.map +1 -0
  705. package/lib/scatter/ui/ScatterMatrix.js +125 -0
  706. package/lib/scatter/ui/ScatterMatrix.js.map +1 -0
  707. package/lib/scatter/ui/ScatterMatrixCell.d.ts +24 -0
  708. package/lib/scatter/ui/ScatterMatrixCell.d.ts.map +1 -0
  709. package/lib/scatter/ui/ScatterMatrixCell.js +90 -0
  710. package/lib/scatter/ui/ScatterMatrixCell.js.map +1 -0
  711. package/lib/scatter/ui/ScatterMatrixDiagonal.d.ts +78 -0
  712. package/lib/scatter/ui/ScatterMatrixDiagonal.d.ts.map +1 -0
  713. package/lib/scatter/ui/ScatterMatrixDiagonal.js +83 -0
  714. package/lib/scatter/ui/ScatterMatrixDiagonal.js.map +1 -0
  715. package/lib/scatter/ui/ScatterPlot.d.ts +17 -0
  716. package/lib/scatter/ui/ScatterPlot.d.ts.map +1 -0
  717. package/lib/scatter/ui/ScatterPlot.js +107 -0
  718. package/lib/scatter/ui/ScatterPlot.js.map +1 -0
  719. package/lib/scatter/ui/ScatterPointLayer.d.ts +67 -0
  720. package/lib/scatter/ui/ScatterPointLayer.d.ts.map +1 -0
  721. package/lib/scatter/ui/ScatterPointLayer.js +87 -0
  722. package/lib/scatter/ui/ScatterPointLayer.js.map +1 -0
  723. package/lib/scatter/ui/index.d.ts +53 -0
  724. package/lib/scatter/ui/index.d.ts.map +1 -0
  725. package/lib/scatter/ui/index.js +34 -0
  726. package/lib/scatter/ui/index.js.map +1 -0
  727. package/lib/scatter/ui/lassoGesture.d.ts +197 -0
  728. package/lib/scatter/ui/lassoGesture.d.ts.map +1 -0
  729. package/lib/scatter/ui/lassoGesture.js +103 -0
  730. package/lib/scatter/ui/lassoGesture.js.map +1 -0
  731. package/lib/scatter/ui/scatterGroupSpread.d.ts +81 -0
  732. package/lib/scatter/ui/scatterGroupSpread.d.ts.map +1 -0
  733. package/lib/scatter/ui/scatterGroupSpread.js +147 -0
  734. package/lib/scatter/ui/scatterGroupSpread.js.map +1 -0
  735. package/lib/scatter/ui/scatterLabelBoxes.d.ts +94 -0
  736. package/lib/scatter/ui/scatterLabelBoxes.d.ts.map +1 -0
  737. package/lib/scatter/ui/scatterLabelBoxes.js +140 -0
  738. package/lib/scatter/ui/scatterLabelBoxes.js.map +1 -0
  739. package/lib/scatter/ui/scatterLabelPlacement.d.ts +96 -0
  740. package/lib/scatter/ui/scatterLabelPlacement.d.ts.map +1 -0
  741. package/lib/scatter/ui/scatterLabelPlacement.js +210 -0
  742. package/lib/scatter/ui/scatterLabelPlacement.js.map +1 -0
  743. package/lib/scatter/ui/scatterLabels.d.ts +81 -0
  744. package/lib/scatter/ui/scatterLabels.d.ts.map +1 -0
  745. package/lib/scatter/ui/scatterLabels.js +101 -0
  746. package/lib/scatter/ui/scatterLabels.js.map +1 -0
  747. package/lib/scatter/ui/scatterMarkGlyph.d.ts +37 -0
  748. package/lib/scatter/ui/scatterMarkGlyph.d.ts.map +1 -0
  749. package/lib/scatter/ui/scatterMarkGlyph.js +33 -0
  750. package/lib/scatter/ui/scatterMarkGlyph.js.map +1 -0
  751. package/lib/scatter/ui/scatterMatrixDots.d.ts +24 -0
  752. package/lib/scatter/ui/scatterMatrixDots.d.ts.map +1 -0
  753. package/lib/scatter/ui/scatterMatrixDots.js +84 -0
  754. package/lib/scatter/ui/scatterMatrixDots.js.map +1 -0
  755. package/lib/scatter/ui/scatterMatrixLayout.d.ts +93 -0
  756. package/lib/scatter/ui/scatterMatrixLayout.d.ts.map +1 -0
  757. package/lib/scatter/ui/scatterMatrixLayout.js +117 -0
  758. package/lib/scatter/ui/scatterMatrixLayout.js.map +1 -0
  759. package/lib/scatter/ui/scatterMatrixOutlines.d.ts +27 -0
  760. package/lib/scatter/ui/scatterMatrixOutlines.d.ts.map +1 -0
  761. package/lib/scatter/ui/scatterMatrixOutlines.js +34 -0
  762. package/lib/scatter/ui/scatterMatrixOutlines.js.map +1 -0
  763. package/lib/scatter/ui/scatterMatrixProps.d.ts +99 -0
  764. package/lib/scatter/ui/scatterMatrixProps.d.ts.map +1 -0
  765. package/lib/scatter/ui/scatterMatrixProps.js +10 -0
  766. package/lib/scatter/ui/scatterMatrixProps.js.map +1 -0
  767. package/lib/scatter/ui/scatterOutlineShape.d.ts +63 -0
  768. package/lib/scatter/ui/scatterOutlineShape.d.ts.map +1 -0
  769. package/lib/scatter/ui/scatterOutlineShape.js +82 -0
  770. package/lib/scatter/ui/scatterOutlineShape.js.map +1 -0
  771. package/lib/scatter/ui/scatterPlotModel.d.ts +107 -0
  772. package/lib/scatter/ui/scatterPlotModel.d.ts.map +1 -0
  773. package/lib/scatter/ui/scatterPlotModel.js +139 -0
  774. package/lib/scatter/ui/scatterPlotModel.js.map +1 -0
  775. package/lib/scatter/ui/scatterPlotProps.d.ts +269 -0
  776. package/lib/scatter/ui/scatterPlotProps.d.ts.map +1 -0
  777. package/lib/scatter/ui/scatterPlotProps.js +10 -0
  778. package/lib/scatter/ui/scatterPlotProps.js.map +1 -0
  779. package/lib/scatter/ui/useLassoGesture.d.ts +18 -0
  780. package/lib/scatter/ui/useLassoGesture.d.ts.map +1 -0
  781. package/lib/scatter/ui/useLassoGesture.js +140 -0
  782. package/lib/scatter/ui/useLassoGesture.js.map +1 -0
  783. package/lib/scatter/ui/usePointHover.d.ts +88 -0
  784. package/lib/scatter/ui/usePointHover.d.ts.map +1 -0
  785. package/lib/scatter/ui/usePointHover.js +88 -0
  786. package/lib/scatter/ui/usePointHover.js.map +1 -0
  787. package/lib/scatter/ui/useScatterFrame.d.ts +80 -0
  788. package/lib/scatter/ui/useScatterFrame.d.ts.map +1 -0
  789. package/lib/scatter/ui/useScatterFrame.js +101 -0
  790. package/lib/scatter/ui/useScatterFrame.js.map +1 -0
  791. package/lib/scatter/ui/useScatterInteraction.d.ts +112 -0
  792. package/lib/scatter/ui/useScatterInteraction.d.ts.map +1 -0
  793. package/lib/scatter/ui/useScatterInteraction.js +101 -0
  794. package/lib/scatter/ui/useScatterInteraction.js.map +1 -0
  795. package/lib/scatter/ui/useScatterKeyboard.d.ts +60 -0
  796. package/lib/scatter/ui/useScatterKeyboard.d.ts.map +1 -0
  797. package/lib/scatter/ui/useScatterKeyboard.js +56 -0
  798. package/lib/scatter/ui/useScatterKeyboard.js.map +1 -0
  799. package/lib/scatter/ui/useScatterSelection.d.ts +78 -0
  800. package/lib/scatter/ui/useScatterSelection.d.ts.map +1 -0
  801. package/lib/scatter/ui/useScatterSelection.js +72 -0
  802. package/lib/scatter/ui/useScatterSelection.js.map +1 -0
  803. package/lib/scatter3d/core/cloudGesture.d.ts +17 -0
  804. package/lib/scatter3d/core/cloudGesture.d.ts.map +1 -0
  805. package/lib/scatter3d/core/cloudGesture.js +2 -0
  806. package/lib/scatter3d/core/cloudGesture.js.map +1 -0
  807. package/lib/scatter3d/core/confidenceEllipsoid.d.ts +63 -0
  808. package/lib/scatter3d/core/confidenceEllipsoid.d.ts.map +1 -0
  809. package/lib/scatter3d/core/confidenceEllipsoid.js +128 -0
  810. package/lib/scatter3d/core/confidenceEllipsoid.js.map +1 -0
  811. package/lib/scatter3d/core/cubeFrame.d.ts +40 -0
  812. package/lib/scatter3d/core/cubeFrame.d.ts.map +1 -0
  813. package/lib/scatter3d/core/cubeFrame.js +58 -0
  814. package/lib/scatter3d/core/cubeFrame.js.map +1 -0
  815. package/lib/scatter3d/core/cubePoints.d.ts +35 -0
  816. package/lib/scatter3d/core/cubePoints.d.ts.map +1 -0
  817. package/lib/scatter3d/core/cubePoints.js +50 -0
  818. package/lib/scatter3d/core/cubePoints.js.map +1 -0
  819. package/lib/scatter3d/core/ellipsoidCoverage.d.ts +32 -0
  820. package/lib/scatter3d/core/ellipsoidCoverage.d.ts.map +1 -0
  821. package/lib/scatter3d/core/ellipsoidCoverage.js +83 -0
  822. package/lib/scatter3d/core/ellipsoidCoverage.js.map +1 -0
  823. package/lib/scatter3d/core/ellipsoidSilhouette.d.ts +42 -0
  824. package/lib/scatter3d/core/ellipsoidSilhouette.d.ts.map +1 -0
  825. package/lib/scatter3d/core/ellipsoidSilhouette.js +52 -0
  826. package/lib/scatter3d/core/ellipsoidSilhouette.js.map +1 -0
  827. package/lib/scatter3d/core/index.d.ts +29 -0
  828. package/lib/scatter3d/core/index.d.ts.map +1 -0
  829. package/lib/scatter3d/core/index.js +22 -0
  830. package/lib/scatter3d/core/index.js.map +1 -0
  831. package/lib/scatter3d/core/orbitCamera.d.ts +113 -0
  832. package/lib/scatter3d/core/orbitCamera.d.ts.map +1 -0
  833. package/lib/scatter3d/core/orbitCamera.js +104 -0
  834. package/lib/scatter3d/core/orbitCamera.js.map +1 -0
  835. package/lib/scatter3d/core/symmetricEigen.d.ts +47 -0
  836. package/lib/scatter3d/core/symmetricEigen.d.ts.map +1 -0
  837. package/lib/scatter3d/core/symmetricEigen.js +219 -0
  838. package/lib/scatter3d/core/symmetricEigen.js.map +1 -0
  839. package/lib/scatter3d/ui/CloudFrameLayer.d.ts +33 -0
  840. package/lib/scatter3d/ui/CloudFrameLayer.d.ts.map +1 -0
  841. package/lib/scatter3d/ui/CloudFrameLayer.js +37 -0
  842. package/lib/scatter3d/ui/CloudFrameLayer.js.map +1 -0
  843. package/lib/scatter3d/ui/CloudPointLayer.d.ts +62 -0
  844. package/lib/scatter3d/ui/CloudPointLayer.d.ts.map +1 -0
  845. package/lib/scatter3d/ui/CloudPointLayer.js +67 -0
  846. package/lib/scatter3d/ui/CloudPointLayer.js.map +1 -0
  847. package/lib/scatter3d/ui/CloudShellLayer.d.ts +52 -0
  848. package/lib/scatter3d/ui/CloudShellLayer.d.ts.map +1 -0
  849. package/lib/scatter3d/ui/CloudShellLayer.js +40 -0
  850. package/lib/scatter3d/ui/CloudShellLayer.js.map +1 -0
  851. package/lib/scatter3d/ui/ScatterCloud.d.ts +24 -0
  852. package/lib/scatter3d/ui/ScatterCloud.d.ts.map +1 -0
  853. package/lib/scatter3d/ui/ScatterCloud.js +189 -0
  854. package/lib/scatter3d/ui/ScatterCloud.js.map +1 -0
  855. package/lib/scatter3d/ui/cloudGeometry.d.ts +108 -0
  856. package/lib/scatter3d/ui/cloudGeometry.d.ts.map +1 -0
  857. package/lib/scatter3d/ui/cloudGeometry.js +122 -0
  858. package/lib/scatter3d/ui/cloudGeometry.js.map +1 -0
  859. package/lib/scatter3d/ui/cloudShellStyles.d.ts +36 -0
  860. package/lib/scatter3d/ui/cloudShellStyles.d.ts.map +1 -0
  861. package/lib/scatter3d/ui/cloudShellStyles.js +62 -0
  862. package/lib/scatter3d/ui/cloudShellStyles.js.map +1 -0
  863. package/lib/scatter3d/ui/cloudZoom.d.ts +21 -0
  864. package/lib/scatter3d/ui/cloudZoom.d.ts.map +1 -0
  865. package/lib/scatter3d/ui/cloudZoom.js +22 -0
  866. package/lib/scatter3d/ui/cloudZoom.js.map +1 -0
  867. package/lib/scatter3d/ui/index.d.ts +29 -0
  868. package/lib/scatter3d/ui/index.d.ts.map +1 -0
  869. package/lib/scatter3d/ui/index.js +21 -0
  870. package/lib/scatter3d/ui/index.js.map +1 -0
  871. package/lib/scatter3d/ui/scatterCloudModel.d.ts +60 -0
  872. package/lib/scatter3d/ui/scatterCloudModel.d.ts.map +1 -0
  873. package/lib/scatter3d/ui/scatterCloudModel.js +66 -0
  874. package/lib/scatter3d/ui/scatterCloudModel.js.map +1 -0
  875. package/lib/scatter3d/ui/scatterCloudProps.d.ts +185 -0
  876. package/lib/scatter3d/ui/scatterCloudProps.d.ts.map +1 -0
  877. package/lib/scatter3d/ui/scatterCloudProps.js +9 -0
  878. package/lib/scatter3d/ui/scatterCloudProps.js.map +1 -0
  879. package/lib/scatter3d/ui/useOrbitDrag.d.ts +60 -0
  880. package/lib/scatter3d/ui/useOrbitDrag.d.ts.map +1 -0
  881. package/lib/scatter3d/ui/useOrbitDrag.js +129 -0
  882. package/lib/scatter3d/ui/useOrbitDrag.js.map +1 -0
  883. package/lib/share/core/query.d.ts +10 -4
  884. package/lib/share/core/query.d.ts.map +1 -1
  885. package/lib/share/core/query.js +11 -7
  886. package/lib/share/core/query.js.map +1 -1
  887. package/lib/spectra/core/axisEntries.d.ts +50 -0
  888. package/lib/spectra/core/axisEntries.d.ts.map +1 -0
  889. package/lib/spectra/core/axisEntries.js +78 -0
  890. package/lib/spectra/core/axisEntries.js.map +1 -0
  891. package/lib/spectra/core/chainProblems.d.ts +14 -0
  892. package/lib/spectra/core/chainProblems.d.ts.map +1 -0
  893. package/lib/spectra/core/chainProblems.js +100 -0
  894. package/lib/spectra/core/chainProblems.js.map +1 -0
  895. package/lib/spectra/core/filterCatalog.d.ts +57 -0
  896. package/lib/spectra/core/filterCatalog.d.ts.map +1 -0
  897. package/lib/spectra/core/filterCatalog.js +81 -0
  898. package/lib/spectra/core/filterCatalog.js.map +1 -0
  899. package/lib/spectra/core/filterChain.d.ts +69 -0
  900. package/lib/spectra/core/filterChain.d.ts.map +1 -0
  901. package/lib/spectra/core/filterChain.js +163 -0
  902. package/lib/spectra/core/filterChain.js.map +1 -0
  903. package/lib/spectra/core/filterEntries.d.ts +136 -0
  904. package/lib/spectra/core/filterEntries.d.ts.map +1 -0
  905. package/lib/spectra/core/filterEntries.js +139 -0
  906. package/lib/spectra/core/filterEntries.js.map +1 -0
  907. package/lib/spectra/core/filterFields.d.ts +94 -0
  908. package/lib/spectra/core/filterFields.d.ts.map +1 -0
  909. package/lib/spectra/core/filterFields.js +82 -0
  910. package/lib/spectra/core/filterFields.js.map +1 -0
  911. package/lib/spectra/core/index.d.ts +14 -0
  912. package/lib/spectra/core/index.d.ts.map +1 -0
  913. package/lib/spectra/core/index.js +9 -0
  914. package/lib/spectra/core/index.js.map +1 -0
  915. package/lib/spectra/core/principalComponents.d.ts +70 -0
  916. package/lib/spectra/core/principalComponents.d.ts.map +1 -0
  917. package/lib/spectra/core/principalComponents.js +90 -0
  918. package/lib/spectra/core/principalComponents.js.map +1 -0
  919. package/lib/spectra/core/problems.d.ts +57 -0
  920. package/lib/spectra/core/problems.d.ts.map +1 -0
  921. package/lib/spectra/core/problems.js +121 -0
  922. package/lib/spectra/core/problems.js.map +1 -0
  923. package/lib/spectra/core/settings.d.ts +67 -0
  924. package/lib/spectra/core/settings.d.ts.map +1 -0
  925. package/lib/spectra/core/settings.js +35 -0
  926. package/lib/spectra/core/settings.js.map +1 -0
  927. package/lib/spectra/core/settingsProblems.d.ts +18 -0
  928. package/lib/spectra/core/settingsProblems.d.ts.map +1 -0
  929. package/lib/spectra/core/settingsProblems.js +148 -0
  930. package/lib/spectra/core/settingsProblems.js.map +1 -0
  931. package/lib/spectra/core/stepProblems.d.ts +13 -0
  932. package/lib/spectra/core/stepProblems.d.ts.map +1 -0
  933. package/lib/spectra/core/stepProblems.js +133 -0
  934. package/lib/spectra/core/stepProblems.js.map +1 -0
  935. package/lib/spectra/ui/CalculationRows.d.ts +21 -0
  936. package/lib/spectra/ui/CalculationRows.d.ts.map +1 -0
  937. package/lib/spectra/ui/CalculationRows.js +77 -0
  938. package/lib/spectra/ui/CalculationRows.js.map +1 -0
  939. package/lib/spectra/ui/FilterChainEditor.d.ts +34 -0
  940. package/lib/spectra/ui/FilterChainEditor.d.ts.map +1 -0
  941. package/lib/spectra/ui/FilterChainEditor.js +111 -0
  942. package/lib/spectra/ui/FilterChainEditor.js.map +1 -0
  943. package/lib/spectra/ui/FilterChoiceControl.d.ts +23 -0
  944. package/lib/spectra/ui/FilterChoiceControl.d.ts.map +1 -0
  945. package/lib/spectra/ui/FilterChoiceControl.js +65 -0
  946. package/lib/spectra/ui/FilterChoiceControl.js.map +1 -0
  947. package/lib/spectra/ui/FilterFieldControl.d.ts +25 -0
  948. package/lib/spectra/ui/FilterFieldControl.d.ts.map +1 -0
  949. package/lib/spectra/ui/FilterFieldControl.js +68 -0
  950. package/lib/spectra/ui/FilterFieldControl.js.map +1 -0
  951. package/lib/spectra/ui/FilterRow.d.ts +33 -0
  952. package/lib/spectra/ui/FilterRow.d.ts.map +1 -0
  953. package/lib/spectra/ui/FilterRow.js +76 -0
  954. package/lib/spectra/ui/FilterRow.js.map +1 -0
  955. package/lib/spectra/ui/MatrixFilterRows.d.ts +22 -0
  956. package/lib/spectra/ui/MatrixFilterRows.d.ts.map +1 -0
  957. package/lib/spectra/ui/MatrixFilterRows.js +92 -0
  958. package/lib/spectra/ui/MatrixFilterRows.js.map +1 -0
  959. package/lib/spectra/ui/NormalizationEditor.d.ts +24 -0
  960. package/lib/spectra/ui/NormalizationEditor.d.ts.map +1 -0
  961. package/lib/spectra/ui/NormalizationEditor.js +108 -0
  962. package/lib/spectra/ui/NormalizationEditor.js.map +1 -0
  963. package/lib/spectra/ui/NumberField.d.ts +41 -0
  964. package/lib/spectra/ui/NumberField.d.ts.map +1 -0
  965. package/lib/spectra/ui/NumberField.js +81 -0
  966. package/lib/spectra/ui/NumberField.js.map +1 -0
  967. package/lib/spectra/ui/PostProcessingEditor.d.ts +29 -0
  968. package/lib/spectra/ui/PostProcessingEditor.d.ts.map +1 -0
  969. package/lib/spectra/ui/PostProcessingEditor.js +53 -0
  970. package/lib/spectra/ui/PostProcessingEditor.js.map +1 -0
  971. package/lib/spectra/ui/PrincipalComponentSelect.d.ts +40 -0
  972. package/lib/spectra/ui/PrincipalComponentSelect.d.ts.map +1 -0
  973. package/lib/spectra/ui/PrincipalComponentSelect.js +97 -0
  974. package/lib/spectra/ui/PrincipalComponentSelect.js.map +1 -0
  975. package/lib/spectra/ui/ProblemList.d.ts +24 -0
  976. package/lib/spectra/ui/ProblemList.d.ts.map +1 -0
  977. package/lib/spectra/ui/ProblemList.js +40 -0
  978. package/lib/spectra/ui/ProblemList.js.map +1 -0
  979. package/lib/spectra/ui/RangeRows.d.ts +23 -0
  980. package/lib/spectra/ui/RangeRows.d.ts.map +1 -0
  981. package/lib/spectra/ui/RangeRows.js +76 -0
  982. package/lib/spectra/ui/RangeRows.js.map +1 -0
  983. package/lib/spectra/ui/ScaleFields.d.ts +28 -0
  984. package/lib/spectra/ui/ScaleFields.d.ts.map +1 -0
  985. package/lib/spectra/ui/ScaleFields.js +67 -0
  986. package/lib/spectra/ui/ScaleFields.js.map +1 -0
  987. package/lib/spectra/ui/SettingsPart.d.ts +25 -0
  988. package/lib/spectra/ui/SettingsPart.d.ts.map +1 -0
  989. package/lib/spectra/ui/SettingsPart.js +35 -0
  990. package/lib/spectra/ui/SettingsPart.js.map +1 -0
  991. package/lib/spectra/ui/SpectraSettingsEditor.d.ts +62 -0
  992. package/lib/spectra/ui/SpectraSettingsEditor.d.ts.map +1 -0
  993. package/lib/spectra/ui/SpectraSettingsEditor.js +39 -0
  994. package/lib/spectra/ui/SpectraSettingsEditor.js.map +1 -0
  995. package/lib/spectra/ui/SpectrumSelection.d.ts +30 -0
  996. package/lib/spectra/ui/SpectrumSelection.d.ts.map +1 -0
  997. package/lib/spectra/ui/SpectrumSelection.js +116 -0
  998. package/lib/spectra/ui/SpectrumSelection.js.map +1 -0
  999. package/lib/spectra/ui/ZoneRows.d.ts +41 -0
  1000. package/lib/spectra/ui/ZoneRows.d.ts.map +1 -0
  1001. package/lib/spectra/ui/ZoneRows.js +70 -0
  1002. package/lib/spectra/ui/ZoneRows.js.map +1 -0
  1003. package/lib/spectra/ui/index.d.ts +7 -0
  1004. package/lib/spectra/ui/index.d.ts.map +1 -0
  1005. package/lib/spectra/ui/index.js +4 -0
  1006. package/lib/spectra/ui/index.js.map +1 -0
  1007. package/lib/spectra/ui/matrixSteps.d.ts +61 -0
  1008. package/lib/spectra/ui/matrixSteps.d.ts.map +1 -0
  1009. package/lib/spectra/ui/matrixSteps.js +92 -0
  1010. package/lib/spectra/ui/matrixSteps.js.map +1 -0
  1011. package/lib/spectra/ui/problemsAbout.d.ts +14 -0
  1012. package/lib/spectra/ui/problemsAbout.d.ts.map +1 -0
  1013. package/lib/spectra/ui/problemsAbout.js +15 -0
  1014. package/lib/spectra/ui/problemsAbout.js.map +1 -0
  1015. package/lib/spectra/ui/rowKeys.d.ts +27 -0
  1016. package/lib/spectra/ui/rowKeys.d.ts.map +1 -0
  1017. package/lib/spectra/ui/rowKeys.js +45 -0
  1018. package/lib/spectra/ui/rowKeys.js.map +1 -0
  1019. package/lib/spectra/ui/scaleOptions.d.ts +50 -0
  1020. package/lib/spectra/ui/scaleOptions.d.ts.map +1 -0
  1021. package/lib/spectra/ui/scaleOptions.js +103 -0
  1022. package/lib/spectra/ui/scaleOptions.js.map +1 -0
  1023. package/lib/ui.d.ts +7 -0
  1024. package/lib/ui.d.ts.map +1 -1
  1025. package/lib/ui.js +7 -0
  1026. package/lib/ui.js.map +1 -1
  1027. package/package.json +17 -1
  1028. package/src/chart/core/chartAxisScale.ts +249 -0
  1029. package/src/chart/core/chartBand.ts +82 -0
  1030. package/src/chart/core/chartBins.ts +96 -0
  1031. package/src/chart/core/chartExtent.ts +203 -0
  1032. package/src/chart/core/chartLabels.ts +68 -0
  1033. package/src/chart/core/chartPalette.ts +71 -0
  1034. package/src/chart/core/chartScale.ts +72 -0
  1035. package/src/chart/core/chartViewport.ts +211 -0
  1036. package/src/chart/core/index.ts +58 -0
  1037. package/src/chart/core/matrix.ts +100 -0
  1038. package/src/chart/ui/ChartAxis.tsx +232 -0
  1039. package/src/chart/ui/ChartFrame.tsx +246 -0
  1040. package/src/chart/ui/ChartSeriesMarks.tsx +98 -0
  1041. package/src/chart/ui/ChartTrackingLayer.tsx +192 -0
  1042. package/src/chart/ui/TrackedLineChart.tsx +267 -0
  1043. package/src/chart/ui/TrackedStickChart.tsx +197 -0
  1044. package/src/chart/ui/chartStyles.ts +194 -0
  1045. package/src/chart/ui/index.ts +34 -0
  1046. package/src/chart/ui/stickChartModel.ts +201 -0
  1047. package/src/chart/ui/useWheelZoom.ts +177 -0
  1048. package/src/chrome/ui/NavLink.tsx +5 -3
  1049. package/src/chrome/ui/SiteFooter.tsx +16 -1
  1050. package/src/chrome/ui/SiteHeader.tsx +19 -1
  1051. package/src/chrome/ui/navItem.ts +12 -0
  1052. package/src/color/core/gradient.ts +29 -0
  1053. package/src/color/core/hsv.ts +112 -0
  1054. package/src/color/core/index.ts +27 -1
  1055. package/src/color/core/interpolate.ts +179 -0
  1056. package/src/color/core/scale.ts +17 -49
  1057. package/src/color/core/scaleData.ts +128 -0
  1058. package/src/color/core/scaleText.ts +134 -0
  1059. package/src/color/core/scales.ts +148 -0
  1060. package/src/color/ui/ColorScaleBar.tsx +73 -0
  1061. package/src/color/ui/ColorScaleEditor.tsx +243 -0
  1062. package/src/color/ui/ColorScaleSelect.tsx +252 -0
  1063. package/src/color/ui/index.ts +6 -0
  1064. package/src/core.ts +6 -0
  1065. package/src/credits/core/credits.ts +20 -0
  1066. package/src/download/core/cssTokens.ts +90 -0
  1067. package/src/download/core/downloadFigure.ts +66 -0
  1068. package/src/download/core/figureLegend.ts +167 -0
  1069. package/src/download/core/figurePng.ts +87 -0
  1070. package/src/download/core/figureScale.ts +83 -0
  1071. package/src/download/core/figureSvg.ts +210 -0
  1072. package/src/download/core/figureSvgDocument.ts +139 -0
  1073. package/src/download/core/figureTarget.ts +151 -0
  1074. package/src/download/core/index.ts +36 -0
  1075. package/src/download/ui/FigureDownload.tsx +158 -0
  1076. package/src/download/ui/FigureDownloadPanel.tsx +165 -0
  1077. package/src/download/ui/index.ts +13 -0
  1078. package/src/ecosystem/core/sites.ts +26 -1
  1079. package/src/ecosystem/ui/glyphs.tsx +42 -0
  1080. package/src/overlay/core/emptiestCorner.ts +122 -0
  1081. package/src/overlay/core/index.ts +34 -0
  1082. package/src/overlay/core/overlayCollapse.ts +20 -0
  1083. package/src/overlay/core/overlayMarks.ts +43 -0
  1084. package/src/overlay/core/overlayMetrics.ts +112 -0
  1085. package/src/overlay/core/overlayPlacement.ts +80 -0
  1086. package/src/overlay/core/overlayTierRoom.ts +199 -0
  1087. package/src/overlay/core/overlayTiers.ts +130 -0
  1088. package/src/overlay/core/placeOverlayCard.ts +93 -0
  1089. package/src/overlay/ui/OverlayAction.tsx +66 -0
  1090. package/src/overlay/ui/OverlayBar.tsx +188 -0
  1091. package/src/overlay/ui/OverlayBarButton.tsx +83 -0
  1092. package/src/overlay/ui/OverlayBarCard.tsx +78 -0
  1093. package/src/overlay/ui/OverlayBarStrip.tsx +62 -0
  1094. package/src/overlay/ui/OverlayCaption.tsx +124 -0
  1095. package/src/overlay/ui/OverlayChip.tsx +181 -0
  1096. package/src/overlay/ui/OverlayDivider.tsx +24 -0
  1097. package/src/overlay/ui/OverlayGroup.tsx +157 -0
  1098. package/src/overlay/ui/OverlayIconButton.tsx +131 -0
  1099. package/src/overlay/ui/OverlayInfo.tsx +92 -0
  1100. package/src/overlay/ui/OverlayLayer.tsx +118 -0
  1101. package/src/overlay/ui/OverlayLegend.tsx +228 -0
  1102. package/src/overlay/ui/OverlayLegendMark.tsx +95 -0
  1103. package/src/overlay/ui/OverlayNumber.tsx +160 -0
  1104. package/src/overlay/ui/OverlayPanel.tsx +162 -0
  1105. package/src/overlay/ui/OverlayPills.tsx +157 -0
  1106. package/src/overlay/ui/OverlayReadout.tsx +247 -0
  1107. package/src/overlay/ui/OverlayRow.tsx +200 -0
  1108. package/src/overlay/ui/OverlaySegmented.tsx +67 -0
  1109. package/src/overlay/ui/OverlaySelect.tsx +114 -0
  1110. package/src/overlay/ui/OverlaySwatchIcon.tsx +126 -0
  1111. package/src/overlay/ui/OverlayToggle.tsx +136 -0
  1112. package/src/overlay/ui/OverlayValueButton.tsx +149 -0
  1113. package/src/overlay/ui/OverlayValueMenu.tsx +141 -0
  1114. package/src/overlay/ui/index.ts +72 -0
  1115. package/src/overlay/ui/overlayBarShape.ts +113 -0
  1116. package/src/overlay/ui/overlayControlStyles.ts +176 -0
  1117. package/src/overlay/ui/overlayFigureStyles.ts +111 -0
  1118. package/src/overlay/ui/overlayPanelContext.ts +42 -0
  1119. package/src/overlay/ui/overlayPanelStyles.ts +235 -0
  1120. package/src/overlay/ui/overlayPillKeys.ts +45 -0
  1121. package/src/overlay/ui/overlayPillStyles.ts +190 -0
  1122. package/src/overlay/ui/overlayRowStyles.ts +166 -0
  1123. package/src/overlay/ui/overlayStepperStyles.ts +112 -0
  1124. package/src/overlay/ui/overlayStyles.ts +222 -0
  1125. package/src/overlay/ui/overlaySurface.ts +120 -0
  1126. package/src/overlay/ui/overlaySwitchStyles.ts +136 -0
  1127. package/src/overlay/ui/overlayValueStyles.ts +210 -0
  1128. package/src/projection/core/embeddingResult.ts +119 -0
  1129. package/src/projection/core/explainedShares.ts +105 -0
  1130. package/src/projection/core/index.ts +81 -0
  1131. package/src/projection/core/loadingProfiles.ts +226 -0
  1132. package/src/projection/core/pcaLike.ts +33 -0
  1133. package/src/projection/core/pcaResult.ts +238 -0
  1134. package/src/projection/core/projectionCopy.ts +261 -0
  1135. package/src/projection/core/projectionCopyPatch.ts +12 -0
  1136. package/src/projection/core/projectionOptions.ts +283 -0
  1137. package/src/projection/core/projectionResult.ts +123 -0
  1138. package/src/projection/core/projectionSamples.ts +170 -0
  1139. package/src/projection/core/projectionStrings.ts +281 -0
  1140. package/src/projection/core/projectionTabDefaults.ts +63 -0
  1141. package/src/projection/core/projectionTabs.ts +65 -0
  1142. package/src/projection/core/variableAxis.ts +161 -0
  1143. package/src/projection/core/variablesView.ts +53 -0
  1144. package/src/projection/ui/PcaViewer.tsx +80 -0
  1145. package/src/projection/ui/ProjectionBar.tsx +222 -0
  1146. package/src/projection/ui/ProjectionMapCaption.tsx +96 -0
  1147. package/src/projection/ui/ProjectionMapControls.tsx +271 -0
  1148. package/src/projection/ui/ProjectionMapLegend.tsx +70 -0
  1149. package/src/projection/ui/ProjectionMapMore.tsx +178 -0
  1150. package/src/projection/ui/ProjectionMapTab.tsx +213 -0
  1151. package/src/projection/ui/ProjectionPairsControls.tsx +58 -0
  1152. package/src/projection/ui/ProjectionPairsMore.tsx +95 -0
  1153. package/src/projection/ui/ProjectionPairsTab.tsx +159 -0
  1154. package/src/projection/ui/ProjectionPanel.tsx +262 -0
  1155. package/src/projection/ui/ProjectionReadout.tsx +159 -0
  1156. package/src/projection/ui/ProjectionSharesControls.tsx +56 -0
  1157. package/src/projection/ui/ProjectionSharesMarks.tsx +241 -0
  1158. package/src/projection/ui/ProjectionSharesMore.tsx +53 -0
  1159. package/src/projection/ui/ProjectionSharesTab.tsx +118 -0
  1160. package/src/projection/ui/ProjectionSpaceControls.tsx +219 -0
  1161. package/src/projection/ui/ProjectionSpaceMore.tsx +169 -0
  1162. package/src/projection/ui/ProjectionSpaceTab.tsx +217 -0
  1163. package/src/projection/ui/ProjectionSurface.tsx +63 -0
  1164. package/src/projection/ui/ProjectionTabStrip.tsx +144 -0
  1165. package/src/projection/ui/ProjectionVariablesControls.tsx +62 -0
  1166. package/src/projection/ui/ProjectionVariablesMore.tsx +144 -0
  1167. package/src/projection/ui/ProjectionVariablesTab.tsx +216 -0
  1168. package/src/projection/ui/ProjectionViewer.tsx +146 -0
  1169. package/src/projection/ui/index.ts +20 -0
  1170. package/src/projection/ui/projectionBarModel.ts +194 -0
  1171. package/src/projection/ui/projectionBarReadings.ts +195 -0
  1172. package/src/projection/ui/projectionBarSlots.tsx +158 -0
  1173. package/src/projection/ui/projectionBarStyles.ts +174 -0
  1174. package/src/projection/ui/projectionCloudChoices.ts +23 -0
  1175. package/src/projection/ui/projectionEllipse.ts +104 -0
  1176. package/src/projection/ui/projectionEllipsoid.ts +78 -0
  1177. package/src/projection/ui/projectionFormat.ts +18 -0
  1178. package/src/projection/ui/projectionMapChoices.ts +64 -0
  1179. package/src/projection/ui/projectionMapChrome.ts +228 -0
  1180. package/src/projection/ui/projectionMapModel.ts +253 -0
  1181. package/src/projection/ui/projectionMapView.ts +233 -0
  1182. package/src/projection/ui/projectionPairsCeiling.ts +45 -0
  1183. package/src/projection/ui/projectionSelection.ts +87 -0
  1184. package/src/projection/ui/projectionSpaceModel.ts +14 -0
  1185. package/src/projection/ui/projectionTabInfo.ts +126 -0
  1186. package/src/projection/ui/projectionTabModels.ts +106 -0
  1187. package/src/projection/ui/projectionTabStyles.ts +161 -0
  1188. package/src/projection/ui/projectionVariablesModel.ts +231 -0
  1189. package/src/projection/ui/projectionVariablesWords.ts +105 -0
  1190. package/src/projection/ui/projectionViewChoices.ts +77 -0
  1191. package/src/projection/ui/projectionViewerProps.ts +190 -0
  1192. package/src/projection/ui/useProjectionState.ts +224 -0
  1193. package/src/scatter/core/confidenceEllipse.ts +230 -0
  1194. package/src/scatter/core/ellipseCoverage.ts +46 -0
  1195. package/src/scatter/core/ellipseProjection.ts +126 -0
  1196. package/src/scatter/core/index.ts +48 -0
  1197. package/src/scatter/core/lassoPath.ts +127 -0
  1198. package/src/scatter/core/polygon.ts +155 -0
  1199. package/src/scatter/core/scatterSelection.ts +88 -0
  1200. package/src/scatter/core/screenPoints.ts +110 -0
  1201. package/src/scatter/ui/ScatterEllipseLayer.tsx +153 -0
  1202. package/src/scatter/ui/ScatterLabelLayer.tsx +135 -0
  1203. package/src/scatter/ui/ScatterMarkLayer.tsx +245 -0
  1204. package/src/scatter/ui/ScatterMatrix.tsx +177 -0
  1205. package/src/scatter/ui/ScatterMatrixCell.tsx +140 -0
  1206. package/src/scatter/ui/ScatterMatrixDiagonal.tsx +182 -0
  1207. package/src/scatter/ui/ScatterPlot.tsx +253 -0
  1208. package/src/scatter/ui/ScatterPointLayer.tsx +168 -0
  1209. package/src/scatter/ui/index.ts +123 -0
  1210. package/src/scatter/ui/lassoGesture.ts +250 -0
  1211. package/src/scatter/ui/scatterGroupSpread.ts +206 -0
  1212. package/src/scatter/ui/scatterLabelBoxes.ts +177 -0
  1213. package/src/scatter/ui/scatterLabelPlacement.ts +325 -0
  1214. package/src/scatter/ui/scatterLabels.ts +147 -0
  1215. package/src/scatter/ui/scatterMarkGlyph.tsx +94 -0
  1216. package/src/scatter/ui/scatterMatrixDots.tsx +134 -0
  1217. package/src/scatter/ui/scatterMatrixLayout.ts +133 -0
  1218. package/src/scatter/ui/scatterMatrixOutlines.tsx +53 -0
  1219. package/src/scatter/ui/scatterMatrixProps.ts +103 -0
  1220. package/src/scatter/ui/scatterOutlineShape.tsx +169 -0
  1221. package/src/scatter/ui/scatterPlotModel.ts +200 -0
  1222. package/src/scatter/ui/scatterPlotProps.ts +275 -0
  1223. package/src/scatter/ui/useLassoGesture.ts +214 -0
  1224. package/src/scatter/ui/usePointHover.ts +187 -0
  1225. package/src/scatter/ui/useScatterFrame.ts +191 -0
  1226. package/src/scatter/ui/useScatterInteraction.ts +258 -0
  1227. package/src/scatter/ui/useScatterKeyboard.ts +120 -0
  1228. package/src/scatter/ui/useScatterSelection.ts +189 -0
  1229. package/src/scatter3d/core/cloudGesture.ts +16 -0
  1230. package/src/scatter3d/core/confidenceEllipsoid.ts +177 -0
  1231. package/src/scatter3d/core/cubeFrame.ts +72 -0
  1232. package/src/scatter3d/core/cubePoints.ts +75 -0
  1233. package/src/scatter3d/core/ellipsoidCoverage.ts +86 -0
  1234. package/src/scatter3d/core/ellipsoidSilhouette.ts +76 -0
  1235. package/src/scatter3d/core/index.ts +52 -0
  1236. package/src/scatter3d/core/orbitCamera.ts +159 -0
  1237. package/src/scatter3d/core/symmetricEigen.ts +273 -0
  1238. package/src/scatter3d/ui/CloudFrameLayer.tsx +97 -0
  1239. package/src/scatter3d/ui/CloudPointLayer.tsx +132 -0
  1240. package/src/scatter3d/ui/CloudShellLayer.tsx +107 -0
  1241. package/src/scatter3d/ui/ScatterCloud.tsx +312 -0
  1242. package/src/scatter3d/ui/cloudGeometry.ts +200 -0
  1243. package/src/scatter3d/ui/cloudShellStyles.ts +74 -0
  1244. package/src/scatter3d/ui/cloudZoom.ts +22 -0
  1245. package/src/scatter3d/ui/index.ts +41 -0
  1246. package/src/scatter3d/ui/scatterCloudModel.ts +98 -0
  1247. package/src/scatter3d/ui/scatterCloudProps.ts +191 -0
  1248. package/src/scatter3d/ui/useOrbitDrag.ts +220 -0
  1249. package/src/share/core/query.ts +11 -7
  1250. package/src/spectra/core/axisEntries.ts +107 -0
  1251. package/src/spectra/core/chainProblems.ts +165 -0
  1252. package/src/spectra/core/filterCatalog.ts +100 -0
  1253. package/src/spectra/core/filterChain.ts +194 -0
  1254. package/src/spectra/core/filterEntries.ts +214 -0
  1255. package/src/spectra/core/filterFields.ts +159 -0
  1256. package/src/spectra/core/index.ts +67 -0
  1257. package/src/spectra/core/principalComponents.ts +130 -0
  1258. package/src/spectra/core/problems.ts +143 -0
  1259. package/src/spectra/core/settings.ts +119 -0
  1260. package/src/spectra/core/settingsProblems.ts +222 -0
  1261. package/src/spectra/core/stepProblems.ts +228 -0
  1262. package/src/spectra/ui/CalculationRows.tsx +161 -0
  1263. package/src/spectra/ui/FilterChainEditor.tsx +199 -0
  1264. package/src/spectra/ui/FilterChoiceControl.tsx +153 -0
  1265. package/src/spectra/ui/FilterFieldControl.tsx +105 -0
  1266. package/src/spectra/ui/FilterRow.tsx +190 -0
  1267. package/src/spectra/ui/MatrixFilterRows.tsx +184 -0
  1268. package/src/spectra/ui/NormalizationEditor.tsx +235 -0
  1269. package/src/spectra/ui/NumberField.tsx +126 -0
  1270. package/src/spectra/ui/PostProcessingEditor.tsx +136 -0
  1271. package/src/spectra/ui/PrincipalComponentSelect.tsx +245 -0
  1272. package/src/spectra/ui/ProblemList.tsx +77 -0
  1273. package/src/spectra/ui/RangeRows.tsx +175 -0
  1274. package/src/spectra/ui/ScaleFields.tsx +183 -0
  1275. package/src/spectra/ui/SettingsPart.tsx +60 -0
  1276. package/src/spectra/ui/SpectraSettingsEditor.tsx +143 -0
  1277. package/src/spectra/ui/SpectrumSelection.tsx +193 -0
  1278. package/src/spectra/ui/ZoneRows.tsx +159 -0
  1279. package/src/spectra/ui/index.ts +9 -0
  1280. package/src/spectra/ui/matrixSteps.ts +128 -0
  1281. package/src/spectra/ui/problemsAbout.ts +21 -0
  1282. package/src/spectra/ui/rowKeys.ts +47 -0
  1283. package/src/spectra/ui/scaleOptions.ts +116 -0
  1284. package/src/ui.ts +7 -0
  1285. package/styles/chrome.css +29 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scatterGroupSpread.js","sourceRoot":"","sources":["../../../src/scatter/ui/scatterGroupSpread.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,OAAO,EACL,WAAW,EACX,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AA6CtC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAkC;IAElC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,GAAG,YAAY,EAAE,aAAa,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC;IAC5E,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7E,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC9C,MAAM,WAAW,GAAG,IAAI,YAAY,CAAC,MAAM,GAAG,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AK,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AACtD,CAAC;AAED,gEAAgE;AAChE,MAAM,YAAY,GAAgB,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;AAE1E,SAAS,OAAO,CACd,OAA0B,EAC1B,GAAW,EACX,MAAc;IAEd,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACzB,IAAI,GAAG,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9B,OAAO,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACnD,CAAC;AAED,SAAS,SAAS,CAAC,MAAkB,EAAE,GAAW,EAAE,IAAY;IAC9D,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IAC5D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * How much room a word takes on the plot, and what is already written near a
3
+ * place a word is about to go.
4
+ *
5
+ * A label has no size until a browser has laid it out, and the placing has to
6
+ * happen before anything is drawn — so the width is estimated from the string
7
+ * rather than measured. The estimate is deliberately generous: two words that
8
+ * are believed wider than they are stay further apart than they had to, which
9
+ * a reader never notices, while two believed narrower overlap, which is the
10
+ * whole fault being fixed here.
11
+ *
12
+ * The field is a uniform grid rather than a list because a map may carry two
13
+ * thousand names: testing each candidate against every word already placed is
14
+ * the one part of the placing that grows with the square of the cloud, and a
15
+ * grid turns it back into a handful of comparisons.
16
+ */
17
+ /** A rectangle in the frame's pixels. */
18
+ export interface LabelBox {
19
+ /** Left edge. */
20
+ left: number;
21
+ /** Top edge. */
22
+ top: number;
23
+ /** Right edge. */
24
+ right: number;
25
+ /** Bottom edge. */
26
+ bottom: number;
27
+ }
28
+ /**
29
+ * How wide a word will be drawn, in pixels, without laying it out.
30
+ *
31
+ * The average glyph of the interface's sans is around 0.55 em and its bold
32
+ * around 0.6, but a name is not average text: `XTC0240` is all caps and
33
+ * digits, which are the widest glyphs in the font. The figures below are those
34
+ * upper widths rather than the average, so the answer errs long for a name and
35
+ * only slightly long for a sentence.
36
+ * @param text - What the label says.
37
+ * @param fontSize - What it is set in, in pixels.
38
+ * @param bold - Whether it is the heavier weight, which is wider.
39
+ * @returns The width, in pixels.
40
+ */
41
+ export declare function labelBoxWidth(text: string, fontSize: number, bold?: boolean): number;
42
+ /**
43
+ * How tall a line of text is, in pixels — the size it is set in plus the space
44
+ * a reader needs between one word and the next to read them as two words.
45
+ * @param fontSize - What the label is set in, in pixels.
46
+ * @returns The height, in pixels.
47
+ */
48
+ export declare function labelBoxHeight(fontSize: number): number;
49
+ /**
50
+ * Whether two rectangles share any pixel at all.
51
+ * @param one - One rectangle.
52
+ * @param other - The other.
53
+ * @returns Whether they touch.
54
+ */
55
+ export declare function labelBoxesOverlap(one: LabelBox, other: LabelBox): boolean;
56
+ /**
57
+ * The words already written, and whether there is room for one more.
58
+ *
59
+ * Each rectangle is filed under every cell of a coarse grid it touches, so
60
+ * asking about a candidate only compares it with the words that could
61
+ * possibly be in its way. The grid is built and thrown away inside one
62
+ * placing pass; nothing outside this file holds onto it.
63
+ */
64
+ export declare class LabelBoxField {
65
+ #private;
66
+ /**
67
+ * Nothing has been written yet.
68
+ * @param cell - Side of one grid square, in pixels. It wants to be a few
69
+ * label-widths across: too small and a wide name is filed under a dozen
70
+ * cells, too large and every comparison comes back.
71
+ * @default 96
72
+ */
73
+ constructor(cell?: number);
74
+ /**
75
+ * Whether a rectangle can be written without touching one already there.
76
+ * @param box - Where the word would go.
77
+ * @returns Whether the place is free.
78
+ */
79
+ fits(box: LabelBox): boolean;
80
+ /**
81
+ * Keep a rectangle, so nothing placed afterwards lands on it.
82
+ * @param box - Where the word went.
83
+ */
84
+ add(box: LabelBox): void;
85
+ }
86
+ /**
87
+ * What a sample's name is set in, in pixels, and what a group's is. The layer
88
+ * draws at these sizes and the placing keeps room at them: two numbers that
89
+ * drift apart are two words that overlap.
90
+ */
91
+ export declare const SCATTER_LABEL_SIZE = 10;
92
+ /** What a group's name is set in — see {@link SCATTER_LABEL_SIZE}. */
93
+ export declare const SCATTER_GROUP_LABEL_SIZE = 12;
94
+ //# sourceMappingURL=scatterLabelBoxes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scatterLabelBoxes.d.ts","sourceRoot":"","sources":["../../../src/scatter/ui/scatterLabelBoxes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,UAAQ,GACX,MAAM,CAER;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAOzE;AAED;;;;;;;GAOG;AACH,qBAAa,aAAa;;IAIxB;;;;;;OAMG;gBACS,IAAI,SAAe;IAI/B;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO;IAmB5B;;;OAGG;IACH,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;CAgBzB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,KAAK,CAAC"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * How much room a word takes on the plot, and what is already written near a
3
+ * place a word is about to go.
4
+ *
5
+ * A label has no size until a browser has laid it out, and the placing has to
6
+ * happen before anything is drawn — so the width is estimated from the string
7
+ * rather than measured. The estimate is deliberately generous: two words that
8
+ * are believed wider than they are stay further apart than they had to, which
9
+ * a reader never notices, while two believed narrower overlap, which is the
10
+ * whole fault being fixed here.
11
+ *
12
+ * The field is a uniform grid rather than a list because a map may carry two
13
+ * thousand names: testing each candidate against every word already placed is
14
+ * the one part of the placing that grows with the square of the cloud, and a
15
+ * grid turns it back into a handful of comparisons.
16
+ */
17
+ /**
18
+ * How wide a word will be drawn, in pixels, without laying it out.
19
+ *
20
+ * The average glyph of the interface's sans is around 0.55 em and its bold
21
+ * around 0.6, but a name is not average text: `XTC0240` is all caps and
22
+ * digits, which are the widest glyphs in the font. The figures below are those
23
+ * upper widths rather than the average, so the answer errs long for a name and
24
+ * only slightly long for a sentence.
25
+ * @param text - What the label says.
26
+ * @param fontSize - What it is set in, in pixels.
27
+ * @param bold - Whether it is the heavier weight, which is wider.
28
+ * @returns The width, in pixels.
29
+ */
30
+ export function labelBoxWidth(text, fontSize, bold = false) {
31
+ return text.length * fontSize * (bold ? BOLD_GLYPH : PLAIN_GLYPH);
32
+ }
33
+ /**
34
+ * How tall a line of text is, in pixels — the size it is set in plus the space
35
+ * a reader needs between one word and the next to read them as two words.
36
+ * @param fontSize - What the label is set in, in pixels.
37
+ * @returns The height, in pixels.
38
+ */
39
+ export function labelBoxHeight(fontSize) {
40
+ return fontSize + LINE_ROOM;
41
+ }
42
+ /**
43
+ * Whether two rectangles share any pixel at all.
44
+ * @param one - One rectangle.
45
+ * @param other - The other.
46
+ * @returns Whether they touch.
47
+ */
48
+ export function labelBoxesOverlap(one, other) {
49
+ return (one.left < other.right &&
50
+ other.left < one.right &&
51
+ one.top < other.bottom &&
52
+ other.top < one.bottom);
53
+ }
54
+ /**
55
+ * The words already written, and whether there is room for one more.
56
+ *
57
+ * Each rectangle is filed under every cell of a coarse grid it touches, so
58
+ * asking about a candidate only compares it with the words that could
59
+ * possibly be in its way. The grid is built and thrown away inside one
60
+ * placing pass; nothing outside this file holds onto it.
61
+ */
62
+ export class LabelBoxField {
63
+ #cell;
64
+ #cells = new Map();
65
+ /**
66
+ * Nothing has been written yet.
67
+ * @param cell - Side of one grid square, in pixels. It wants to be a few
68
+ * label-widths across: too small and a wide name is filed under a dozen
69
+ * cells, too large and every comparison comes back.
70
+ * @default 96
71
+ */
72
+ constructor(cell = DEFAULT_CELL) {
73
+ this.#cell = cell > 0 ? cell : DEFAULT_CELL;
74
+ }
75
+ /**
76
+ * Whether a rectangle can be written without touching one already there.
77
+ * @param box - Where the word would go.
78
+ * @returns Whether the place is free.
79
+ */
80
+ fits(box) {
81
+ const lastColumn = Math.floor(box.right / this.#cell);
82
+ const lastRow = Math.floor(box.bottom / this.#cell);
83
+ for (let column = Math.floor(box.left / this.#cell); column <= lastColumn; column++) {
84
+ for (let row = Math.floor(box.top / this.#cell); row <= lastRow; row++) {
85
+ const written = this.#cells.get(cellKey(column, row));
86
+ if (written === undefined)
87
+ continue;
88
+ for (const other of written) {
89
+ if (labelBoxesOverlap(box, other))
90
+ return false;
91
+ }
92
+ }
93
+ }
94
+ return true;
95
+ }
96
+ /**
97
+ * Keep a rectangle, so nothing placed afterwards lands on it.
98
+ * @param box - Where the word went.
99
+ */
100
+ add(box) {
101
+ const lastColumn = Math.floor(box.right / this.#cell);
102
+ const lastRow = Math.floor(box.bottom / this.#cell);
103
+ for (let column = Math.floor(box.left / this.#cell); column <= lastColumn; column++) {
104
+ for (let row = Math.floor(box.top / this.#cell); row <= lastRow; row++) {
105
+ const key = cellKey(column, row);
106
+ const written = this.#cells.get(key);
107
+ if (written === undefined)
108
+ this.#cells.set(key, [box]);
109
+ else
110
+ written.push(box);
111
+ }
112
+ }
113
+ }
114
+ }
115
+ /**
116
+ * What a sample's name is set in, in pixels, and what a group's is. The layer
117
+ * draws at these sizes and the placing keeps room at them: two numbers that
118
+ * drift apart are two words that overlap.
119
+ */
120
+ export const SCATTER_LABEL_SIZE = 10;
121
+ /** What a group's name is set in — see {@link SCATTER_LABEL_SIZE}. */
122
+ export const SCATTER_GROUP_LABEL_SIZE = 12;
123
+ /** How wide the widest glyphs of the plain weight run, as a share of the size. */
124
+ const PLAIN_GLYPH = 0.6;
125
+ /** The same for the heavier weight a group's name is set in. */
126
+ const BOLD_GLYPH = 0.64;
127
+ /** Space kept above and below a line so two words never read as one. */
128
+ const LINE_ROOM = 3;
129
+ /** Side of one grid square, in pixels. */
130
+ const DEFAULT_CELL = 96;
131
+ /*
132
+ * One number per cell, which a Map hashes faster than a string. A plot is
133
+ * never wider than a few thousand pixels, so a column fits well inside the
134
+ * stride; the offset is what lets a rectangle sitting at a negative
135
+ * coordinate — a label pushed off the top of the frame — still be filed.
136
+ */
137
+ const CELL_STRIDE = 8192;
138
+ const CELL_OFFSET = 4096;
139
+ const cellKey = (column, row) => (column + CELL_OFFSET) * CELL_STRIDE + (row + CELL_OFFSET);
140
+ //# sourceMappingURL=scatterLabelBoxes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scatterLabelBoxes.js","sourceRoot":"","sources":["../../../src/scatter/ui/scatterLabelBoxes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAcH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAY,EACZ,QAAgB,EAChB,IAAI,GAAG,KAAK;IAEZ,OAAO,IAAI,CAAC,MAAM,GAAG,QA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C,CAAC;;oBAClD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,sEAAsE;AACtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAE3C,kFAAkF;AAClF,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,gEAAgE;AAChE,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,wEAAwE;AACxE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,0CAA0C;AAC1C,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,WAAW,GAAG,IAAI,CAAC;AAEzB,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,GAAW,EAAU,EAAE,CACtD,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,WAAW,GAAG,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Where a word actually goes once the words beside it are taken into account.
3
+ *
4
+ * A name written at the thing it names is right until two things are close
5
+ * together, and then both names are wrong: a map of forty groups whose crowds
6
+ * overlap writes forty names on top of each other and a reader can read none
7
+ * of them — the label layer's halo makes one word legible over dots, never
8
+ * over another word.
9
+ *
10
+ * So the words are placed one at a time, best first: each takes the nearest
11
+ * free seat around what it names, and a word that finds no seat within reach
12
+ * is not written at all. Dropping is the point rather than a failure. Twelve
13
+ * readable names beat forty unreadable ones, the twelve are the ones that
14
+ * speak for the most samples, and the crowded name is still one hover away.
15
+ *
16
+ * It is arithmetic over pixels, so it sits beside the layer that draws it and
17
+ * can be checked without rendering anything.
18
+ */
19
+ import type { ScatterPixelLabel } from './scatterLabels.ts';
20
+ /** One word, with the seat it was given. */
21
+ export interface PlacedScatterLabel extends ScatterPixelLabel {
22
+ /** Where the word itself is written, which is no longer where its subject is. */
23
+ textX: number;
24
+ /** The vertical middle of the word. */
25
+ textY: number;
26
+ /** Which end of the word sits at `textX`. */
27
+ anchor: 'start' | 'middle' | 'end';
28
+ /**
29
+ * Where a line drawn back to what the word names should reach it — the point
30
+ * of the word's own rectangle nearest its subject. Left out when the word is
31
+ * beside its subject already and a line would be clutter.
32
+ * @default undefined — no line is drawn
33
+ */
34
+ leader?: {
35
+ x: number;
36
+ y: number;
37
+ };
38
+ }
39
+ /** How {@link placeScatterLabels} seats the words. */
40
+ export interface ScatterLabelPlacementOptions {
41
+ /**
42
+ * What the words are set in, in pixels — the same number the layer draws
43
+ * them at, or the room kept for them is the wrong size.
44
+ * @default 10
45
+ */
46
+ fontSize?: number;
47
+ /**
48
+ * Whether they are set in the heavier weight, which is wider.
49
+ * @default false
50
+ */
51
+ bold?: boolean;
52
+ /**
53
+ * Whether a word wants to sit over the middle of what it names rather than
54
+ * out to its right — which is what a group's name over its own crowd wants.
55
+ * @default false
56
+ */
57
+ centered?: boolean;
58
+ /**
59
+ * Radius of the dot a word stands beside, which is what its first seat
60
+ * clears.
61
+ * @default 3.5
62
+ */
63
+ radius?: number;
64
+ /**
65
+ * How far a word may be moved from what it names, in pixels. Past this it is
66
+ * dropped instead: a name floating eighty pixels from its dot in a crowded
67
+ * map names whatever the reader guesses it does.
68
+ * @default 40
69
+ */
70
+ shift?: number;
71
+ /**
72
+ * The rectangle words have to stay inside — the plot area, so a name never
73
+ * hangs over an axis or off the figure.
74
+ * @default undefined — words may go anywhere
75
+ */
76
+ bounds?: {
77
+ x: number;
78
+ y: number;
79
+ width: number;
80
+ height: number;
81
+ };
82
+ }
83
+ /**
84
+ * The words that fit, each in its seat.
85
+ *
86
+ * Order of service is the weight a label carries — the size of the crowd a
87
+ * group's name speaks for — and then the order they came in, so the same map
88
+ * seats the same words every render and a name does not flicker between two
89
+ * places as the pointer moves.
90
+ * @param labels - The words and what they name, from `scatterPointLabels` or
91
+ * `scatterGroupLabels`.
92
+ * @param options - See {@link ScatterLabelPlacementOptions}.
93
+ * @returns The words that found room, in the order they were given.
94
+ */
95
+ export declare function placeScatterLabels(labels: readonly ScatterPixelLabel[], options?: ScatterLabelPlacementOptions): PlacedScatterLabel[];
96
+ //# sourceMappingURL=scatterLabelPlacement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scatterLabelPlacement.d.ts","sourceRoot":"","sources":["../../../src/scatter/ui/scatterLabelPlacement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAQH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,4CAA4C;AAC5C,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,MAAM,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;;;;OAKG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC;AAED,sDAAsD;AACtD,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,iBAAiB,EAAE,EACpC,OAAO,GAAE,4BAAiC,GACzC,kBAAkB,EAAE,CA8BtB"}
@@ -0,0 +1,210 @@
1
+ /**
2
+ * Where a word actually goes once the words beside it are taken into account.
3
+ *
4
+ * A name written at the thing it names is right until two things are close
5
+ * together, and then both names are wrong: a map of forty groups whose crowds
6
+ * overlap writes forty names on top of each other and a reader can read none
7
+ * of them — the label layer's halo makes one word legible over dots, never
8
+ * over another word.
9
+ *
10
+ * So the words are placed one at a time, best first: each takes the nearest
11
+ * free seat around what it names, and a word that finds no seat within reach
12
+ * is not written at all. Dropping is the point rather than a failure. Twelve
13
+ * readable names beat forty unreadable ones, the twelve are the ones that
14
+ * speak for the most samples, and the crowded name is still one hover away.
15
+ *
16
+ * It is arithmetic over pixels, so it sits beside the layer that draws it and
17
+ * can be checked without rendering anything.
18
+ */
19
+ import { LabelBoxField, labelBoxHeight, labelBoxWidth, } from "./scatterLabelBoxes.js";
20
+ /**
21
+ * The words that fit, each in its seat.
22
+ *
23
+ * Order of service is the weight a label carries — the size of the crowd a
24
+ * group's name speaks for — and then the order they came in, so the same map
25
+ * seats the same words every render and a name does not flicker between two
26
+ * places as the pointer moves.
27
+ * @param labels - The words and what they name, from `scatterPointLabels` or
28
+ * `scatterGroupLabels`.
29
+ * @param options - See {@link ScatterLabelPlacementOptions}.
30
+ * @returns The words that found room, in the order they were given.
31
+ */
32
+ export function placeScatterLabels(labels, options = {}) {
33
+ const { fontSize = 10, bold = false, centered = false } = options;
34
+ const { radius = 3.5, shift = DEFAULT_SHIFT, bounds } = options;
35
+ const height = labelBoxHeight(fontSize);
36
+ const field = new LabelBoxField();
37
+ const seated = new Array(labels.length);
38
+ const order = placementOrder(labels);
39
+ for (const index of order) {
40
+ const label = labels[index];
41
+ if (label === undefined)
42
+ continue;
43
+ const width = labelBoxWidth(label.text, fontSize, bold);
44
+ const box = freeSeat(label, width, height, {
45
+ radius,
46
+ centered,
47
+ shift,
48
+ bounds,
49
+ field,
50
+ });
51
+ if (box === undefined)
52
+ continue;
53
+ field.add(box);
54
+ seated[index] = { ...label, ...written(box, label, radius) };
55
+ }
56
+ const placed = [];
57
+ for (const label of seated) {
58
+ if (label !== undefined)
59
+ placed.push(label);
60
+ }
61
+ return placed;
62
+ }
63
+ /**
64
+ * The nearest place this word can go without landing on one already written,
65
+ * or `undefined` when there is none within reach.
66
+ * @param label - The word and what it names.
67
+ * @param width - How wide it will be drawn, in pixels.
68
+ * @param height - How tall.
69
+ * @param search - See {@link SeatSearch}.
70
+ * @returns The rectangle it takes, or nothing when none is free.
71
+ */
72
+ function freeSeat(label, width, height, search) {
73
+ const { radius, centered, shift, bounds, field } = search;
74
+ const clear = radius + SEAT_GAP;
75
+ const near = centered
76
+ ? [box(label.x, label.y, width, height)]
77
+ : [];
78
+ near.push(box(label.x + clear + width / 2, label.y, width, height), box(label.x - clear - width / 2, label.y, width, height), box(label.x, label.y - clear - height / 2, width, height), box(label.x, label.y + clear + height / 2, width, height));
79
+ for (const seat of near) {
80
+ if (free(seat, bounds, field))
81
+ return seat;
82
+ }
83
+ for (let step = SEAT_STEP; step <= shift; step += SEAT_STEP) {
84
+ for (let index = 0; index < SEAT_DIRECTIONS.length; index += 2) {
85
+ const across = SEAT_DIRECTIONS[index] ?? 0;
86
+ const down = SEAT_DIRECTIONS[index + 1] ?? 0;
87
+ const seat = box(label.x + across * (step + width / 2), label.y + down * (step + height / 2), width, height);
88
+ if (free(seat, bounds, field))
89
+ return seat;
90
+ }
91
+ }
92
+ return undefined;
93
+ }
94
+ /**
95
+ * Whether a seat is inside the frame and free of every word already written.
96
+ * @param seat - Where the word would go.
97
+ * @param bounds - The rectangle it has to stay inside, if any.
98
+ * @param field - The words already placed.
99
+ * @returns Whether it may be written there.
100
+ */
101
+ function free(seat, bounds, field) {
102
+ if (bounds !== undefined) {
103
+ if (seat.left < bounds.x || seat.right > bounds.x + bounds.width) {
104
+ return false;
105
+ }
106
+ if (seat.top < bounds.y || seat.bottom > bounds.y + bounds.height) {
107
+ return false;
108
+ }
109
+ }
110
+ return field.fits(seat);
111
+ }
112
+ /**
113
+ * How the word is drawn once its seat is known.
114
+ * @param seat - The rectangle it took.
115
+ * @param label - The word and what it names.
116
+ * @param radius - Radius of the dot it stands beside.
117
+ * @returns Where the text goes, which end of it is pinned, and where a line
118
+ * back to its subject reaches it.
119
+ */
120
+ function written(seat, label, radius) {
121
+ const edgeX = Math.min(Math.max(label.x, seat.left), seat.right);
122
+ const edgeY = Math.min(Math.max(label.y, seat.top), seat.bottom);
123
+ const across = label.x - edgeX;
124
+ const down = label.y - edgeY;
125
+ const away = Math.hypot(across, down);
126
+ const middle = (seat.left + seat.right) / 2;
127
+ // Pinned at the end nearest its subject, so the word grows away from the dot
128
+ // rather than back over it.
129
+ const anchor = away <= radius ? 'middle' : nearestSide(middle, label.x);
130
+ const placed = {
131
+ textX: anchor === 'start' ? seat.left : anchor === 'end' ? seat.right : middle,
132
+ textY: (seat.top + seat.bottom) / 2,
133
+ anchor,
134
+ };
135
+ return away > LEADER_FROM
136
+ ? { ...placed, leader: { x: edgeX, y: edgeY } }
137
+ : placed;
138
+ }
139
+ /**
140
+ * Which end of a word to pin, given which side of its subject it sits on.
141
+ * @param middle - The middle of the word, horizontally.
142
+ * @param subject - Where what it names sits, horizontally.
143
+ * @returns The anchor to draw it with.
144
+ */
145
+ function nearestSide(middle, subject) {
146
+ if (middle > subject + 1)
147
+ return 'start';
148
+ if (middle < subject - 1)
149
+ return 'end';
150
+ return 'middle';
151
+ }
152
+ /**
153
+ * The rectangle of a word of this size, centred on a point.
154
+ * @param centerX - Middle of the rectangle, horizontally.
155
+ * @param centerY - Middle of it, vertically.
156
+ * @param width - How wide it is.
157
+ * @param height - How tall.
158
+ * @returns The rectangle.
159
+ */
160
+ function box(centerX, centerY, width, height) {
161
+ return {
162
+ left: centerX - width / 2,
163
+ right: centerX + width / 2,
164
+ top: centerY - height / 2,
165
+ bottom: centerY + height / 2,
166
+ };
167
+ }
168
+ /**
169
+ * The order the words are served in: the heaviest first — a group's name
170
+ * carries the size of its crowd — and ties in the order they were given, so
171
+ * the answer never depends on how the sort was implemented.
172
+ * @param labels - The words, in the order the caller gave them.
173
+ * @returns Their indices, best served first.
174
+ */
175
+ function placementOrder(labels) {
176
+ const order = new Array(labels.length);
177
+ for (let index = 0; index < labels.length; index++)
178
+ order[index] = index;
179
+ return order.toSorted((one, other) => {
180
+ const first = labels[one]?.weight ?? 0;
181
+ const second = labels[other]?.weight ?? 0;
182
+ return second - first || one - other;
183
+ });
184
+ }
185
+ /** How far a word sits clear of the dot it belongs to, in pixels. */
186
+ const SEAT_GAP = 3;
187
+ /** How far a word may be moved from what it names before it is dropped. */
188
+ const DEFAULT_SHIFT = 40;
189
+ /** How far apart the rings of seats searched after the near four are. */
190
+ const SEAT_STEP = 10;
191
+ /**
192
+ * The directions a word is pushed in, as unit vectors, tried in this order:
193
+ * sideways first, because text runs sideways and a name pushed left or right
194
+ * still reads as belonging to the dot beside it, then the diagonals, then
195
+ * straight up and down last — a word directly above a dot is the one most
196
+ * easily read as belonging to the dot above it instead.
197
+ */
198
+ const SEAT_DIRECTIONS = Float64Array.from([
199
+ 1, 0, -1, 0, 0.87, -0.5, -0.87, -0.5, 0.87, 0.5, -0.87, 0.5, 0.5, -0.87, -0.5,
200
+ -0.87, 0.5, 0.87, -0.5, 0.87, 0, -1, 0, 1,
201
+ ]);
202
+ /**
203
+ * How far a word has to have moved before a line is drawn back to its subject:
204
+ * just short of the first ring, so a word in one of the four seats beside its
205
+ * own dot gets no line and every word that had to leave them gets one. A word
206
+ * beside its dot needs no line and gains only clutter from one; a word pushed
207
+ * across a crowd is anybody's until the line says whose.
208
+ */
209
+ const LEADER_FROM = 8;
210
+ //# sourceMappingURL=scatterLabelPlacement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scatterLabelPlacement.js","sourceRoot":"","sources":["../../../src/scatter/ui/scatterLabelPlacement.ts"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M,IAAI,CAAC,CAAC;QAC1C,OAAO,MAAM,GAAG,KAAK,IAAI,GAAG,GAAG,KAAK,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,qEAAqE;AACrE,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB,2EAA2E;AAC3E,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB,yEAAyE;AACzE,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC;IACxC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG;IAC7E,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;CAC1C,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Where the words written on a cloud of points go.
3
+ *
4
+ * A dot says where a sample landed and nothing about which sample it is, so a
5
+ * reader who has found an outlier has to hover it, and a reader looking at
6
+ * forty crowds has to keep walking back to the key. Both are answered by
7
+ * writing the name on the picture — and both are answered by a different name,
8
+ * which is why there are two functions here rather than one flag.
9
+ *
10
+ * The placing is arithmetic over pixels, so it sits beside the layer that
11
+ * draws it rather than inside it and can be checked without rendering
12
+ * anything.
13
+ */
14
+ import type { ScreenPoints } from '../core/screenPoints.ts';
15
+ /** One word written on the plot, already placed. */
16
+ export interface ScatterPixelLabel {
17
+ /** Horizontal position of what it names, in the frame's pixels. */
18
+ x: number;
19
+ /** Vertical position of what it names. */
20
+ y: number;
21
+ /** What it says. */
22
+ text: string;
23
+ /** Its colour, which is the colour of what it names. */
24
+ color: string;
25
+ /**
26
+ * How much of the picture it speaks for — the size of the crowd behind a
27
+ * group's name. It decides who is served first when two words want the same
28
+ * pixels, so the name over five hundred samples keeps its place and the one
29
+ * over three moves or goes.
30
+ * @default undefined — read as nothing, so the words are served in order
31
+ */
32
+ weight?: number;
33
+ }
34
+ /** Which ink a label takes, worked out the way a dot's is. */
35
+ export interface ScatterLabelInk {
36
+ /**
37
+ * Which group each point belongs to, as an index into `colors`. An entry of
38
+ * `-1`, or one outside the range, is a point in no group.
39
+ * @default undefined — every label takes `fallbackColor`
40
+ */
41
+ groupOf?: ArrayLike<number>;
42
+ /**
43
+ * The colour of each group, in the order the groups were given.
44
+ * @default undefined — every label takes `fallbackColor`
45
+ */
46
+ colors?: readonly string[];
47
+ /**
48
+ * Colour of a label naming something in no group.
49
+ * @default 'var(--text-muted)'
50
+ */
51
+ fallbackColor?: string;
52
+ }
53
+ /**
54
+ * Every sample's own name, beside its own dot.
55
+ *
56
+ * A sample with no name is skipped rather than drawn empty, so a caller may
57
+ * name the twenty samples it cares about and leave the rest of the array
58
+ * `undefined` — which is how a crowded map stays readable while the outliers
59
+ * are still labelled.
60
+ * @param points - Where every point sits, in the frame's pixels.
61
+ * @param labels - What each point is called, in point order.
62
+ * @param ink - Which colour each label takes.
63
+ * @returns One label per named point that has somewhere to be drawn.
64
+ */
65
+ export declare function scatterPointLabels(points: ScreenPoints, labels: ReadonlyArray<string | undefined>, ink?: ScatterLabelInk): ScatterPixelLabel[];
66
+ /**
67
+ * Each group's name, once, at the middle of the points in it.
68
+ *
69
+ * Once rather than on every dot: forty seizures over five hundred spectra
70
+ * would otherwise write forty names twelve times each, and a reader can read
71
+ * none of them. The average of the pixels is the same place as the average of
72
+ * the data on a linear axis and one pass fewer, and it is the same point the
73
+ * group-average cross is drawn at, so turning both on marks and names one
74
+ * spot rather than two.
75
+ * @param points - Where every point sits, in the frame's pixels.
76
+ * @param names - What each group is called, in group order.
77
+ * @param ink - Which colour each label takes; `groupOf` is what it reads.
78
+ * @returns One label per group that anything belongs to.
79
+ */
80
+ export declare function scatterGroupLabels(points: ScreenPoints, names: readonly string[], ink?: ScatterLabelInk): ScatterPixelLabel[];
81
+ //# sourceMappingURL=scatterLabels.d.ts.map