@ktnpm_devops/react-component 0.12.1 → 0.13.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 (451) hide show
  1. package/README.md +39 -0
  2. package/dist/constants.d.ts +26 -0
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/geo/GeoMapCard/GeoMapCard.d.ts +7 -0
  5. package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -0
  6. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +91 -0
  7. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -0
  8. package/dist/geo/GeoMapCard/MapLegend.d.ts +12 -0
  9. package/dist/geo/GeoMapCard/MapLegend.d.ts.map +1 -0
  10. package/dist/geo/GeoMapCard/MapViewport.d.ts +17 -0
  11. package/dist/geo/GeoMapCard/MapViewport.d.ts.map +1 -0
  12. package/dist/geo/GeoMapCard/PointListing.d.ts +14 -0
  13. package/dist/geo/GeoMapCard/PointListing.d.ts.map +1 -0
  14. package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts +47 -0
  15. package/dist/geo/GeoMapCard/buildMarkerStyle.d.ts.map +1 -0
  16. package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts +2 -0
  17. package/dist/geo/GeoMapCard/buildMarkerStyle.test.d.ts.map +1 -0
  18. package/dist/geo/GeoMapCard/index.d.ts +3 -0
  19. package/dist/geo/GeoMapCard/index.d.ts.map +1 -0
  20. package/dist/geo/GeoMapCard/normalizePoints.d.ts +26 -0
  21. package/dist/geo/GeoMapCard/normalizePoints.d.ts.map +1 -0
  22. package/dist/geo/GeoMapCard/normalizePoints.test.d.ts +2 -0
  23. package/dist/geo/GeoMapCard/normalizePoints.test.d.ts.map +1 -0
  24. package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts +13 -0
  25. package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.d.ts.map +1 -0
  26. package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts +2 -0
  27. package/dist/geo/GeoMapCard/warnMissingLeafletStylesheet.test.d.ts.map +1 -0
  28. package/dist/geo/index.d.ts +3 -0
  29. package/dist/geo/index.d.ts.map +1 -0
  30. package/dist/hooks/useThemeMode.d.ts +8 -0
  31. package/dist/hooks/useThemeMode.d.ts.map +1 -0
  32. package/dist/index.cjs +52 -48
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.ts +5 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +52 -48
  37. package/dist/index.js.map +1 -1
  38. package/dist/index10.cjs +45 -14
  39. package/dist/index10.cjs.map +1 -1
  40. package/dist/index10.js +46 -15
  41. package/dist/index10.js.map +1 -1
  42. package/dist/index100.cjs +24 -6
  43. package/dist/index100.cjs.map +1 -1
  44. package/dist/index100.js +23 -5
  45. package/dist/index100.js.map +1 -1
  46. package/dist/index101.cjs +20 -16
  47. package/dist/index101.cjs.map +1 -1
  48. package/dist/index101.js +19 -15
  49. package/dist/index101.js.map +1 -1
  50. package/dist/index102.cjs +14 -22
  51. package/dist/index102.cjs.map +1 -1
  52. package/dist/index102.js +13 -21
  53. package/dist/index102.js.map +1 -1
  54. package/dist/index103.cjs +57 -36
  55. package/dist/index103.cjs.map +1 -1
  56. package/dist/index103.js +57 -36
  57. package/dist/index103.js.map +1 -1
  58. package/dist/index104.cjs +19 -16
  59. package/dist/index104.cjs.map +1 -1
  60. package/dist/index104.js +20 -17
  61. package/dist/index104.js.map +1 -1
  62. package/dist/index105.cjs +49 -19
  63. package/dist/index105.cjs.map +1 -1
  64. package/dist/index105.js +49 -19
  65. package/dist/index105.js.map +1 -1
  66. package/dist/index106.cjs +33 -0
  67. package/dist/index106.cjs.map +1 -0
  68. package/dist/index106.js +33 -0
  69. package/dist/index106.js.map +1 -0
  70. package/dist/index107.cjs +18 -0
  71. package/dist/index107.cjs.map +1 -0
  72. package/dist/index107.js +18 -0
  73. package/dist/index107.js.map +1 -0
  74. package/dist/index108.cjs +12 -0
  75. package/dist/index108.cjs.map +1 -0
  76. package/dist/index108.js +12 -0
  77. package/dist/index108.js.map +1 -0
  78. package/dist/index109.cjs +21 -0
  79. package/dist/index109.cjs.map +1 -0
  80. package/dist/index109.js +21 -0
  81. package/dist/index109.js.map +1 -0
  82. package/dist/index11.cjs +14 -15
  83. package/dist/index11.cjs.map +1 -1
  84. package/dist/index11.js +15 -16
  85. package/dist/index11.js.map +1 -1
  86. package/dist/index110.cjs +24 -0
  87. package/dist/index110.cjs.map +1 -0
  88. package/dist/index110.js +24 -0
  89. package/dist/index110.js.map +1 -0
  90. package/dist/index111.cjs +9 -0
  91. package/dist/index111.cjs.map +1 -0
  92. package/dist/index111.js +9 -0
  93. package/dist/index111.js.map +1 -0
  94. package/dist/index112.cjs +9 -0
  95. package/dist/index112.cjs.map +1 -0
  96. package/dist/index112.js +9 -0
  97. package/dist/index112.js.map +1 -0
  98. package/dist/index113.cjs +27 -0
  99. package/dist/index113.cjs.map +1 -0
  100. package/dist/index113.js +27 -0
  101. package/dist/index113.js.map +1 -0
  102. package/dist/index12.cjs +15 -4
  103. package/dist/index12.cjs.map +1 -1
  104. package/dist/index12.js +15 -4
  105. package/dist/index12.js.map +1 -1
  106. package/dist/index13.cjs +4 -16
  107. package/dist/index13.cjs.map +1 -1
  108. package/dist/index13.js +4 -16
  109. package/dist/index13.js.map +1 -1
  110. package/dist/index14.cjs +16 -10
  111. package/dist/index14.cjs.map +1 -1
  112. package/dist/index14.js +16 -10
  113. package/dist/index14.js.map +1 -1
  114. package/dist/index15.cjs +10 -100
  115. package/dist/index15.cjs.map +1 -1
  116. package/dist/index15.js +11 -101
  117. package/dist/index15.js.map +1 -1
  118. package/dist/index16.cjs +100 -20
  119. package/dist/index16.cjs.map +1 -1
  120. package/dist/index16.js +101 -21
  121. package/dist/index16.js.map +1 -1
  122. package/dist/index17.cjs +20 -54
  123. package/dist/index17.cjs.map +1 -1
  124. package/dist/index17.js +20 -54
  125. package/dist/index17.js.map +1 -1
  126. package/dist/index18.cjs +52 -16
  127. package/dist/index18.cjs.map +1 -1
  128. package/dist/index18.js +54 -18
  129. package/dist/index18.js.map +1 -1
  130. package/dist/index19.cjs +16 -24
  131. package/dist/index19.cjs.map +1 -1
  132. package/dist/index19.js +17 -25
  133. package/dist/index19.js.map +1 -1
  134. package/dist/index20.cjs +22 -39
  135. package/dist/index20.cjs.map +1 -1
  136. package/dist/index20.js +23 -40
  137. package/dist/index20.js.map +1 -1
  138. package/dist/index21.cjs +38 -85
  139. package/dist/index21.cjs.map +1 -1
  140. package/dist/index21.js +40 -87
  141. package/dist/index21.js.map +1 -1
  142. package/dist/index22.cjs +85 -153
  143. package/dist/index22.cjs.map +1 -1
  144. package/dist/index22.js +87 -155
  145. package/dist/index22.js.map +1 -1
  146. package/dist/index23.cjs +150 -128
  147. package/dist/index23.cjs.map +1 -1
  148. package/dist/index23.js +150 -128
  149. package/dist/index23.js.map +1 -1
  150. package/dist/index24.cjs +121 -106
  151. package/dist/index24.cjs.map +1 -1
  152. package/dist/index24.js +122 -107
  153. package/dist/index24.js.map +1 -1
  154. package/dist/index25.cjs +121 -17
  155. package/dist/index25.cjs.map +1 -1
  156. package/dist/index25.js +121 -17
  157. package/dist/index25.js.map +1 -1
  158. package/dist/index26.cjs +16 -163
  159. package/dist/index26.cjs.map +1 -1
  160. package/dist/index26.js +16 -163
  161. package/dist/index26.js.map +1 -1
  162. package/dist/index27.cjs +163 -21
  163. package/dist/index27.cjs.map +1 -1
  164. package/dist/index27.js +164 -22
  165. package/dist/index27.js.map +1 -1
  166. package/dist/index28.cjs +20 -129
  167. package/dist/index28.cjs.map +1 -1
  168. package/dist/index28.js +20 -129
  169. package/dist/index28.js.map +1 -1
  170. package/dist/index29.cjs +129 -75
  171. package/dist/index29.cjs.map +1 -1
  172. package/dist/index29.js +131 -77
  173. package/dist/index29.js.map +1 -1
  174. package/dist/index30.cjs +152 -7
  175. package/dist/index30.cjs.map +1 -1
  176. package/dist/index30.js +154 -9
  177. package/dist/index30.js.map +1 -1
  178. package/dist/index31.cjs +74 -128
  179. package/dist/index31.cjs.map +1 -1
  180. package/dist/index31.js +76 -130
  181. package/dist/index31.js.map +1 -1
  182. package/dist/index32.cjs +6 -54
  183. package/dist/index32.cjs.map +1 -1
  184. package/dist/index32.js +8 -56
  185. package/dist/index32.js.map +1 -1
  186. package/dist/index33.cjs +128 -35
  187. package/dist/index33.cjs.map +1 -1
  188. package/dist/index33.js +128 -35
  189. package/dist/index33.js.map +1 -1
  190. package/dist/index34.cjs +51 -221
  191. package/dist/index34.cjs.map +1 -1
  192. package/dist/index34.js +52 -222
  193. package/dist/index34.js.map +1 -1
  194. package/dist/index35.cjs +38 -34
  195. package/dist/index35.cjs.map +1 -1
  196. package/dist/index35.js +39 -35
  197. package/dist/index35.js.map +1 -1
  198. package/dist/index36.cjs +222 -106
  199. package/dist/index36.cjs.map +1 -1
  200. package/dist/index36.js +224 -108
  201. package/dist/index36.js.map +1 -1
  202. package/dist/index37.cjs +30 -64
  203. package/dist/index37.cjs.map +1 -1
  204. package/dist/index37.js +31 -65
  205. package/dist/index37.js.map +1 -1
  206. package/dist/index38.cjs +106 -74
  207. package/dist/index38.cjs.map +1 -1
  208. package/dist/index38.js +108 -76
  209. package/dist/index38.js.map +1 -1
  210. package/dist/index39.cjs +63 -54
  211. package/dist/index39.cjs.map +1 -1
  212. package/dist/index39.js +64 -55
  213. package/dist/index39.js.map +1 -1
  214. package/dist/index40.cjs +69 -144
  215. package/dist/index40.cjs.map +1 -1
  216. package/dist/index40.js +70 -145
  217. package/dist/index40.js.map +1 -1
  218. package/dist/index41.cjs +57 -96
  219. package/dist/index41.cjs.map +1 -1
  220. package/dist/index41.js +59 -98
  221. package/dist/index41.js.map +1 -1
  222. package/dist/index42.cjs +147 -66
  223. package/dist/index42.cjs.map +1 -1
  224. package/dist/index42.js +149 -68
  225. package/dist/index42.js.map +1 -1
  226. package/dist/index43.cjs +97 -7
  227. package/dist/index43.cjs.map +1 -1
  228. package/dist/index43.js +99 -9
  229. package/dist/index43.js.map +1 -1
  230. package/dist/index44.cjs +72 -17
  231. package/dist/index44.cjs.map +1 -1
  232. package/dist/index44.js +73 -18
  233. package/dist/index44.js.map +1 -1
  234. package/dist/index45.cjs +7 -76
  235. package/dist/index45.cjs.map +1 -1
  236. package/dist/index45.js +9 -78
  237. package/dist/index45.js.map +1 -1
  238. package/dist/index46.cjs +17 -143
  239. package/dist/index46.cjs.map +1 -1
  240. package/dist/index46.js +17 -143
  241. package/dist/index46.js.map +1 -1
  242. package/dist/index47.cjs +72 -59
  243. package/dist/index47.cjs.map +1 -1
  244. package/dist/index47.js +74 -61
  245. package/dist/index47.js.map +1 -1
  246. package/dist/index48.cjs +136 -98
  247. package/dist/index48.cjs.map +1 -1
  248. package/dist/index48.js +137 -99
  249. package/dist/index48.js.map +1 -1
  250. package/dist/index49.cjs +49 -32
  251. package/dist/index49.cjs.map +1 -1
  252. package/dist/index49.js +49 -32
  253. package/dist/index49.js.map +1 -1
  254. package/dist/index50.cjs +105 -6
  255. package/dist/index50.cjs.map +1 -1
  256. package/dist/index50.js +106 -7
  257. package/dist/index50.js.map +1 -1
  258. package/dist/index51.cjs +44 -144
  259. package/dist/index51.cjs.map +1 -1
  260. package/dist/index51.js +45 -145
  261. package/dist/index51.js.map +1 -1
  262. package/dist/index52.cjs +6 -8
  263. package/dist/index52.cjs.map +1 -1
  264. package/dist/index52.js +6 -8
  265. package/dist/index52.js.map +1 -1
  266. package/dist/index53.cjs +145 -15
  267. package/dist/index53.cjs.map +1 -1
  268. package/dist/index53.js +147 -17
  269. package/dist/index53.js.map +1 -1
  270. package/dist/index54.cjs +7 -65
  271. package/dist/index54.cjs.map +1 -1
  272. package/dist/index54.js +8 -66
  273. package/dist/index54.js.map +1 -1
  274. package/dist/index55.cjs +19 -16
  275. package/dist/index55.cjs.map +1 -1
  276. package/dist/index55.js +18 -15
  277. package/dist/index55.js.map +1 -1
  278. package/dist/index56.cjs +67 -24
  279. package/dist/index56.cjs.map +1 -1
  280. package/dist/index56.js +66 -23
  281. package/dist/index56.js.map +1 -1
  282. package/dist/index57.cjs +15 -69
  283. package/dist/index57.cjs.map +1 -1
  284. package/dist/index57.js +15 -69
  285. package/dist/index57.js.map +1 -1
  286. package/dist/index58.cjs +3 -15
  287. package/dist/index58.cjs.map +1 -1
  288. package/dist/index58.js +3 -15
  289. package/dist/index58.js.map +1 -1
  290. package/dist/index59.cjs +24 -89
  291. package/dist/index59.cjs.map +1 -1
  292. package/dist/index59.js +23 -88
  293. package/dist/index59.js.map +1 -1
  294. package/dist/index60.cjs +64 -16
  295. package/dist/index60.cjs.map +1 -1
  296. package/dist/index60.js +64 -16
  297. package/dist/index60.js.map +1 -1
  298. package/dist/index62.cjs +18 -9
  299. package/dist/index62.cjs.map +1 -1
  300. package/dist/index62.js +18 -9
  301. package/dist/index62.js.map +1 -1
  302. package/dist/index63.cjs +13 -16
  303. package/dist/index63.cjs.map +1 -1
  304. package/dist/index63.js +13 -16
  305. package/dist/index63.js.map +1 -1
  306. package/dist/index64.cjs +13 -13
  307. package/dist/index64.js +13 -13
  308. package/dist/index65.cjs +17 -2
  309. package/dist/index65.cjs.map +1 -1
  310. package/dist/index65.js +18 -3
  311. package/dist/index65.js.map +1 -1
  312. package/dist/index66.cjs +2 -20
  313. package/dist/index66.cjs.map +1 -1
  314. package/dist/index66.js +3 -21
  315. package/dist/index66.js.map +1 -1
  316. package/dist/index67.cjs +116 -28
  317. package/dist/index67.cjs.map +1 -1
  318. package/dist/index67.js +114 -26
  319. package/dist/index67.js.map +1 -1
  320. package/dist/index68.cjs +17 -17
  321. package/dist/index68.js +18 -18
  322. package/dist/index69.cjs +20 -5
  323. package/dist/index69.cjs.map +1 -1
  324. package/dist/index69.js +20 -5
  325. package/dist/index69.js.map +1 -1
  326. package/dist/index7.cjs +32 -64
  327. package/dist/index7.cjs.map +1 -1
  328. package/dist/index7.js +32 -64
  329. package/dist/index7.js.map +1 -1
  330. package/dist/index70.cjs +10 -16
  331. package/dist/index70.cjs.map +1 -1
  332. package/dist/index70.js +10 -16
  333. package/dist/index70.js.map +1 -1
  334. package/dist/index71.cjs +16 -28
  335. package/dist/index71.cjs.map +1 -1
  336. package/dist/index71.js +16 -28
  337. package/dist/index71.js.map +1 -1
  338. package/dist/index72.cjs +79 -19
  339. package/dist/index72.cjs.map +1 -1
  340. package/dist/index72.js +80 -20
  341. package/dist/index72.js.map +1 -1
  342. package/dist/index73.cjs +47 -2
  343. package/dist/index73.cjs.map +1 -1
  344. package/dist/index73.js +48 -3
  345. package/dist/index73.js.map +1 -1
  346. package/dist/index74.cjs +53 -2
  347. package/dist/index74.cjs.map +1 -1
  348. package/dist/index74.js +54 -3
  349. package/dist/index74.js.map +1 -1
  350. package/dist/index76.cjs +28 -13
  351. package/dist/index76.cjs.map +1 -1
  352. package/dist/index76.js +29 -14
  353. package/dist/index76.js.map +1 -1
  354. package/dist/index77.cjs +3 -30
  355. package/dist/index77.cjs.map +1 -1
  356. package/dist/index77.js +3 -30
  357. package/dist/index77.js.map +1 -1
  358. package/dist/index78.cjs +31 -7
  359. package/dist/index78.cjs.map +1 -1
  360. package/dist/index78.js +32 -8
  361. package/dist/index78.js.map +1 -1
  362. package/dist/index79.cjs +10 -34
  363. package/dist/index79.cjs.map +1 -1
  364. package/dist/index79.js +11 -35
  365. package/dist/index79.js.map +1 -1
  366. package/dist/index8.cjs +58 -75
  367. package/dist/index8.cjs.map +1 -1
  368. package/dist/index8.js +58 -75
  369. package/dist/index8.js.map +1 -1
  370. package/dist/index80.cjs +16 -10
  371. package/dist/index80.cjs.map +1 -1
  372. package/dist/index80.js +17 -11
  373. package/dist/index80.js.map +1 -1
  374. package/dist/index81.cjs +16 -4
  375. package/dist/index81.cjs.map +1 -1
  376. package/dist/index81.js +17 -5
  377. package/dist/index81.js.map +1 -1
  378. package/dist/index82.cjs +10 -134
  379. package/dist/index82.cjs.map +1 -1
  380. package/dist/index82.js +9 -133
  381. package/dist/index82.js.map +1 -1
  382. package/dist/index83.cjs +24 -36
  383. package/dist/index83.cjs.map +1 -1
  384. package/dist/index83.js +25 -37
  385. package/dist/index83.js.map +1 -1
  386. package/dist/index84.cjs +36 -81
  387. package/dist/index84.cjs.map +1 -1
  388. package/dist/index84.js +36 -81
  389. package/dist/index84.js.map +1 -1
  390. package/dist/index85.cjs +38 -2
  391. package/dist/index85.cjs.map +1 -1
  392. package/dist/index85.js +39 -3
  393. package/dist/index85.js.map +1 -1
  394. package/dist/index86.cjs +49 -43
  395. package/dist/index86.cjs.map +1 -1
  396. package/dist/index86.js +50 -44
  397. package/dist/index86.js.map +1 -1
  398. package/dist/index87.cjs +39 -57
  399. package/dist/index87.cjs.map +1 -1
  400. package/dist/index87.js +38 -56
  401. package/dist/index87.js.map +1 -1
  402. package/dist/index88.cjs +92 -42
  403. package/dist/index88.cjs.map +1 -1
  404. package/dist/index88.js +91 -41
  405. package/dist/index88.js.map +1 -1
  406. package/dist/index89.cjs +34 -16
  407. package/dist/index89.cjs.map +1 -1
  408. package/dist/index89.js +34 -16
  409. package/dist/index89.js.map +1 -1
  410. package/dist/index9.cjs +81 -45
  411. package/dist/index9.cjs.map +1 -1
  412. package/dist/index9.js +81 -45
  413. package/dist/index9.js.map +1 -1
  414. package/dist/index90.cjs +1 -1
  415. package/dist/index90.js +1 -1
  416. package/dist/index92.cjs +34 -34
  417. package/dist/index92.js +34 -34
  418. package/dist/index93.cjs +134 -34
  419. package/dist/index93.cjs.map +1 -1
  420. package/dist/index93.js +133 -33
  421. package/dist/index93.js.map +1 -1
  422. package/dist/index94.cjs +45 -39
  423. package/dist/index94.cjs.map +1 -1
  424. package/dist/index94.js +44 -38
  425. package/dist/index94.js.map +1 -1
  426. package/dist/index95.cjs +33 -92
  427. package/dist/index95.cjs.map +1 -1
  428. package/dist/index95.js +32 -91
  429. package/dist/index95.js.map +1 -1
  430. package/dist/index96.cjs +16 -34
  431. package/dist/index96.cjs.map +1 -1
  432. package/dist/index96.js +16 -34
  433. package/dist/index96.js.map +1 -1
  434. package/dist/index97.cjs +13 -49
  435. package/dist/index97.cjs.map +1 -1
  436. package/dist/index97.js +14 -50
  437. package/dist/index97.js.map +1 -1
  438. package/dist/index98.cjs +35 -30
  439. package/dist/index98.cjs.map +1 -1
  440. package/dist/index98.js +34 -29
  441. package/dist/index98.js.map +1 -1
  442. package/dist/index99.cjs +43 -57
  443. package/dist/index99.cjs.map +1 -1
  444. package/dist/index99.js +42 -56
  445. package/dist/index99.js.map +1 -1
  446. package/dist/style.css +207 -0
  447. package/dist/types/geo.types.d.ts +45 -0
  448. package/dist/types/geo.types.d.ts.map +1 -0
  449. package/dist/types/index.d.ts +1 -0
  450. package/dist/types/index.d.ts.map +1 -1
  451. package/package.json +13 -2
