boardplot 0.58.2 → 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 +61 -0
- package/dist/{ReaderBox-WVOT7VVJ.js → ReaderBox-4PNFZO56.js} +4 -4
- package/dist/{annotateEngine-IJ7RDLUI.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-DZUF4V4F.js → chunk-266ENWFM.js} +3 -3
- package/dist/{chunk-FRR7BJ3B.js → chunk-2E2MK4XM.js} +2 -2
- package/dist/{chunk-K5LIUWJO.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-JQSDRXLX.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-LX6X33C7.js → chunk-3WFJDXZO.js} +3 -3
- package/dist/{chunk-OGWZT3PH.js → chunk-3ZR7ZE64.js} +2 -2
- package/dist/{chunk-UISHXPGJ.js → chunk-4DLIXTDH.js} +5 -5
- package/dist/{chunk-FL57NWM7.js → chunk-4EEK4AMC.js} +2 -2
- package/dist/{chunk-5OBA4IKC.js → chunk-4LCQO46F.js} +144 -55
- package/dist/{chunk-DXNVL67C.js → chunk-4NIIQFDA.js} +147 -104
- package/dist/{chunk-ED7GLWTF.js → chunk-4PKUS5MG.js} +2 -1
- package/dist/{chunk-ECL7CSPJ.js → chunk-4WH2YGO6.js} +3 -3
- package/dist/{chunk-MXUPMGRY.js → chunk-4YKS2JDE.js} +3 -3
- package/dist/{chunk-ZQHMZUFD.js → chunk-4YZQY3AA.js} +1 -1
- package/dist/{chunk-ZDITBL4Z.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-DIN62FP4.js → chunk-5UXK5BAA.js} +37 -38
- package/dist/{chunk-7Q4T5TPZ.js → chunk-5YULK4DY.js} +6 -10
- package/dist/{chunk-QRIEJAM5.js → chunk-5ZE7SHRM.js} +3 -3
- package/dist/{chunk-KNT3GSVB.js → chunk-67744WKZ.js} +1 -1
- package/dist/{chunk-HTY6XK32.js → chunk-6CZGFTGK.js} +51 -47
- package/dist/{chunk-FVQRFBOP.js → chunk-6IIYLDSQ.js} +3 -3
- package/dist/{chunk-U5CBQHTX.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-IU2PONEI.js → chunk-7IONS4Z7.js} +3 -3
- package/dist/{chunk-ETUKDEGL.js → chunk-7QUWM5W6.js} +6 -6
- package/dist/{chunk-24PMVRVW.js → chunk-7SIZGM5S.js} +78 -53
- package/dist/{chunk-QVLHI3BE.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-U5D5NUFA.js → chunk-7YJSSPQX.js} +31 -28
- package/dist/{chunk-4GKVFHJH.js → chunk-7ZXIHEZS.js} +4 -4
- package/dist/{chunk-FJA5EUE7.js → chunk-A3SOYL6F.js} +3 -3
- package/dist/{chunk-CAE6E3NW.js → chunk-ADLKZEML.js} +31 -64
- package/dist/{chunk-KNGC2STY.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-D3UPBA4R.js → chunk-AUSZDYGE.js} +9 -7
- package/dist/{chunk-ZUG7EYEM.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-COQSFON4.js → chunk-BJJYNTVJ.js} +1 -1
- package/dist/{chunk-NS4SBO47.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-JDLT4YV6.js → chunk-CV5KCQD3.js} +72 -79
- package/dist/{chunk-QRQFHNRF.js → chunk-CX7WUNMO.js} +22 -18
- package/dist/{chunk-YWPBYL6P.js → chunk-DANKUHCX.js} +41 -40
- package/dist/{chunk-IDXYHDQY.js → chunk-DBKMJWPO.js} +1 -1
- package/dist/{chunk-K672I6R6.js → chunk-DEJ27Y2P.js} +138 -91
- package/dist/{chunk-HTQGJQZN.js → chunk-DITI57ZB.js} +1 -1
- package/dist/{chunk-WRI44CHA.js → chunk-DO7MMF4C.js} +86 -43
- package/dist/{chunk-NTUTJY33.js → chunk-DUDVHQD6.js} +7 -7
- package/dist/{chunk-RKPN6KN7.js → chunk-DXLWMK24.js} +3 -3
- package/dist/{chunk-DQECTZPF.js → chunk-DYD7W3Y6.js} +15 -16
- package/dist/{chunk-AU5PXIE3.js → chunk-DZBT7AWJ.js} +2 -2
- package/dist/{chunk-I7V6LXHD.js → chunk-E4KHHC46.js} +16 -16
- package/dist/{chunk-K2AOKBGW.js → chunk-E62SXDRT.js} +2 -2
- package/dist/{chunk-BAT77TKB.js → chunk-EADD6NNQ.js} +73 -79
- package/dist/{chunk-CMPHT2LS.js → chunk-EH23CIC5.js} +4 -4
- package/dist/{chunk-DTIV2NIZ.js → chunk-EJA5EANI.js} +47 -26
- package/dist/{chunk-VZWIRNQ4.js → chunk-EWGFOEJB.js} +126 -65
- package/dist/{chunk-SVPSNDLL.js → chunk-EWMPUCIG.js} +37 -37
- package/dist/{chunk-H6WX7J5M.js → chunk-EZ5KUBYF.js} +38 -27
- package/dist/{chunk-IUEUVLT3.js → chunk-F2N5BUBK.js} +12 -13
- package/dist/{chunk-VJ7VBB6S.js → chunk-F7QCIJAY.js} +1 -1
- package/dist/{chunk-ANKBTBWD.js → chunk-FB36HSY2.js} +4 -4
- package/dist/{chunk-F3XOBFS4.js → chunk-FBIMTKYK.js} +3 -10
- package/dist/{chunk-4NEXP7IB.js → chunk-FMVXXKSW.js} +3 -3
- package/dist/{chunk-GOJI2HVL.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-L3BVYKA6.js → chunk-GDE2JINW.js} +11 -11
- package/dist/{chunk-RLB7QCTK.js → chunk-GEEHXLFQ.js} +7 -6
- package/dist/{chunk-S6XM22RZ.js → chunk-GGFT6IIM.js} +3 -3
- package/dist/{chunk-KTOWOMQP.js → chunk-GIJM4MP4.js} +5 -5
- package/dist/{chunk-UY34DDUM.js → chunk-GNK7RTO4.js} +3 -3
- package/dist/{chunk-BAOUMAH6.js → chunk-GSHRYDJM.js} +1 -1
- package/dist/{chunk-RXDCT5TD.js → chunk-GWDKUKOJ.js} +96 -321
- package/dist/{chunk-XMX4PCFL.js → chunk-GZYMHC44.js} +2 -2
- package/dist/{chunk-RK5JTZFI.js → chunk-HBKZC5BH.js} +2 -2
- package/dist/{chunk-WXMH66N5.js → chunk-HC4UW7MB.js} +4 -4
- package/dist/{chunk-ZRI6VYNF.js → chunk-HFDU2E7C.js} +27 -21
- package/dist/{chunk-M6PYA4FO.js → chunk-HW67YGJC.js} +1 -1
- package/dist/{chunk-C4DN27QI.js → chunk-I65BCUVH.js} +3 -3
- package/dist/{chunk-SHFXHUKJ.js → chunk-ICERP2YF.js} +3 -3
- package/dist/{chunk-KG7LKHD7.js → chunk-ICJUN47O.js} +2 -2
- package/dist/{chunk-QMUCI2UU.js → chunk-ID5PE4KM.js} +3 -3
- package/dist/{chunk-DOYJ2O2C.js → chunk-IDJVUZAA.js} +3 -3
- package/dist/{chunk-WDDPQUT2.js → chunk-IQRRT32Q.js} +2 -2
- package/dist/{chunk-WHIO5L6Z.js → chunk-ISMFUWOP.js} +3 -3
- package/dist/{chunk-4X7FNGGM.js → chunk-IX2SLULO.js} +3 -3
- package/dist/{chunk-4G5QQ5TH.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-UK5LXRUN.js → chunk-JIB74SQS.js} +6 -6
- package/dist/{chunk-ZIVCPXXL.js → chunk-JOX252XQ.js} +5 -5
- package/dist/{chunk-YC6W7EVG.js → chunk-JRM22ULA.js} +54 -45
- package/dist/{chunk-V5CWUATF.js → chunk-JYSS5ZZF.js} +5 -5
- package/dist/{chunk-OJ5CCTNY.js → chunk-KRIYGX3N.js} +3 -3
- package/dist/{chunk-XRRG4MBM.js → chunk-KWMQNKGX.js} +2 -2
- package/dist/{chunk-4EDPXQR7.js → chunk-LADFOYH7.js} +40 -27
- package/dist/{chunk-P6KEM5N7.js → chunk-LC4KDLUE.js} +3 -3
- package/dist/{chunk-SAMTYEWB.js → chunk-LLECS747.js} +4 -4
- package/dist/{chunk-XO4DJM33.js → chunk-LM4GVVPM.js} +16 -10
- package/dist/{chunk-EHRRHSPV.js → chunk-LPLRXEOT.js} +55 -19
- package/dist/{chunk-S4L7LXWX.js → chunk-M2FF4IPF.js} +16 -7
- package/dist/{chunk-4JGBCBDZ.js → chunk-MF6XGFHB.js} +1 -1
- package/dist/{chunk-O3U6IOIO.js → chunk-MOBRWYUQ.js} +2 -2
- package/dist/{chunk-CDUR3KWV.js → chunk-MOPY5REE.js} +2 -2
- package/dist/{chunk-LLEDONMT.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-NM6IWRTB.js → chunk-NIL6TYAN.js} +4 -4
- package/dist/{chunk-VGEHOB25.js → chunk-NPDF7HEH.js} +2 -2
- package/dist/{chunk-JMMKOICP.js → chunk-NUASZPS7.js} +1 -1
- package/dist/{chunk-QI47HSZD.js → chunk-NWUEA42V.js} +3 -3
- package/dist/{chunk-O4FCIOOY.js → chunk-NZGQLR4X.js} +8 -8
- package/dist/{chunk-TRGQLVJV.js → chunk-O32L5FK2.js} +3 -3
- package/dist/{chunk-DJRPY7AR.js → chunk-O623CYPA.js} +3 -3
- package/dist/{chunk-7OZCLJAG.js → chunk-OJR5GPCN.js} +3 -3
- package/dist/{chunk-C47POAC5.js → chunk-OL6HVC6K.js} +1 -1
- package/dist/{chunk-3MGXQARA.js → chunk-OM5MAJST.js} +68 -57
- package/dist/{chunk-CLJWE3JQ.js → chunk-OTOASFG4.js} +92 -35
- package/dist/{chunk-KF2HYUXN.js → chunk-P3N74SZ5.js} +3 -3
- package/dist/{chunk-J3GUMT27.js → chunk-PHQGGR5O.js} +3 -3
- package/dist/{chunk-YQZCMPN7.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-CRTRY3IQ.js → chunk-QDFX2KAP.js} +2 -2
- package/dist/{chunk-RAPIBQ6W.js → chunk-QKDDGDRF.js} +10 -10
- package/dist/{chunk-P2WZQQCC.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-BYPUPHRW.js → chunk-REIIGIJG.js} +3 -3
- package/dist/{chunk-K4OR5AP5.js → chunk-RF2REMRV.js} +6 -6
- package/dist/{chunk-3MFVJMP6.js → chunk-RF6ZHX5F.js} +1 -1
- package/dist/{chunk-AYIK7HVV.js → chunk-RLX6VODQ.js} +9 -2
- package/dist/{chunk-KWIP5YRA.js → chunk-RPS7G77V.js} +3 -3
- package/dist/{chunk-LBCSRQGW.js → chunk-RSDGBNXP.js} +5 -5
- package/dist/{chunk-MP5UOUGM.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-V7MFF5A4.js → chunk-SE6LBMRJ.js} +137 -62
- package/dist/{chunk-MCRRURTO.js → chunk-SFRMBCVY.js} +3 -3
- package/dist/{chunk-UUK73ZCT.js → chunk-SNJ3FZXC.js} +14 -12
- package/dist/{chunk-H7GFUA6G.js → chunk-SXCFMPNM.js} +3 -3
- package/dist/{chunk-SGDWLXUC.js → chunk-SY7JC3PH.js} +1 -1
- package/dist/{chunk-UXPR6TEZ.js → chunk-T4CFY4YT.js} +4 -4
- package/dist/{chunk-5SVGTQTW.js → chunk-TASEX7VA.js} +1 -1
- package/dist/{chunk-UB7LT72S.js → chunk-TCWJQIVQ.js} +123 -71
- package/dist/{chunk-SFBB4GVQ.js → chunk-TEZWFQB7.js} +6 -6
- package/dist/{chunk-GHCU6OSE.js → chunk-TLKRYDH3.js} +2 -2
- package/dist/{chunk-MH6MGYPS.js → chunk-TMVERETB.js} +23 -332
- package/dist/{chunk-5LPLVLLA.js → chunk-TQFBLSZJ.js} +44 -27
- package/dist/{chunk-5FOB6QGF.js → chunk-U4WG46QP.js} +117 -43
- package/dist/{chunk-LJDATBPB.js → chunk-U75MMLNQ.js} +3 -6
- package/dist/{chunk-SB7MASJU.js → chunk-UFGJNSSL.js} +1 -1
- package/dist/{chunk-FB6X7QHA.js → chunk-UGHJHJKY.js} +1 -1
- package/dist/{chunk-MIJPESMQ.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-OCPVQZCC.js → chunk-UV77Y7QK.js} +11 -5
- package/dist/{chunk-PMT75APP.js → chunk-UXJXA4NP.js} +1 -1
- package/dist/{chunk-CPPFF3OB.js → chunk-UZDQFUHO.js} +3 -3
- package/dist/{chunk-S3I6F4IO.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-YFQW73AV.js → chunk-VLMKGQ33.js} +13 -13
- package/dist/{chunk-3AWE5535.js → chunk-VMLVZW4F.js} +39 -36
- package/dist/{chunk-YT5MTKED.js → chunk-VT6PDWUA.js} +78 -78
- package/dist/{chunk-GQYT7G4F.js → chunk-VTUSC24F.js} +2 -2
- package/dist/{chunk-NMQH4S2F.js → chunk-VVWTD4XP.js} +9 -9
- package/dist/{chunk-OQA3DJH4.js → chunk-VZVPN7NT.js} +3 -3
- package/dist/{chunk-Z3WQXVFV.js → chunk-W4ZLMK6Z.js} +1 -1
- package/dist/{chunk-LOFR5HOQ.js → chunk-W6NEWQZU.js} +20 -18
- package/dist/{chunk-DZYTXZNS.js → chunk-WD5NJHZG.js} +2 -2
- package/dist/{chunk-2WQSH3HV.js → chunk-WTH3KQDM.js} +2 -2
- package/dist/{chunk-UQBNY2UU.js → chunk-WTWM4RK6.js} +1 -1
- package/dist/{chunk-XJC37XXA.js → chunk-WZNO3LUF.js} +3 -3
- package/dist/{chunk-GQ3CMAOD.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-IJU5PAIS.js → chunk-XETSLYFD.js} +3 -3
- package/dist/{chunk-Z7EAEWR3.js → chunk-XFDNAR4S.js} +16 -27
- package/dist/{chunk-IXQNKI6G.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-ESSNZ3VQ.js → chunk-XMII3G47.js} +3 -3
- package/dist/{chunk-QNEVEBIR.js → chunk-XRPZJDAK.js} +101 -72
- package/dist/{chunk-IPBOREIY.js → chunk-XUEX5WTR.js} +1 -1
- package/dist/{chunk-ZYCB2CJJ.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-36RTBB37.js → chunk-XWUHUTXX.js} +24 -18
- package/dist/{chunk-AIU3Y4L5.js → chunk-XXYV5UEM.js} +50 -49
- package/dist/{chunk-KVIWD6MV.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-46JPQLR2.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-F6IPP33V.js → chunk-YM4MVABU.js} +56 -24
- package/dist/{chunk-GOFS336W.js → chunk-YM7MO7WI.js} +1 -1
- package/dist/{chunk-A64R244B.js → chunk-YOUYJHW3.js} +3 -3
- package/dist/{chunk-Z7LBIXNV.js → chunk-YPELB4Q7.js} +3 -3
- package/dist/{chunk-HXGSNLIW.js → chunk-YRCIG4IO.js} +8 -7
- package/dist/{chunk-B6BEPKEE.js → chunk-ZIQR2CNM.js} +7 -7
- package/dist/{chunk-ZHGFJL3O.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-VA3SBRCT.js → core-2PT7IROA.js} +2 -1
- package/dist/{core-JDNTWP3D.js → core-34YTH4KN.js} +1 -1
- package/dist/{core-VVHFCKCO.js → core-4ZEVWU43.js} +1 -1
- package/dist/{core-QWG23TDT.js → core-64EHPUVV.js} +1 -1
- package/dist/{core-SQUKC752.js → core-6KO5AEUH.js} +1 -1
- package/dist/{core-Y7Q7FR65.js → core-7WLD237S.js} +1 -1
- package/dist/{core-TBPO7LER.js → core-A2MERE3C.js} +1 -1
- package/dist/{core-PARPIO5L.js → core-AVNB2Q3G.js} +2 -1
- package/dist/{core-DIVRGZGD.js → core-B7KOBTRL.js} +1 -1
- package/dist/{core-HEQ4MJA5.js → core-BOOD7ZUQ.js} +1 -1
- package/dist/{core-QRRWZUTR.js → core-BOU34T23.js} +1 -1
- package/dist/{core-G2TWJHKM.js → core-BQ2I77OF.js} +2 -1
- package/dist/{core-6YHAYDG2.js → core-BSEXRZD6.js} +1 -1
- package/dist/{core-DSI2ZK5C.js → core-CXEEM26F.js} +1 -1
- package/dist/{core-YMX3VETP.js → core-EHMPBG6Q.js} +1 -1
- package/dist/{core-B3AVFEWH.js → core-FXC4TB2K.js} +1 -1
- package/dist/{core-PJHQY3CR.js → core-HMS72VO6.js} +1 -1
- package/dist/{core-LZF7CC2E.js → core-I2GPMB2B.js} +1 -1
- package/dist/{core-PL2T5XOC.js → core-IQC6H4A7.js} +1 -1
- package/dist/{core-HKKPL444.js → core-IYEFTP6C.js} +1 -1
- package/dist/{core-HWDAFGAI.js → core-J2QTOU4D.js} +1 -1
- package/dist/{core-FS3AFDBX.js → core-JJLIPTEW.js} +1 -1
- package/dist/{core-I23MMHHJ.js → core-LCP44UYI.js} +1 -2
- package/dist/{core-Y74GS6HN.js → core-MBNVENCZ.js} +1 -1
- package/dist/{core-VZT7F5AI.js → core-MVIK7FAJ.js} +2 -1
- package/dist/{core-FKW6RSGU.js → core-N4OKPNXQ.js} +1 -1
- package/dist/{core-7K35DCB7.js → core-Q4IILTGO.js} +1 -1
- package/dist/{core-WXPK24YD.js → core-QCPDOQEJ.js} +2 -1
- package/dist/{core-7UMZLBSB.js → core-RVTF336C.js} +1 -1
- package/dist/{core-JWYT46N3.js → core-VGMMKEU4.js} +1 -1
- package/dist/{core-PVD4MX3R.js → core-VUVJOMUC.js} +1 -1
- package/dist/{core-3TLA5IU3.js → core-VWISBHXE.js} +1 -1
- package/dist/{core-LCK3P3DS.js → core-W3UBWZR3.js} +1 -1
- package/dist/{core-XYTCGP3I.js → core-XYQRB5WF.js} +1 -1
- package/dist/{core-SVIYWQVR.js → core-Y6DJHIYT.js} +1 -1
- package/dist/{core-NRNTVPSJ.js → core-YHWVJULU.js} +1 -1
- package/dist/{core-RHYZULNG.js → core-YJXOVNIE.js} +1 -1
- package/dist/{dataTable-HTQMPQB6.js → dataTable-3ZK3ZEZP.js} +3 -2
- package/dist/{engine-RHDMQS7T.js → engine-FSWLRWZR.js} +19 -17
- package/dist/fixtures.js +1 -1
- package/dist/index.js +14 -13
- package/dist/{main-7SMEJF5Q.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-YBW6OQUZ.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-YRLZRQ2F.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-FYY72W63.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-PWS6G27I.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 +12 -6
- 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-RYFRYLU6.js +0 -89
- package/dist/chunk-VAR3DPXR.js +0 -125
- 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
package/docs/reference/table.md
CHANGED
|
@@ -66,13 +66,12 @@ Consulting-grade table: hierarchy with honest totals (derive/validate/source), t
|
|
|
66
66
|
| columns[].headAlign (columns[] branch 1 \| columns[] branch 2 \| columns[] branch 3 \| columns[] branch 4 \| columns[] branch 5 \| columns[] branch 6 \| columns[] branch 7) | string | | Head alignment; defaults to align. One of `'left'`, `'right'`, `'center'`. |
|
|
67
67
|
| columns[].emphasis (columns[] branch 1 \| columns[] branch 2 \| columns[] branch 3 \| columns[] branch 4 \| columns[] branch 5 \| columns[] branch 6 \| columns[] branch 7) | string | | Header and cell emphasis. 'strong' sets the header and its cells to the emphasis weight (700 by default), 'muted' paints them in the muted ink. A strong column is measured in the bold weight; muted is paint only. One of `'strong'`, `'muted'`. |
|
|
68
68
|
| columns[].band (columns[] branch 1 \| columns[] branch 2 \| columns[] branch 3 \| columns[] branch 4 \| columns[] branch 5 \| columns[] branch 6 \| columns[] branch 7) | boolean | | Column band ground. Neighbouring banded columns read as one block and the first of the run takes the left hairline, so a block inside a column group needs no group of its own. Paint only. |
|
|
69
|
-
| columns[].fitFormat (columns[] branch 1 \| columns[] branch 2 \| columns[] branch 3 \| columns[] branch 4 \| columns[] branch 5 \| columns[] branch 6 \| columns[] branch 7) | false | | false: options.fitFormats leaves this column's format as authored. One of `false`. |
|
|
70
69
|
| columns[].noteLine (columns[] branch 1 \| columns[] branch 2 \| columns[] branch 3 \| columns[] branch 4 \| columns[] branch 5 \| columns[] branch 6 \| columns[] branch 7) | boolean | | Notes below figures. They use the inline step in muted ink. Default false keeps the note inline after the figure, where a 90 px block track cuts it off; a steering block column says sum under its year-to-date figure. The note takes the first line slot whose change line holds no value in that cell, and where every line holds one, or the row prints none, the row grows by one inline line. |
|
|
71
70
|
| columns[].kind (columns[] branch 1) | string | yes | Kind. One of `'rowLabel'`. |
|
|
72
71
|
| columns[].maxWidth (columns[] branch 1) | number | | Label width cap in px. Includes indent and affix; explicit width wins. |
|
|
73
72
|
| columns[].maxTextWidth (columns[] branch 1) | number | | Caps how much the label text adds to the column width, in px. The indent, the unit affix and the collapsed hint come on top of it. It is not a hard cap: when the header or another row makes the column wider, labels use that room. Ignored when width is set; maxWidth still caps the whole track. |
|
|
74
73
|
| columns[].kind (columns[] branch 2) | string | yes | Kind. One of `'value'`. |
|
|
75
|
-
| columns[].format (columns[] branch 2 \| columns[] branch 3) | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor.
|
|
74
|
+
| columns[].format (columns[] branch 2 \| columns[] branch 3) | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. The format's unit, $M for '$1.2m', prints once beside subtitle.measure when every value column shares it; without a measure, or with mixed units, each value head carries it, as 'Q1 ($M)'. unitShown true drops it from the heads too. |
|
|
76
75
|
| columns[].scenario (columns[] branch 2) | string | | Header scenario: AC, PY, PL or FC. LY means PY (last year); codes accept any case. One of `'AC'`, `'PY'`, `'PL'`, `'FC'`. |
|
|
77
76
|
| columns[].polarity (columns[] branch 2 \| columns[] branch 3) | string | | Which sign is favorable. Judgment tones and directional encodings read it. One of `'higherIsBetter'`, `'lowerIsBetter'`. |
|
|
78
77
|
| columns[].materiality (columns[] branch 2 \| columns[] branch 3) | object | | Mute tones where the printed figure is below this threshold; keep values visible. |
|
|
@@ -158,12 +157,11 @@ Consulting-grade table: hierarchy with honest totals (derive/validate/source), t
|
|
|
158
157
|
| rows[].calc.of.row (rows[].calc branch 7) | string | yes | Row id. |
|
|
159
158
|
| rows[].calc.of.col (rows[].calc branch 7) | string | | Column id. Omitted means the column being evaluated. |
|
|
160
159
|
| rows[].calc.of.previous (rows[].calc branch 7) | true | | Prior member in this group. The first member is n/a. One of `true`. |
|
|
161
|
-
| rows[].format | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor.
|
|
160
|
+
| rows[].format | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. On a row: a calc row (and an inline row) prints its result through it everywhere, so a MoM subrow prints +1.2% in a money column; a data row prints its cells through it on every column that names no format of its own, so KPI rows carry their own units across month columns. A computed column that is not additive (percent change, share, multiply, divide) keeps its own kind: a data row's format does not reach it. |
|
|
162
161
|
| rows[].polarity | string | | Row judgment direction. It overrides the column polarity in every column that judges a change, and judges every cell of a calc or inline row; a level column without a polarity stays uncoloured. A table that colours both directions prints a note naming the rows that read the other way. One of `'higherIsBetter'`, `'lowerIsBetter'`. |
|
|
163
162
|
| rows[].inline | true | | Line below the parent value. Its row label stays on that baseline; it has no row of its own. Requires relation 'displayOnly'. Its values carry data-id cellline:<parentRow>:<column>:<line> (not cell:<row>:<column>). Scene-ID components escape % as %25 and : as %3A. Authored IDs stay unchanged. One of `true`. |
|
|
164
163
|
| rows[].inlineGroup | string | | Which switch hides this line. Rows that share a group hide together; the default is the row id. |
|
|
165
164
|
| rows[].scale | string | | Row precision. The max absolute value uses only cells without a cell or column format. Money: 1 decimal in k at max >= 1000, else whole units; it climbs k, M, B by its largest value unless options.magnitude is thousand or million, which a money row follows (whole thousands from 100,000 up). Per unit: fractional values keep authored precision. Without a format, start whole at max >= 10, else 1 decimal, then raise precision for rounding error above 1%, up to 20 decimals. Integer-only rows keep those defaults. It overrides table magnitude. Currency goes in unitAffix. Scaled money and automatic count rows add decimals for rounding error above 1%, up to 20; held whole thousands stay whole. Nonzero stays nonzero. Count/percent keep format. One of `'money'`, `'perUnit'`, `'count'`, `'percent'`. |
|
|
166
|
-
| rows[].fitFormat | false | | false: options.fitFormats leaves this row's format as authored. One of `false`. |
|
|
167
165
|
| rows[].unitAffix | string | | Unit beside the row label. Muted ink on the same line: $M, # orders. It takes no second line, so the change lines under the label stay level with the ones under the values. A forced options.magnitude overrides it with the scale letter it hoists out of this row's cells. |
|
|
168
166
|
| rows[].missing | string | | Row gap glyph. 'blank' leaves a MISSING cell of this row empty, 'dash' prints the em dash; omitted, the row takes options.nulls. Set it on a change line with no value in a block column, so that slot stays empty while the real gaps keep their dash. The explicit states na, nm and suppressed keep their glyphs. One of `'blank'`, `'dash'`. |
|
|
169
167
|
| rows[].spacer | number | | Gap before the row in px; the first drawn row takes none. |
|
|
@@ -184,7 +182,7 @@ Consulting-grade table: hierarchy with honest totals (derive/validate/source), t
|
|
|
184
182
|
| rows[].cells.*.state | string | | Explicit non-value state; 'na' → n/a · 'nm' → n.m. · 'suppressed' → — with footnote · 'open' → a period still to come, empty on the band ground. Distinct from null (missing → '—'). One of `'na'`, `'nm'`, `'suppressed'`, `'open'`. |
|
|
185
183
|
| rows[].cells.*.missing | string | | Override the missing glyph for this cell. blank leaves no glyph; dash uses the theme missing glyph. One of `'blank'`, `'dash'`. |
|
|
186
184
|
| rows[].cells.*.heat | false | | Keeps the cell out of its heat lane. false draws it unshaded in the muted ink and leaves it out of the range (a calendar M0 diagonal). One of `false`. |
|
|
187
|
-
| rows[].cells.*.format | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor.
|
|
185
|
+
| rows[].cells.*.format | string | | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. On a cell: a value or computed cell prints through its own format, ahead of its row's and its column's. A YoY column in '+1.2%' prints the change of a share KPI in points with '+1.2pp' on that one cell. The text, the hover card, the accessible table and the width fitting all use it. |
|
|
188
186
|
| rows[].children | array | | Child rows; normalized to parentId. |
|
|
189
187
|
| levelNouns | array | | Child nouns by level. Indexed by the level they name: levelNouns[1] names level-1 children. A collapsed parent appends "· 4 markets" only where the noun is authored — nothing is invented. |
|
|
190
188
|
| levelNouns[].one | string | yes | Singular noun, e.g. "market". |
|
|
@@ -249,7 +247,6 @@ Consulting-grade table: hierarchy with honest totals (derive/validate/source), t
|
|
|
249
247
|
| cellPadX | number | | | Horizontal cell padding in px. Default 12; only when it cannot fit, use 5 for 20–24 columns or 3 for 25 or more. |
|
|
250
248
|
| groupRule | string | `'label'`, `'span'` | `'span'` | Heading rule. 'span' (default) rules every column of the group, so it shows which columns the heading covers; 'label' underlines the heading text alone. |
|
|
251
249
|
| groupAlign | string | `'left'`, `'center'`, `'right'` | `'center'` | Heading position. 'center' (default) centres the heading over its columns; in the React grid a group wider than the visible scroll area starts its heading at the first column, and the heading stays in view while the group scrolls. 'left' always starts it at the first column, 'right' ends it at the last. A heading wider than its columns starts at the first column. |
|
|
252
|
-
| fitFormats | boolean | | | Fit figures to authored widths. Remove decimals, then use the next unit up. |
|
|
253
250
|
| maxGrowth | number \| false | `false` (or another value of its type) | `2.5` | Value-track growth cap; default 2.5, false removes the cap. Applies to SVG and React frame fill; the label track takes the remaining width. Also caps React container fit growth. |
|
|
254
251
|
| labelIndent | object | | | Tree indent from row edge. Absent: cell air without marks; cell air plus 24 with outlineMarks: true or interactive fold buttons. Then 16 per rung. |
|
|
255
252
|
| labelIndent.base | number | | | Level-0 start from row edge, padding included. |
|
|
@@ -491,7 +488,7 @@ Under `rowExtent: "frame"` the rows reach the frame edge, and `frameFill` (defau
|
|
|
491
488
|
|
|
492
489
|
A change line prints its authored format as authored: `+1.2k` prints `+1.4k`, `−0.4k` and `0.0k` for 1350, −360 and 10, and a signed or inline row never gets extra decimals. A level row keeps "nonzero stays nonzero", so a small money or count figure does not print as 0.
|
|
493
490
|
|
|
494
|
-
|
|
491
|
+
A figure prints the same text at every width. A value track with an authored `width` widens to hold its widest figure and warns `table-column-widened`. Below the smallest width of the table, the CLI and MCP tool refuse the size and name the width it needs, and React scrolls. To print fewer digits, write a shorter format example, such as `$1.2M` for `$1.23M`. `options.fitFormats` and `fitFormat` on a row or a column are retired and ignored with an `option-deprecated` warning. An authored format prints in its own magnitude: `$1.2k` prints 2,496,000 as 2,496.0 thousand, never as `$2.5M`.
|
|
495
492
|
|
|
496
493
|
A table with no data row (no row at all, or only section headings and totals) keeps its head and draws one quiet row under it that says "No data to show." Folds and `rootsHidden` do not make a table empty. React calls `onEmpty` once, and `strings.emptyMessage` words the row; the static SVG draws the default wording. `canDraw(request)` answers `{ ok: false, code: "empty-data" }` for the same table, so a host can hide the card before it renders. `dimswitch` takes `onEmpty` too; it is empty only when it has no measure.
|
|
497
494
|
|
|
@@ -556,7 +553,7 @@ Below the floor a render is refused with `size-below-floor` and the pixels it ne
|
|
|
556
553
|
| table-frame-open-end | example | Rows that end on the card edge, with no end hairline and a light close |
|
|
557
554
|
| steering-hover-history | example | A year-to-date block whose hover card draws the fiscal years the table hides |
|
|
558
555
|
| group-span-row-spacer | example | Block headings over their whole span and a gap before the new year |
|
|
559
|
-
|
|
|
556
|
+
| narrow-tracks-widen | example | Weekly revenue keeps its written format, and its 44 px tracks widen to hold it |
|
|
560
557
|
| outline-marks-off | example | A region tree without outline marks, its head air from the theme |
|
|
561
558
|
| max-growth-capped | torture | A channel table whose columns grow at most 1.4 times when it fills a card |
|
|
562
559
|
| house-rule-colour | example | Head, total and close rules in the theme rule colour while the axis ink stays grey |
|
|
@@ -874,7 +874,6 @@ Every code a render, a measure or a React chart can return, read from the source
|
|
|
874
874
|
| `table-column-clipped` | warn | | table |
|
|
875
875
|
| `table-column-widened` | warn | | table |
|
|
876
876
|
| `table-compact-fallback` | info | | table |
|
|
877
|
-
| `table-formats-fitted` | info | | table |
|
|
878
877
|
| `table-ground-text-unreadable` | warn | | core/paintWarnings.ts |
|
|
879
878
|
| `table-group-heading-overflow` | warn | | table |
|
|
880
879
|
| `table-legend-required` | warn | | core/frame.ts |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "boardplot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Consulting-grade waterfall, Mekko (Marimekko) and variance charts and management tables for slides, reports and dashboards. Use it through Claude Code, Codex or other MCP agents, or as responsive React components with tooltips. Open source, Apache-2.0.",
|
|
5
5
|
"mcpName": "io.github.boardplot/boardplot",
|
|
6
6
|
"type": "module",
|
package/dist/chunk-RYFRYLU6.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
chartTypeAliases,
|
|
3
|
-
schemaLoaders
|
|
4
|
-
} from "./chunk-SVPSNDLL.js";
|
|
5
|
-
import {
|
|
6
|
-
registeredType
|
|
7
|
-
} from "./chunk-ZQHMZUFD.js";
|
|
8
|
-
import {
|
|
9
|
-
caseInsensitiveValue,
|
|
10
|
-
getChart,
|
|
11
|
-
getChartSchemas,
|
|
12
|
-
registerChartSchemas
|
|
13
|
-
} from "./chunk-F6IPP33V.js";
|
|
14
|
-
import {
|
|
15
|
-
registerChartCoreLoader
|
|
16
|
-
} from "./chunk-BQBD6Q5J.js";
|
|
17
|
-
|
|
18
|
-
// src/react/coreLoaders.ts
|
|
19
|
-
var coreLoaders = {
|
|
20
|
-
bar: () => import("./core-LCK3P3DS.js").then((module) => module.barCore),
|
|
21
|
-
bartable: () => import("./core-I23MMHHJ.js").then((module) => module.bartableCore),
|
|
22
|
-
box: () => import("./core-LZF7CC2E.js").then((module) => module.boxCore),
|
|
23
|
-
bullet: () => import("./core-JDNTWP3D.js").then((module) => module.bulletCore),
|
|
24
|
-
butterfly: () => import("./core-FKW6RSGU.js").then((module) => module.butterflyCore),
|
|
25
|
-
choropleth: () => import("./core-3TLA5IU3.js").then((module) => module.choroplethCore),
|
|
26
|
-
cohort: () => import("./core-G2TWJHKM.js").then((module) => module.cohortCore),
|
|
27
|
-
column: () => import("./core-XYTCGP3I.js").then((module) => module.columnCore),
|
|
28
|
-
combo: () => import("./core-HWDAFGAI.js").then((module) => module.comboCore),
|
|
29
|
-
creative: () => import("./core-HKKPL444.js").then((module) => module.creativeCore),
|
|
30
|
-
diagram: () => import("./core-NRNTVPSJ.js").then((module) => module.diagramCore),
|
|
31
|
-
dimswitch: () => import("./core-7K35DCB7.js").then((module) => module.dimswitchCore),
|
|
32
|
-
dot: () => import("./core-YMX3VETP.js").then((module) => module.dotCore),
|
|
33
|
-
funnel: () => import("./core-QWG23TDT.js").then((module) => module.funnelCore),
|
|
34
|
-
gantt: () => import("./core-FS3AFDBX.js").then((module) => module.ganttCore),
|
|
35
|
-
grid: () => import("./core-Y74GS6HN.js").then((module) => module.gridCore),
|
|
36
|
-
heatmap: () => import("./core-VZT7F5AI.js").then((module) => module.heatmapCore),
|
|
37
|
-
histogram: () => import("./core-SVIYWQVR.js").then((module) => module.histogramCore),
|
|
38
|
-
kpi: () => import("./core-DSI2ZK5C.js").then((module) => module.kpiCore),
|
|
39
|
-
likert: () => import("./core-VVHFCKCO.js").then((module) => module.likertCore),
|
|
40
|
-
line: () => import("./core-WXPK24YD.js").then((module) => module.lineCore),
|
|
41
|
-
mekko: () => import("./core-RHYZULNG.js").then((module) => module.mekkoCore),
|
|
42
|
-
pareto: () => import("./core-DIVRGZGD.js").then((module) => module.paretoCore),
|
|
43
|
-
pie: () => import("./core-SQUKC752.js").then((module) => module.pieCore),
|
|
44
|
-
pvm: () => import("./core-JWYT46N3.js").then((module) => module.pvmCore),
|
|
45
|
-
pyramid: () => import("./core-7UMZLBSB.js").then((module) => module.pyramidCore),
|
|
46
|
-
sankey: () => import("./core-Y7Q7FR65.js").then((module) => module.sankeyCore),
|
|
47
|
-
scatter: () => import("./core-PARPIO5L.js").then((module) => module.scatterCore),
|
|
48
|
-
slope: () => import("./core-QRRWZUTR.js").then((module) => module.slopeCore),
|
|
49
|
-
sparkline: () => import("./core-PVD4MX3R.js").then((module) => module.sparklineCore),
|
|
50
|
-
status: () => import("./core-VA3SBRCT.js").then((module) => module.statusCore),
|
|
51
|
-
table: () => import("./core-B3AVFEWH.js").then((module) => module.tableCore),
|
|
52
|
-
tilemap: () => import("./core-TBPO7LER.js").then((module) => module.tilemapCore),
|
|
53
|
-
treemap: () => import("./core-PL2T5XOC.js").then((module) => module.treemapCore),
|
|
54
|
-
variance: () => import("./core-HEQ4MJA5.js").then((module) => module.varianceCore),
|
|
55
|
-
waffle: () => import("./core-PJHQY3CR.js").then((module) => module.waffleCore),
|
|
56
|
-
waterfall: () => import("./core-6YHAYDG2.js").then((module) => module.waterfallCore)
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// src/react/loadChartTypes.ts
|
|
60
|
-
var aliasOwners = /* @__PURE__ */ new Map();
|
|
61
|
-
for (let [type, aliases] of Object.entries(chartTypeAliases))
|
|
62
|
-
for (let alias of aliases) aliasOwners.set(alias, type);
|
|
63
|
-
function knownChartType(name) {
|
|
64
|
-
return name = caseInsensitiveValue(name, [...Object.keys(coreLoaders), ...aliasOwners.keys()]) ?? name, Object.hasOwn(coreLoaders, name) ? name : aliasOwners.get(name);
|
|
65
|
-
}
|
|
66
|
-
async function loadChartTypes(names, parts) {
|
|
67
|
-
let types = [...new Set(names.map(knownChartType).filter((type) => type !== void 0))];
|
|
68
|
-
await Promise.all(types.flatMap((type) => [
|
|
69
|
-
parts.schemas && getChartSchemas(type) === void 0 ? schemaLoaders[type]().then((schemas) => {
|
|
70
|
-
registerChartSchemas(schemas, chartTypeAliases[type]);
|
|
71
|
-
}) : void 0,
|
|
72
|
-
parts.cores && getChart(type) === void 0 ? coreLoaders[type]().then((core) => {
|
|
73
|
-
registeredType(core);
|
|
74
|
-
}) : void 0
|
|
75
|
-
]));
|
|
76
|
-
}
|
|
77
|
-
registerChartCoreLoader({
|
|
78
|
-
knows: (type) => knownChartType(type) !== void 0,
|
|
79
|
-
load: (type) => loadChartTypes([type], { schemas: !1, cores: !0 })
|
|
80
|
-
});
|
|
81
|
-
function registeredTypeWithPanelCores(core) {
|
|
82
|
-
return registeredType(core);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
knownChartType,
|
|
87
|
-
loadChartTypes,
|
|
88
|
-
registeredTypeWithPanelCores
|
|
89
|
-
};
|
package/dist/chunk-VAR3DPXR.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sweepHide
|
|
3
|
-
} from "./chunk-F6IPP33V.js";
|
|
4
|
-
import {
|
|
5
|
-
MAGNITUDE_DIVISOR,
|
|
6
|
-
formatWithSpec,
|
|
7
|
-
neededDecimals
|
|
8
|
-
} from "./chunk-Z6DUNKFU.js";
|
|
9
|
-
|
|
10
|
-
// src/core/ols.ts
|
|
11
|
-
function olsMoments(points) {
|
|
12
|
-
let n = points.length, meanX = 0, meanY = 0;
|
|
13
|
-
for (let { x, y } of points)
|
|
14
|
-
meanX += x, meanY += y;
|
|
15
|
-
n > 0 && (meanX /= n, meanY /= n);
|
|
16
|
-
let sxx = 0, syy = 0, sxy = 0;
|
|
17
|
-
for (let { x, y } of points) {
|
|
18
|
-
let dx = x - meanX, dy = y - meanY;
|
|
19
|
-
sxx += dx * dx, syy += dy * dy, sxy += dx * dy;
|
|
20
|
-
}
|
|
21
|
-
return { n, meanX, meanY, sxx, syy, sxy };
|
|
22
|
-
}
|
|
23
|
-
function olsFit(m) {
|
|
24
|
-
let flat = (spread, mean) => spread <= m.n * (1e-12 * mean) ** 2;
|
|
25
|
-
if (m.n < 2 || flat(m.sxx, m.meanX)) return null;
|
|
26
|
-
let slope = m.sxy / m.sxx;
|
|
27
|
-
return {
|
|
28
|
-
slope,
|
|
29
|
-
intercept: m.meanY - slope * m.meanX,
|
|
30
|
-
r2: flat(m.syy, m.meanY) ? null : Math.min(1, m.sxy * m.sxy / (m.sxx * m.syy))
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function clipTrendToDomain(fit, dx, dy) {
|
|
34
|
-
let lo = Math.max(fit.x0, dx[0]), hi = Math.min(fit.x1, dx[1]);
|
|
35
|
-
if (fit.slope !== 0) {
|
|
36
|
-
let a = (dy[0] - fit.intercept) / fit.slope, b = (dy[1] - fit.intercept) / fit.slope;
|
|
37
|
-
lo = Math.max(lo, Math.min(a, b)), hi = Math.min(hi, Math.max(a, b));
|
|
38
|
-
} else if (fit.intercept < dy[0] || fit.intercept > dy[1])
|
|
39
|
-
return null;
|
|
40
|
-
return lo < hi ? [lo, hi] : null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// src/core/charts/logAxis.ts
|
|
44
|
-
function logScale(domain, range) {
|
|
45
|
-
let [d0, d1] = domain, [r0, r1] = range, l0 = Math.log10(d0), dl = Math.log10(d1) - l0 || 1, scale = ((value) => r0 + (Math.log10(value) - l0) / dl * (r1 - r0));
|
|
46
|
-
return scale.domain = [d0, d1], scale.range = [r0, r1], scale.log = !0, scale.invert = (px) => 10 ** (l0 + (px - r0) / (r1 - r0 || 1) * dl), scale.ticks = () => logTickTiers(Math.min(d0, d1), Math.max(d0, d1))[0], scale;
|
|
47
|
-
}
|
|
48
|
-
function decimal(m, e) {
|
|
49
|
-
return +`${m}e${e}`;
|
|
50
|
-
}
|
|
51
|
-
function logRung(v, dir, strict = !1) {
|
|
52
|
-
let e = Math.floor(Math.log10(v)), m = v / 10 ** e;
|
|
53
|
-
m >= 10 - 1e-9 && (e += 1, m /= 10);
|
|
54
|
-
let k = dir === "down" ? Math.floor(m + 1e-9) : Math.ceil(m - 1e-9);
|
|
55
|
-
return strict && Math.abs(k - m) < 1e-9 && (k += dir === "down" ? -1 : 1), k < 1 ? decimal(9, e - 1) : k > 9 ? decimal(1, e + 1) : decimal(k, e);
|
|
56
|
-
}
|
|
57
|
-
function logTickTiers(lo, hi) {
|
|
58
|
-
if (!(lo > 0) || !(hi > lo) || !Number.isFinite(hi)) return [[lo, hi].filter((v) => Number.isFinite(v))];
|
|
59
|
-
let e0 = Math.floor(Math.log10(lo)), e1 = Math.ceil(Math.log10(hi)), ladder = (mantissas, every = 1) => {
|
|
60
|
-
let inside = [];
|
|
61
|
-
for (let e = e0; e <= e1; e++)
|
|
62
|
-
if ((e - e0) % every === 0)
|
|
63
|
-
for (let m of mantissas) {
|
|
64
|
-
let v = decimal(m, e);
|
|
65
|
-
v > lo * (1 + 1e-9) && v < hi * (1 - 1e-9) && inside.push(v);
|
|
66
|
-
}
|
|
67
|
-
return [lo, ...inside, hi];
|
|
68
|
-
}, tiers = Math.log10(hi / lo) < 1 ? [ladder([1, 2, 3, 4, 5, 6, 8])] : [];
|
|
69
|
-
tiers.push(ladder([1, 2, 5]), ladder([1]));
|
|
70
|
-
for (let every = 2; every < e1 - e0; every++) tiers.push(ladder([1], every));
|
|
71
|
-
return tiers;
|
|
72
|
-
}
|
|
73
|
-
function logAxesOf(log) {
|
|
74
|
-
return { x: log === "x" || log === "both", y: log === !0 || log === "y" || log === "both" };
|
|
75
|
-
}
|
|
76
|
-
var LOG_EDGE = 5e-3;
|
|
77
|
-
function logDomain(min, max) {
|
|
78
|
-
let lo = logRung(min, "down"), hi = logRung(max, "up"), span = Math.log10(max / min);
|
|
79
|
-
return Math.log10(min / lo) < LOG_EDGE * span && (lo = logRung(lo, "down", !0)), Math.log10(hi / max) < LOG_EDGE * span && (hi = logRung(hi, "up", !0)), hi > lo ? [lo, hi] : [logRung(lo, "down", !0), logRung(hi, "up", !0)];
|
|
80
|
-
}
|
|
81
|
-
function linearAxisSpec(spec, domain) {
|
|
82
|
-
if (!spec.autoMagnitude) return spec;
|
|
83
|
-
let top = Math.max(0, ...domain.filter(Number.isFinite).map(Math.abs)), magnitude = spec.magnitude;
|
|
84
|
-
for (; (magnitude === "m" || magnitude === "bn") && top >= 1e3 * MAGNITUDE_DIVISOR[magnitude] * (1 - 1e-9); ) magnitude = magnitude === "m" ? "bn" : "t";
|
|
85
|
-
return magnitude === spec.magnitude ? spec : { ...spec, magnitude };
|
|
86
|
-
}
|
|
87
|
-
function logSpecFormat(spec, domain) {
|
|
88
|
-
if (spec.autoMagnitude) {
|
|
89
|
-
let own = (value) => {
|
|
90
|
-
let magnitude = "none";
|
|
91
|
-
for (let step of ["k", "m", "bn", "t"]) Math.abs(value) >= MAGNITUDE_DIVISOR[step] * 0.999999999 && (magnitude = step);
|
|
92
|
-
return magnitude;
|
|
93
|
-
}, lowest = domain && domain.length > 0 ? own(Math.min(...domain.map(Math.abs))) : void 0;
|
|
94
|
-
return (value) => {
|
|
95
|
-
let magnitude = own(value), scaled = value / MAGNITUDE_DIVISOR[magnitude], decimals = Math.max(neededDecimals(scaled, 12), lowest !== void 0 && magnitude !== lowest && Math.abs(scaled) < 10 ? 1 : 0);
|
|
96
|
-
return formatWithSpec(value, { ...spec, automatic: !1, autoMagnitude: void 0, stepDecimals: void 0, rollMagnitude: !1, wholeFrom: void 0, magnitude, decimals });
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
let divisor = MAGNITUDE_DIVISOR[spec.magnitude];
|
|
100
|
-
return (value) => formatWithSpec(value, { ...spec, wholeFrom: void 0, decimals: neededDecimals(value / divisor, 12) });
|
|
101
|
-
}
|
|
102
|
-
function fitLogTicks(scale, orient, format, font, measure, gap = 4) {
|
|
103
|
-
let [lo, hi] = [Math.min(...scale.domain), Math.max(...scale.domain)], tiers = logTickTiers(lo, hi);
|
|
104
|
-
for (let ticks of tiers) {
|
|
105
|
-
let items = ticks.map((tick, index) => {
|
|
106
|
-
let size = measure(format(tick), font), pos = scale(tick), extent = orient === "x" ? size.width : size.height;
|
|
107
|
-
return { start: orient === "y" ? pos - extent / 2 : index === 0 ? pos : index === ticks.length - 1 ? pos - extent : pos - extent / 2, size: extent, priority: 0 };
|
|
108
|
-
}), ends = [items[0], items[items.length - 1]], clears = (a, b) => a.start >= b.start + b.size + gap || b.start >= a.start + a.size + gap, inner = items.slice(1, -1).filter((item) => ends.every((end) => clears(item, end)));
|
|
109
|
-
if (sweepHide(inner, gap).every(Boolean)) return ticks;
|
|
110
|
-
}
|
|
111
|
-
return tiers[tiers.length - 1];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export {
|
|
115
|
-
olsMoments,
|
|
116
|
-
olsFit,
|
|
117
|
-
clipTrendToDomain,
|
|
118
|
-
logScale,
|
|
119
|
-
logTickTiers,
|
|
120
|
-
logAxesOf,
|
|
121
|
-
logDomain,
|
|
122
|
-
linearAxisSpec,
|
|
123
|
-
logSpecFormat,
|
|
124
|
-
fitLogTicks
|
|
125
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats that fit their tracks (`options.fitFormats`).
|
|
3
|
-
*
|
|
4
|
-
* A table with authored tracks draws a steering table's months at 88 px,
|
|
5
|
-
* 66 px or 56.6 px by grain. A format written for the widest grain ("$2.47M")
|
|
6
|
-
* is cut at the narrower ones, and a grid track is a hard width. This pass
|
|
7
|
-
* shortens the format until the widest figure of the row, or of the column,
|
|
8
|
-
* fits: one decimal less at a time, then the next unit up at one decimal.
|
|
9
|
-
* A change line printed inside a cell ("+12.34%") shares the cell's track
|
|
10
|
-
* and is fitted through its own row's format the same way, and a cell that
|
|
11
|
-
* names its own format ("+2.7pp" in a percent column) through that format.
|
|
12
|
-
* It rewrites the authored formats and resolves again, so the claims, the
|
|
13
|
-
* rounding records and the hoisted units follow the strings the table
|
|
14
|
-
* prints. Only a track the width pass cannot widen can cut a figure, so only
|
|
15
|
-
* an authored width asks for a shorter format.
|
|
16
|
-
*/
|
|
17
|
-
import type { FontSpec, TextMeasurer } from '../../text.js';
|
|
18
|
-
import type { Id } from '../../types/cell.js';
|
|
19
|
-
import type { LintWarning } from '../../types/scene.js';
|
|
20
|
-
import type { ResolvedCell, ResolvedColumn, ResolvedRow, ResolvedTable, TableData, TableOptions } from '../../types/table.js';
|
|
21
|
-
import { resolveTable } from './resolve.js';
|
|
22
|
-
interface FitFormatsContext {
|
|
23
|
-
measure: TextMeasurer;
|
|
24
|
-
/** The face a cell is drawn in, at its row's rung. */
|
|
25
|
-
cellFont: (cell: ResolvedCell) => FontSpec;
|
|
26
|
-
/** Horizontal air on each side of a cell. */
|
|
27
|
-
padX: number;
|
|
28
|
-
/** Extra a browser needs over the measured width. */
|
|
29
|
-
slack?: (font: FontSpec, width: number) => number;
|
|
30
|
-
/** Whether the surface draws this cell's string with tabular figures. */
|
|
31
|
-
figures?: (column: ResolvedColumn, text: string) => boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The face of a line a row prints inside its cells, a MoM or YoY change.
|
|
34
|
-
* It shares the cell's track, so its figure has to fit as well; without
|
|
35
|
-
* this the pass measures the rows' own figures only.
|
|
36
|
-
*/
|
|
37
|
-
lineFont?: (parent: ResolvedRow, line: ResolvedRow, text: string, tabular?: boolean) => FontSpec;
|
|
38
|
-
/** The decimal mark of a derived percent example, `options.locale.decimal`. */
|
|
39
|
-
decimal?: '.' | ',';
|
|
40
|
-
}
|
|
41
|
-
type ResolveResult = ReturnType<typeof resolveTable>;
|
|
42
|
-
/**
|
|
43
|
-
* One format `fitFormats` changed: a row's, a column's, or one cell's own, with the example before and after. The
|
|
44
|
-
* layout reports the list as the `table-formats-fitted` info warning and React hands it to `onFormatsFit`.
|
|
45
|
-
*/
|
|
46
|
-
export interface FormatFitChange {
|
|
47
|
-
row?: Id;
|
|
48
|
-
column?: Id;
|
|
49
|
-
/** The example the figure printed through before; absent where it was derived and had no authored one. */
|
|
50
|
-
from?: string;
|
|
51
|
-
to: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The data with every overflowing format shortened, and its resolve; both
|
|
55
|
-
* undefined where nothing overflows. `columns` are the columns the surface
|
|
56
|
-
* draws; a hidden column cuts nothing.
|
|
57
|
-
*/
|
|
58
|
-
export declare function fitTableFormats(data: TableData, options: TableOptions, resolved: {
|
|
59
|
-
table: ResolvedTable;
|
|
60
|
-
}, columns: (table: ResolvedTable) => readonly ResolvedColumn[], ctx: FitFormatsContext): {
|
|
61
|
-
data: TableData;
|
|
62
|
-
resolved: ResolveResult;
|
|
63
|
-
changes: FormatFitChange[];
|
|
64
|
-
} | undefined;
|
|
65
|
-
/** The `table-formats-fitted` info warning for the changes of one fit, or undefined where nothing changed. */
|
|
66
|
-
export declare function formatsFittedWarning(changes: readonly FormatFitChange[]): LintWarning | undefined;
|
|
67
|
-
export {};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* resolveTable(): authored data → ResolvedTable + ComputedCellRecords
|
|
3
|
-
* All calc math runs on RAW values; every fact
|
|
4
|
-
* rounds conventionally ONCE against a display spec resolved from data
|
|
5
|
-
* only; verification records verify — they never overwrite.
|
|
6
|
-
*/
|
|
7
|
-
import { datePatternFromExample } from '../../dateFormat.js';
|
|
8
|
-
import { MINUS } from '../../format.js';
|
|
9
|
-
import type { Id } from '../../types/cell.js';
|
|
10
|
-
import type { LintWarning } from '../../types/scene.js';
|
|
11
|
-
import type { CellState, ComputedCellRecord, ResolvedTable, TableData, TableOptions } from '../../types/table.js';
|
|
12
|
-
export interface ResolveResult {
|
|
13
|
-
table: ResolvedTable;
|
|
14
|
-
computedCells: ComputedCellRecord[];
|
|
15
|
-
warnings: LintWarning[];
|
|
16
|
-
/** An automatic format printed a nonzero value with extra digits so it does not read as 0. */
|
|
17
|
-
lifted?: true;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* How an automatic format prints a nonzero value that rounds to 0: full
|
|
21
|
-
* digits (default), the compact bound ("<0.1"), or 'none', the plain rounded
|
|
22
|
-
* text, which width fitting measures and which never draws. The layout picks it.
|
|
23
|
-
*/
|
|
24
|
-
export declare const ZERO_LIFT: unique symbol;
|
|
25
|
-
export type ZeroLiftOptions = {
|
|
26
|
-
[ZERO_LIFT]?: 'none' | 'compact';
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* State glyph policy: missing '—' · notApplicable 'n/a'
|
|
30
|
-
* · notMeaningful 'n.m.' · suppressed '—' PLUS a mandatory footnote marker.
|
|
31
|
-
* The marker is not decoration: withheld and absent are different facts about
|
|
32
|
-
* the world, and a bare '—' for both tells the reader they are the same one.
|
|
33
|
-
*/
|
|
34
|
-
export declare const SUPPRESSED_MARKER = "*";
|
|
35
|
-
export declare const STATE_GLYPHS: Record<Exclude<CellState, 'value'>, string>;
|
|
36
|
-
/** The largest percent change a table prints; past it the cell is n.m. */
|
|
37
|
-
export declare const PERCENT_DELTA_CAP = 999;
|
|
38
|
-
/** The mark on the head of a column whose total skipped a missing value, and on its note. */
|
|
39
|
-
export declare const PARTIAL_MARKER = "\u2020";
|
|
40
|
-
/** The partial-aggregate note, led by the mark the table carries: the head's † or the cell word ("(partial)"). */
|
|
41
|
-
export declare const partialFootnote: (language?: string, marker?: string) => string;
|
|
42
|
-
/** Carries the same marker the glyph does, so the tie survives numbering. */
|
|
43
|
-
export declare const suppressedFootnote: (language?: string) => string;
|
|
44
|
-
export declare function columnHeaderAffix(column: {
|
|
45
|
-
scenario?: string;
|
|
46
|
-
unitLabel?: string;
|
|
47
|
-
partial?: true;
|
|
48
|
-
}): string;
|
|
49
|
-
/** Internal accounting model. Views borrow its cells; public results must own their copy. */
|
|
50
|
-
export interface PreparedTableData {
|
|
51
|
-
readonly source: TableData;
|
|
52
|
-
readonly rowIds: readonly Id[];
|
|
53
|
-
readonly columnIds: readonly Id[];
|
|
54
|
-
readonly rowIndex: ReadonlyMap<Id, number>;
|
|
55
|
-
readonly columnIndex: ReadonlyMap<Id, number>;
|
|
56
|
-
readonly resolve: (options: TableOptions) => ResolveResult;
|
|
57
|
-
}
|
|
58
|
-
/** Prepare structure and raw calculations once, independently of expansion and display precision. */
|
|
59
|
-
export declare function prepareTableData(data: TableData, options?: TableOptions, magnitudeSource?: TableData): PreparedTableData;
|
|
60
|
-
/** Only view state, column visibility and ZERO_LIFT may change after preparation. The returned graph is borrowed. */
|
|
61
|
-
export declare function resolvePreparedTable(model: PreparedTableData, options?: TableOptions): ResolveResult;
|
|
62
|
-
export declare function resolveTable(data: TableData, options?: TableOptions, magnitudeSource?: TableData): ResolveResult;
|
|
63
|
-
/**
|
|
64
|
-
* The authored encoding as one object with its defaults filled, so the SVG
|
|
65
|
-
* layout and the HTML table read the same lane settings. The bare string
|
|
66
|
-
* form is the object with nothing authored: heat caps at the column extreme,
|
|
67
|
-
* tints at 0.18 and leaves totals alone.
|
|
68
|
-
*/
|
|
69
|
-
export declare const HEAT_DEFAULT_ALPHA = 0.18;
|
|
70
|
-
/** A traffic-light lane paints heavier, so the warn amber reads on a white ground. */
|
|
71
|
-
export declare const HEAT_STATUS_ALPHA = 0.26;
|
|
72
|
-
/**
|
|
73
|
-
* The row id a share denominator is filed under in a claim's inputs. It is not
|
|
74
|
-
* a row in the table — it is the exhaustive leaf partition the share is taken
|
|
75
|
-
* over — so it gets a reserved, non-colliding id rather than borrowing one.
|
|
76
|
-
*/
|
|
77
|
-
export declare const LEAF_TOTAL_ROW_ID = "__leafTotal";
|
|
78
|
-
/** Likewise for the display unit a largest-remainder adjustment moves by. */
|
|
79
|
-
export declare const SHARE_UNIT_ROW_ID = "__displayUnit";
|
|
80
|
-
export { datePatternFromExample, MINUS };
|
|
81
|
-
/** The unit the frame prints for a table: the hoisted one, else `options.unit` unless the columns print their own. */
|
|
82
|
-
export declare function tableFrameUnit(table: Pick<ResolvedTable, 'unit' | 'columnUnits'>, options: {
|
|
83
|
-
unit?: string;
|
|
84
|
-
}): string | undefined;
|