boardplot 0.55.0 → 0.57.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.
- package/CHANGELOG.md +153 -0
- package/README.md +3 -3
- package/dist/{ReaderBox-3FFPHWSI.js → ReaderBox-GCIITQCX.js} +5 -5
- package/dist/{annotateEngine-ET4DM2OK.js → annotateEngine-JMZI6QEG.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-RO2PSSAI.js → chunk-26WNBTWB.js} +21 -5
- package/dist/{chunk-3AJY353W.js → chunk-2AJWRVZ2.js} +4 -3
- package/dist/{chunk-NVGAEQ6M.js → chunk-2BHLRHF2.js} +2 -2
- package/dist/{chunk-CZ3WCG55.js → chunk-2HD5RY2U.js} +11 -3
- package/dist/{chunk-HR2BKLS3.js → chunk-2I76VFMZ.js} +186 -241
- package/dist/{chunk-3B3CFJ2H.js → chunk-2KCK63DD.js} +2 -2
- package/dist/{chunk-GDZI5ZJ7.js → chunk-2WTD3GCR.js} +11 -3
- package/dist/{chunk-EBC5TMI2.js → chunk-2X6XY4K4.js} +27 -10
- package/dist/{chunk-MJMOKPTF.js → chunk-3DUGZ7ML.js} +196 -138
- package/dist/{chunk-N5TZL74Y.js → chunk-3LNVEE5Z.js} +1 -1
- package/dist/{chunk-DB2JKPOX.js → chunk-43PCSBVQ.js} +567 -14
- package/dist/{chunk-WEMUCDPK.js → chunk-4JGBCBDZ.js} +1 -1
- package/dist/{chunk-7UPZPFHQ.js → chunk-4JNHF6JW.js} +12 -12
- package/dist/{chunk-4X3HNETE.js → chunk-4RN4OM6I.js} +3 -3
- package/dist/{chunk-Z7NHFNH3.js → chunk-4U2WSW6F.js} +107 -26
- package/dist/{chunk-6D4EO3S7.js → chunk-53OEKS4L.js} +5 -3
- package/dist/{chunk-E44W4EEG.js → chunk-54HEIM2A.js} +2 -2
- package/dist/{chunk-CLGUFVHM.js → chunk-5H4HFRDO.js} +6 -6
- package/dist/{chunk-SFG7NG23.js → chunk-5HTGSB6Y.js} +3 -3
- package/dist/{chunk-WXJ5MHLH.js → chunk-5JTRCSBN.js} +1 -1
- package/dist/{chunk-4Y7BA2NW.js → chunk-5P4MXWKP.js} +4 -4
- package/dist/{chunk-MLW72KWN.js → chunk-5RHP7YTL.js} +5 -5
- package/dist/{chunk-AB35GVPG.js → chunk-5TUDYKNL.js} +41 -31
- package/dist/{chunk-HZUAEMN5.js → chunk-5WSIH4SR.js} +1 -1
- package/dist/{chunk-YTCIGJUU.js → chunk-62JZL6FW.js} +45 -37
- package/dist/{chunk-S7NRL66K.js → chunk-6EE6XEMA.js} +4 -4
- package/dist/chunk-6JXBLQJ2.js +32 -0
- package/dist/{chunk-BGJRCG7N.js → chunk-6KHRMK3I.js} +46 -26
- package/dist/{chunk-3OZRODC4.js → chunk-6LQKU6YN.js} +4 -4
- package/dist/chunk-6VU2XI3W.js +89 -0
- package/dist/{chunk-E6HDUEGK.js → chunk-6WJOHZPW.js} +5 -5
- package/dist/{chunk-XJQXFVXY.js → chunk-6XU5XGYV.js} +7 -8
- package/dist/{chunk-QOWE55RR.js → chunk-6ZN2XJFI.js} +11 -6
- package/dist/{chunk-4WT3T5SH.js → chunk-72OJBDRB.js} +205 -60
- package/dist/{chunk-GFIT3FRE.js → chunk-73O6AOAA.js} +63 -47
- package/dist/{chunk-DEYAI662.js → chunk-76UL4CT4.js} +60 -24
- package/dist/chunk-7BQK2UDV.js +13 -0
- package/dist/{chunk-NHYKSPL4.js → chunk-7EQU2TUN.js} +304 -119
- package/dist/{chunk-FS6ZE5TG.js → chunk-7FAO4ICF.js} +2 -2
- package/dist/{chunk-LSF76AS3.js → chunk-7MYJUJZV.js} +6 -2
- package/dist/{chunk-D2QMNHCC.js → chunk-7P7D6WXR.js} +11 -2
- package/dist/{chunk-GCSCHK5Y.js → chunk-A33MFWHW.js} +3 -3
- package/dist/{chunk-3C24WWUQ.js → chunk-A6XCVOC5.js} +1 -1
- package/dist/{chunk-O7DVW3IE.js → chunk-AFA32LHN.js} +134 -37
- package/dist/{chunk-WALYNKBN.js → chunk-AFGQXMKT.js} +264 -88
- package/dist/{chunk-ZTMZOKVC.js → chunk-AKJO6N4K.js} +3 -3
- package/dist/{chunk-P6TA7M3G.js → chunk-ANNQJWDX.js} +11 -11
- package/dist/{chunk-KFGZMHIB.js → chunk-AOIZJ7GR.js} +7 -7
- package/dist/chunk-B5A7X2BA.js +44 -0
- package/dist/{chunk-HGT3UKDW.js → chunk-BDCKHLUB.js} +16 -16
- package/dist/{chunk-NUCYUKVH.js → chunk-BFDPY7JM.js} +10 -3
- package/dist/{chunk-BK6P6KMW.js → chunk-BM2A3IGQ.js} +1 -1
- package/dist/{chunk-H3AEYPRP.js → chunk-BO5EJBLH.js} +249 -129
- package/dist/chunk-BQIADGJB.js +23 -0
- package/dist/{chunk-F6CVYNDY.js → chunk-BY5JGQFZ.js} +24 -7
- package/dist/{chunk-WDIVAU5U.js → chunk-C5SQEYTQ.js} +78 -57
- package/dist/{chunk-NCZWLV7T.js → chunk-CEMXGMQN.js} +2 -2
- package/dist/{chunk-6H3OSHEY.js → chunk-CIDOL4FO.js} +5 -5
- package/dist/{chunk-WAPCCJUB.js → chunk-CT4RFZO4.js} +6 -6
- package/dist/{chunk-7Q37C6GZ.js → chunk-CV3NC75L.js} +1 -1
- package/dist/{chunk-GDVR3XHT.js → chunk-D3PQAVFW.js} +23 -13
- package/dist/{chunk-GMJFCBR6.js → chunk-D5G67OER.js} +1 -1
- package/dist/{chunk-BFFPYT3Y.js → chunk-D5RAVZ5C.js} +6 -7
- package/dist/{chunk-FQF7GSJK.js → chunk-DJBMA4FW.js} +4 -4
- package/dist/{chunk-4DZFR52I.js → chunk-DPUCT567.js} +2 -2
- package/dist/{chunk-ZHFUMVW7.js → chunk-DYSEZVIJ.js} +18 -2
- package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
- package/dist/{chunk-YXM4W3TN.js → chunk-EDBUVDRI.js} +118 -68
- package/dist/{chunk-JBMWRXDS.js → chunk-EEBMK6T6.js} +6 -6
- package/dist/{chunk-CYKIX3IQ.js → chunk-EEL2N4Y6.js} +7 -8
- package/dist/{chunk-PYV6ZIR6.js → chunk-EFKFZNQC.js} +24 -18
- package/dist/{chunk-IOKWBUQP.js → chunk-EHNGPUTO.js} +6 -6
- package/dist/{chunk-ZBSNF5F7.js → chunk-EHQLLZCQ.js} +49 -22
- package/dist/{chunk-ONKSGT2M.js → chunk-EWR6WVOV.js} +6 -6
- package/dist/{chunk-MTRV3BJL.js → chunk-EY4OA4OF.js} +1005 -666
- package/dist/{chunk-Y3L655X6.js → chunk-F4JAGDPD.js} +6 -6
- package/dist/{chunk-LRCO4G7C.js → chunk-FAFUMSPR.js} +35 -26
- package/dist/{chunk-63L35UCI.js → chunk-FERP4WS3.js} +19 -9
- package/dist/{chunk-N5HN5QGH.js → chunk-FF7MV4D4.js} +1 -1
- package/dist/{chunk-G63WXSQP.js → chunk-FJKFYQ5I.js} +23 -18
- package/dist/chunk-FL3FQ2YA.js +27 -0
- package/dist/{chunk-YOOHNQ3L.js → chunk-FX5VZK5F.js} +4 -0
- package/dist/{chunk-37A6CLR5.js → chunk-G5BUGYIL.js} +70 -18
- package/dist/{chunk-JU7S52HI.js → chunk-G5CELEUR.js} +6 -6
- package/dist/{chunk-EW47LNWH.js → chunk-GADI2DU7.js} +11 -10
- package/dist/{chunk-F6OLHND5.js → chunk-GAFEN3H7.js} +2 -2
- package/dist/{chunk-EXDMYV5W.js → chunk-GC4WOLV3.js} +1 -1
- package/dist/{chunk-WFSOKGGA.js → chunk-GHFTKVJN.js} +1 -1
- package/dist/chunk-GKDUIDU6.js +138 -0
- package/dist/{chunk-LA5OYJ5P.js → chunk-GKQLKUMF.js} +188 -84
- package/dist/{chunk-LLDKKEUD.js → chunk-GS5UG6QD.js} +1 -1
- package/dist/{chunk-BWVNCLUS.js → chunk-H2POQ4LB.js} +5 -5
- package/dist/{chunk-WSJDLZSZ.js → chunk-H3EWFSWI.js} +97 -53
- package/dist/{chunk-XPOMQWXY.js → chunk-H6EJ63QN.js} +20 -18
- package/dist/{chunk-Q3E74U2W.js → chunk-HB3TH7GY.js} +3 -3
- package/dist/{chunk-MLGEBFEX.js → chunk-HC6WHTBX.js} +2 -2
- package/dist/{chunk-X7XTIM6U.js → chunk-HDSHS2QZ.js} +47 -32
- package/dist/{chunk-QBJDHFJJ.js → chunk-HFFKN7PA.js} +11 -6
- package/dist/{chunk-K5S3K6QK.js → chunk-HGPFEG2L.js} +7 -8
- package/dist/{chunk-7Z73MM35.js → chunk-HVX2E26J.js} +46 -26
- package/dist/{chunk-KAYBRD4F.js → chunk-I3DLERI7.js} +2 -2
- package/dist/{chunk-SPSGUFTI.js → chunk-I4NUYVP5.js} +1 -1
- package/dist/{chunk-OHGEDG46.js → chunk-I5ZADE2U.js} +1 -1
- package/dist/{chunk-CPGASWNN.js → chunk-I65OLJ2X.js} +1 -1
- package/dist/{chunk-LAVVML3X.js → chunk-I6QGYRY4.js} +3 -3
- package/dist/{chunk-N7N5NIAU.js → chunk-I7KDPCC7.js} +3 -3
- package/dist/{chunk-UF3HSFAE.js → chunk-IFURKTOL.js} +3 -3
- package/dist/{chunk-Y54LU4CU.js → chunk-IPWUBZ4P.js} +1 -1
- package/dist/{chunk-IQDMZ33D.js → chunk-IRXTNSZL.js} +10 -10
- package/dist/{chunk-GD5TYS5R.js → chunk-IUVJVMKS.js} +13 -13
- package/dist/{chunk-E5OEWMNX.js → chunk-IVQT2E3Y.js} +66 -36
- package/dist/{chunk-7DAH2E4T.js → chunk-IW3YUMPI.js} +2 -2
- package/dist/chunk-IXM6BAM4.js +53 -0
- package/dist/{chunk-XVUQMZWV.js → chunk-IZRTNCJQ.js} +5 -5
- package/dist/{chunk-KZH2QI6S.js → chunk-J22ETKDJ.js} +2 -2
- package/dist/{chunk-HJRNBKIT.js → chunk-JARJP576.js} +3 -3
- package/dist/{chunk-4YHZSPAJ.js → chunk-JHWDTV4K.js} +5 -1
- package/dist/{chunk-PQYJZMCR.js → chunk-JIH52I36.js} +79 -79
- package/dist/{chunk-LFUJTEJO.js → chunk-JKXJWCJ5.js} +71 -36
- package/dist/{chunk-2BP6X5GX.js → chunk-JMOBA5ES.js} +2 -2
- package/dist/{chunk-2TAK2ELB.js → chunk-JMXNXLAC.js} +5 -1
- package/dist/{chunk-Z5V6ZM76.js → chunk-JRRSKCGG.js} +3 -3
- package/dist/{chunk-IVRYF7QA.js → chunk-JSA3ESEJ.js} +1 -1
- package/dist/{chunk-NOCIN2EM.js → chunk-K6Y4HBK7.js} +32 -32
- package/dist/{chunk-WQT6HIIY.js → chunk-KAAB2DIV.js} +23 -13
- package/dist/{chunk-GM2HIU6C.js → chunk-KF3ZHLHQ.js} +7 -8
- package/dist/{chunk-3XOWXLLQ.js → chunk-KGS5Z7SL.js} +3 -3
- package/dist/{chunk-AIU4GZV5.js → chunk-KIXNHDXS.js} +7 -8
- package/dist/{chunk-ILFQ75N4.js → chunk-KJLH5EHD.js} +29 -29
- package/dist/{chunk-UIYXMPDW.js → chunk-KLQKHA3T.js} +6 -6
- package/dist/chunk-KQ2WZ6BY.js +11 -0
- package/dist/{chunk-5SLJGRUO.js → chunk-KUMJI5B6.js} +32 -18
- package/dist/{chunk-XYYRHGQI.js → chunk-L2XRUG4P.js} +7 -8
- package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
- package/dist/{chunk-RTXRIZYU.js → chunk-LFX5BERN.js} +167 -70
- package/dist/{chunk-D7G27EYZ.js → chunk-LGMV7ZV4.js} +4 -4
- package/dist/{chunk-H4VDQ7OE.js → chunk-LO3AGGE3.js} +7 -8
- package/dist/{chunk-UNMIUILK.js → chunk-LSKCKGCF.js} +5 -1
- package/dist/{chunk-CVIW2MV4.js → chunk-LSR3SBJ4.js} +78 -37
- package/dist/{chunk-V634AXDM.js → chunk-LUZ7HXBT.js} +1 -1
- package/dist/{chunk-B3AXM3MT.js → chunk-LW4ZQGVL.js} +2 -2
- package/dist/{chunk-H3IBJQ5A.js → chunk-M2OQK2FO.js} +1 -1
- package/dist/{chunk-AZM4YNRE.js → chunk-M74H7QYD.js} +2 -2
- package/dist/{chunk-M427S3G7.js → chunk-MOQFYJ3F.js} +6 -6
- package/dist/{chunk-QRVIS2QB.js → chunk-MQ5EKWIG.js} +51 -9
- package/dist/{chunk-LHKDZAWN.js → chunk-MSYTF3DZ.js} +10 -3
- package/dist/{chunk-LD4LML5P.js → chunk-MTCDGSYW.js} +9 -1
- package/dist/{chunk-KHRAJDBM.js → chunk-NCCDEUHD.js} +1 -1
- package/dist/{chunk-IGVAWAOK.js → chunk-NIDH22DI.js} +31 -7
- package/dist/{chunk-IF2ZABAM.js → chunk-NINK4G7U.js} +2 -2
- package/dist/{chunk-F5V7YFKS.js → chunk-NO7GRVUU.js} +10 -8
- package/dist/{chunk-EBVJCVXL.js → chunk-NRYERHEI.js} +6 -6
- package/dist/{chunk-OJ2BPQGQ.js → chunk-O4D27FKH.js} +1 -1
- package/dist/{chunk-RYPJB3RO.js → chunk-O7Y6RJ4D.js} +23 -11
- package/dist/{chunk-2C4SYWZ3.js → chunk-OAT6FWKL.js} +7 -8
- package/dist/{chunk-VL7WLE4H.js → chunk-OF7FMGH5.js} +6 -6
- package/dist/{chunk-V3MSLNSD.js → chunk-OKM5LYYP.js} +7 -8
- package/dist/{chunk-YV5KYGE5.js → chunk-OQQMDSCC.js} +1 -1
- package/dist/{chunk-QKWBDH2L.js → chunk-OTGNVAI4.js} +2 -2
- package/dist/{chunk-HFRQLMKK.js → chunk-PSYPB22T.js} +3 -3
- package/dist/{chunk-JXBZIJCG.js → chunk-PYGEIPPH.js} +1 -1
- package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
- package/dist/{chunk-MQYIBGZE.js → chunk-Q7VPTN5X.js} +4 -4
- package/dist/{chunk-XZLU3G23.js → chunk-QFIRPOXR.js} +6 -2
- package/dist/{chunk-QBRRJ5OR.js → chunk-QHPJ5ZKS.js} +6 -6
- package/dist/{chunk-R27IDIJI.js → chunk-QLWUFEKR.js} +6 -6
- package/dist/{chunk-COQEHO7B.js → chunk-QNLESRH6.js} +3 -1
- package/dist/{chunk-5UVJKB7L.js → chunk-QRZESG66.js} +40 -29
- package/dist/{chunk-KND4OM4B.js → chunk-QYOZ46ZQ.js} +70 -23
- package/dist/{chunk-HLOXWM2O.js → chunk-QZMLSK43.js} +244 -74
- package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
- package/dist/{chunk-AF7EB6N6.js → chunk-RHBQ2Q5H.js} +104 -47
- package/dist/{chunk-Y2CAIAUI.js → chunk-RHVP62HI.js} +6 -6
- package/dist/{chunk-EAR43REB.js → chunk-RMVCKO6N.js} +16 -14
- package/dist/chunk-RRPTQGRU.js +47 -0
- package/dist/{chunk-IF76JRXT.js → chunk-S2TSXUYP.js} +6 -6
- package/dist/{chunk-O2KKQNGW.js → chunk-SD6ENKTO.js} +7 -2
- package/dist/{chunk-J5PL6JLL.js → chunk-SGDWLXUC.js} +1 -1
- package/dist/{chunk-75TWO5B2.js → chunk-SHAAMKN7.js} +45 -24
- package/dist/{chunk-NB7M4KX4.js → chunk-SHCW2TCA.js} +11 -11
- package/dist/{chunk-3ZAH24P6.js → chunk-SSZB3VXG.js} +19 -19
- package/dist/chunk-SXAZDIGM.js +84 -0
- package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
- package/dist/{chunk-ODZJ4LW7.js → chunk-T3WCDDIL.js} +7 -2
- package/dist/{chunk-OOFSQ5AS.js → chunk-T5MBORBK.js} +1 -1
- package/dist/{chunk-OY2UJ4XK.js → chunk-TDDSWNGD.js} +25 -17
- package/dist/{chunk-5DMHMQFP.js → chunk-TGR6PRKG.js} +3 -3
- package/dist/{chunk-EGPXEY2K.js → chunk-TKERVBJ3.js} +7 -8
- package/dist/{chunk-6C64IBOG.js → chunk-TMXRTYGT.js} +10 -4
- package/dist/{chunk-RNIYG6PI.js → chunk-TQ5HHNM3.js} +2 -2
- package/dist/{chunk-LF6RTFNK.js → chunk-TWRFVW3J.js} +5 -3
- package/dist/{chunk-7FKY6YWU.js → chunk-TXMS7QUJ.js} +3 -3
- package/dist/{chunk-H5L2P2GO.js → chunk-UBXIGE2P.js} +3 -2
- package/dist/{chunk-7Q2WV6D2.js → chunk-UCIAHSJK.js} +2 -2
- package/dist/{chunk-BVYIKLQ5.js → chunk-UD6U4EF5.js} +1 -1
- package/dist/{chunk-4CJ6UCX4.js → chunk-UFZXZJJG.js} +5 -5
- package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
- package/dist/{chunk-CKNOLGRR.js → chunk-UP4JSNDR.js} +1 -1
- package/dist/{chunk-3B3K7TD5.js → chunk-USFIDSTO.js} +8 -6
- package/dist/{chunk-PZ46S2SY.js → chunk-V3UE3TB7.js} +2 -2
- package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
- package/dist/{chunk-BSATR6ZO.js → chunk-V62B23VC.js} +13 -1
- package/dist/{chunk-NA6WLZ66.js → chunk-VFLMBA2M.js} +68 -18
- package/dist/chunk-VJ7VBB6S.js +58 -0
- package/dist/{chunk-32IKJMUF.js → chunk-VM5CQ7CG.js} +3 -3
- package/dist/{chunk-6WZZADRL.js → chunk-VMGTNB6H.js} +6 -6
- package/dist/{chunk-WWIY6BBY.js → chunk-VT7PBGL2.js} +8 -8
- package/dist/{chunk-3L2VXXM4.js → chunk-VY2NPB2Q.js} +2 -2
- package/dist/{chunk-QEP3X3OV.js → chunk-VY67Q6CJ.js} +20 -20
- package/dist/{chunk-W45AR6EW.js → chunk-W5SVS4B6.js} +2 -2
- package/dist/{chunk-U7W7GYXP.js → chunk-W7Q6PLT4.js} +37 -37
- package/dist/{chunk-7GVYMGLK.js → chunk-WDAZ2MT4.js} +8 -4
- package/dist/{chunk-T5Y4HXYO.js → chunk-WE5WVQE4.js} +13 -1
- package/dist/chunk-WJQX7HBH.js +54 -0
- package/dist/{chunk-EC2PGJ64.js → chunk-WKWCNS6K.js} +6 -6
- package/dist/{chunk-2ALFFOKB.js → chunk-WSKZZ2ZB.js} +14 -14
- package/dist/{chunk-5SHI57XD.js → chunk-WZB6R2ZX.js} +7 -5
- package/dist/{chunk-MEMPP7VZ.js → chunk-X5OVVMZX.js} +1 -1
- package/dist/{chunk-UDKYY27B.js → chunk-XCROSJ2Z.js} +1 -1
- package/dist/{chunk-ROLR7HRB.js → chunk-XFCBH3TI.js} +3 -3
- package/dist/{chunk-XMN3Z43K.js → chunk-XJUZC53Y.js} +1 -1
- package/dist/chunk-XN7JDII2.js +2047 -0
- package/dist/{chunk-RUWNG2JC.js → chunk-XNV7VOIT.js} +4 -4
- package/dist/{chunk-KC52E5G4.js → chunk-XR7VOF2V.js} +10 -8
- package/dist/{chunk-Z2X4JQNY.js → chunk-XYUXB5VK.js} +8 -3
- package/dist/{chunk-SC42DPNV.js → chunk-Y5IKCXQR.js} +7 -8
- package/dist/{chunk-YLC42C3M.js → chunk-Y5WHM2Q5.js} +1 -1
- package/dist/{chunk-IGNBQT23.js → chunk-Y7Q3VEYC.js} +96 -5
- package/dist/{chunk-O6NJDRXE.js → chunk-YB6QGOCO.js} +2 -2
- package/dist/{chunk-AM2CG7VX.js → chunk-YBYV56FS.js} +3 -3
- package/dist/{chunk-O4WJWHCH.js → chunk-YCUNFAEE.js} +90 -42
- package/dist/{chunk-V7F4F6JA.js → chunk-YFI5PN5O.js} +5 -7
- package/dist/{chunk-SBR2RLEQ.js → chunk-YGPLUENN.js} +89 -59
- package/dist/chunk-YGZEG3JV.js +123 -0
- package/dist/{chunk-WG5CJGLU.js → chunk-YJGFT63R.js} +8 -3
- package/dist/{chunk-KEDNHCGB.js → chunk-YNHPPZ7S.js} +1 -1
- package/dist/{chunk-EZZ533MH.js → chunk-YO5UKKCQ.js} +1 -1
- package/dist/{chunk-SZXKV3BX.js → chunk-YTEJYLU7.js} +5 -1
- package/dist/{chunk-33FCWTGT.js → chunk-Z257SH5U.js} +1 -1
- package/dist/{chunk-O7W35PT3.js → chunk-Z2BDTZDT.js} +14 -12
- package/dist/{chunk-EQRFSVDD.js → chunk-ZDD3MJ2H.js} +1 -1
- package/dist/{chunk-APQPYM2Z.js → chunk-ZNX5J7D7.js} +3 -3
- package/dist/{chunk-VBVG6NEL.js → chunk-ZSYU6LIH.js} +5 -5
- package/dist/{chunk-2YNF6AHH.js → chunk-ZTSJ7NY6.js} +6 -2
- package/dist/chunk-ZV3SNRJI.js +122 -0
- package/dist/cli/index.js +1 -1
- package/dist/{core-6HMJHFRR.js → core-4M4RY7MX.js} +4 -1
- package/dist/{core-RPQBIOU4.js → core-4PW4MXWR.js} +4 -1
- package/dist/{core-MV6KGAUV.js → core-5S5CJHBG.js} +5 -1
- package/dist/{core-XMTKUXLO.js → core-7TTM4KRP.js} +6 -1
- package/dist/{core-EYJ3WJK4.js → core-7XKNJM7Y.js} +4 -1
- package/dist/{core-3IJPBNGC.js → core-A7HXVSKB.js} +5 -1
- package/dist/{core-CLLIG7ZU.js → core-AMWCZTOT.js} +2 -1
- package/dist/{core-2YTKFBNZ.js → core-AVA4XLQ2.js} +4 -1
- package/dist/{core-UAY2G7LN.js → core-BJZEJ63L.js} +5 -1
- package/dist/{core-PTRQPQTO.js → core-CCB3IXGD.js} +4 -1
- package/dist/{core-HJUGHAX7.js → core-D2OIGYC7.js} +2 -1
- package/dist/{core-NTWHFDM4.js → core-DMDAXVMY.js} +3 -1
- package/dist/{core-2SICIP63.js → core-EMSJRGSE.js} +3 -4
- package/dist/{core-MEC6A5DD.js → core-FCSA74RT.js} +2 -1
- package/dist/{core-CBEGB2NO.js → core-FTQBESDS.js} +3 -1
- package/dist/{core-GRWI22NS.js → core-GS4DXDDG.js} +4 -1
- package/dist/{core-CAL7YNFC.js → core-JDZDBTID.js} +2 -1
- package/dist/{core-H7KMWYP5.js → core-L3UR75IJ.js} +2 -1
- package/dist/{core-JMYMIH6Z.js → core-MAW4S3KA.js} +4 -1
- package/dist/{core-T4ZH3FAU.js → core-N2JEWJ7D.js} +3 -1
- package/dist/{core-T2KHX5LG.js → core-OBPTBKX6.js} +4 -1
- package/dist/{core-CTZLHGXE.js → core-OFPPRHYY.js} +5 -1
- package/dist/{core-QABTVASG.js → core-QFAVWFI3.js} +5 -1
- package/dist/{core-FX7HRKTF.js → core-QM34237W.js} +9 -1
- package/dist/{core-GQC6VDW5.js → core-SKMHEA4Y.js} +5 -1
- package/dist/{core-VBR253SM.js → core-T3OSZOVV.js} +2 -1
- package/dist/{core-7JKE7H32.js → core-UNX4ZV4M.js} +4 -1
- package/dist/core-VRVL6LIM.js +49 -0
- package/dist/{core-OIC5KJSD.js → core-VT35VDVS.js} +4 -1
- package/dist/{core-3647Z25D.js → core-VWYXK2R3.js} +4 -1
- package/dist/{core-YEFGEW3Z.js → core-WNT6ZMRO.js} +5 -1
- package/dist/{core-VMIBBHXI.js → core-WP73P4CW.js} +4 -1
- package/dist/{core-ULZ7XUQP.js → core-WPEYRK6Y.js} +2 -1
- package/dist/{core-PMYCLXT7.js → core-WXZJ7V7S.js} +2 -1
- package/dist/{core-KEB5PBCO.js → core-XKXDXALI.js} +3 -1
- package/dist/{core-OWCTIPHD.js → core-ZACFV6XR.js} +2 -1
- package/dist/{core-BMY7OL76.js → core-ZSERZGK6.js} +5 -1
- package/dist/{dataTable-2ZXK54TP.js → dataTable-7IO546LM.js} +11 -2
- package/dist/{engine-HGXSWGOI.js → engine-US3N6UCH.js} +51 -15
- package/dist/fixtures.js +3 -1
- package/dist/fonts.js +1 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +32 -19
- package/dist/{main-PVT6FMGC.js → main-2UWKGUHR.js} +28 -13
- package/dist/mcp/server.js +24 -13
- package/dist/react/bar.js +6 -1
- package/dist/react/bartable.js +8 -1
- package/dist/react/box.js +6 -1
- package/dist/react/bullet.js +7 -1
- package/dist/react/butterfly.js +6 -1
- package/dist/react/choropleth.js +8 -1
- package/dist/react/cohort.js +9 -1
- package/dist/react/column.js +6 -1
- package/dist/react/combo.js +6 -1
- package/dist/react/creative.js +8 -1
- package/dist/react/diagram.js +8 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +6 -1
- package/dist/react/export.js +27 -19
- package/dist/react/funnel.js +6 -1
- package/dist/react/gantt.js +8 -1
- package/dist/react/grid.js +5 -1
- package/dist/react/heatmap.js +7 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +94 -84
- package/dist/react/kpi.js +7 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +6 -1
- package/dist/react/mekko.js +6 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +6 -1
- package/dist/react/prepare.js +36 -20
- package/dist/react/pvm.js +7 -1
- package/dist/react/pyramid.js +6 -1
- package/dist/react/sankey.js +8 -1
- package/dist/react/scatter.js +6 -1
- package/dist/react/slope.js +7 -1
- package/dist/react/sparkline.js +7 -1
- package/dist/react/spec.js +17 -11
- package/dist/react/status.js +12 -1
- package/dist/react/story.js +5 -3
- package/dist/react/table.js +6 -1
- package/dist/react/theme.js +8 -3
- package/dist/react/tilemap.js +7 -1
- package/dist/react/treemap.js +7 -1
- package/dist/react/variance.js +6 -1
- package/dist/react/waffle.js +7 -1
- package/dist/react/waterfall.js +7 -1
- package/dist/rows.js +3 -2
- package/dist/{rowsModule-JTDPTWXG.js → rowsModule-DYDVHBAX.js} +2 -1
- package/dist/{schema-GLN7IHSH.js → schema-3KMU5737.js} +1 -1
- package/dist/{schema-NVMEOHAW.js → schema-4JRNXEZF.js} +3 -1
- package/dist/{schema-7CPGNCOL.js → schema-626QXX4G.js} +3 -1
- package/dist/{schema-BMD5JR3Y.js → schema-6PL46VXZ.js} +3 -1
- package/dist/{schema-2Q7IJ22V.js → schema-6V5K3J2V.js} +4 -1
- package/dist/{schema-3XLO43SX.js → schema-A2XUZUCV.js} +3 -1
- package/dist/{schema-XKY2EQFH.js → schema-CNJ4Y6CT.js} +3 -1
- package/dist/{schema-BKHQ3ZUH.js → schema-DHMMGDTI.js} +3 -1
- package/dist/{schema-XHKSGMUH.js → schema-F2Q6MH7W.js} +3 -1
- package/dist/{schema-GGG2VOY7.js → schema-FC6J6KZC.js} +5 -1
- package/dist/{schema-ZE7WUNFS.js → schema-FGE5YK3S.js} +3 -1
- package/dist/{schema-WZLWHOMY.js → schema-FSYDLMGD.js} +1 -1
- package/dist/{schema-FYULDJFB.js → schema-G5KSSI5W.js} +1 -1
- package/dist/{schema-V3BPW4LA.js → schema-GXOG4MXL.js} +1 -1
- package/dist/{schema-76XRTBCJ.js → schema-HEB6ZDI5.js} +3 -1
- package/dist/{schema-HIDW4BA4.js → schema-I44IDRGD.js} +1 -1
- package/dist/{schema-BOGTPL7F.js → schema-IFTIMTS3.js} +1 -1
- package/dist/{schema-KIJA53MB.js → schema-IUY7VYHJ.js} +3 -1
- package/dist/{schema-C7NVOQNV.js → schema-J4HCSD5C.js} +5 -2
- package/dist/{schema-WIZ2TZAT.js → schema-JCU6LTYD.js} +1 -1
- package/dist/{schema-5KHDHTIX.js → schema-JJWORI7D.js} +3 -1
- package/dist/{schema-BUTNGYTT.js → schema-K4V4PYBO.js} +3 -1
- package/dist/{schema-LHMEXFLY.js → schema-LGLQBRC4.js} +3 -1
- package/dist/{schema-5753NOAL.js → schema-MD22QYZU.js} +1 -1
- package/dist/{schema-2M3LXR35.js → schema-MGETMQYC.js} +3 -1
- package/dist/{schema-FZKNIAIH.js → schema-MQB6CE5V.js} +3 -1
- package/dist/{schema-U26KG42U.js → schema-NMIYKGHE.js} +3 -1
- package/dist/{schema-MT6NA5AL.js → schema-NOBNFD2F.js} +3 -1
- package/dist/{schema-3OLBUVMZ.js → schema-OXO2XY4Y.js} +1 -1
- package/dist/{schema-G2PLJCYL.js → schema-PHIHMDVB.js} +1 -1
- package/dist/{schema-UHHFTVGS.js → schema-UXWKA3PI.js} +3 -1
- package/dist/{schema-J53LCIY3.js → schema-WBOPCTPC.js} +1 -1
- package/dist/{schema-TA3MSAPQ.js → schema-WFGDVBJK.js} +1 -1
- package/dist/{schema-MUTAVQMI.js → schema-WX2RS4OU.js} +3 -1
- package/dist/{schema-XATDKZPW.js → schema-XIHAKX3B.js} +18 -1
- package/dist/{schema-LEQNLBNG.js → schema-XRSORYBI.js} +3 -1
- package/dist/{schema-FNTAAXQ3.js → schema-YDZCGL56.js} +3 -1
- package/dist/{specValidation-X5XJBPTP.js → specValidation-XGELWQUU.js} +2 -1
- package/dist/theme.js +5 -1
- package/dist/types/core/charts/bartable/types.d.ts +14 -1
- package/dist/types/core/charts/box/types.d.ts +5 -1
- package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
- package/dist/types/core/charts/choropleth/types.d.ts +19 -0
- package/dist/types/core/charts/cohort/types.d.ts +16 -3
- package/dist/types/core/charts/creative/types.d.ts +21 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
- package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
- package/dist/types/core/charts/gantt/calendar.d.ts +20 -0
- package/dist/types/core/charts/gantt/columns.d.ts +56 -0
- package/dist/types/core/charts/gantt/layout.d.ts +8 -2
- package/dist/types/core/charts/gantt/model.d.ts +296 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
- package/dist/types/core/charts/histogram/types.d.ts +8 -0
- package/dist/types/core/charts/likert/layout.d.ts +10 -8
- package/dist/types/core/charts/pvm/types.d.ts +9 -1
- package/dist/types/core/charts/pyramid/types.d.ts +3 -1
- package/dist/types/core/charts/sankey/types.d.ts +5 -1
- package/dist/types/core/charts/status/layout.d.ts +3 -0
- package/dist/types/core/charts/table/resolve.d.ts +14 -0
- package/dist/types/core/footer.d.ts +2 -0
- package/dist/types/core/format.d.ts +4 -0
- package/dist/types/core/formatSpec.d.ts +10 -0
- package/dist/types/core/frame.d.ts +1 -1
- package/dist/types/core/geo/types.d.ts +2 -0
- package/dist/types/core/geometry.d.ts +1 -1
- package/dist/types/core/label/categoryRow.d.ts +1 -1
- package/dist/types/core/normalize/shared.d.ts +2 -0
- package/dist/types/core/registry.d.ts +4 -5
- package/dist/types/core/request.d.ts +6 -0
- package/dist/types/core/schema/capability.d.ts +20 -7
- package/dist/types/core/schema/generatedColumns.d.ts +168 -0
- package/dist/types/core/text.d.ts +16 -0
- package/dist/types/core/themeGeometry.d.ts +9 -0
- package/dist/types/core/timeAxis.d.ts +6 -1
- package/dist/types/core/types/diagram.d.ts +7 -0
- package/dist/types/core/types/options.d.ts +83 -12
- package/dist/types/core/types/table.d.ts +23 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react/barrelCharts.d.ts +16 -5
- package/dist/types/react/charts/butterfly.d.ts +2 -2
- package/dist/types/react/charts/dot.d.ts +7 -1
- package/dist/types/react/charts/pareto.d.ts +4 -1
- package/dist/types/react/charts/variance.d.ts +3 -1
- package/dist/types/react/hover/labelCard.d.ts +18 -3
- package/dist/types/react/prepare.d.ts +7 -1
- package/dist/types/theme.d.ts +2 -0
- package/dist/validate.js +16 -5
- package/docs/manual.md +31 -3
- package/docs/reference/bar.md +3 -0
- package/docs/reference/bartable.md +16 -1
- package/docs/reference/box.md +8 -1
- package/docs/reference/bullet.md +12 -1
- package/docs/reference/butterfly.md +7 -1
- package/docs/reference/choropleth.md +15 -2
- package/docs/reference/cohort.md +25 -5
- package/docs/reference/column.md +1 -0
- package/docs/reference/combo.md +1 -0
- package/docs/reference/creative.md +13 -0
- package/docs/reference/diagram.md +5 -0
- package/docs/reference/dimswitch.md +50 -32
- package/docs/reference/dot.md +7 -2
- package/docs/reference/fixtures.md +57 -0
- package/docs/reference/funnel.md +5 -0
- package/docs/reference/gantt.md +10 -2
- package/docs/reference/grid.md +9 -2
- package/docs/reference/heatmap.md +6 -0
- package/docs/reference/histogram.md +2 -2
- package/docs/reference/kpi.md +5 -1
- package/docs/reference/likert.md +8 -0
- package/docs/reference/line.md +1 -1
- package/docs/reference/options.md +4 -3
- package/docs/reference/pareto.md +1 -1
- package/docs/reference/pvm.md +7 -1
- package/docs/reference/pyramid.md +6 -0
- package/docs/reference/react.md +1 -2
- package/docs/reference/sankey.md +6 -2
- package/docs/reference/slope.md +6 -0
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +7 -1
- package/docs/reference/table.md +16 -4
- package/docs/reference/tilemap.md +2 -2
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/waterfall.md +4 -1
- package/package.json +1 -1
- package/dist/chunk-FI5EXISD.js +0 -27
- package/dist/chunk-O36WX56O.js +0 -13
- package/dist/chunk-YGTNVZJE.js +0 -89
- package/dist/chunk-ZGHBDMYF.js +0 -24
- package/dist/chunk-ZLYQWUNR.js +0 -1794
- package/dist/core-SKRADU7T.js +0 -41
|
@@ -18,40 +18,46 @@ import {
|
|
|
18
18
|
quietLandPaint,
|
|
19
19
|
renderGeoOverlays,
|
|
20
20
|
reserveGeoOverlayGlyphs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KUMJI5B6.js";
|
|
22
22
|
import {
|
|
23
23
|
geoOptionRefusals
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-V5IFI3FV.js";
|
|
25
25
|
import {
|
|
26
26
|
PLOT_W_FLOOR_DEMOTED
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-I7KDPCC7.js";
|
|
28
28
|
import {
|
|
29
29
|
prepareOutlineDistance
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z257SH5U.js";
|
|
31
31
|
import {
|
|
32
32
|
stepDownFont
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XFCBH3TI.js";
|
|
34
34
|
import {
|
|
35
35
|
chartTheme
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IW3YUMPI.js";
|
|
37
|
+
import {
|
|
38
|
+
fitsRoom,
|
|
39
|
+
widthsThatFit
|
|
40
|
+
} from "./chunk-IXM6BAM4.js";
|
|
37
41
|
import {
|
|
38
42
|
structureCount
|
|
39
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XCROSJ2Z.js";
|
|
40
44
|
import {
|
|
41
45
|
geoRegionIdIndex,
|
|
46
|
+
nearestRegionId,
|
|
42
47
|
resolveGeoRegionId
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PZ3TQFSY.js";
|
|
44
49
|
import {
|
|
45
50
|
getGeoPack
|
|
46
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JSA3ESEJ.js";
|
|
47
52
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
generatedIdWarnings
|
|
54
|
+
} from "./chunk-SXAZDIGM.js";
|
|
50
55
|
import {
|
|
51
56
|
chartSizing,
|
|
57
|
+
heightOmitted,
|
|
52
58
|
resolveSizing,
|
|
53
59
|
rowDrivenHeight
|
|
54
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AFGQXMKT.js";
|
|
55
61
|
import {
|
|
56
62
|
PRIORITY,
|
|
57
63
|
SIDE_KEY_PLOT_SHARE,
|
|
@@ -72,17 +78,17 @@ import {
|
|
|
72
78
|
solveFrame,
|
|
73
79
|
solveLabels,
|
|
74
80
|
unitPrinted
|
|
75
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WSKZZ2ZB.js";
|
|
76
82
|
import {
|
|
77
83
|
disclosureNote
|
|
78
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-WZB6R2ZX.js";
|
|
79
85
|
import {
|
|
80
86
|
formatterFromExample
|
|
81
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-D3PQAVFW.js";
|
|
82
88
|
import {
|
|
83
89
|
autoDecimals,
|
|
84
90
|
formatAutomaticNumber
|
|
85
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
86
92
|
import {
|
|
87
93
|
canvasMargin,
|
|
88
94
|
dashToken,
|
|
@@ -92,14 +98,14 @@ import {
|
|
|
92
98
|
resolveSemanticPaletteTheme,
|
|
93
99
|
strokeToken,
|
|
94
100
|
textScaleOf
|
|
95
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-JARJP576.js";
|
|
96
102
|
import {
|
|
97
103
|
NormalizeError,
|
|
98
104
|
TARGET_SIZE,
|
|
99
105
|
accessibleTitle,
|
|
100
106
|
resolveSize,
|
|
101
107
|
resolveSubtitle
|
|
102
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-FX5VZK5F.js";
|
|
103
109
|
import {
|
|
104
110
|
maxOf,
|
|
105
111
|
pushAll
|
|
@@ -108,7 +114,7 @@ import {
|
|
|
108
114
|
compareText,
|
|
109
115
|
defaultMeasurer,
|
|
110
116
|
wrapText
|
|
111
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-UIHGGWES.js";
|
|
112
118
|
|
|
113
119
|
// src/core/geo/decode.ts
|
|
114
120
|
var packedArcCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -457,11 +463,14 @@ function mapKeysOnce(input) {
|
|
|
457
463
|
}
|
|
458
464
|
function shortestRegionName(region, font, measure) {
|
|
459
465
|
let shortName = region.anchor.shortName;
|
|
460
|
-
if (shortName === region.id) return shortName;
|
|
466
|
+
if (shortName === region.id || region.anchor.authored) return shortName;
|
|
461
467
|
let shortWidth = measure(shortName, font).width, idWidth = measure(region.id, font).width;
|
|
462
468
|
return idWidth < shortWidth || idWidth === shortWidth && compareText(region.id, shortName) < 0 ? region.id : shortName;
|
|
463
469
|
}
|
|
464
|
-
var VALUE_TABLE_MAX_ROWS = 20, TABLE_COLUMN_GAP = 16, GROUP_GAP = 6, COLUMN_STRETCH = 1.6
|
|
470
|
+
var VALUE_TABLE_MAX_ROWS = 20, TABLE_COLUMN_GAP = 16, GROUP_GAP = 6, COLUMN_STRETCH = 1.6, alignedIn = (left, track, width, align, fallback) => {
|
|
471
|
+
let chosen = align ?? fallback;
|
|
472
|
+
return chosen === "left" ? left : chosen === "right" ? left + track - width : left + (track - width) / 2;
|
|
473
|
+
};
|
|
465
474
|
function valueTable(input) {
|
|
466
475
|
let { theme, measure } = input, regular = { family: theme.type.family, ...theme.type.label }, bold = { ...regular, weight: emphasisWeight(theme) }, fontOf = (id) => input.bold.has(id) ? bold : regular, lineH = regular.size * (regular.lineHeight ?? 1.2), rowH = Math.max(SWATCH + (input.compact ? 2 : 4), lineH + (input.compact ? 0.4 : 3)), columnGap = input.compact ? 8 : TABLE_COLUMN_GAP, rows = input.ids.map((id) => {
|
|
467
476
|
let state = input.states?.get(id), value = input.values.get(id) ?? null;
|
|
@@ -473,7 +482,20 @@ function valueTable(input) {
|
|
|
473
482
|
state,
|
|
474
483
|
listed: input.values.has(id)
|
|
475
484
|
};
|
|
476
|
-
}).sort((a, b) => (a.value === null || a.state ? 1 : 0) - (b.value === null || b.state ? 1 : 0) || (a.value !== null && b.value !== null && !a.state && !b.state ? b.value - a.value : 0) || compareText(a.code, b.code))
|
|
485
|
+
}).sort((a, b) => (a.value === null || a.state ? 1 : 0) - (b.value === null || b.state ? 1 : 0) || (a.value !== null && b.value !== null && !a.state && !b.state ? b.value - a.value : 0) || compareText(a.code, b.code));
|
|
486
|
+
if (input.rowOrder?.length) {
|
|
487
|
+
let seat = new Map(input.rowOrder.map((id, index) => [id, index]));
|
|
488
|
+
rows.sort((a, b) => (seat.get(a.id) ?? 1 / 0) - (seat.get(b.id) ?? 1 / 0) || 0);
|
|
489
|
+
}
|
|
490
|
+
let groupN = rows.slice(0, input.bold.size).every((row) => input.bold.has(row.id)) && input.bold.size < rows.length ? input.bold.size : 0, overrides = input.columns?.overrides, swatchDrawn = input.columns?.swatch !== !1, valueDrawn = input.columns?.value !== !1, headText = valueDrawn ? overrides?.value?.label ?? input.unit : void 0, codeNeed = Math.max(0, maxOf(rows.map((row) => measure(row.code, fontOf(row.id)).width))), valueNeed = valueDrawn ? Math.max(headText ? measure(headText, bold).width : 0, maxOf(rows.map((row) => measure(row.text, fontOf(row.id)).width))) : 0, swatchW = swatchDrawn ? Math.max(SWATCH + SWATCH_GAP, overrides?.swatch?.width ?? 0) : 0, codeW = Math.max(codeNeed, overrides?.code?.width ?? 0), valueW = Math.max(valueNeed, overrides?.value?.width ?? 0), codeGap = valueDrawn ? input.compact ? 6 : 12 : 0, below = (track, need) => track?.width !== void 0 && track.width < need, widthFloored = swatchDrawn && below(overrides?.swatch, SWATCH + SWATCH_GAP) || below(overrides?.code, codeNeed) || valueDrawn && below(overrides?.value, valueNeed), excess = swatchW + codeW + codeGap + valueW - (input.maxColumnW ?? 1 / 0), widthCapped = excess > 0 && (swatchW > SWATCH + SWATCH_GAP || codeW > codeNeed || valueW > valueNeed);
|
|
491
|
+
if (widthCapped) {
|
|
492
|
+
let left = excess, giveUp = (width, floor) => {
|
|
493
|
+
let taken = Math.min(left, Math.max(0, width - floor));
|
|
494
|
+
return left -= taken, width - taken;
|
|
495
|
+
};
|
|
496
|
+
valueW = giveUp(valueW, valueNeed), codeW = giveUp(codeW, codeNeed), swatchDrawn && (swatchW = giveUp(swatchW, SWATCH + SWATCH_GAP));
|
|
497
|
+
}
|
|
498
|
+
let columnW = swatchW + codeW + codeGap + valueW, caption = { family: theme.type.family, ...theme.type.footnote }, headerH = headText ? caption.size * (caption.lineHeight ?? 1.2) + 4 : 0, columnsOf = (perColumn) => Math.ceil(rows.length / Math.max(1, perColumn)), countsOf = (columns) => Array.from({ length: columns }, (_, i) => Math.floor(rows.length / columns) + (i < rows.length % columns ? 1 : 0)), columnWidth = (columns, width, full = !1) => width === void 0 ? columnW : Math.min(full ? 1 / 0 : columnW * COLUMN_STRETCH, Math.max(columnW, (width - (columns - 1) * columnGap) / columns)), groupGap = (columns) => groupN > 0 && groupN < countsOf(columns)[0] ? GROUP_GAP : 0, size = (perColumn, width, full = !1) => {
|
|
477
499
|
let columns = columnsOf(perColumn), w = columnWidth(columns, width, full);
|
|
478
500
|
return { w: columns * w + (columns - 1) * columnGap, h: headerH + countsOf(columns)[0] * rowH + groupGap(columns), columns };
|
|
479
501
|
}, rowsIn = (height) => Math.floor((height - headerH - (groupN ? GROUP_GAP : 0)) / rowH), columnsIn = (width) => Math.max(0, Math.floor((width + columnGap) / (columnW + columnGap))), rowsAcross = (width, keepGroup = !0) => {
|
|
@@ -495,19 +517,19 @@ function valueTable(input) {
|
|
|
495
517
|
candidates: [{ slot: "valueTable", rect: { x: left, y: top + (rowH - measured.height) / 2, w: measured.width, h: measured.height }, penalty: 0 }]
|
|
496
518
|
});
|
|
497
519
|
};
|
|
498
|
-
if (
|
|
499
|
-
let measured = measure(
|
|
520
|
+
if (headText) {
|
|
521
|
+
let measured = measure(headText, caption), headAlign = overrides?.value?.headAlign ?? overrides?.value?.align, headX = headAlign === void 0 ? x : alignedIn(x + colW - valueW, valueW, measured.width, headAlign, "right");
|
|
500
522
|
requests.push({
|
|
501
523
|
id: "value-table-unit:0",
|
|
502
524
|
kind: "annotation",
|
|
503
525
|
typeRole: "footnote",
|
|
504
526
|
owner: {},
|
|
505
|
-
text:
|
|
506
|
-
lines: [
|
|
527
|
+
text: headText,
|
|
528
|
+
lines: [headText],
|
|
507
529
|
font: caption,
|
|
508
530
|
priority: PRIORITY.endpoint,
|
|
509
531
|
role: "caption",
|
|
510
|
-
candidates: [{ slot: "valueTable", rect: { x, y, w: measured.width, h: measured.height }, penalty: 0 }]
|
|
532
|
+
candidates: [{ slot: "valueTable", rect: { x: headX, y, w: measured.width, h: measured.height }, penalty: 0 }]
|
|
511
533
|
});
|
|
512
534
|
}
|
|
513
535
|
let counts = countsOf(columns), gap = groupGap(columns);
|
|
@@ -529,27 +551,33 @@ function valueTable(input) {
|
|
|
529
551
|
rows.forEach((row, index) => {
|
|
530
552
|
let column = 0, rowIndex = index;
|
|
531
553
|
for (; rowIndex >= counts[column]; ) rowIndex -= counts[column++];
|
|
532
|
-
let left = x + column * (colW + columnGap), top = y + headerH + rowIndex * rowH + (gap && rowIndex >= groupN ? gap : 0)
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
554
|
+
let left = x + column * (colW + columnGap), top = y + headerH + rowIndex * rowH + (gap && rowIndex >= groupN ? gap : 0);
|
|
555
|
+
if (swatchDrawn) {
|
|
556
|
+
let rect = { x: alignedIn(left, swatchW - SWATCH_GAP, SWATCH, overrides?.swatch?.align, "left"), y: top + (rowH - SWATCH) / 2, w: SWATCH, h: SWATCH };
|
|
557
|
+
nodes.push({
|
|
558
|
+
t: "rect",
|
|
559
|
+
id: `value-table-swatch:${row.id}`,
|
|
560
|
+
rect,
|
|
561
|
+
fill: row.state ? { token: "inkMuted" } : row.listed ? row.value === null ? input.scale.legend.find((item) => item.id === "no-data")?.paint ?? { token: "neutral" } : input.scale.paint(row.value) : { token: "background" },
|
|
562
|
+
...row.state ? { pattern: geoStatePattern(row.state) } : row.listed && row.value === null ? { pattern: "hatch45" } : {},
|
|
563
|
+
stroke: { token: "leader" },
|
|
564
|
+
strokeWidth: strokeToken(theme, "hair"),
|
|
565
|
+
owner: { categoryId: row.id },
|
|
566
|
+
part: "smallMemberSwatch"
|
|
567
|
+
}), occupied.claim(rect, "legend", { categoryId: row.id }, "smallMemberSwatch");
|
|
568
|
+
}
|
|
544
569
|
let f = fontOf(row.id);
|
|
545
|
-
text(`value-table-code:${row.id}`, row.code, f, left +
|
|
570
|
+
if (text(`value-table-code:${row.id}`, row.code, f, alignedIn(left + swatchW, codeW, measure(row.code, f).width, overrides?.code?.align, "left"), top, "category", row.id), valueDrawn) {
|
|
571
|
+
let valueTextW = measure(row.text, f).width;
|
|
572
|
+
text(`value-table-value:${row.id}`, row.text, f, overrides?.value?.align === void 0 ? left + colW - valueTextW : alignedIn(left + colW - valueW, valueW, valueTextW, overrides.value.align, "right"), top, "point", row.id);
|
|
573
|
+
}
|
|
546
574
|
});
|
|
547
575
|
let solved = solveLabels(requests, occupied, solveCtx), fontById = new Map(requests.map((request) => [request.id, request.font]));
|
|
548
576
|
pushAll(nodes, labelsToNodes(theme, solved.placed, (label) => fontById.get(label.id) ?? regular));
|
|
549
577
|
let block = { x, y, ...size(perColumn, width, full) };
|
|
550
578
|
return occupied.claim({ x: block.x, y: block.y, w: block.w, h: block.h }, "reserved", {}, "smallMembers"), { nodes, placed: solved.placed, decisions: solved.decisions, warnings: solved.warnings, rect: { x: block.x, y: block.y, w: block.w, h: block.h } };
|
|
551
579
|
};
|
|
552
|
-
return { rowCount: rows.length, rowH, headerH, columnW, size, rowsIn, rowsAcross, columnsIn, draw };
|
|
580
|
+
return { rowCount: rows.length, rowH, headerH, columnW, widthCapped, widthFloored, size, rowsIn, rowsAcross, columnsIn, draw };
|
|
553
581
|
}
|
|
554
582
|
|
|
555
583
|
// src/core/charts/choropleth/outsideLabels.ts
|
|
@@ -688,8 +716,35 @@ var MAP_PAD = 8, WIDE_SLOT = 1.6, US_MAP_PAD_Y = 6, LEADER_GUTTER = 92, LEADER_G
|
|
|
688
716
|
function defaultRegionValues(pack, size, autoLabelled, tableDrawn) {
|
|
689
717
|
return !tableDrawn && autoLabelled > 0 && (autoLabelled <= REGION_VALUES_DEFAULT_MAX || pack.id !== "world" && size.width >= REGION_VALUES_MIN_WIDTH && size.width * size.height / autoLabelled >= REGION_VALUES_MIN_AREA_PER_LABEL);
|
|
690
718
|
}
|
|
691
|
-
|
|
692
|
-
|
|
719
|
+
var renamedPacks = /* @__PURE__ */ new WeakMap();
|
|
720
|
+
function packWithRowNames(pack, overrides, index) {
|
|
721
|
+
if (!overrides) return pack;
|
|
722
|
+
let known = renamedPacks.get(overrides);
|
|
723
|
+
if (known?.id === pack.id) return known;
|
|
724
|
+
let names = new Map(Object.entries(overrides).flatMap(([id, override]) => {
|
|
725
|
+
let resolved = resolveGeoRegionId(index, id);
|
|
726
|
+
return resolved.kind === "resolved" && override.label ? [[resolved.id, override.label]] : [];
|
|
727
|
+
})), renamed = { ...pack, regions: pack.regions.map((region) => {
|
|
728
|
+
let name = names.get(region.id);
|
|
729
|
+
return name === void 0 ? region : { ...region, anchor: { ...region.anchor, name, shortName: name, authored: !0 } };
|
|
730
|
+
}) };
|
|
731
|
+
return renamedPacks.set(overrides, renamed), renamed;
|
|
732
|
+
}
|
|
733
|
+
function layoutChoropleth(data, options = {}) {
|
|
734
|
+
if (options.columnOverrides === void 0) return layoutMapPass(data, options);
|
|
735
|
+
let pinned = options[TARGET_SIZE]?.fixed.height ?? !heightOmitted(options.size), drawn = widthsThatFit(options, (next) => layoutMapPass(data, next), pinned), { label, ...valueTrack } = options.columnOverrides.value ?? {};
|
|
736
|
+
if (label === void 0 || fitsRoom(drawn, pinned)) return drawn;
|
|
737
|
+
let plain = widthsThatFit({ ...options, columnOverrides: { ...options.columnOverrides, value: valueTrack } }, (next) => layoutMapPass(data, next), pinned);
|
|
738
|
+
return fitsRoom(plain, pinned) ? { ...plain, warnings: [...plain.warnings, {
|
|
739
|
+
code: "option-ignored",
|
|
740
|
+
severity: "warn",
|
|
741
|
+
field: ["options", "columnOverrides", "value", "label"],
|
|
742
|
+
message: "the value head needs more height than this chart has, so it does not print",
|
|
743
|
+
suggest: "Give the chart more height, or remove the label."
|
|
744
|
+
}] } : drawn;
|
|
745
|
+
}
|
|
746
|
+
function layoutMapPass(data, options, listed, pass = 0, passes = /* @__PURE__ */ new Map(), omittedOverlays = /* @__PURE__ */ new Set()) {
|
|
747
|
+
let warnings = geoOptionRefusals(options, "choropleth"), sourcePack = getGeoPack(data.pack), idIndex = geoRegionIdIndex(sourcePack.regions), pack = packWithRowNames(sourcePack, options.rowOverrides, idIndex), canonicalIds = idIndex.canonical, { valuesById, statesById, leftOut } = ingestGeoRegions(data.regions, idIndex, { where: `pack '${pack.id}'`, regionWord: "pack region" }, warnings, (id, index) => {
|
|
693
748
|
let suggestion = nearestRegionId(id, [...canonicalIds.keys()], canonicalIds);
|
|
694
749
|
return {
|
|
695
750
|
code: "choropleth-unknown-region",
|
|
@@ -786,9 +841,12 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
786
841
|
measure,
|
|
787
842
|
plot: frameResult.plot,
|
|
788
843
|
labelPad: 0
|
|
789
|
-
}), tableMode = options.valueTable ?? "auto", tableIds = pack.regions.filter((region) => valuesById.has(region.id) && (region.polygons.length > 0 || visibleMarkerIds.has(region.id))).map((region) => region.id), ranks = valueRanks(valuesById), topIds = new Set([...ranks].filter(([, rank]) => tableIds.length >= 4 && rank < Math.min(5, Math.ceil(tableIds.length / 4))).map(([id]) => id)),
|
|
844
|
+
}), tableMode = options.valueTable ?? "auto", tableIds = pack.regions.filter((region) => valuesById.has(region.id) && (region.polygons.length > 0 || visibleMarkerIds.has(region.id))).map((region) => region.id), ranks = valueRanks(valuesById), topIds = new Set([...ranks].filter(([, rank]) => tableIds.length >= 4 && rank < Math.min(5, Math.ceil(tableIds.length / 4))).map(([id]) => id)), canonicalRow = (id) => {
|
|
845
|
+
let resolved = resolveGeoRegionId(idIndex, id);
|
|
846
|
+
return resolved.kind === "resolved" ? resolved.id : void 0;
|
|
847
|
+
}, hiddenRows = new Set(Object.entries(options.rowVisibility ?? {}).flatMap(([id, shown]) => shown === !1 ? [canonicalRow(id) ?? id] : [])), drawnIds = hiddenRows.size > 0 ? tableIds.filter((id) => !hiddenRows.has(id)) : tableIds, boldIds = options.valueTableEmphasis === !1 ? /* @__PURE__ */ new Set() : hiddenRows.size > 0 ? new Set([...topIds].filter((id) => !hiddenRows.has(id))) : topIds, mapEmphasis = options.valueTableEmphasis === !1 ? boldIds : topIds, lookupColumns = options.columnVisibility || options.columnOverrides ? { swatch: options.columnVisibility?.swatch, value: options.columnVisibility?.value, ...options.columnOverrides ? { overrides: options.columnOverrides } : {} } : void 0, sideTableColumns = Math.ceil(drawnIds.length / SIDE_ROWS), forcedSideColumnW = tableMode === "side" ? (frameResult.plot.w * (1 - SIDE_MIN_SHARE) - (sideTableColumns - 1) * TABLE_GAP) / sideTableColumns : void 0, table = tableMode !== !1 && drawnIds.length > 0 && (tableMode !== "auto" || drawnIds.length <= VALUE_TABLE_MAX_ROWS && numericValues.length > 0) ? valueTable({
|
|
790
848
|
options,
|
|
791
|
-
ids:
|
|
849
|
+
ids: drawnIds,
|
|
792
850
|
pack,
|
|
793
851
|
values: valuesById,
|
|
794
852
|
states: statesById,
|
|
@@ -796,9 +854,11 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
796
854
|
fmt,
|
|
797
855
|
theme,
|
|
798
856
|
measure,
|
|
857
|
+
...options.rowOrder ? { rowOrder: options.rowOrder.flatMap((id) => canonicalRow(id) ?? []) } : {},
|
|
858
|
+
...lookupColumns ? { columns: lookupColumns, maxColumnW: forcedSideColumnW ?? frameResult.plot.w } : {},
|
|
799
859
|
unit: compactCard && unitPrinted({ subtitle: resolveSubtitle(options.subtitle), unit: options.unit, unitShown: options.unitShown }) ? void 0 : options.unit,
|
|
800
860
|
compact: compactCard,
|
|
801
|
-
bold:
|
|
861
|
+
bold: boldIds
|
|
802
862
|
}) : void 0, baseSmallIds = table ? /* @__PURE__ */ new Set() : smallRegionIds(pack, labelPolicy.eligibleIds, explicitLabelIds, options), smallIds = /* @__PURE__ */ new Set([...baseSmallIds, ...table ? [] : listed ?? []]), keyTitle = options.keyTitle, named = options.legend !== void 0 && options.legend !== "auto" || theme.legend?.required !== void 0, plot0 = frameResult.plot, yPad = pack.id === "us-states" ? US_MAP_PAD_Y : MAP_PAD, packAspect = (pack.bounds[3] - pack.bounds[1]) / (pack.bounds[2] - pack.bounds[0]), sideCapH = Math.min(MAP_MAX_HEIGHT * size.width, SIDE_MAP_MAX_PX), sideNaturalW = table ? Math.max(SIDE_KEY_MIN_W, table.size(Math.ceil(table.rowCount / Math.ceil(table.rowCount / SIDE_ROWS))).w) : 0, sideMapW = Math.min(plot0.w - tableGap - sideNaturalW, sideCapH / packAspect + 2 * MAP_PAD), sideBlockW = plot0.w - sideMapW - tableGap, sideMaxColumns = table ? table.columnsIn(sideBlockW) : 0, sideColumns = table ? Math.min(sideMaxColumns, Math.ceil(table.rowCount / SIDE_ROWS)) : 0, sideWanted = table !== void 0 && !named && tableMode !== "below" && sideColumns >= 1 && (tableMode === "side" || sideMapW >= SIDE_MIN_MAP_W), keyBase = {
|
|
803
863
|
options,
|
|
804
864
|
target: options.target,
|
|
@@ -885,8 +945,8 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
885
945
|
(tableMode === "below" || !pinnedHeight || area.h - block.h - tableGap >= minMapHeight) && (naturalAreaH = naturalMapH(area.w, stackedShare) + tableGap + block.h, mapArea = { ...area, h: Math.max(10, Math.min(area.h - block.h - tableGap, naturalMapH(area.w, stackedShare))) }, tablePlace = { x: area.x + Math.max(0, (area.w - block.w) / 2), y: area.y + mapArea.h + tableGap, perColumn, width: area.w });
|
|
886
946
|
}
|
|
887
947
|
if (table && !tablePlace && tableMode === "auto") {
|
|
888
|
-
let fallback =
|
|
889
|
-
return !fallback.refused && (fallback.sizing?.minHeight ?? 0) <= size.height && (fallback.sizing?.minWidth ?? 0) <= size.width && !valueLost(fallback) ? fallback :
|
|
948
|
+
let fallback = layoutMapPass(data, { ...options, valueTable: !1 }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays), valueLost = (geometry2) => geometry2.labels.some((label) => label.kind === "category" && label.hidden && label.hidden !== "redundant" && valuesById.get(label.owner.categoryId) != null && !geometry2.labels.some((cell) => cell.id === `small-member-value:${label.owner.categoryId}` && !cell.hidden));
|
|
949
|
+
return !fallback.refused && (fallback.sizing?.minHeight ?? 0) <= size.height && (fallback.sizing?.minWidth ?? 0) <= size.width && !valueLost(fallback) ? fallback : layoutMapPass(data, { ...options, valueTable: "below" }, listed, pass, /* @__PURE__ */ new Map(), omittedOverlays);
|
|
890
950
|
}
|
|
891
951
|
table && !tablePlace && (mapArea = { ...area, h: Math.min(area.h, naturalMapH(area.w)) });
|
|
892
952
|
let tableDrawn = table && tablePlace ? table.draw(tablePlace.x, tablePlace.y, tablePlace.perColumn, occupied, solveCtx, tablePlace.width, tablePlace.full) : void 0, mapCtx = { ...solveCtx, plot: { ...solveCtx.plot, h: mapArea.y + mapArea.h - solveCtx.plot.y } }, naturalHeight = Math.ceil(size.height - area.h + naturalAreaH - 1e-6), mapLabels = {
|
|
@@ -895,7 +955,36 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
895
955
|
leaderIds: new Set([...labelPolicy.leaderIds].filter((id) => !smallIds.has(id)))
|
|
896
956
|
};
|
|
897
957
|
smallIds.size && mapLabels.eligibleIds.size === 0 && (minMapHeight = Math.min(minMapHeight, 2 * (compactPadding ?? MAP_PAD) + 2 * theme.type.label.size)), tableDrawn && mapArea.h < MIN_MAP_AREA_H + theme.type.label.size * 6 && (mapLabels.eligibleIds.clear(), mapLabels.leaderIds.clear(), minMapHeight = Math.min(minMapHeight, 2 * (compactPadding ?? MAP_PAD) + 2 * theme.type.label.size));
|
|
898
|
-
let autoLabelled = [...labelPolicy.eligibleIds].filter((id) => !baseSmallIds.has(id)).length, regionValues = options.regionValues ?? defaultRegionValues(pack, size, autoLabelled, !!tableDrawn), withTable = tableDrawn ? { emphasis:
|
|
958
|
+
let autoLabelled = [...labelPolicy.eligibleIds].filter((id) => !baseSmallIds.has(id)).length, regionValues = options.regionValues ?? defaultRegionValues(pack, size, autoLabelled, !!tableDrawn), withTable = tableDrawn ? { emphasis: mapEmphasis } : void 0, rowsDrawn = (authored) => authored === void 0 ? [] : tableDrawn ? (Array.isArray(authored) ? authored : Object.keys(authored)).filter((id) => {
|
|
959
|
+
let canonical = canonicalRow(id);
|
|
960
|
+
return canonical !== void 0 && tableIds.includes(canonical);
|
|
961
|
+
}) : [], columnsDrawn = tableDrawn ? [...options.columnVisibility?.swatch !== !1 ? ["swatch"] : [], "code", ...options.columnVisibility?.value !== !1 ? ["value"] : []] : [];
|
|
962
|
+
warnings.push(
|
|
963
|
+
...generatedIdWarnings("choropleth", "columnVisibility", options.columnVisibility, tableDrawn ? ["swatch", "code", "value"] : []),
|
|
964
|
+
...generatedIdWarnings("choropleth", "columnOverrides", options.columnOverrides, columnsDrawn),
|
|
965
|
+
...generatedIdWarnings("choropleth", "rowVisibility", options.rowVisibility, rowsDrawn(options.rowVisibility)),
|
|
966
|
+
...generatedIdWarnings("choropleth", "rowOrder", options.rowOrder, rowsDrawn(options.rowOrder)),
|
|
967
|
+
...generatedIdWarnings("choropleth", "rowOverrides", options.rowOverrides, Object.keys(options.rowOverrides ?? {}).filter((id) => canonicalRow(id) !== void 0))
|
|
968
|
+
), table?.widthFloored && warnings.push({
|
|
969
|
+
code: "generated-column-width-floored",
|
|
970
|
+
severity: "warn",
|
|
971
|
+
field: ["options", "columnOverrides"],
|
|
972
|
+
message: "an authored lookup column width is narrower than its text, so it was raised",
|
|
973
|
+
suggest: "Use a larger width, or leave the width out."
|
|
974
|
+
}), table?.widthCapped && warnings.push({
|
|
975
|
+
code: "generated-column-width-capped",
|
|
976
|
+
severity: "warn",
|
|
977
|
+
field: ["options", "columnOverrides"],
|
|
978
|
+
message: `the authored lookup column widths do not fit the ${Math.round(frameResult.plot.w)} px plot, so they were reduced`,
|
|
979
|
+
suggest: "Use smaller widths, or give the chart more width."
|
|
980
|
+
}), tableDrawn && (options.columnVisibility?.value === !1 || drawnIds.length < tableIds.length) && warnings.push({
|
|
981
|
+
code: "choropleth-lookup-partial",
|
|
982
|
+
severity: "warn",
|
|
983
|
+
field: ["options", options.columnVisibility?.value === !1 ? "columnVisibility" : "rowVisibility"],
|
|
984
|
+
message: options.columnVisibility?.value === !1 ? "the lookup prints no values, so the map colours are the only print of them" : "a hidden lookup row leaves its map code without a name or a printed value",
|
|
985
|
+
suggest: "Keep the column or the rows, or name the regions in the text around the map."
|
|
986
|
+
});
|
|
987
|
+
let valueTexts = new Map(regionValues ? [...valuesById].flatMap(([id, value]) => value === null ? [] : [[id, fmt(value)]]) : []), plot = frameResult.plot, laneSpan = !tableDrawn && small.position !== "right" && small.position !== "left" && small.blocks.x + small.blocks.w <= plot.x + plot.w - LEADER_GUTTER ? { y: plot.y, h: mapArea.y + mapArea.h - plot.y } : { y: mapArea.y, h: mapArea.h }, keyArea = { x: small.blocks.x - MAP_GAP, y: small.blocks.y - MAP_GAP, w: small.blocks.w + 2 * MAP_GAP, h: small.blocks.h + 2 * MAP_GAP }, underKey = (candidate) => candidate.fitted.regions.some((region) => region.polygons.some((polygon) => polygon.some((ring) => ring.some(([x, y]) => pointInRect(x, y, keyArea)))) || region.marker !== void 0 && pointInRect(region.marker.x, region.marker.y, keyArea)), reserved = mapArea.y - plot.y, prepared;
|
|
899
988
|
if (small.position === "top" && reserved > 0)
|
|
900
989
|
for (let share of [0, 0.25, 0.5, 0.75]) {
|
|
901
990
|
let top = plot.y + share * reserved, rect = { ...mapArea, y: top, h: mapArea.y + mapArea.h - top }, padding = mapLabels.eligibleIds.size ? void 0 : compactPadding;
|
|
@@ -907,12 +996,12 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
907
996
|
}
|
|
908
997
|
}
|
|
909
998
|
let { labelLayout, mapFrame, fitted, leaderLanes, outsideFits } = prepared ?? prepareMapLayout(pack, mapArea, laneSpan, occupied, valuesById, mapLabels, visibleMarkerIds, theme, measure, mapCtx, valueTexts, mapLabels.eligibleIds.size ? void 0 : compactPadding, withTable), grow = rowDrivenHeight({ options, width: size.width, height: size.height, chromeH: 0, rowsH: naturalHeight });
|
|
910
|
-
if (grow !== void 0) return
|
|
999
|
+
if (grow !== void 0) return layoutMapPass(data, { ...options, size: { width: size.width, height: grow } }, listed, pass, passes, omittedOverlays);
|
|
911
1000
|
let glyphDiscs = [], nextOmitted = new Set(omittedOverlays), heightReady = options[TARGET_SIZE]?.fixed.height !== !1 || size.height >= naturalHeight - 2;
|
|
912
1001
|
if (overlays.forEach((overlay, index) => {
|
|
913
1002
|
let anchor = resolveChoroplethOverlayAnchor(overlay, index, fitted, idIndex, pack), radius = geoOverlayDiameter(overlay) / 2 * (overlay.glyph.kind === "marker" && overlay.glyph.shape === "square" ? Math.SQRT2 : 1);
|
|
914
1003
|
!geoOverlayInFrame(anchor, mapFrame) || heightReady && glyphDiscs.some((prior) => Math.hypot(anchor.x - prior.x, anchor.y - prior.y) < radius + prior.radius) ? nextOmitted.add(overlay.id) : glyphDiscs.push({ ...anchor, radius });
|
|
915
|
-
}), nextOmitted.size > omittedOverlays.size) return
|
|
1004
|
+
}), nextOmitted.size > omittedOverlays.size) return layoutMapPass(data, options, listed, pass, /* @__PURE__ */ new Map(), nextOmitted);
|
|
916
1005
|
let nodes = [...frameResult.nodes], regionStroke = strokeToken(theme, "hair");
|
|
917
1006
|
pushAll(warnings, small.warnings);
|
|
918
1007
|
let marks = { regions: [], boundaries: [] }, labelPlans = [], chipOnlyNoData = [], undrawnUnlisted = 0, landStart = nodes.length, landNodes = [];
|
|
@@ -979,7 +1068,8 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
979
1068
|
outsideFits,
|
|
980
1069
|
state ? geoStatePattern(state) : void 0,
|
|
981
1070
|
withTable?.emphasis.has(region.id) ?? !1,
|
|
982
|
-
withTable !== void 0
|
|
1071
|
+
withTable !== void 0,
|
|
1072
|
+
hatchNodeId !== void 0
|
|
983
1073
|
));
|
|
984
1074
|
}
|
|
985
1075
|
nodes.splice(landStart, 0, ...landNodes);
|
|
@@ -1026,6 +1116,11 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
1026
1116
|
frame: mapFrame,
|
|
1027
1117
|
toneNames: options.overlayTones,
|
|
1028
1118
|
overlayMeasure: options.overlayMeasure,
|
|
1119
|
+
regionName: (overlay) => {
|
|
1120
|
+
if (!("region" in overlay.at)) return;
|
|
1121
|
+
let resolution = resolveGeoRegionId(idIndex, overlay.at.region);
|
|
1122
|
+
return resolution.kind === "resolved" ? fitted.regions.find((region) => region.id === resolution.id)?.anchor.name : void 0;
|
|
1123
|
+
},
|
|
1029
1124
|
resolveAnchor: (overlay, index) => resolveChoroplethOverlayAnchor(overlay, index, fitted, idIndex, pack),
|
|
1030
1125
|
occupied,
|
|
1031
1126
|
solveCtx,
|
|
@@ -1097,9 +1192,9 @@ function layoutChoropleth(data, options = {}, listed, pass = 0, passes = /* @__P
|
|
|
1097
1192
|
if ((geometry.sizing?.minHeight ?? 0) > size.height + 1) return geometry;
|
|
1098
1193
|
for (let move of [[...lost, ...far], lost, lost.length ? [...labelPolicy.eligibleIds] : []]) {
|
|
1099
1194
|
if (!move.length) continue;
|
|
1100
|
-
let ids = /* @__PURE__ */ new Set([...listed ?? [], ...move]), key = `${pass + 1}:${[...ids].sort().join(",")}`, next = passes.get(key) ??
|
|
1195
|
+
let ids = /* @__PURE__ */ new Set([...listed ?? [], ...move]), key = `${pass + 1}:${[...ids].sort().join(",")}`, next = passes.get(key) ?? layoutMapPass(data, options, ids, pass + 1, passes, omittedOverlays), height = Math.ceil(Math.max(next.sizing?.minHeight ?? 0, next.sizing?.naturalHeight ?? 0));
|
|
1101
1196
|
if (options[TARGET_SIZE]?.fixed.height === !1 && height > next.size.height && height <= 1400) {
|
|
1102
|
-
let taller =
|
|
1197
|
+
let taller = layoutMapPass(data, { ...options, size: { width: size.width, height } }, ids, pass + 1, /* @__PURE__ */ new Map(), omittedOverlays);
|
|
1103
1198
|
hidden(taller) < hidden(geometry) && (next = taller);
|
|
1104
1199
|
}
|
|
1105
1200
|
if (passes.set(key, next), !next.labels.some((label) => label.hidden && label.slot === "smallMember") && // A longer list must not widen a side key past the width floor.
|
|
@@ -1505,9 +1600,13 @@ function resolveRegionLabelLayout(pack, plot, lanePlot, frameClaims, valuesById,
|
|
|
1505
1600
|
let mapFrame = choroplethMapFrame(plot, gutter, pack.id), mapFit = fitMap(mapFrame), { fitted, outsideFits } = mapFit, lanes = buildLeaderLanes(mapFit, leaderIds, lanePlot, theme, measure, valueTexts), probeOccupied = createOccupiedIndex(solveCtx.canvas ?? plot);
|
|
1506
1601
|
for (let claim of frameClaims)
|
|
1507
1602
|
probeOccupied.claim(claim.rect, claim.kind, claim.owner, claim.part);
|
|
1603
|
+
let hatchedIds = /* @__PURE__ */ new Set();
|
|
1508
1604
|
for (let region of fitted.regions) {
|
|
1509
1605
|
let regionVisible = region.polygons.length > 0 || visibleMarkerIds.has(region.id);
|
|
1510
|
-
regionVisible && claimRegionMark(region, probeOccupied), regionVisible && (valuesById.get(region.id) ?? null) === null
|
|
1606
|
+
if (regionVisible && claimRegionMark(region, probeOccupied), regionVisible && (valuesById.get(region.id) ?? null) === null) {
|
|
1607
|
+
let segments = hatchSegments(region, strokeToken(theme, "hair"));
|
|
1608
|
+
claimHatchSegments(segments, probeOccupied, region.id), segments.length > 0 && valuesById.has(region.id) && hatchedIds.add(region.id);
|
|
1609
|
+
}
|
|
1511
1610
|
}
|
|
1512
1611
|
for (let boundary of fitted.boundaries) claimBoundaryMark(boundary, probeOccupied);
|
|
1513
1612
|
claimLeaderAnchors(fitted.regions, leaderIds, probeOccupied);
|
|
@@ -1524,7 +1623,8 @@ function resolveRegionLabelLayout(pack, plot, lanePlot, frameClaims, valuesById,
|
|
|
1524
1623
|
outsideFits,
|
|
1525
1624
|
void 0,
|
|
1526
1625
|
withTable?.emphasis.has(region.id) ?? !1,
|
|
1527
|
-
withTable !== void 0
|
|
1626
|
+
withTable !== void 0,
|
|
1627
|
+
hatchedIds.has(region.id)
|
|
1528
1628
|
)
|
|
1529
1629
|
), solved = solveRegionLabels(plans, probeOccupied, solveCtx, outsideFits, (id) => leaderEligibleIds.has(id) && !leaderIds.has(id)), regionsById = new Map(fitted.regions.map((region) => [region.id, region])), hiddenIds = solved.placed.flatMap((label) => {
|
|
1530
1630
|
let id = label.owner.categoryId, region = id ? regionsById.get(id) : void 0;
|
|
@@ -1689,8 +1789,8 @@ function buildLeaderLanes(prepared, leaderIds, plot, theme, measure, valueTexts)
|
|
|
1689
1789
|
})
|
|
1690
1790
|
);
|
|
1691
1791
|
}
|
|
1692
|
-
function labelPlanForRegion(region, leaderLane, theme, measure, insidePaint, markerInline, valueTexts, rank, outsideFits, pattern, emphasized = !1, crossingCallouts = !1) {
|
|
1693
|
-
let tierFont = geoLabelFont(theme), compactFont = emphasized ? { ...tierFont, weight: emphasisWeight(theme) } : tierFont, compactText = regionLabelText(region, compactFont, measure, valueTexts), priority = PRIORITY.interior + Math.max(0, 300 - rank), inlineCandidates = inlineRegionCandidates(region, compactText, compactFont, effectiveFill(paintColor(theme, insidePaint), pattern, theme), measure, insidePaint, pattern), compact = regionLabelRequest(
|
|
1792
|
+
function labelPlanForRegion(region, leaderLane, theme, measure, insidePaint, markerInline, valueTexts, rank, outsideFits, pattern, emphasized = !1, crossingCallouts = !1, noDataHatch = !1) {
|
|
1793
|
+
let tierFont = geoLabelFont(theme), compactFont = emphasized ? { ...tierFont, weight: emphasisWeight(theme) } : tierFont, compactText = regionLabelText(region, compactFont, measure, valueTexts), priority = PRIORITY.interior + Math.max(0, 300 - rank), inlineCandidates = inlineRegionCandidates(region, compactText, compactFont, effectiveFill(paintColor(theme, insidePaint), pattern, theme), measure, insidePaint, pattern, noDataHatch), compact = regionLabelRequest(
|
|
1694
1794
|
region,
|
|
1695
1795
|
compactText,
|
|
1696
1796
|
compactFont,
|
|
@@ -1785,12 +1885,18 @@ function inlineMarkerCandidates(region, text, font, measure) {
|
|
|
1785
1885
|
};
|
|
1786
1886
|
return backedSlotsAround(marker.x, marker.y, marker.radius + 6, text, font, measure, "marker", 0);
|
|
1787
1887
|
}
|
|
1788
|
-
function inlineRegionCandidates(region, text, font, insideFill, measure, insidePaint, insidePattern) {
|
|
1888
|
+
function inlineRegionCandidates(region, text, font, insideFill, measure, insidePaint, insidePattern, noDataHatch = !1) {
|
|
1789
1889
|
let measured = measure(text, font), lineH = font.size * (font.lineHeight ?? 1.2), w = measured.width, h = lineH, availableSpan = region.anchor.clearance * CLEARANCE_TEXT_SPAN;
|
|
1790
1890
|
if (w > availableSpan || h > availableSpan || w * h > LABEL_MAX_COVER * polygonsArea(region.polygons)) return [];
|
|
1791
1891
|
let decorate = (candidate) => (
|
|
1792
|
-
// Pattern strokes need the same page-colour halo as a hatched tile.
|
|
1793
|
-
{
|
|
1892
|
+
// Pattern and no-data hatch strokes need the same page-colour halo as a hatched tile.
|
|
1893
|
+
{
|
|
1894
|
+
...candidate,
|
|
1895
|
+
insideFill,
|
|
1896
|
+
insidePaint,
|
|
1897
|
+
...insidePattern ? { insidePattern } : {},
|
|
1898
|
+
...insidePattern || noDataHatch ? { needsBacking: !0 } : {}
|
|
1899
|
+
}
|
|
1794
1900
|
), gap = 3, center = {
|
|
1795
1901
|
x: region.anchor.x - w / 2,
|
|
1796
1902
|
y: region.anchor.y - h / 2,
|
|
@@ -2138,15 +2244,6 @@ function boundsOfPolygons(polygons) {
|
|
|
2138
2244
|
let bounds = [minX, minY, maxX, maxY];
|
|
2139
2245
|
return regionBounds.set(polygons, bounds), bounds;
|
|
2140
2246
|
}
|
|
2141
|
-
function nearestRegionId(input, candidates, canonical) {
|
|
2142
|
-
let best;
|
|
2143
|
-
for (let candidate of candidates) {
|
|
2144
|
-
let distance = levenshtein(input.toUpperCase(), candidate.toUpperCase());
|
|
2145
|
-
(!best || distance < best.distance || distance === best.distance && candidate < best.id) && (best = { id: candidate, distance });
|
|
2146
|
-
}
|
|
2147
|
-
if (!(!best || best.distance > Math.max(2, Math.floor(input.length / 2))))
|
|
2148
|
-
return canonical.get(best.id);
|
|
2149
|
-
}
|
|
2150
2247
|
function pointInRect(x, y, rect) {
|
|
2151
2248
|
return x >= rect.x && x <= rect.x + rect.w && y >= rect.y && y <= rect.y + rect.h;
|
|
2152
2249
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutBar
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C5SQEYTQ.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareRangeData
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DPUCT567.js";
|
|
7
7
|
import {
|
|
8
8
|
calendarCategories,
|
|
9
9
|
chartSizing
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AFGQXMKT.js";
|
|
11
11
|
import {
|
|
12
12
|
prepareFractionData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-I65OLJ2X.js";
|
|
14
14
|
|
|
15
15
|
// src/core/charts/bar/core.ts
|
|
16
16
|
var barCore = {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sharedKeys10,
|
|
3
|
-
sharedKeys5
|
|
4
|
-
|
|
5
|
-
} from "./chunk-O36WX56O.js";
|
|
3
|
+
sharedKeys5
|
|
4
|
+
} from "./chunk-7BQK2UDV.js";
|
|
6
5
|
import {
|
|
7
6
|
optionKeyCheck
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FF7MV4D4.js";
|
|
9
8
|
import {
|
|
10
9
|
createChartComponent
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BDCKHLUB.js";
|
|
12
11
|
import {
|
|
13
12
|
tilemapCore
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SHAAMKN7.js";
|
|
15
14
|
import {
|
|
16
15
|
registeredType
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D5G67OER.js";
|
|
18
17
|
|
|
19
18
|
// src/react/charts/tilemap.ts
|
|
20
|
-
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0,
|
|
19
|
+
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0, scale: { kind: 0, midpoint: 0, polarity: 0 }, classes: 0, steps: 0, overlayTones: { good: 0, bad: 0, warn: 0, neutral: 0, info: 0 }, overlayMeasure: 0, regionValues: 0 }, labels: ["category"] }), TilemapChart = createChartComponent(registeredType(tilemapCore), checkOptionKeys);
|
|
21
20
|
|
|
22
21
|
export {
|
|
23
22
|
TilemapChart
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
columnOverridesOption
|
|
3
|
+
} from "./chunk-RRPTQGRU.js";
|
|
1
4
|
import {
|
|
2
5
|
addDuplicateIdIssues,
|
|
3
6
|
baseOptionsSchema,
|
|
4
7
|
idSchema,
|
|
5
8
|
primaryAxisTitleSchema,
|
|
6
9
|
refusedBaseOptions
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QYOZ46ZQ.js";
|
|
8
11
|
|
|
9
12
|
// src/core/charts/box/schema.ts
|
|
10
13
|
import * as z from "zod";
|
|
@@ -23,6 +26,7 @@ var groupSchema = z.object({
|
|
|
23
26
|
keys: "observations and scene identities"
|
|
24
27
|
});
|
|
25
28
|
}), boxOptionsSchema = baseOptionsSchema.safeExtend(refusedBaseOptions("box")).safeExtend({
|
|
29
|
+
columnOverrides: columnOverridesOption("box", ["width", "headAlign", "label"]),
|
|
26
30
|
axisTitles: primaryAxisTitleSchema("under the tick row, ending at the right end of the axis"),
|
|
27
31
|
whiskers: z.enum(["tukey", "minmax", "p10p90"]).optional().describe(
|
|
28
32
|
"Whisker rule. 'tukey' (default): most extreme observations within 1.5xIQR of the quartiles. 'minmax': whiskers reach every observation. 'p10p90': whiskers at the 10th/90th type-7 percentile."
|