boardplot 0.54.0 → 0.56.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 +491 -0
- package/README.md +4 -4
- package/dist/{ReaderBox-YXC5XK7D.js → ReaderBox-GLCKYXBU.js} +14 -10
- package/dist/{annotateEngine-5O3IRSQL.js → annotateEngine-QVNAE3EH.js} +3 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-MT4MP3UZ.js → chunk-27OIGDRK.js} +1 -1
- package/dist/{chunk-OD3IH6FG.js → chunk-2DOEZ5QY.js} +39 -21
- package/dist/{chunk-WUKSZNHL.js → chunk-2FKEF2AC.js} +32 -21
- package/dist/{chunk-GYNZ72GO.js → chunk-2HTYGMMG.js} +2 -2
- package/dist/chunk-2NN676RI.js +25 -0
- package/dist/{chunk-4MREJWRM.js → chunk-2NRHD2G7.js} +5 -4
- package/dist/{chunk-3UBTO342.js → chunk-2NSQIPAA.js} +77 -38
- package/dist/{chunk-T7ZCYYQZ.js → chunk-2YO4WRJN.js} +25 -7
- package/dist/{chunk-SHH2AHIU.js → chunk-32LLDRPI.js} +64 -42
- package/dist/{chunk-WEPAE4KG.js → chunk-3465633G.js} +4 -4
- package/dist/{chunk-WGIO6AHP.js → chunk-37PKNVLS.js} +3 -3
- package/dist/chunk-3V62N3Z7.js +24 -0
- package/dist/{chunk-S6CRZKPO.js → chunk-43GGVT7W.js} +5 -5
- package/dist/{chunk-VDAZPGR2.js → chunk-4DZFR52I.js} +2 -2
- package/dist/{chunk-WDONXBQE.js → chunk-4JC3SE4G.js} +1 -1
- package/dist/{chunk-EHVESNLV.js → chunk-4JGBCBDZ.js} +1 -1
- package/dist/{chunk-G6XCUX3I.js → chunk-4JHMCXOB.js} +60 -13
- package/dist/{chunk-GGO43PHB.js → chunk-4KMZAK6J.js} +6 -5
- package/dist/{chunk-GVKFFJ23.js → chunk-4KQHKPB3.js} +462 -149
- package/dist/{chunk-AHQ4L3BE.js → chunk-4LTN7SND.js} +2 -2
- package/dist/{chunk-MZJBPDIL.js → chunk-52WNCUIN.js} +1 -1
- package/dist/{chunk-JAKRPSWP.js → chunk-54ROMBU7.js} +164 -51
- package/dist/{chunk-OZUTYDV4.js → chunk-5DTCOOLU.js} +2 -2
- package/dist/{chunk-DDI2W4TR.js → chunk-5P2TTHBZ.js} +3 -3
- package/dist/{chunk-U2HQELXL.js → chunk-5PPQIF4D.js} +2 -2
- package/dist/{chunk-K4K6KGEF.js → chunk-5S3JQ5AT.js} +241 -195
- package/dist/chunk-5TWY3ZIC.js +19 -0
- package/dist/{chunk-BXEM2CVW.js → chunk-6364WO5D.js} +3 -3
- package/dist/{chunk-ZNHF2XCP.js → chunk-63Y3ROZ7.js} +50 -36
- package/dist/{chunk-VAEC53B3.js → chunk-64LJDGJH.js} +3 -3
- package/dist/{chunk-WZBMTZBM.js → chunk-67QSW5RW.js} +4 -4
- package/dist/{chunk-HGGLJYPZ.js → chunk-6AMN7IKJ.js} +89 -57
- package/dist/{chunk-24BHMKDD.js → chunk-6EYTD777.js} +25 -2
- package/dist/{chunk-HZG5NB7Q.js → chunk-6MJUW5R5.js} +159 -86
- package/dist/{chunk-NGRIT3CY.js → chunk-6QDMRPXI.js} +113 -128
- package/dist/{chunk-HZZH3MQI.js → chunk-6WHWXCHJ.js} +7 -3
- package/dist/{chunk-T3PNYRDM.js → chunk-75WIUG2W.js} +394 -141
- package/dist/{chunk-ZTH6YSVA.js → chunk-76Q7E3TM.js} +117 -102
- package/dist/chunk-7ADUVRG5.js +14 -0
- package/dist/{chunk-U4P6TQRW.js → chunk-7DAH2E4T.js} +2 -2
- package/dist/{chunk-43OQ26TL.js → chunk-7FKY6YWU.js} +8 -8
- package/dist/{chunk-CPKHL7FK.js → chunk-7KSUMFBK.js} +1 -1
- package/dist/{chunk-KL2XJQAA.js → chunk-7M2GK7XQ.js} +1729 -196
- package/dist/{chunk-RZB4RPPD.js → chunk-7PPMT5EJ.js} +155 -151
- package/dist/{chunk-JFBEAUJ6.js → chunk-7Q37C6GZ.js} +1 -1
- package/dist/chunk-7STMIK2X.js +94 -0
- package/dist/{chunk-KFWEO4UA.js → chunk-7VMEM3LN.js} +254 -142
- package/dist/{chunk-GSMWHKOW.js → chunk-7VVHTOE7.js} +7 -7
- package/dist/{chunk-KBFPMESI.js → chunk-A2GAWGVJ.js} +246 -79
- package/dist/{chunk-23RWLBZF.js → chunk-AGDDH6XY.js} +3 -3
- package/dist/chunk-AMR4SUAN.js +25 -0
- package/dist/{chunk-6I7YZTY7.js → chunk-BDGLMWPO.js} +12 -4
- package/dist/{chunk-JJJ2KAHR.js → chunk-BIGQKCU7.js} +20 -9
- package/dist/{chunk-LTMF75MR.js → chunk-BISJK67O.js} +208 -62
- package/dist/{chunk-FILDYFT4.js → chunk-BIVL764T.js} +2 -2
- package/dist/{chunk-RNOJSEES.js → chunk-BK6P6KMW.js} +1 -1
- package/dist/{chunk-XB4KZ6WO.js → chunk-BSATR6ZO.js} +40 -13
- package/dist/{chunk-MYCLO35J.js → chunk-BTDGWHGJ.js} +50 -12
- package/dist/{chunk-PDG4IM3L.js → chunk-BVYIKLQ5.js} +1 -1
- package/dist/{chunk-TNHD4UTC.js → chunk-BYCJ6TKI.js} +13 -3
- package/dist/{chunk-NQSDIDRO.js → chunk-CAJ54IEP.js} +5 -5
- package/dist/{chunk-E42JZ2DA.js → chunk-CB4CERXZ.js} +4 -5
- package/dist/{chunk-ENOCOA3F.js → chunk-CCDXK5NA.js} +5 -5
- package/dist/{chunk-7X3UZM7F.js → chunk-CCJP6QZO.js} +1 -1
- package/dist/{chunk-ELPQZIGR.js → chunk-CF4NMRN7.js} +37 -13
- package/dist/{chunk-32X7JGH3.js → chunk-CHAS5A5B.js} +89 -69
- package/dist/{chunk-AVMKRVNP.js → chunk-CKGSGRP7.js} +14 -24
- package/dist/{chunk-3EZRM4YM.js → chunk-CPGASWNN.js} +25 -1
- package/dist/{chunk-BWTX7LUG.js → chunk-CXETOLPX.js} +9 -4
- package/dist/{chunk-D3D7XHBI.js → chunk-CYKXROFG.js} +6 -6
- package/dist/{chunk-DRTA6JG5.js → chunk-D2B3KP35.js} +26 -15
- package/dist/{chunk-TSPWXAAI.js → chunk-DD6RVD3S.js} +6 -7
- package/dist/{chunk-A5TY7H5T.js → chunk-DF3XEFQ7.js} +159 -53
- package/dist/{chunk-P52JHUUM.js → chunk-DLDDRXAI.js} +198 -88
- package/dist/{chunk-XNA6DATU.js → chunk-DLUNQHFO.js} +99 -56
- package/dist/{chunk-2THWIKRB.js → chunk-DMAMWUYY.js} +33 -16
- package/dist/chunk-DQ7YMQVX.js +26 -0
- package/dist/{chunk-4WK3CNW5.js → chunk-DRHQG44U.js} +11 -0
- package/dist/{chunk-WZGJSQKN.js → chunk-DZ3S4RPI.js} +15 -1
- package/dist/chunk-E2ZUBP4Q.js +24 -0
- package/dist/{chunk-G63ROSY5.js → chunk-E555EDOQ.js} +139 -72
- package/dist/{chunk-A7IEVBYI.js → chunk-E76U5H52.js} +1 -5
- package/dist/{chunk-J2ROMB7J.js → chunk-E7V3OHQQ.js} +64 -26
- package/dist/chunk-EBB4PYBN.js +24 -0
- package/dist/{chunk-FPPN5NAR.js → chunk-ECBUFKCP.js} +3 -3
- package/dist/{chunk-5PCCSSII.js → chunk-EGGDPDYJ.js} +1 -1
- package/dist/{chunk-F7X53SZM.js → chunk-EIL3KHAL.js} +12 -7
- package/dist/{chunk-MBVXROCI.js → chunk-EMFUZKYK.js} +20 -3
- package/dist/{chunk-TNNK4IIY.js → chunk-ETMHDCEH.js} +13 -12
- package/dist/{chunk-WMZCOGD6.js → chunk-EZZ533MH.js} +1 -1
- package/dist/{chunk-GEBGBJBD.js → chunk-F2EVCJ4U.js} +41 -34
- package/dist/{chunk-2IXDYW6O.js → chunk-F5BYLT3M.js} +195 -57
- package/dist/{chunk-NRHTC2SQ.js → chunk-F6OLHND5.js} +2 -2
- package/dist/{chunk-3FNY7ZCG.js → chunk-F77TMAUY.js} +141 -79
- package/dist/{chunk-QQNPU27R.js → chunk-FCECYJVA.js} +1 -1
- package/dist/{chunk-RGZGLKFB.js → chunk-FFJGC2DX.js} +418 -62
- package/dist/chunk-FG5L2LUK.js +89 -0
- package/dist/chunk-FMDNJ6PC.js +47 -0
- package/dist/{chunk-4WQ2MBE7.js → chunk-FNMH5WEY.js} +1 -1
- package/dist/{chunk-F35DA442.js → chunk-FNRPQIQE.js} +46 -27
- package/dist/{chunk-7EVIIADO.js → chunk-GC4WOLV3.js} +3 -1
- package/dist/{chunk-JB4YPOMT.js → chunk-GELSK76Y.js} +6 -7
- package/dist/{chunk-5SJQOPL7.js → chunk-GIHH6VC2.js} +4 -4
- package/dist/chunk-GLQ3KCTY.js +24 -0
- package/dist/{chunk-HHS6333D.js → chunk-GM3EGUYW.js} +2 -2
- package/dist/{chunk-PBYUJSEY.js → chunk-GQT2SY2S.js} +66 -43
- package/dist/{chunk-BUPLB3EX.js → chunk-H3IBJQ5A.js} +6 -2
- package/dist/{chunk-K4RCWNLC.js → chunk-HHXIVFAU.js} +11 -8
- package/dist/{chunk-B3F4TS3V.js → chunk-HJRNBKIT.js} +768 -69
- package/dist/chunk-HOU2MZHC.js +61 -0
- package/dist/{chunk-S4QSJAGY.js → chunk-HZUAEMN5.js} +1 -1
- package/dist/chunk-I7H5DU34.js +132 -0
- package/dist/{chunk-YS56RSTZ.js → chunk-IFQN4GKK.js} +161 -69
- package/dist/chunk-IGJ2G5C6.js +24 -0
- package/dist/{chunk-4ZGN4ZUN.js → chunk-IGNBQT23.js} +87 -3
- package/dist/{chunk-B6LHZLLK.js → chunk-IGVAWAOK.js} +31 -101
- package/dist/chunk-INHDHZNP.js +8 -0
- package/dist/chunk-IRXVV65V.js +24 -0
- package/dist/{chunk-IDDA5INB.js → chunk-IVRYF7QA.js} +7 -4
- package/dist/{chunk-3RMTPAEJ.js → chunk-JCAGVAB3.js} +810 -73
- package/dist/{chunk-OMVYFSOM.js → chunk-JCIXYOND.js} +2 -2
- package/dist/{chunk-6TJDWMZV.js → chunk-JEUL777U.js} +83 -9
- package/dist/{chunk-J33RA3YO.js → chunk-JFFREZGT.js} +5 -5
- package/dist/{chunk-AJHYXD5U.js → chunk-JGFHNAHS.js} +2 -2
- package/dist/chunk-JHWYG7V5.js +24 -0
- package/dist/{chunk-EP54VZI5.js → chunk-JIEVDGAF.js} +1 -1
- package/dist/{chunk-IDT7DJ7F.js → chunk-JKOEHRGV.js} +1 -1
- package/dist/chunk-JMGB444D.js +26 -0
- package/dist/{chunk-DSZUV3TM.js → chunk-JTC5SEAQ.js} +3 -3
- package/dist/chunk-JTFKRDDA.js +53 -0
- package/dist/{chunk-RKITD2UJ.js → chunk-JVZTKQFS.js} +6 -3
- package/dist/{chunk-BBL3R5YZ.js → chunk-JXBZIJCG.js} +1 -1
- package/dist/{chunk-WLZ54FWG.js → chunk-JYAZPMSA.js} +70 -1
- package/dist/chunk-K3VZ5QJK.js +19 -0
- package/dist/{chunk-EYLWVI26.js → chunk-KBJMLXNW.js} +165 -124
- package/dist/{chunk-KAQH75T6.js → chunk-KD5GOR2K.js} +82 -48
- package/dist/{chunk-LNKY5Z2X.js → chunk-KDSYZLF6.js} +2 -3
- package/dist/{chunk-7NWFKHSG.js → chunk-KF7HD3EH.js} +116 -42
- package/dist/{chunk-V7RAPZHX.js → chunk-KLB2QC24.js} +3 -3
- package/dist/chunk-KLIZXSBK.js +24 -0
- package/dist/{chunk-HDZGZJKR.js → chunk-KQCKK3LD.js} +100 -36
- package/dist/{chunk-4TPHMIE5.js → chunk-KTHFHD6C.js} +4 -2
- package/dist/{chunk-IYEFEBRN.js → chunk-KZJ5VM6E.js} +14 -3
- package/dist/{chunk-MEG4NMSI.js → chunk-L6YVK6VC.js} +2 -2
- package/dist/chunk-LGNJCPFP.js +28 -0
- package/dist/{chunk-7JQAUJOL.js → chunk-LKMFMNQX.js} +1 -1
- package/dist/{chunk-QY5ZKUWY.js → chunk-MAFPVR4G.js} +9 -3
- package/dist/{chunk-QR35TD2B.js → chunk-MD6DCQMA.js} +37 -37
- package/dist/{chunk-AA4U62G6.js → chunk-MJPXHCBW.js} +4 -4
- package/dist/{chunk-LYVOL4TQ.js → chunk-MOK3ZS6P.js} +2 -1
- package/dist/{chunk-MKVV7GVJ.js → chunk-MOS6WFWM.js} +13 -7
- package/dist/{chunk-2DR5MMDY.js → chunk-MPO5TVGF.js} +12 -6
- package/dist/{chunk-OU5K2JPF.js → chunk-MRAP2UVV.js} +102 -32
- package/dist/chunk-MS7O3KDJ.js +24 -0
- package/dist/{chunk-53OYF4ZT.js → chunk-MSYTF3DZ.js} +26 -11
- package/dist/{chunk-5A6MO4AR.js → chunk-MZACASZY.js} +7 -4
- package/dist/{chunk-H4H4O62O.js → chunk-N5HN5QGH.js} +1 -1
- package/dist/chunk-NCLRZQR6.js +211 -0
- package/dist/{chunk-C54QLNE4.js → chunk-NGA7ICG4.js} +1 -1
- package/dist/{chunk-SFQ5ADIG.js → chunk-NHC2ADGI.js} +315 -151
- package/dist/chunk-NMTWUYUF.js +30 -0
- package/dist/chunk-O36WX56O.js +13 -0
- package/dist/{chunk-FV32N6AF.js → chunk-O6ZTIDWB.js} +6 -4
- package/dist/{chunk-6BJQULXR.js → chunk-O7REHICC.js} +85 -39
- package/dist/{chunk-4FFCIQDG.js → chunk-OG2YUVBW.js} +4 -1
- package/dist/{chunk-CICWSCLC.js → chunk-OJ5CQV7H.js} +146 -69
- package/dist/{chunk-ULTSSIOU.js → chunk-OQQMDSCC.js} +1 -1
- package/dist/{chunk-PJWLKCFX.js → chunk-P4SMC4BY.js} +98 -90
- package/dist/{chunk-JEYJRJ7M.js → chunk-PJBEJR2U.js} +5 -4
- package/dist/{chunk-AZIRTSVP.js → chunk-PQLAZEQV.js} +122 -52
- package/dist/chunk-PZ46S2SY.js +69 -0
- package/dist/chunk-QB5HV4IY.js +24 -0
- package/dist/{chunk-IM4WUIR7.js → chunk-QGFKSDQO.js} +2 -2
- package/dist/chunk-QJWLNP64.js +24 -0
- package/dist/chunk-QLANK3VN.js +24 -0
- package/dist/chunk-QSMGZOT5.js +24 -0
- package/dist/{chunk-UYNAL3Y3.js → chunk-QWCLWFKC.js} +142 -68
- package/dist/chunk-QZIHKQRH.js +26 -0
- package/dist/{chunk-SZCPKGYG.js → chunk-R2IKOLBK.js} +3 -3
- package/dist/{chunk-BRPOSOK5.js → chunk-R5MEBBAA.js} +144 -71
- package/dist/{chunk-47BO6MYI.js → chunk-RJGCYGC3.js} +137 -70
- package/dist/chunk-RLMC5CUP.js +24 -0
- package/dist/{chunk-6NLH6TEP.js → chunk-RMC4OONA.js} +331 -143
- package/dist/{chunk-26P4WRQC.js → chunk-RPIKNMZA.js} +6 -3
- package/dist/{chunk-YF2PYLC4.js → chunk-RSCRIWAH.js} +1 -1
- package/dist/{chunk-DHWCFQNO.js → chunk-RT66UTLJ.js} +4 -18
- package/dist/{chunk-DAVHGK27.js → chunk-S7NRL66K.js} +46 -23
- package/dist/{chunk-VABRPZVC.js → chunk-SA46CNMS.js} +5 -1
- package/dist/chunk-SE7MJ2LQ.js +24 -0
- package/dist/{chunk-L7RHB734.js → chunk-SGDWLXUC.js} +1 -1
- package/dist/{chunk-E64MTTBC.js → chunk-SMHZXHHD.js} +45 -14
- package/dist/{chunk-AG2CJ4JY.js → chunk-SNQ7D5R7.js} +18 -1
- package/dist/{chunk-3V7AA3IZ.js → chunk-SPSGUFTI.js} +11 -3
- package/dist/{chunk-I2E3YDNZ.js → chunk-SRAV6FPB.js} +33 -9
- package/dist/chunk-SRUV7AT6.js +51 -0
- package/dist/{chunk-KJEZFOO6.js → chunk-SS4YGK3E.js} +91 -48
- package/dist/{chunk-WQ55QPEB.js → chunk-SXD3OYAR.js} +241 -118
- package/dist/{chunk-U7LLQ7XM.js → chunk-T2CYNDYU.js} +473 -109
- package/dist/{chunk-FMFCGYCE.js → chunk-T2YDWT54.js} +289 -300
- package/dist/{chunk-KORHKDJW.js → chunk-TE4M52AA.js} +2 -1
- package/dist/chunk-TUW5IYGA.js +24 -0
- package/dist/chunk-TXBO2LWM.js +25 -0
- package/dist/chunk-U3A6FMSI.js +28 -0
- package/dist/{chunk-EHDWWFNV.js → chunk-UBCVBBJJ.js} +3 -3
- package/dist/chunk-UPTXFTKH.js +25 -0
- package/dist/chunk-UREXN6WG.js +25 -0
- package/dist/chunk-UZLR25BW.js +24 -0
- package/dist/{chunk-JEL6665C.js → chunk-UZTQUPTB.js} +6 -6
- package/dist/{chunk-ISWU5YB3.js → chunk-V5JQQMFQ.js} +11 -5
- package/dist/chunk-V634AXDM.js +31 -0
- package/dist/{chunk-57ZGVAU3.js → chunk-V7F4F6JA.js} +39 -6
- package/dist/chunk-VJ7VBB6S.js +58 -0
- package/dist/{chunk-LVXOY5WL.js → chunk-VPL3JYC6.js} +6 -5
- package/dist/{chunk-VWYUUBBP.js → chunk-VVXKFU72.js} +83 -32
- package/dist/{chunk-XTGWCYAR.js → chunk-WBETBGSC.js} +430 -256
- package/dist/chunk-WI5VOSQX.js +125 -0
- package/dist/chunk-WIVFIVFZ.js +27 -0
- package/dist/{chunk-OURX73UJ.js → chunk-WN3HEU3P.js} +13 -11
- package/dist/{chunk-7EOLHBI6.js → chunk-WTQAG2OT.js} +81 -21
- package/dist/{chunk-G57ZO7DB.js → chunk-WWGPTEQB.js} +66 -26
- package/dist/{chunk-33PLBIMA.js → chunk-WXJ5MHLH.js} +3 -2
- package/dist/chunk-X23SZHV5.js +25 -0
- package/dist/{chunk-TKQKXBGC.js → chunk-X3KCQEYZ.js} +10 -8
- package/dist/chunk-X3YP4DUV.js +76 -0
- package/dist/chunk-XC5IRUEL.js +48 -0
- package/dist/{chunk-LFX7W4B7.js → chunk-XCROSJ2Z.js} +1 -1
- package/dist/{chunk-RK4S3VPS.js → chunk-XHRUXZD7.js} +3 -3
- package/dist/{chunk-S32YYDIB.js → chunk-XMP2DNLI.js} +4 -3
- package/dist/{chunk-C3O45JWU.js → chunk-XQMYQ4TN.js} +4 -4
- package/dist/{chunk-QKL7IY42.js → chunk-Y54LU4CU.js} +1 -1
- package/dist/chunk-YHD2FZFP.js +24 -0
- package/dist/{chunk-OMNQXHFF.js → chunk-YK2KWNTU.js} +31 -20
- package/dist/chunk-YMTXTQCN.js +24 -0
- package/dist/{chunk-SGD3ZHID.js → chunk-YOOHNQ3L.js} +15 -4
- package/dist/{chunk-JTJNQKPM.js → chunk-YPYD6OJ3.js} +2 -2
- package/dist/{chunk-3P4PJJND.js → chunk-YYJORENB.js} +6 -6
- package/dist/{chunk-NRF223FR.js → chunk-YZZLIYPA.js} +1 -1
- package/dist/{chunk-WJKVNRCR.js → chunk-Z55DXFWS.js} +18 -17
- package/dist/{chunk-UTQGZF37.js → chunk-ZEYBI47P.js} +1 -1
- package/dist/{chunk-WKWMOZNE.js → chunk-ZJFJ2IKQ.js} +226 -61
- package/dist/{chunk-QJ4WGAC6.js → chunk-ZKJ5L35C.js} +94 -21
- package/dist/{chunk-ZXOD37BE.js → chunk-ZL6IHMOW.js} +73 -39
- package/dist/chunk-ZMPH2OC4.js +24 -0
- package/dist/{chunk-EYZ6SLF3.js → chunk-ZVM5TFGR.js} +7 -7
- package/dist/chunk-ZWNRLIFT.js +24 -0
- package/dist/{chunk-VNLSTZES.js → chunk-ZY72LSQK.js} +314 -92
- package/dist/chunk-ZYQYX66L.js +24 -0
- package/dist/cli/index.js +3 -3
- package/dist/{core-MN45UFF4.js → core-3KLQSYWB.js} +3 -1
- package/dist/{core-DAFZ7YJW.js → core-4HFVG4CP.js} +2 -1
- package/dist/{core-34KIMTK6.js → core-4RR6VSXM.js} +2 -1
- package/dist/{core-7R3ARYNI.js → core-5UF44NDI.js} +5 -1
- package/dist/{core-3CWPIFAL.js → core-7S3XMW5O.js} +3 -1
- package/dist/{core-ONNGSKWQ.js → core-7Y5BZZON.js} +5 -1
- package/dist/{core-AEYGGH7X.js → core-A5AKUB7H.js} +4 -1
- package/dist/{core-YPH723Z7.js → core-AR2T32Y3.js} +8 -1
- package/dist/{core-CJZXX2V3.js → core-BBNY2BX4.js} +2 -1
- package/dist/{core-CJ7FFPDU.js → core-BLHEJ5OK.js} +5 -1
- package/dist/{core-KII4CH3W.js → core-BOG33BFD.js} +3 -1
- package/dist/{core-O2K4BDYH.js → core-DD62MWEW.js} +4 -1
- package/dist/{core-WJSKT5XM.js → core-DFZMOO7E.js} +5 -1
- package/dist/{core-QXIAQFHM.js → core-E2XOSHPR.js} +3 -1
- package/dist/{core-R27R6J5M.js → core-G3LXHW73.js} +3 -1
- package/dist/{core-V7I4F6JW.js → core-GLOZY6Z7.js} +5 -1
- package/dist/{core-KZK3WCUG.js → core-GSILPKUR.js} +3 -1
- package/dist/{core-GEUPUZUY.js → core-H5HO2CED.js} +3 -1
- package/dist/{core-W7AZNHOX.js → core-HDNWVLJW.js} +3 -1
- package/dist/{core-L7Y7YXWR.js → core-HTD5RHE7.js} +1 -1
- package/dist/{core-WHI4ABF2.js → core-ILPXXC2Z.js} +1 -1
- package/dist/{core-RGLOYY73.js → core-J2JD5ODO.js} +6 -1
- package/dist/{core-ASBJZZTP.js → core-JDFUZFRH.js} +2 -1
- package/dist/{core-XKV7GMPG.js → core-K3JX5WPM.js} +2 -1
- package/dist/{core-L5KTPXHC.js → core-LB5M7XL4.js} +3 -1
- package/dist/{core-KCORN7F7.js → core-LGJZUP6H.js} +3 -1
- package/dist/{core-DJPGSTXB.js → core-MU4ALRR7.js} +8 -1
- package/dist/{core-MNUVP5IJ.js → core-QPSAYRFT.js} +5 -1
- package/dist/{core-YVNOHIQ4.js → core-RR2CAZC5.js} +3 -1
- package/dist/{core-KF6GJOGW.js → core-TCSW24N6.js} +7 -1
- package/dist/{core-JLXFDYHX.js → core-TKZZZ6UW.js} +4 -1
- package/dist/{core-7YKLT7KY.js → core-VKZSQFRG.js} +4 -1
- package/dist/{core-EAIFSTDE.js → core-WJNK7F2J.js} +3 -1
- package/dist/{core-JLJTP7P6.js → core-WZ4CHVYL.js} +3 -1
- package/dist/{core-PFXIBWLD.js → core-XW7UJFJZ.js} +4 -1
- package/dist/{core-RCFFJANI.js → core-YMXYUGF5.js} +5 -1
- package/dist/{core-DKJUX7Q4.js → core-ZLSQHZ3I.js} +3 -1
- package/dist/{dataTable-VKEHFLJM.js → dataTable-CNDRVGA5.js} +4 -2
- package/dist/{engine-PPXKJJFI.js → engine-FVEIM3WV.js} +59 -32
- package/dist/fixtures.js +6 -1
- package/dist/{fontTables-WYCZNRE7.js → fontTables-ZPZQ6IR3.js} +1 -1
- package/dist/fonts.js +2 -1
- package/dist/geo/dach.js +3 -1
- package/dist/geo/de-states.js +3 -1
- package/dist/geo/eu27.js +3 -1
- package/dist/geo/europe.js +3 -1
- package/dist/geo/index.js +4 -2
- package/dist/geo/us-states.js +3 -1
- package/dist/geo/world.js +3 -1
- package/dist/index.js +31 -26
- package/dist/{main-53MXACOU.js → main-THU6VIVU.js} +55 -24
- package/dist/mcp/server.js +50 -22
- package/dist/{module-SVEW5ZUE.js → module-ZSR7KTAS.js} +1 -1
- package/dist/react/bar.js +6 -1
- package/dist/react/bartable.js +6 -1
- package/dist/react/box.js +6 -1
- package/dist/react/bullet.js +4 -1
- package/dist/react/butterfly.js +5 -1
- package/dist/react/choropleth.js +4 -1
- package/dist/react/cohort.js +4 -1
- package/dist/react/column.js +9 -1
- package/dist/react/combo.js +3 -1
- package/dist/react/creative.js +2 -1
- package/dist/react/diagram.js +3 -1
- package/dist/react/dimswitch.js +4 -1
- package/dist/react/dot.js +9 -1
- package/dist/react/export.js +33 -30
- package/dist/react/funnel.js +4 -1
- package/dist/react/gantt.js +4 -1
- package/dist/react/grid.js +4 -1
- package/dist/react/heatmap.js +4 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +95 -90
- package/dist/react/kpi.js +2 -1
- package/dist/react/likert.js +7 -1
- package/dist/react/line.js +4 -1
- package/dist/react/mekko.js +5 -1
- package/dist/react/pareto.js +3 -1
- package/dist/react/pie.js +5 -1
- package/dist/react/prepare.js +33 -27
- package/dist/react/pvm.js +4 -1
- package/dist/react/pyramid.js +5 -1
- package/dist/react/sankey.js +4 -1
- package/dist/react/scatter.js +4 -1
- package/dist/react/slope.js +6 -1
- package/dist/react/sparkline.js +4 -1
- package/dist/react/spec.js +25 -32
- package/dist/react/status.js +8 -1
- package/dist/react/story.js +6 -4
- package/dist/react/table.js +4 -1
- package/dist/react/theme.js +6 -3
- package/dist/react/tilemap.js +4 -1
- package/dist/react/treemap.js +3 -1
- package/dist/react/variance.js +5 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +4 -1
- package/dist/{resvg-ZOVDIZTV.js → resvg-VB7S5HRF.js} +1 -1
- package/dist/rows.js +2 -3
- package/dist/{rowsModule-L3MBGPBH.js → rowsModule-LI6KOS46.js} +2 -1
- package/dist/{schema-GVHM2HEF.js → schema-25INXAMY.js} +1 -1
- package/dist/{schema-ZCZCY34J.js → schema-5DUTAVO7.js} +1 -1
- package/dist/{schema-26YUL3MG.js → schema-5KDEQBBT.js} +1 -1
- package/dist/{schema-FT37ZEYY.js → schema-5ZTGVQAJ.js} +1 -3
- package/dist/{schema-CMXL5F5L.js → schema-72EEMYS3.js} +1 -1
- package/dist/{schema-6ZV532RM.js → schema-7NSV542V.js} +1 -1
- package/dist/{schema-HWU55RJL.js → schema-AMT7P7KB.js} +1 -1
- package/dist/{schema-AQD3H5VV.js → schema-AXRDF6ND.js} +1 -1
- package/dist/{schema-SY3MKF5S.js → schema-B2GCEYXD.js} +1 -1
- package/dist/{schema-QLH2DZFI.js → schema-BBTXTWYI.js} +1 -1
- package/dist/{schema-SLQPM32G.js → schema-BKUFZLLI.js} +1 -1
- package/dist/{schema-LYBOPAGQ.js → schema-CGQID64D.js} +1 -1
- package/dist/{schema-QNI6MNQ2.js → schema-FDFQKIO5.js} +1 -1
- package/dist/{schema-KH62LDYK.js → schema-GN6GAIU5.js} +1 -1
- package/dist/{schema-733PO52K.js → schema-GNTKL5DN.js} +1 -1
- package/dist/{schema-ZSYX76MO.js → schema-H2EC4GAQ.js} +1 -1
- package/dist/{schema-H7RKVTVO.js → schema-HH5HOORE.js} +1 -1
- package/dist/{schema-NOPOI5G2.js → schema-J7TNCZIP.js} +1 -1
- package/dist/{schema-WAKLKLBB.js → schema-JH57NFXJ.js} +1 -1
- package/dist/{schema-KFXLS67Q.js → schema-KPEPBGAX.js} +1 -1
- package/dist/{schema-GK6MD4EG.js → schema-L5U4OROI.js} +1 -1
- package/dist/{schema-IOWE3RQO.js → schema-LOQ3AFC7.js} +1 -1
- package/dist/{schema-GSE3QXUK.js → schema-M5JBHQIV.js} +5 -3
- package/dist/{schema-IOKAZVL7.js → schema-MMVPMJEF.js} +1 -1
- package/dist/{schema-B4GFRYIP.js → schema-OU35XA3Z.js} +1 -1
- package/dist/{schema-HRHNGOFC.js → schema-PL3EU6EQ.js} +2 -2
- package/dist/{schema-MNG24WU2.js → schema-PQZWO3BP.js} +1 -1
- package/dist/{schema-5E5J43CF.js → schema-QCIE6M2P.js} +2 -1
- package/dist/{schema-Q4IPIR6W.js → schema-QORUB6EK.js} +1 -1
- package/dist/{schema-33ZF6WKL.js → schema-QPOBZUAR.js} +1 -1
- package/dist/{schema-3W7IFXVN.js → schema-R5Y6NVBH.js} +1 -1
- package/dist/{schema-KHCLVE2V.js → schema-THXXFY6I.js} +1 -1
- package/dist/{schema-HGUBNXUY.js → schema-VYECMPON.js} +1 -1
- package/dist/{schema-PNUC54GC.js → schema-YLE4XXQQ.js} +1 -1
- package/dist/{schema-KORNUIC6.js → schema-ZEVJMFLV.js} +1 -1
- package/dist/{schema-4ZXJCRZR.js → schema-ZG6ZKFRZ.js} +1 -1
- package/dist/{schema-WCDYWS4K.js → schema-ZQSIR5UC.js} +1 -1
- package/dist/{specValidation-H5B4MQST.js → specValidation-VHLGDEME.js} +3 -1
- package/dist/theme.js +4 -2
- package/dist/{themeShapeRules-54U5EIZR.js → themeShapeRules-PW4BQHKL.js} +1 -1
- package/dist/types/core/a11y/recordsShared.d.ts +4 -0
- package/dist/types/core/annotate.d.ts +39 -0
- package/dist/types/core/annotateArms.d.ts +1 -1
- package/dist/types/core/axis.d.ts +2 -0
- package/dist/types/core/calendarLabels.d.ts +15 -0
- package/dist/types/core/charts/band/stacks.d.ts +71 -2
- package/dist/types/core/charts/bartable/types.d.ts +10 -0
- package/dist/types/core/charts/box/types.d.ts +2 -0
- package/dist/types/core/charts/choropleth/index.d.ts +7 -0
- package/dist/types/core/charts/choropleth/layout.d.ts +7 -0
- package/dist/types/core/charts/choropleth/schema.d.ts +36 -0
- package/dist/types/core/charts/cohort/types.d.ts +8 -1
- package/dist/types/core/charts/column/layout.d.ts +1 -1
- package/dist/types/core/charts/column/model.d.ts +4 -0
- package/dist/types/core/charts/combo/endpoints.d.ts +1 -1
- package/dist/types/core/charts/creative/types.d.ts +1 -1
- package/dist/types/core/charts/dimswitch/compile.d.ts +2 -0
- package/dist/types/core/charts/dimswitch/types.d.ts +8 -0
- package/dist/types/core/charts/grid/normalize.d.ts +18 -1
- package/dist/types/core/charts/heatmap/fixtures.d.ts +2 -2
- package/dist/types/core/charts/histogram/types.d.ts +14 -2
- package/dist/types/core/charts/likert/layout.d.ts +14 -9
- package/dist/types/core/charts/logAxis.d.ts +55 -0
- package/dist/types/core/charts/pvm/types.d.ts +6 -0
- package/dist/types/core/charts/pyramid/types.d.ts +7 -4
- package/dist/types/core/charts/sankey/types.d.ts +3 -1
- package/dist/types/core/charts/scatter/clamp.d.ts +155 -0
- package/dist/types/core/charts/scatter/frontier.d.ts +21 -0
- package/dist/types/core/charts/scatter/index.d.ts +9 -0
- package/dist/types/core/charts/scatter/layout.d.ts +26 -0
- package/dist/types/core/charts/scatter/logAxis.d.ts +14 -0
- package/dist/types/core/charts/scatter/model.d.ts +258 -0
- package/dist/types/core/charts/scatter/schema.d.ts +57 -0
- package/dist/types/core/charts/scatter/trend.d.ts +54 -0
- package/dist/types/core/charts/scatter/valueLines.d.ts +47 -0
- package/dist/types/core/charts/sparkline/fixtures.d.ts +1 -1
- package/dist/types/core/charts/status/layout.d.ts +5 -3
- package/dist/types/core/charts/table/resolve.d.ts +0 -7
- package/dist/types/core/charts/tilemap/index.d.ts +6 -0
- package/dist/types/core/charts/tilemap/layout.d.ts +5 -0
- package/dist/types/core/charts/tilemap/schema.d.ts +4 -0
- package/dist/types/core/charts/treemap/types.d.ts +2 -2
- package/dist/types/core/charts/variance/fixtures.d.ts +2 -1
- package/dist/types/core/charts/waffle/types.d.ts +2 -0
- package/dist/types/core/dateFormat.d.ts +1 -1
- package/dist/types/core/doc/diagnostics.d.ts +8 -0
- package/dist/types/core/doc/document.d.ts +9 -1
- package/dist/types/core/doc/ownedDocumentCopy.d.ts +2 -1
- package/dist/types/core/fontMetrics/index.d.ts +1 -1
- package/dist/types/core/footer.d.ts +9 -1
- package/dist/types/core/format.d.ts +8 -1
- package/dist/types/core/formatSpec.d.ts +84 -6
- package/dist/types/core/frame.d.ts +41 -8
- package/dist/types/core/geo/packs/registry.d.ts +3 -2
- package/dist/types/core/geometry.d.ts +19 -0
- package/dist/types/core/icons.d.ts +11 -0
- package/dist/types/core/inputError.d.ts +3 -0
- package/dist/types/core/isoDate.d.ts +2 -0
- package/dist/types/core/label/categoryRow.d.ts +9 -1
- package/dist/types/core/label/occupied.d.ts +5 -0
- package/dist/types/core/label/solver.d.ts +31 -2
- package/dist/types/core/notes.d.ts +13 -1
- package/dist/types/core/ols.d.ts +38 -0
- package/dist/types/core/periodYears.d.ts +5 -1
- package/dist/types/core/registry.d.ts +12 -0
- package/dist/types/core/request.d.ts +3 -2
- package/dist/types/core/scale.d.ts +7 -0
- package/dist/types/core/schema/capability.d.ts +17 -20
- package/dist/types/core/schema/namedColumns.d.ts +6 -0
- package/dist/types/core/schema/refusals.d.ts +1 -4
- package/dist/types/core/shareRounding.d.ts +8 -0
- package/dist/types/core/sizing.d.ts +17 -12
- package/dist/types/core/story.d.ts +3 -0
- package/dist/types/core/target.d.ts +6 -0
- package/dist/types/core/text.d.ts +8 -0
- package/dist/types/core/theme.d.ts +52 -1
- package/dist/types/core/types/annotations.d.ts +15 -3
- package/dist/types/core/types/data.d.ts +4 -1
- package/dist/types/core/types/diagram.d.ts +81 -2
- package/dist/types/core/types/optionInput.d.ts +13 -0
- package/dist/types/core/types/options.d.ts +65 -24
- package/dist/types/core/types/scene.d.ts +79 -2
- package/dist/types/core/types/table.d.ts +11 -0
- package/dist/types/core/types/theme.d.ts +48 -3
- package/dist/types/index.d.ts +28 -27
- package/dist/types/optionTypes.d.ts +44 -0
- package/dist/types/react/DimSwitchChart.d.ts +2 -1
- package/dist/types/react/RefusalBoundary.d.ts +25 -0
- package/dist/types/react/SceneRenderer.d.ts +3 -1
- package/dist/types/react/SizePlaceholder.d.ts +2 -1
- package/dist/types/react/TableChart.d.ts +8 -4
- package/dist/types/react/barrelCharts.d.ts +1521 -1012
- package/dist/types/react/charts/bar.d.ts +36 -25
- package/dist/types/react/charts/bartable.d.ts +36 -25
- package/dist/types/react/charts/box.d.ts +36 -25
- package/dist/types/react/charts/bullet.d.ts +36 -25
- package/dist/types/react/charts/butterfly.d.ts +36 -25
- package/dist/types/react/charts/choropleth.d.ts +36 -25
- package/dist/types/react/charts/cohort.d.ts +76 -50
- package/dist/types/react/charts/column.d.ts +36 -25
- package/dist/types/react/charts/combo.d.ts +2 -1
- package/dist/types/react/charts/creative.d.ts +31 -25
- package/dist/types/react/charts/diagram.d.ts +302 -160
- package/dist/types/react/charts/dot.d.ts +36 -25
- package/dist/types/react/charts/funnel.d.ts +36 -25
- package/dist/types/react/charts/gantt.d.ts +36 -25
- package/dist/types/react/charts/grid.d.ts +38 -27
- package/dist/types/react/charts/heatmap.d.ts +36 -25
- package/dist/types/react/charts/histogram.d.ts +36 -25
- package/dist/types/react/charts/kpi.d.ts +36 -25
- package/dist/types/react/charts/likert.d.ts +36 -25
- package/dist/types/react/charts/line.d.ts +36 -25
- package/dist/types/react/charts/mekko.d.ts +36 -25
- package/dist/types/react/charts/pareto.d.ts +33 -25
- package/dist/types/react/charts/pie.d.ts +36 -25
- package/dist/types/react/charts/pvm.d.ts +36 -25
- package/dist/types/react/charts/pyramid.d.ts +33 -25
- package/dist/types/react/charts/sankey.d.ts +36 -25
- package/dist/types/react/charts/scatter.d.ts +36 -25
- package/dist/types/react/charts/slope.d.ts +36 -25
- package/dist/types/react/charts/sparkline.d.ts +36 -25
- package/dist/types/react/charts/status.d.ts +36 -25
- package/dist/types/react/charts/tilemap.d.ts +36 -25
- package/dist/types/react/charts/treemap.d.ts +36 -25
- package/dist/types/react/charts/variance.d.ts +36 -25
- package/dist/types/react/charts/waffle.d.ts +36 -25
- package/dist/types/react/charts/waterfall.d.ts +36 -25
- package/dist/types/react/createChartComponent.d.ts +11 -9
- package/dist/types/react/footerFrame.d.ts +1 -1
- package/dist/types/react/hover/engine.d.ts +2 -1
- package/dist/types/react/hover/labelCard.d.ts +20 -2
- package/dist/types/react/prepare.d.ts +2 -2
- package/dist/types/react/prepared.d.ts +5 -1
- package/dist/types/react/useContainerSize.d.ts +2 -0
- package/dist/types/rows.d.ts +1 -1
- package/dist/validate.js +13 -8
- package/docs/manual.md +139 -35
- package/docs/reference/bar.md +10 -7
- package/docs/reference/bartable.md +7 -3
- package/docs/reference/box.md +5 -2
- package/docs/reference/bullet.md +7 -5
- package/docs/reference/butterfly.md +12 -5
- package/docs/reference/choropleth.md +10 -8
- package/docs/reference/cohort.md +3 -2
- package/docs/reference/column.md +14 -7
- package/docs/reference/combo.md +8 -6
- package/docs/reference/creative.md +1 -1
- package/docs/reference/diagram.md +94 -18
- package/docs/reference/dimswitch.md +16 -13
- package/docs/reference/dot.md +7 -4
- package/docs/reference/fixtures.md +49 -5
- package/docs/reference/funnel.md +4 -3
- package/docs/reference/gantt.md +1 -1
- package/docs/reference/grid.md +1 -1
- package/docs/reference/heatmap.md +6 -4
- package/docs/reference/histogram.md +7 -4
- package/docs/reference/kpi.md +11 -8
- package/docs/reference/likert.md +7 -3
- package/docs/reference/line.md +9 -8
- package/docs/reference/mekko.md +4 -4
- package/docs/reference/options.md +34 -32
- package/docs/reference/pareto.md +4 -4
- package/docs/reference/pie.md +8 -7
- package/docs/reference/pvm.md +4 -2
- package/docs/reference/pyramid.md +4 -4
- package/docs/reference/react.md +20 -11
- package/docs/reference/sankey.md +5 -3
- package/docs/reference/scatter.md +3 -3
- package/docs/reference/slope.md +7 -6
- package/docs/reference/sparkline.md +6 -5
- package/docs/reference/status.md +6 -4
- package/docs/reference/table.md +28 -26
- package/docs/reference/theme.md +93 -85
- package/docs/reference/tilemap.md +8 -7
- package/docs/reference/treemap.md +6 -5
- package/docs/reference/variance.md +8 -5
- package/docs/reference/waffle.md +2 -1
- package/docs/reference/waterfall.md +12 -9
- package/docs/use-cases.md +25 -2
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/dist/chunk-2HXKW6U6.js +0 -24
- package/dist/chunk-35ZTANEK.js +0 -24
- package/dist/chunk-3CLLHMFF.js +0 -24
- package/dist/chunk-46ZPFJAM.js +0 -24
- package/dist/chunk-6BWSF5PS.js +0 -24
- package/dist/chunk-6K2TMVPF.js +0 -42
- package/dist/chunk-6KWIQ5KF.js +0 -18
- package/dist/chunk-6ZXMA4TY.js +0 -24
- package/dist/chunk-7HFUG25L.js +0 -24
- package/dist/chunk-7R5EV5MS.js +0 -24
- package/dist/chunk-7X65ZQN4.js +0 -38
- package/dist/chunk-ATUZTGZI.js +0 -25
- package/dist/chunk-BW5VLBSZ.js +0 -15
- package/dist/chunk-BYD7VLAI.js +0 -24
- package/dist/chunk-CEY646NZ.js +0 -28
- package/dist/chunk-D7GZPMHW.js +0 -24
- package/dist/chunk-FIANWJXX.js +0 -19
- package/dist/chunk-H4SYN3QA.js +0 -24
- package/dist/chunk-HC4NDND6.js +0 -24
- package/dist/chunk-HNVW3YDS.js +0 -25
- package/dist/chunk-HW7BPJNQ.js +0 -24
- package/dist/chunk-I5L3QTKQ.js +0 -24
- package/dist/chunk-IK4BHOPZ.js +0 -33
- package/dist/chunk-IMJXJHFW.js +0 -88
- package/dist/chunk-JDEVGTSX.js +0 -24
- package/dist/chunk-K2KU4HHT.js +0 -25
- package/dist/chunk-KDMKHR5A.js +0 -32
- package/dist/chunk-KNZD53L4.js +0 -24
- package/dist/chunk-KOJ5QETJ.js +0 -8
- package/dist/chunk-KSQEG6DX.js +0 -24
- package/dist/chunk-KVSJ2O4Q.js +0 -24
- package/dist/chunk-L3JWM7FR.js +0 -50
- package/dist/chunk-L7FSCT4M.js +0 -28
- package/dist/chunk-LMPZKCDM.js +0 -24
- package/dist/chunk-MONVTUHR.js +0 -24
- package/dist/chunk-NWQTSZYC.js +0 -24
- package/dist/chunk-OM67S6S4.js +0 -19
- package/dist/chunk-OTW5SEFS.js +0 -21
- package/dist/chunk-PGV25HTX.js +0 -25
- package/dist/chunk-QGCEHR6S.js +0 -13
- package/dist/chunk-T3IGJARD.js +0 -22
- package/dist/chunk-U2ES66IN.js +0 -26
- package/dist/chunk-U6CJPTOB.js +0 -19
- package/dist/chunk-VDVXGAIP.js +0 -24
- package/dist/chunk-VGWWUCAB.js +0 -24
- package/dist/chunk-X4U6PT3Z.js +0 -33
- package/dist/chunk-XXNLNZ7E.js +0 -24
- package/dist/chunk-ZBJNEJSL.js +0 -24
- package/dist/chunk-ZWJTHFWB.js +0 -27
- /package/dist/{DiagnosticDetails-UNYNYCAH.js → DiagnosticDetails-JFBBXOT2.js} +0 -0
|
@@ -6,41 +6,44 @@ import {
|
|
|
6
6
|
} from "./chunk-QPWRHDLZ.js";
|
|
7
7
|
import {
|
|
8
8
|
warnMissingValue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KLB2QC24.js";
|
|
10
|
+
import {
|
|
11
|
+
asColumnHeads,
|
|
12
|
+
columnHeadFont,
|
|
13
|
+
fitHead,
|
|
14
|
+
headRequest
|
|
15
|
+
} from "./chunk-XC5IRUEL.js";
|
|
10
16
|
import {
|
|
11
17
|
labelOn
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EZZ533MH.js";
|
|
13
19
|
import {
|
|
14
20
|
runAnnotatePass
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JTC5SEAQ.js";
|
|
16
22
|
import {
|
|
17
23
|
rowLabelBand
|
|
18
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EIL3KHAL.js";
|
|
19
25
|
import {
|
|
20
26
|
fittedLabel,
|
|
21
27
|
gutterBudget,
|
|
22
28
|
stepDownFont
|
|
23
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MPO5TVGF.js";
|
|
24
30
|
import {
|
|
25
31
|
breakUnsupported
|
|
26
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7DAH2E4T.js";
|
|
27
33
|
import {
|
|
28
34
|
cardFrameTheme,
|
|
29
35
|
cardSize
|
|
30
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2NSQIPAA.js";
|
|
31
37
|
import {
|
|
32
38
|
categoryTargetFields,
|
|
33
39
|
spliceAnnotationNodes
|
|
34
40
|
} from "./chunk-CDZHNLO6.js";
|
|
35
41
|
import {
|
|
36
42
|
BAND_PAD
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import {
|
|
39
|
-
rowDrivenHeight
|
|
40
|
-
} from "./chunk-OTW5SEFS.js";
|
|
43
|
+
} from "./chunk-V5JQQMFQ.js";
|
|
41
44
|
import {
|
|
42
45
|
structureCount
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XCROSJ2Z.js";
|
|
44
47
|
import {
|
|
45
48
|
bandFor
|
|
46
49
|
} from "./chunk-263SZKIL.js";
|
|
@@ -50,6 +53,7 @@ import {
|
|
|
50
53
|
import {
|
|
51
54
|
CARD_MIN_WIDTH,
|
|
52
55
|
applyAxisBounds,
|
|
56
|
+
applyTickStep,
|
|
53
57
|
applyValueAxisTitleInk,
|
|
54
58
|
bandScale,
|
|
55
59
|
chartSizing,
|
|
@@ -58,17 +62,19 @@ import {
|
|
|
58
62
|
linearScale,
|
|
59
63
|
niceDomain,
|
|
60
64
|
planValueAxisTitle,
|
|
65
|
+
rowDrivenHeight,
|
|
61
66
|
rowSizing,
|
|
67
|
+
shownTickStep,
|
|
62
68
|
straightBreakGlyph,
|
|
63
69
|
valueAxisTitleRequest
|
|
64
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-T2CYNDYU.js";
|
|
65
71
|
import {
|
|
66
72
|
PRIORITY,
|
|
67
73
|
authoredFootnoteCount,
|
|
68
74
|
authoredNotes,
|
|
75
|
+
cleanDiff,
|
|
69
76
|
composedTextRole,
|
|
70
77
|
createOccupiedIndex,
|
|
71
|
-
fitText,
|
|
72
78
|
frameTextOptions,
|
|
73
79
|
labelCtx,
|
|
74
80
|
labelsToNodes,
|
|
@@ -76,22 +82,23 @@ import {
|
|
|
76
82
|
plotHeightAfter,
|
|
77
83
|
rectContains,
|
|
78
84
|
rectsOverlap,
|
|
79
|
-
round2,
|
|
80
85
|
rowLabelX,
|
|
81
86
|
solveFrame,
|
|
82
87
|
solveLabels
|
|
83
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-4KQHKPB3.js";
|
|
84
89
|
import {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
defaultFormatSpec,
|
|
91
|
+
exampleSpec,
|
|
92
|
+
formatWithSpec,
|
|
93
|
+
parseFormatExample,
|
|
94
|
+
roundedNumber
|
|
95
|
+
} from "./chunk-FFJGC2DX.js";
|
|
88
96
|
import {
|
|
89
|
-
MINUS,
|
|
90
97
|
autoDecimals,
|
|
91
98
|
chartStrings,
|
|
92
99
|
formatAutomaticNumber,
|
|
93
100
|
formatAutomaticPercent
|
|
94
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
95
102
|
import {
|
|
96
103
|
cellMeta,
|
|
97
104
|
cellValue,
|
|
@@ -102,8 +109,6 @@ import {
|
|
|
102
109
|
bulletBandPaints,
|
|
103
110
|
contrastInkPaint,
|
|
104
111
|
emphasisWeight,
|
|
105
|
-
focusColor,
|
|
106
|
-
markRolePaint,
|
|
107
112
|
mixedPaint,
|
|
108
113
|
paintColor,
|
|
109
114
|
readerFloorPx,
|
|
@@ -112,15 +117,13 @@ import {
|
|
|
112
117
|
secondaryType,
|
|
113
118
|
semanticPalettePaint,
|
|
114
119
|
separationStroke,
|
|
115
|
-
signedFillPaint,
|
|
116
120
|
strokeToken,
|
|
117
121
|
tableHeadFloorPx,
|
|
118
122
|
textScaleOf
|
|
119
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-HJRNBKIT.js";
|
|
120
124
|
import {
|
|
121
|
-
TEXT_CONTRAST_FLOOR,
|
|
122
125
|
contrastRatio
|
|
123
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-DRHQG44U.js";
|
|
124
127
|
import {
|
|
125
128
|
DEFAULT_TARGET,
|
|
126
129
|
MAGNITUDE_CEILING,
|
|
@@ -130,7 +133,7 @@ import {
|
|
|
130
133
|
resolveHighlight,
|
|
131
134
|
resolveSize,
|
|
132
135
|
resolveSubtitle
|
|
133
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-YOOHNQ3L.js";
|
|
134
137
|
import {
|
|
135
138
|
maxOf,
|
|
136
139
|
minOf,
|
|
@@ -138,7 +141,7 @@ import {
|
|
|
138
141
|
} from "./chunk-WYJEOMNY.js";
|
|
139
142
|
import {
|
|
140
143
|
defaultMeasurer
|
|
141
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-SNQ7D5R7.js";
|
|
142
145
|
|
|
143
146
|
// src/core/strings/bullet.ts
|
|
144
147
|
var EN = {
|
|
@@ -255,35 +258,6 @@ var EN = {
|
|
|
255
258
|
gapOn: "{v1} erreicht"
|
|
256
259
|
}, { chartString } = chartStrings(EN, DE);
|
|
257
260
|
|
|
258
|
-
// src/core/charts/bullet/columnHead.ts
|
|
259
|
-
var HEAD_EM = 12, HEAD_PREFIX = "header:";
|
|
260
|
-
function fitHead(text, font, bodyW, measure, env) {
|
|
261
|
-
return fitText(text, font, Math.max(bodyW, HEAD_EM * font.size), 1, measure, { target: env.target, textScale: env.textScale, typeRole: "footnote" });
|
|
262
|
-
}
|
|
263
|
-
function headRequest(key, order, head, right, y, h, onKey) {
|
|
264
|
-
let rect = { x: right - head.w, y: Math.max(0, y), w: head.w, h };
|
|
265
|
-
return {
|
|
266
|
-
id: `${HEAD_PREFIX}${order}:${key}`,
|
|
267
|
-
kind: "annotation",
|
|
268
|
-
role: "category",
|
|
269
|
-
align: "end",
|
|
270
|
-
owner: {},
|
|
271
|
-
text: head.lines[0],
|
|
272
|
-
lines: head.lines,
|
|
273
|
-
font: head.font,
|
|
274
|
-
...head.title !== void 0 ? { title: head.title } : {},
|
|
275
|
-
typeRole: "footnote",
|
|
276
|
-
priority: PRIORITY.total,
|
|
277
|
-
pad: 0,
|
|
278
|
-
candidates: [{ slot: "columnHead", rect, penalty: 0, ...onKey ? { overLegend: !0 } : {} }]
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
function asColumnHeads(nodes) {
|
|
282
|
-
nodes.forEach((node, index) => {
|
|
283
|
-
node.t === "text" && node.id.startsWith(`label:${HEAD_PREFIX}`) && (nodes[index] = { ...node, part: "tableHeader" });
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
|
|
287
261
|
// src/core/charts/bullet/targetScale.ts
|
|
288
262
|
function targetWord(options) {
|
|
289
263
|
return chartString(options, "target");
|
|
@@ -639,13 +613,21 @@ function layoutTargetScale(input) {
|
|
|
639
613
|
}
|
|
640
614
|
|
|
641
615
|
// src/core/charts/bullet/layout.ts
|
|
642
|
-
var LABEL_GAP = 5, CAT_BAND_GAP = 10, CAPSULE_GAP = 8, COLUMNS_GAP = 18, COLUMN_GAP2 = 16, LINE_GAP2 = 1, ROW_BAND = 30, ROW_BAND_MAX = 56, ROW_AIR = 16, ROW_PITCH_MAX = 240, EDGE_TICK = 3, BAR_FRACTION = 1 / 3, NAME_WEIGHT = 600, BANDS_UNEXPLAINED = "qualitative bands carry meaning the reader cannot decode \u2014 label the bands or explain them in a footnote";
|
|
616
|
+
var LABEL_GAP = 5, VALUE_COL_GAP = 6, CAT_BAND_GAP = 10, CAPSULE_GAP = 8, COLUMNS_GAP = 18, COLUMN_GAP2 = 16, LINE_GAP2 = 1, ROW_BAND = 30, ROW_BAND_MAX = 56, ROW_AIR = 16, ROW_PITCH_MAX = 240, EDGE_TICK = 3, BAR_FRACTION = 1 / 3, NAME_WEIGHT = 600, BANDS_UNEXPLAINED = "qualitative bands carry meaning the reader cannot decode \u2014 label the bands or explain them in a footnote";
|
|
643
617
|
function bandAmount(row, index, count) {
|
|
644
618
|
let semanticIndex = row.direction === "lowerIsBetter" ? count - 1 - index : index;
|
|
645
619
|
return count === 1 ? 0.5 : semanticIndex / (count - 1);
|
|
646
620
|
}
|
|
621
|
+
function ladderEnds(theme, palette) {
|
|
622
|
+
let measure = semanticPalettePaint(theme, palette, "neutral"), good = semanticPalettePaint(theme, palette, "neutralLight");
|
|
623
|
+
return { poor: mixedPaint(measure, good, 0.75), good };
|
|
624
|
+
}
|
|
625
|
+
function tonePaint(theme, palette, tone) {
|
|
626
|
+
let { poor, good } = ladderEnds(theme, palette), [paint] = bulletBandPaints(theme, 1, poor, good, [], !1, [tone]);
|
|
627
|
+
return { token: paint && "token" in paint ? paint.token : "neutral", theme: { kind: "bullet-band", poor, good, count: 1, index: 0, tones: [tone] } };
|
|
628
|
+
}
|
|
647
629
|
function bandLadder(theme, count, palette, warnings, light) {
|
|
648
|
-
let
|
|
630
|
+
let { poor, good } = ladderEnds(theme, palette);
|
|
649
631
|
return bulletBandPaints(theme, count, poor, good, warnings, light).map((paint, index) => ({
|
|
650
632
|
token: "token" in paint ? paint.token : "neutral",
|
|
651
633
|
theme: { kind: "bullet-band", poor, good, count, index, ...light ? { light: !0 } : {} }
|
|
@@ -700,8 +682,8 @@ function rampKey(rows, options, paint, labelsKey, warnings) {
|
|
|
700
682
|
if (!(mode === "auto" && !(bothWays && new Set(labels).size < labels.length)))
|
|
701
683
|
return rampItems(rows, options, paint);
|
|
702
684
|
}
|
|
703
|
-
function rampItems(rows, options, paint) {
|
|
704
|
-
let banded = rows.filter((row) => row.bands.length > 0), n = banded[0].bands.length, authored = options.strings?.bandKey, words = authored?.length === n ? authored : RAMP_WORD_KEYS[n - 2].map((key) => chartString(options, key)), reference = banded.find((row) => row.direction === "higherIsBetter") ?? banded[0];
|
|
685
|
+
function rampItems(rows, options, paint, authoredOnly = !1) {
|
|
686
|
+
let banded = rows.filter((row) => row.bands.length > 0), n = banded[0].bands.length, authored = options.strings?.bandKey, words = authored?.length === n ? authored : authoredOnly ? [] : RAMP_WORD_KEYS[n - 2].map((key) => chartString(options, key)), reference = banded.find((row) => row.direction === "higherIsBetter") ?? banded[0];
|
|
705
687
|
return words.map((label, index) => ({
|
|
706
688
|
id: `band:ramp:${index}`,
|
|
707
689
|
label,
|
|
@@ -709,14 +691,14 @@ function rampItems(rows, options, paint) {
|
|
|
709
691
|
key: "box"
|
|
710
692
|
}));
|
|
711
693
|
}
|
|
712
|
-
function attainmentKey(options) {
|
|
694
|
+
function attainmentKey(options, theme) {
|
|
713
695
|
let band = (options.annotations ?? []).find((ann) => ann.kind === "band" && ann.style === "attainment");
|
|
714
696
|
if (!band || band.kind !== "band") return [];
|
|
715
697
|
let lower = band.direction === "lowerIsBetter", target = targetWord(options);
|
|
716
698
|
return [
|
|
717
699
|
// The key draws the band's own fill.
|
|
718
|
-
{ id: "attainment:good", label: lower ? chartString(options, "bulletBelowLower", { v1: target }) : chartString(options, "aboveTarget", { v1: target }), paint:
|
|
719
|
-
{ id: "attainment:bad", label: lower ? chartString(options, "aboveTarget", { v1: target }) : chartString(options, "belowTarget", { v1: target }), paint:
|
|
700
|
+
{ id: "attainment:good", label: lower ? chartString(options, "bulletBelowLower", { v1: target }) : chartString(options, "aboveTarget", { v1: target }), paint: tonePaint(theme, options.palette, "good") },
|
|
701
|
+
{ id: "attainment:bad", label: lower ? chartString(options, "aboveTarget", { v1: target }) : chartString(options, "belowTarget", { v1: target }), paint: tonePaint(theme, options.palette, "bad") }
|
|
720
702
|
];
|
|
721
703
|
}
|
|
722
704
|
function hasBandExplanation(options) {
|
|
@@ -765,13 +747,13 @@ function bulletAnnotations(options, sharedScale, warnings) {
|
|
|
765
747
|
...annotation.id ? { owner: { annotationId: annotation.id } } : {}
|
|
766
748
|
}), !1));
|
|
767
749
|
}
|
|
768
|
-
var BAND_TRIES = /* @__PURE__ */ Symbol("bandTries"), REGULAR_NAMES = /* @__PURE__ */ Symbol("regularNames"), ROW_KEY_OFF = /* @__PURE__ */ Symbol("rowKeyOff");
|
|
750
|
+
var BAND_TRIES = /* @__PURE__ */ Symbol("bandTries"), REGULAR_NAMES = /* @__PURE__ */ Symbol("regularNames"), ROW_KEY_OFF = /* @__PURE__ */ Symbol("rowKeyOff"), HEADS_OFF_KEY = /* @__PURE__ */ Symbol("headsOffKey");
|
|
769
751
|
function layoutBullet(data, options = {}) {
|
|
770
752
|
let warnings = [];
|
|
771
753
|
breakUnsupported("bullet", options, warnings);
|
|
772
754
|
let theme = resolveSemanticPaletteTheme(resolveTheme(options.theme), options.palette, warnings), compact = options.density === "compact";
|
|
773
755
|
warnings.push(...compactBulletRefusals(options));
|
|
774
|
-
let compactFloor = chartSizing("bullet", options), size = resolveSize(compact ? cardSize(options, { width: compactFloor.minWidth, height: compactFloor.minHeight }) : options.size ?? "dashboard"), target = options.target ?? DEFAULT_TARGET, stepTo = (font, size2, role) => ({ ...font, size: Math.min(font.size, Math.max(size2, readerFloorPx(target, role, textScaleOf(options)))) }), measure = options.measure ?? defaultMeasurer,
|
|
756
|
+
let compactFloor = chartSizing("bullet", options), size = resolveSize(compact ? cardSize(options, { width: compactFloor.minWidth, height: compactFloor.minHeight }) : options.size ?? "dashboard"), target = options.target ?? DEFAULT_TARGET, stepTo = (font, size2, role) => ({ ...font, size: Math.min(font.size, Math.max(size2, readerFloorPx(target, role, textScaleOf(options)))) }), measure = options.measure ?? defaultMeasurer, highlights = new Set(resolveHighlight(options.highlight)), labelOn2 = (kind) => !compact && labelOn(options, kind);
|
|
775
757
|
if (!data || !Array.isArray(data.rows) || data.rows.length === 0)
|
|
776
758
|
throw new NormalizeError("empty-data", "rows", "bullet requires at least one row");
|
|
777
759
|
let seen = /* @__PURE__ */ new Set(), rows = data.rows.map((r, i) => {
|
|
@@ -820,7 +802,31 @@ function layoutBullet(data, options = {}) {
|
|
|
820
802
|
bands,
|
|
821
803
|
direction: r.direction ?? "higherIsBetter"
|
|
822
804
|
};
|
|
823
|
-
}), targetScale = options.sharedScale === "percentOfTarget", allBanded = rows.every((row) => row.bands.length > 0), unitOf = (row) => `${row.isPct}|${row.meta?.format ?? ""}`, bandsOf = (row) => row.bands.map((band2) => band2.to).join("|"), alike = rows.every((row) => unitOf(row) === unitOf(rows[0]) && bandsOf(row) === bandsOf(rows[0])), sharedScale = targetScale || (typeof options.sharedScale == "boolean" ? options.sharedScale : !allBanded || alike);
|
|
805
|
+
}), targetScale = options.sharedScale === "percentOfTarget", allBanded = rows.every((row) => row.bands.length > 0), unitOf = (row) => `${row.isPct}|${row.meta?.format ?? ""}`, bandsOf = (row) => row.bands.map((band2) => band2.to).join("|"), alike = rows.every((row) => unitOf(row) === unitOf(rows[0]) && bandsOf(row) === bandsOf(rows[0])), sharedScale = targetScale || (typeof options.sharedScale == "boolean" ? options.sharedScale : !allBanded || alike), categorySort = options.sort?.categories ?? "sheet";
|
|
806
|
+
if (categorySort !== "sheet") {
|
|
807
|
+
let refCategory = (ref) => typeof ref == "object" && "categoryId" in ref ? ref.categoryId : ref;
|
|
808
|
+
if ((options.annotations ?? []).some((ann) => ann.kind === "cagr" || ann.kind === "diff" && refCategory(ann.from) !== refCategory(ann.to)) && rows.every((row) => row.date !== void 0)) warnings.push({
|
|
809
|
+
code: "bullet-sort-ignored",
|
|
810
|
+
severity: "warn",
|
|
811
|
+
message: `sort.categories '${categorySort}' was ignored because the rows are dated and a growth or difference annotation spans periods; authored order was kept`,
|
|
812
|
+
suggest: "remove sort.categories, or remove the annotation that spans periods",
|
|
813
|
+
fix: [{ op: "remove", path: "/options/sort/categories" }]
|
|
814
|
+
});
|
|
815
|
+
else if (categorySort === "reverse") rows.reverse();
|
|
816
|
+
else {
|
|
817
|
+
let attainment2 = rows.every((row) => row.target !== null && row.target > 0);
|
|
818
|
+
!attainment2 && !sharedScale && warnings.push({
|
|
819
|
+
code: "bullet-sort-by-value",
|
|
820
|
+
severity: "info",
|
|
821
|
+
message: "rows on their own scales are ranked by their raw value because not every row has a positive target"
|
|
822
|
+
});
|
|
823
|
+
let indices = new Map(rows.map((row, i) => [row.id, i])), rank = (row) => row.value === null ? null : attainment2 ? row.value / row.target : row.value;
|
|
824
|
+
rows.sort((a, b) => {
|
|
825
|
+
let x = rank(a), y = rank(b), tie = indices.get(a.id) - indices.get(b.id);
|
|
826
|
+
return x === null || y === null ? +(x === null) - +(y === null) || tie : (categorySort === "asc" ? x - y : y - x) || tie;
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
}
|
|
824
830
|
options.sharedScale === void 0 && allBanded && !alike && rows.length > 1 && warnings.push({
|
|
825
831
|
code: "bullet-row-scales",
|
|
826
832
|
severity: "warn",
|
|
@@ -832,16 +838,20 @@ function layoutBullet(data, options = {}) {
|
|
|
832
838
|
message: "valueAxis is ignored while bullet rows are normalized to their own scales \u2014 one absolute axis cannot describe differently scaled rows",
|
|
833
839
|
suggest: "set sharedScale: true to keep one absolute axis across rows"
|
|
834
840
|
});
|
|
835
|
-
let
|
|
841
|
+
let chartSpec = options.format ? exampleSpec(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.isPct ? [] : [row.value, row.target])) : void 0, rowSpecs = new Map(rows.map((row) => [row, row.meta?.format ? exampleSpec(row.meta.format, options.locale?.language, void 0, [row.value, row.target]) : !row.isPct && chartSpec ? chartSpec : {
|
|
842
|
+
...defaultFormatSpec(options.locale?.language),
|
|
843
|
+
decimals: Math.max(autoDecimals(row.value ?? 0), autoDecimals(row.target ?? 0)),
|
|
844
|
+
suffix: row.isPct ? "%" : ""
|
|
845
|
+
}])), rowFmt = (row) => (v) => formatWithSpec(v, rowSpecs.get(row)), shownDelta = (row, d) => row.value === null || row.target === null ? d : cleanDiff(roundedNumber(row.value, rowSpecs.get(row)), roundedNumber(row.target, rowSpecs.get(row))), valueTextOf = (row) => {
|
|
836
846
|
if (row.value === null || row.meta?.label === !1) return null;
|
|
837
847
|
let base = rowFmt(row)(row.value);
|
|
838
848
|
return typeof row.meta?.label == "string" ? row.meta.label.replace(/\$\{value\}/g, base) : base;
|
|
839
849
|
}, deltaBody = (row, d) => {
|
|
840
|
-
let
|
|
841
|
-
return
|
|
842
|
-
}, deltaText = (row, d) => `${deltaBody(row, d)} vs ${targetWord(options)}`, deltaTone = (row, d) => row.direction === "neutral" ? "neutral" : row.bands.some((band2) => band2.tone) ? (row.value === null ? row.bands.at(-1) : bandFor(row.value, row.bands)).tone ?? "neutral" : d === 0 || d > 0 == (row.direction === "higherIsBetter") ? "good" : "bad", deltaVsTarget = emptyIdRecord();
|
|
850
|
+
let spec = rowSpecs.get(row), shown = shownDelta(row, d), gapSpec = { ...spec, signed: !0, ...row.isPct ? { prefix: "", suffix: "pp" } : {} }, fixedSpec = { ...gapSpec, automatic: !1, nonzero: void 0 };
|
|
851
|
+
return formatWithSpec(shown, shown !== 0 && roundedNumber(shown, fixedSpec) === 0 ? gapSpec : fixedSpec);
|
|
852
|
+
}, deltaText = (row, d) => `${deltaBody(row, d)} ${shownDelta(row, d) === 0 ? chartString(options, "gapOn", { v1: targetWord(options) }) : `vs ${targetWord(options)}`}`, deltaTone = (row, d) => row.direction === "neutral" ? "neutral" : row.bands.some((band2) => band2.tone) ? (row.value === null ? row.bands.at(-1) : bandFor(row.value, row.bands)).tone ?? "neutral" : (d = shownDelta(row, d), d === 0 || d > 0 == (row.direction === "higherIsBetter") ? "good" : "bad"), deltaVsTarget = emptyIdRecord();
|
|
843
853
|
for (let row of rows)
|
|
844
|
-
row.value !== null && row.target !== null && (deltaVsTarget[row.id] =
|
|
854
|
+
row.value !== null && row.target !== null && (deltaVsTarget[row.id] = cleanDiff(row.value, row.target));
|
|
845
855
|
let tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, capsuleFont = labelFont, valueBaseFont = { ...labelFont, weight: emphasisWeight(theme) }, targetFont = { ...tickFont, size: Math.max(readerFloorPx(target, "label", textScaleOf(options)), tickFont.size) }, minimumRowH = Math.max(28, measure("0", labelFont).height + 6, measure("0", tickFont).height + 4), bandFraction = options.bandFraction ?? 0.7, targetValues = new Set(rows.flatMap((row) => row.target === null ? [] : [row.target])), firstTargetRow = rows.find((row) => row.target !== null)?.id, cols = !1, targetPrints = (row) => !cols && labelOn2("annotation") && row.target !== null && (!(sharedScale && targetValues.size === 1) || row.id === firstTargetRow), targetAir = rows.some((row, ri) => ri > 0 && targetPrints(row)) ? measure("0", targetFont).height + 2 : 0, airRowH = targetAir === 0 ? 0 : bandFraction < 1 ? Math.ceil(targetAir / (1 - bandFraction)) : Math.ceil(2 * targetAir), naturalRowH = compact ? minimumRowH : Math.max(44, minimumRowH, airRowH), minimumPitch = targetAir === 0 ? minimumRowH : Math.max(minimumRowH, Math.ceil(2 * (measure("0", targetFont).height + 1))), occupied = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), framed = options.title !== void 0 && options.title !== !1 || options.subtitle !== void 0 || options.source !== void 0 || authoredNotes(options).length > 0, margin = compact && !framed ? { top: 0, right: 1, bottom: 0, left: 1, ...options.margin } : { top: 16, right: 20, bottom: 12, left: 20, ...options.margin };
|
|
846
856
|
if (targetScale)
|
|
847
857
|
return layoutBulletOnTargetScale(data, options, {
|
|
@@ -860,7 +870,7 @@ function layoutBullet(data, options = {}) {
|
|
|
860
870
|
deltaTone,
|
|
861
871
|
deltaVsTarget
|
|
862
872
|
});
|
|
863
|
-
let keyMode = options.bandKey ?? "auto", rowKeyOff = options[ROW_KEY_OFF] === !0, bandedRows = rows.filter((row) => row.bands.length > 0), namesEveryBand = bandedRows.length > 0 && bandedRows.every((row) => row.bands.every((band2) => band2.label !== void 0)), rowWanted = !rowKeyOff && !compact && labelOn2("annotation") && namesEveryBand && (keyMode === "row" || keyMode === "auto" && rows.length <= 4 && options.bandFraction === void 0);
|
|
873
|
+
let keyMode = options.bandKey ?? "auto", rowKeyOff = options[ROW_KEY_OFF] === !0, bandedRows = rows.filter((row) => row.bands.length > 0), namesEveryBand = bandedRows.length > 0 && bandedRows.every((row) => row.bands.every((band2) => band2.label !== void 0)), rowWanted = !rowKeyOff && !compact && (options.labels === !1 || labelOn2("annotation")) && namesEveryBand && (keyMode === "row" || keyMode === "auto" && rows.length <= 4 && options.bandFraction === void 0);
|
|
864
874
|
rowWanted && options.bandFraction !== void 0 && warnings.push({
|
|
865
875
|
code: "band-fraction-row-ignored",
|
|
866
876
|
severity: "warn",
|
|
@@ -873,13 +883,14 @@ function layoutBullet(data, options = {}) {
|
|
|
873
883
|
message: "bandKey row needs a name on every band, rows side by side with the target column, and room for each name above its band; the key names the bands",
|
|
874
884
|
suggest: "Name every band or widen the chart, or set bandKey to 'auto'."
|
|
875
885
|
});
|
|
876
|
-
let { ladders, paintWarningRules } = buildBandLadders(rows, theme, options.palette, warnings, rowWanted), bandPaint = (row, index) => row.bands[index].tone ?
|
|
886
|
+
let { ladders, paintWarningRules } = buildBandLadders(rows, theme, options.palette, warnings, rowWanted), bandPaint = (row, index) => row.bands[index].tone ? tonePaint(theme, options.palette, row.bands[index].tone) : ladders.get(row.bands.length)[row.direction === "lowerIsBetter" ? row.bands.length - 1 - index : index], labelsKey = legendItemsForBands(rows, bandPaint), builtIn = { locale: options.locale }, authoredHead = targetWord(options), targetHead = authoredHead !== targetWord(builtIn) && options.strings?.targetColumn === void 0 ? authoredHead.charAt(0).toUpperCase() + authoredHead.slice(1) : chartString(options, "targetColumn"), bandLegendItems = [
|
|
877
887
|
...rowWanted ? [
|
|
878
888
|
{ id: "key:actual", label: chartString(options, "actualColumn"), paint: { token: "markInk" }, key: "box" },
|
|
879
889
|
{ id: "key:target", label: targetHead, paint: { token: "ink" }, key: "tick", width: strokeToken(theme, "data") },
|
|
880
|
-
|
|
890
|
+
// The rows print the author's band names, so the key adds no other names for the bands.
|
|
891
|
+
...rampApplies(rows) ? rampItems(rows, options, bandPaint, !0) : []
|
|
881
892
|
] : rampKey(rows, options, bandPaint, labelsKey, warnings) ?? labelsKey,
|
|
882
|
-
...attainmentKey(options)
|
|
893
|
+
...attainmentKey(options, theme)
|
|
883
894
|
], legendInput;
|
|
884
895
|
if (bandLegendItems.length > 0 && options.legend !== "none" && !compact) {
|
|
885
896
|
let legendOpts = normalizeLegendOption(options.legend, { position: rowWanted ? "bottom" : "top" }), items = bandLegendItems;
|
|
@@ -942,14 +953,14 @@ function layoutBullet(data, options = {}) {
|
|
|
942
953
|
if (!regularNames && (catLines.some((label) => label.title !== void 0) || tallest(catLines) > 1 && tallest(catLines) > tallest((stacked ? cardBand : sideNames)({ ...catFont, weight: tickFont.weight }).labels)))
|
|
943
954
|
return layoutBullet(data, { ...options, [REGULAR_NAMES]: !0 });
|
|
944
955
|
let sidePlotW = Math.max(10, plot0.w - (catBandW ? catBandW + CAT_BAND_GAP : 0) - (capsuleColW ? capsuleColW + CAPSULE_GAP : 0) - cagrColW), noteFont = { family: theme.type.family, ...theme.type.axis, size: Math.min(secondaryType(theme).size, Math.max(theme.type.footnote.size, readerFloorPx(target, "secondary", textScaleOf(options)))) }, colPlan = options.targetColumns !== !1 && !compact && !stacked && cardNames === void 0 && labelOn2("annotation") && annotations.every((ann) => ann.kind !== "cagr") && rows.some((row) => row.target !== null) && catLines.every((label) => label.title === void 0) ? (() => {
|
|
945
|
-
let headerFont =
|
|
946
|
-
let
|
|
956
|
+
let headerFont = columnHeadFont(theme, target, textScaleOf(options)), colTargets = rows.map((row) => row.target === null ? null : rowFmt(row)(row.target)), colGaps = rows.map((row) => deltaVsTarget[row.id] === void 0 ? null : deltaBody(row, deltaVsTarget[row.id])), colPositions = rows.map((row) => {
|
|
957
|
+
let raw = deltaVsTarget[row.id], d = raw === void 0 ? void 0 : shownDelta(row, raw);
|
|
947
958
|
return d === void 0 ? null : chartString(options, d < 0 ? "gapBelow" : d > 0 ? "gapAbove" : "gapOn", { v1: targetWord(options) });
|
|
948
959
|
}), colDirections = rows.map((row) => !labelOn2("category") || row.direction === "neutral" || row.bands.some((band2) => band2.tone) ? null : chartString(options, row.direction === "lowerIsBetter" ? "lowerBetter" : "higherBetter")), widest = (texts, font) => Math.max(0, maxOf(texts.map((text) => text ? measure(text, font).width : 0))), headEnv = { target, textScale: textScaleOf(options) }, targetBodyW = widest(colTargets, labelFont), gapBodyW = Math.max(widest(colGaps, valueBaseFont), widest(colPositions, noteFont)), colHeads = [
|
|
949
960
|
fitHead(targetHead, headerFont, targetBodyW, measure, headEnv),
|
|
950
961
|
fitHead(chartString(options, "gapColumn", { v1: targetWord(options) }), headerFont, gapBodyW, measure, headEnv)
|
|
951
|
-
], targetColW = Math.max(colHeads[0].w, targetBodyW), gapColW = Math.max(colHeads[1].w, gapBodyW), colsW = targetColW + COLUMN_GAP2 + gapColW, colLeftW = catBandW ? Math.max(catBandW, widest(colDirections, noteFont)) : 0, colPlotW = plot0.w - (colLeftW ? colLeftW + CAT_BAND_GAP : 0) - COLUMNS_GAP - colsW, headerH = measure("0", headerFont).height, noteH2 = measure("0", noteFont).height, colNameH = (ri) => (labelOn2("category") ? catLines[ri].h : 0) + (colDirections[ri] ? LINE_GAP2 + noteH2 : 0), colGapH = (ri) => colGaps[ri] ? measure("0", valueBaseFont).height + (colPositions[ri] ? LINE_GAP2 + noteH2 : 0) : colTargets[ri] ? measure("0", labelFont).height : 0, colBlockH = (ri) => Math.max(colNameH(ri), colGapH(ri)), legendLabels = frameResult.nodes.filter((node) => node.t === "text" && node.part === "legendLabel"), legendLast = legendLabels.at(-1), legendRight = Math.max(-1 / 0, maxOf(legendLabels.map((node) => node.t === "text" ? node.x + Math.max(...node.lines.map((line) => measure(line, node.font).width)) : -1 / 0))), headsOnKey = legendLast?.t === "text" && legendLast.y < plot0.y && legendRight + 2 * COLUMN_GAP2 <= plot0.x + plot0.w - colsW, colTopAir = headsOnKey ? 0 : headerH + 4, colAvailH = plotHeightAfter(frameResult, size.height, plot0.h - axisH - 2 * inset - colTopAir), colPitch = Math.max(44, minimumRowH, Math.ceil(maxOf(rows.map((_, ri) => colBlockH(ri))) + 12));
|
|
952
|
-
return { headerFont, noteFont, colTargets, colGaps, colPositions, colDirections, colHeads, targetColW, gapColW, colsW, colLeftW, colPlotW, headerH, noteH: noteH2, colBlockH, legendLast, headsOnKey, colTopAir, colAvailH, colPitch };
|
|
962
|
+
], targetColW = Math.max(colHeads[0].w, targetBodyW), gapColW = Math.max(colHeads[1].w, gapBodyW), colsW = targetColW + COLUMN_GAP2 + gapColW, colLeftW = catBandW ? Math.max(catBandW, widest(colDirections, noteFont)) : 0, colPlotW = plot0.w - (colLeftW ? colLeftW + CAT_BAND_GAP : 0) - COLUMNS_GAP - colsW, headerH = measure("0", headerFont).height, noteH2 = measure("0", noteFont).height, colNameH = (ri) => (labelOn2("category") ? catLines[ri].h : 0) + (colDirections[ri] ? LINE_GAP2 + noteH2 : 0), colGapH = (ri) => colGaps[ri] ? measure("0", valueBaseFont).height + (colPositions[ri] ? LINE_GAP2 + noteH2 : 0) : colTargets[ri] ? measure("0", labelFont).height : 0, colBlockH = (ri) => Math.max(colNameH(ri), colGapH(ri)), legendLabels = frameResult.nodes.filter((node) => node.t === "text" && node.part === "legendLabel"), legendLast = legendLabels.at(-1), legendRight = Math.max(-1 / 0, maxOf(legendLabels.map((node) => node.t === "text" ? node.x + Math.max(...node.lines.map((line) => measure(line, node.font).width)) : -1 / 0))), headsOnKey = options[HEADS_OFF_KEY] !== !0 && legendLast?.t === "text" && legendLast.y < plot0.y && legendRight + 2 * COLUMN_GAP2 <= plot0.x + plot0.w - colsW, colTopAir = headsOnKey ? 0 : headerH + 4, colAvailH = plotHeightAfter(frameResult, size.height, plot0.h - axisH - 2 * inset - colTopAir), colPitch = Math.max(44, minimumRowH, Math.ceil(maxOf(rows.map((_, ri) => colBlockH(ri))) + 12));
|
|
963
|
+
return { headerFont, noteFont, colTargets, colGaps, colPositions, colDirections, colHeads, targetColW, gapColW, colsW, colLeftW, colPlotW, headerH, noteH: noteH2, colBlockH, legendLast, legendRight, headsOnKey, colTopAir, colAvailH, colPitch };
|
|
953
964
|
})() : void 0, colBlockMax = colPlan ? maxOf(rows.map((_, ri) => colPlan.colBlockH(ri))) : 0;
|
|
954
965
|
colPlan && colPlan.colPlotW >= Math.max(80, 0.45 * size.width) && (!fixedHeight || colPlan.colAvailH / rows.length >= colBlockMax + 4) && (cols = !0, targetAir = 0, topAir = colPlan.colTopAir, availH = colPlan.colAvailH, naturalRowH = colPlan.colPitch);
|
|
955
966
|
let cp = colPlan, rowMode = rowWanted && !stacked && cardNames === void 0 && (cols || rows.every((row) => !targetPrints(row))), noteH = measure("0", noteFont).height, nameAir = rowMode ? Math.max(noteH, cols ? cp.headerH : 0) + 3 : 0, edgeTicks = rowMode && !sharedScale, tickAir = edgeTicks ? EDGE_TICK + 1 + noteH : 0, bandBase = Math.max(ROW_BAND, cols ? Math.ceil(colBlockMax) : 0), rowBandH = bandBase, rowAir = ROW_AIR;
|
|
@@ -994,19 +1005,21 @@ function layoutBullet(data, options = {}) {
|
|
|
994
1005
|
let extents = rows.map((row) => {
|
|
995
1006
|
let rowLo = 0, rowHi = 0;
|
|
996
1007
|
return row.value !== null && (rowLo = Math.min(rowLo, row.value), rowHi = Math.max(rowHi, row.value)), row.target !== null && (rowLo = Math.min(rowLo, row.target), rowHi = Math.max(rowHi, row.target)), row.bands.length > 0 && (rowHi = Math.max(rowHi, row.bands[row.bands.length - 1].to)), { lo: rowLo, hi: rowHi };
|
|
997
|
-
}), seeds = sharedDomainSeeds(sharedScale, options, annotations), lo = Math.min(seeds.lo, minOf(extents.map((extent) => extent.lo))), hi = Math.max(seeds.hi, maxOf(extents.map((extent) => extent.hi))), fP = compact || stacked ? 0 : Math.min(0.35, (
|
|
1008
|
+
}), seeds = sharedDomainSeeds(sharedScale, options, annotations), lo = Math.min(seeds.lo, minOf(extents.map((extent) => extent.lo))), hi = Math.max(seeds.hi, maxOf(extents.map((extent) => extent.hi))), actualHead = cols && labelOn2("point") && Math.max(maxPosW, maxNegW) > 0 ? fitHead(chartString(options, "actualColumn"), cp.headerFont, Math.max(maxPosW, maxNegW), measure, { target, textScale: textScaleOf(options) }) : void 0, valueColW = Math.max(maxPosW, maxNegW, actualHead?.w ?? 0), fP = compact || stacked ? 0 : Math.min(0.35, (valueColW + LABEL_GAP + 8) / plot.w), fN = lo < 0 && !compact && !stacked ? Math.min(0.35, (maxNegW + LABEL_GAP + 8) / plot.w) : 0, extend = (extentLo, extentHi) => {
|
|
998
1009
|
let span = extentHi - extentLo || 1, denom = Math.max(0.3, 1 - fP - (extentLo < 0 ? fN : 0));
|
|
999
1010
|
return [
|
|
1000
1011
|
extentLo < 0 ? extentLo - span * fN / denom : 0,
|
|
1001
1012
|
extentHi + span * fP / denom
|
|
1002
1013
|
];
|
|
1003
|
-
}, scaleAt, axisScale = null;
|
|
1014
|
+
}, scaleAt, axisScale = null, stepTicks;
|
|
1004
1015
|
if (sharedScale) {
|
|
1005
1016
|
applyAxisBounds([lo, hi], [lo, hi], options.valueAxis, warnings);
|
|
1006
|
-
let [loExt, hiExt] = extend(lo, hi),
|
|
1017
|
+
let [loExt, hiExt] = extend(lo, hi), nice = niceDomain(loExt, hiExt || 1, 5, {
|
|
1007
1018
|
dataExtent: [loExt, hiExt || 1],
|
|
1008
1019
|
maxWasteFraction: 0.15
|
|
1009
|
-
}),
|
|
1020
|
+
}), stepped = applyTickStep(nice, shownTickStep(options.valueAxis?.tickStep, options.valueAxis?.show === !0, warnings), warnings), [dLo, dHi] = stepped.domain;
|
|
1021
|
+
stepTicks = stepped.ticks;
|
|
1022
|
+
let x = linearScale([dLo, dHi], [plot.x, plot.x + plot.w]);
|
|
1010
1023
|
axisScale = x, scaleAt = () => x;
|
|
1011
1024
|
} else {
|
|
1012
1025
|
let rowScales = extents.map((extent) => {
|
|
@@ -1015,7 +1028,10 @@ function layoutBullet(data, options = {}) {
|
|
|
1015
1028
|
});
|
|
1016
1029
|
scaleAt = (ri) => rowScales[ri];
|
|
1017
1030
|
}
|
|
1018
|
-
let zeroX = rows.map((_, ri) => scaleAt(ri)(0)),
|
|
1031
|
+
let zeroX = rows.map((_, ri) => scaleAt(ri)(0)), valueColLeft = maxOf(extents.map((extent, ri) => scaleAt(ri)(extent.hi))) + VALUE_COL_GAP, valueColRight = Math.min(plot.x + plot.w, valueColLeft + valueColW), valueX = (width) => Math.max(valueColLeft, valueColRight - width);
|
|
1032
|
+
if (actualHead && cp.headsOnKey && cp.legendRight + 2 * COLUMN_GAP2 > valueColRight - actualHead.w)
|
|
1033
|
+
return layoutBullet(data, { ...options, [HEADS_OFF_KEY]: !0 });
|
|
1034
|
+
let uniformZeroX = zeroX.every((value) => value === zeroX[0]);
|
|
1019
1035
|
if (rowMode && !rows.every((row, ri) => row.bands.every((bandSpec, bi) => measure(bandSpec.label, noteFont).width + 4 <= scaleAt(ri)(bandSpec.to) - scaleAt(ri)(bi === 0 ? 0 : row.bands[bi - 1].to))))
|
|
1020
1036
|
return layoutBullet(data, { ...options, [ROW_KEY_OFF]: !0 });
|
|
1021
1037
|
let nodes = [...frameResult.nodes], marks = { rows: [] }, labelRequests = [], placedAnnotations = [], axes = [];
|
|
@@ -1023,10 +1039,12 @@ function layoutBullet(data, options = {}) {
|
|
|
1023
1039
|
let axisResult = layoutValueAxis(
|
|
1024
1040
|
{
|
|
1025
1041
|
scale: axisScale,
|
|
1042
|
+
ticks: stepTicks,
|
|
1043
|
+
...stepTicks ? { formatSpec: chartSpec ?? defaultFormatSpec(options.locale?.language) } : {},
|
|
1026
1044
|
plot,
|
|
1027
1045
|
orient: "x",
|
|
1028
1046
|
gridlines: options.valueAxis.gridlines ?? !1,
|
|
1029
|
-
format:
|
|
1047
|
+
format: (v) => chartSpec ? formatWithSpec(v, chartSpec) : formatAutomaticNumber(v, { locale: options.locale?.language, decimals: autoDecimals(v) }),
|
|
1030
1048
|
theme,
|
|
1031
1049
|
measure,
|
|
1032
1050
|
canvasWidth: size.width
|
|
@@ -1066,21 +1084,15 @@ function layoutBullet(data, options = {}) {
|
|
|
1066
1084
|
{ categoryId: row.id }
|
|
1067
1085
|
);
|
|
1068
1086
|
});
|
|
1069
|
-
let barPaint = (row) => row.meta?.fill ? { css: row.meta.fill } : highlights.has(row.id) ? semanticPalettePaint(theme, options.palette, "focus") : { token: "markInk" },
|
|
1087
|
+
let barPaint = (row) => row.meta?.fill ? { css: row.meta.fill } : highlights.has(row.id) ? semanticPalettePaint(theme, options.palette, "focus") : { token: "markInk" }, anchorByRow = /* @__PURE__ */ new Map(), capsuleLabelIds = /* @__PURE__ */ new Map(), columnFonts = /* @__PURE__ */ new Map(), columnInks = /* @__PURE__ */ new Map();
|
|
1070
1088
|
if (cols) {
|
|
1071
1089
|
let legendFontH = cp.legendLast?.t === "text" ? measure("0", cp.legendLast.font).height : cp.headerH, headY = rowMode ? band.position(0) - 2 - cp.headerH : cp.headsOnKey && cp.legendLast?.t === "text" ? cp.legendLast.y + (legendFontH - cp.headerH) / 2 : plot0.y + inset, gapRight = plot0.x + plot0.w;
|
|
1072
|
-
[[cp.colHeads[0], "target", gapRight - cp.gapColW - COLUMN_GAP2], [cp.colHeads[1], "gap", gapRight]].forEach(([head, key, right], order) => {
|
|
1090
|
+
[...actualHead ? [[actualHead, "actual", valueColRight]] : [], [cp.colHeads[0], "target", gapRight - cp.gapColW - COLUMN_GAP2], [cp.colHeads[1], "gap", gapRight]].forEach(([head, key, right], order) => {
|
|
1073
1091
|
let request = headRequest(key, order, head, right, headY, cp.headerH, cp.headsOnKey && !rowMode);
|
|
1074
1092
|
columnFonts.set(request.id, cp.headerFont), columnInks.set(request.id, { token: "inkMuted" }), labelRequests.push(request);
|
|
1075
1093
|
});
|
|
1076
1094
|
}
|
|
1077
|
-
let
|
|
1078
|
-
if (row.value === null || !labelOn2("point")) return !0;
|
|
1079
|
-
let text = valueTextOf(row);
|
|
1080
|
-
if (!text) return !0;
|
|
1081
|
-
let x = scaleAt(ri), vx = x(row.value), left = Math.min(zeroX[ri], vx), barW = Math.max(Math.abs(vx - zeroX[ri]), 0.5), barH = Math.max(3, band.bandwidth * BAR_FRACTION), tsize = measure(text, valueFont), insideX = row.value >= 0 ? left + barW - 6 - tsize.width : left + 6, targetX = row.target !== null ? x(row.target) : null, tickOnInside = targetX !== null && targetX >= insideX - 2 && targetX <= insideX + tsize.width + 2;
|
|
1082
|
-
return tsize.width + 12 <= barW && tsize.height <= barH + 4 && !tickOnInside;
|
|
1083
|
-
}), attainment = (options.annotations ?? []).find((ann) => ann.kind === "band" && ann.style === "attainment"), plan = attainment?.kind === "band" && typeof attainment.value == "number" ? attainment.value : null, washes = plan === null ? [] : rows.flatMap((row, ri) => {
|
|
1095
|
+
let attainment = (options.annotations ?? []).find((ann) => ann.kind === "band" && ann.style === "attainment"), plan = attainment?.kind === "band" && typeof attainment.value == "number" ? attainment.value : null, washes = plan === null ? [] : rows.flatMap((row, ri) => {
|
|
1084
1096
|
if (row.value === null) return [];
|
|
1085
1097
|
let [a, b] = [scaleAt(ri)(plan), scaleAt(ri)(row.value)].sort((p, q) => p - q);
|
|
1086
1098
|
return [{ x: a, y: band.position(ri) + band.bandwidth / 2 - band.step / 2, w: b - a, h: band.step }];
|
|
@@ -1114,7 +1126,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1114
1126
|
prev = bandSpec.to;
|
|
1115
1127
|
}), edgeTicks && row.bands.length > 0) {
|
|
1116
1128
|
let edges = [0, ...row.bands.map((bandSpec) => bandSpec.to)].map((value) => {
|
|
1117
|
-
let text = rowFmt(row)(value);
|
|
1129
|
+
let text = !row.meta?.format && (row.isPct || !chartSpec) ? formatAutomaticNumber(value, { locale: options.locale?.language, decimals: autoDecimals(value), suffix: row.isPct ? "%" : "" }) : rowFmt(row)(value);
|
|
1118
1130
|
return { value, text, x: x(value), w: measure(text, noteFont).width };
|
|
1119
1131
|
}), clear = (a, b) => b.x - b.w / 2 >= a.x + a.w / 2 + 4, last = edges.at(-1), kept = [edges[0]];
|
|
1120
1132
|
for (let edge of edges.slice(1, -1)) clear(kept.at(-1), edge) && clear(edge, last) && kept.push(edge);
|
|
@@ -1165,7 +1177,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1165
1177
|
}), occupied.claim(rect, "mark", owner), anchorByRow.set(row.id, { x: vx, y: rowCenter, value: row.value, date: row.date, label: row.label, owner }), labelOn2("point")) {
|
|
1166
1178
|
let text = valueTextOf(row);
|
|
1167
1179
|
if (text) {
|
|
1168
|
-
let tsize = measure(text, valueFont)
|
|
1180
|
+
let tsize = measure(text, valueFont);
|
|
1169
1181
|
labelRequests.push({
|
|
1170
1182
|
id: `point:${row.id}`,
|
|
1171
1183
|
kind: "point",
|
|
@@ -1174,10 +1186,7 @@ function layoutBullet(data, options = {}) {
|
|
|
1174
1186
|
lines: [text],
|
|
1175
1187
|
font: valueFont,
|
|
1176
1188
|
priority: row.meta?.priority ?? PRIORITY.endpoint + (highlights.has(row.id) ? PRIORITY.highlightBonus : 0),
|
|
1177
|
-
candidates: stacked ?
|
|
1178
|
-
...rowMode ? pastEnd(rect, positive, tsize, targetX, row, x) : [],
|
|
1179
|
-
...endCandidates(rect, positive, tsize, barCss(row), targetX, bandEndX, uniformInside && !rowMode).map((candidate) => ({ ...candidate, penalty: candidate.penalty + (rowMode ? 1 : 0), insidePaint: row.meta?.fill ? { css: row.meta.fill } : { token: highlights.has(row.id) ? "focus" : "markInk" } }))
|
|
1180
|
-
]
|
|
1189
|
+
candidates: [stacked ? { slot: "cardValue", rect: { x: plot.x + plot.w - tsize.width, y: cardTop, w: tsize.width, h: tsize.height }, penalty: 0 } : { slot: "valueColumn", rect: { x: valueX(tsize.width), y: rowCenter - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }]
|
|
1181
1190
|
});
|
|
1182
1191
|
}
|
|
1183
1192
|
}
|
|
@@ -1371,7 +1380,6 @@ function layoutBullet(data, options = {}) {
|
|
|
1371
1380
|
suggest: `give each row ${naturalRowH}px (increase chart height) or turn annotation labels off`
|
|
1372
1381
|
});
|
|
1373
1382
|
for (let label of solved.placed) {
|
|
1374
|
-
label.slot === "pastEnd" && (label.halo = !0);
|
|
1375
1383
|
let tone = capsuleLabelIds.get(label.id);
|
|
1376
1384
|
tone && (label.ink = { token: tone === "neutral" ? "ink" : tone });
|
|
1377
1385
|
let ink = columnInks.get(label.id);
|
|
@@ -1428,6 +1436,8 @@ function layoutBullet(data, options = {}) {
|
|
|
1428
1436
|
}
|
|
1429
1437
|
nodes.splice(frameResult.nodes.length, 0, ...ruleNodes);
|
|
1430
1438
|
}
|
|
1439
|
+
for (let node of annResult.nodes)
|
|
1440
|
+
node.t !== "rect" || node.part !== "attainment" || !("token" in node.fill) || (node.fill.token === "goodFill" || node.fill.token === "badFill") && (node.fill = tonePaint(theme, options.palette, node.fill.token === "goodFill" ? "good" : "bad"));
|
|
1431
1441
|
spliceAnnotationNodes(nodes, annResult.nodes);
|
|
1432
1442
|
for (let label of allLabels) {
|
|
1433
1443
|
if (label.hidden || label.kind !== "point" || label.slot.startsWith("inside")) continue;
|
|
@@ -1497,31 +1507,6 @@ function layoutBullet(data, options = {}) {
|
|
|
1497
1507
|
decisions: [...solved.decisions, ...annResult.decisions]
|
|
1498
1508
|
}
|
|
1499
1509
|
};
|
|
1500
|
-
function pastEnd(rect, positive, tsize, targetX, row, scale) {
|
|
1501
|
-
let x = positive ? rect.x + rect.w + LABEL_GAP : rect.x - LABEL_GAP - tsize.width, clearOfTick = targetX === null || targetX < x - REFERENCE_LABEL_CLEARANCE || targetX > x + tsize.width + REFERENCE_LABEL_CLEARANCE, inPlot = x >= plot.x && x + tsize.width <= plot.x + plot.w, inkCss = paintColor(theme, { token: theme.labels?.ink === "muted" ? "inkMuted" : "ink" }), readable = row.bands.every((bandSpec, bi) => {
|
|
1502
|
-
let from = scale(bi === 0 ? 0 : row.bands[bi - 1].to);
|
|
1503
|
-
return !(scale(bandSpec.to) > x && from < x + tsize.width) || contrastRatio(inkCss, paintColor(theme, bandPaint(row, bi))) >= TEXT_CONTRAST_FLOOR;
|
|
1504
|
-
});
|
|
1505
|
-
return clearOfTick && inPlot && readable ? [{ slot: "pastEnd", rect: { x, y: rect.y + rect.h / 2 - tsize.height / 2, w: tsize.width, h: tsize.height }, penalty: 0 }] : [];
|
|
1506
|
-
}
|
|
1507
|
-
function endCandidates(rect, positive, tsize, fillCss, targetX, bandEndX, allowInside) {
|
|
1508
|
-
let cy = rect.y + rect.h / 2, pad = 6, fits = tsize.width + 2 * pad <= rect.w && tsize.height <= rect.h + 4, insideX = positive ? rect.x + rect.w - pad - tsize.width : rect.x + pad, tickOnInside = targetX !== null && targetX >= insideX - REFERENCE_LABEL_CLEARANCE && targetX <= insideX + tsize.width + REFERENCE_LABEL_CLEARANCE, inside = {
|
|
1509
|
-
slot: "insideEnd",
|
|
1510
|
-
rect: {
|
|
1511
|
-
x: insideX,
|
|
1512
|
-
y: cy - tsize.height / 2,
|
|
1513
|
-
w: tsize.width,
|
|
1514
|
-
h: tsize.height
|
|
1515
|
-
},
|
|
1516
|
-
penalty: 0,
|
|
1517
|
-
insideFill: fillCss
|
|
1518
|
-
}, outside = {
|
|
1519
|
-
slot: "outsideEnd",
|
|
1520
|
-
rect: { x: positive ? Math.max(rect.x + rect.w, bandEndX ?? rect.x + rect.w, targetX ?? rect.x + rect.w) + pad : Math.min(rect.x, targetX ?? rect.x) - pad - tsize.width, y: cy - tsize.height / 2, w: tsize.width, h: tsize.height },
|
|
1521
|
-
penalty: 1
|
|
1522
|
-
};
|
|
1523
|
-
return fits && !tickOnInside && allowInside ? [inside, outside] : [outside];
|
|
1524
|
-
}
|
|
1525
1510
|
}
|
|
1526
1511
|
function layoutBulletOnTargetScale(data, options, ctx) {
|
|
1527
1512
|
let { rows, theme, size, measure, occupied, warnings, rowFmt } = ctx;
|
|
@@ -10,7 +10,10 @@ import {
|
|
|
10
10
|
refusedBaseOptions,
|
|
11
11
|
scenarioField,
|
|
12
12
|
valueKindSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-76Q7E3TM.js";
|
|
14
|
+
import {
|
|
15
|
+
NAMED_COLUMN_STATES
|
|
16
|
+
} from "./chunk-WXJ5MHLH.js";
|
|
14
17
|
|
|
15
18
|
// src/core/charts/heatmap/schema.ts
|
|
16
19
|
import * as z from "zod";
|
|
@@ -31,7 +34,8 @@ var categorySchema = categorySchemaOf({
|
|
|
31
34
|
unit: z.string().optional().describe("Unit shown with this series values and used to check shared-scale compatibility."),
|
|
32
35
|
format: formatExample.optional().describe("Format-by-example for this series values, for example 1,234 or 1.2%."),
|
|
33
36
|
sizes: z.array(z.number().nonnegative().nullable()).optional().describe("Bubble sizes. One per category, in order: a level 1 to n with bubble.levels, else area \u221D size."),
|
|
34
|
-
bases: z.array(z.number().nonnegative().nullable()).optional().describe("Cell bases (n). One per category, in order; below minBase draws hatched.")
|
|
37
|
+
bases: z.array(z.number().nonnegative().nullable()).optional().describe("Cell bases (n). One per category, in order; below minBase draws hatched."),
|
|
38
|
+
states: z.array(z.enum(NAMED_COLUMN_STATES).nullable()).optional().describe("Why a cell has no value. One per category, in order: suppressed, nm (not meaningful), na (not applicable) or null. A stated cell needs value null; it draws hatched and the key names its state.")
|
|
35
39
|
}), heatmapDataSchema = z.strictObject({
|
|
36
40
|
valueKind: dataValueKindSchema,
|
|
37
41
|
categories: z.array(categorySchema).min(1).describe("Matrix columns in display order; each series supplies the values for one row."),
|
|
@@ -40,7 +44,7 @@ var categorySchema = categorySchemaOf({
|
|
|
40
44
|
addCategorySeriesIdIssues(ctx, data);
|
|
41
45
|
}), heatmapOptionsSchema = baseOptionsSchema.safeExtend(refusedBaseOptions("heatmap")).safeExtend({
|
|
42
46
|
scale: z.enum(["continuous", "discrete"]).optional().describe("Continuous color interpolation by default, or a discrete color ladder."),
|
|
43
|
-
variant: z.enum(["value", "harvey", "bubble"]).optional().describe("Value labels fit as a whole row; authored labels and valid pins retain precedence. Harvey glyphs suppress values and take ratings 0 to 4 only; any other value is refused. 'bubble': one circle per cell, colour = value, area = series sizes; values print where they fit."),
|
|
47
|
+
variant: z.enum(["value", "harvey", "bubble"]).optional().describe("Value labels fit as a whole row, and an automatic number text loses a % sign the unit names, then takes fewer decimals, before a value is hidden; authored labels and valid pins retain precedence. Harvey glyphs suppress values and take ratings 0 to 4 only; any other value is refused. 'bubble': one circle per cell, colour = value, area = series sizes; values print where they fit."),
|
|
44
48
|
cap: z.strictObject({
|
|
45
49
|
pct: z.number().positive().optional().describe("Cap in points when every cell is a percent. Example: 20 saturates at \xB120%."),
|
|
46
50
|
abs: z.number().positive().optional().describe("Cap in source units for other values.")
|