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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLOT_W_FLOOR_DEMOTED
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXLWMK24.js";
|
|
4
4
|
import {
|
|
5
5
|
addRatioTierRequests,
|
|
6
6
|
finalizeRatioTier,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ratioTierCanRender,
|
|
10
10
|
ratioTierMetrics,
|
|
11
11
|
ratioTierSpacingWarnings
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AFQZBCME.js";
|
|
13
13
|
import {
|
|
14
14
|
BUMP_FOLDED,
|
|
15
15
|
END_LABEL_KEY,
|
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
lineToDateIds,
|
|
48
48
|
lineTrendKeys,
|
|
49
49
|
lineTrendLabel,
|
|
50
|
+
lineTrendRates,
|
|
50
51
|
lineValueStats,
|
|
51
52
|
outerFanEdge,
|
|
52
53
|
placeBumpStartLabels,
|
|
@@ -60,6 +61,7 @@ import {
|
|
|
60
61
|
pointLabelSelection,
|
|
61
62
|
pointLabelsFollowShape,
|
|
62
63
|
pointValueWidths,
|
|
64
|
+
pointWouldShows,
|
|
63
65
|
prepareBump,
|
|
64
66
|
prepareEndpointLabels,
|
|
65
67
|
rangeCut,
|
|
@@ -77,13 +79,13 @@ import {
|
|
|
77
79
|
usesWideEndLabels,
|
|
78
80
|
valueUnit,
|
|
79
81
|
withoutEvents
|
|
80
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-U4WG46QP.js";
|
|
81
83
|
import {
|
|
82
84
|
logDomain,
|
|
83
85
|
logScale,
|
|
84
86
|
logSpecFormat,
|
|
85
87
|
logTickTiers
|
|
86
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-QMQZC2KW.js";
|
|
87
89
|
import {
|
|
88
90
|
anomalyA11y,
|
|
89
91
|
anomalyCorridor,
|
|
@@ -96,7 +98,7 @@ import {
|
|
|
96
98
|
lineAnomalyFurniture,
|
|
97
99
|
refuseAnomalySpec,
|
|
98
100
|
seatFlaggedValues
|
|
99
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-EZ5KUBYF.js";
|
|
100
102
|
import {
|
|
101
103
|
restValuesHidden
|
|
102
104
|
} from "./chunk-EKQK5D6G.js";
|
|
@@ -107,23 +109,23 @@ import {
|
|
|
107
109
|
import {
|
|
108
110
|
roundWholes,
|
|
109
111
|
shareRoundingNotes
|
|
110
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-4YKS2JDE.js";
|
|
111
113
|
import {
|
|
112
114
|
compositionBasis,
|
|
113
115
|
mixedSignsWarning,
|
|
114
116
|
overfullShareSum,
|
|
115
117
|
overfullWarning
|
|
116
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-7QUWM5W6.js";
|
|
117
119
|
import {
|
|
118
120
|
applyCategoryViewport,
|
|
119
121
|
liveWindowOptions,
|
|
120
122
|
viewportMeanSpan
|
|
121
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-R2RLERPT.js";
|
|
122
124
|
import {
|
|
123
125
|
isIncomplete,
|
|
124
126
|
warnIncompleteComposition,
|
|
125
127
|
warnShareRoundingDrift
|
|
126
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-5QMM354E.js";
|
|
127
129
|
import {
|
|
128
130
|
corridorEdgeRects,
|
|
129
131
|
emitEventLane,
|
|
@@ -131,22 +133,25 @@ import {
|
|
|
131
133
|
percentLevels,
|
|
132
134
|
runAnnotatePass,
|
|
133
135
|
settleEventLane
|
|
134
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-QDFX2KAP.js";
|
|
135
137
|
import {
|
|
136
138
|
stepDownFont
|
|
137
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
138
140
|
import {
|
|
139
141
|
breakUnsupported,
|
|
140
142
|
chartPalette,
|
|
141
143
|
chartTheme
|
|
142
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-AIPOSNVG.js";
|
|
145
|
+
import {
|
|
146
|
+
DeferredShownMarks
|
|
147
|
+
} from "./chunk-2Q7IAWON.js";
|
|
143
148
|
import {
|
|
144
149
|
chartString as chartString2,
|
|
145
150
|
nearZeroTailNote
|
|
146
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-XHEG2BG6.js";
|
|
147
152
|
import {
|
|
148
153
|
withEventsDescribed
|
|
149
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-VGOZOBNB.js";
|
|
150
155
|
import {
|
|
151
156
|
drawnVariant,
|
|
152
157
|
noTotal
|
|
@@ -163,10 +168,10 @@ import {
|
|
|
163
168
|
VALUE_LINE_RESERVE,
|
|
164
169
|
gapBracketPairs,
|
|
165
170
|
hiddenValueLineReserve
|
|
166
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-R4MVXUAG.js";
|
|
167
172
|
import {
|
|
168
173
|
structureCount
|
|
169
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
170
175
|
import {
|
|
171
176
|
authoredTimeStep,
|
|
172
177
|
formatTimePattern,
|
|
@@ -184,7 +189,7 @@ import {
|
|
|
184
189
|
timeTicks,
|
|
185
190
|
zoneClock,
|
|
186
191
|
zoneYearSpan
|
|
187
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-25JXYOSX.js";
|
|
188
193
|
import {
|
|
189
194
|
AXIS_TITLE_GAP,
|
|
190
195
|
NATURAL_BAND_STEP,
|
|
@@ -212,10 +217,10 @@ import {
|
|
|
212
217
|
valueAxisTitleBand,
|
|
213
218
|
valueAxisTitleText,
|
|
214
219
|
valueAxisUnit
|
|
215
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-YM4MVABU.js";
|
|
216
221
|
import {
|
|
217
222
|
prepareFractionData
|
|
218
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-QXHFELIA.js";
|
|
219
224
|
import {
|
|
220
225
|
NOTED_LABELS,
|
|
221
226
|
PARTIAL_KEY,
|
|
@@ -246,37 +251,41 @@ import {
|
|
|
246
251
|
toDateFits,
|
|
247
252
|
withCategoryNoteNames,
|
|
248
253
|
withUnprintedClaims
|
|
249
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-AUSZDYGE.js";
|
|
250
255
|
import {
|
|
251
256
|
disclosureNote,
|
|
252
257
|
disclosuresShown,
|
|
253
258
|
footerType
|
|
254
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-WD5NJHZG.js";
|
|
255
260
|
import {
|
|
256
261
|
annotationRef,
|
|
257
262
|
defaultAnnotationId
|
|
258
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-PPOUKS24.js";
|
|
259
264
|
import {
|
|
260
265
|
emptyIdRecord
|
|
261
266
|
} from "./chunk-LINZPU5D.js";
|
|
262
267
|
import {
|
|
268
|
+
defaultSetSpec,
|
|
263
269
|
formatStatWithSpec,
|
|
264
270
|
parseISODate,
|
|
271
|
+
ruleStatistics,
|
|
265
272
|
seriesRasterFormatter,
|
|
273
|
+
statisticFormatter,
|
|
266
274
|
withUnit
|
|
267
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-3JG764MI.js";
|
|
268
276
|
import {
|
|
269
277
|
authoredDecimals,
|
|
270
|
-
autoDecimals,
|
|
271
278
|
chartString,
|
|
272
279
|
formatAuthoredPercent,
|
|
273
280
|
formatAutomaticPercent,
|
|
274
281
|
formatShare,
|
|
275
282
|
notApplicableGlyph,
|
|
276
283
|
numberRange,
|
|
284
|
+
shareSetDecimals,
|
|
285
|
+
shareText,
|
|
277
286
|
stringFields,
|
|
278
287
|
withLocaleStrings
|
|
279
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-FYFXOLWI.js";
|
|
280
289
|
import {
|
|
281
290
|
canvasMargin,
|
|
282
291
|
cleanFloat,
|
|
@@ -290,7 +299,7 @@ import {
|
|
|
290
299
|
seriesTextPaint,
|
|
291
300
|
strokeToken,
|
|
292
301
|
textScaleOf
|
|
293
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-XAH4EWJT.js";
|
|
294
303
|
import {
|
|
295
304
|
DEFAULT_TARGET,
|
|
296
305
|
NormalizeError,
|
|
@@ -1144,7 +1153,7 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1144
1153
|
let dataSeries = seriesNorm.filter((s) => s.role !== "reference"), refSeries = seriesNorm.filter((s) => s.role === "reference");
|
|
1145
1154
|
if (dataSeries.length === 0)
|
|
1146
1155
|
throw new NormalizeError("empty-data", "series", "line requires at least one data-role series", void 0, void 0, ["data", "series"]);
|
|
1147
|
-
let seriesById = new Map(seriesNorm.map((series) => [series.id, series])), targets = collectTargets(seriesNorm, cats, options, warnings), { variant, isArea, isStacked, interpolationFor } = lineVariant(options, isBump, seriesNorm, warnings), indexed = options.rebase100 && variant !== "stacked100-area" && cats.some((c) => c.id === rebaseAtId(options.rebase100, cats)), valueSpec = seriesRasterFormatter(options.format, seriesNorm.flatMap((s) => s.vals.map((val) => val.v)), options.locale?.language, indexed ? void 0 : options.unit
|
|
1156
|
+
let seriesById = new Map(seriesNorm.map((series) => [series.id, series])), targets = collectTargets(seriesNorm, cats, options, warnings), { variant, isArea, isStacked, interpolationFor } = lineVariant(options, isBump, seriesNorm, warnings), indexed = options.rebase100 && variant !== "stacked100-area" && cats.some((c) => c.id === rebaseAtId(options.rebase100, cats)), fanBoundIds = options.format ? void 0 : new Set(options.fan?.bands?.flatMap((band) => [band.low, band.high]) ?? []), valueSpec = seriesRasterFormatter(options.format, seriesNorm.filter((s) => !fanBoundIds?.has(s.id)).flatMap((s) => s.vals.map((val) => val.v)), options.locale?.language, indexed ? void 0 : options.unit), bumpPrepared = prepareBump({
|
|
1148
1157
|
isBump,
|
|
1149
1158
|
options,
|
|
1150
1159
|
valueAxis: options.valueAxis ?? {},
|
|
@@ -1176,12 +1185,18 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1176
1185
|
if (val.isPct) return val.v;
|
|
1177
1186
|
let b = basisByCat[ci];
|
|
1178
1187
|
return b > 0 ? val.v / b * 100 : 0;
|
|
1179
|
-
})), rowOf = new Map(seriesNorm.map((s, k) => [s, k])), rounded = variant === "stacked100-area" && options.rounding
|
|
1188
|
+
})), rowOf = new Map(seriesNorm.map((s, k) => [s, k])), rounded = variant === "stacked100-area" && options.rounding === "sum-consistent" ? roundWholes(cats.flatMap((category, ci) => compositionInvalidAt(ci) || dataSeries.some((s) => s.vals[ci].v === null || s.vals[ci].isPct) ? [] : [{
|
|
1180
1189
|
id: category.id,
|
|
1181
1190
|
name: category.label ?? category.id,
|
|
1182
1191
|
parts: dataSeries.map((s) => ({ id: s.id, name: s.label, share: pv[rowOf.get(s)][ci] }))
|
|
1183
1192
|
}]), options.locale?.language, void 0, !0) : void 0;
|
|
1184
1193
|
rounded && pushAll(warnings, rounded.warnings);
|
|
1194
|
+
let nearestTexts = /* @__PURE__ */ new Map(), nearestDecimals = /* @__PURE__ */ new Map();
|
|
1195
|
+
variant === "stacked100-area" && !rounded && cats.forEach((category, ci) => {
|
|
1196
|
+
if (compositionInvalidAt(ci) || dataSeries.some((s) => s.vals[ci].v === null || s.vals[ci].isPct)) return;
|
|
1197
|
+
let shares = dataSeries.map((s) => pv[rowOf.get(s)][ci]), decimals = shareSetDecimals(shares);
|
|
1198
|
+
nearestDecimals.set(category.id, decimals), dataSeries.forEach((s, k) => nearestTexts.set(`${category.id}\0${s.id}`, shareText(shares[k], decimals, options.locale?.language)));
|
|
1199
|
+
});
|
|
1185
1200
|
let bumpDerived = deriveBumpRanks({
|
|
1186
1201
|
isBump,
|
|
1187
1202
|
direction: bumpPrepared.bumpDirection,
|
|
@@ -1228,20 +1243,21 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1228
1243
|
);
|
|
1229
1244
|
let bumpFocus = bumpFocusOf(isBump, options, dataSeries, bumpDerived, cats, warnings), drawnSeries = bumpFocus ? dataSeries.filter((s) => bumpFocus.has(s.id)) : fan && fan.origin !== null ? dataSeries.filter((s) => !fan.boundIds.has(s.id)) : dataSeries, bumpOmitted = bumpFocus ? dataSeries.filter((s) => !bumpFocus.has(s.id)) : [], resolvedModes = lineLabelModes(options, isBump ? "bump" : variant, drawnSeries.length), legendPosition = typeof options.legend == "object" ? options.legend.position : options.legend;
|
|
1230
1245
|
isArea && options.seriesLabels === void 0 && options.labels !== !1 && options.labels?.series === void 0 && (legendPosition === "top" || legendPosition === "bottom" || legendPosition === "right" || legendPosition === "left") && (resolvedModes.series = "key");
|
|
1231
|
-
let labelModes = namedSeries(resolvedModes, options, drawnSeries.length, warnings), phases = validatePhases(options, { isBump, isArea, variant, fan, drawnSeries, cats, pv, rowOf }, interpolationFor, warnings), sourceNulls = new Set(variant === "stacked-area" ? cats.filter((_, ci) => dataSeries.some((s) => s.vals[ci].v === null)).map((c) => c.id) : []), rebaseSuppressed = [], rebased = applyRebase(options, variant, cats, seriesNorm, pv, rowOf, warnings, rebaseSuppressed);
|
|
1232
|
-
|
|
1246
|
+
let labelModes = namedSeries(resolvedModes, options, drawnSeries.length, warnings), phases = validatePhases(options, { isBump, isArea, variant, fan, drawnSeries, cats, pv, rowOf }, interpolationFor, warnings), sourceNulls = new Set(variant === "stacked-area" ? cats.filter((_, ci) => dataSeries.some((s) => s.vals[ci].v === null)).map((c) => c.id) : []), rebaseSuppressed = [], rebased = applyRebase(options, variant, cats, seriesNorm, pv, rowOf, warnings, rebaseSuppressed), sourceFmt = rebased ? valueSpec.fmt : void 0;
|
|
1247
|
+
rebased && (valueSpec = seriesRasterFormatter(
|
|
1233
1248
|
options.format,
|
|
1234
1249
|
seriesNorm.flatMap((s) => pv[rowOf.get(s)].map((v) => v === null ? null : Math.round(v * 10) / 10)),
|
|
1235
|
-
options.locale?.language
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1250
|
+
options.locale?.language
|
|
1251
|
+
));
|
|
1252
|
+
let fanFmt;
|
|
1253
|
+
if (fan && fanBoundIds) {
|
|
1254
|
+
let made = valueSpec, bounds = new Set(fan.bands.flatMap((band) => [band.low, band.high])), boundFmt = statisticFormatter([...bounds].flatMap((s) => s.vals.map((val) => val.v)), made.spec);
|
|
1255
|
+
fanFmt = boundFmt, valueSpec = { ...made, forSeries: (series, cellFormat) => !cellFormat && !series.format && bounds.has(series) ? boundFmt : made.forSeries(series, cellFormat) };
|
|
1256
|
+
} else if (fan) {
|
|
1241
1257
|
let made = valueSpec, withBounds = { format: fan.of.format, unit: fan.of.unit, values: [fan.of, ...fan.bands.flatMap((band) => [band.low, band.high])].flatMap((s) => s.vals.map((val) => val.v)) };
|
|
1242
1258
|
valueSpec = { ...made, forSeries: (series, cellFormat) => made.forSeries(series === fan.of ? withBounds : series, cellFormat) };
|
|
1243
1259
|
}
|
|
1244
|
-
let statFmt = (v) => formatStatWithSpec(v, valueSpec.spec), anomalyRun = options.anomaly ? lineAnomalyModel(options.anomaly, { variant, isBump, drawnSeries, cats, pv, rowOf, fmt: valueSpec.fmt, statFmt, locale: options.locale?.language, strings: options.strings, warnings }) : void 0, sourceAnnotations = options.annotations, live = lineWindow(options, cats, variant, isBump, !!fan, env.size.width, warnings, xModel !== void 0), population = applyCategoryViewport({
|
|
1260
|
+
let statFmt = (v) => formatStatWithSpec(v, valueSpec.spec), anomalyRun = options.anomaly ? lineAnomalyModel(options.anomaly, { variant, isBump, drawnSeries, cats, pv, rowOf, fmt: valueSpec.fmt, statFmt, locale: options.locale?.language, strings: options.strings, warnings, rule: ruleStatistics(valueSpec.spec, valueSpec.fmt) }) : void 0, sourceAnnotations = options.annotations, live = lineWindow(options, cats, variant, isBump, !!fan, env.size.width, warnings, xModel !== void 0), population = applyCategoryViewport({
|
|
1245
1261
|
domain: options.viewDomain,
|
|
1246
1262
|
window: live.window,
|
|
1247
1263
|
categories: cats,
|
|
@@ -1266,7 +1282,7 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1266
1282
|
let printedValues = lineLabelModes(options, variant, 0).values, printedAt = variant === "stacked100-area" && printedValues !== "none" && options.labels !== !1 ? printedValues === "all" ? cats.map((_, ci) => ci) : printedValues === "last" ? [cats.length - 1] : [.../* @__PURE__ */ new Set([0, cats.length - 1])] : [];
|
|
1267
1283
|
options.rounding === "nearest" && printedAt.length > 0 && warnShareRoundingDrift(warnings, printedAt.flatMap((ci) => {
|
|
1268
1284
|
let c = cats[ci];
|
|
1269
|
-
return compositionInvalidAt(ci) || sharesWithheld.has(c.id) || c.total100 !== void 0 || dataSeries.some((s) => s.vals[ci].isPct) ? [] : [{ name: c.label ?? c.id, shares: dataSeries.flatMap((s) => pv[rowOf.get(s)][ci] ?? []) }];
|
|
1285
|
+
return compositionInvalidAt(ci) || sharesWithheld.has(c.id) || c.total100 !== void 0 || dataSeries.some((s) => s.vals[ci].isPct) ? [] : [{ name: c.label ?? c.id, shares: dataSeries.flatMap((s) => pv[rowOf.get(s)][ci] ?? []), decimals: nearestDecimals.get(c.id) }];
|
|
1270
1286
|
}));
|
|
1271
1287
|
let printedNames = new Set(printedAt.map((ci) => cats[ci].label ?? cats[ci].id)), shareNotes = shareRoundingNotes(options, rounded?.adjustments.filter((adjustment) => printedNames.has(adjustment.whole)) ?? []), labelPv = rounded ? seriesNorm.map((s, si) => cats.map((c, ci) => rounded.values.get(`${c.id}\0${s.id}`) ?? pv[si][ci])) : pv, shown = population ? population.categories.slice(population.indexes[0], population.indexes[population.indexes.length - 1] + 1) : cats, timeline = xModel ? valueTimeline(xModel, xRange, population, cats) : (options.trend ? trendTimeline(cats, shown) : void 0) ?? (population ? void 0 : categoryTimeline(cats));
|
|
1272
1288
|
(options.trend || xModel) && population && timeline && Object.assign(population, timeline);
|
|
@@ -1296,7 +1312,7 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1296
1312
|
model: anomalyRun.anomaly,
|
|
1297
1313
|
seriesId: anomalyRun.seriesId,
|
|
1298
1314
|
statFmt,
|
|
1299
|
-
...anomalyCorridor(anomalyRun.anomaly, anomalyRun.values, values.dLo, values.dHi, statFmt, warnings, options.strings)
|
|
1315
|
+
...anomalyCorridor(anomalyRun.anomaly, anomalyRun.values, values.dLo, values.dHi, statFmt, warnings, options.strings, ruleStatistics(valueSpec.spec, valueSpec.fmt))
|
|
1300
1316
|
}, resolved = {
|
|
1301
1317
|
...core,
|
|
1302
1318
|
refSeries,
|
|
@@ -1311,6 +1327,8 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1311
1327
|
fan,
|
|
1312
1328
|
phases,
|
|
1313
1329
|
rebased,
|
|
1330
|
+
...sourceFmt ? { sourceFmt } : {},
|
|
1331
|
+
...fanFmt ? { fanFmt } : {},
|
|
1314
1332
|
population,
|
|
1315
1333
|
timeline,
|
|
1316
1334
|
...xModel ? { x: { model: xModel, lo: xRange.lo, hi: xRange.hi, shown: population ? population.indexes.map((i) => xModel.xs[i]) : xModel.xs, ...range ? { range } : {} } } : {},
|
|
@@ -1328,13 +1346,13 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1328
1346
|
endpoints,
|
|
1329
1347
|
lastIdxOf,
|
|
1330
1348
|
labelPv,
|
|
1331
|
-
shareTexts: rounded?.texts ??
|
|
1349
|
+
shareTexts: rounded?.texts ?? nearestTexts,
|
|
1332
1350
|
...rounded ? { roundingAdjustments: rounded.adjustments } : {},
|
|
1333
1351
|
shareNotes,
|
|
1334
1352
|
...values,
|
|
1335
1353
|
anomaly
|
|
1336
|
-
};
|
|
1337
|
-
return { ...resolved, trends:
|
|
1354
|
+
}, trends = fitLineTrends(resolved, warnings);
|
|
1355
|
+
return { ...resolved, trends, trendRates: lineTrendRates(resolved, trends) };
|
|
1338
1356
|
}
|
|
1339
1357
|
function lineAnomalyModel(spec, d) {
|
|
1340
1358
|
if (d.isBump || d.variant !== "line")
|
|
@@ -1356,7 +1374,7 @@ function lineAnomalyModel(spec, d) {
|
|
|
1356
1374
|
let value = row[ci];
|
|
1357
1375
|
return value == null || !Number.isFinite(value) ? [] : [{ categoryId: c.id, value }];
|
|
1358
1376
|
});
|
|
1359
|
-
return { ...anomalyModel(spec, present, d.fmt, d.statFmt, d.locale, d.warnings, d.strings), seriesId: series.id };
|
|
1377
|
+
return { ...anomalyModel(spec, present, d.fmt, d.statFmt, d.locale, d.warnings, d.strings, d.rule), seriesId: series.id };
|
|
1360
1378
|
}
|
|
1361
1379
|
var BUMP_SERIES_LIMIT = 12;
|
|
1362
1380
|
function bumpFocusOf(isBump, options, dataSeries, bump, cats, warnings) {
|
|
@@ -1658,6 +1676,8 @@ function planLineLabels(env, domain, area, paints, text, reserves, scene, warnin
|
|
|
1658
1676
|
rebased: domain.rebased,
|
|
1659
1677
|
composeText: text.composeText,
|
|
1660
1678
|
composeEndText: text.composeEndText,
|
|
1679
|
+
composeShows: text.composeShows,
|
|
1680
|
+
composeEndShows: text.composeEndShows,
|
|
1661
1681
|
absOf: domain.absOf,
|
|
1662
1682
|
measure,
|
|
1663
1683
|
labelFont,
|
|
@@ -1711,8 +1731,8 @@ function planLineLabels(env, domain, area, paints, text, reserves, scene, warnin
|
|
|
1711
1731
|
let ci = domain.lastIdxOf.get(request.owner.seriesId ?? "");
|
|
1712
1732
|
ci !== void 0 && request.owner.categoryId === cats[ci]?.id && (request.font = { ...request.font, weight: focusValue && highlights.has(request.owner.seriesId ?? "") ? focusValue.weight : labelFont.weight }, request.fontStep = request.font);
|
|
1713
1733
|
}
|
|
1714
|
-
domain.labelModes.values !== "none" && text.contentOf("point", ["absolute"]) !== null && addFanEdgeLabels(domain, area, marks, labelFont, labelH, labelRequests, measure)
|
|
1715
|
-
let xPartial = xPartialWords(env, domain, area, reserves, lineToDateIds(env, domain, text)), catLabelsShown = area.xTicks && area.xOfValue ? placeXTickLabels({
|
|
1734
|
+
domain.labelModes.values !== "none" && text.contentOf("point", ["absolute"]) !== null && addFanEdgeLabels(domain, area, marks, labelFont, labelH, labelRequests, measure);
|
|
1735
|
+
let tieShows = joinTieValues({ bump: domain.bumpDerived, labelRequests, font: text.tickFont, measure }), xPartial = xPartialWords(env, domain, area, reserves, lineToDateIds(env, domain, text)), catLabelsShown = area.xTicks && area.xOfValue ? placeXTickLabels({
|
|
1716
1736
|
show: area.showCategoryTickRow,
|
|
1717
1737
|
plan: area.xTicks,
|
|
1718
1738
|
xOf: area.xOfValue,
|
|
@@ -1730,7 +1750,17 @@ function planLineLabels(env, domain, area, paints, text, reserves, scene, warnin
|
|
|
1730
1750
|
plot: { ...plot, h: plot.h + area.categoryTickGap - 6 },
|
|
1731
1751
|
labelRequests
|
|
1732
1752
|
});
|
|
1733
|
-
return {
|
|
1753
|
+
return {
|
|
1754
|
+
labelRequests,
|
|
1755
|
+
ratioTierRequestState,
|
|
1756
|
+
endpointLeaderAnchors,
|
|
1757
|
+
catLabelsShown,
|
|
1758
|
+
xPartialGroups: xPartial.partial?.groups ?? [],
|
|
1759
|
+
endpointFallback: bounded?.fallback ?? !1,
|
|
1760
|
+
endpointWiden: bounded?.widen ?? !1,
|
|
1761
|
+
wouldShow: pointWouldShows({ ...valueInput, format: domain.options.format }),
|
|
1762
|
+
tieShows
|
|
1763
|
+
};
|
|
1734
1764
|
}
|
|
1735
1765
|
function xPartialWords(env, domain, area, reserves, onValues) {
|
|
1736
1766
|
let { cats, options } = domain;
|
|
@@ -1744,12 +1774,13 @@ function addFanEdgeLabels(domain, area, marks, font, labelH, labelRequests, meas
|
|
|
1744
1774
|
if (!edge) return;
|
|
1745
1775
|
let outer = marks.fan[edge.index], { ci } = edge;
|
|
1746
1776
|
for (let [id, value] of [[outer.high, edge.high], [outer.low, edge.low]]) {
|
|
1747
|
-
let text = domain.fmt(value), w = measure(text, font).width, px = area.xOf(ci), py = area.y(value), categoryId = domain.cats[ci].id;
|
|
1777
|
+
let text = (domain.fanFmt ?? domain.fmt)(value), w = measure(text, font).width, px = area.xOf(ci), py = area.y(value), categoryId = domain.cats[ci].id;
|
|
1748
1778
|
labelRequests.push({
|
|
1749
1779
|
id: `fan-edge:${id}`,
|
|
1750
1780
|
kind: "point",
|
|
1751
1781
|
owner: { seriesId: id, categoryId },
|
|
1752
1782
|
text,
|
|
1783
|
+
...domain.rebased ? {} : { shows: { value: text } },
|
|
1753
1784
|
lines: [text],
|
|
1754
1785
|
typeRole: "label",
|
|
1755
1786
|
font,
|
|
@@ -1838,15 +1869,14 @@ function sigRound(v, digits = 10) {
|
|
|
1838
1869
|
return Math.round(v * m) / m;
|
|
1839
1870
|
}
|
|
1840
1871
|
function lineReserves(env, domain, paints, text, warnings) {
|
|
1841
|
-
let { isBump, measure, size, highlights } = env, { options, variant, isArea, drawnSeries, cats, pv, rowOf, rebased, absOf, labelModes } = domain, { labelFont, labelH, composeText, printsZero } = text, valueContent = text.contentOf("point", defaultValueContent(variant, labelModes.seriesValueContent)) ?? [], keyValues = /* @__PURE__ */ new Map();
|
|
1872
|
+
let { isBump, measure, size, highlights } = env, { options, variant, isArea, drawnSeries, cats, pv, rowOf, rebased, absOf, labelModes } = domain, { labelFont, labelH, composeText, printsZero } = text, valueContent = text.contentOf("point", defaultValueContent(variant, labelModes.seriesValueContent)) ?? [], keyValues = /* @__PURE__ */ new Map(), keyShows = /* @__PURE__ */ new Map();
|
|
1842
1873
|
if (usesEndLabelKey(options) && labelModes.values !== "none" && valueContent.length > 0)
|
|
1843
1874
|
for (let s of drawnSeries) {
|
|
1844
1875
|
let ci = domain.lastIdxOf.get(s.id);
|
|
1845
1876
|
if (ci === void 0) continue;
|
|
1846
1877
|
let cell = s.vals[ci];
|
|
1847
1878
|
if (cell.labelOverride !== void 0) continue;
|
|
1848
|
-
let value = rebased ? pv[rowOf.get(s)][ci] : absOf(s, ci), source = rebased ? void 0 : cell.format ? { ...s, format: cell.format } : s,
|
|
1849
|
-
valueContent,
|
|
1879
|
+
let value = rebased ? pv[rowOf.get(s)][ci] : absOf(s, ci), source = rebased ? void 0 : cell.format ? { ...s, format: cell.format } : s, endArgs = [
|
|
1850
1880
|
value,
|
|
1851
1881
|
variant === "stacked100-area" && !domain.sharesWithheld.has(cats[ci].id) ? domain.labelPv[rowOf.get(s)][ci] : null,
|
|
1852
1882
|
cats[ci].label ?? cats[ci].id,
|
|
@@ -1855,8 +1885,8 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1855
1885
|
cell.isPct,
|
|
1856
1886
|
source,
|
|
1857
1887
|
cats[ci].id
|
|
1858
|
-
);
|
|
1859
|
-
if (domain.x?.range && isArea && labelModes.values === "ends") {
|
|
1888
|
+
], printed = text.composeEndText(valueContent, ...endArgs), shows = text.composeEndShows(valueContent, ...endArgs);
|
|
1889
|
+
if (shows && keyShows.set(s.id, shows), domain.x?.range && isArea && labelModes.values === "ends") {
|
|
1860
1890
|
let first = pv[rowOf.get(s)].findIndex((value2) => value2 !== null);
|
|
1861
1891
|
if (first >= 0 && first !== ci && s.vals[first].labelOverride === void 0) {
|
|
1862
1892
|
let firstCell = s.vals[first], firstSource = rebased ? void 0 : firstCell.format ? { ...s, format: firstCell.format } : s, start = text.composeEndText(
|
|
@@ -1905,7 +1935,11 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1905
1935
|
flagged: flaggedPoints(domain),
|
|
1906
1936
|
pointHighlights: env.pointHighlights,
|
|
1907
1937
|
...domain.x ? { endToDate: { ids: lineToDateIds(env, domain, text), words: options.strings?.toDate ?? chartString(options, "toDate"), theme: env.theme, measure } } : {}
|
|
1908
|
-
});
|
|
1938
|
+
}), fanEdge = domain.fan && !fanEdgeInKey(domain) && labelModes.values !== "none" && text.contentOf("point", ["absolute"]) !== null ? outerFanEdge(domain, domain.fan.bands.map((band) => ({ low: band.low.id, high: band.high.id }))) : void 0;
|
|
1939
|
+
if (fanEdge && fanEdge.ci === cats.length - 1) {
|
|
1940
|
+
let fanText = domain.fanFmt ?? domain.fmt;
|
|
1941
|
+
room.right = Math.max(room.right, Math.max(measure(fanText(fanEdge.low), labelFont).width, measure(fanText(fanEdge.high), labelFont).width) / 2 + PLOT_END_AIR);
|
|
1942
|
+
}
|
|
1909
1943
|
return isArea && (room.left = room.right = 0), env.pointHighlights.size > 0 && cats.length > 0 && drawnSeries.forEach((series, index) => {
|
|
1910
1944
|
let first = paints.markerExtent(series, index, 0), last = paints.markerExtent(series, index, cats.length - 1);
|
|
1911
1945
|
first && first.reach > 0 && (room.left = Math.max(room.left, first.reach + PLOT_END_AIR)), last && last.reach > 0 && (room.right = Math.max(room.right, last.reach + PLOT_END_AIR));
|
|
@@ -1928,6 +1962,7 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1928
1962
|
rebased,
|
|
1929
1963
|
absOf,
|
|
1930
1964
|
composeText: text.composeEndText,
|
|
1965
|
+
composeShows: text.composeEndShows,
|
|
1931
1966
|
printsZero,
|
|
1932
1967
|
// The endpoint swatch tells lines apart; a lone fan centre needs none.
|
|
1933
1968
|
heroMode: paints.heroMode && drawnSeries.length >= 2,
|
|
@@ -1971,6 +2006,7 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1971
2006
|
return {
|
|
1972
2007
|
endpoint,
|
|
1973
2008
|
keyValues,
|
|
2009
|
+
keyShows,
|
|
1974
2010
|
categoryEndRoom,
|
|
1975
2011
|
...centredEndRoom ? { centredEndRoom } : {},
|
|
1976
2012
|
startLabels,
|
|
@@ -2111,7 +2147,7 @@ function solveLineFrame(env, domain, paints, text, reserves, warnings, eventKey)
|
|
|
2111
2147
|
reserves.referenceBands?.reserve ?? 0,
|
|
2112
2148
|
options[VALUE_LINE_RESERVE] ?? 0,
|
|
2113
2149
|
// The anomaly rules carry their numbers right of the plot, as on column.
|
|
2114
|
-
domain.anomaly ? anomalyRuleReserve(anomalyRuleLines(theme, domain.anomaly.model, domain.anomaly.corridorShown, domain.anomaly
|
|
2150
|
+
domain.anomaly ? anomalyRuleReserve(anomalyRuleLines(theme, domain.anomaly.model, domain.anomaly.corridorShown, domain.anomaly, { token: "warn" }, options.strings), text.labelFont, measure) : 0
|
|
2115
2151
|
)
|
|
2116
2152
|
}, legend = lineLegend(theme, domain, paints, text, reserves, warnings, size.width), claims = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height });
|
|
2117
2153
|
return { frame: solveFrame(
|
|
@@ -2542,6 +2578,7 @@ function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, la
|
|
|
2542
2578
|
measure: env.measure,
|
|
2543
2579
|
format: options.format,
|
|
2544
2580
|
locale: options.locale?.language,
|
|
2581
|
+
levelSpec: !rebased && percentLevels(dataSeries) ? { ...domain.valueSpec.percentSpec, suffix: "" } : rebased ? void 0 : domain.valueSpec.spec,
|
|
2545
2582
|
strings: options.strings,
|
|
2546
2583
|
percentLevels: !rebased && percentLevels(dataSeries),
|
|
2547
2584
|
sharesFormat: domain.variant === "stacked100-area",
|
|
@@ -2569,11 +2606,13 @@ function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, la
|
|
|
2569
2606
|
} }
|
|
2570
2607
|
});
|
|
2571
2608
|
}
|
|
2572
|
-
function lineStandings(env, domain, text) {
|
|
2609
|
+
function lineStandings(env, domain, text, shownText) {
|
|
2573
2610
|
let { cats, dataSeries, bumpDerived, endpoints, variant, rebased, lastIdxOf } = domain, finalCi = cats.length - 1, bumpFinal = bumpDerived ? dataSeries.map((s) => ({ s, rank: bumpDerived.ranks[s.id]?.[finalCi] ?? null })) : [], bumpExited = bumpFinal.filter((entry) => entry.rank === null && endpoints[entry.s.id]), endpointDesc = env.isBump ? bumpFinal.filter((entry) => entry.rank !== null).sort((a, b) => a.rank - b.rank).map((entry) => chartString2(domain.options, "entityRank", { v1: entry.s.label, v2: entry.rank })).join(", ") : dataSeries.filter((s) => endpoints[s.id]).map((s) => {
|
|
2574
|
-
let
|
|
2575
|
-
if (
|
|
2576
|
-
let
|
|
2611
|
+
let cell = s.vals[lastIdxOf.get(s.id)], shown = variant === "stacked100-area" ? shownText(s.id, endpoints[s.id].categoryId, "share.percent", !1) : shownText(s.id, endpoints[s.id].categoryId, "value", !rebased);
|
|
2612
|
+
if (shown !== void 0) return `${s.label} ${shown}`;
|
|
2613
|
+
let shareText2 = domain.shareTexts.get(`${endpoints[s.id].categoryId}\0${s.id}`);
|
|
2614
|
+
if (shareText2 !== void 0) return `${s.label} ${shareText2}`;
|
|
2615
|
+
let source = rebased ? void 0 : cell.format ? { ...s, format: cell.format } : s;
|
|
2577
2616
|
return `${s.label} ${text.composeEndText(variant === "stacked100-area" ? ["percent"] : ["absolute"], endpoints[s.id].value, endpoints[s.id].value, "", "", endUnitSuffix(domain.options, rebased), cell.isPct, source)}`;
|
|
2578
2617
|
}).join(", "), lastRankedLabel = (id) => {
|
|
2579
2618
|
let row = bumpDerived?.ranks[id] ?? [], at = -1;
|
|
@@ -2585,8 +2624,37 @@ function lineStandings(env, domain, text) {
|
|
|
2585
2624
|
).join(", ") }) : "";
|
|
2586
2625
|
return { endpointDesc, bumpExitedDesc };
|
|
2587
2626
|
}
|
|
2588
|
-
function
|
|
2589
|
-
let
|
|
2627
|
+
function lineShownTexts(domain, reserves, plan, labels, legend) {
|
|
2628
|
+
let visible = new Map(labels.filter((label) => label.hidden === void 0).map((label) => [String(label.id), label])), shown = [];
|
|
2629
|
+
if (domain.sourceFmt) for (let s of domain.drawnSeries) s.vals.forEach((val, ci2) => {
|
|
2630
|
+
val.v !== null && domain.cats[ci2] && shown.push({ owner: { seriesId: s.id, categoryId: domain.cats[ci2].id }, shows: { value: domain.sourceFmt(val.v) } });
|
|
2631
|
+
});
|
|
2632
|
+
let drawnFor = (labelId, owners, shows) => {
|
|
2633
|
+
if (shows && visible.has(String(labelId))) for (let owner of owners) shown.push({ owner, shows, drawn: !0 });
|
|
2634
|
+
}, tail = reserves.endpoint.nearZeroTail, [first, ...rest] = tail?.seriesIds ?? [], ci = first === void 0 ? void 0 : domain.lastIdxOf.get(first), category = ci === void 0 ? void 0 : domain.cats[ci];
|
|
2635
|
+
category && drawnFor(`point:${first}:${category.id}`, rest.map((seriesId) => ({ seriesId, categoryId: category.id })), visible.get(`point:${first}:${category.id}`)?.shows);
|
|
2636
|
+
for (let tie of plan.tieShows) drawnFor(tie.labelId, tie.owners, tie.shows);
|
|
2637
|
+
for (let [seriesId, shows] of reserves.keyShows) {
|
|
2638
|
+
let last = domain.lastIdxOf.get(seriesId);
|
|
2639
|
+
last !== void 0 && legend?.items.some((item) => item.id === seriesId) && shown.push({ owner: { seriesId, categoryId: domain.cats[last].id }, shows, drawn: !0 });
|
|
2640
|
+
}
|
|
2641
|
+
let drawn = /* @__PURE__ */ new Map(), would = /* @__PURE__ */ new Map(), key = (seriesId, categoryId) => `${seriesId}\0${categoryId}`, add = (index, owner, shows) => {
|
|
2642
|
+
if (Object.keys(owner).length !== 2 || owner.seriesId === void 0 || owner.categoryId === void 0) return;
|
|
2643
|
+
let into = index.get(key(owner.seriesId, owner.categoryId)) ?? {};
|
|
2644
|
+
for (let [slot, text] of Object.entries(shows)) into[slot] ??= text;
|
|
2645
|
+
index.set(key(owner.seriesId, owner.categoryId), into);
|
|
2646
|
+
};
|
|
2647
|
+
for (let label of labels) label.hidden !== void 0 && label.shows && add(would, label.owner, label.shows);
|
|
2648
|
+
for (let mark of shown) add(mark.drawn ? drawn : would, mark.owner, mark.shows);
|
|
2649
|
+
for (let label of visible.values()) label.shows && add(drawn, label.owner, label.shows);
|
|
2650
|
+
return {
|
|
2651
|
+
shown,
|
|
2652
|
+
wouldShow: plan.wouldShow.any ? new DeferredShownMarks(plan.wouldShow.all) : void 0,
|
|
2653
|
+
shownText: (seriesId, categoryId, slot, wouldToo) => drawn.get(key(seriesId, categoryId))?.[slot] ?? (wouldToo ? would.get(key(seriesId, categoryId))?.[slot] ?? plan.wouldShow.at(seriesId, categoryId)?.[slot] : void 0)
|
|
2654
|
+
};
|
|
2655
|
+
}
|
|
2656
|
+
function lineA11yDesc(env, domain, area, marks, variantName, text, shownText) {
|
|
2657
|
+
let { options, cats, drawnSeries, refSeries, interpolationFor, rebased, bumpDerived, fan, variant, nmCats100, naCats100 } = domain, { endpointDesc, bumpExitedDesc } = lineStandings(env, domain, text, shownText), finalCi = cats.length - 1, suppressedCompositionDesc = variant === "stacked100-area" && (nmCats100.size > 0 || naCats100.size > 0) ? chartString2(domain.options, "areaCompositionsDesc", { v1: cats.filter((category) => !nmCats100.has(category.id) && !naCats100.has(category.id)).map((category) => category.label ?? category.id).join(", ") || chartString2(domain.options, "none"), v2: cats.filter((category) => nmCats100.has(category.id) || naCats100.has(category.id)).map((category) => `${category.label ?? category.id} (${nmCats100.has(category.id) ? "n.m." : "n/a"})`).join(", ") }) : "", fanDesc = fan ? chartString2(domain.options, "fanDesc", { v1: fan.of.label, v2: fan.bands.map((band) => band.label).join(", ") }) + (fan.origin === null ? chartString2(domain.options, "fanZeroWidth") : chartString2(domain.options, "fanOrigin", { v1: cats.find((category) => category.id === fan.origin)?.label ?? fan.origin })) : "", effectiveInterpolationDesc = [...new Set(drawnSeries.map(interpolationFor))].filter(
|
|
2590
2658
|
(mode) => mode !== "linear"
|
|
2591
2659
|
);
|
|
2592
2660
|
return chartString2(domain.options, "lineDescStart", { v1: variantName, v2: drawnSeries.length, v3: cats.length }) + (options.valueAxis?.log ? chartString2(domain.options, "lineLogScaleClause") : "") + fanDesc + (refSeries.length ? chartString2(domain.options, "referenceSeriesClause", { v1: refSeries.length }) : "") + (effectiveInterpolationDesc.length === 0 ? "" : chartString2(domain.options, "interpolationClause", { v1: effectiveInterpolationDesc.map((value) => chartString2(domain.options, { linear: "linearInterpolation", "step-after": "stepAfterInterpolation", "step-before": "stepBeforeInterpolation", monotone: "monotoneInterpolation" }[value])).join(" / ") })) + (marks.gapFills ? chartString2(domain.options, "lineDifferenceDesc", { v1: options.gapFill.between[0], v2: options.gapFill.between[1] }) : "") + (marks.targets ? chartString2(domain.options, "lineTargetsDesc", { v1: marks.targets.length, v2: marks.targets.length === 1 ? "" : "s" }) : "") + (marks.phases ? chartString2(domain.options, "linePhasesDesc", { v1: marks.phases.length }) : "") + (rebased ? chartString2(domain.options, "lineIndexed") : "") + (bumpDerived ? chartString2(domain.options, "lineRanksDesc", { v1: bumpDerived.maxRank, v2: chartString2(domain.options, bumpDerived.direction === "higherIsBetter" ? "higherBetter" : "lowerBetter") }) + (bumpDerived.ties.length > 0 ? chartString2(domain.options, "lineRankTies", { v1: bumpDerived.ties.length, v2: bumpDerived.ties.length === 1 ? "" : "s" }) : "") : "") + (endpointDesc ? chartString2(domain.options, "lineEndpointsDesc", { v1: env.isBump ? chartString2(domain.options, "standingsPeriod", { v1: cats[finalCi].label ?? cats[finalCi].id }) : chartString2(domain.options, "latestValues"), v2: endpointDesc }) : ".") + bumpExitedDesc + suppressedCompositionDesc + (domain.trends.length ? ` ${domain.trends.map((fit) => lineTrendLabel(domain, fit)).join(". ")}.` : "") + anomalyA11y(domain) + ratioTierA11y(area.ratioTier);
|
|
@@ -2598,6 +2666,7 @@ function lineAnomalyMarks(theme, domain, anomaly, area, text, scene, measure) {
|
|
|
2598
2666
|
anomaly: anomaly.model,
|
|
2599
2667
|
corridorShown: anomaly.corridorShown,
|
|
2600
2668
|
statFmt: anomaly.statFmt,
|
|
2669
|
+
corridorFmt: anomaly.corridorFmt,
|
|
2601
2670
|
fmt: domain.fmt,
|
|
2602
2671
|
corridorPaint: columnCorridorPaint(domain.options.colorblindSafe),
|
|
2603
2672
|
plot: area.forecastPlot,
|
|
@@ -2754,7 +2823,9 @@ function assembleLineGeometry(input) {
|
|
|
2754
2823
|
labelId: plan.catLabelsShown && !area.xTicks ? `category:${c.id}` : void 0
|
|
2755
2824
|
}))
|
|
2756
2825
|
});
|
|
2757
|
-
let variantName = isBump ? chartString2(domain.options, "bumpVariant") : variant === "line" ? chartString2(domain.options, "lineName") : variant === "area" ? chartString2(domain.options, "areaName2") : variant === "stacked-area" ? chartString2(domain.options, "stackedArea") : chartString2(domain.options, "percentArea"), bandLevels = (input.reserves.referenceBands?.entries ?? []).flatMap((entry) => [entry.low, entry.high]), bandFmt = variant === "stacked100-area" ? (
|
|
2826
|
+
let variantName = isBump ? chartString2(domain.options, "bumpVariant") : variant === "line" ? chartString2(domain.options, "lineName") : variant === "area" ? chartString2(domain.options, "areaName2") : variant === "stacked-area" ? chartString2(domain.options, "stackedArea") : chartString2(domain.options, "percentArea"), bandLevels = (input.reserves.referenceBands?.entries ?? []).flatMap((entry) => [entry.low, entry.high]), bandFmt = variant === "stacked100-area" ? tickFormatter({ ...defaultSetSpec(bandLevels, domain.options.locale?.language, void 0, { kind: "percent" }), suffix: "%" }, bandLevels) : area.axisTickSpec ? tickFormatter(area.axisTickSpec, bandLevels) : area.axisFmt, lineShown = lineShownTexts(domain, input.reserves, plan, allLabels, area.frame.legend);
|
|
2827
|
+
lineShown.shown.length > 0 && (marks.shown = lineShown.shown), lineShown.wouldShow && (marks.wouldShow = lineShown.wouldShow);
|
|
2828
|
+
let a11yDesc = lineA11yDesc(env, domain, area, marks, variantName, text, lineShown.shownText) + referenceBandsA11y(input.reserves.referenceBands, bandFmt, domain.options) + (usesEndLabelKey(options) ? chartString2(domain.options, "lineEndKeyDesc") : ""), keyed = new Set(area.frame.legend?.items.map((item) => item.id));
|
|
2758
2829
|
return withUnprintedClaims({
|
|
2759
2830
|
type: "line",
|
|
2760
2831
|
size: env.size,
|
|
@@ -2943,7 +3014,11 @@ function layoutLinePass(data, options = {}) {
|
|
|
2943
3014
|
let id = `point:${name.s.id}:${domain.cats[name.ci].id}`;
|
|
2944
3015
|
folded.has(id) && name.lines.join(" ").includes(`\xB7 ${folded.get(id)}`) && hosts.set(id, name.id);
|
|
2945
3016
|
}
|
|
2946
|
-
for (let request of plan.labelRequests) hosts.has(request.id)
|
|
3017
|
+
for (let request of plan.labelRequests) if (hosts.has(request.id)) {
|
|
3018
|
+
Object.assign(request, { redundant: !0, suppressedAs: "redundant" });
|
|
3019
|
+
let host = request.shows && plan.labelRequests.find((name) => name.id === hosts.get(request.id));
|
|
3020
|
+
host && (host.shows = request.shows);
|
|
3021
|
+
}
|
|
2947
3022
|
let solveCtx = labelCtx(theme, size, domain.options, {
|
|
2948
3023
|
density: env.density,
|
|
2949
3024
|
measure,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-Z6H5ED2I.js";
|
|
10
10
|
import {
|
|
11
11
|
createChartComponent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E4KHHC46.js";
|
|
13
13
|
import {
|
|
14
14
|
varianceCore
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6CZGFTGK.js";
|
|
16
16
|
import {
|
|
17
17
|
registeredType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4YZQY3AA.js";
|
|
19
19
|
|
|
20
20
|
// src/react/charts/variance.ts
|
|
21
21
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, description: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPosition: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: sharedKeys0, scaleGroup: { y: 0, id: 0 }, sort: { categories: 0, segments: 0 }, topN: { n: 0, rest: 0, restLabel: 0, threshold: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, axisTitles: { primary: 0 }, variant: 0, variance: { of: 0, vs: 0 }, missingMark: 0 }, labels: ["category", "point", "total", "axisTitle"] }), VarianceChart = createChartComponent(registeredType(varianceCore), checkOptionKeys);
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
} from "./chunk-M4YLED7M.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutButterfly
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7YJSSPQX.js";
|
|
7
7
|
import {
|
|
8
8
|
structureCount
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
10
10
|
import {
|
|
11
11
|
chartSizing
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YM4MVABU.js";
|
|
13
13
|
import {
|
|
14
14
|
HOST_CLAIMS,
|
|
15
15
|
authoredNotes,
|
|
16
16
|
claimId,
|
|
17
17
|
withAuthoredFootnotes,
|
|
18
18
|
withUnprintedClaims
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AUSZDYGE.js";
|
|
20
20
|
import {
|
|
21
21
|
disclosureNote,
|
|
22
22
|
keepShownNotes
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WD5NJHZG.js";
|
|
24
24
|
import {
|
|
25
25
|
emptyIdRecord
|
|
26
26
|
} from "./chunk-LINZPU5D.js";
|
|
27
27
|
import {
|
|
28
28
|
formatterFromExample,
|
|
29
|
-
|
|
30
|
-
} from "./chunk-
|
|
29
|
+
ruleFormatter
|
|
30
|
+
} from "./chunk-3JG764MI.js";
|
|
31
31
|
import {
|
|
32
32
|
chartStrings,
|
|
33
33
|
formatAutomaticPercent
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FYFXOLWI.js";
|
|
35
35
|
import {
|
|
36
36
|
isPctCell
|
|
37
37
|
} from "./chunk-O3VN6BTL.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveTheme,
|
|
41
41
|
strokeToken,
|
|
42
42
|
themeForWidth
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XAH4EWJT.js";
|
|
44
44
|
import {
|
|
45
45
|
NormalizeError,
|
|
46
46
|
TARGET_SIZE,
|
|
@@ -108,7 +108,7 @@ function rowPitchFor(width) {
|
|
|
108
108
|
}
|
|
109
109
|
var PYRAMID_BAND_FRACTION = 0.8;
|
|
110
110
|
function layoutPyramid(data, options = {}) {
|
|
111
|
-
let
|
|
111
|
+
let warnings = [], loose = options;
|
|
112
112
|
if (loose.sortBy !== void 0 || loose.sort !== void 0) {
|
|
113
113
|
let key = loose.sortBy !== void 0 ? "sortBy" : "sort";
|
|
114
114
|
throw new NormalizeError(
|
|
@@ -166,7 +166,7 @@ function layoutPyramid(data, options = {}) {
|
|
|
166
166
|
let a = counts[0][i], b = counts[1][i];
|
|
167
167
|
values[band.id] = { [groupIds[0]]: a, [groupIds[1]]: b }, ratio[band.id] = b === 0 ? null : a / b, totals[groupIds[0]] = totals[groupIds[0]] + a, totals[groupIds[1]] = totals[groupIds[1]] + b;
|
|
168
168
|
});
|
|
169
|
-
let grandTotal = totals[groupIds[0]] + totals[groupIds[1]], shares;
|
|
169
|
+
let grandTotal = totals[groupIds[0]] + totals[groupIds[1]], countText = ruleFormatter([...counts[0], ...counts[1]], options.locale?.language, { unit: options.unit }), fmtCount = (v) => countText(v), shares;
|
|
170
170
|
if (isShare) {
|
|
171
171
|
if (basis === "shareOfGroup" ? !(totals[groupIds[0]] > 0 && totals[groupIds[1]] > 0) : !(grandTotal > 0))
|
|
172
172
|
throw new NormalizeError(
|
|
@@ -247,7 +247,9 @@ function layoutPyramid(data, options = {}) {
|
|
|
247
247
|
rowDriven: !1,
|
|
248
248
|
// the scale fills each pane, heads stand at the lane, and
|
|
249
249
|
// cards put values inside the bar end in a lane as narrow as the bands.
|
|
250
|
-
paneFit: !0
|
|
250
|
+
paneFit: !0,
|
|
251
|
+
// A plotted share is the band's share of its whole in the record, not its count.
|
|
252
|
+
valueSlot: isShare ? "share.percent" : "value"
|
|
251
253
|
}, geo = layoutButterfly(butterflyData, butterflyOptions, comparison), pitchWanted = options[TARGET_SIZE]?.fixed.height === !1 && panelTypeClass(options) === void 0 ? rowPitchFor(geo.size.width) : void 0, rowsNow = geo.marks.left;
|
|
252
254
|
if (pitchWanted !== void 0 && !geo.refused && rowsNow.length > 1) {
|
|
253
255
|
let pitch = (rowsNow[rowsNow.length - 1].rect.y - rowsNow[0].rect.y) / (rowsNow.length - 1), grow = Math.ceil(rowsNow.length * (pitchWanted - pitch) - 1e-6);
|