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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
cachedMeasurer,
|
|
2
3
|
capHeightOfFace,
|
|
3
4
|
defaultMeasurer,
|
|
4
5
|
estimateTextWidthForFace,
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
markCachedTextMeasurer
|
|
7
|
+
} from "./chunk-UIHGGWES.js";
|
|
7
8
|
import {
|
|
8
9
|
DEFAULT_FAMILY,
|
|
9
10
|
buildCodePointIndex,
|
|
@@ -20,14 +21,20 @@ function createMetricTablesMeasurer(tables, options = {}) {
|
|
|
20
21
|
return options.bundledFallback === !0 ? withBundledFallback(own, measurableFamilies(tables)) : own;
|
|
21
22
|
}
|
|
22
23
|
function withBundledFallback(own, families) {
|
|
23
|
-
let mine = new Set(families.map(tableFamilyKey)), bundled = new Set(tabledFamilies().map(tableFamilyKey)), owner = (stack) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
let mine = new Set(families.map(tableFamilyKey)), bundled = new Set(tabledFamilies().map(tableFamilyKey)), owners = /* @__PURE__ */ new Map(), owner = (stack) => {
|
|
25
|
+
let key = stack ?? DEFAULT_FAMILY, known = owners.get(key);
|
|
26
|
+
if (known !== void 0) return known;
|
|
27
|
+
let found = defaultMeasurer;
|
|
28
|
+
for (let family of familiesOf(key)) {
|
|
29
|
+
if (mine.has(family)) {
|
|
30
|
+
found = own;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
if (bundled.has(family)) break;
|
|
27
34
|
}
|
|
28
|
-
return
|
|
35
|
+
return owners.size >= 256 && owners.delete(owners.keys().next().value), owners.set(key, found), found;
|
|
29
36
|
}, measure = (text, font) => owner(font.family)(text, font);
|
|
30
|
-
return measure.capHeight = (font) => owner(font.family).capHeight?.(font), measure;
|
|
37
|
+
return measure.capHeight = (font) => owner(font.family).capHeight?.(font), markCachedTextMeasurer(measure);
|
|
31
38
|
}
|
|
32
39
|
function measurerOverTables(tables) {
|
|
33
40
|
let index = buildCodePointIndex(tables.codePointRanges, tables.extraCodePoints), byFamily = /* @__PURE__ */ new Map();
|
|
@@ -48,11 +55,7 @@ function measurerOverTables(tables) {
|
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
57
|
return resolved.set(key, face), face;
|
|
51
|
-
}, measure = (text, font) => (
|
|
52
|
-
width: quantize(estimateTextWidthForFace(text, font, resolve(font.family, font.weight))),
|
|
53
|
-
height: quantize(font.size * (font.lineHeight ?? 1.2)),
|
|
54
|
-
ascent: quantize(font.size * 0.8)
|
|
55
|
-
});
|
|
58
|
+
}, measure = cachedMeasurer((text, font) => estimateTextWidthForFace(text, font, resolve(font.family, font.weight)));
|
|
56
59
|
return measure.capHeight = (font) => capHeightOfFace(font, resolve(font.family, font.weight)), measure;
|
|
57
60
|
}
|
|
58
61
|
function metricTablesFamilies(tables) {
|
|
@@ -1,38 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
matrixTracks,
|
|
3
|
+
nameTrackRefusals,
|
|
4
|
+
overrideIgnored,
|
|
5
|
+
widthCapped,
|
|
6
|
+
widthFloored
|
|
7
|
+
} from "./chunk-YGZEG3JV.js";
|
|
4
8
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
marginBracketLayout
|
|
10
|
+
} from "./chunk-LW4ZQGVL.js";
|
|
7
11
|
import {
|
|
8
12
|
runAnnotatePass
|
|
9
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UCIAHSJK.js";
|
|
10
14
|
import {
|
|
11
15
|
rowLabelBand
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PSYPB22T.js";
|
|
13
17
|
import {
|
|
14
18
|
GUTTER_MAX_SHARE,
|
|
15
19
|
fittedLabel,
|
|
16
20
|
gutterBudget,
|
|
17
21
|
stepDownFont
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XFCBH3TI.js";
|
|
19
23
|
import {
|
|
20
24
|
chartTheme
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IW3YUMPI.js";
|
|
26
|
+
import {
|
|
27
|
+
labelOn
|
|
28
|
+
} from "./chunk-YO5UKKCQ.js";
|
|
22
29
|
import {
|
|
23
30
|
structureCount
|
|
24
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XCROSJ2Z.js";
|
|
25
32
|
import {
|
|
26
33
|
NAMED_COLUMN_STATES,
|
|
27
34
|
NAMED_STATE_PATTERN
|
|
28
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5JTRCSBN.js";
|
|
29
36
|
import {
|
|
30
37
|
headInk,
|
|
31
38
|
plainInk
|
|
32
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I4NUYVP5.js";
|
|
33
40
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
41
|
+
generatedIdWarnings
|
|
42
|
+
} from "./chunk-SXAZDIGM.js";
|
|
36
43
|
import {
|
|
37
44
|
HARD_MINIMUM,
|
|
38
45
|
MONTH_START,
|
|
@@ -46,7 +53,7 @@ import {
|
|
|
46
53
|
rotatedClaimRect,
|
|
47
54
|
rowDrivenHeight,
|
|
48
55
|
rowSizing
|
|
49
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-AFGQXMKT.js";
|
|
50
57
|
import {
|
|
51
58
|
DEFAULT_NOTE_LIMIT,
|
|
52
59
|
HIDDEN_LABEL_LEAD,
|
|
@@ -67,10 +74,13 @@ import {
|
|
|
67
74
|
solveFrame,
|
|
68
75
|
solveLabels,
|
|
69
76
|
valueNoteLine
|
|
70
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WSKZZ2ZB.js";
|
|
71
78
|
import {
|
|
72
79
|
disclosureNote
|
|
73
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-WZB6R2ZX.js";
|
|
81
|
+
import {
|
|
82
|
+
emptyIdRecord
|
|
83
|
+
} from "./chunk-LINZPU5D.js";
|
|
74
84
|
import {
|
|
75
85
|
AUTOMATIC_FORMAT,
|
|
76
86
|
defaultFormatSpec,
|
|
@@ -81,7 +91,7 @@ import {
|
|
|
81
91
|
rasterDecimals,
|
|
82
92
|
seriesRasterFormatter,
|
|
83
93
|
specUnitKind
|
|
84
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-D3PQAVFW.js";
|
|
85
95
|
import {
|
|
86
96
|
NOT_AVAILABLE,
|
|
87
97
|
chartStrings,
|
|
@@ -90,7 +100,7 @@ import {
|
|
|
90
100
|
lowBaseKeyLabel,
|
|
91
101
|
nonzeroDecimals,
|
|
92
102
|
numberRange
|
|
93
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
94
104
|
import {
|
|
95
105
|
cellMeta,
|
|
96
106
|
cellValue,
|
|
@@ -111,7 +121,7 @@ import {
|
|
|
111
121
|
sequentialShare,
|
|
112
122
|
strokeToken,
|
|
113
123
|
textScaleOf
|
|
114
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-JARJP576.js";
|
|
115
125
|
import {
|
|
116
126
|
DEFAULT_TARGET,
|
|
117
127
|
NormalizeError,
|
|
@@ -120,7 +130,7 @@ import {
|
|
|
120
130
|
normalizeSeriesValues,
|
|
121
131
|
resolveHighlight,
|
|
122
132
|
resolveSize
|
|
123
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-FX5VZK5F.js";
|
|
124
134
|
import {
|
|
125
135
|
maxOf,
|
|
126
136
|
minOf,
|
|
@@ -129,7 +139,7 @@ import {
|
|
|
129
139
|
import {
|
|
130
140
|
defaultMeasurer,
|
|
131
141
|
wrapText
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-UIHGGWES.js";
|
|
133
143
|
|
|
134
144
|
// src/core/strings/heatmap.ts
|
|
135
145
|
var EN = {
|
|
@@ -195,7 +205,7 @@ function readableDecimals(range) {
|
|
|
195
205
|
for (; d < 6 && range * 10 ** d < 10; ) d++;
|
|
196
206
|
return d;
|
|
197
207
|
}
|
|
198
|
-
var HARVEY_ROW = 42, HARVEY_ROW_CARD = 36, HARVEY_LIST_ROW = 27, HARVEY_LIST_CELL = 28, HARVEY_HEADER_GAP = 8, HARVEY_BOTTOM_GAP = 12, BASE_CELL_GAP = 2, VALUE_CELL_GAP = 1.5, VALUE_ROW_CARD = 22, VALUE_ROW_NARROW = 26, VALUE_ROW_WIDE = 32.5, VALUE_KEY_GAP = 8, UPRIGHT_TIER_PITCH = 44, ROW_BAND_GAP = 8, HEADER_GAP = 4, CALLOUT_SEAT = 16, CARET_ROOM = 8, NO_DATA_PAINT = { token: "grid" }, BRACKET_CLEAR = 6, TRACK_ROOM = 12, KEY_GAP = 12, KEY_GROUP_GAP = 32, KEY_BAR_H = 10, KEY_DOT_R = 5.5, KEY_TEXT_GAP = 5, KEY_ENTRY_GAP = 14, BUBBLE_AIR = 2, BUBBLE_AIR_TIGHT = 1, VALUE_OVERHANG = 1.5, TIER_GAP = 3, TIER_NAME_GAP = 8, TIER_LEAN_MAX = 0.25, TICK_CLEAR = 4, TURNED = /* @__PURE__ */ Symbol("heatmapTurned");
|
|
208
|
+
var HARVEY_ROW = 42, HARVEY_ROW_CARD = 36, HARVEY_LIST_ROW = 27, HARVEY_LIST_CELL = 28, HARVEY_HEADER_GAP = 8, HARVEY_BOTTOM_GAP = 12, BASE_CELL_GAP = 2, VALUE_CELL_GAP = 1.5, VALUE_ROW_CARD = 22, VALUE_ROW_NARROW = 26, VALUE_ROW_WIDE = 32.5, VALUE_KEY_GAP = 8, UPRIGHT_TIER_PITCH = 44, ROW_BAND_GAP = 8, COLUMN_KEEP = 28, VALUE_INSET = 6, HEADER_GAP = 4, CALLOUT_SEAT = 16, CARET_ROOM = 8, NO_DATA_PAINT = { token: "grid" }, BRACKET_CLEAR = 6, TRACK_ROOM = 12, KEY_GAP = 12, KEY_GROUP_GAP = 32, KEY_BAR_H = 10, KEY_DOT_R = 5.5, KEY_TEXT_GAP = 5, KEY_ENTRY_GAP = 14, BUBBLE_AIR = 2, BUBBLE_AIR_TIGHT = 1, VALUE_OVERHANG = 1.5, TIER_GAP = 3, TIER_NAME_GAP = 8, TIER_LEAN_MAX = 0.25, TICK_CLEAR = 4, TURNED = /* @__PURE__ */ Symbol("heatmapTurned");
|
|
199
209
|
function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows = [], compactKey = !1) {
|
|
200
210
|
let warnings = [], theme = resolveSemanticPaletteTheme(
|
|
201
211
|
chartTheme(options),
|
|
@@ -206,7 +216,9 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
206
216
|
throw new NormalizeError("empty-data", "categories", "heatmap requires at least one category (column)");
|
|
207
217
|
if (!Array.isArray(data.series) || data.series.length === 0)
|
|
208
218
|
throw new NormalizeError("empty-data", "series", "heatmap requires at least one series (row)");
|
|
209
|
-
let rawCats = data.categories.map((c, i) => normalizeCategory(c, i)),
|
|
219
|
+
let rawCats = data.categories.map((c, i) => normalizeCategory(c, i)), overrides = options.columnOverrides ?? {}, nameTrack = overrides.label;
|
|
220
|
+
pushAll(warnings, generatedIdWarnings("heatmap", "columnOverrides", options.columnOverrides, ["label", ...rawCats.map((c) => c.id)])), pushAll(warnings, nameTrackRefusals(overrides, rawCats.map((c) => c.id)));
|
|
221
|
+
let cols = rawCats.map((c) => ({ id: c.id, label: overrides[c.id]?.label ?? c.label ?? c.id, date: c.date, ...c.footnote === void 0 ? {} : { footnote: c.footnote } })), rows = data.series.map((s, i) => {
|
|
210
222
|
if (!s?.id) throw new NormalizeError("missing-id", `series[${i}]`, "series requires an id");
|
|
211
223
|
let { sizes, bases, states } = s;
|
|
212
224
|
if ((sizes?.length ?? 0) > rawCats.length || (bases?.length ?? 0) > rawCats.length || (states?.length ?? 0) > rawCats.length)
|
|
@@ -299,7 +311,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
299
311
|
message: `discrete scale expects integer values 0\u20134; values ${numberRange(fmt(vMin), fmt(vMax))} mapped to quintiles`
|
|
300
312
|
});
|
|
301
313
|
let levelOf = (v) => isRatingScale ? v : vMax === vMin ? 2 : Math.min(4, Math.floor((v - vMin) / (vMax - vMin) * 5)), declaredDirections = rows.some((r) => r.direction !== void 0), valence = vMin < 0 || scale === "continuous" && declaredDirections;
|
|
302
|
-
options.cap && (scale === "discrete" || glyph === "harvey") && warnings.push({ code: "cap-ignored", severity: "warn", message: `cap does not apply to ${glyph === "harvey" ? "harvey glyphs" : "the discrete rating ladder"}; it sets where the continuous scale saturates`, suggest: "drop cap", field: ["options", "cap"] }), declaredDirections && (scale === "discrete" && !bins || glyph === "harvey") && warnings.push({
|
|
314
|
+
options.cap && (scale === "discrete" || glyph === "harvey") && warnings.push({ code: "cap-ignored", severity: "warn", message: `cap does not apply to ${glyph === "harvey" ? "harvey glyphs" : "the discrete rating ladder"}; it sets where the continuous scale saturates`, suggest: "drop cap", field: ["options", "cap"], fix: [{ op: "remove", path: "/options/cap" }] }), declaredDirections && (scale === "discrete" && !bins || glyph === "harvey") && warnings.push({
|
|
303
315
|
code: "direction-ignored",
|
|
304
316
|
severity: "warn",
|
|
305
317
|
message: glyph === "harvey" ? "series.direction does not recolor harvey glyphs \u2014 cells stay white and the declared judgment is not painted" : "series.direction does not apply to the discrete rating ladder \u2014 the declared judgment is not painted"
|
|
@@ -391,8 +403,10 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
391
403
|
measure
|
|
392
404
|
},
|
|
393
405
|
occupied
|
|
394
|
-
), keyRightW = continuousKey && keyRight ? KEY_BAR_H + 6 + KEY_GAP + Math.max(...[vMin, vMax, ...cap === void 0 ? [] : [-cap, cap]].map((v) => measure(`>=${displayFor(v, pctMatrix, null, keySeries)}`, tickFont).width)) : 0,
|
|
395
|
-
|
|
406
|
+
), keyRightW = continuousKey && keyRight ? KEY_BAR_H + 6 + KEY_GAP + Math.max(...[vMin, vMax, ...cap === void 0 ? [] : [-cap, cap]].map((v) => measure(`>=${displayFor(v, pctMatrix, null, keySeries)}`, tickFont).width)) : 0, framePlot = bubble || glyph === "harvey" ? frameResult.plot : bareGridPlot(frameResult.plot, size.height, margin, options), plot0 = { ...framePlot, w: Math.max(10, framePlot.w - keyRightW) }, bandRoom = plot0.w - ROW_BAND_GAP - (bracketGutter ?? 0) - cols.length * COLUMN_KEEP - (cols.length - 1) * CELL_GAP, authoredBand = nameTrack?.width === void 0 || harveyList ? void 0 : Math.max(24, Math.min(nameTrack.width - ROW_BAND_GAP, bandRoom));
|
|
407
|
+
nameTrack?.width !== void 0 && harveyList ? warnings.push(overrideIgnored("label", "width", "a list form sizes the names by their text")) : nameTrack?.width !== void 0 && nameTrack.width - ROW_BAND_GAP > Math.max(24, bandRoom) && warnings.push(widthCapped("heatmap", "label"));
|
|
408
|
+
let capW = authoredBand ?? Math.max(24, plot0.w * 0.28), cellHEst = (plot0.h - lineH - HEADER_GAP) / rows.length, card = size.width < 480 && !valueStyle, suffixed = options.rowSuffix && !turned ? rows.map((r) => ({ ...r, suffix: options.rowSuffix[r.id] })) : rows, fitRows = (maxLines, wider) => rowLabelBand(suffixed, tickFont, capW, maxLines, lineH, measure, {
|
|
409
|
+
...authoredBand === void 0 ? { wider } : {},
|
|
396
410
|
target: options.target,
|
|
397
411
|
textScale: textScaleOf(options),
|
|
398
412
|
typeRole: "axis",
|
|
@@ -404,11 +418,13 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
404
418
|
if (!valueStyle || !highlights.has(rows[ri].id)) return label;
|
|
405
419
|
let bold = { ...label.font, weight: emphasisWeight(theme) };
|
|
406
420
|
return { ...label, w: Math.max(label.w, ...label.lines.map((line) => measure(line, bold).width)) };
|
|
407
|
-
}),
|
|
421
|
+
}), rowBandFloor = Math.max(fittedRows.width, maxOf(rowLines.map((label) => label.w))), rowBandW = authoredBand === void 0 ? rowBandFloor : Math.max(rowBandFloor, authoredBand);
|
|
422
|
+
authoredBand !== void 0 && nameTrack.width - ROW_BAND_GAP < rowBandFloor && warnings.push(widthFloored("heatmap", "label"));
|
|
423
|
+
let rowSuffixShort = fittedRows.short, notes = annotations.filter((a) => a.kind === "callout" || a.kind === "note"), noteSize = (a, width = plot0.w, maxLines) => {
|
|
408
424
|
let ref = "at" in a ? a.at : void 0, ci = cols.findIndex((c) => c.id === (typeof ref == "string" ? ref : ref && "categoryId" in ref ? ref.categoryId : void 0)), row = rows.find((r) => typeof ref != "string" && ref && "seriesId" in ref && r.id === ref.seriesId), value = row?.cells[ci]?.v ?? colMeans[cols[ci]?.id ?? ""] ?? 0, body = "text" in a ? a.text ?? "${value}" : "${value}";
|
|
409
425
|
cellLabelsOn && row && (plot0.w - rowBandW - ROW_BAND_GAP) / cols.length > measure(shownFor(value, pctMatrix, null, row), labelFont).width + 6 && (body = body.replace(/:\s*\n\$\{value\}$/, ""));
|
|
410
426
|
let glyphRoom = "icon" in a && a.icon || "status" in a && a.status ? 29 : 0, source = `${"headline" in a && a.headline !== void 0 ? `${a.headline}
|
|
411
|
-
` : ""}${body}`.replace(/\$\{value\}/g, displayFor(value, pctMatrix, null, row)), wrapped = wrapText(source, { ...labelFont, weight: emphasisWeight(theme) }, Math.max(1, width - glyphRoom), maxLines ?? Math.max(1, source.length), measure), lines = wrapped.lines, w = Math.max(...lines.map((line) => measure(line, { ...labelFont, weight: emphasisWeight(theme) }).width));
|
|
427
|
+
` : ""}${body}`.replace(/\$\{value\}/g, displayFor(value, pctMatrix, null, row)), wrapped = wrapText(source, { ...labelFont, weight: emphasisWeight(theme) }, Math.max(1, width - glyphRoom), maxLines ?? Math.max(1, source.length), measure), lines = wrapped.lines, w = Math.max(0, ...lines.map((line) => measure(line, { ...labelFont, weight: emphasisWeight(theme) }).width));
|
|
412
428
|
return { w, h: Math.max(glyphRoom ? 22 : 0, measure("0", labelFont).height * lines.length), sideW: w + (glyphRoom ? 38 : CALLOUT_SEAT), truncated: wrapped.truncated };
|
|
413
429
|
}, noteSizes = new Map(notes.map((a) => [a.id, noteSize(a)])), baseGutter = (bracketGutter ?? 0) + (bubble && options.bubble?.track ? TRACK_ROOM : 0), space = plot0.w - rowBandW - ROW_BAND_GAP - baseGutter, sideWrapWidth = Math.max(1, space * 0.15 / 1.15 - CALLOUT_SEAT), sideSizes = new Map(notes.map((a) => [a.id, noteSize(a, sideWrapWidth, 2)])), sideNotes = notes.filter((a) => !forceRows.includes(a.id) && (!("preferSide" in a) || a.preferSide !== "above" && a.preferSide !== "below")), sideWidth = (side) => Math.max(0, maxOf(sideNotes.filter((a) => ("preferSide" in a && a.preferSide === "left") == (side === "left")).map((a) => sideSizes.get(a.id).sideW)));
|
|
414
430
|
for (let pass = 0; pass <= notes.length; pass++) {
|
|
@@ -430,7 +446,16 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
430
446
|
});
|
|
431
447
|
a.text = names.length ? `${names.join(" \xB7 ")}: ${body}` : body, noteSizes.set(a.id, noteSize(a));
|
|
432
448
|
}
|
|
433
|
-
let aboveNotes = rowNotes.filter((a) => "preferSide" in a && a.preferSide === "above"), belowNotes = rowNotes.filter((a) => !aboveNotes.includes(a)), rowHeight = (items) => items.reduce((sum, a) => sum + noteSizes.get(a.id).h + 8, 0), caretRoom = valueStyle && belowNotes.length > 0 ? CARET_ROOM : 0, annotationTopH = rowHeight(aboveNotes), annotationBottomH, leftRoom = sideWidth("left"), rightRoom = sideWidth("right"), gutterRight = baseGutter + rightRoom + (rowNotes.length && !valueStyle ? 8 : 0), gridX = harveyList ? plot0.x : plot0.x + rowBandW + ROW_BAND_GAP + leftRoom,
|
|
449
|
+
let aboveNotes = rowNotes.filter((a) => "preferSide" in a && a.preferSide === "above"), belowNotes = rowNotes.filter((a) => !aboveNotes.includes(a)), rowHeight = (items) => items.reduce((sum, a) => sum + noteSizes.get(a.id).h + 8, 0), caretRoom = valueStyle && belowNotes.length > 0 ? CARET_ROOM : 0, annotationTopH = rowHeight(aboveNotes), annotationBottomH, leftRoom = sideWidth("left"), rightRoom = sideWidth("right"), gutterRight = baseGutter + rightRoom + (rowNotes.length && !valueStyle ? 8 : 0), gridX = harveyList ? plot0.x : plot0.x + rowBandW + ROW_BAND_GAP + leftRoom, gridRoom = harveyList ? HARVEY_LIST_CELL : Math.max(10, plot0.w - rowBandW - ROW_BAND_GAP - gutterRight - leftRoom), tracks = turned ? void 0 : matrixTracks(cols.map((c) => c.id), gridRoom, CELL_GAP, (id) => overrides[id]?.width, () => COLUMN_KEEP);
|
|
450
|
+
if (tracks) for (let id of tracks.capped) warnings.push(widthCapped("heatmap", id));
|
|
451
|
+
if (tracks) for (let id of tracks.floored) warnings.push(widthFloored("heatmap", id));
|
|
452
|
+
if (turned)
|
|
453
|
+
for (let c of rawCats) for (let key of ["width", "align", "headAlign"])
|
|
454
|
+
overrides[c.id]?.[key] !== void 0 && warnings.push(overrideIgnored(c.id, key, "this matrix draws its categories as rows"));
|
|
455
|
+
let gridW = tracks?.gridW ?? gridRoom, cellW = tracks ? minOf(tracks.widths) : Math.max(1, (gridW - (cols.length - 1) * CELL_GAP) / cols.length), colStep = cellW + CELL_GAP, colWidth = (ci) => tracks ? tracks.widths[ci] : cellW, colLeft = (ci) => tracks ? gridX + tracks.lefts[ci] : gridX + ci * colStep, colCenter = (ci) => colLeft(ci) + colWidth(ci) / 2, headAlignOf = (ci) => {
|
|
456
|
+
let override = turned ? void 0 : overrides[cols[ci].id];
|
|
457
|
+
return override?.headAlign ?? override?.align;
|
|
458
|
+
}, belowRows = [], seatBounds = /* @__PURE__ */ new Map();
|
|
434
459
|
{
|
|
435
460
|
let centreOf = (a) => {
|
|
436
461
|
let ref = "at" in a ? a.at : void 0, ci = cols.findIndex((c) => typeof ref == "object" && ref !== null && "categoryId" in ref && c.id === ref.categoryId);
|
|
@@ -545,6 +570,16 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
545
570
|
x: () => plot0.x
|
|
546
571
|
};
|
|
547
572
|
}
|
|
573
|
+
if (tracks && headerPlan.rotation === 0 && tierTicks.length === 0) {
|
|
574
|
+
let plan = headerPlan, lineHt = plan.font.size * (plan.font.lineHeight ?? 1.2), infos = plan.infos.map((info, ci) => {
|
|
575
|
+
let label = cols[ci].label, one = measure(label, plan.font).width;
|
|
576
|
+
return info.lines.length > 1 && info.title === void 0 && cols[ci].footnote === void 0 && one <= colWidth(ci) - 2 ? { ...info, lines: [label], w: one, h: lineHt } : info;
|
|
577
|
+
});
|
|
578
|
+
if (infos.some((info, ci) => info !== plan.infos[ci])) {
|
|
579
|
+
let maxLines = maxOf(infos.map((info) => info.lines.length));
|
|
580
|
+
headerPlan = { ...plan, infos, maxLines, rowHeight: maxLines * lineHt, x: (ci) => Math.min(plot0.x + plot0.w - infos[ci].w, colCenter(ci) - infos[ci].w / 2) };
|
|
581
|
+
}
|
|
582
|
+
}
|
|
548
583
|
let headerRotated = headerPlan.rotation !== 0, colLines = headerPlan.infos, headerFont = headerPlan.font, headerLines = headerPlan.maxLines, showHeaderRow = labelOn2("category") && cols.length > 0;
|
|
549
584
|
showHeaderRow && pushAll(warnings, headerPlan.warnings);
|
|
550
585
|
let headerH = showHeaderRow ? headerPlan.rowHeight + HEADER_GAP : 0, headerKeep = headerPlan.keep, keyFont = { family: theme.type.family, ...theme.type.axis }, keyLineH = keyFont.size * 1.2, keyTitled = options.bubble?.sizeLabel !== void 0 || options.bubble?.colorLabel !== void 0, headerGap = harveyWide ? HARVEY_HEADER_GAP : 0, styledKey = bubbleKeys && bubbleStyle ? planStyledBubbleKey() : void 0;
|
|
@@ -559,7 +594,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
559
594
|
let fillH = Math.max(1, (gridH - (rows.length - 1) * CELL_GAP) / rows.length), cellH = glyph === "harvey" ? capPitch(fillH, 1, 2 * 0.68 * cellW) : bubble ? capPitch(fillH, 1, 1.5 * cellW) : fillH, rowStep = cellH + CELL_GAP, rowCenter = (ri) => gridY + ri * rowStep + cellH / 2, plot = { x: gridX, y: gridY, w: gridW, h: gridH }, rowFloor = valueStyle && size.width < 720 ? size.width < 480 ? VALUE_ROW_CARD : VALUE_ROW_NARROW : valueStyle && size.width >= 960 ? VALUE_ROW_WIDE : 28, floorFont = { ...labelFont, size: readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)) }, constantCol = cols.map((_, ci) => {
|
|
560
595
|
let held = rows.flatMap((r) => r.cells[ci].v ?? []);
|
|
561
596
|
return held.length >= 2 && held.every((v) => v === held[0]);
|
|
562
|
-
}), allFit = () => rows.every((r) => measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), floorFont, measure,
|
|
597
|
+
}), allFit = () => rows.every((r) => measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), floorFont, measure, colWidth, 1 / 0, 4).every((value, ci) => value === null || value.fits || constantCol[ci]));
|
|
563
598
|
if (cellLabelsOn && !bubble) {
|
|
564
599
|
let hasPct = percentNamedByUnit && rows.some((r) => r.cells.some((c) => c.pct && c.v !== null)), stepsOfDecimals = !options.format && rows.some((r) => !r.format && !r.unit && r.cells.some((c) => c.v !== null && !c.meta?.format)) ? Math.max(0, decimals - Math.min(decimals, readableDecimals(vMax - vMin))) : 0, steps = [...hasPct ? [{ decimals: 0, sign: !0 }] : []];
|
|
565
600
|
for (let off = 1; off <= stepsOfDecimals; off++) steps.push({ decimals: off, sign: hasPct });
|
|
@@ -589,13 +624,13 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
589
624
|
if (!highlights.has(c.id)) return;
|
|
590
625
|
let nodeId = `colTint:${c.id}`;
|
|
591
626
|
if (barHighlight) {
|
|
592
|
-
outlines.push({ id: nodeId, rect: { x:
|
|
627
|
+
outlines.push({ id: nodeId, rect: { x: colLeft(ci), y: gridY, w: colWidth(ci), h: gridH }, owner: colOwner(c), part: "colTint" });
|
|
593
628
|
return;
|
|
594
629
|
}
|
|
595
630
|
nodes.push({
|
|
596
631
|
t: "rect",
|
|
597
632
|
id: nodeId,
|
|
598
|
-
rect: { x:
|
|
633
|
+
rect: { x: colLeft(ci) - 2, y: headTop, w: colWidth(ci) + 4, h: headerH + gridH },
|
|
599
634
|
fill: highlightWash,
|
|
600
635
|
owner: { categoryId: c.id },
|
|
601
636
|
part: "colTint"
|
|
@@ -620,7 +655,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
620
655
|
if (bubbleStyle && levels && size2 !== null) return size2 > 0 ? Math.max(1.5, bubbleR * (size2 + 1) / (levels.length + 1)) : 0;
|
|
621
656
|
let share = areaShare(size2);
|
|
622
657
|
return share > 0 ? Math.max(1.5, bubbleR * Math.sqrt(share)) : 0;
|
|
623
|
-
}, bubbleNodes = [], missingSizes = 0, valueCellW = 0, omittedValues = 0, hiddenCells = [], rowValues = (font) => rows.map((r) => cellLabelsOn && !bubble ? measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), font, measure,
|
|
658
|
+
}, bubbleNodes = [], missingSizes = 0, valueCellW = 0, omittedValues = 0, hiddenCells = [], rowValues = (font) => rows.map((r) => cellLabelsOn && !bubble ? measureRowLabels(r.cells, (v, pct, meta) => textFor(v, pct, meta, r), font, measure, colWidth, cellH, 4) : []), valueFloor = readerFloorPx(options.target ?? DEFAULT_TARGET, "label", textScaleOf(options)), bubbleValuesFit = () => !bubbleStyle || !cellLabelsOn || rows.every((r) => r.cells.every((cell) => {
|
|
624
659
|
if (cell.v === null || topOnly && cell.size !== levels.length) return !0;
|
|
625
660
|
let radius = radiusOf(cell.size), text = textFor(cell.v, cell.pct, cell.meta, r);
|
|
626
661
|
if (radius === 0 || !text) return !0;
|
|
@@ -637,7 +672,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
637
672
|
let values = fitted[ri];
|
|
638
673
|
for (let value of values) value && (valueCellW = Math.max(valueCellW, value.size.width + 4));
|
|
639
674
|
cols.forEach((c, ci) => {
|
|
640
|
-
let cell = r.cells[ci], rect = { x:
|
|
675
|
+
let cell = r.cells[ci], rect = { x: colLeft(ci), y: gridY + ri * rowStep, w: colWidth(ci), h: cellH }, nodeId = `cell:${cellKey(r, c)}`, owner = { seriesId: seriesOf(r, c), categoryId: categoryOf(r, c) }, needsStroke = glyph === "harvey" && !(harveyStyle && cell.v !== null) || cell.v === null, valuePaint = fillPaint(cell.v, cell.meta, rect.w > 12 && cellH > 12, r.direction), paint = bubble && !cell.meta?.fill ? { token: "background" } : valuePaint, css = paintColor(theme, paint), insidePaint = paint;
|
|
641
676
|
!barHighlight && "token" in paint && paint.token === "background" && !paint.tint && (highlights.has(r.id) || highlights.has(c.id)) && (paint = highlightWash);
|
|
642
677
|
let noData = hatchMissing && cell.v === null && !cell.meta?.fill, blankCell = missingLook === "blank" && cell.v === null && !cell.meta?.fill && missingCells, low = !bubble && cell.v !== null && lowBase(cell);
|
|
643
678
|
if (nodes.push({
|
|
@@ -699,7 +734,9 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
699
734
|
let value = values[ci];
|
|
700
735
|
if (value?.fits && printValues) {
|
|
701
736
|
let { text, size: tsize } = value, basePriority = cell.v !== null && (cell.v === extremeMax || cell.v === extremeMin) ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(cell.v ?? 0));
|
|
702
|
-
low || matrixPaints.push(insidePaint)
|
|
737
|
+
low || matrixPaints.push(insidePaint);
|
|
738
|
+
let valueAlign = turned ? void 0 : overrides[c.id]?.align;
|
|
739
|
+
labelRequests.push({
|
|
703
740
|
id: `point:${r.id}:${c.id}`,
|
|
704
741
|
kind: "point",
|
|
705
742
|
typeRole: "label",
|
|
@@ -713,7 +750,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
713
750
|
{
|
|
714
751
|
slot: "insideCenter",
|
|
715
752
|
rect: {
|
|
716
|
-
x: rect.x + rect.w / 2 - tsize.width / 2,
|
|
753
|
+
x: valueAlign === "left" ? rect.x + Math.min(VALUE_INSET, (rect.w - tsize.width) / 2) : valueAlign === "right" ? rect.x + rect.w - tsize.width - Math.min(VALUE_INSET, (rect.w - tsize.width) / 2) : rect.x + rect.w / 2 - tsize.width / 2,
|
|
717
754
|
y: rect.y + rect.h / 2 - tsize.height / 2,
|
|
718
755
|
w: tsize.width,
|
|
719
756
|
h: tsize.height
|
|
@@ -755,7 +792,8 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
755
792
|
function rowFont(id) {
|
|
756
793
|
return valueStyle && id !== void 0 && highlights.has(id) ? { ...tickFont, weight: emphasisWeight(theme) } : tickFont;
|
|
757
794
|
}
|
|
758
|
-
|
|
795
|
+
let nameAlign = harveyList ? void 0 : nameTrack?.align;
|
|
796
|
+
if (labelOn2("series") && rows.forEach((r, ri) => {
|
|
759
797
|
let rl = rowLines[ri];
|
|
760
798
|
labelRequests.push({
|
|
761
799
|
id: rowLabelId(r),
|
|
@@ -764,17 +802,25 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
764
802
|
text: r.label,
|
|
765
803
|
...fittedLabel(rl, tickFont),
|
|
766
804
|
font: rowFont(r.id),
|
|
805
|
+
...nameAlign === "left" ? { align: "start" } : nameAlign === "center" ? { align: "middle" } : nameAlign === "right" ? { align: "end" } : {},
|
|
767
806
|
priority: PRIORITY.endpoint + (highlights.has(r.id) ? PRIORITY.highlightBonus : 0),
|
|
768
807
|
candidates: [
|
|
769
808
|
{
|
|
770
809
|
slot: "left",
|
|
771
810
|
// The bubble matrix sets its row names at the plot edge.
|
|
772
|
-
rect: { x: harveyList ? gridX + gridW + KEY_TEXT_GAP + 5 :
|
|
811
|
+
rect: { x: harveyList ? gridX + gridW + KEY_TEXT_GAP + 5 : nameAlign === "left" ? plot0.x : nameAlign === "center" ? plot0.x + (rowBandW - rl.w) / 2 : nameAlign === "right" || !(bubbleStyle || harveyStyle) ? plot0.x + rowBandW - rl.w : plot0.x, y: rowCenter(ri) - rl.h / 2, w: rl.w, h: rl.h },
|
|
773
812
|
penalty: 0
|
|
774
813
|
}
|
|
775
814
|
]
|
|
776
815
|
});
|
|
777
|
-
}),
|
|
816
|
+
}), !turned) {
|
|
817
|
+
let headReads = showHeaderRow && !harveyList && !headerRotated && tierTicks.length === 0;
|
|
818
|
+
for (let c of cols) {
|
|
819
|
+
let override = overrides[c.id];
|
|
820
|
+
override?.headAlign !== void 0 && !headReads && warnings.push(overrideIgnored(c.id, "headAlign", "these heads keep their own place at this size")), override?.align !== void 0 && !(glyph === "value" && cellLabelsOn) && (!headReads || override.headAlign !== void 0) && warnings.push(overrideIgnored(c.id, "align", "no cell text or head reads this align"));
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
harveyList && nameTrack?.align !== void 0 && warnings.push(overrideIgnored("label", "align", "a list form places the names after its glyphs")), showHeaderRow && cols.forEach((c, ci) => {
|
|
778
824
|
let cl = colLines[ci];
|
|
779
825
|
labelRequests.push({
|
|
780
826
|
id: colLabelId(c),
|
|
@@ -783,7 +829,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
783
829
|
owner: colOwner(c),
|
|
784
830
|
text: c.label,
|
|
785
831
|
lines: cl.lines,
|
|
786
|
-
...categoryLineAlign(headerPlan, ci),
|
|
832
|
+
...headerRotated || tierTicks.length > 0 ? categoryLineAlign(headerPlan, ci) : headAlignOf(ci) === "left" ? { align: "start" } : headAlignOf(ci) === "right" ? { align: "end" } : categoryLineAlign(headerPlan, ci),
|
|
787
833
|
...cl.title !== void 0 ? { title: cl.title } : {},
|
|
788
834
|
font: headerFont,
|
|
789
835
|
priority: PRIORITY.endpoint + (highlights.has(c.id) ? PRIORITY.highlightBonus : 0),
|
|
@@ -793,7 +839,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
793
839
|
{
|
|
794
840
|
slot: "top",
|
|
795
841
|
rect: {
|
|
796
|
-
x: harveyList ? plot0.x : headerPlan.x(ci),
|
|
842
|
+
x: harveyList ? plot0.x : tierTicks.length > 0 || headAlignOf(ci) === void 0 ? headerPlan.x(ci) : headAlignOf(ci) === "left" ? colLeft(ci) : headAlignOf(ci) === "right" ? colLeft(ci) + colWidth(ci) - cl.w : colCenter(ci) - cl.w / 2,
|
|
797
843
|
y: headTop + headerH - HEADER_GAP - cl.h - tierLift[ci],
|
|
798
844
|
w: cl.w,
|
|
799
845
|
h: cl.h
|
|
@@ -930,7 +976,7 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
930
976
|
allLabels,
|
|
931
977
|
(l) => headerIds.has(l.id) ? headerFont : rowBandIds.has(l.id) ? rowFont(l.owner.seriesId) : l.kind === "point" && bubbleStyle ? valueLabelFont : l.owner.annotationId && annotations.some((a) => a.id === l.owner.annotationId && (a.kind === "cagr" || a.kind === "diff")) ? { ...labelFont, weight: emphasisWeight(theme) } : labelFont,
|
|
932
978
|
nodes
|
|
933
|
-
).map((node) => node.t === "text" && !bubbleStyle && !harveyStyle && node.part === "series" && node.lines.length > 1 && node.align === "start" ? { ...node, align: "end", x: labelRects.get(node.id).x + labelRects.get(node.id).w } : node.t === "text" && rowNoteAlign.has(node.id) ? { ...node, ...rowNoteAlign.get(node.id) } : node.t === "text" && node.part === "point" && node.lines.length === 1 && node.lines[0] === "\u2013" && nullCellLabels.has(node.id) ? { ...node, ink: { token: "inkMuted" } } : node));
|
|
979
|
+
).map((node) => node.t === "text" && !bubbleStyle && !harveyStyle && nameAlign === void 0 && node.part === "series" && node.lines.length > 1 && node.align === "start" ? { ...node, align: "end", x: labelRects.get(node.id).x + labelRects.get(node.id).w } : node.t === "text" && rowNoteAlign.has(node.id) ? { ...node, ...rowNoteAlign.get(node.id) } : node.t === "text" && node.part === "point" && node.lines.length === 1 && node.lines[0] === "\u2013" && nullCellLabels.has(node.id) ? { ...node, ink: { token: "inkMuted" } } : node));
|
|
934
980
|
let placedAnnotations = annResult.placed, scaleWord = glyph === "harvey" ? chartString(options, "harveyBallName") : bubble ? chartString(options, "bubbleScaleWord", { v1: hasSizes ? chartString(options, "circleAreaSize") : "" }) : scale === "discrete" ? chartString(options, "discrete") : chartString(options, "continuous"), invertedRows = valence || bins && declaredDirections ? dataRows.filter((r) => r.direction === "lowerIsBetter") : [], a11yDesc = chartString(options, "heatmapDescStart", { v1: scaleWord, v2: dataRows.length, v3: dataCols.length }) + (allValues.length > 0 ? chartString(options, "valuesRange", { v1: fmt(vMin), v2: fmt(vMax) }) : "") + (invertedRows.length > 0 ? chartString(options, "invertedRowsDesc", { v1: invertedRows.map((r) => r.label).join(", ") }) : "") + chartString(options, "rowMeansSentence", { v1: dataRows.map((r) => {
|
|
935
981
|
let mean = rowMeans[r.id];
|
|
936
982
|
return `${r.label} ${mean == null ? NOT_AVAILABLE : fmt(mean)}`;
|
|
@@ -948,7 +994,12 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
948
994
|
harveyList ? (() => {
|
|
949
995
|
let w = size.width - plot0.w + gridW + KEY_TEXT_GAP + 5 + Math.max(0, maxOf(rowLines.map((label) => label.w)), maxOf(colLines.map((label) => label.w - gridW - KEY_TEXT_GAP - 5)));
|
|
950
996
|
return { minWidth: w, naturalWidth: w };
|
|
951
|
-
})() :
|
|
997
|
+
})() : (() => {
|
|
998
|
+
let heads = colLines.map((label) => tierTicks.length ? label.w / 2 : label.w), chromeW = size.width - gridRoom, widths = matrixWidths(chromeW - (rowBandW - rowBandFloor), cols.length, CELL_GAP, heads, valueCellW);
|
|
999
|
+
if (!tracks) return widths;
|
|
1000
|
+
let free = Math.max(28, valueCellW, maxOf(heads));
|
|
1001
|
+
return { ...widths, naturalWidth: chromeW + tracks.widths.reduce((sum, width, ci) => sum + (tracks.authored[ci] ? width : free), 0) + (cols.length - 1) * CELL_GAP };
|
|
1002
|
+
})(),
|
|
952
1003
|
size.width,
|
|
953
1004
|
rowSuffixShort
|
|
954
1005
|
)
|
|
@@ -1235,15 +1286,21 @@ function layoutHeatmap(data, options = {}, bracketGutter, valueNote, forceRows =
|
|
|
1235
1286
|
return pct && (!example || specUnitKind(parseFormatExample(example)) === "number") && !(step.sign && percentNamedByUnit) ? `${text}%` : text;
|
|
1236
1287
|
}
|
|
1237
1288
|
}
|
|
1238
|
-
function measureRowLabels(cells, textFor, font, measure,
|
|
1239
|
-
return cells.map((cell) => {
|
|
1240
|
-
let text = cell.meta?.label === !1 ? null : cell.v === null ? "\u2013" : textFor(cell.v, cell.pct, cell.meta);
|
|
1289
|
+
function measureRowLabels(cells, textFor, font, measure, widthOf, height, air = 2) {
|
|
1290
|
+
return cells.map((cell, ci) => {
|
|
1291
|
+
let width = widthOf(ci), text = cell.meta?.label === !1 ? null : cell.v === null ? "\u2013" : textFor(cell.v, cell.pct, cell.meta);
|
|
1241
1292
|
if (!text) return null;
|
|
1242
1293
|
let size = measure(text, font);
|
|
1243
1294
|
return { text, size, fits: size.width + air <= width && size.height + 2 <= height };
|
|
1244
1295
|
});
|
|
1245
1296
|
}
|
|
1297
|
+
function bareGridPlot(plot, height, margin, options) {
|
|
1298
|
+
if (options.margin?.bottom !== void 0 || panelTypeClass(options) !== void 0 || Math.abs(plot.y + plot.h - (height - margin.bottom)) > 0.5) return plot;
|
|
1299
|
+
let extra = Math.max(0, margin.left - margin.bottom);
|
|
1300
|
+
return extra === 0 ? plot : { ...plot, h: Math.max(10, plot.h - extra) };
|
|
1301
|
+
}
|
|
1246
1302
|
|
|
1247
1303
|
export {
|
|
1248
|
-
layoutHeatmap
|
|
1304
|
+
layoutHeatmap,
|
|
1305
|
+
bareGridPlot
|
|
1249
1306
|
};
|
|
@@ -2,22 +2,22 @@ import {
|
|
|
2
2
|
sharedKeys10,
|
|
3
3
|
sharedKeys5,
|
|
4
4
|
sharedKeys9
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7BQK2UDV.js";
|
|
6
6
|
import {
|
|
7
7
|
optionKeyCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FF7MV4D4.js";
|
|
9
9
|
import {
|
|
10
10
|
createChartComponent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BDCKHLUB.js";
|
|
12
12
|
import {
|
|
13
13
|
heatmapCore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BFDPY7JM.js";
|
|
15
15
|
import {
|
|
16
16
|
registeredType
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D5G67OER.js";
|
|
18
18
|
|
|
19
19
|
// src/react/charts/heatmap.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, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, scale: 0, variant: 0, cap: { pct: 0, abs: 0 }, breaks: 0, bubble: { levels: 0, sizeLabel: 0, colorLabel: 0, track: 0 }, minBase: 0, missing: 0 }, labels: ["category", "series", "point"] }), HeatmapChart = createChartComponent(registeredType(heatmapCore), checkOptionKeys);
|
|
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, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, scale: 0, variant: 0, cap: { pct: 0, abs: 0 }, breaks: 0, bubble: { levels: 0, sizeLabel: 0, colorLabel: 0, track: 0 }, columnOverrides: { "*": { width: 0, align: 0, headAlign: 0, label: 0 } }, minBase: 0, missing: 0 }, labels: ["category", "series", "point"] }), HeatmapChart = createChartComponent(registeredType(heatmapCore), checkOptionKeys);
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
23
|
HeatmapChart
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chartString
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4JGBCBDZ.js";
|
|
4
4
|
import {
|
|
5
5
|
eventReading
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OQQMDSCC.js";
|
|
7
7
|
import {
|
|
8
8
|
compileIcon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M2OQK2FO.js";
|
|
10
10
|
import {
|
|
11
11
|
yearSpan,
|
|
12
12
|
yearSpanFromLabels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3LNVEE5Z.js";
|
|
14
14
|
import {
|
|
15
15
|
SHARES_OF_ONE_WHOLE_FIX,
|
|
16
16
|
valuelessFix
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
lineLabelGutterLines,
|
|
25
25
|
namedLineText,
|
|
26
26
|
pruneOrphanAnnotationArms
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O4D27FKH.js";
|
|
28
28
|
import {
|
|
29
29
|
parseTimeText
|
|
30
30
|
} from "./chunk-GDOW2KNP.js";
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
solveLabels,
|
|
47
47
|
unionRect,
|
|
48
48
|
valueEdgeToward
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-WSKZZ2ZB.js";
|
|
50
50
|
import {
|
|
51
51
|
recordPartNeed,
|
|
52
52
|
wrapFootnote
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WZB6R2ZX.js";
|
|
54
54
|
import {
|
|
55
55
|
differenceExample,
|
|
56
56
|
exampleSpec,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
roundedNumber,
|
|
64
64
|
specUnitKind,
|
|
65
65
|
withChartMarks
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-D3PQAVFW.js";
|
|
67
67
|
import {
|
|
68
68
|
PERCENTAGE_POINTS,
|
|
69
69
|
autoDecimals,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
roundHalfUp,
|
|
76
76
|
roundsToZero,
|
|
77
77
|
typicalDecimals
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
79
79
|
import {
|
|
80
80
|
arrowHeadPath,
|
|
81
81
|
arrowShaftEnd,
|
|
@@ -88,13 +88,13 @@ import {
|
|
|
88
88
|
signedFillPaint,
|
|
89
89
|
strokeToken,
|
|
90
90
|
typeWidthClass
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JARJP576.js";
|
|
92
92
|
import {
|
|
93
93
|
publishDeferred
|
|
94
94
|
} from "./chunk-DRHQG44U.js";
|
|
95
95
|
import {
|
|
96
96
|
NormalizeError
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-FX5VZK5F.js";
|
|
98
98
|
import {
|
|
99
99
|
maxOf,
|
|
100
100
|
minOf,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
} from "./chunk-WYJEOMNY.js";
|
|
103
103
|
import {
|
|
104
104
|
wrapText
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-UIHGGWES.js";
|
|
106
106
|
|
|
107
107
|
// src/core/strings/annotate.ts
|
|
108
108
|
var EN = {
|
|
@@ -1671,7 +1671,9 @@ function placeNote(s, ann) {
|
|
|
1671
1671
|
owner: { annotationId: s.id },
|
|
1672
1672
|
suggest: "keep it, as the number stands at the mark, or drop ${value} from the text to set the wording yourself"
|
|
1673
1673
|
}), repeats && !text && !glyph) return;
|
|
1674
|
-
let headline = ann.kind === "callout" && ann.headline !== void 0 ? ann.headline.replace(/\$\{value\}/g, value) : void 0
|
|
1674
|
+
let headline = ann.kind === "callout" && ann.headline !== void 0 ? ann.headline.replace(/\$\{value\}/g, value) : void 0;
|
|
1675
|
+
!text.trim() && headline === void 0 && !glyph && warn(s, "annotation-empty", `${ann.kind} '${s.id}': its text is empty, so it prints no words; any arrow or leader stays`);
|
|
1676
|
+
let placedGlyph = glyph ? planCalloutGlyph(s, at, glyph, text) : void 0, lines = headline === void 0 ? text : `${headline}
|
|
1675
1677
|
${text}`;
|
|
1676
1678
|
calloutLabel(s, ann, at, lines, ann.kind, void 0, lines, {
|
|
1677
1679
|
basis: "authored",
|
|
@@ -2011,7 +2013,7 @@ function calloutLabel(s, ann, anchor, text, kind, tone, computed = text, derivat
|
|
|
2011
2013
|
`).flatMap((line, i) => {
|
|
2012
2014
|
let face = i < headSourceLines ? { ...font, weight: emphasisWeight(input.theme) } : font, wrapped = rowWidth === void 0 ? [line] : wrapText(line, face, Math.max(1, rowWidth - (glyph ? glyph.radius * 2 + 7 : 0)), Math.max(1, line.length), input.measure).lines;
|
|
2013
2015
|
return i < headSourceLines && (headlineLines += wrapped.length), wrapped;
|
|
2014
|
-
}), w = Math.max(...lines.map((line, i) => input.measure(line, i < headlineLines ? { ...font, weight: emphasisWeight(input.theme) } : font).width)), lineH = input.measure("X", font).height, h = lineH * lines.length, gap = glyph ? glyph.radius + 7 : 8, prefer = ann.preferSide, markBox = kind === "callout" || kind === "note" ? at.printed?.box ?? at.markBox : void 0, box = markBox ?? { x: at.x, y: at.y, w: 0, h: 0 }, [left, top, right, bottom] = [box.x, box.y, box.x + box.w, box.y + box.h], sideY = (kind === "callout" || kind === "note") && !at.printed && at.markBox ? top + box.h / 2 : at.y, round = markBox !== void 0 && !at.printed, edgeToward = (r) => {
|
|
2016
|
+
}), w = Math.max(0, ...lines.map((line, i) => input.measure(line, i < headlineLines ? { ...font, weight: emphasisWeight(input.theme) } : font).width)), lineH = input.measure("X", font).height, h = lineH * lines.length, gap = glyph ? glyph.radius + 7 : 8, prefer = ann.preferSide, markBox = kind === "callout" || kind === "note" ? at.printed?.box ?? at.markBox : void 0, box = markBox ?? { x: at.x, y: at.y, w: 0, h: 0 }, [left, top, right, bottom] = [box.x, box.y, box.x + box.w, box.y + box.h], sideY = (kind === "callout" || kind === "note") && !at.printed && at.markBox ? top + box.h / 2 : at.y, round = markBox !== void 0 && !at.printed, edgeToward = (r) => {
|
|
2015
2017
|
if (round) {
|
|
2016
2018
|
let [cx, cy, rad] = [left + box.w / 2, top + box.h / 2, box.w / 2], tx = r.x >= cx ? r.x : r.x + r.w, ty = r.y + r.h / 2, len = Math.hypot(tx - cx, ty - cy) || 1;
|
|
2017
2019
|
return { x: cx + (tx - cx) / len * rad, y: cy + (ty - cy) / len * rad };
|