package/dist/index95.js CHANGED
@@ -1,95 +1,36 @@
1
- import { CHART_COLORS, SCATTER } from "./index59.js";
2
- const AXIS_NAME_GAP = { X: 28, Y: 38 };
3
- const GRID_MARGIN = {
4
- BASE: 8,
5
- TOP: 16,
6
- RIGHT: 16,
7
- X_NAME: 23,
8
- Y_NAME: 34,
9
- LEGEND: 30
10
- };
11
- const UNCATEGORISED_SERIES = "Points";
12
- const escapeHtml = (value) => value.replace(/[&<>"]/g, (char) => `&#${char.charCodeAt(0)};`);
13
- const symbolSizeFor = (weight, minWeight, maxWeight) => {
14
- if (maxWeight === minWeight) return SCATTER.BASE_SYMBOL_SIZE;
15
- const ratio = Math.sqrt((weight - minWeight) / (maxWeight - minWeight));
16
- return SCATTER.MIN_SYMBOL_SIZE + (SCATTER.MAX_SYMBOL_SIZE - SCATTER.MIN_SYMBOL_SIZE) * ratio;
17
- };
18
- const groupByCategory = (points) => {
19
- const groups = /* @__PURE__ */ new Map();
20
- for (const folded of points) {
21
- const key = folded.point.category ?? UNCATEGORISED_SERIES;
22
- const group = groups.get(key);
23
- if (group) group.push(folded);
24
- else groups.set(key, [folded]);
25
- }
26
- return groups;
27
- };
28
- const toDataItem = (folded, sizeOf) => ({
29
- name: folded.point.label,
30
- value: [folded.point.x, folded.point.y, folded.count, folded.index],
31
- symbolSize: sizeOf(folded.point.weight)
32
- });
33
- const buildTooltipFormatter = (config) => (params) => {
34
- const { name, seriesName, value, marker } = params;
35
- const [x, y, count] = value;
36
- const lines = [`${marker} ${escapeHtml(name)}`];
37
- lines.push(`${escapeHtml(config.xLabel ?? "x")}: ${x}`);
38
- lines.push(`${escapeHtml(config.yLabel ?? "y")}: ${y}`);
39
- if (seriesName !== UNCATEGORISED_SERIES) {
40
- lines.push(`${escapeHtml(config.categoryLabel ?? "Category")}: ${escapeHtml(seriesName)}`);
41
- }
42
- if (count > 1) lines.push(`${count} points here`);
43
- return lines.join("<br/>");
44
- };
45
- const buildScatterOption = (points, config) => {
46
- const weights = points.map((p) => p.point.weight).filter((w) => w != null);
47
- const minWeight = weights.length > 0 ? Math.min(...weights) : 0;
48
- const maxWeight = weights.length > 0 ? Math.max(...weights) : 0;
49
- const sizeOf = (weight) => weights.length === 0 ? SCATTER.BASE_SYMBOL_SIZE : symbolSizeFor(weight ?? minWeight, minWeight, maxWeight);
50
- const groups = groupByCategory(points);
51
- const series = [...groups.entries()].map(([category, group], i) => ({
52
- name: category,
53
- type: "scatter",
54
- data: group.map((folded) => toDataItem(folded, sizeOf)),
55
- itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length], opacity: 0.85 },
56
- emphasis: { focus: "series" }
57
- }));
58
- return {
59
- tooltip: { trigger: "item", formatter: buildTooltipFormatter(config) },
60
- legend: config.showLegend ? { bottom: 0, type: "scroll" } : void 0,
61
- grid: {
62
- left: config.yLabel ? GRID_MARGIN.Y_NAME : GRID_MARGIN.BASE,
63
- right: GRID_MARGIN.RIGHT,
64
- top: GRID_MARGIN.TOP,
65
- // Room for the x axis name and the legend, each only when drawn.
66
- bottom: GRID_MARGIN.BASE + (config.xLabel ? GRID_MARGIN.X_NAME : 0) + (config.showLegend ? GRID_MARGIN.LEGEND : 0),
67
- containLabel: true
68
- },
69
- xAxis: {
70
- type: "value",
71
- name: config.xLabel,
72
- nameLocation: "middle",
73
- nameGap: AXIS_NAME_GAP.X,
74
- scale: true
75
- },
76
- yAxis: {
77
- type: "value",
78
- name: config.yLabel,
79
- nameLocation: "middle",
80
- // Without this the y name is drawn horizontally and eats the plot's width.
81
- nameRotate: 90,
82
- nameGap: AXIS_NAME_GAP.Y,
83
- scale: true
84
- },
85
- dataZoom: config.enableDataZoom ? [
86
- { type: "inside", xAxisIndex: 0 },
87
- { type: "inside", yAxisIndex: 0 }
88
- ] : void 0,
89
- series
90
- };
1
+ const root = "krc-root-rUudF";
2
+ const header = "krc-header-zjbPA";
3
+ const title = "krc-title-ScYja";
4
+ const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
5
+ const timeRangeButton = "krc-timeRangeButton-9XCxb";
6
+ const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
7
+ const chartContainer = "krc-chartContainer-6rb4Z";
8
+ const loading = "krc-loading-EWhol";
9
+ const error = "krc-error-erDaP";
10
+ const empty = "krc-empty---cYi";
11
+ const styles = {
12
+ root,
13
+ header,
14
+ title,
15
+ timeRangeGroup,
16
+ timeRangeButton,
17
+ timeRangeButtonActive,
18
+ chartContainer,
19
+ loading,
20
+ error,
21
+ empty
91
22
  };
92
23
  export {
93
- buildScatterOption
24
+ chartContainer,
25
+ styles as default,
26
+ empty,
27
+ error,
28
+ header,
29
+ loading,
30
+ root,
31
+ timeRangeButton,
32
+ timeRangeButtonActive,
33
+ timeRangeGroup,
34
+ title
94
35
  };
95
36
  //# sourceMappingURL=index95.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index95.js","sources":["../src/charts/ScatterChartCard/buildScatterOption.ts"],"sourcesContent":["import type { FoldedPoint } from './foldPoints';\nimport { CHART_COLORS, SCATTER } from '../../constants';\n\n/** Distance from each axis line to its name (px — echarts canvas attributes, not CSS). */\nconst AXIS_NAME_GAP = { X: 28, Y: 38 } as const;\n\n/**\n * Grid margins (px). `containLabel` reserves room for the tick *labels* only, so\n * the axis names and the legend need their own margin or they get clipped at the\n * canvas edge. Each margin must exceed its `AXIS_NAME_GAP` by a text height.\n */\nconst GRID_MARGIN = {\n BASE: 8,\n TOP: 16,\n RIGHT: 16,\n X_NAME: 23,\n Y_NAME: 34,\n LEGEND: 30,\n} as const;\n\n/** Series name used when no point carries a category. */\nconst UNCATEGORISED_SERIES = 'Points';\n\nexport interface ScatterOptionConfig {\n xLabel?: string;\n yLabel?: string;\n categoryLabel?: string;\n showLegend: boolean;\n enableDataZoom: boolean;\n}\n\n/** Point labels come from consumer data and land in the tooltip's HTML. */\nconst escapeHtml = (value: string) =>\n value.replace(/[&<>\"]/g, (char) => `&#${char.charCodeAt(0)};`);\n\n/**\n * Map a weight onto a symbol diameter. The square root keeps the mark *area*\n * proportional to the weight, which is how a reader compares bubble sizes.\n * A dataset whose weights are all equal carries no size information, so it\n * renders at the base size rather than all-maximum.\n */\nconst symbolSizeFor = (weight: number, minWeight: number, maxWeight: number) => {\n if (maxWeight === minWeight) return SCATTER.BASE_SYMBOL_SIZE;\n\n const ratio = Math.sqrt((weight - minWeight) / (maxWeight - minWeight));\n return SCATTER.MIN_SYMBOL_SIZE + (SCATTER.MAX_SYMBOL_SIZE - SCATTER.MIN_SYMBOL_SIZE) * ratio;\n};\n\n/** Group marks by category, preserving first-appearance order. */\nconst groupByCategory = (points: FoldedPoint[]) => {\n const groups = new Map<string, FoldedPoint[]>();\n\n for (const folded of points) {\n const key = folded.point.category ?? UNCATEGORISED_SERIES;\n const group = groups.get(key);\n if (group) group.push(folded);\n else groups.set(key, [folded]);\n }\n\n return groups;\n};\n\n/** `[x, y, count, sourceIndex]` — dims beyond the axes carry the tooltip/click metadata. */\nconst toDataItem = (folded: FoldedPoint, sizeOf: (weight: number | null | undefined) => number) => ({\n name: folded.point.label,\n value: [folded.point.x, folded.point.y, folded.count, folded.index],\n symbolSize: sizeOf(folded.point.weight),\n});\n\nconst buildTooltipFormatter = (config: ScatterOptionConfig) => (params: unknown) => {\n const { name, seriesName, value, marker } = params as {\n name: string;\n seriesName: string;\n value: [number, number, number, number];\n marker: string;\n };\n const [x, y, count] = value;\n\n const lines = [`${marker} ${escapeHtml(name)}`];\n lines.push(`${escapeHtml(config.xLabel ?? 'x')}: ${x}`);\n lines.push(`${escapeHtml(config.yLabel ?? 'y')}: ${y}`);\n\n if (seriesName !== UNCATEGORISED_SERIES) {\n lines.push(`${escapeHtml(config.categoryLabel ?? 'Category')}: ${escapeHtml(seriesName)}`);\n }\n\n if (count > 1) lines.push(`${count} points here`);\n\n return lines.join('<br/>');\n};\n\nexport const buildScatterOption = (points: FoldedPoint[], config: ScatterOptionConfig) => {\n const weights = points.map((p) => p.point.weight).filter((w): w is number => w != null);\n const minWeight = weights.length > 0 ? Math.min(...weights) : 0;\n const maxWeight = weights.length > 0 ? Math.max(...weights) : 0;\n\n // An absent weight sits at the bottom of the scale once any weight is present,\n // and yields the base size when none is.\n const sizeOf = (weight: number | null | undefined) =>\n weights.length === 0\n ? SCATTER.BASE_SYMBOL_SIZE\n : symbolSizeFor(weight ?? minWeight, minWeight, maxWeight);\n\n const groups = groupByCategory(points);\n const series = [...groups.entries()].map(([category, group], i) => ({\n name: category,\n type: 'scatter' as const,\n data: group.map((folded) => toDataItem(folded, sizeOf)),\n itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length], opacity: 0.85 },\n emphasis: { focus: 'series' as const },\n }));\n\n return {\n tooltip: { trigger: 'item' as const, formatter: buildTooltipFormatter(config) },\n legend: config.showLegend ? { bottom: 0, type: 'scroll' as const } : undefined,\n grid: {\n left: config.yLabel ? GRID_MARGIN.Y_NAME : GRID_MARGIN.BASE,\n right: GRID_MARGIN.RIGHT,\n top: GRID_MARGIN.TOP,\n // Room for the x axis name and the legend, each only when drawn.\n bottom:\n GRID_MARGIN.BASE +\n (config.xLabel ? GRID_MARGIN.X_NAME : 0) +\n (config.showLegend ? GRID_MARGIN.LEGEND : 0),\n containLabel: true,\n },\n xAxis: {\n type: 'value' as const,\n name: config.xLabel,\n nameLocation: 'middle' as const,\n nameGap: AXIS_NAME_GAP.X,\n scale: true,\n },\n yAxis: {\n type: 'value' as const,\n name: config.yLabel,\n nameLocation: 'middle' as const,\n // Without this the y name is drawn horizontally and eats the plot's width.\n nameRotate: 90,\n nameGap: AXIS_NAME_GAP.Y,\n scale: true,\n },\n dataZoom: config.enableDataZoom\n ? [\n { type: 'inside' as const, xAxisIndex: 0 },\n { type: 'inside' as const, yAxisIndex: 0 },\n ]\n : undefined,\n series,\n };\n};\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index95.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index96.cjs CHANGED
@@ -1,42 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-pttoq";
4
- const header = "krc-header-npqnm";
5
- const title = "krc-title-Nho7q";
6
- const headerActions = "krc-headerActions-ealva";
7
- const toolbar = "krc-toolbar-JDGNF";
8
- const warning = "krc-warning-zk0fc";
9
- const chartContainer = "krc-chartContainer-9YPrR";
10
- const loading = "krc-loading-kZWgE";
11
- const empty = "krc-empty-JDNOq";
12
- const error = "krc-error-IULEe";
13
- const retryButton = "krc-retryButton-GvyS0";
14
- const compact = "krc-compact-bzibR";
3
+ const root = "krc-root-rzEDE";
4
+ const sidebar = "krc-sidebar-ediN2";
5
+ const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
6
+ const main = "krc-main-E8utR";
7
+ const filterBar = "krc-filterBar-O8ajX";
8
+ const content = "krc-content-lY5l-";
15
9
  const styles = {
16
10
  root,
17
- header,
18
- title,
19
- headerActions,
20
- toolbar,
21
- warning,
22
- chartContainer,
23
- loading,
24
- empty,
25
- error,
26
- retryButton,
27
- compact
11
+ sidebar,
12
+ sidebarCollapsed,
13
+ main,
14
+ filterBar,
15
+ content
28
16
  };
29
- exports.chartContainer = chartContainer;
30
- exports.compact = compact;
17
+ exports.content = content;
31
18
  exports.default = styles;
32
- exports.empty = empty;
33
- exports.error = error;
34
- exports.header = header;
35
- exports.headerActions = headerActions;
36
- exports.loading = loading;
37
- exports.retryButton = retryButton;
19
+ exports.filterBar = filterBar;
20
+ exports.main = main;
38
21
  exports.root = root;
39
- exports.title = title;
40
- exports.toolbar = toolbar;
41
- exports.warning = warning;
22
+ exports.sidebar = sidebar;
23
+ exports.sidebarCollapsed = sidebarCollapsed;
42
24
  //# sourceMappingURL=index96.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index96.js CHANGED
@@ -1,42 +1,24 @@
1
- const root = "krc-root-pttoq";
2
- const header = "krc-header-npqnm";
3
- const title = "krc-title-Nho7q";
4
- const headerActions = "krc-headerActions-ealva";
5
- const toolbar = "krc-toolbar-JDGNF";
6
- const warning = "krc-warning-zk0fc";
7
- const chartContainer = "krc-chartContainer-9YPrR";
8
- const loading = "krc-loading-kZWgE";
9
- const empty = "krc-empty-JDNOq";
10
- const error = "krc-error-IULEe";
11
- const retryButton = "krc-retryButton-GvyS0";
12
- const compact = "krc-compact-bzibR";
1
+ const root = "krc-root-rzEDE";
2
+ const sidebar = "krc-sidebar-ediN2";
3
+ const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
4
+ const main = "krc-main-E8utR";
5
+ const filterBar = "krc-filterBar-O8ajX";
6
+ const content = "krc-content-lY5l-";
13
7
  const styles = {
14
8
  root,
15
- header,
16
- title,
17
- headerActions,
18
- toolbar,
19
- warning,
20
- chartContainer,
21
- loading,
22
- empty,
23
- error,
24
- retryButton,
25
- compact
9
+ sidebar,
10
+ sidebarCollapsed,
11
+ main,
12
+ filterBar,
13
+ content
26
14
  };
27
15
  export {
28
- chartContainer,
29
- compact,
16
+ content,
30
17
  styles as default,
31
- empty,
32
- error,
33
- header,
34
- headerActions,
35
- loading,
36
- retryButton,
18
+ filterBar,
19
+ main,
37
20
  root,
38
- title,
39
- toolbar,
40
- warning
21
+ sidebar,
22
+ sidebarCollapsed
41
23
  };
42
24
  //# sourceMappingURL=index96.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index96.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
package/dist/index97.cjs CHANGED
@@ -1,57 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-W2sel";
4
- const tableContainer = "krc-tableContainer-Ed3uk";
5
- const table = "krc-table-7p0H-";
6
- const th = "krc-th-fNmfv";
7
- const sortable = "krc-sortable-Ve0MQ";
8
- const thContent = "krc-thContent-BRDIL";
9
- const sortIndicator = "krc-sortIndicator-PtGYj";
10
- const resizeHandle = "krc-resizeHandle--St-g";
11
- const td = "krc-td-ZVsrU";
12
- const row = "krc-row-JivMH";
13
- const rowClickable = "krc-rowClickable-lTgQW";
14
- const rowSelected = "krc-rowSelected-Sv0qs";
15
- const skeletonRow = "krc-skeletonRow-uD1y7";
16
- const skeleton = "krc-skeleton-eeYso";
17
- const empty = "krc-empty-xKpKS";
18
- const loadMore = "krc-loadMore-njxDN";
19
- const loadMoreButton = "krc-loadMoreButton-C3Q-f";
3
+ const root = "krc-root-LQf3S";
4
+ const item = "krc-item-Y5RvK";
5
+ const disabled = "krc-disabled-wnQRZ";
6
+ const focused = "krc-focused-hDoa3";
7
+ const icon = "krc-icon-q-Jmu";
20
8
  const styles = {
21
9
  root,
22
- tableContainer,
23
- table,
24
- th,
25
- sortable,
26
- thContent,
27
- sortIndicator,
28
- resizeHandle,
29
- td,
30
- row,
31
- rowClickable,
32
- rowSelected,
33
- skeletonRow,
34
- skeleton,
35
- empty,
36
- loadMore,
37
- loadMoreButton
10
+ item,
11
+ disabled,
12
+ focused,
13
+ icon
38
14
  };
39
15
  exports.default = styles;
40
- exports.empty = empty;
41
- exports.loadMore = loadMore;
42
- exports.loadMoreButton = loadMoreButton;
43
- exports.resizeHandle = resizeHandle;
16
+ exports.disabled = disabled;
17
+ exports.focused = focused;
18
+ exports.icon = icon;
19
+ exports.item = item;
44
20
  exports.root = root;
45
- exports.row = row;
46
- exports.rowClickable = rowClickable;
47
- exports.rowSelected = rowSelected;
48
- exports.skeleton = skeleton;
49
- exports.skeletonRow = skeletonRow;
50
- exports.sortIndicator = sortIndicator;
51
- exports.sortable = sortable;
52
- exports.table = table;
53
- exports.tableContainer = tableContainer;
54
- exports.td = td;
55
- exports.th = th;
56
- exports.thContent = thContent;
57
21
  //# sourceMappingURL=index97.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index97.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index97.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
package/dist/index97.js CHANGED
@@ -1,57 +1,21 @@
1
- const root = "krc-root-W2sel";
2
- const tableContainer = "krc-tableContainer-Ed3uk";
3
- const table = "krc-table-7p0H-";
4
- const th = "krc-th-fNmfv";
5
- const sortable = "krc-sortable-Ve0MQ";
6
- const thContent = "krc-thContent-BRDIL";
7
- const sortIndicator = "krc-sortIndicator-PtGYj";
8
- const resizeHandle = "krc-resizeHandle--St-g";
9
- const td = "krc-td-ZVsrU";
10
- const row = "krc-row-JivMH";
11
- const rowClickable = "krc-rowClickable-lTgQW";
12
- const rowSelected = "krc-rowSelected-Sv0qs";
13
- const skeletonRow = "krc-skeletonRow-uD1y7";
14
- const skeleton = "krc-skeleton-eeYso";
15
- const empty = "krc-empty-xKpKS";
16
- const loadMore = "krc-loadMore-njxDN";
17
- const loadMoreButton = "krc-loadMoreButton-C3Q-f";
1
+ const root = "krc-root-LQf3S";
2
+ const item = "krc-item-Y5RvK";
3
+ const disabled = "krc-disabled-wnQRZ";
4
+ const focused = "krc-focused-hDoa3";
5
+ const icon = "krc-icon-q-Jmu";
18
6
  const styles = {
19
7
  root,
20
- tableContainer,
21
- table,
22
- th,
23
- sortable,
24
- thContent,
25
- sortIndicator,
26
- resizeHandle,
27
- td,
28
- row,
29
- rowClickable,
30
- rowSelected,
31
- skeletonRow,
32
- skeleton,
33
- empty,
34
- loadMore,
35
- loadMoreButton
8
+ item,
9
+ disabled,
10
+ focused,
11
+ icon
36
12
  };
37
13
  export {
38
14
  styles as default,
39
- empty,
40
- loadMore,
41
- loadMoreButton,
42
- resizeHandle,
43
- root,
44
- row,
45
- rowClickable,
46
- rowSelected,
47
- skeleton,
48
- skeletonRow,
49
- sortIndicator,
50
- sortable,
51
- table,
52
- tableContainer,
53
- td,
54
- th,
55
- thContent
15
+ disabled,
16
+ focused,
17
+ icon,
18
+ item,
19
+ root
56
20
  };
57
21
  //# sourceMappingURL=index97.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index97.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index97.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
package/dist/index98.cjs CHANGED
@@ -1,33 +1,38 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const wrap = "krc-wrap-JRsc1";
4
- const root = "krc-root-k9ocd";
5
- const colh = "krc-colh-Fi0Kr";
6
- const rowh = "krc-rowh-bTG4G";
7
- const corner = "krc-corner-MNGJd";
8
- const cell = "krc-cell-i0lDG";
9
- const bad = "krc-bad-Hb1F3";
10
- const ok = "krc-ok-hx6Lc";
11
- const clickable = "krc-clickable-Q8fZg";
12
- const styles = {
13
- wrap,
14
- root,
15
- colh,
16
- rowh,
17
- corner,
18
- cell,
19
- bad,
20
- ok,
21
- clickable
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const MAX_LATITUDE = 90;
4
+ const MAX_LONGITUDE = 180;
5
+ const hasUsableCoordinates = (point) => Number.isFinite(point.latitude) && Number.isFinite(point.longitude) && Math.abs(point.latitude) <= MAX_LATITUDE && Math.abs(point.longitude) <= MAX_LONGITUDE;
6
+ const sample = (points, cap) => {
7
+ if (cap <= 1) return points.slice(0, Math.max(cap, 0));
8
+ const step = (points.length - 1) / (cap - 1);
9
+ return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
22
10
  };
23
- exports.bad = bad;
24
- exports.cell = cell;
25
- exports.clickable = clickable;
26
- exports.colh = colh;
27
- exports.corner = corner;
28
- exports.default = styles;
29
- exports.ok = ok;
30
- exports.root = root;
31
- exports.rowh = rowh;
32
- exports.wrap = wrap;
11
+ const boundsOf = (points) => {
12
+ if (points.length === 0) return null;
13
+ const latitudes = points.map((p) => p.point.latitude);
14
+ const longitudes = points.map((p) => p.point.longitude);
15
+ return [
16
+ [Math.min(...latitudes), Math.min(...longitudes)],
17
+ [Math.max(...latitudes), Math.max(...longitudes)]
18
+ ];
19
+ };
20
+ const normalizePoints = (points, maxPoints) => {
21
+ const usable = [];
22
+ points.forEach((point, sourceIndex) => {
23
+ if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
24
+ });
25
+ const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;
26
+ return {
27
+ drawn,
28
+ bounds: boundsOf(drawn),
29
+ info: {
30
+ total: points.length,
31
+ drawn: drawn.length,
32
+ skipped: points.length - usable.length,
33
+ dropped: usable.length - drawn.length
34
+ }
35
+ };
36
+ };
37
+ exports.normalizePoints = normalizePoints;
33
38
  //# sourceMappingURL=index98.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index98.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index98.cjs","sources":["../src/geo/GeoMapCard/normalizePoints.ts"],"sourcesContent":["import type { GeoPoint, GeoRenderInfo } from '../../types/geo.types';\n\n/** A point that survived validation, paired with where it came from. */\nexport interface DrawnPoint {\n point: GeoPoint;\n /** Index in the original `points` array, not in the normalised one. */\n sourceIndex: number;\n}\n\n/** South-west and north-east corners, in Leaflet's `[lat, lng]` order. */\nexport type GeoBounds = [[number, number], [number, number]];\n\nexport interface NormalizeResult {\n drawn: DrawnPoint[];\n bounds: GeoBounds | null;\n info: GeoRenderInfo;\n}\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Garbage coordinates are the norm in network inventories, not the exception:\n * nulls, empty strings coerced to NaN and swapped lat/lng all show up.\n */\nconst hasUsableCoordinates = (point: GeoPoint): boolean =>\n Number.isFinite(point.latitude) &&\n Number.isFinite(point.longitude) &&\n Math.abs(point.latitude) <= MAX_LATITUDE &&\n Math.abs(point.longitude) <= MAX_LONGITUDE;\n\n/**\n * Evenly spread `cap` markers across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same map.\n */\nconst sample = (points: DrawnPoint[], cap: number): DrawnPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const step = (points.length - 1) / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\nconst boundsOf = (points: DrawnPoint[]): GeoBounds | null => {\n if (points.length === 0) return null;\n\n const latitudes = points.map((p) => p.point.latitude);\n const longitudes = points.map((p) => p.point.longitude);\n\n return [\n [Math.min(...latitudes), Math.min(...longitudes)],\n [Math.max(...latitudes), Math.max(...longitudes)],\n ];\n};\n\n/**\n * Drop the unplottable points, cap the marker count, then report what happened.\n *\n * Coincident points are *not* folded the way the scatter chart folds them: on a\n * map two cells at the same site are two cells, and zooming already separates\n * them.\n *\n * The reported counts satisfy `total === drawn + skipped + dropped`.\n */\nexport const normalizePoints = (points: GeoPoint[], maxPoints: number): NormalizeResult => {\n const usable: DrawnPoint[] = [];\n\n points.forEach((point, sourceIndex) => {\n if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });\n });\n\n const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;\n\n return {\n drawn,\n bounds: boundsOf(drawn),\n info: {\n total: points.length,\n drawn: drawn.length,\n skipped: points.length - usable.length,\n dropped: usable.length - drawn.length,\n },\n };\n};\n"],"names":[],"mappings":";;AAkBA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AAMtB,MAAM,uBAAuB,CAAC,UAC5B,OAAO,SAAS,MAAM,QAAQ,KAC9B,OAAO,SAAS,MAAM,SAAS,KAC/B,KAAK,IAAI,MAAM,QAAQ,KAAK,gBAC5B,KAAK,IAAI,MAAM,SAAS,KAAK;AAM/B,MAAM,SAAS,CAAC,QAAsB,QAA8B;AAClE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,QAAQ,OAAO,SAAS,MAAM,MAAM;AAE1C,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAEA,MAAM,WAAW,CAAC,WAA2C;AAC3D,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,YAAY,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,QAAQ;AACpD,QAAM,aAAa,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,SAAS;AAEtD,SAAO;AAAA,IACL,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,IAChD,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,EAAA;AAEpD;AAWO,MAAM,kBAAkB,CAAC,QAAoB,cAAuC;AACzF,QAAM,SAAuB,CAAA;AAE7B,SAAO,QAAQ,CAAC,OAAO,gBAAgB;AACrC,QAAI,qBAAqB,KAAK,EAAG,QAAO,KAAK,EAAE,OAAO,aAAa;AAAA,EACrE,CAAC;AAED,QAAM,QAAQ,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEtE,SAAO;AAAA,IACL;AAAA,IACA,QAAQ,SAAS,KAAK;AAAA,IACtB,MAAM;AAAA,MACJ,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,SAAS,OAAO,SAAS,OAAO;AAAA,MAChC,SAAS,OAAO,SAAS,MAAM;AAAA,IAAA;AAAA,EACjC;AAEJ;;"}
package/dist/index98.js CHANGED
@@ -1,33 +1,38 @@
1
- const wrap = "krc-wrap-JRsc1";
2
- const root = "krc-root-k9ocd";
3
- const colh = "krc-colh-Fi0Kr";
4
- const rowh = "krc-rowh-bTG4G";
5
- const corner = "krc-corner-MNGJd";
6
- const cell = "krc-cell-i0lDG";
7
- const bad = "krc-bad-Hb1F3";
8
- const ok = "krc-ok-hx6Lc";
9
- const clickable = "krc-clickable-Q8fZg";
10
- const styles = {
11
- wrap,
12
- root,
13
- colh,
14
- rowh,
15
- corner,
16
- cell,
17
- bad,
18
- ok,
19
- clickable
1
+ const MAX_LATITUDE = 90;
2
+ const MAX_LONGITUDE = 180;
3
+ const hasUsableCoordinates = (point) => Number.isFinite(point.latitude) && Number.isFinite(point.longitude) && Math.abs(point.latitude) <= MAX_LATITUDE && Math.abs(point.longitude) <= MAX_LONGITUDE;
4
+ const sample = (points, cap) => {
5
+ if (cap <= 1) return points.slice(0, Math.max(cap, 0));
6
+ const step = (points.length - 1) / (cap - 1);
7
+ return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
8
+ };
9
+ const boundsOf = (points) => {
10
+ if (points.length === 0) return null;
11
+ const latitudes = points.map((p) => p.point.latitude);
12
+ const longitudes = points.map((p) => p.point.longitude);
13
+ return [
14
+ [Math.min(...latitudes), Math.min(...longitudes)],
15
+ [Math.max(...latitudes), Math.max(...longitudes)]
16
+ ];
17
+ };
18
+ const normalizePoints = (points, maxPoints) => {
19
+ const usable = [];
20
+ points.forEach((point, sourceIndex) => {
21
+ if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
22
+ });
23
+ const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;
24
+ return {
25
+ drawn,
26
+ bounds: boundsOf(drawn),
27
+ info: {
28
+ total: points.length,
29
+ drawn: drawn.length,
30
+ skipped: points.length - usable.length,
31
+ dropped: usable.length - drawn.length
32
+ }
33
+ };
20
34
  };
21
35
  export {
22
- bad,
23
- cell,
24
- clickable,
25
- colh,
26
- corner,
27
- styles as default,
28
- ok,
29
- root,
30
- rowh,
31
- wrap
36
+ normalizePoints
32
37
  };
33
38
  //# sourceMappingURL=index98.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index98.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index98.js","sources":["../src/geo/GeoMapCard/normalizePoints.ts"],"sourcesContent":["import type { GeoPoint, GeoRenderInfo } from '../../types/geo.types';\n\n/** A point that survived validation, paired with where it came from. */\nexport interface DrawnPoint {\n point: GeoPoint;\n /** Index in the original `points` array, not in the normalised one. */\n sourceIndex: number;\n}\n\n/** South-west and north-east corners, in Leaflet's `[lat, lng]` order. */\nexport type GeoBounds = [[number, number], [number, number]];\n\nexport interface NormalizeResult {\n drawn: DrawnPoint[];\n bounds: GeoBounds | null;\n info: GeoRenderInfo;\n}\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Garbage coordinates are the norm in network inventories, not the exception:\n * nulls, empty strings coerced to NaN and swapped lat/lng all show up.\n */\nconst hasUsableCoordinates = (point: GeoPoint): boolean =>\n Number.isFinite(point.latitude) &&\n Number.isFinite(point.longitude) &&\n Math.abs(point.latitude) <= MAX_LATITUDE &&\n Math.abs(point.longitude) <= MAX_LONGITUDE;\n\n/**\n * Evenly spread `cap` markers across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same map.\n */\nconst sample = (points: DrawnPoint[], cap: number): DrawnPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const step = (points.length - 1) / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\nconst boundsOf = (points: DrawnPoint[]): GeoBounds | null => {\n if (points.length === 0) return null;\n\n const latitudes = points.map((p) => p.point.latitude);\n const longitudes = points.map((p) => p.point.longitude);\n\n return [\n [Math.min(...latitudes), Math.min(...longitudes)],\n [Math.max(...latitudes), Math.max(...longitudes)],\n ];\n};\n\n/**\n * Drop the unplottable points, cap the marker count, then report what happened.\n *\n * Coincident points are *not* folded the way the scatter chart folds them: on a\n * map two cells at the same site are two cells, and zooming already separates\n * them.\n *\n * The reported counts satisfy `total === drawn + skipped + dropped`.\n */\nexport const normalizePoints = (points: GeoPoint[], maxPoints: number): NormalizeResult => {\n const usable: DrawnPoint[] = [];\n\n points.forEach((point, sourceIndex) => {\n if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });\n });\n\n const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;\n\n return {\n drawn,\n bounds: boundsOf(drawn),\n info: {\n total: points.length,\n drawn: drawn.length,\n skipped: points.length - usable.length,\n dropped: usable.length - drawn.length,\n },\n };\n};\n"],"names":[],"mappings":"AAkBA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AAMtB,MAAM,uBAAuB,CAAC,UAC5B,OAAO,SAAS,MAAM,QAAQ,KAC9B,OAAO,SAAS,MAAM,SAAS,KAC/B,KAAK,IAAI,MAAM,QAAQ,KAAK,gBAC5B,KAAK,IAAI,MAAM,SAAS,KAAK;AAM/B,MAAM,SAAS,CAAC,QAAsB,QAA8B;AAClE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,QAAQ,OAAO,SAAS,MAAM,MAAM;AAE1C,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAEA,MAAM,WAAW,CAAC,WAA2C;AAC3D,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,YAAY,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,QAAQ;AACpD,QAAM,aAAa,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,SAAS;AAEtD,SAAO;AAAA,IACL,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,IAChD,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,EAAA;AAEpD;AAWO,MAAM,kBAAkB,CAAC,QAAoB,cAAuC;AACzF,QAAM,SAAuB,CAAA;AAE7B,SAAO,QAAQ,CAAC,OAAO,gBAAgB;AACrC,QAAI,qBAAqB,KAAK,EAAG,QAAO,KAAK,EAAE,OAAO,aAAa;AAAA,EACrE,CAAC;AAED,QAAM,QAAQ,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEtE,SAAO;AAAA,IACL;AAAA,IACA,QAAQ,SAAS,KAAK;AAAA,IACtB,MAAM;AAAA,MACJ,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,SAAS,OAAO,SAAS,OAAO;AAAA,MAChC,SAAS,OAAO,SAAS,MAAM;AAAA,IAAA;AAAA,EACjC;AAEJ;"}