boardplot 0.58.1 → 0.59.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 +67 -0
- package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
- package/dist/{annotateEngine-57L26X77.js → annotateEngine-DL4KRQ6B.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-54YO56IK.js → chunk-25JXYOSX.js} +1 -1
- package/dist/{chunk-HF4BCPIV.js → chunk-266ENWFM.js} +3 -3
- package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
- package/dist/{chunk-2DS4MT7T.js → chunk-2GVW5WDD.js} +3 -3
- package/dist/{chunk-4ROZ4TFL.js → chunk-2HRDOBPS.js} +1 -1
- package/dist/chunk-2Q7IAWON.js +18 -0
- package/dist/{chunk-PVGJM2HP.js → chunk-33SPSKTP.js} +4 -4
- package/dist/{chunk-Z6DUNKFU.js → chunk-3JG764MI.js} +688 -140
- package/dist/{chunk-OZLKEBCD.js → chunk-3V7Y7CHI.js} +1 -1
- package/dist/{chunk-3BMPYY26.js → chunk-3WC2TA6C.js} +4 -4
- package/dist/{chunk-T7PRG6AO.js → chunk-3WFJDXZO.js} +3 -3
- package/dist/{chunk-5KAYLRRP.js → chunk-3ZR7ZE64.js} +2 -2
- package/dist/{chunk-WW4KLAVO.js → chunk-4DLIXTDH.js} +5 -5
- package/dist/{chunk-OQUH7I5T.js → chunk-4EEK4AMC.js} +2 -2
- package/dist/{chunk-RLH2CQCD.js → chunk-4LCQO46F.js} +144 -55
- package/dist/{chunk-SHYS52VO.js → chunk-4NIIQFDA.js} +147 -104
- package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
- package/dist/{chunk-645BGVPP.js → chunk-4WH2YGO6.js} +3 -3
- package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
- package/dist/{chunk-LYAT62UT.js → chunk-4YZQY3AA.js} +1 -1
- package/dist/{chunk-VJULLJLN.js → chunk-56CDMSE5.js} +2 -2
- package/dist/{chunk-SBKM6XFS.js → chunk-5AXWSGS7.js} +3 -3
- package/dist/{chunk-XZXZNI7A.js → chunk-5HOIOQK3.js} +1 -1
- package/dist/{chunk-ERDKMZ7O.js → chunk-5OV7VOGV.js} +2 -2
- package/dist/{chunk-AICO24HJ.js → chunk-5QMM354E.js} +6 -5
- package/dist/{chunk-USMKNNOU.js → chunk-5UXK5BAA.js} +37 -38
- package/dist/{chunk-ZB3JIL3L.js → chunk-5YULK4DY.js} +6 -10
- package/dist/{chunk-63JUV7NR.js → chunk-5ZE7SHRM.js} +3 -3
- package/dist/{chunk-SCAYWQZK.js → chunk-67744WKZ.js} +1 -1
- package/dist/{chunk-IFUAPFL5.js → chunk-6CZGFTGK.js} +51 -47
- package/dist/{chunk-7YZZCQT3.js → chunk-6IIYLDSQ.js} +3 -3
- package/dist/{chunk-JBAVMO56.js → chunk-6TH5NVKS.js} +19 -14
- package/dist/{chunk-I5VNHDPR.js → chunk-6TZDPQDE.js} +2 -2
- package/dist/{chunk-TMEUK2WS.js → chunk-77L6QGIG.js} +1 -1
- package/dist/{chunk-OS7C2KMQ.js → chunk-7IONS4Z7.js} +3 -3
- package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
- package/dist/{chunk-KI7VCHNZ.js → chunk-7SIZGM5S.js} +78 -53
- package/dist/{chunk-G7BCLYL4.js → chunk-7TZIPGFH.js} +8 -6
- package/dist/{chunk-76GPN6AT.js → chunk-7UUSHA7H.js} +1 -1
- package/dist/{chunk-OZA7HA6L.js → chunk-7UZUXPFM.js} +1 -1
- package/dist/{chunk-4DK67I3B.js → chunk-7YJSSPQX.js} +31 -28
- package/dist/{chunk-TBZT5WUT.js → chunk-7ZXIHEZS.js} +4 -4
- package/dist/{chunk-IMUMPKXF.js → chunk-A3SOYL6F.js} +3 -3
- package/dist/{chunk-P3NMDPDP.js → chunk-ADLKZEML.js} +31 -64
- package/dist/{chunk-SKPOXLG5.js → chunk-AFQZBCME.js} +4 -4
- package/dist/{chunk-TVOMGNFQ.js → chunk-AGR4VJ2Y.js} +1 -1
- package/dist/{chunk-2HII2B6S.js → chunk-AH2L44TR.js} +3 -3
- package/dist/{chunk-WFBN2HXR.js → chunk-AIPOSNVG.js} +1 -1
- package/dist/{chunk-4OJF6DXL.js → chunk-AUSZDYGE.js} +9 -7
- package/dist/{chunk-2SWSUNA4.js → chunk-AVYRC2T3.js} +50 -28
- package/dist/{chunk-NSMYIUBZ.js → chunk-B5FT4YAX.js} +1 -1
- package/dist/{chunk-H3VICNTN.js → chunk-B7UWG6XJ.js} +1 -1
- package/dist/{chunk-X3QUASBR.js → chunk-BJJYNTVJ.js} +1 -1
- package/dist/{chunk-WKXLJNHW.js → chunk-BOUZKVIY.js} +17 -19
- package/dist/{chunk-WUP6C4ZD.js → chunk-BXZNLMMH.js} +1 -1
- package/dist/{chunk-OMNB27GM.js → chunk-C26Z5AEW.js} +3 -3
- package/dist/{chunk-VC62V7CX.js → chunk-CV5KCQD3.js} +72 -79
- package/dist/{chunk-RPGEB3Z5.js → chunk-CX7WUNMO.js} +22 -18
- package/dist/{chunk-YJUBX3QF.js → chunk-DANKUHCX.js} +41 -40
- package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
- package/dist/{chunk-6ALORYH7.js → chunk-DEJ27Y2P.js} +138 -91
- package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
- package/dist/{chunk-IXU5C3YY.js → chunk-DO7MMF4C.js} +86 -43
- package/dist/{chunk-I52OMC5B.js → chunk-DUDVHQD6.js} +7 -7
- package/dist/{chunk-4TUU3UGY.js → chunk-DXLWMK24.js} +3 -3
- package/dist/{chunk-MALSSEXO.js → chunk-DYD7W3Y6.js} +20 -21
- package/dist/{chunk-P5RCP4NK.js → chunk-DZBT7AWJ.js} +2 -2
- package/dist/{chunk-YLRAAJYV.js → chunk-E4KHHC46.js} +16 -16
- package/dist/{chunk-KUWIRCYJ.js → chunk-E62SXDRT.js} +2 -2
- package/dist/{chunk-WOICFLOJ.js → chunk-EADD6NNQ.js} +73 -79
- package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
- package/dist/{chunk-HM4AJ5U4.js → chunk-EJA5EANI.js} +47 -26
- package/dist/{chunk-NFGV5OAR.js → chunk-EWGFOEJB.js} +126 -65
- package/dist/{chunk-Y6E4JU3U.js → chunk-EWMPUCIG.js} +37 -37
- package/dist/{chunk-GB3RZYTK.js → chunk-EZ5KUBYF.js} +38 -27
- package/dist/{chunk-M5LPP2GQ.js → chunk-F2N5BUBK.js} +12 -13
- package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
- package/dist/{chunk-C4SQU2PB.js → chunk-FB36HSY2.js} +4 -4
- package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
- package/dist/{chunk-XSC4IXXC.js → chunk-FMVXXKSW.js} +3 -3
- package/dist/{chunk-3ESWPMDW.js → chunk-FP3ORYCG.js} +22 -21
- package/dist/{chunk-P6DEFCMQ.js → chunk-FWPPZB4G.js} +2 -2
- package/dist/{chunk-MSYTF3DZ.js → chunk-FYFXOLWI.js} +116 -89
- package/dist/{chunk-SH4UGK5U.js → chunk-GDE2JINW.js} +11 -11
- package/dist/{chunk-WDJSDJLV.js → chunk-GEEHXLFQ.js} +7 -6
- package/dist/{chunk-EDW5HQND.js → chunk-GGFT6IIM.js} +3 -3
- package/dist/{chunk-UBYDY4B7.js → chunk-GIJM4MP4.js} +5 -5
- package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
- package/dist/{chunk-CFESVCZR.js → chunk-GSHRYDJM.js} +1 -1
- package/dist/{chunk-3M2F7KSS.js → chunk-GWDKUKOJ.js} +96 -321
- package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
- package/dist/{chunk-OUR5ZHCB.js → chunk-HBKZC5BH.js} +2 -2
- package/dist/{chunk-23FT7RLN.js → chunk-HC4UW7MB.js} +4 -4
- package/dist/{chunk-AMBQ6SWU.js → chunk-HFDU2E7C.js} +27 -21
- package/dist/{chunk-ZG4BMJRL.js → chunk-HW67YGJC.js} +1 -1
- package/dist/{chunk-FJNZ7NWD.js → chunk-I65BCUVH.js} +3 -3
- package/dist/{chunk-VTY6YHQZ.js → chunk-ICERP2YF.js} +3 -3
- package/dist/{chunk-G7CXJPEN.js → chunk-ICJUN47O.js} +2 -2
- package/dist/{chunk-H4EDDGGX.js → chunk-ID5PE4KM.js} +3 -3
- package/dist/{chunk-BQ7SN7AW.js → chunk-IDJVUZAA.js} +3 -3
- package/dist/{chunk-O3LT4TAI.js → chunk-IQRRT32Q.js} +2 -2
- package/dist/{chunk-WGJIYFVQ.js → chunk-ISMFUWOP.js} +3 -3
- package/dist/{chunk-6AVUTZ6W.js → chunk-IX2SLULO.js} +3 -3
- package/dist/{chunk-Q2I3QLE3.js → chunk-IXZI4SN4.js} +116 -46
- package/dist/chunk-J6LGZPKI.js +89 -0
- package/dist/{chunk-CCAAI56H.js → chunk-JF743NNC.js} +7 -0
- package/dist/{chunk-YGWPOYDE.js → chunk-JIB74SQS.js} +6 -6
- package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
- package/dist/{chunk-V7JFT7NQ.js → chunk-JRM22ULA.js} +54 -45
- package/dist/{chunk-XSEETONJ.js → chunk-JYSS5ZZF.js} +5 -5
- package/dist/{chunk-WLH5IBFY.js → chunk-KRIYGX3N.js} +3 -3
- package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
- package/dist/{chunk-6YBNVI5I.js → chunk-LADFOYH7.js} +40 -27
- package/dist/{chunk-VKNQOSGW.js → chunk-LC4KDLUE.js} +3 -3
- package/dist/{chunk-ITEJQHXE.js → chunk-LLECS747.js} +4 -4
- package/dist/{chunk-JYSFAH7C.js → chunk-LM4GVVPM.js} +16 -10
- package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
- package/dist/{chunk-ZBCCJPGW.js → chunk-M2FF4IPF.js} +16 -7
- package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
- package/dist/{chunk-BHLNSJG7.js → chunk-MOBRWYUQ.js} +2 -2
- package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
- package/dist/{chunk-MGXHFRQK.js → chunk-MTOBNHAU.js} +2 -2
- package/dist/{chunk-DORE2RHL.js → chunk-MYBBZNYN.js} +2 -2
- package/dist/{chunk-V7NUJEJE.js → chunk-MZCJ22O4.js} +1 -1
- package/dist/{chunk-W2QILXAL.js → chunk-NIL6TYAN.js} +4 -4
- package/dist/{chunk-YW35KSXR.js → chunk-NPDF7HEH.js} +2 -2
- package/dist/{chunk-SH4FLUAD.js → chunk-NUASZPS7.js} +1 -1
- package/dist/{chunk-Z62TJQO5.js → chunk-NWUEA42V.js} +3 -3
- package/dist/{chunk-UOOXWGBU.js → chunk-NZGQLR4X.js} +8 -8
- package/dist/{chunk-RQKDEJFQ.js → chunk-O32L5FK2.js} +3 -3
- package/dist/{chunk-OUNYHYJL.js → chunk-O623CYPA.js} +3 -3
- package/dist/{chunk-OELB7MTE.js → chunk-OJR5GPCN.js} +3 -3
- package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
- package/dist/{chunk-6NGKQNTB.js → chunk-OM5MAJST.js} +68 -57
- package/dist/{chunk-AAQWFTDM.js → chunk-OTOASFG4.js} +92 -35
- package/dist/{chunk-6JTCFPAD.js → chunk-P3N74SZ5.js} +3 -3
- package/dist/{chunk-CKEFAD4R.js → chunk-PHQGGR5O.js} +3 -3
- package/dist/{chunk-DUOGEFLG.js → chunk-POHML4N4.js} +107 -50
- package/dist/{chunk-KVBLTAO7.js → chunk-PP23D6QV.js} +4 -5
- package/dist/{chunk-F2ET5ZTT.js → chunk-PPOUKS24.js} +0 -1
- package/dist/{chunk-V7FV66KL.js → chunk-PRVX4PAO.js} +1 -1
- package/dist/{chunk-JY4LTPOV.js → chunk-PSUSHJFV.js} +1 -1
- package/dist/{chunk-AJGSCVVW.js → chunk-PZZAVTLQ.js} +2 -2
- package/dist/{chunk-R5SGE2NS.js → chunk-QDFX2KAP.js} +2 -2
- package/dist/{chunk-XC32OSCD.js → chunk-QKDDGDRF.js} +10 -10
- package/dist/{chunk-U6QZOMYC.js → chunk-QM6IW5BL.js} +3 -3
- package/dist/chunk-QMQZC2KW.js +408 -0
- package/dist/{chunk-42QKUSHJ.js → chunk-QXHFELIA.js} +1 -1
- package/dist/{chunk-JNDWRV34.js → chunk-R2RLERPT.js} +1 -1
- package/dist/{chunk-E5YF236N.js → chunk-R4MVXUAG.js} +1 -1
- package/dist/{chunk-XZOFKLTD.js → chunk-REIIGIJG.js} +3 -3
- package/dist/{chunk-4M3UADCM.js → chunk-RF2REMRV.js} +6 -6
- package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
- package/dist/{chunk-TKH655ON.js → chunk-RLX6VODQ.js} +9 -2
- package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
- package/dist/{chunk-MVR7YKBF.js → chunk-RSDGBNXP.js} +5 -5
- package/dist/{chunk-QFNWGSCT.js → chunk-RYYB7REV.js} +3 -3
- package/dist/{chunk-LPMSGO7L.js → chunk-SBYKLBDV.js} +3 -3
- package/dist/{chunk-JT3UTEWZ.js → chunk-SDAVHADX.js} +2 -2
- package/dist/{chunk-AQ2PQ7FK.js → chunk-SE6LBMRJ.js} +137 -62
- package/dist/{chunk-3OSQ32GN.js → chunk-SFRMBCVY.js} +3 -3
- package/dist/{chunk-AGJ2QL4A.js → chunk-SNJ3FZXC.js} +14 -12
- package/dist/{chunk-USSG6TJV.js → chunk-SXCFMPNM.js} +3 -3
- package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
- package/dist/{chunk-QATOOZMH.js → chunk-T4CFY4YT.js} +4 -4
- package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
- package/dist/{chunk-BVIJCUWW.js → chunk-TCWJQIVQ.js} +123 -71
- package/dist/{chunk-VACZGW5R.js → chunk-TEZWFQB7.js} +7 -7
- package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
- package/dist/{chunk-MB5EX2YG.js → chunk-TMVERETB.js} +23 -332
- package/dist/{chunk-LOXZSTIM.js → chunk-TQFBLSZJ.js} +44 -27
- package/dist/{chunk-NT3HCXQC.js → chunk-U4WG46QP.js} +117 -43
- package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
- package/dist/{chunk-R3VSWOTI.js → chunk-UFGJNSSL.js} +1 -1
- package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
- package/dist/{chunk-LXH4RPY4.js → chunk-UI2MKLON.js} +1 -1
- package/dist/{chunk-3E6NLODZ.js → chunk-UKEI7JDA.js} +1 -1
- package/dist/{chunk-6JFQCVNN.js → chunk-USATDW6O.js} +1 -1
- package/dist/{chunk-CQBPNE7Z.js → chunk-UTWLJ6AZ.js} +6 -5
- package/dist/{chunk-NQPJWQTW.js → chunk-UV77Y7QK.js} +11 -5
- package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
- package/dist/{chunk-3RXUA6VY.js → chunk-UZDQFUHO.js} +3 -3
- package/dist/{chunk-AKZOQGF3.js → chunk-V3XYFLOZ.js} +3 -3
- package/dist/{chunk-OQQMDSCC.js → chunk-VGOZOBNB.js} +1 -1
- package/dist/{chunk-K7XPTQBJ.js → chunk-VHZ4MXJO.js} +1 -1
- package/dist/{chunk-EBWMTQ4U.js → chunk-VLMKGQ33.js} +13 -13
- package/dist/{chunk-34PKJZRY.js → chunk-VMLVZW4F.js} +39 -36
- package/dist/{chunk-65U6ZBZZ.js → chunk-VT6PDWUA.js} +78 -78
- package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
- package/dist/{chunk-33EBLJVZ.js → chunk-VVWTD4XP.js} +9 -9
- package/dist/{chunk-5CYLT6FJ.js → chunk-VZVPN7NT.js} +3 -3
- package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
- package/dist/{chunk-35ZJUZUO.js → chunk-W6NEWQZU.js} +20 -18
- package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
- package/dist/{chunk-P7UOOMXE.js → chunk-WTH3KQDM.js} +2 -2
- package/dist/{chunk-CSMVKG2C.js → chunk-WTWM4RK6.js} +1 -1
- package/dist/{chunk-W6XSIBLR.js → chunk-WZNO3LUF.js} +3 -3
- package/dist/{chunk-QQMESIDA.js → chunk-X3AMBFGF.js} +3 -3
- package/dist/{chunk-DHGE46UK.js → chunk-X725AGYP.js} +1 -1
- package/dist/{chunk-TX5FSNAU.js → chunk-XAH4EWJT.js} +1 -1
- package/dist/{chunk-4DMRIL5K.js → chunk-XETSLYFD.js} +3 -3
- package/dist/{chunk-6V3A3MTG.js → chunk-XFDNAR4S.js} +16 -27
- package/dist/{chunk-WMQ57FOP.js → chunk-XGTSZ7NC.js} +3 -3
- package/dist/{chunk-HAG3K6PQ.js → chunk-XHEG2BG6.js} +1 -1
- package/dist/{chunk-D2TQX7UJ.js → chunk-XLX3TUFO.js} +2 -2
- package/dist/{chunk-XLLWIHN2.js → chunk-XMII3G47.js} +3 -3
- package/dist/{chunk-BSZOQJXB.js → chunk-XRPZJDAK.js} +101 -72
- package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
- package/dist/{chunk-HO4ILCW7.js → chunk-XUGEYHOQ.js} +2 -2
- package/dist/{chunk-OO63YP35.js → chunk-XVFUJRRC.js} +1 -1
- package/dist/{chunk-IVDTP6SV.js → chunk-XWGAANY4.js} +3 -3
- package/dist/{chunk-IPZJCBWD.js → chunk-XWUHUTXX.js} +24 -18
- package/dist/{chunk-WNTUBGBB.js → chunk-XXYV5UEM.js} +50 -49
- package/dist/{chunk-7GRR72MY.js → chunk-XZBX6LIC.js} +20 -12
- package/dist/{chunk-ZDJ7C64T.js → chunk-Y4BJ7D5F.js} +1 -1
- package/dist/{chunk-KW4JXWHO.js → chunk-YDYZWCUQ.js} +1 -1
- package/dist/{chunk-ZCHKIR7C.js → chunk-YJN54OZS.js} +52 -41
- package/dist/{chunk-X46PSAJ7.js → chunk-YJXIHVNK.js} +2 -2
- package/dist/{chunk-UCKUAKYQ.js → chunk-YKYK6C7F.js} +1 -1
- package/dist/{chunk-GNMB72V7.js → chunk-YM4MVABU.js} +56 -24
- package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
- package/dist/{chunk-PNYWBY4K.js → chunk-YOUYJHW3.js} +3 -3
- package/dist/{chunk-OTWIW2L3.js → chunk-YPELB4Q7.js} +3 -3
- package/dist/{chunk-5I4RPBNE.js → chunk-YRCIG4IO.js} +8 -7
- package/dist/{chunk-FPFRLRQO.js → chunk-ZIQR2CNM.js} +7 -7
- package/dist/{chunk-H7BCNS5J.js → chunk-ZK22I3NF.js} +3 -3
- package/dist/{chunk-A6N24NGW.js → chunk-ZNA4JHHG.js} +2 -2
- package/dist/{chunk-VESSIKBG.js → chunk-ZOQRX5V7.js} +4 -4
- package/dist/{chunk-FVWHEM2N.js → chunk-ZPQ3VOAE.js} +1 -1
- package/dist/{chunk-NZ7FX3AE.js → chunk-ZQ5ILQ5A.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{core-LSYX4UQQ.js → core-2PT7IROA.js} +2 -1
- package/dist/{core-YN2VVGUL.js → core-34YTH4KN.js} +1 -1
- package/dist/{core-7YDNMUU3.js → core-4ZEVWU43.js} +1 -1
- package/dist/{core-743ZXTWK.js → core-64EHPUVV.js} +1 -1
- package/dist/{core-ZETBHLSV.js → core-6KO5AEUH.js} +1 -1
- package/dist/{core-2GWH3ED7.js → core-7WLD237S.js} +1 -1
- package/dist/{core-AC5AKSCM.js → core-A2MERE3C.js} +1 -1
- package/dist/{core-O5S2NETE.js → core-AVNB2Q3G.js} +2 -1
- package/dist/{core-XUNZB6BM.js → core-B7KOBTRL.js} +1 -1
- package/dist/{core-HIONDJGC.js → core-BOOD7ZUQ.js} +1 -1
- package/dist/{core-3LCSHMKN.js → core-BOU34T23.js} +1 -1
- package/dist/{core-VYHQ5JY6.js → core-BQ2I77OF.js} +2 -1
- package/dist/{core-HMBMMF5Z.js → core-BSEXRZD6.js} +1 -1
- package/dist/{core-Q2Y3JEWL.js → core-CXEEM26F.js} +1 -1
- package/dist/{core-7OAGK7ZJ.js → core-EHMPBG6Q.js} +1 -1
- package/dist/{core-BEK6EPVF.js → core-FXC4TB2K.js} +1 -1
- package/dist/{core-MIERUUUT.js → core-HMS72VO6.js} +1 -1
- package/dist/{core-EGTJOQK7.js → core-I2GPMB2B.js} +1 -1
- package/dist/{core-XJZWD43V.js → core-IQC6H4A7.js} +1 -1
- package/dist/{core-RTBPKALG.js → core-IYEFTP6C.js} +1 -1
- package/dist/{core-3XGQBHJI.js → core-J2QTOU4D.js} +1 -1
- package/dist/{core-AEALAFRA.js → core-JJLIPTEW.js} +1 -1
- package/dist/{core-5CRTPVYA.js → core-LCP44UYI.js} +1 -2
- package/dist/{core-BRBJ3LPF.js → core-MBNVENCZ.js} +1 -1
- package/dist/{core-VBMWBPKM.js → core-MVIK7FAJ.js} +2 -1
- package/dist/{core-TIIPSEK3.js → core-N4OKPNXQ.js} +1 -1
- package/dist/{core-FE4THVV3.js → core-Q4IILTGO.js} +1 -1
- package/dist/{core-4N6WH3IF.js → core-QCPDOQEJ.js} +2 -1
- package/dist/{core-AAPPZSSZ.js → core-RVTF336C.js} +1 -1
- package/dist/{core-5K4HRIHX.js → core-VGMMKEU4.js} +1 -1
- package/dist/{core-3NQ5TXOJ.js → core-VUVJOMUC.js} +1 -1
- package/dist/{core-T7CKLMT2.js → core-VWISBHXE.js} +1 -1
- package/dist/{core-YKDDPMWW.js → core-W3UBWZR3.js} +1 -1
- package/dist/{core-FEBNVNVE.js → core-XYQRB5WF.js} +1 -1
- package/dist/{core-YP4MNIMV.js → core-Y6DJHIYT.js} +1 -1
- package/dist/{core-NTOOJZRA.js → core-YHWVJULU.js} +1 -1
- package/dist/{core-VLXOQ5CK.js → core-YJXOVNIE.js} +1 -1
- package/dist/{dataTable-FEQZSDUZ.js → dataTable-3ZK3ZEZP.js} +3 -2
- package/dist/{engine-SCQVNSAM.js → engine-FSWLRWZR.js} +19 -17
- package/dist/fixtures.js +1 -1
- package/dist/index.js +14 -13
- package/dist/{main-7UKLXCIL.js → main-NYMXWJGJ.js} +6 -5
- package/dist/mcp/server.js +11 -10
- package/dist/react/bar.js +1 -1
- package/dist/react/bartable.js +1 -1
- package/dist/react/box.js +1 -1
- package/dist/react/bullet.js +1 -1
- package/dist/react/butterfly.js +1 -1
- package/dist/react/choropleth.js +1 -1
- package/dist/react/cohort.js +2 -1
- package/dist/react/column.js +1 -1
- package/dist/react/combo.js +1 -1
- package/dist/react/creative.js +1 -1
- package/dist/react/diagram.js +1 -1
- package/dist/react/dimswitch.js +1 -1
- package/dist/react/dot.js +1 -1
- package/dist/react/export.js +24 -19
- package/dist/react/funnel.js +1 -1
- package/dist/react/gantt.js +1 -1
- package/dist/react/grid.js +1 -1
- package/dist/react/heatmap.js +2 -1
- package/dist/react/histogram.js +1 -1
- package/dist/react/index.js +84 -83
- package/dist/react/kpi.js +1 -1
- package/dist/react/likert.js +1 -1
- package/dist/react/line.js +2 -1
- package/dist/react/mekko.js +1 -1
- package/dist/react/pareto.js +1 -1
- package/dist/react/pie.js +1 -1
- package/dist/react/prepare.js +22 -20
- package/dist/react/pvm.js +1 -1
- package/dist/react/pyramid.js +1 -1
- package/dist/react/sankey.js +1 -1
- package/dist/react/scatter.js +2 -1
- package/dist/react/slope.js +1 -1
- package/dist/react/sparkline.js +1 -1
- package/dist/react/spec.js +10 -10
- package/dist/react/status.js +2 -1
- package/dist/react/story.js +3 -3
- package/dist/react/table.js +1 -1
- package/dist/react/theme.js +3 -3
- package/dist/react/tilemap.js +1 -1
- package/dist/react/treemap.js +1 -1
- package/dist/react/variance.js +1 -1
- package/dist/react/waffle.js +1 -1
- package/dist/react/waterfall.js +1 -1
- package/dist/{rowsModule-WJH4QNXZ.js → rowsModule-43LCK2Q7.js} +1 -1
- package/dist/{schema-MQT6BMNK.js → schema-2ACHQTR3.js} +1 -1
- package/dist/{schema-WZOSDDDJ.js → schema-3LRC5TOZ.js} +1 -1
- package/dist/{schema-F7TWGLRZ.js → schema-4HGZZNUL.js} +1 -1
- package/dist/{schema-PWPQF5RC.js → schema-4YIYGGOJ.js} +1 -1
- package/dist/{schema-ECJERHKF.js → schema-5OLQ54J5.js} +1 -1
- package/dist/{schema-CWKGLDSR.js → schema-5SVPR3EU.js} +1 -1
- package/dist/{schema-BA6WP5YZ.js → schema-A4U4RDKJ.js} +1 -1
- package/dist/{schema-JYZ4RF6S.js → schema-AM2KS6ZC.js} +1 -1
- package/dist/{schema-PYQEUC5P.js → schema-C25ECGJL.js} +1 -1
- package/dist/{schema-56MOEOVR.js → schema-CBLNGK2F.js} +1 -1
- package/dist/{schema-ESR6ZIK4.js → schema-D3ELHESU.js} +1 -1
- package/dist/{schema-5MSR4LNN.js → schema-FBIEOKO2.js} +1 -1
- package/dist/{schema-DUVJMFKQ.js → schema-FPDLOIA6.js} +1 -1
- package/dist/{schema-ALBF6V7Y.js → schema-FQWENOJY.js} +1 -1
- package/dist/{schema-DBIQFL56.js → schema-GTLGAPCU.js} +1 -1
- package/dist/{schema-Q5DACE4I.js → schema-GUDG343K.js} +2 -2
- package/dist/{schema-47BG2TZA.js → schema-GYTWCCNA.js} +1 -1
- package/dist/{schema-DL7V6NN2.js → schema-GYVYJEL3.js} +1 -1
- package/dist/{schema-ZU2EU2VP.js → schema-HAMPGUH3.js} +1 -1
- package/dist/{schema-TVUJNEX7.js → schema-IYBZPCM4.js} +1 -1
- package/dist/{schema-2TPGJGVR.js → schema-IYLRZNFB.js} +1 -1
- package/dist/{schema-KAK6DZX4.js → schema-KBV2JB2A.js} +1 -1
- package/dist/{schema-PV7JGX5H.js → schema-KWCIIIGP.js} +1 -1
- package/dist/{schema-Y4TI2T3T.js → schema-LDF6HORS.js} +1 -1
- package/dist/{schema-FKGGTM4Z.js → schema-LGYHJPXU.js} +1 -1
- package/dist/{schema-CBL2SMVR.js → schema-LX4EXDTI.js} +1 -1
- package/dist/{schema-2R32F6AW.js → schema-NNNG7CWG.js} +1 -1
- package/dist/{schema-OPXZYIW7.js → schema-P2JYSV32.js} +1 -1
- package/dist/{schema-FGB6IGZM.js → schema-PAKZIYQF.js} +1 -1
- package/dist/{schema-R42VXFIS.js → schema-SQ2GYLMI.js} +1 -1
- package/dist/{schema-KCJ6WTGV.js → schema-SUDJBIHX.js} +1 -1
- package/dist/{schema-MR3BPPQR.js → schema-TRPPZCIR.js} +1 -1
- package/dist/{schema-JIAQE7WO.js → schema-UNYDUIL5.js} +1 -1
- package/dist/{schema-5RIYEWE6.js → schema-VH4AW62Z.js} +1 -1
- package/dist/{schema-EDSEKZDJ.js → schema-WDKBCN3V.js} +1 -1
- package/dist/{schema-MOKWIGF7.js → schema-YCKUQ3FF.js} +1 -1
- package/dist/{schema-K7F6TEDK.js → schema-YVBUY7NH.js} +1 -1
- package/dist/{specValidation-DC4TVHWD.js → specValidation-FKHSTMMR.js} +1 -1
- package/dist/theme.js +2 -2
- package/dist/types/core/a11y/recordsShared.d.ts +15 -4
- package/dist/types/core/a11y/types.d.ts +0 -3
- package/dist/types/core/annotate.d.ts +17 -1
- package/dist/types/core/annotateTargets.d.ts +8 -0
- package/dist/types/core/charts/band/stacks.d.ts +4 -3
- package/dist/types/core/charts/bar/layout.d.ts +3 -1
- package/dist/types/core/charts/bartable/types.d.ts +3 -0
- package/dist/types/core/charts/box/types.d.ts +5 -0
- package/dist/types/core/charts/column/anomaly.d.ts +12 -5
- package/dist/types/core/charts/column/model.d.ts +4 -0
- package/dist/types/core/charts/combo/endpoints.d.ts +11 -1
- package/dist/types/core/charts/combo/layout.d.ts +7 -1
- package/dist/types/core/charts/dimswitch/compile.d.ts +20 -3
- package/dist/types/core/charts/grid/metricStack.d.ts +2 -4
- package/dist/types/core/charts/histogram/types.d.ts +3 -0
- package/dist/types/core/charts/likert/layout.d.ts +5 -2
- package/dist/types/core/charts/logAxis.d.ts +0 -5
- package/dist/types/core/charts/scatter/logAxis.d.ts +1 -1
- package/dist/types/core/charts/scatter/model.d.ts +10 -1
- package/dist/types/core/charts/scatter/trend.d.ts +19 -0
- package/dist/types/core/charts/table/view.d.ts +7 -0
- package/dist/types/core/charts/waffle/types.d.ts +8 -0
- package/dist/types/core/formatPrecision.d.ts +24 -0
- package/dist/types/core/formatSpec.d.ts +213 -61
- package/dist/types/core/label/solver.d.ts +3 -1
- package/dist/types/core/numberRule.d.ts +109 -0
- package/dist/types/core/numberSets.d.ts +43 -0
- package/dist/types/core/shownMarks.d.ts +16 -0
- package/dist/types/core/types/options.d.ts +8 -8
- package/dist/types/core/types/scene.d.ts +24 -0
- package/dist/types/core/types/table.d.ts +0 -13
- package/dist/types/react/TableChart.d.ts +9 -7
- package/dist/types/react/hover/engine.d.ts +6 -4
- package/dist/types/react/hover/labelCard.d.ts +4 -3
- package/dist/validate.js +5 -4
- package/docs/manual.md +15 -7
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +1 -1
- package/docs/reference/dimswitch.md +2 -3
- package/docs/reference/fixtures.md +1 -1
- package/docs/reference/grid.md +13 -7
- package/docs/reference/heatmap.md +1 -1
- package/docs/reference/line.md +2 -2
- package/docs/reference/options.md +3 -3
- package/docs/reference/react.md +1 -1
- package/docs/reference/table.md +5 -8
- package/docs/reference/warnings.md +0 -1
- package/package.json +1 -1
- package/dist/chunk-2IRMGCYE.js +0 -125
- package/dist/chunk-WVCDISZP.js +0 -89
- package/dist/types/core/charts/table/fitFormats.d.ts +0 -67
- package/dist/types/core/charts/table/resolve.d.ts +0 -84
- package/dist/types/core/format.d.ts +0 -156
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-UMDEWWXT.js";
|
|
4
4
|
import {
|
|
5
5
|
dimswitchRowId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OTOASFG4.js";
|
|
7
7
|
import {
|
|
8
8
|
getTilePack
|
|
9
9
|
} from "./chunk-T2L5H2WW.js";
|
|
10
10
|
import {
|
|
11
11
|
formatDate
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AUSZDYGE.js";
|
|
13
13
|
|
|
14
14
|
// src/fixtures/registry.ts
|
|
15
15
|
var fixtureRegistry = /* @__PURE__ */ new Map(), refusalRegistry = /* @__PURE__ */ new Map();
|
|
@@ -1796,7 +1796,6 @@ fixtures3.push({
|
|
|
1796
1796
|
cascade: { growth: { measure: "share-change" } },
|
|
1797
1797
|
// The cascade default, written out.
|
|
1798
1798
|
sharedScale: !0,
|
|
1799
|
-
// rounding defaults to 'sum-consistent' under cascade.
|
|
1800
1799
|
combinedShare: { rows: ["app", "foo"] },
|
|
1801
1800
|
title: "Beauty gains share every year while apparel gives it up",
|
|
1802
1801
|
// Four panels name the unit once, in the subtitle, so each head stays one short line.
|
|
@@ -3478,7 +3477,7 @@ var regionRows = { rows: [
|
|
|
3478
3477
|
{ id: "south", label: "South", value: 366, target: 340, bands: [{ to: 300, label: "Weak" }, { to: 400, label: "Fair" }, { to: 500, label: "Strong" }] },
|
|
3479
3478
|
{ id: "returns", label: "Returns", value: 38, target: 45, direction: "lowerIsBetter", bands: [{ to: 300, label: "Strong" }, { to: 400, label: "Fair" }, { to: 500, label: "Weak" }] }
|
|
3480
3479
|
] }, targetRows = { rows: [
|
|
3481
|
-
{ id: "revenue", label: "Revenue", value: { number: 412, format: "$
|
|
3480
|
+
{ id: "revenue", label: "Revenue", value: { number: 412, format: "$412" }, target: { number: 450, format: "$450" } },
|
|
3482
3481
|
{ id: "orders", label: "Orders", value: 1860, target: 1700 },
|
|
3483
3482
|
{ id: "returns", label: "Return rate", value: { pct: 6.2 }, target: { pct: 5 }, direction: "lowerIsBetter" }
|
|
3484
3483
|
] };
|
|
@@ -24000,7 +23999,7 @@ fixtures30.push({
|
|
|
24000
23999
|
{
|
|
24001
24000
|
id: "net-revenue",
|
|
24002
24001
|
label: "Net revenue",
|
|
24003
|
-
format: "$1.
|
|
24002
|
+
format: "$1.2M",
|
|
24004
24003
|
cells: { jan: 61e5, feb: 64e5, mar: 66e5, apr: 63e5, may: 69e5, jun: 72e5, ytd: 395e5, yoy: 9.8 },
|
|
24005
24004
|
children: [
|
|
24006
24005
|
{
|
|
@@ -24031,7 +24030,7 @@ fixtures30.push({
|
|
|
24031
24030
|
{
|
|
24032
24031
|
id: "spend",
|
|
24033
24032
|
label: "Marketing spend",
|
|
24034
|
-
format: "$1.
|
|
24033
|
+
format: "$1.2M",
|
|
24035
24034
|
cells: { jan: 11e5, feb: 115e4, mar: 109e4, apr: 12e5, may: 124e4, jun: 131e4, ytd: 709e4, yoy: 6.1 }
|
|
24036
24035
|
},
|
|
24037
24036
|
{
|
|
@@ -24118,14 +24117,14 @@ fixtures30.push({
|
|
|
24118
24117
|
],
|
|
24119
24118
|
rows: [
|
|
24120
24119
|
{ id: "sales", label: "Sales", role: "section", children: [
|
|
24121
|
-
monthlyKpi("revenue", "Revenue", "$1.
|
|
24120
|
+
monthlyKpi("revenue", "Revenue", "$1.2M", KPI_REVENUE),
|
|
24122
24121
|
monthlyKpi("orders", "Orders", "1,234", KPI_ORDERS),
|
|
24123
24122
|
monthlyKpi("aov", "Avg order value", "$1.2", KPI_REVENUE.map((revenue, i) => revenue / KPI_ORDERS[i])),
|
|
24124
24123
|
monthlyKpi("conversion", "Conversion rate", "1.2%", KPI_ORDERS.map((orders, i) => orders / KPI_SESSIONS[i] * 100)),
|
|
24125
24124
|
monthlyKpi("returns", "Return rate", "1.2%", [8, 7.8, 7.6, 7.9, 7.4, 7.5, 7.2, 7.3, 7.4, 7, 8.5, 9], "lowerIsBetter")
|
|
24126
24125
|
] },
|
|
24127
24126
|
{ id: "ads", label: "Advertising", role: "section", children: [
|
|
24128
|
-
monthlyKpi("spend", "Ad spend", "$1.
|
|
24127
|
+
monthlyKpi("spend", "Ad spend", "$1.2M", KPI_SPEND),
|
|
24129
24128
|
monthlyKpi("roas", "ROAS", "1.2x", KPI_REVENUE.map((revenue, i) => revenue / KPI_SPEND[i])),
|
|
24130
24129
|
monthlyKpi("cpa", "Cost per order", "$1.2", KPI_SPEND.map((spend, i) => spend / KPI_ORDERS[i]), "lowerIsBetter"),
|
|
24131
24130
|
monthlyKpi("ctr", "Click-through rate", "1.2%", [1.4, 1.4, 1.5, 1.5, 1.5, 1.4, 1.5, 1.6, 1.5, 1.6, 1.7, 1.8])
|
|
@@ -24349,7 +24348,7 @@ function v2Sub(row, parentId, shareLabel) {
|
|
|
24349
24348
|
}]
|
|
24350
24349
|
};
|
|
24351
24350
|
}
|
|
24352
|
-
var V2_MONEY = "$1.
|
|
24351
|
+
var V2_MONEY = "$1.2M", V2_COUNT = "1,234";
|
|
24353
24352
|
fixtures30.push({
|
|
24354
24353
|
id: "steering-table-v2",
|
|
24355
24354
|
title: "Monthly KPIs with the change lines inside the cell, 2026 YTD after nine months",
|
|
@@ -24429,9 +24428,9 @@ fixtures30.push({
|
|
|
24429
24428
|
})
|
|
24430
24429
|
] },
|
|
24431
24430
|
{ id: "sec-traffic", label: "Traffic", role: "section", children: [
|
|
24432
|
-
v2Kpi({ id: "sessions", label: "Sessions", line: V2_SESSIONS, format: "1.
|
|
24433
|
-
v2Sub({ id: "sessions-paid", label: "Paid", line: V2_SESSIONS_PAID, format: "1.
|
|
24434
|
-
v2Sub({ id: "sessions-organic", label: "Organic", line: V2_SESSIONS_ORGANIC, format: "1.
|
|
24431
|
+
v2Kpi({ id: "sessions", label: "Sessions", line: V2_SESSIONS, format: "1.2M", totals: v2SumTotals(V2_SESSIONS) }, [
|
|
24432
|
+
v2Sub({ id: "sessions-paid", label: "Paid", line: V2_SESSIONS_PAID, format: "1.2M" }, "sessions", "Share of sessions"),
|
|
24433
|
+
v2Sub({ id: "sessions-organic", label: "Organic", line: V2_SESSIONS_ORGANIC, format: "1.2M" }, "sessions", "Share of sessions")
|
|
24435
24434
|
])
|
|
24436
24435
|
] },
|
|
24437
24436
|
{ id: "sec-mix", label: "Web order mix", role: "section", children: [
|
|
@@ -25182,8 +25181,8 @@ fixtures30.push({
|
|
|
25182
25181
|
});
|
|
25183
25182
|
var FIT_WEEKS = ["w1", "w2", "w3", "w4", "w5", "w6"], fitCells = (values) => Object.fromEntries(FIT_WEEKS.map((id, index) => [id, values[index]]));
|
|
25184
25183
|
fixtures30.push({
|
|
25185
|
-
id: "
|
|
25186
|
-
title: "Weekly revenue
|
|
25184
|
+
id: "narrow-tracks-widen",
|
|
25185
|
+
title: "Weekly revenue keeps its written format, and its 44 px tracks widen to hold it",
|
|
25187
25186
|
kind: "example",
|
|
25188
25187
|
data: {
|
|
25189
25188
|
columns: [
|
|
@@ -25198,12 +25197,11 @@ fixtures30.push({
|
|
|
25198
25197
|
},
|
|
25199
25198
|
options: {
|
|
25200
25199
|
variant: "steering",
|
|
25201
|
-
fitFormats: !0,
|
|
25202
25200
|
cellPadX: 6,
|
|
25203
25201
|
size: { width: 640, height: 260 },
|
|
25204
25202
|
title: "Revenue passed $2.7M in week 40",
|
|
25205
25203
|
subtitle: { measure: "Weekly steering", period: "W36 to W41" },
|
|
25206
|
-
source: "Illustrative weeks; the revenue row is written as $1.23M and
|
|
25204
|
+
source: "Illustrative weeks; the revenue row is written as $1.23M, and its 44 px tracks widen to hold it"
|
|
25207
25205
|
}
|
|
25208
25206
|
});
|
|
25209
25207
|
fixtures30.push({
|
|
@@ -25781,11 +25779,11 @@ fixtures30.push(
|
|
|
25781
25779
|
var groupsData = (fit = !1) => ({
|
|
25782
25780
|
columns: [
|
|
25783
25781
|
{ id: "line", kind: "rowLabel", label: "$k" },
|
|
25784
|
-
{ id: "fy25", kind: "value", label: "FY2025", format: "1,234", ...fit ? { width: 84
|
|
25782
|
+
{ id: "fy25", kind: "value", label: "FY2025", format: "1,234", ...fit ? { width: 84 } : {} },
|
|
25785
25783
|
{ id: "fy26", kind: "value", label: "FY2026", format: "1,234", ...fit ? { width: 84 } : {} }
|
|
25786
25784
|
],
|
|
25787
25785
|
rows: [
|
|
25788
|
-
{ id: "revenue", label: "Revenue",
|
|
25786
|
+
{ id: "revenue", label: "Revenue", cells: { fy25: 9500, fy26: 10600 }, children: [
|
|
25789
25787
|
{ id: "product", label: "Product sales", cells: { fy25: 8200, fy26: 9100 } },
|
|
25790
25788
|
{ id: "services", label: "Services", cells: { fy25: 1300, fy26: 1500 } }
|
|
25791
25789
|
] },
|
|
@@ -25800,7 +25798,7 @@ fixtures30.push(
|
|
|
25800
25798
|
{ id: "group-ground-always", title: "The group ground stays on a folded group row, as before 0.28", kind: "example", tags: [], data: groupsData(), options: { title: "Revenue is folded and costs are open", groupGround: "always", foldOn: "row", expansion: { collapsed: ["revenue"] } } },
|
|
25801
25799
|
{ id: "group-ground-none", title: "No group ground at all", kind: "example", tags: [], data: groupsData(), options: { title: "Revenue is folded and costs are open", groupGround: "none", expansion: { collapsed: ["revenue"] } } },
|
|
25802
25800
|
{ id: "frame-fill-values", title: "Under rowExtent frame the value tracks grow until every layer ends at the frame edge", kind: "example", tags: [], data: groupsData(), options: { title: "Rows and columns end together", rowExtent: "frame", frameFill: "values", size: { width: 720 } } },
|
|
25803
|
-
{ id: "frame-fill-none", title: "The old frame: columns keep their widths and an empty stretch carries the rows to the edge", kind: "example", tags: [], data: groupsData(!0), options: { title: "The rows run on past the columns", rowExtent: "frame", frameFill: "none",
|
|
25801
|
+
{ id: "frame-fill-none", title: "The old frame: columns keep their widths and an empty stretch carries the rows to the edge", kind: "example", tags: [], data: groupsData(!0), options: { title: "The rows run on past the columns", rowExtent: "frame", frameFill: "none", size: { width: 720 } } },
|
|
25804
25802
|
{ id: "height-fill-none", title: "A pinned height keeps the rows at their natural height and leaves the rest empty", kind: "example", tags: [], data: groupsData(), options: { title: "Rows keep their natural height", heightFill: "none", size: { width: 720, height: 405 } } },
|
|
25805
25803
|
{ id: "table-look-keys", title: "A theme sets the quiet row rule, its width and the secondary ink; each open block opens on the rule ink", kind: "example", tags: [], data: groupsData(), options: { title: "Costs rose less than revenue", theme: { preset: "boardroom", overrides: { table: { ruleInk: "#B9C7D6", ruleWidths: { row: 1 }, inks: { secondary: "#3A5F86" }, blockRule: "rule" } } } } }
|
|
25806
25804
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOverridesOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B7UWG6XJ.js";
|
|
4
4
|
import {
|
|
5
5
|
addCategorySeriesIdIssues,
|
|
6
6
|
baseOptionsSchema,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
refusedBaseOptions,
|
|
14
14
|
scenarioField,
|
|
15
15
|
valueKindSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JOX252XQ.js";
|
|
17
17
|
import {
|
|
18
18
|
NAMED_COLUMN_STATES
|
|
19
19
|
} from "./chunk-62BDQTO6.js";
|
|
@@ -47,7 +47,7 @@ var categorySchema = categorySchemaOf({
|
|
|
47
47
|
addCategorySeriesIdIssues(ctx, data);
|
|
48
48
|
}), heatmapOptionsSchema = baseOptionsSchema.safeExtend(refusedBaseOptions("heatmap")).safeExtend({
|
|
49
49
|
scale: z.enum(["continuous", "discrete"]).optional().describe("Continuous color interpolation by default, or a discrete color ladder."),
|
|
50
|
-
variant: z.enum(["value", "harvey", "bubble"]).optional().describe("Value labels fit as a whole row
|
|
50
|
+
variant: z.enum(["value", "harvey", "bubble"]).optional().describe("Value labels fit as a whole row and print the same text at every size: a value with no room is hidden, never shortened; authored labels and valid pins retain precedence. Harvey glyphs suppress values and take ratings 0 to 4 only; any other value is refused. 'bubble': one circle per cell, colour = value, area = series sizes; values print where they fit."),
|
|
51
51
|
cap: z.strictObject({
|
|
52
52
|
pct: z.number().positive().optional().describe("Cap in points when every cell is a percent. Example: 20 saturates at \xB120%."),
|
|
53
53
|
abs: z.number().positive().optional().describe("Cap in source units for other values.")
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-6JXBLQJ2.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutHeatmap
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EADD6NNQ.js";
|
|
7
7
|
import {
|
|
8
8
|
hostedLayout
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZQ5ILQ5A.js";
|
|
10
10
|
import {
|
|
11
11
|
overrideIgnored,
|
|
12
12
|
widthFloored
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
fittedLabel,
|
|
17
17
|
gutterBudget,
|
|
18
18
|
stepDownFont
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
20
20
|
import {
|
|
21
21
|
chartTheme
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AIPOSNVG.js";
|
|
23
23
|
import {
|
|
24
24
|
AVERAGE_ROW_ID,
|
|
25
25
|
deriveRetention,
|
|
@@ -29,15 +29,14 @@ import {
|
|
|
29
29
|
fitsRoom,
|
|
30
30
|
widthsThatFit,
|
|
31
31
|
withoutWidths
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UI2MKLON.js";
|
|
33
33
|
import {
|
|
34
34
|
structureCount
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
36
36
|
import {
|
|
37
|
-
liftOrFallback,
|
|
38
37
|
missesSize,
|
|
39
38
|
tightSpacingWarning
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-56CDMSE5.js";
|
|
41
40
|
import {
|
|
42
41
|
fieldHeadFont,
|
|
43
42
|
fieldHeadText,
|
|
@@ -45,7 +44,7 @@ import {
|
|
|
45
44
|
headRule,
|
|
46
45
|
totalGround,
|
|
47
46
|
totalRule
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-UGHJHJKY.js";
|
|
49
48
|
import {
|
|
50
49
|
tableRuleInk
|
|
51
50
|
} from "./chunk-Z2MGTKDR.js";
|
|
@@ -62,7 +61,7 @@ import {
|
|
|
62
61
|
rowSizing,
|
|
63
62
|
sideKeyGivesWay,
|
|
64
63
|
spareShare
|
|
65
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YM4MVABU.js";
|
|
66
65
|
import {
|
|
67
66
|
HOST_CLAIMS,
|
|
68
67
|
PRIORITY,
|
|
@@ -81,28 +80,24 @@ import {
|
|
|
81
80
|
textCarriesCohortUnit,
|
|
82
81
|
withAuthoredFootnotes,
|
|
83
82
|
withUnprintedClaims
|
|
84
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-AUSZDYGE.js";
|
|
85
84
|
import {
|
|
86
85
|
disclosureNote,
|
|
87
86
|
keepShownNotes,
|
|
88
87
|
staticFrame
|
|
89
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-WD5NJHZG.js";
|
|
90
89
|
import {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
defaultSetSpec,
|
|
91
|
+
formatWithSpec,
|
|
92
|
+
formatterFromExample,
|
|
93
|
+
ruleFormatter
|
|
94
|
+
} from "./chunk-3JG764MI.js";
|
|
94
95
|
import {
|
|
95
|
-
autoDecimals,
|
|
96
96
|
chartStrings,
|
|
97
97
|
formatAutomaticNumber,
|
|
98
|
-
formatAutomaticPercent,
|
|
99
98
|
formatExactNumber,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
roundHalfUp,
|
|
103
|
-
smallRateDecimals,
|
|
104
|
-
typicalDecimals
|
|
105
|
-
} from "./chunk-MSYTF3DZ.js";
|
|
99
|
+
numberRange
|
|
100
|
+
} from "./chunk-FYFXOLWI.js";
|
|
106
101
|
import {
|
|
107
102
|
canvasMargin,
|
|
108
103
|
clamp,
|
|
@@ -117,7 +112,7 @@ import {
|
|
|
117
112
|
strokeToken,
|
|
118
113
|
tableEmphasis,
|
|
119
114
|
textScaleOf
|
|
120
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-XAH4EWJT.js";
|
|
121
116
|
import {
|
|
122
117
|
NormalizeError,
|
|
123
118
|
TARGET_SIZE,
|
|
@@ -294,14 +289,14 @@ function cohortFormula(options, basis) {
|
|
|
294
289
|
}
|
|
295
290
|
|
|
296
291
|
// src/core/charts/cohort/exhibit.ts
|
|
297
|
-
var LABEL_TRACK = 118, SIZE_TRACK = 96, ROW_H = 28, MAX_ROW_GROWTH = 0.8, STANDOFF_BELOW = 12, BASE_LINE_H = 16, HEADER_H = 28, LEGEND_H = 18, BIN_TINTS = [0.94, 0.8, 0.58, 0.3, 0], TIGHT_SPACING = /* @__PURE__ */ Symbol("cohortTightSpacing"),
|
|
292
|
+
var LABEL_TRACK = 118, SIZE_TRACK = 96, ROW_H = 28, MAX_ROW_GROWTH = 0.8, STANDOFF_BELOW = 12, BASE_LINE_H = 16, HEADER_H = 28, LEGEND_H = 18, BIN_TINTS = [0.94, 0.8, 0.58, 0.3, 0], TIGHT_SPACING = /* @__PURE__ */ Symbol("cohortTightSpacing"), REGULAR_WIDTH = /* @__PURE__ */ Symbol("cohortRegularWidth"), STACKED_TEXT = /* @__PURE__ */ Symbol("cohortStackedText"), HIDDEN_PERIODS = /* @__PURE__ */ Symbol("cohortHiddenPeriods"), DEFAULT_HEAD_ROOM = /* @__PURE__ */ Symbol("cohortDefaultHeadRoom"), PROBE_HEIGHT = 4e3;
|
|
298
293
|
function layoutCohortExhibit(sourceData, options) {
|
|
299
|
-
if (options.columnOverrides === void 0) return
|
|
294
|
+
if (options.columnOverrides === void 0) return layoutCohortExhibitOnce(sourceData, options);
|
|
300
295
|
let pinned = options[TARGET_SIZE]?.fixed.height ?? !heightOmitted(options.size), hidden = (geometry) => geometry.labels.filter((label) => label.hidden !== void 0 && label.hidden !== "redundant" || label.title !== void 0).length, withHeads = (next) => {
|
|
301
|
-
let asked =
|
|
296
|
+
let asked = layoutCohortExhibitOnce(sourceData, next);
|
|
302
297
|
if (next.columnOverrides?.label?.label === void 0 && next.columnOverrides?.size?.label === void 0) return asked;
|
|
303
|
-
let room =
|
|
304
|
-
return fitsRoom(asked, pinned) && hidden(asked) === 0 && (asked.derived.visiblePeriods?.length ?? 0) >= (room.derived.visiblePeriods?.length ?? 0) ? asked : fitsRoom(room, pinned) ? room :
|
|
298
|
+
let room = layoutCohortExhibitOnce(sourceData, { ...next, [DEFAULT_HEAD_ROOM]: "wrap" });
|
|
299
|
+
return fitsRoom(asked, pinned) && hidden(asked) === 0 && (asked.derived.visiblePeriods?.length ?? 0) >= (room.derived.visiblePeriods?.length ?? 0) ? asked : fitsRoom(room, pinned) ? room : layoutCohortExhibitOnce(sourceData, { ...next, [DEFAULT_HEAD_ROOM]: "oneLine" });
|
|
305
300
|
}, first = withHeads(options), fitted = widthsThatFit(options, (next) => next === options ? first : withHeads(next), pinned, { hidden });
|
|
306
301
|
if (!fitsRoom(fitted, pinned) && fitsRoom(first, pinned) && !first.labels.some((label) => label.hidden !== void 0 && label.hidden !== "redundant")) return first;
|
|
307
302
|
if (!fitted.labels.some((label) => label.hidden !== void 0 && label.hidden !== "redundant")) return fitted;
|
|
@@ -310,19 +305,6 @@ function layoutCohortExhibit(sourceData, options) {
|
|
|
310
305
|
let narrowed = Object.keys(options.columnOverrides).filter((id) => options.columnOverrides[id].width !== void 0);
|
|
311
306
|
return { ...plain, warnings: [...plain.warnings, ...narrowed.map((id) => widthFloored("cohort", id))] };
|
|
312
307
|
}
|
|
313
|
-
function layoutLifted(sourceData, options) {
|
|
314
|
-
return options.format || options[COHORT_LIFT] !== void 0 ? layoutCohortExhibitOnce(sourceData, options) : liftOrFallback(
|
|
315
|
-
(mode) => layoutCohortExhibitOnce(sourceData, mode === "full" ? options : { ...options, [COHORT_LIFT]: mode }),
|
|
316
|
-
(lifted, plain) => costsWidth(lifted, plain, options)
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
function costsWidth(lifted, plain, options) {
|
|
320
|
-
let open = options[TARGET_SIZE]?.fixed, fixedWidth = open?.width !== !1 && options.size !== void 0, misses = (geometry) => geometry.sizing !== void 0 && (open?.width !== !1 && geometry.size.width + 0.5 < geometry.sizing.minWidth || open?.height !== !1 && !heightOmitted(options.size) && geometry.size.height + 0.5 < geometry.sizing.minHeight), squeezed = (geometry) => fixedWidth && geometry.size.width + 0.5 < (geometry.sizing?.naturalWidth ?? 0);
|
|
321
|
-
if (misses(plain)) return !1;
|
|
322
|
-
if (misses(lifted) || squeezed(lifted) && !squeezed(plain)) return !0;
|
|
323
|
-
let before = new Set(plain.warnings.map((warning) => warning.code));
|
|
324
|
-
return lifted.warnings.some((warning) => !before.has(warning.code));
|
|
325
|
-
}
|
|
326
308
|
function layoutCohortExhibitOnce(sourceData, options) {
|
|
327
309
|
let warnings = [], data = options.excludeCurrentPeriod ? withoutCurrentPeriod(sourceData) : sourceData, basis = options.basis ?? "cohort", totals = options.total ?? "weighted", result = deriveRetention(data, { basis, averages: !1 });
|
|
328
310
|
pushAll(warnings, result.warnings);
|
|
@@ -490,20 +472,26 @@ function exhibitRows(data, derived, options) {
|
|
|
490
472
|
}
|
|
491
473
|
return rows;
|
|
492
474
|
}
|
|
493
|
-
function retentionFormatter(options, rows,
|
|
475
|
+
function retentionFormatter(options, rows, visible) {
|
|
494
476
|
let suffix = options.showPercentSign ? "%" : "";
|
|
495
477
|
if (options.format) {
|
|
496
478
|
let format = formatterFromExample(options.format, options.locale?.language, void 0, rows.flatMap((row) => row.retention.map((value) => value == null ? null : value * 100)));
|
|
497
479
|
return (retention) => `${format(retention * 100)}${suffix}`;
|
|
498
480
|
}
|
|
499
|
-
let
|
|
481
|
+
let spec = defaultSetSpec(rows.flatMap((row) => visible.flatMap((period) => {
|
|
500
482
|
let value = row.retention[period];
|
|
501
483
|
return period < row.observedPeriods && value !== null && value !== void 0 ? [value * 100] : [];
|
|
502
|
-
}))
|
|
503
|
-
return (retention
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
484
|
+
})), options.locale?.language, void 0, { kind: "percent", cell: !0 });
|
|
485
|
+
return (retention) => `${formatWithSpec(retention * 100, spec)}${suffix}`;
|
|
486
|
+
}
|
|
487
|
+
var baseFormats = /* @__PURE__ */ new WeakMap();
|
|
488
|
+
function baseFormatter(rows, options) {
|
|
489
|
+
let format = baseFormats.get(rows);
|
|
490
|
+
if (!format) {
|
|
491
|
+
let cohorts = rows.filter((row) => row.kind !== "total"), periodBases = rows.some((row) => row.kind === "total") && options.basis !== "previous" ? Array.from({ length: maxOf(cohorts.map((row) => row.observedPeriods)) }, (_, period) => cohorts.reduce((sum, row) => sum + (period < row.observedPeriods ? row.base : 0), 0)) : [], text = ruleFormatter([...rows.map((row) => row.base), ...periodBases], options.locale?.language, { cell: !0 });
|
|
492
|
+
baseFormats.set(rows, format = (value) => text(value));
|
|
493
|
+
}
|
|
494
|
+
return format;
|
|
507
495
|
}
|
|
508
496
|
function exhibitKeyWarnings(options, hasTotal) {
|
|
509
497
|
let parts = exhibitParts(options), overrides = options.columnOverrides ?? {}, shownBlocks = [...parts.showSize ? ["size"] : [], "periods"];
|
|
@@ -535,21 +523,21 @@ function exhibitParts(options) {
|
|
|
535
523
|
return { showSize, sizeAfterPeriods: showSize && firstBlock === "periods", heads: options.columnHeads !== !1 };
|
|
536
524
|
}
|
|
537
525
|
var TEXT_ALIGN = { left: "start", center: "middle", right: "end" }, TRACK_INSET = 4, anchorIn = (align, left, width) => align === "start" ? left + TRACK_INSET : align === "end" ? left + width - TRACK_INSET : left + width / 2, leftOf = (align, x, width) => align === "start" ? x : align === "middle" ? x - width / 2 : x - width, sizeHeadWords = (options) => options.columnOverrides?.size?.label ?? options.cohortSizeLabel ?? chartString(options, "cohortSize"), sizeHeadRoom = (options) => options[DEFAULT_HEAD_ROOM] ? options.cohortSizeLabel ?? chartString(options, "cohortSize") : sizeHeadWords(options);
|
|
538
|
-
function exhibitTracks(rows, visible, data, options, font, measure, format = retentionFormatter(options, rows), stackFont = font, head) {
|
|
526
|
+
function exhibitTracks(rows, visible, data, options, font, measure, format = retentionFormatter(options, rows, visible), stackFont = font, head) {
|
|
539
527
|
let { showSize, heads } = exhibitParts(options), authored = options.columnOverrides, stopsFigures = options.figures === !1 && options.variant === "stepped", tight = options[TIGHT_SPACING]?.columns === !0, air = options[STACKED_TEXT] ? 6 : 4, width = (text, wrapFont = stackFont) => options[STACKED_TEXT] ? maxOf(twoLines(text, wrapFont, measure).map((line) => measure(line, wrapFont).width)) : measure(text, font).width, label = Math.max(tight ? 0 : LABEL_TRACK, maxOf(rows.map((row) => measure(row.label, font).width + (tight ? 4 : 12)))), sizeHead = heads ? Math.max(
|
|
540
528
|
width(sizeHeadRoom(options), font),
|
|
541
529
|
head ? options[STACKED_TEXT] ? width(head.text, head.font) : measure(head.text, head.font).width : 0
|
|
542
530
|
) : 0, size = showSize ? authored?.size?.width ?? Math.max(
|
|
543
531
|
tight ? 0 : SIZE_TRACK,
|
|
544
532
|
sizeHead + (tight ? air : 18),
|
|
545
|
-
maxOf(rows.map((row) => measure(
|
|
533
|
+
maxOf(rows.map((row) => measure(baseFormatter(rows, options)(row.base), font).width + (tight ? air : 18)))
|
|
546
534
|
) : 0, values = rows.flatMap((row) => visible.flatMap((period) => {
|
|
547
535
|
let value = row.retention[period];
|
|
548
536
|
return period >= row.observedPeriods || value === null || value === void 0 || stopsFigures && period !== 0 ? [] : [format(value, period)];
|
|
549
537
|
})), support = visible.flatMap((period) => {
|
|
550
538
|
let observed = rows.filter((row) => row.kind !== "total" && period < row.observedPeriods), rates = observed.flatMap((row) => row.retention[period] == null ? [] : [row.retention[period]]);
|
|
551
539
|
return [
|
|
552
|
-
...rows.some((row) => row.kind === "total") && options.basis !== "previous" ? [chartString(options, "baseValue", { value:
|
|
540
|
+
...rows.some((row) => row.kind === "total") && options.basis !== "previous" ? [chartString(options, "baseValue", { value: baseFormatter(rows, options)(observed.reduce((sum, row) => sum + row.base, 0)) })] : [],
|
|
553
541
|
...heads && options.variant === "stepped" && (options.formatScope ?? "column") === "column" ? rates.length ? [numberRange(format(minOf(rates), period), format(maxOf(rates), period))] : [] : []
|
|
554
542
|
];
|
|
555
543
|
}), month = authored?.periods?.width ?? Math.max(tight ? 0 : 56, maxOf([...heads ? visible.map((period) => periodName(data.periodLabel, period, options.locale?.language)) : [], ...values].map((text) => measure(text, font).width + (tight ? air : 16))), maxOf(support.map((text) => width(text) + (tight ? air : 16))));
|
|
@@ -596,7 +584,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
596
584
|
}, headAlignOf = (id, fallback) => {
|
|
597
585
|
let align = overrides?.[id]?.headAlign;
|
|
598
586
|
return align === void 0 ? alignOf(id, fallback) : TEXT_ALIGN[align];
|
|
599
|
-
}, totalId = rowData.find((row) => row.kind === "total")?.id, formatValue = retentionFormatter(options, rowData), measureName = cohortMeasure(options), unit = options.unit?.trim() || "%", carriesUnit = (text) => textCarriesCohortUnit(text, unit), subtitle = resolveSubtitle(options.subtitle), measureHasUnit = subtitle !== void 0 && carriesUnit(subtitle.measure), authoredUnit = options.unit?.trim(), subtitleUnit = measureHasUnit || options[UNIT_LINE] !== void 0 || subtitle !== void 0 && !!authoredUnit && frameRendersUnit({ subtitle, unit: authoredUnit }), footnotes = [...ownFootnotes, ...exclusion ? [exclusion] : [], ...methodFootnotes], ruleOverNotes = staticFrame.pinned && options.source !== void 0 && footnotes.length > 0, frame = solveFrame(
|
|
587
|
+
}, totalId = rowData.find((row) => row.kind === "total")?.id, formatValue = retentionFormatter(options, rowData, [...visible, ...options[HIDDEN_PERIODS] ?? []]), measureName = cohortMeasure(options), unit = options.unit?.trim() || "%", carriesUnit = (text) => textCarriesCohortUnit(text, unit), subtitle = resolveSubtitle(options.subtitle), measureHasUnit = subtitle !== void 0 && carriesUnit(subtitle.measure), authoredUnit = options.unit?.trim(), subtitleUnit = measureHasUnit || options[UNIT_LINE] !== void 0 || subtitle !== void 0 && !!authoredUnit && frameRendersUnit({ subtitle, unit: authoredUnit }), footnotes = [...ownFootnotes, ...exclusion ? [exclusion] : [], ...methodFootnotes], ruleOverNotes = staticFrame.pinned && options.source !== void 0 && footnotes.length > 0, frame = solveFrame(
|
|
600
588
|
{
|
|
601
589
|
size,
|
|
602
590
|
margin,
|
|
@@ -622,11 +610,6 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
622
610
|
};
|
|
623
611
|
}), measure), cornerWords = overrides?.label?.label, cornerText = fieldHeadText(cornerWords ?? chartString(options, "cohort"), theme), cornerShare = cornerWords === void 0 ? 1 / 0 : frame.plot.w * 0.45, cornerRoomWords = options[DEFAULT_HEAD_ROOM] ? chartString(options, "cohort") : cornerWords ?? chartString(options, "cohort"), cornerReserve = heads ? Math.max(measure(cornerRoomWords, nameFont).width + gap, measure(fieldHeadText(cornerRoomWords, theme), headFont).width + gap) : 0;
|
|
624
612
|
tracks.label = labelWidth ?? Math.max(Math.min(cornerReserve, cornerShare), maxOf(rowNames.map((name) => name.w + gap))), rowH = Math.max(rowH, maxOf(rowNames.map((name) => name.h + rowAir)));
|
|
625
|
-
let fullWidth = tracks.label + tracks.size + visible.length * tracks.month;
|
|
626
|
-
if (style === "pure" && !options.format && frame.plot.w < fullWidth) {
|
|
627
|
-
let rateWidth = tracks.month * Math.min(1, frame.plot.w / fullWidth) - 2;
|
|
628
|
-
formatValue = retentionFormatter(options, rowData, (text) => measure(text, trackFont).width > rateWidth), tracks = { ...exhibitTracks(rowData, visible, data, options, trackFont, measure, formatValue, stackFont, sizeHead), label: tracks.label };
|
|
629
|
-
}
|
|
630
613
|
let showSteppedLegend = style === "stepped" && options.legend !== "none", steps = options.steps ?? DEFAULT_STEPS, caption = options.strings?.cohortMeasure ? `${measureName}${options.unit && !carriesUnit(measureName) ? ` (${options.unit})` : ""}` : options.unit ?? measureName, keyFont = { family: theme.type.family, ...theme.type.axis }, keyFits = (text) => measure(text, keyFont).width + 10 + steppedKeyText(scope, caption, steps, options.locale?.language).labels.reduce((width, label) => width + 16 + (label ? 4 + measure(label, keyFont).width : 0), 0) <= frame.plot.w, keyUnit = !needsUnit || !showSteppedLegend ? void 0 : scope === "column" ? chartString(options, "withinColumnUnit", { unit: unitCaption }) : carriesUnit(caption) ? void 0 : unitCaption, keyCaption = keyUnit !== void 0 && keyFits(keyUnit) ? keyUnit : void 0, keyFlow = showSteppedLegend ? steppedKeyFlow(steppedKeyText(scope, caption, steps, options.locale?.language, keyCaption), keyFont, measure, size.width - frame.plot.x) : void 0, legendOffset = keyFlow ? LEGEND_H + keyFlow.pitch * (keyFlow.rows - 1) + 10 : 0, tableTop = frame.plot.y + legendOffset, desiredWidth = tracks.label + tracks.size + visible.length * tracks.month, scale = Math.min(1, frame.plot.w / desiredWidth), labelW = tracks.label * scale, sizeW = tracks.size * scale, heightFill = options.heightFill !== "none", monthW = overrides?.periods?.width !== void 0 || style === "stepped" && !heightFill ? tracks.month * scale : (frame.plot.w - labelW - sizeW) / visible.length, tableLeft = frame.plot.x, sizeLeft = tableLeft + labelW + (sizeAfterPeriods ? visible.length * monthW : 0), monthLeft = tableLeft + labelW + (sizeAfterPeriods ? 0 : sizeW), tableRight = sizeAfterPeriods ? sizeLeft + sizeW : monthLeft + visible.length * monthW, averageBases = derived.total && derived.basis !== "previous" ? visible.map((period) => derived.cohorts.reduce((sum, row) => sum + (period < row.observedPeriods ? row.base : 0), 0)) : void 0, columnRanges = scope === "column" && heads ? visible.map((period) => {
|
|
631
614
|
let values = derived.cohorts.flatMap((row) => {
|
|
632
615
|
let value = period < row.observedPeriods ? row.retention[period] : null;
|
|
@@ -637,7 +620,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
637
620
|
if (!range) return [];
|
|
638
621
|
let [low, high] = [formatValue(range.min, visible[column]), formatValue(range.max, visible[column])];
|
|
639
622
|
return wrapped(low === high ? low : numberRange(low, high), axisFont, monthW - 4);
|
|
640
|
-
}), baseLines = averageBases?.map((base) => wrapped(chartString(options, "baseValue", { value:
|
|
623
|
+
}), baseLines = averageBases?.map((base) => wrapped(chartString(options, "baseValue", { value: baseFormatter(rowData, options)(base) }), baseFont, monthW - 4)), extraLines = (blocks) => Math.max(0, maxOf((blocks ?? []).map((lines) => lines.length - 1)));
|
|
641
624
|
headerRowH = Math.max(headerRowH, Math.max(1, sizeHeaderLines.length, cornerLines.length) * lineH(sizeHeaderFont) + rowAir);
|
|
642
625
|
let baseLineH = averageBases ? baseRowH + extraLines(baseLines) * lineH(baseFont) : 0, headerH = heads ? headerRowH + (columnRanges ? baseRowH + extraLines(rangeLines) * lineH(axisFont) : 0) : 0, naturalRowH = rowH, headBand = columnRanges && (!showSize || sizeAfterPeriods || overrides !== void 0) ? Math.min(naturalRowH, headerRowH) : naturalRowH, naturalBottom = tableTop + headerH + rowData.length * rowH + totalGap + baseLineH, tableBottom = naturalBottom;
|
|
643
626
|
{
|
|
@@ -658,7 +641,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
658
641
|
rules.push({ t: "line", id, x1, y1, x2, y2, stroke, width, owner: {}, part }), occupied.claim({ x: Math.min(x1, x2), y: Math.min(y1, y2), w: Math.max(1, Math.abs(x2 - x1)), h: Math.max(1, Math.abs(y2 - y1)) }, "axis", {}, part);
|
|
659
642
|
}, head = headRule(theme);
|
|
660
643
|
heads && addLine("cohort-header-bottom", tableLeft, tableTop + headerH, tableRight, tableTop + headerH, head.width, head.stroke, "tableRule");
|
|
661
|
-
let addLabel = (id, text, rect, font, ink, owner = {}, kind = "point", insidePaint, fitted, align, claimId2) => {
|
|
644
|
+
let addLabel = (id, text, rect, font, ink, owner = {}, kind = "point", insidePaint, fitted, align, claimId2, shows) => {
|
|
662
645
|
requests.push({
|
|
663
646
|
id,
|
|
664
647
|
kind,
|
|
@@ -666,6 +649,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
666
649
|
typeRole: kind === "axisTitle" || id.startsWith("cohort-header-range:") ? "axis" : "label",
|
|
667
650
|
owner,
|
|
668
651
|
text,
|
|
652
|
+
...shows ? { shows } : {},
|
|
669
653
|
...owner.categoryId?.startsWith("t") && owner.seriesId ? {
|
|
670
654
|
noteText: `${rowData.find((row) => row.id === owner.seriesId)?.label ?? ""} ${text} (${periodName(data.periodLabel, Number(owner.categoryId.slice(1)), options.locale?.language)})`
|
|
671
655
|
} : {},
|
|
@@ -785,7 +769,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
785
769
|
let rule = totalRule(theme);
|
|
786
770
|
nodes.push({ t: "rect", id: `cohort-total-ground:${row.id}`, rect: { x: tableLeft, y, w: tableRight - tableLeft, h: rowH }, fill: totalPaint, owner: {}, part: "cohortTotalGround" }), totalOnTop ? heads || rules.push({ t: "line", id: `cohort-total-rule:${row.id}`, x1: tableLeft, y1: y, x2: tableRight, y2: y, stroke: rule.stroke, width: rule.width, owner: {}, part: "totalRule" }) : addLine(`cohort-total-rule:${row.id}`, tableLeft, y - totalGap / 2, tableRight, y - totalGap / 2, rule.width, rule.stroke, "totalRule"), rules.push({ t: "line", id: `cohort-total-rule-below:${row.id}`, x1: tableLeft, y1: y + rowH, x2: tableRight, y2: y + rowH, stroke: rule.stroke, width: rule.width, owner: {}, part: "totalRule" });
|
|
787
771
|
}
|
|
788
|
-
let rowGround = row.kind === "total" ? totalPaint : background, sizeText =
|
|
772
|
+
let rowGround = row.kind === "total" ? totalPaint : background, sizeText = baseFormatter(rowData, options)(row.base), nameRoom = Math.min(tableLeft + labelW - gap, showSize && !sizeAfterPeriods ? leftOf(sizeCellAlign, sizeAt(sizeCellAlign), measure(sizeText, rowFont).width) - 4 : 1 / 0) - tableLeft - rowNames[rowIndex].w;
|
|
789
773
|
if (addLabel(
|
|
790
774
|
`cohort-row:${row.id}`,
|
|
791
775
|
row.label,
|
|
@@ -799,7 +783,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
799
783
|
nameAlign === "start" || nameRoom <= 0 ? void 0 : nameAlign
|
|
800
784
|
), showSize) {
|
|
801
785
|
let sizeRect = { x: sizeLeft, y, w: sizeW, h: rowH }, sizeNodeId = `cohort-size:${row.id}`;
|
|
802
|
-
nodes.push({ t: "rect", id: sizeNodeId, rect: sizeRect, fill: rowGround, owner: { seriesId: row.id, categoryId: "cohort-size" }, part: "cohortSize", display: { value:
|
|
786
|
+
nodes.push({ t: "rect", id: sizeNodeId, rect: sizeRect, fill: rowGround, owner: { seriesId: row.id, categoryId: "cohort-size" }, part: "cohortSize", display: { value: baseFormatter(rowData, options)(row.base) } }), occupied.claim(sizeRect, "mark", { seriesId: row.id, categoryId: "cohort-size" }, "cohortSize"), marks.sizeCells.push({ rowId: row.id, rowLabel: row.label, value: row.base, rect: sizeRect, nodeId: sizeNodeId, kind: row.kind }), addLabel(
|
|
803
787
|
`cohort-size-label:${row.id}`,
|
|
804
788
|
sizeText,
|
|
805
789
|
measuredRect(sizeText, rowFont, sizeAt(sizeCellAlign), y, sizeCellAlign),
|
|
@@ -807,7 +791,11 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
807
791
|
{ token: "ink" },
|
|
808
792
|
{ seriesId: row.id, categoryId: "cohort-size" },
|
|
809
793
|
"point",
|
|
810
|
-
rowGround
|
|
794
|
+
rowGround,
|
|
795
|
+
void 0,
|
|
796
|
+
void 0,
|
|
797
|
+
void 0,
|
|
798
|
+
{ value: sizeText }
|
|
811
799
|
);
|
|
812
800
|
}
|
|
813
801
|
visible.forEach((period, column) => {
|
|
@@ -851,7 +839,9 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
851
839
|
paint,
|
|
852
840
|
void 0,
|
|
853
841
|
periodColumn?.flush ? "end" : void 0,
|
|
854
|
-
cellClaim(row, period)
|
|
842
|
+
cellClaim(row, period),
|
|
843
|
+
// A missing rate prints a dash: it states no value.
|
|
844
|
+
missing ? void 0 : { value: text }
|
|
855
845
|
);
|
|
856
846
|
});
|
|
857
847
|
}), averageBases) {
|
|
@@ -861,7 +851,7 @@ function buildExhibit(data, derived, visible, options, warnings, exclusion) {
|
|
|
861
851
|
addBlock(`cohort-average-base:t${period}`, baseLines[column], baseFont, columnAt(column, periodCellAlign), y, baseLineH, periodCellAlign, mutedInk, { seriesId: totalId, categoryId: `t${period}` }, "annotation");
|
|
862
852
|
return;
|
|
863
853
|
}
|
|
864
|
-
let text = chartString(options, "baseValue", { value:
|
|
854
|
+
let text = chartString(options, "baseValue", { value: baseFormatter(rowData, options)(averageBases[column]) }), measured = measure(text, baseFont);
|
|
865
855
|
addLabel(
|
|
866
856
|
`cohort-average-base:t${period}`,
|
|
867
857
|
text,
|
|
@@ -1069,9 +1059,9 @@ function layoutCohort(data, options = {}) {
|
|
|
1069
1059
|
pushAll(warnings, derivedWarnings);
|
|
1070
1060
|
let periodCount = allPeriods.periodCount, periodIds = Array.from({ length: periodCount }, (_, t) => `t${t}`), periodIndex = /* @__PURE__ */ new Map();
|
|
1071
1061
|
periodIds.forEach((id, t) => periodIndex.set(id, t));
|
|
1072
|
-
let periodNames = periodLabels(data.periodLabel, periodCount, options), everyPeriod = periodIds.map((_, t) => t), visible = normalizeVisiblePeriods(options.visiblePeriods, everyPeriod, warnings), shown = new Set(visible), derived = options.visiblePeriods === void 0 ? allPeriods : { ...allPeriods, visiblePeriods: visible }, visibleSpan = (row) => visible.filter((t) => t < row.observedPeriods), baseSuffix = /* @__PURE__ */ new Map();
|
|
1062
|
+
let periodNames = periodLabels(data.periodLabel, periodCount, options), everyPeriod = periodIds.map((_, t) => t), visible = normalizeVisiblePeriods(options.visiblePeriods, everyPeriod, warnings), shown = new Set(visible), derived = options.visiblePeriods === void 0 ? allPeriods : { ...allPeriods, visiblePeriods: visible }, visibleSpan = (row) => visible.filter((t) => t < row.observedPeriods), baseSuffix = /* @__PURE__ */ new Map(), baseText = ruleFormatter(derived.cohorts.map((row) => row.base), options.locale?.language, { cell: !0 });
|
|
1073
1063
|
for (let row of derived.cohorts)
|
|
1074
|
-
baseSuffix.set(row.id, `(n\xA0=\xA0${
|
|
1064
|
+
baseSuffix.set(row.id, `(n\xA0=\xA0${baseText(row.base)})`);
|
|
1075
1065
|
let cohortLabel = (index) => `${data.cohorts[index].label ?? data.cohorts[index].id} ${baseSuffix.get(derived.cohorts[index].id)}`, theme = resolveSemanticPaletteTheme(
|
|
1076
1066
|
chartTheme(options),
|
|
1077
1067
|
options.palette,
|
|
@@ -1082,7 +1072,7 @@ function layoutCohort(data, options = {}) {
|
|
|
1082
1072
|
), ANCHOR_PAINT = semanticPalettePaint(theme, options.palette, "neutral", 0.86), averagePaint = (r) => semanticPalettePaint(theme, options.palette, "neutralMark", rampTint(r)), cssOf = (paint) => paintColor(theme, paint), cellPaint = /* @__PURE__ */ new Map(), cellFor = (rowId, t, r, average) => {
|
|
1083
1073
|
if (r === null) return null;
|
|
1084
1074
|
let paint = t === 0 ? ANCHOR_PAINT : average ? averagePaint(r) : cohortPaint(r);
|
|
1085
|
-
return cellPaint.set(`cell:${rowId}:t${t}`, paint), { pct: r * 100, fill: cssOf(paint)
|
|
1075
|
+
return cellPaint.set(`cell:${rowId}:t${t}`, paint), { pct: r * 100, fill: cssOf(paint) };
|
|
1086
1076
|
}, reverseRows = segmentSort === "reverse", shownSupports = derived.averages?.flatMap((a, t) => !shown.has(t) || derived.cohorts.some((row) => missingCohortRate(row, t, basis)) ? [] : [{ support: a.support, t }]) ?? [], supports = shownSupports.map((a) => a.support), averageSupportSuffix = supports.length === 0 ? "" : supports[0] === supports[supports.length - 1] ? `(${chartString(options, "support", { count: String(supports[0]) })})` : `(${chartString(options, "supportRange", { first: String(supports[0]), last: String(supports[supports.length - 1]) })})`, averageLabel = [chartString(options, "weightedAverage"), averageSupportSuffix].filter(Boolean).join(" "), averageRow = derived.averages ? [
|
|
1087
1077
|
{
|
|
1088
1078
|
id: AVERAGE_ROW_ID,
|
|
@@ -1112,12 +1102,9 @@ function layoutCohort(data, options = {}) {
|
|
|
1112
1102
|
let inner = withAuthoredFootnotes({
|
|
1113
1103
|
...stripAnswered(options),
|
|
1114
1104
|
[HOST_CLAIMS]: hostClaims,
|
|
1115
|
-
//
|
|
1116
|
-
//
|
|
1117
|
-
|
|
1118
|
-
// fit a 24-column triangle where "55.2%" does not. The unrounded ratio
|
|
1119
|
-
// stays in `derived`, so precision is never lost, only display width.
|
|
1120
|
-
format: options.format ?? "12",
|
|
1105
|
+
// Without a format the shown rates are one percent set of cells, printed at
|
|
1106
|
+
// every width alike. The unrounded ratio stays in `derived`.
|
|
1107
|
+
format: options.format,
|
|
1121
1108
|
// Continuous ramp, in-cell values. Every cell carries an explicit fill
|
|
1122
1109
|
// from the pinned ramp above, so the engine's own observed-maximum anchor
|
|
1123
1110
|
// never reaches the ink.
|
|
@@ -1227,7 +1214,7 @@ function layoutCohort(data, options = {}) {
|
|
|
1227
1214
|
structureCount("cells", unobserved, chartString(options, "cells", { count: String(unobserved) })),
|
|
1228
1215
|
...derived.averages ? [derived.averages[visible[0]], derived.averages[visible.at(-1)]].flatMap((a) => a.value === null ? [] : [structureCount("cohorts", a.support, chartString(options, "support", { count: String(a.support) }))]) : []
|
|
1229
1216
|
],
|
|
1230
|
-
desc: describe(derived, periodNames, unobserved, options, visible)
|
|
1217
|
+
desc: describe(derived, periodNames, unobserved, options, visible, host.labels)
|
|
1231
1218
|
},
|
|
1232
1219
|
warnings
|
|
1233
1220
|
};
|
|
@@ -1312,13 +1299,19 @@ function shownNotMeaningful(data, derived, visible, phrases) {
|
|
|
1312
1299
|
return from === void 0 ? [] : [`'${data.cohorts[index].label ?? row.id}' from period ${from}`];
|
|
1313
1300
|
});
|
|
1314
1301
|
}
|
|
1315
|
-
function describe(derived, periodNames, unobserved, options, visible) {
|
|
1316
|
-
let first = derived.cohorts[0], last = derived.cohorts[derived.cohorts.length - 1],
|
|
1302
|
+
function describe(derived, periodNames, unobserved, options, visible, labels) {
|
|
1303
|
+
let first = derived.cohorts[0], last = derived.cohorts[derived.cohorts.length - 1], cellText = (rowId, t) => {
|
|
1304
|
+
let label = labels.find((item) => item.owner.seriesId === rowId && item.owner.categoryId === `t${t}` && item.shows?.value !== void 0);
|
|
1305
|
+
return label && (label.hidden === void 0 || options.format !== void 0) ? label.shows.value : void 0;
|
|
1306
|
+
}, shownRates = [
|
|
1307
|
+
...visible.flatMap((t) => derived.averages?.[t]?.value ?? []),
|
|
1308
|
+
...derived.cohorts.flatMap((row) => visible.flatMap((t) => t < row.observedPeriods && row.retention[t] != null ? [row.retention[t]] : []))
|
|
1309
|
+
].map((r) => r * 100), rateSpec = defaultSetSpec(shownRates, options.locale?.language, void 0, { kind: "percent", cell: !0 }), pct = (v, rowId, t) => (rowId === void 0 || t === void 0 ? void 0 : cellText(rowId, t)) ?? `${formatWithSpec(v * 100, rateSpec)}%`, at = (index) => {
|
|
1317
1310
|
let row = derived.cohorts[index], t = derived.visiblePeriods === void 0 ? row.observedPeriods - 1 : visible.filter((period) => period < row.observedPeriods).at(-1);
|
|
1318
1311
|
if (t === void 0) return chartString(options, "atPeriod", { value: chartString(options, "notReached"), period: periodNames[visible[0]] });
|
|
1319
1312
|
let r = row.retention[t] ?? null;
|
|
1320
|
-
return r === null ? chartString(options, "atPeriod", { value: chartString(options, missingCohortRate(row, t, derived.basis) ? "missing" : "notMeaningful"), period: periodNames[t] }) : chartString(options, "atPeriod", { value: pct(r), period: periodNames[t] });
|
|
1321
|
-
}, average = (a, t) => a.value === null ? derived.cohorts.some((row) => missingCohortRate(row, t, derived.basis)) ? chartString(options, "missingAt", { period: periodNames[t] }) : chartString(options, "blankAverage") : chartString(options, "valueSupport", { value: pct(a.value), count: String(a.support) }), basisWord = cohortFormula(options, derived.basis);
|
|
1313
|
+
return r === null ? chartString(options, "atPeriod", { value: chartString(options, missingCohortRate(row, t, derived.basis) ? "missing" : "notMeaningful"), period: periodNames[t] }) : chartString(options, "atPeriod", { value: pct(r, row.id, t), period: periodNames[t] });
|
|
1314
|
+
}, average = (a, t) => a.value === null ? derived.cohorts.some((row) => missingCohortRate(row, t, derived.basis)) ? chartString(options, "missingAt", { period: periodNames[t] }) : chartString(options, "blankAverage") : chartString(options, "valueSupport", { value: pct(a.value, AVERAGE_ROW_ID, t), count: String(a.support) }), basisWord = cohortFormula(options, derived.basis);
|
|
1322
1315
|
return chartString(options, "descStart", { measure: cohortMeasure(options).toLocaleLowerCase(options.locale?.language ?? "en"), cohorts: String(derived.cohorts.length), periods: String(visible.length), formula: basisWord }) + chartString(options, visible.includes(0) ? "descReach" : "descReachShown", { first: at(0), last: at(derived.cohorts.length - 1) }) + chartString(options, "descBlank", { count: String(unobserved) }) + (derived.averages ? chartString(options, "descAverage", { first: average(derived.averages[visible[0]], visible[0]), last: average(derived.averages[visible.at(-1)], visible.at(-1)) }) : "") + chartString(options, "descBases", { first: String(first.base), last: String(last.base) });
|
|
1323
1316
|
}
|
|
1324
1317
|
|