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
|
@@ -13,14 +13,10 @@ import {
|
|
|
13
13
|
seatValuesOnGround,
|
|
14
14
|
shadesFills,
|
|
15
15
|
withoutEvents
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
unitConflict,
|
|
19
|
-
unitConflictRefusal
|
|
20
|
-
} from "./chunk-WZGJSQKN.js";
|
|
16
|
+
} from "./chunk-CHAS5A5B.js";
|
|
21
17
|
import {
|
|
22
18
|
preparePolyline
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CCJP6QZO.js";
|
|
24
20
|
import {
|
|
25
21
|
FORCE_CATEGORY_RANKS,
|
|
26
22
|
STAIRCASE,
|
|
@@ -37,7 +33,7 @@ import {
|
|
|
37
33
|
staircaseRoom,
|
|
38
34
|
staircaseState,
|
|
39
35
|
withCategoryRanks
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YYJORENB.js";
|
|
41
37
|
import {
|
|
42
38
|
ANOMALY_FLAG_GAP,
|
|
43
39
|
ANOMALY_FLAG_H,
|
|
@@ -48,19 +44,16 @@ import {
|
|
|
48
44
|
anomalyReceipt,
|
|
49
45
|
anomalyRuleLines,
|
|
50
46
|
anomalyRuleReserve,
|
|
47
|
+
bandedCrossesBetween,
|
|
48
|
+
bandedIntervalTicks,
|
|
51
49
|
columnCorridorPaint,
|
|
52
50
|
lineAnomalyFurniture,
|
|
53
51
|
refuseAnomalySpec,
|
|
54
52
|
seatFlaggedValues
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
applyCategoryViewport,
|
|
58
|
-
liveWindowOptions,
|
|
59
|
-
viewportMeanSpan
|
|
60
|
-
} from "./chunk-BWTX7LUG.js";
|
|
53
|
+
} from "./chunk-BTDGWHGJ.js";
|
|
61
54
|
import {
|
|
62
55
|
stackSegmentCandidates
|
|
63
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-2HTYGMMG.js";
|
|
64
57
|
import {
|
|
65
58
|
REFERENCE_MARKER_R,
|
|
66
59
|
rankValueLabels,
|
|
@@ -69,57 +62,69 @@ import {
|
|
|
69
62
|
referenceMarkerPaint,
|
|
70
63
|
referenceTickGeometry,
|
|
71
64
|
withBandValueNotes
|
|
72
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BYCJ6TKI.js";
|
|
73
66
|
import {
|
|
74
67
|
cellFields,
|
|
75
68
|
normalizeCategorySeries
|
|
76
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-HZUAEMN5.js";
|
|
77
70
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
valueRowCrowded,
|
|
82
|
-
valueShareLines,
|
|
83
|
-
warnShareParts
|
|
84
|
-
} from "./chunk-MBVXROCI.js";
|
|
71
|
+
unitConflict,
|
|
72
|
+
unitConflictRefusal
|
|
73
|
+
} from "./chunk-DZ3S4RPI.js";
|
|
85
74
|
import {
|
|
86
75
|
roundingUnavailable,
|
|
76
|
+
shareRoundingNotes,
|
|
87
77
|
sumConsistentShares
|
|
88
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-6EYTD777.js";
|
|
89
79
|
import {
|
|
90
80
|
averageMarkerLine,
|
|
81
|
+
averageMarkerMean,
|
|
91
82
|
averageMarkerScope,
|
|
83
|
+
averageMarkerSpan,
|
|
92
84
|
averageOfUnaddedSums,
|
|
93
85
|
onePartDrawn,
|
|
94
86
|
sk,
|
|
95
87
|
stackParts,
|
|
96
88
|
warnIncompleteStacks
|
|
97
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-JEUL777U.js";
|
|
90
|
+
import {
|
|
91
|
+
applyCategoryViewport,
|
|
92
|
+
liveWindowOptions,
|
|
93
|
+
viewportMeanSpan
|
|
94
|
+
} from "./chunk-CXETOLPX.js";
|
|
95
|
+
import {
|
|
96
|
+
haloOverRules,
|
|
97
|
+
linesSize,
|
|
98
|
+
raiseOverRules,
|
|
99
|
+
valueRowCrowded,
|
|
100
|
+
valueShareLines,
|
|
101
|
+
warnShareParts
|
|
102
|
+
} from "./chunk-EMFUZKYK.js";
|
|
98
103
|
import {
|
|
99
104
|
valueLineExtent
|
|
100
105
|
} from "./chunk-QPWRHDLZ.js";
|
|
101
106
|
import {
|
|
102
107
|
isIncomplete
|
|
103
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-KLB2QC24.js";
|
|
104
109
|
import {
|
|
105
110
|
emitEventLane,
|
|
106
111
|
percentLevels,
|
|
107
112
|
runAnnotatePass,
|
|
108
113
|
settleEventLane
|
|
109
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JTC5SEAQ.js";
|
|
110
115
|
import {
|
|
111
116
|
stepDownFont
|
|
112
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-MPO5TVGF.js";
|
|
113
118
|
import {
|
|
114
119
|
breakUnsupported,
|
|
115
120
|
chartPalette,
|
|
116
121
|
chartTheme
|
|
117
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-7DAH2E4T.js";
|
|
118
123
|
import {
|
|
119
124
|
NO_STACK_MEAN,
|
|
120
|
-
|
|
125
|
+
noTotal,
|
|
121
126
|
stackAdds
|
|
122
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-JMGB444D.js";
|
|
123
128
|
import {
|
|
124
129
|
categoryTargetFields,
|
|
125
130
|
spliceAnnotationNodes
|
|
@@ -129,24 +134,28 @@ import {
|
|
|
129
134
|
VALUE_LINE_RESERVE,
|
|
130
135
|
hiddenValueLineReserve,
|
|
131
136
|
namedLineText
|
|
132
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-V5JQQMFQ.js";
|
|
133
138
|
import {
|
|
134
139
|
structureCount
|
|
135
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-XCROSJ2Z.js";
|
|
136
141
|
import {
|
|
137
142
|
emptyIdRecord
|
|
138
143
|
} from "./chunk-LINZPU5D.js";
|
|
139
144
|
import {
|
|
140
145
|
CATEGORY_ROW_FROM_END,
|
|
141
146
|
CATEGORY_ROW_VERTICAL,
|
|
147
|
+
COMBO_LIMIT,
|
|
142
148
|
MONTH_START,
|
|
143
149
|
ROTATED_NAME_AIR,
|
|
144
150
|
applyAxisBounds,
|
|
151
|
+
applyTickStep,
|
|
152
|
+
authoredDateTicks,
|
|
145
153
|
bandScale,
|
|
146
154
|
bandSizing,
|
|
147
155
|
calendarLike,
|
|
148
156
|
categoryLineAlign,
|
|
149
157
|
categoryRowTop,
|
|
158
|
+
checkPointBudget,
|
|
150
159
|
hangingLabelReserve,
|
|
151
160
|
isDateNumericTickSequence,
|
|
152
161
|
layoutValueAxis,
|
|
@@ -163,7 +172,7 @@ import {
|
|
|
163
172
|
tickFormatter,
|
|
164
173
|
verticalNameRect,
|
|
165
174
|
yearRowRequests
|
|
166
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-T2CYNDYU.js";
|
|
167
176
|
import {
|
|
168
177
|
AREA_FILL_PART,
|
|
169
178
|
DEFER_DENSITY_NOTES,
|
|
@@ -176,6 +185,7 @@ import {
|
|
|
176
185
|
authoredFootnoteCount,
|
|
177
186
|
authoredNotes,
|
|
178
187
|
categoryLabelsAndMarks,
|
|
188
|
+
cleanSum,
|
|
179
189
|
composedTextRole,
|
|
180
190
|
createOccupiedIndex,
|
|
181
191
|
defaultAnnotationId,
|
|
@@ -206,7 +216,7 @@ import {
|
|
|
206
216
|
toDateRoom,
|
|
207
217
|
withAuthoredFootnotes,
|
|
208
218
|
withCategoryNoteNames
|
|
209
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-4KQHKPB3.js";
|
|
210
220
|
import {
|
|
211
221
|
copyFrame,
|
|
212
222
|
disclosureNote,
|
|
@@ -215,7 +225,7 @@ import {
|
|
|
215
225
|
rankKeyShown,
|
|
216
226
|
recordFreedChrome,
|
|
217
227
|
wrapFootnote
|
|
218
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-SMHZXHHD.js";
|
|
219
229
|
import {
|
|
220
230
|
formatStatWithSpec,
|
|
221
231
|
formatterFromExample,
|
|
@@ -223,15 +233,16 @@ import {
|
|
|
223
233
|
percentRasterFormatter,
|
|
224
234
|
sameUnit,
|
|
225
235
|
seriesRasterFormatter
|
|
226
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-FFJGC2DX.js";
|
|
227
237
|
import {
|
|
238
|
+
NOT_AVAILABLE,
|
|
228
239
|
autoDecimals,
|
|
229
240
|
chartString,
|
|
230
241
|
formatAutomaticNumber,
|
|
231
242
|
formatAutomaticPercent,
|
|
232
243
|
formatShare,
|
|
233
244
|
withLocaleStrings
|
|
234
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-MSYTF3DZ.js";
|
|
235
246
|
import {
|
|
236
247
|
canvasMargin,
|
|
237
248
|
dashToken,
|
|
@@ -253,13 +264,13 @@ import {
|
|
|
253
264
|
strokeToken,
|
|
254
265
|
textScaleOf,
|
|
255
266
|
withSegmentSeams
|
|
256
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-HJRNBKIT.js";
|
|
257
268
|
import {
|
|
258
269
|
curvePathFromSegments,
|
|
259
270
|
drawnStroke,
|
|
260
271
|
monotoneSegments,
|
|
261
272
|
splitCurveSegmentsAtX
|
|
262
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-JYAZPMSA.js";
|
|
263
274
|
import {
|
|
264
275
|
NormalizeError,
|
|
265
276
|
accessibleTitle,
|
|
@@ -268,7 +279,7 @@ import {
|
|
|
268
279
|
resolveSize,
|
|
269
280
|
resolveSubtitle,
|
|
270
281
|
scaleTextPx
|
|
271
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-YOOHNQ3L.js";
|
|
272
283
|
import {
|
|
273
284
|
maxOf,
|
|
274
285
|
minOf,
|
|
@@ -277,7 +288,7 @@ import {
|
|
|
277
288
|
import {
|
|
278
289
|
defaultMeasurer,
|
|
279
290
|
wrapText
|
|
280
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-SNQ7D5R7.js";
|
|
281
292
|
|
|
282
293
|
// src/core/charts/combo/axisTitles.ts
|
|
283
294
|
var ROW_GAP = 18, SWATCH_BOX = 10, SWATCH_LINE = 14, SWATCH_GAP = 5, TITLE_GAP = 4, TITLE_TOP = 4;
|
|
@@ -360,8 +371,8 @@ function applyComboAxisTitlePaint(labels, titles) {
|
|
|
360
371
|
}
|
|
361
372
|
|
|
362
373
|
// src/core/charts/combo/endpoints.ts
|
|
363
|
-
function comboValueLabels(options, anatomy = !1, categoryCount = 1 / 0) {
|
|
364
|
-
return options.valueLabels ?? (anatomy ? categoryCount <= ANATOMY_ALL_MAX_CATEGORIES ? "all" : "ends" : "last");
|
|
374
|
+
function comboValueLabels(options, anatomy = !1, categoryCount = 1 / 0, floated = !1) {
|
|
375
|
+
return options.valueLabels ?? (anatomy || floated ? categoryCount <= ANATOMY_ALL_MAX_CATEGORIES ? "all" : floated ? "extremes" : "ends" : "last");
|
|
365
376
|
}
|
|
366
377
|
var ANATOMY_ALL_MAX_CATEGORIES = 8;
|
|
367
378
|
function prepareComboEndpointTexts(series, textOf, engine) {
|
|
@@ -679,7 +690,7 @@ function comboStacks(cats, columnSeries) {
|
|
|
679
690
|
let v = s.vals[ci].v;
|
|
680
691
|
v !== null && (v >= 0 ? p += v : n += v);
|
|
681
692
|
}
|
|
682
|
-
posTop[ci] = p, negBot[ci] = n, anyByCat[ci] = columnSeries.some((s) => s.vals[ci].v !== null), columnSeries.length > 0 && (stackTotals[c.id] = p
|
|
693
|
+
posTop[ci] = p, negBot[ci] = n, anyByCat[ci] = columnSeries.some((s) => s.vals[ci].v !== null), columnSeries.length > 0 && (stackTotals[c.id] = cleanSum([p, n])), lo = Math.min(lo, n), hi = Math.max(hi, p);
|
|
683
694
|
}), { stackTotals, posTop, negBot, anyByCat, lo, hi };
|
|
684
695
|
}
|
|
685
696
|
function axisValueLines(annotations, axis) {
|
|
@@ -695,21 +706,33 @@ function primaryDomain(options, gate, extent, fmt, warnings) {
|
|
|
695
706
|
message: `plotted values reach ${fmt(dataHi)}, above the declared ruler total ${fmt(ruler.total)} \u2014 the percent ladder continues past 100%`,
|
|
696
707
|
suggest: "pass the true grand total as secondaryAxis.ruler.total"
|
|
697
708
|
}));
|
|
698
|
-
let
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
709
|
+
let stepped = applyTickStep([dLo, dHi], va.tickStep, warnings);
|
|
710
|
+
[dLo, dHi] = stepped.domain;
|
|
711
|
+
let pticks = stepped.ticks ?? linearScale([dLo, dHi], [0, 1]).ticks(5);
|
|
712
|
+
if (pticks.length < 2 && (pticks = [dLo, dHi]), !stepped.ticks && ruler)
|
|
713
|
+
pticks = Array.from(
|
|
714
|
+
{ length: ruler.intervals + 1 },
|
|
715
|
+
(_, i) => roundTick(dLo + (dHi - dLo) * i / ruler.intervals)
|
|
716
|
+
);
|
|
717
|
+
else if (!stepped.ticks && gate.secondaryActive && (va.min !== void 0 || va.max !== void 0) && !options[SECONDARY_FULL_DOMAIN] && (pticks[0] !== dLo || pticks[pticks.length - 1] !== dHi)) {
|
|
718
|
+
let step = pinnedStep(dLo, dHi, pticks.length - 1);
|
|
719
|
+
pticks = Array.from({ length: Math.round((dHi - dLo) / step) + 1 }, (_, i) => Number((dLo + step * i).toPrecision(12)));
|
|
720
|
+
}
|
|
721
|
+
return { dLo, dHi, pticks, stepTicks: stepped.ticks };
|
|
722
|
+
}
|
|
723
|
+
function pinnedStep(lo, hi, rows) {
|
|
724
|
+
let even = (hi - lo) / rows || 1;
|
|
725
|
+
return ladderSteps(even / 2, even * 2, PRIMARY_MANTISSAS).filter((step) => Math.abs((hi - lo) / step - Math.round((hi - lo) / step)) < 1e-9).reduce((best, step) => {
|
|
726
|
+
if (best === void 0) return step;
|
|
727
|
+
let off = Math.abs((hi - lo) / step - rows), bestOff = Math.abs((hi - lo) / best - rows);
|
|
728
|
+
return off < bestOff - 1e-9 || Math.abs(off - bestOff) <= 1e-9 && step < best ? step : best;
|
|
729
|
+
}, void 0) ?? even;
|
|
703
730
|
}
|
|
704
731
|
function rightAxis(options, gate, raw, primary, secondarySpec, fixed) {
|
|
705
732
|
let { secOpt, ruler, secondaryActive, secondaryRequested } = gate, { pticks } = primary, nTicks = pticks.length, lang = options.locale?.language, secondaryDomain, secStep = 1;
|
|
706
733
|
if (secondaryActive && secOpt?.domain) {
|
|
707
|
-
let lo = Math.min(secOpt.domain[0], raw.lo), hi = Math.max(secOpt.domain[1], raw.hi)
|
|
708
|
-
secStep =
|
|
709
|
-
if (best === void 0) return step;
|
|
710
|
-
let off = Math.abs((hi - lo) / step - (nTicks - 1)), bestOff = Math.abs((hi - lo) / best - (nTicks - 1));
|
|
711
|
-
return off < bestOff - 1e-9 || Math.abs(off - bestOff) <= 1e-9 && step < best ? step : best;
|
|
712
|
-
}, void 0) ?? even, secondaryDomain = [roundTick(lo), roundTick(hi)];
|
|
734
|
+
let lo = Math.min(secOpt.domain[0], raw.lo), hi = Math.max(secOpt.domain[1], raw.hi);
|
|
735
|
+
secStep = pinnedStep(lo, hi, nTicks - 1), secondaryDomain = [roundTick(lo), roundTick(hi)];
|
|
713
736
|
} else if (secondaryActive && fixed !== void 0)
|
|
714
737
|
secStep = fixed.step, secondaryDomain = [roundTick(fixed.start), roundTick(fixed.start + fixed.step * (nTicks - 1))];
|
|
715
738
|
else if (secondaryActive) {
|
|
@@ -746,27 +769,75 @@ function ladderSteps(lo, hi, mantissas) {
|
|
|
746
769
|
function dualAxisScales(input) {
|
|
747
770
|
let { columnTops, primaryHi, lines, secondaryHi } = input;
|
|
748
771
|
if (input.columnBottoms.some((v) => v < 0) || lines.some((row) => row.some((v) => v !== null && v < 0)) || !(primaryHi > 0) || !(secondaryHi > 0)) return;
|
|
749
|
-
let half = input.bandFraction / 2,
|
|
750
|
-
|
|
751
|
-
for (let
|
|
752
|
-
for (let
|
|
753
|
-
let
|
|
754
|
-
|
|
755
|
-
if (v
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
let
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
772
|
+
let half = input.bandFraction / 2, search = (span) => {
|
|
773
|
+
let best2;
|
|
774
|
+
for (let n2 of [3, 4, 5, 6])
|
|
775
|
+
for (let p2 of ladderSteps(primaryHi / n2, primaryHi * span / n2, PRIMARY_MANTISSAS))
|
|
776
|
+
for (let s2 of ladderSteps(secondaryHi * 1.01 / n2, secondaryHi * 1.6 / n2, SECONDARY_MANTISSAS)) {
|
|
777
|
+
let colAt = (ci) => (columnTops[ci] ?? 0) / (n2 * p2), lineAt = (v) => v / (n2 * s2);
|
|
778
|
+
if (!lines.every((row) => row.every((v, ci) => {
|
|
779
|
+
if (v === null) return !0;
|
|
780
|
+
if (lineAt(v) - colAt(ci) < (input.clearance ?? LINE_CLEARANCE)) return !1;
|
|
781
|
+
for (let next of [ci - 1, ci + 1]) {
|
|
782
|
+
let w = row[next];
|
|
783
|
+
if (w == null) continue;
|
|
784
|
+
if (lineAt(v) + (lineAt(w) - lineAt(v)) * half - colAt(ci) < (input.clearance ?? LINE_CLEARANCE)) return !1;
|
|
785
|
+
}
|
|
786
|
+
return !0;
|
|
787
|
+
}))) continue;
|
|
788
|
+
let fill = maxOf(columnTops) / (n2 * p2), lineFill = secondaryHi / (n2 * s2);
|
|
789
|
+
(!best2 || fill > best2.fill + 1e-9 || Math.abs(fill - best2.fill) <= 1e-9 && (lineFill > best2.lineFill + 1e-9 || Math.abs(lineFill - best2.lineFill) <= 1e-9 && n2 < best2.n)) && (best2 = { n: n2, p: p2, s: s2, fill, lineFill });
|
|
790
|
+
}
|
|
791
|
+
return best2;
|
|
792
|
+
}, roomy = search(3), best = roomy ?? search(4);
|
|
767
793
|
if (!best) return;
|
|
768
794
|
let { n, p, s } = best;
|
|
769
|
-
return { pticks: Array.from({ length: n + 1 }, (_, i) => roundTick(i * p)), secondaryStep: s };
|
|
795
|
+
return { pticks: Array.from({ length: n + 1 }, (_, i) => roundTick(i * p)), secondaryStep: s, squeezed: roomy === void 0 };
|
|
796
|
+
}
|
|
797
|
+
var FLOAT_COLUMN_SHARE = 0.55, FLOAT_LINE_LOW = 0.6;
|
|
798
|
+
function floatedLineScales(columnTop, lines, valueLine, clearance) {
|
|
799
|
+
let secondary = lines.filter((s) => s.axis === "secondary");
|
|
800
|
+
if (secondary.some((s) => s.kind === "area")) return;
|
|
801
|
+
let values = secondary.flatMap((s) => s.vals.flatMap((val) => val.v === null ? [] : [val.v]));
|
|
802
|
+
if (valueLine && values.push(valueLine.lo, valueLine.hi), values.length === 0) return;
|
|
803
|
+
let lo = Math.min(...values), hi = Math.max(...values);
|
|
804
|
+
if (!(columnTop > 0)) return;
|
|
805
|
+
let best;
|
|
806
|
+
for (let step2 of ladderSteps(columnTop / 4, columnTop, PRIMARY_MANTISSAS)) {
|
|
807
|
+
let n2 = Math.ceil(columnTop / step2 - 1e-9);
|
|
808
|
+
if (n2 < 2 || n2 > 4) continue;
|
|
809
|
+
let top = roundTick(n2 * step2);
|
|
810
|
+
(!best || top < best.top - 1e-9 || Math.abs(top - best.top) <= 1e-9 && step2 < best.step) && (best = { step: step2, top, n: n2 });
|
|
811
|
+
}
|
|
812
|
+
if (!best) return;
|
|
813
|
+
let { step, n } = best, pticks = Array.from({ length: n + 1 }, (_, i) => roundTick(i * step)), dHi = pticks[pticks.length - 1] / FLOAT_COLUMN_SHARE, low = Math.min(0.75, Math.max(FLOAT_LINE_LOW, columnTop / dHi + clearance)), pad = hi > lo ? 0 : Math.abs(hi) * 0.1 || 1;
|
|
814
|
+
return { primary: { dLo: 0, dHi, pticks }, secondaryDomain: [lo - pad, hi + pad], range: [dHi * low, dHi] };
|
|
815
|
+
}
|
|
816
|
+
var FLAT_LINE_SHARE = 0.02;
|
|
817
|
+
function warnFlatLines(data, options, dataSeries, primary, secondaryActive, warnings) {
|
|
818
|
+
let span = primary.dHi - primary.dLo;
|
|
819
|
+
if (!(!(span > 0) || dataSeries.length < 2))
|
|
820
|
+
for (let s of dataSeries) {
|
|
821
|
+
if (s.kind === "column" || s.axis === "secondary" && secondaryActive) continue;
|
|
822
|
+
let values = s.vals.flatMap((val) => val.v === null ? [] : [val.v]);
|
|
823
|
+
if (values.length < 2) continue;
|
|
824
|
+
let range = Math.max(...values) - Math.min(...values);
|
|
825
|
+
if (!(range > 0) || range / span >= FLAT_LINE_SHARE) continue;
|
|
826
|
+
let index = data.series.findIndex((series) => series.id === s.id);
|
|
827
|
+
if (index < 0) continue;
|
|
828
|
+
let share = Math.round(range / span * 1e3) / 10;
|
|
829
|
+
warnings.push({
|
|
830
|
+
code: "line-flat-on-scale",
|
|
831
|
+
severity: "warn",
|
|
832
|
+
message: `line '${s.id}' spans ${share}% of the value scale it shares with larger series, so it draws flat and its moves are not visible`,
|
|
833
|
+
suggest: `put '${s.id}' on its own scale: axis: 'secondary' and options.secondaryAxis.acknowledge: true`,
|
|
834
|
+
field: ["data", "series", index],
|
|
835
|
+
fix: [
|
|
836
|
+
{ op: "add", path: `/data/series/${index}/axis`, value: "secondary" },
|
|
837
|
+
options.secondaryAxis === void 0 || "ruler" in options.secondaryAxis ? { op: "add", path: "/options/secondaryAxis", value: { acknowledge: !0 } } : { op: "add", path: "/options/secondaryAxis/acknowledge", value: !0 }
|
|
838
|
+
]
|
|
839
|
+
});
|
|
840
|
+
}
|
|
770
841
|
}
|
|
771
842
|
function zeroAlignedAxes(primary, secondary) {
|
|
772
843
|
let { pticks } = primary, n = pticks.length, zero = pticks.findIndex((t) => Math.abs(t) < 1e-9), p = n > 1 ? pticks[1] - pticks[0] : 0;
|
|
@@ -789,7 +860,7 @@ function dualAxisAnatomy(options, secondaryActive, theme) {
|
|
|
789
860
|
let pinned = options.secondaryAxis?.domain !== void 0;
|
|
790
861
|
return !secondaryActive || pinned ? !1 : options.dualAxis?.anatomy ?? theme?.valueAxis?.dualAxis === !0;
|
|
791
862
|
}
|
|
792
|
-
function
|
|
863
|
+
function comboAverageRun(options, cats, columns, lines, warnings, adds) {
|
|
793
864
|
let scope = averageMarkerScope(options.averageMarker);
|
|
794
865
|
if (scope === void 0) return;
|
|
795
866
|
let lineIds = scope === "all" ? [] : scope.filter((id) => lines.some((s) => s.id === id));
|
|
@@ -801,15 +872,12 @@ function averageMarkerMean(options, cats, columns, lines, warnings, adds) {
|
|
|
801
872
|
});
|
|
802
873
|
let selected = columns.filter((s) => scope === "all" || scope.includes(s.id));
|
|
803
874
|
if (averageOfUnaddedSums(adds(selected), warnings)) return;
|
|
804
|
-
let
|
|
805
|
-
|
|
806
|
-
return values.length > 0 ? [values.reduce((sum, v) => sum + v, 0)] : [];
|
|
807
|
-
});
|
|
808
|
-
if (stacks.length === 0) {
|
|
875
|
+
let run = averageMarkerMean(options.averageMarker, "all", cats, !0, selected, (s, _, ci) => s.vals[ci]?.v ?? null);
|
|
876
|
+
if (run.mean === void 0) {
|
|
809
877
|
warnings.push({ code: "average-marker-empty", severity: "warn", message: "averageMarker scope has no plotted values; marker omitted" });
|
|
810
878
|
return;
|
|
811
879
|
}
|
|
812
|
-
return
|
|
880
|
+
return run;
|
|
813
881
|
}
|
|
814
882
|
function comboAnomalyModel(spec, cats, lines, secondary, primary, pctFmt, locale, warnings, strings) {
|
|
815
883
|
let lineSeries = lines.filter((s) => s.kind === "line");
|
|
@@ -827,7 +895,7 @@ function comboAnomalyModel(spec, cats, lines, secondary, primary, pctFmt, locale
|
|
|
827
895
|
});
|
|
828
896
|
return { ...anomalyModel(spec, present, fmt, statFmt, locale, warnings, strings), seriesId: series.id, statFmt, onSecondary };
|
|
829
897
|
}
|
|
830
|
-
var TOTALS_AXIS = /* @__PURE__ */ Symbol("boardplot.comboTotalsAxis"), SECONDARY_FULL_DOMAIN = /* @__PURE__ */ Symbol("boardplot.secondaryFullDomain"), LINE_BAND_CLEARANCE = /* @__PURE__ */ Symbol("boardplot.lineBandClearance");
|
|
898
|
+
var TOTALS_AXIS = /* @__PURE__ */ Symbol("boardplot.comboTotalsAxis"), SECONDARY_FULL_DOMAIN = /* @__PURE__ */ Symbol("boardplot.secondaryFullDomain"), LINE_BAND_CLEARANCE = /* @__PURE__ */ Symbol("boardplot.lineBandClearance"), FLOAT_BAND_CLEARANCE = /* @__PURE__ */ Symbol("boardplot.floatBandClearance");
|
|
831
899
|
function secondaryPrimaryRange(options, secondary, fallback) {
|
|
832
900
|
let mapped = options[SECONDARY_FULL_DOMAIN], authored = options.secondaryAxis?.domain;
|
|
833
901
|
if (!mapped || !authored) return [fallback[0], fallback[fallback.length - 1]];
|
|
@@ -845,17 +913,17 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
845
913
|
let columns = dataSeries.filter((s) => s.kind === "column"), lines = dataSeries.filter((s) => s.kind !== "column"), chartInterpolation = options.interpolate ?? "linear", gate = comboAxisGate(options, seriesNorm, columns, lines, warnings), { secondaryActive } = gate;
|
|
846
914
|
comboUnitConflicts(options, seriesNorm, dataSeries, secondaryActive, warnings);
|
|
847
915
|
let rasterFor = (axis) => {
|
|
848
|
-
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.map((s) => s.unit)), shared2 = units.size === 1 ? [...units][0] : void 0;
|
|
916
|
+
let group = seriesNorm.filter((s) => (s.axis ?? "primary") === axis), units = new Set(group.map((s) => s.unit)), printed = axis === "primary" && options.format ? seriesNorm.filter((s) => !s.format) : group, shared2 = units.size === 1 ? [...units][0] : void 0;
|
|
849
917
|
return seriesRasterFormatter(
|
|
850
918
|
axis === "primary" ? options.format : void 0,
|
|
851
|
-
|
|
919
|
+
printed.flatMap((s) => s.vals.filter((val) => !val.isPct).map((val) => val.v)),
|
|
852
920
|
options.locale?.language,
|
|
853
921
|
axis === "primary" ? options.unit ?? shared2 : shared2,
|
|
854
922
|
options.target,
|
|
855
923
|
axis === "primary" ? options.defaultFormat : void 0,
|
|
856
924
|
columns.length > 1
|
|
857
925
|
);
|
|
858
|
-
}, valueSpec = rasterFor("primary"), fmt = valueSpec.fmt, secondarySpec = secondaryActive ? rasterFor("secondary") : valueSpec, pctFmt = percentRasterFormatter(seriesNorm.flatMap((s) => s.vals.filter((val) => val.isPct).map((val) => val.v)), options.locale?.language), sourceMean = options.viewDomain || options.window ? columns.length > 0 && cats.length > 0 ? columns.reduce((sum, series) => sum + series.vals.reduce((n, value) => n + (value.v ?? 0), 0), 0) / cats.length : primaryLineMean(lines.map((s) => ({ s, pts: [] })), secondaryActive) : void 0, addsOver = (series) => stackAdds(series.map((s) => ({ label: s.label, unit: s.unit, pctCells: s.vals.some((val) => val.isPct) })), options.unit, void 0), columnsAdd = addsOver(columns),
|
|
926
|
+
}, valueSpec = rasterFor("primary"), fmt = valueSpec.fmt, secondarySpec = secondaryActive ? rasterFor("secondary") : valueSpec, pctFmt = percentRasterFormatter(seriesNorm.flatMap((s) => s.vals.filter((val) => val.isPct).map((val) => val.v)), options.locale?.language), sourceMean = options.viewDomain || options.window ? columns.length > 0 && cats.length > 0 ? columns.reduce((sum, series) => sum + series.vals.reduce((n, value) => n + (value.v ?? 0), 0), 0) / cats.length : primaryLineMean(lines.map((s) => ({ s, pts: [] })), secondaryActive) : void 0, addsOver = (series) => stackAdds(series.map((s) => ({ label: s.label, unit: s.unit, pctCells: s.vals.some((val) => val.isPct) })), options.unit, void 0), columnsAdd = addsOver(columns), averageRun = comboAverageRun(options, cats, columns, lines, warnings, addsOver), anomalyRun = options.anomaly ? comboAnomalyModel(options.anomaly, cats, lines, secondarySpec, valueSpec, pctFmt, options.locale?.language, warnings, options.strings) : void 0, population = applyCategoryViewport({
|
|
859
927
|
domain: options.viewDomain,
|
|
860
928
|
window: options.window,
|
|
861
929
|
categories: cats,
|
|
@@ -864,7 +932,9 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
864
932
|
basis: [],
|
|
865
933
|
targets: [],
|
|
866
934
|
annotations: options.annotations
|
|
867
|
-
})
|
|
935
|
+
});
|
|
936
|
+
checkPointBudget(cats.length, seriesNorm.length, COMBO_LIMIT, "a combo chart");
|
|
937
|
+
let meanSpan = viewportMeanSpan(population), shown = population ? population.annotations : options.annotations, marker = averageRun === void 0 ? void 0 : { ...averageMarkerLine(shown ?? [], averageRun.mean, (v) => formatStatWithSpec(v, valueSpec.spec), averageMarkerSpan(averageRun, meanSpan), options.strings?.average), side: "right" }, averageMarkerId = marker?.id, annotations = marker ? [...shown ?? [], marker] : shown, effective = population ? liveWindowOptions({ ...options, annotations }, population.sampling) : marker ? { ...options, annotations } : options, { stackTotals, posTop, negBot, anyByCat, lo: stackLo, hi: stackHi } = comboStacks(cats, columns), incompleteCats = new Set(cats.filter((_, ci) => anyByCat[ci] && columns.some((s) => s.vals[ci].v === null)).map((c) => c.id));
|
|
868
938
|
columnsAdd && warnIncompleteStacks(
|
|
869
939
|
"stacked",
|
|
870
940
|
cats,
|
|
@@ -889,7 +959,7 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
889
959
|
});
|
|
890
960
|
});
|
|
891
961
|
});
|
|
892
|
-
let lo = stackLo, hi = stackHi, sLoRaw = 0, sHiRaw = 0;
|
|
962
|
+
let lo = stackLo, hi = stackHi, pinnedSecondary = secondaryActive && !lines.some((s) => s.axis === "secondary" && s.kind === "area") ? gate.secOpt?.domain : void 0, sLoRaw = pinnedSecondary?.[0] ?? 0, sHiRaw = pinnedSecondary?.[1] ?? 0;
|
|
893
963
|
for (let s of [...lines, ...refs]) {
|
|
894
964
|
let secondary = s.axis === "secondary" && secondaryActive && s.role !== "reference";
|
|
895
965
|
for (let val of s.vals)
|
|
@@ -903,7 +973,7 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
903
973
|
let mapped = secondaryPrimaryRange(options, [sLoRaw, sHiRaw], [lo, hi]);
|
|
904
974
|
lo = Math.min(lo, mapped[0]), hi = Math.max(hi, mapped[1]);
|
|
905
975
|
}
|
|
906
|
-
let primary = primaryDomain(effective, gate, { lo, hi, dataHi }, fmt, warnings), anatomyRequested = dualAxisAnatomy(options, secondaryActive, theme), pinnedBy = [options.valueAxis?.min !== void 0 ? "valueAxis.min" : "", options.valueAxis?.max !== void 0 ? "valueAxis.max" : ""].filter(Boolean), negative = lo < 0 || sLoRaw < 0, anatomy = anatomyRequested && pinnedBy.length === 0 && !negative;
|
|
976
|
+
let primary = primaryDomain(effective, gate, { lo, hi, dataHi }, fmt, warnings), anatomyRequested = dualAxisAnatomy(options, secondaryActive, theme), pinnedBy = [options.valueAxis?.min !== void 0 ? "valueAxis.min" : "", options.valueAxis?.max !== void 0 ? "valueAxis.max" : "", primary.stepTicks ? "valueAxis.tickStep" : ""].filter(Boolean), negative = lo < 0 || sLoRaw < 0, anatomy = anatomyRequested && pinnedBy.length === 0 && !negative;
|
|
907
977
|
anatomyRequested && !anatomy && warnings.push({
|
|
908
978
|
code: "dual-axis-anatomy-off",
|
|
909
979
|
severity: "info",
|
|
@@ -920,16 +990,36 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
920
990
|
clearance: options[LINE_BAND_CLEARANCE]
|
|
921
991
|
} : void 0, shared = lineBandScaleInput ? dualAxisScales(lineBandScaleInput) : void 0;
|
|
922
992
|
shared && (primary = { dLo: 0, dHi: shared.pticks[shared.pticks.length - 1], pticks: shared.pticks });
|
|
993
|
+
let floatOver = (clearance) => hi <= maxOf(posTop) ? floatedLineScales(maxOf(posTop), lines, secondaryLine, clearance) : void 0, floated = lineBandScaleInput && !shared ? floatOver(options[FLOAT_BAND_CLEARANCE] ?? lineBandScaleInput.clearance ?? LINE_CLEARANCE) : void 0;
|
|
994
|
+
floated && (primary = floated.primary), warnFlatLines(data, options, dataSeries, primary, secondaryActive, warnings);
|
|
923
995
|
let aligned = secondaryActive && !shared && !gate.secOpt?.domain && pinnedBy.length === 0 && negative ? zeroAlignedAxes(primary, { lo: sLoRaw, hi: sHiRaw }) : void 0;
|
|
924
996
|
aligned && (primary = aligned.primary);
|
|
925
|
-
let right =
|
|
997
|
+
let right = floated ? {
|
|
998
|
+
secFmtSrc: rightAxis(effective, gate, { lo: sLoRaw, hi: sHiRaw }, primary, secondarySpec).secFmtSrc,
|
|
999
|
+
secondaryDomain: floated.secondaryDomain,
|
|
1000
|
+
rightTicks: []
|
|
1001
|
+
} : rightAxis(
|
|
926
1002
|
effective,
|
|
927
1003
|
gate,
|
|
928
1004
|
{ lo: sLoRaw, hi: sHiRaw },
|
|
929
1005
|
primary,
|
|
930
1006
|
secondarySpec,
|
|
931
1007
|
shared ? { step: shared.secondaryStep, start: 0 } : aligned?.secondary
|
|
932
|
-
), fmtSecondary = secondarySpec.fmt, beforeCorridor = warnings.slice(),
|
|
1008
|
+
), fmtSecondary = secondarySpec.fmt, beforeCorridor = warnings.slice(), squeezeWarning = () => ({
|
|
1009
|
+
code: "dual-axis-columns-squeezed",
|
|
1010
|
+
severity: "info",
|
|
1011
|
+
message: "the line runs over the columns on every pair of scales that keeps them a third of the plot high, so the columns shrink below a third of the plot to leave the line a clear band",
|
|
1012
|
+
suggest: "split the chart in two, or pin secondaryAxis.domain to choose the secondary scale yourself"
|
|
1013
|
+
});
|
|
1014
|
+
shared?.squeezed && warnings.push(squeezeWarning());
|
|
1015
|
+
let floatWarning = () => ({
|
|
1016
|
+
code: "dual-axis-line-floated",
|
|
1017
|
+
severity: "info",
|
|
1018
|
+
message: "the line runs over the columns on every pair of scales that starts at zero, so it takes the upper part of the plot on its own scale from its low to its high, and its values print in place of the right ticks",
|
|
1019
|
+
suggest: "set dualAxis.anatomy: false for the shared scales, or pin secondaryAxis.domain to choose the secondary scale yourself"
|
|
1020
|
+
});
|
|
1021
|
+
floated && warnings.push(floatWarning());
|
|
1022
|
+
let anomalyFor = (left, rightDomain, out) => {
|
|
933
1023
|
let extent = anomalyRun?.onSecondary ? rightDomain : [left.dLo, left.dHi];
|
|
934
1024
|
return anomalyRun && extent && {
|
|
935
1025
|
model: anomalyRun.anomaly,
|
|
@@ -946,10 +1036,11 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
946
1036
|
lines,
|
|
947
1037
|
refs,
|
|
948
1038
|
secondaryActive,
|
|
949
|
-
secondaryTicksHidden: secondaryActive && (options.secondaryAxis?.show === !1 || ticksFromLabels),
|
|
1039
|
+
secondaryTicksHidden: secondaryActive && (options.secondaryAxis?.show === !1 || ticksFromLabels || floated !== void 0),
|
|
950
1040
|
ticksFromLabels,
|
|
951
1041
|
anatomy,
|
|
952
|
-
lineBand: shared !== void 0,
|
|
1042
|
+
lineBand: shared !== void 0 || floated !== void 0,
|
|
1043
|
+
...floated ? { lineFloat: { range: floated.range } } : {},
|
|
953
1044
|
// Column totals already state the scale. An explicit axis still wins, and the axis comes
|
|
954
1045
|
// back when a total found no seat (TOTALS_AXIS): then the totals no longer state it.
|
|
955
1046
|
showPrimaryAxis: options.valueAxis?.show ?? (ticksFromLabels ? !1 : secondaryActive || options.labels === !1 || options[TOTALS_AXIS] === !0 || (columns.length > 0 && columnsAdd && (options.labels === void 0 || options.labels.grandTotal !== !1) ? !1 : primaryLinesUnlabelled(options, lines, secondaryActive))),
|
|
@@ -970,6 +1061,7 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
970
1061
|
stackTotals,
|
|
971
1062
|
shareTexts,
|
|
972
1063
|
roundingAdjustments,
|
|
1064
|
+
shareNotes: shareRoundingNotes(options, roundingAdjustments),
|
|
973
1065
|
incompleteCats,
|
|
974
1066
|
columnsAdd,
|
|
975
1067
|
posTop,
|
|
@@ -979,26 +1071,22 @@ function resolveComboDomain(data, options, warnings, theme) {
|
|
|
979
1071
|
secondaryDomain: right.secondaryDomain,
|
|
980
1072
|
rightTicks: ticksFromLabels ? [] : right.rightTicks
|
|
981
1073
|
};
|
|
982
|
-
return lineBandScaleInput && (resolved.withLineBandClearance = (clearance) => {
|
|
983
|
-
let next = dualAxisScales({ ...lineBandScaleInput, clearance });
|
|
984
|
-
if (shared?.secondaryStep === next?.secondaryStep && shared?.pticks.length === next?.pticks.length && !shared?.pticks.some((tick, i) => tick !== next.pticks[i])) return;
|
|
985
|
-
let left = next ? { dLo: 0, dHi: next.pticks[next.pticks.length - 1], pticks: next.pticks } : defaultPrimary, right2 = rightAxis(
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
{ lo: sLoRaw, hi: sHiRaw },
|
|
989
|
-
left,
|
|
990
|
-
secondarySpec,
|
|
991
|
-
next ? { step: next.secondaryStep, start: 0 } : void 0
|
|
992
|
-
), nextWarnings = [...beforeCorridor], axes = next || !resolved.ticksFromLabels ? {} : {
|
|
1074
|
+
return lineBandScaleInput && (resolved.withLineBandClearance = (clearance, floatClearance = clearance) => {
|
|
1075
|
+
let next = dualAxisScales({ ...lineBandScaleInput, clearance }), nextFloat = next ? void 0 : floatOver(floatClearance);
|
|
1076
|
+
if (shared?.secondaryStep === next?.secondaryStep && shared?.pticks.length === next?.pticks.length && !shared?.pticks.some((tick, i) => tick !== next.pticks[i]) && floated?.range[0] === nextFloat?.range[0]) return;
|
|
1077
|
+
let left = next ? { dLo: 0, dHi: next.pticks[next.pticks.length - 1], pticks: next.pticks } : nextFloat?.primary ?? defaultPrimary, right2 = nextFloat ? { secondaryDomain: nextFloat.secondaryDomain, rightTicks: [] } : rightAxis(effective, gate, { lo: sLoRaw, hi: sHiRaw }, left, secondarySpec, next ? { step: next.secondaryStep, start: 0 } : void 0), nextWarnings = [...beforeCorridor];
|
|
1078
|
+
next?.squeezed && nextWarnings.push(squeezeWarning()), nextFloat && nextWarnings.push(floatWarning());
|
|
1079
|
+
let axes = next || !resolved.ticksFromLabels ? {} : {
|
|
993
1080
|
ticksFromLabels: !1,
|
|
994
1081
|
showPrimaryAxis: !0,
|
|
995
|
-
secondaryTicksHidden: options.secondaryAxis?.show === !1
|
|
996
|
-
};
|
|
1082
|
+
secondaryTicksHidden: options.secondaryAxis?.show === !1 || nextFloat !== void 0
|
|
1083
|
+
}, { lineFloat: _drop, ...base } = resolved;
|
|
997
1084
|
return { domain: {
|
|
998
|
-
...
|
|
1085
|
+
...base,
|
|
999
1086
|
...left,
|
|
1000
1087
|
...axes,
|
|
1001
|
-
lineBand: next !== void 0,
|
|
1088
|
+
lineBand: next !== void 0 || nextFloat !== void 0,
|
|
1089
|
+
...nextFloat ? { lineFloat: { range: nextFloat.range }, secondaryTicksHidden: !0 } : {},
|
|
1002
1090
|
secondaryDomain: right2.secondaryDomain,
|
|
1003
1091
|
rightTicks: next && resolved.ticksFromLabels ? [] : right2.rightTicks,
|
|
1004
1092
|
anomaly: anomalyFor(left, right2.secondaryDomain, nextWarnings)
|
|
@@ -1188,7 +1276,7 @@ function axisKeyedSeries(domain) {
|
|
|
1188
1276
|
return keyed;
|
|
1189
1277
|
}
|
|
1190
1278
|
function comboFrameMargins(env, domain) {
|
|
1191
|
-
let { theme, size, measure } = env, { options, dLo, dHi, fmt, secondaryActive } = domain, leftAxisReserve = domain.showPrimaryAxis ? measureValueAxisWidth([dLo, dHi], fmt, theme, measure, 5, domain.valueSpec) : 0, margin = { ...canvasMargin(theme, size.width), ...options.margin }, axisFont = { family: theme.type.family, ...theme.type.axis }, categoryWidth = Math.max(0, maxOf(domain.cats.map((c) => measure(c.label ?? c.id, axisFont).width))) + 4;
|
|
1279
|
+
let { theme, size, measure } = env, { options, dLo, dHi, fmt, secondaryActive } = domain, leftAxisReserve = domain.showPrimaryAxis ? measureValueAxisWidth([dLo, dHi], fmt, theme, measure, 5, domain.valueSpec, domain.stepTicks) : 0, margin = { ...canvasMargin(theme, size.width), ...options.margin }, axisFont = { family: theme.type.family, ...theme.type.axis }, categoryWidth = Math.max(0, maxOf(domain.cats.map((c) => measure(c.label ?? c.id, axisFont).width))) + 4;
|
|
1192
1280
|
if (domain.cats.length > 0 && categoryWidth > (size.width - margin.left - margin.right - leftAxisReserve) / domain.cats.length) {
|
|
1193
1281
|
let gutter = measure("0", axisFont).height;
|
|
1194
1282
|
options.margin?.left === void 0 && (margin.left = Math.min(margin.left, gutter)), options.margin?.right === void 0 && (margin.right = Math.min(margin.right, gutter));
|
|
@@ -1235,7 +1323,9 @@ function solveComboFrame(env, domain, paints, warnings, eventKey) {
|
|
|
1235
1323
|
// The growth statements on a card, where the column beside the plot would cost it the width.
|
|
1236
1324
|
...growthNote === void 0 ? [] : [growthNote],
|
|
1237
1325
|
// Two scales without tick columns: the note says each series reads on its own.
|
|
1238
|
-
...domain.secondaryActive && domain.ticksFromLabels === !0 ? [disclosureNote(chartString2(options, "comboOwnScale"))] : []
|
|
1326
|
+
...domain.secondaryActive && domain.ticksFromLabels === !0 ? [disclosureNote(chartString2(options, "comboOwnScale"))] : [],
|
|
1327
|
+
// Moved shares matter only where the segments print them.
|
|
1328
|
+
...contentOf(domain, "segment", ["absolute"])?.includes("percent") ? domain.shareNotes : []
|
|
1239
1329
|
],
|
|
1240
1330
|
legend,
|
|
1241
1331
|
...eventKey ? { eventKey } : {},
|
|
@@ -1272,7 +1362,7 @@ function kindSetting(domain, kind) {
|
|
|
1272
1362
|
return v === void 0 ? !0 : v;
|
|
1273
1363
|
}
|
|
1274
1364
|
function composeLines(domain, content, value, catLabel, serLabel, serFmt) {
|
|
1275
|
-
let { abs, isPct, share } = value, explicit = value.format ? formatterFromExample(value.format, domain.options.locale?.language) : void 0, parts = [];
|
|
1365
|
+
let { abs, isPct, share } = value, explicit = value.format ? value.format === domain.options.format ? domain.fmt : formatterFromExample(value.format, domain.options.locale?.language) : void 0, parts = [];
|
|
1276
1366
|
for (let c of content)
|
|
1277
1367
|
c === "absolute" && abs !== null ? parts.push([c, explicit ? explicit(abs) : isPct ? domain.pctFmt(abs) : serFmt(abs)]) : c === "percent" && abs !== null && isPct ? parts.push([c, explicit ? explicit(abs) : domain.pctFmt(abs)]) : c === "percent" && share !== void 0 && share !== null ? parts.push([c, value.shareText ?? formatShare(share, domain.options.locale?.language)]) : c === "category" && catLabel ? parts.push([c, catLabel]) : c === "series" && serLabel && parts.push([c, serLabel]);
|
|
1278
1368
|
return valueShareLines(parts);
|
|
@@ -1325,7 +1415,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1325
1415
|
pushAll(warnings, axisTitles.warnings);
|
|
1326
1416
|
let hasCagr = (domain.options.annotations ?? []).some((a) => a.kind === "cagr"), forecast = comboForecastBoundaries(domain), forecastRow = forecast.length > 0 ? measure(options.strings.forecastHeader, secondaryFont(theme)).height + 8 : 0, stair = staircaseOn(options.categoryLabels, options) && columns.length > 0 && kindSetting(domain, "category") !== !1 && cats.length > 1, cagrRoom = Math.max(16, 39 - axisTitles.height), topPad = 8 + axisTitles.height + forecastRow + totalsRow + (hasCagr ? cagrRoom : 0) + (stair ? staircaseState(options).pad : 0);
|
|
1327
1417
|
hasCagr && cagrRoom < 30 && recordFreedChrome(frame.frame, "cagr-headroom", 30 - cagrRoom);
|
|
1328
|
-
let pointContent = contentOf(domain, "point", ["absolute"]), valueLabels = comboValueLabels(options, domain.anatomy, domain.cats.length), texts = prepareComboEndpointTexts(
|
|
1418
|
+
let pointContent = contentOf(domain, "point", ["absolute"]), valueLabels = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), texts = prepareComboEndpointTexts(
|
|
1329
1419
|
lines,
|
|
1330
1420
|
(series, ci) => {
|
|
1331
1421
|
let value = series.vals[ci];
|
|
@@ -1393,7 +1483,9 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1393
1483
|
});
|
|
1394
1484
|
direction === "left" && (plotX0 += room), plotW0 -= room;
|
|
1395
1485
|
}
|
|
1396
|
-
let band = bandFor(plotX0, plotW0), categoryNames = cats.map((category) => category.label ?? category.id), periodRow = cats.some((category) => category.calendar) || isDateNumericTickSequence(categoryNames) || calendarLike(categoryNames) || categoryNames.every((label) => /^[MWT]\d+$/i.test(label)),
|
|
1486
|
+
let band = bandFor(plotX0, plotW0), categoryNames = cats.map((category) => category.label ?? category.id), periodRow = cats.some((category) => category.calendar) || isDateNumericTickSequence(categoryNames) || calendarLike(categoryNames) || categoryNames.every((label) => /^[MWT]\d+$/i.test(label)), authored = authoredDateTicks(cats, options, warnings);
|
|
1487
|
+
bandedCrossesBetween(options, warnings);
|
|
1488
|
+
let planRow = (b, ticked2) => {
|
|
1397
1489
|
let row = categoryLabelsAndMarks(cats, { count: authoredFootnoteCount(options), warnings }, partialAxisWords(options.strings, options, frame.legend?.items.some((item) => item.id === "__partial") || partialNamedOnTotals(env, domain)));
|
|
1398
1490
|
return ticked2?.name(row), withCategoryRanks(planCategoryRow({
|
|
1399
1491
|
rotate: !cats.every((c) => MONTH_START.exec((c.label ?? c.id).trim())?.[0] === (c.label ?? c.id).trim()),
|
|
@@ -1407,6 +1499,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1407
1499
|
centers: cats.map((_, ci) => b.center(ci)),
|
|
1408
1500
|
step: b.step,
|
|
1409
1501
|
fonts: [tickFont, { ...tickFont, size: tickFont.size - scaleTextPx(1, textScaleOf(options)) }, { family: theme.type.family, ...theme.type.footnote }],
|
|
1502
|
+
stepToFloor: !0,
|
|
1410
1503
|
secondary: secondaryFont(theme),
|
|
1411
1504
|
periods: periodRow,
|
|
1412
1505
|
padding: 4,
|
|
@@ -1417,10 +1510,12 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1417
1510
|
// Without the rank key, nominal names keep one name per column (rotate, then ellipsis).
|
|
1418
1511
|
// Under notes.show 'ranks' alone a cut name takes no mark, since its note does not print.
|
|
1419
1512
|
...disclosuresShown(options) ? { cutMarkFrom: authoredFootnoteCount(options) + 1 } : rankKeyShown(options) ? {} : { everyName: !0 },
|
|
1420
|
-
...ticked2?.plan
|
|
1513
|
+
...ticked2?.plan,
|
|
1514
|
+
// An authored interval counts back from the latest period, as on a line.
|
|
1515
|
+
...ticked2 !== void 0 && ticked2 === authored ? { ordered: !0, strideFromEnd: !0 } : {}
|
|
1421
1516
|
}), measure, cats.map((c) => c.label ?? c.id), options[FORCE_CATEGORY_RANKS] === !0, rankKeyShown(options));
|
|
1422
|
-
}, catPlan = planRow(band), ticked = options[CATEGORY_ROW_FROM_END] === !1 ? void 0 : longDayMonths(cats, catPlan.stride, options.locale?.language);
|
|
1423
|
-
ticked && (catPlan = planRow(band, ticked));
|
|
1517
|
+
}, catPlan = planRow(band, authored), ticked = authored ?? (options[CATEGORY_ROW_FROM_END] === !1 ? void 0 : longDayMonths(cats, catPlan.stride, options.locale?.language));
|
|
1518
|
+
ticked && ticked !== authored && (catPlan = planRow(band, ticked));
|
|
1424
1519
|
let catOverhang = stair ? 0 : rotatedLeftOverhang(catPlan, cats.map((_, ci) => band.center(ci)), 4);
|
|
1425
1520
|
catOverhang > 0 && (plotX0 += catOverhang, plotW0 -= catOverhang, band = bandFor(plotX0, plotW0), catPlan = planRow(band, ticked));
|
|
1426
1521
|
let showCatTickRow = kindSetting(domain, "category") !== !1 && cats.length > 0 && !stair;
|
|
@@ -1436,7 +1531,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1436
1531
|
h: plotHeightAfter(frame, size.height, plotH0 - hangingReserve)
|
|
1437
1532
|
}, minPlot = plotFloorRows(options) * measure("0", labelFont).height + 8;
|
|
1438
1533
|
frame.frame.plotMinHeight = Math.max(frame.frame.plotMinHeight ?? 0, size.height + (frame.deficit ?? 0) + minPlot - (plotH0NoBand - hangingReserveNoBand)), showPrimaryAxis && (plot.x += leftAxisReserve, plot.w = Math.max(10, plot.w - leftAxisReserve)), plot.w = Math.max(10, plot.w - rightReserve);
|
|
1439
|
-
let { dLo, dHi, pticks, secondaryDomain } = domain, secondaryRange = secondaryDomain ? secondaryPrimaryRange(options, secondaryDomain, pticks) : void 0, endpointAir = columns.length === 0 || !(dHi > dLo) || sharesOnColumns ? 0 : Math.max(
|
|
1534
|
+
let { dLo, dHi, pticks, secondaryDomain } = domain, secondaryRange = secondaryDomain ? domain.lineFloat?.range ?? secondaryPrimaryRange(options, secondaryDomain, pticks) : void 0, endpointAir = columns.length === 0 || !(dHi > dLo) || sharesOnColumns ? 0 : Math.max(
|
|
1440
1535
|
0,
|
|
1441
1536
|
maxOf([...texts.first, ...texts.last].flatMap(([id, end]) => {
|
|
1442
1537
|
let series = lines.find((s) => s.id === id);
|
|
@@ -1462,6 +1557,7 @@ function comboPlotArea(env, domain, paints, framed, gutterOverride, warnings) {
|
|
|
1462
1557
|
endpointWidth,
|
|
1463
1558
|
band,
|
|
1464
1559
|
catPlan,
|
|
1560
|
+
...authored?.ticks ? { intervalTicks: authored.ticks } : {},
|
|
1465
1561
|
dateNumericTicks,
|
|
1466
1562
|
// A date row stays at the plot's bottom band; prose reads under the
|
|
1467
1563
|
// lowest column and the value or total hanging under it.
|
|
@@ -1584,7 +1680,7 @@ function totalColumn(domain, ci) {
|
|
|
1584
1680
|
function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes = []) {
|
|
1585
1681
|
let gtContent = domain.columns.length > 0 && domain.columnsAdd ? contentOf(domain, "grandTotal", ["absolute"]) : null;
|
|
1586
1682
|
if (!gtContent) return;
|
|
1587
|
-
let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"), texts = domain.cats.map((c, ci) => {
|
|
1683
|
+
let { posTop, negBot } = domain, { y, band, strongFont } = area, authored = /* @__PURE__ */ new Set(), bare = /* @__PURE__ */ new Set(), linked = new Map(requests.flatMap((req) => req.printedIn ? [[req.printedIn, req.id]] : [])), valueAlone = gtContent.join() === "absolute", shares = domain.options[FIRST_END_BELOW_TOTALS] === !0, backLink = (id, words) => !words && valueAlone && linked.has(id) ? { printedIn: linked.get(id) } : {}, crossesRules = domain.averageMarkerId !== void 0 || (domain.options.annotations ?? []).some((annotation) => annotation.kind === "valueLine"), texts = domain.cats.map((c, ci) => {
|
|
1588
1684
|
if (!domain.anyByCat[ci]) return null;
|
|
1589
1685
|
let single = totalColumn(domain, ci), cell = single?.vals[ci], composed = composeText(domain, gtContent, { abs: domain.stackTotals[c.id], isPct: cell?.isPct ?? !1, format: cell?.format ?? single?.format ?? domain.options.format }, c.label ?? c.id, "", domain.fmt), override = cell?.labelOverride;
|
|
1590
1686
|
return override === !1 ? null : (typeof override == "string" && authored.add(c.id), namesOnly(cell?.isPct ? gtContent : gtContent.filter((part) => part !== "percent"), override).printsFor && bare.add(c.id), (typeof override == "string" ? override.replace(/\$\{value\}/g, composed) : composed) || null);
|
|
@@ -1595,7 +1691,10 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1595
1691
|
if (text === null) return null;
|
|
1596
1692
|
let size = wordsAt(ci, text, font)?.size ?? env.measure(text, font), above = posTop[ci] > 0 || negBot[ci] === 0, edgeY = y(above ? posTop[ci] : negBot[ci]);
|
|
1597
1693
|
return { x: band.center(ci) - size.width / 2, y: above ? edgeY - size.height - 4 : edgeY + 4, w: size.width, h: size.height };
|
|
1598
|
-
}, rowFont = !insideFont && valueRowCrowded(texts.map(outerSeat(strongFont))) ? stepDownFont(env.theme, strongFont, "label", domain.options.target, textScaleOf(domain.options)) : void 0, outerFont = rowFont ?? strongFont,
|
|
1694
|
+
}, rowFont = !insideFont && valueRowCrowded(texts.map(outerSeat(strongFont))) ? stepDownFont(env.theme, strongFont, "label", domain.options.target, textScaleOf(domain.options)) : void 0, outerFont = rowFont ?? strongFont, crowded = !insideFont && valueRowCrowded(texts.map(outerSeat(outerFont))), thinned = crowded && domain.columns.length > 1, drawnTotals = domain.cats.flatMap((c, ci) => texts[ci] === null || texts[ci] === void 0 ? [] : [{ ci, v: domain.stackTotals[c.id] ?? 0 }]), extremeTotals = new Set(!crowded || !domain.lineFloat || drawnTotals.length < 3 ? [] : [
|
|
1695
|
+
drawnTotals.reduce((a, b) => b.v > a.v ? b : a).ci,
|
|
1696
|
+
drawnTotals.reduce((a, b) => b.v < a.v ? b : a).ci
|
|
1697
|
+
]), shiftedTop = (ci) => {
|
|
1599
1698
|
let above = posTop[ci] > 0 || negBot[ci] === 0, h = env.measure(texts[ci], outerFont).height;
|
|
1600
1699
|
return above ? y(posTop[ci]) - 2 * h - 8 : y(negBot[ci]) + h + 8;
|
|
1601
1700
|
}, apart = (ci) => [ci - 1, ci + 1].every((n) => {
|
|
@@ -1613,7 +1712,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1613
1712
|
return v !== null && (above ? v > 0 : v < 0);
|
|
1614
1713
|
});
|
|
1615
1714
|
return top === void 0 ? 0 : Math.abs(y(top.vals[ci].v) - y(0));
|
|
1616
|
-
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, named = { noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})` };
|
|
1715
|
+
})(), inside = (dy, slot) => insideDepth >= tsize.height + dy ? { ...at(slot, above ? edgeY + dy : edgeY - tsize.height - dy, 2), ...paints.top(ci, above) } : void 0, curveStartsOnTop = ci === 0 && shares && lineYs(ci).some((ly) => Math.abs(ly - edgeY) < 0.5), leftX = cx - LEFT_SEAT_AIR - (curveStartsOnTop ? 2.75 : 0) - tsize.width, leftSeat = ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && leftX >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: leftX, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : [], lift = curveStartsOnTop && above ? clearLift({ ...at("aboveStack", edgeY - tsize.height - 4, 0).rect }, strokes, 2 * tsize.height + 4) : void 0, liftedSeat = lift !== void 0 && lift >= 2.75 ? [at("aboveStackLifted", edgeY - tsize.height - 4 - lift - 2, 1)] : [], named = { noteText: `${domain.columns.length === 1 ? noteName(domain.columns[0]) : chartString(domain.options, "total")} ${text}${words ? ` ${words.lines[1]}` : ""} (${noteName(c)})` };
|
|
1617
1716
|
if (insideFont && above && edgeY + 4 + tsize.height <= y(0)) {
|
|
1618
1717
|
requests.push({
|
|
1619
1718
|
id: `grandTotal:${c.id}`,
|
|
@@ -1629,7 +1728,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1629
1728
|
font: insideFont,
|
|
1630
1729
|
fontStep: insideFont,
|
|
1631
1730
|
priority: PRIORITY.grandTotal + (env.highlights.has(c.id) ? PRIORITY.highlightBonus : 0),
|
|
1632
|
-
candidates: [{ ...at("insideTop", edgeY + 4, 0), ...paints.top(ci, !0) }]
|
|
1731
|
+
candidates: [{ ...at("insideTop", edgeY + 4, 0), ...paints.top(ci, !0), overValueLines: !0 }]
|
|
1633
1732
|
});
|
|
1634
1733
|
return;
|
|
1635
1734
|
}
|
|
@@ -1648,18 +1747,15 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1648
1747
|
font: outerFont,
|
|
1649
1748
|
...rowFont ? { fontStep: rowFont } : {},
|
|
1650
1749
|
...thinned && ci % 2 !== (domain.cats.length - 1) % 2 && !env.highlights.has(c.id) ? { redundant: !0, suppressedAs: "density", owed: !0 } : {},
|
|
1651
|
-
priority: PRIORITY.grandTotal + (env.highlights.has(c.id) ? PRIORITY.highlightBonus : 0),
|
|
1750
|
+
priority: PRIORITY.grandTotal + (env.highlights.has(c.id) ? PRIORITY.highlightBonus : 0) + (extremeTotals.has(ci) ? EXTREME_TOTAL_BONUS : 0),
|
|
1652
1751
|
candidates: nearestOwnMarkFirst(
|
|
1653
1752
|
[
|
|
1654
1753
|
// An average marker across this seat does not move the total: it
|
|
1655
1754
|
// crosses the rule on a halo, as on column.
|
|
1656
1755
|
{ ...at(above ? "aboveStack" : "belowStack", above ? edgeY - tsize.height - 4 : edgeY + 4, 0), ...crossesRules ? { overRules: !0 } : {} },
|
|
1756
|
+
...curveStartsOnTop ? [...leftSeat, ...liftedSeat] : [],
|
|
1657
1757
|
{ ...shiftedClear(at(above ? "aboveStackShifted" : "belowStackShifted", above ? edgeY - 2 * tsize.height - 8 : edgeY + tsize.height + 8, 1), ci), ...crossesRules ? { overRules: !0 } : {} },
|
|
1658
|
-
|
|
1659
|
-
// the total then stands left of the line's start, level with its usual seat (pareto at 320: '120').
|
|
1660
|
-
// Only the first column (left of any other the total would stand over its neighbour), and only
|
|
1661
|
-
// one too narrow to hold its total inside.
|
|
1662
|
-
...ci === 0 && tsize.width + 4 > band.bandwidth && strokes.length > 0 && above && cx - LEFT_SEAT_AIR - tsize.width >= LEFT_SEAT_MIN_X ? [{ slot: "aboveStackLeft", rect: { x: cx - LEFT_SEAT_AIR - tsize.width, y: edgeY - tsize.height - 4, w: tsize.width, h: tsize.height }, penalty: 2 }] : []
|
|
1758
|
+
...curveStartsOnTop ? [] : leftSeat
|
|
1663
1759
|
],
|
|
1664
1760
|
edgeY,
|
|
1665
1761
|
lineYs(ci),
|
|
@@ -1671,7 +1767,7 @@ function grandTotalLabels(env, domain, area, paints, requests, lineYs, strokes =
|
|
|
1671
1767
|
});
|
|
1672
1768
|
});
|
|
1673
1769
|
}
|
|
1674
|
-
var LEFT_SEAT_AIR = 6, LEFT_SEAT_MIN_X = 8;
|
|
1770
|
+
var EXTREME_TOTAL_BONUS = 50, LEFT_SEAT_AIR = 6, LEFT_SEAT_MIN_X = 8;
|
|
1675
1771
|
function referenceLabels(env, domain, area, requests) {
|
|
1676
1772
|
let content = contentOf(domain, "tick", ["absolute", "series"]);
|
|
1677
1773
|
if (!content) return;
|
|
@@ -1705,7 +1801,7 @@ function referenceLabels(env, domain, area, requests) {
|
|
|
1705
1801
|
function nearestOwnMarkFirst(outer, edgeY, lineYs, inside, tieIsOwn, insideLast) {
|
|
1706
1802
|
let own = (c) => {
|
|
1707
1803
|
let cy = c.rect.y + c.rect.h / 2;
|
|
1708
|
-
return lineYs.every((ly) =>
|
|
1804
|
+
return lineYs.every((ly) => Math.abs(ly - edgeY) < 0.5 ? tieIsOwn : Math.abs(cy - ly) > Math.abs(cy - edgeY));
|
|
1709
1805
|
};
|
|
1710
1806
|
return [
|
|
1711
1807
|
...outer.filter(own),
|
|
@@ -1732,7 +1828,7 @@ function categoryLabels(domain, area, requests) {
|
|
|
1732
1828
|
// A stride-hidden date label is the row's decision (one info lint), not a loss.
|
|
1733
1829
|
redundant: !catPlan.keep[ci],
|
|
1734
1830
|
...rotated ? { rotate: catPlan.rotation === 90 ? -90 : -45 } : {},
|
|
1735
|
-
candidates: catPlan.rotation === 90 ? [{ slot: "below", rect: verticalNameRect(band.center(ci), area.catRowY, info.w, catPlan.font), penalty: 0 }] : rotated ? [{ slot: "below", rect: rotatedClaimRect(band.center(ci), area.catRowY + Math.max(8, info.h * Math.SQRT1_2 / 2 + ROTATED_NAME_AIR), info.h), penalty: 0 }] : [
|
|
1831
|
+
candidates: catPlan.rotation === 90 ? [{ slot: "below", rect: verticalNameRect(band.center(ci), area.catRowY, info.w, catPlan.font, info.lines.length), penalty: 0 }] : rotated ? [{ slot: "below", rect: rotatedClaimRect(band.center(ci), area.catRowY + Math.max(8, info.h * Math.SQRT1_2 / 2 + ROTATED_NAME_AIR), info.h), penalty: 0 }] : [
|
|
1736
1832
|
at("below", area.catRowY + 6, 0),
|
|
1737
1833
|
// A date/numeric tick row is ONE row, never the stagger tier.
|
|
1738
1834
|
...dateNumericTicks ? [] : [at("belowShifted", area.catRowY + 6 + gtH + 4, 1)]
|
|
@@ -1741,7 +1837,7 @@ function categoryLabels(domain, area, requests) {
|
|
|
1741
1837
|
}), pushAll(requests, yearRowRequests(catPlan, area.catRowY + 6));
|
|
1742
1838
|
}
|
|
1743
1839
|
function linePointLabels(env, domain, area, geometry, requests, strokes, fills) {
|
|
1744
|
-
let { labelFont, frame } = area, labelH = env.measure("0", labelFont).height, mode = comboValueLabels(domain.options, domain.anatomy, domain.cats.length), content = mode === "all" || mode === "extremes" ? contentOf(domain, "point", ["absolute"]) : null, flaggedContent = contentOf(domain, "point", ["absolute"]), anomaly = domain.anomaly, flaggedAt = (s, ci) => anomaly?.seriesId === s.id && anomaly.model.flagByCategory.has(domain.cats[ci].id), strokesOf = new Map(geometry.plans.map((plan) => [plan.s.id, plan.runs.filter((run) => run.length > 0).map((run) => drawnStroke(run, plan.interpolation))])), queriesOf = new Map([...strokesOf.values()].flat().map((stroke) => [stroke, preparePolyline(stroke)]));
|
|
1840
|
+
let { labelFont, frame } = area, labelH = env.measure("0", labelFont).height, mode = comboValueLabels(domain.options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), content = mode === "all" || mode === "extremes" ? contentOf(domain, "point", ["absolute"]) : null, flaggedContent = contentOf(domain, "point", ["absolute"]), anomaly = domain.anomaly, flaggedAt = (s, ci) => anomaly?.seriesId === s.id && anomaly.model.flagByCategory.has(domain.cats[ci].id), strokesOf = new Map(geometry.plans.map((plan) => [plan.s.id, plan.runs.filter((run) => run.length > 0).map((run) => drawnStroke(run, plan.interpolation))])), queriesOf = new Map([...strokesOf.values()].flat().map((stroke) => [stroke, preparePolyline(stroke)]));
|
|
1745
1841
|
for (let { s, pts } of geometry.plans) {
|
|
1746
1842
|
let own = strokesOf.get(s.id), others = [...strokesOf].flatMap(([id, runs]) => id === s.id ? [] : runs), ownQueries = own.map((stroke) => queriesOf.get(stroke)), otherQueries = others.map((stroke) => queriesOf.get(stroke)), values = pts.map((point) => s.vals[point.ci].v), [min, max] = [minOf(values), maxOf(values)];
|
|
1747
1843
|
for (let point of pts) {
|
|
@@ -1821,11 +1917,14 @@ function applyGrowthInk(labels, area) {
|
|
|
1821
1917
|
}
|
|
1822
1918
|
}
|
|
1823
1919
|
function planComboLabels(env, domain, area, geometry, paints, warnings) {
|
|
1824
|
-
let { frame, labelFont, band } = area, rightAxisActive = domain.rightTicks.length > 0,
|
|
1920
|
+
let { frame, labelFont, band } = area, rightAxisActive = domain.rightTicks.length > 0, anchored = anchorComboAxisTitles(area.axisTitles, {
|
|
1825
1921
|
left: Number.isFinite(geometry.leftTickX) ? geometry.leftTickX : void 0,
|
|
1826
1922
|
right: rightAxisActive ? area.rightTickX + area.rightAxisReserve - 10 : void 0,
|
|
1827
1923
|
rightStart: rightAxisActive ? area.rightTickX : void 0
|
|
1828
|
-
}, frame.plot)
|
|
1924
|
+
}, frame.plot), bandTop = domain.lineFloat && domain.showPrimaryAxis ? area.y(domain.pticks[domain.pticks.length - 1]) - env.measure("0", area.tickFont).height / 2 : void 0, requests = anchored.map((request) => {
|
|
1925
|
+
let first = request.candidates[0];
|
|
1926
|
+
return bandTop === void 0 || request.id !== "axis:primary:title" || area.axisTitles.swatches.has(request.id) || !first ? request : { ...request, candidates: [{ ...first, slot: "overBand", rect: { ...first.rect, y: bandTop - 4 - first.rect.h } }, ...request.candidates] };
|
|
1927
|
+
});
|
|
1829
1928
|
segmentLabels(env, domain, area, geometry, paints, requests, warnings);
|
|
1830
1929
|
let strokes = comboStrokes(geometry).map(preparePolyline), lineYsByCat;
|
|
1831
1930
|
grandTotalLabels(env, domain, area, paints, requests, (ci) => {
|
|
@@ -1878,7 +1977,20 @@ function comboAxes(ctx) {
|
|
|
1878
1977
|
let { env, domain, area, g } = ctx, { plot, y, y0 } = area, tickFont = secondaryFont(env.theme), { nodes, claims } = g, primaryDrawn;
|
|
1879
1978
|
if (domain.showPrimaryAxis) {
|
|
1880
1979
|
let axisResult = layoutValueAxis(
|
|
1881
|
-
{
|
|
1980
|
+
{
|
|
1981
|
+
scale: y,
|
|
1982
|
+
plot,
|
|
1983
|
+
orient: "y",
|
|
1984
|
+
gridlines: domain.options.valueAxis?.gridlines ?? domain.anatomy,
|
|
1985
|
+
format: domain.fmt,
|
|
1986
|
+
formatSpec: domain.valueSpec,
|
|
1987
|
+
theme: env.theme,
|
|
1988
|
+
measure: env.measure,
|
|
1989
|
+
ticks: domain.pticks,
|
|
1990
|
+
// A Pareto scaled to its total reads its top row as the total and 100%: thinning keeps that row.
|
|
1991
|
+
// Under a floated line the top tick marks the top of the column band: thinning keeps it.
|
|
1992
|
+
...domain.options[SECONDARY_FULL_DOMAIN] && Math.abs(domain.pticks.at(-1) - domain.dHi) < 1e-9 || domain.lineFloat ? { keepTopTick: !0 } : {}
|
|
1993
|
+
},
|
|
1882
1994
|
claims
|
|
1883
1995
|
);
|
|
1884
1996
|
pushAll(nodes, axisResult.nodes), g.axes.push(axisResult.axis), primaryDrawn = new Set(axisResult.axis.ticks.flatMap((t) => typeof t.at == "number" ? [t.at] : [])), g.leftTickX = minOf(axisResult.nodes.map((node) => node.t === "text" ? node.x : 1 / 0));
|
|
@@ -1911,7 +2023,7 @@ function comboAxes(ctx) {
|
|
|
1911
2023
|
by ? (claims.claim(rect, "annotation", { annotationId: by.id }), g.yieldingTicks.push({ labelId, annotationId: by.id, rect })) : claims.claim(rect, "axis", {}), axis2.ticks.push({ at: tv, pos, labelId });
|
|
1912
2024
|
}), g.axes.push(axis2);
|
|
1913
2025
|
}
|
|
1914
|
-
nodes.push({ t: "line", id: "axis:baseline", x1: plot.x, y1: y0, x2: plot.x + plot.w, y2: y0, stroke: { token: "axis" }, width: strokeToken(env.theme, "rule"), owner: {}, part: "baseline" }), claims.claim({ x: plot.x, y: y0 - 0.5, w: plot.w, h: 1 }, "axis", {});
|
|
2026
|
+
nodes.push({ t: "line", id: "axis:baseline", x1: plot.x, y1: y0, x2: plot.x + plot.w, y2: y0, stroke: { token: "axis" }, width: strokeToken(env.theme, "rule"), owner: {}, part: "baseline" }), claims.claim({ x: plot.x, y: y0 - 0.5, w: plot.w, h: 1 }, "axis", {}), area.intervalTicks && area.showCatTickRow && bandedIntervalTicks(env.theme, domain.cats, area.intervalTicks, (ci) => area.band.center(ci), area.catRowY, nodes, claims);
|
|
1915
2027
|
}
|
|
1916
2028
|
function columnMarks(ctx) {
|
|
1917
2029
|
let { env, domain, area, paints, g } = ctx, { cats, columns, refs } = domain, { band, y } = area, { nodes, claims } = g;
|
|
@@ -2189,7 +2301,7 @@ function annotateCombo(env, domain, area, geometry, occupied, solveCtx, labelReq
|
|
|
2189
2301
|
}
|
|
2190
2302
|
if (columns.length === 0) return null;
|
|
2191
2303
|
let topPlotted = domain.posTop[ci] > 0 ? domain.posTop[ci] : domain.negBot[ci];
|
|
2192
|
-
return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...domain.columnsAdd
|
|
2304
|
+
return { x: band.center(ci), y: norm.edge === "start" ? y0 : y(topPlotted), value: domain.stackTotals[c.id], format: columns.length === 1 ? columns[0].format : void 0, ...noTotal(domain.columnsAdd, domain.anyByCat[ci]), date: c.date, label: c.label, owner: { categoryId: c.id } };
|
|
2193
2305
|
}, lift = area.topPad - area.axisTitles.height - 8, annPlot = { x: plot.x, y: plot.y - lift, w: plot.w, h: plot.h + lift }, ceilingRects = [
|
|
2194
2306
|
...area.axisTitles.height > 0 ? [{ x: area.frame.plot.x, y: area.frame.plot.y, w: area.frame.plot.w, h: area.axisTitles.height }] : [],
|
|
2195
2307
|
...area.valueLineRows.values()
|
|
@@ -2260,12 +2372,12 @@ function assembleComboGeometry(input) {
|
|
|
2260
2372
|
columns.length > 0 ? chartString2(domain.options, "stackedColumnSeriesDesc", { v1: columns.length, v2: columns.map((s) => s.label).join(", ") }) : "",
|
|
2261
2373
|
lines.length > 0 ? chartString2(domain.options, "lineAreaSeriesDesc", { v1: lines.length, v2: lines.map((s) => s.label).join(", ") }) : "",
|
|
2262
2374
|
refs.length > 0 ? chartString2(domain.options, "referenceSeriesCount", { v1: refs.length }) : ""
|
|
2263
|
-
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c) => `${c.label ?? c.id} ${fmt(stackTotals[c.id])}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.scaleFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
|
|
2375
|
+
].filter(Boolean).join(chartString2(domain.options, "plusClause")), totalsAdd = columns.length > 0 && domain.columnsAdd, a11yDesc = chartString2(domain.options, "comboDescStart", { v1: cats.length, v2: partsDesc }) + (domain.secondaryActive ? chartString2(domain.options, "secondaryAxisDesc") : "") + (totalsAdd ? chartString2(domain.options, "columnTotalsSentence", { v1: cats.map((c, ci) => `${c.label ?? c.id} ${domain.anyByCat[ci] ? fmt(stackTotals[c.id]) : NOT_AVAILABLE}`).join(", ") }) : ".") + anomalyA11y({ options: domain.options, anomaly: domain.anomaly, fmt: domain.anomaly ? domain.scaleFmtOf(domain.lines.find((s) => s.id === domain.anomaly.seriesId)) : fmt, cats }), paintWarningRules = [];
|
|
2264
2376
|
pushAll(warnings, rectSeriesAdjacentWarnings(nodes, input.paints.css, "vertical", env.highlights, env.theme, { rules: paintWarningRules, before: warnings.filter((warning) => !["pie-ramp-crowded", "likert-ramp-invisible", "band-lightness-insufficient", "series-adjacent-similar", "highlight-reads-as-loss"].includes(warning.code)).length }));
|
|
2265
|
-
let catTickMaxLines = catPlan.maxLines, clearance = domain.options[LINE_BAND_CLEARANCE];
|
|
2377
|
+
let catTickMaxLines = catPlan.maxLines, clearance = domain.options[LINE_BAND_CLEARANCE], floatClearance = domain.options[FLOAT_BAND_CLEARANCE];
|
|
2266
2378
|
return {
|
|
2267
2379
|
type: "combo",
|
|
2268
|
-
...clearance === void 0 ? {} : { [DENSITY_LAYOUT_OPTIONS]: { [LINE_BAND_CLEARANCE]: clearance } },
|
|
2380
|
+
...clearance === void 0 ? {} : { [DENSITY_LAYOUT_OPTIONS]: { [LINE_BAND_CLEARANCE]: clearance, [FLOAT_BAND_CLEARANCE]: floatClearance } },
|
|
2269
2381
|
size: env.size,
|
|
2270
2382
|
// Bands stretch to the frame, so the layout reports the width its
|
|
2271
2383
|
// categories actually want and a host can shrink the canvas to it.
|
|
@@ -2370,10 +2482,10 @@ function layoutComboFramePass(data, options, gutterOverride, env, domain, paints
|
|
|
2370
2482
|
warnings
|
|
2371
2483
|
}), settled = settle(), area = settled.area;
|
|
2372
2484
|
if (options[LINE_BAND_CLEARANCE] === void 0) {
|
|
2373
|
-
let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0,
|
|
2485
|
+
let scaleH = area.y(domain.dLo) - area.y(domain.dHi), mode = comboValueLabels(options, domain.anatomy, domain.cats.length, domain.lineFloat !== void 0), interiorValues = mode === "all" || mode === "extremes" || domain.anomaly !== void 0, insideTotals = domain.anatomy && domain.columns.length === 1 && !domain.anomaly && domain.cats.every((c) => env.measure(domain.fmt(domain.stackTotals[c.id] ?? 0), area.labelFont).width + 4 <= area.band.bandwidth), anomalyRoom = domain.anomaly ? ANOMALY_FLAG_GAP + ANOMALY_FLAG_H : 0, valueRow = env.measure("0", area.labelFont).height + 14, clearance = (insideTotals ? 2.75 + 8 : area.gtH + (interiorValues ? valueRow : 8)) + anomalyRoom, floatClearance = (insideTotals ? 2.75 + 8 : area.gtH) + valueRow + anomalyRoom;
|
|
2374
2486
|
if (scaleH > 0 && domain.secondaryActive && domain.columns.length > 0) {
|
|
2375
|
-
let measured = clearance / scaleH, next = domain.withLineBandClearance?.(measured);
|
|
2376
|
-
options = { ...options, [LINE_BAND_CLEARANCE]: measured }, next && (domain = next.domain, domainWarnings = next.warnings, warnings.length = 0, pushAll(warnings, domainWarnings)), domain.options = { ...domain.options, [LINE_BAND_CLEARANCE]: measured }, next && (settled = settle(), area = settled.area);
|
|
2487
|
+
let measured = clearance / scaleH, floatMeasured = floatClearance / scaleH, next = domain.withLineBandClearance?.(measured, floatMeasured);
|
|
2488
|
+
options = { ...options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (domain = next.domain, domainWarnings = next.warnings, warnings.length = 0, pushAll(warnings, domainWarnings)), domain.options = { ...domain.options, [LINE_BAND_CLEARANCE]: measured, [FLOAT_BAND_CLEARANCE]: floatMeasured }, next && (settled = settle(), area = settled.area);
|
|
2377
2489
|
}
|
|
2378
2490
|
}
|
|
2379
2491
|
let occupied = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height });
|