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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DIVERGING_COLUMN_OVERRIDES_REFUSAL,
|
|
3
3
|
SLOPE_SIZING
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HW67YGJC.js";
|
|
5
5
|
import {
|
|
6
6
|
COLUMN_GAP,
|
|
7
7
|
COLUMN_MIN_WIDTH,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
columnHeadText,
|
|
10
10
|
columnWidth,
|
|
11
11
|
differenceFormatter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UV77Y7QK.js";
|
|
13
13
|
import {
|
|
14
14
|
valueLineExtent
|
|
15
15
|
} from "./chunk-QPWRHDLZ.js";
|
|
@@ -19,26 +19,26 @@ import {
|
|
|
19
19
|
columnHeadFont,
|
|
20
20
|
fitHead,
|
|
21
21
|
headRequest
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ICJUN47O.js";
|
|
23
23
|
import {
|
|
24
24
|
percentLevels,
|
|
25
25
|
runAnnotatePass
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QDFX2KAP.js";
|
|
27
27
|
import {
|
|
28
28
|
stepDownFont
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MOBRWYUQ.js";
|
|
30
30
|
import {
|
|
31
31
|
breakUnsupported,
|
|
32
32
|
chartTheme
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AIPOSNVG.js";
|
|
34
34
|
import {
|
|
35
35
|
chartString,
|
|
36
36
|
foldShareRefusal,
|
|
37
37
|
planSlopeFold
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5AXWSGS7.js";
|
|
39
39
|
import {
|
|
40
40
|
structureCount
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YDYZWCUQ.js";
|
|
42
42
|
import {
|
|
43
43
|
alignedRight,
|
|
44
44
|
authoredTrackWidth,
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
spread1DResult,
|
|
55
55
|
sweepHide,
|
|
56
56
|
warnSpreadOverflow
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YM4MVABU.js";
|
|
58
58
|
import {
|
|
59
59
|
prepareFractionData
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-QXHFELIA.js";
|
|
61
61
|
import {
|
|
62
62
|
PRIORITY,
|
|
63
63
|
authoredFootnoteCount,
|
|
@@ -75,30 +75,30 @@ import {
|
|
|
75
75
|
plotHeightAfter,
|
|
76
76
|
solveFrame,
|
|
77
77
|
solveLabels
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-AUSZDYGE.js";
|
|
79
79
|
import {
|
|
80
80
|
disclosureNote
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-WD5NJHZG.js";
|
|
82
82
|
import {
|
|
83
83
|
emptyIdRecord
|
|
84
84
|
} from "./chunk-LINZPU5D.js";
|
|
85
85
|
import {
|
|
86
86
|
differenceExample,
|
|
87
|
+
formatWithSpec,
|
|
87
88
|
formatterFromExample,
|
|
89
|
+
percentChangeSpec,
|
|
90
|
+
ruleFormatter,
|
|
88
91
|
seriesRasterFormatter,
|
|
89
92
|
signedFormatterFromExample
|
|
90
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-3JG764MI.js";
|
|
91
94
|
import {
|
|
92
95
|
autoDecimals,
|
|
93
96
|
chartWording,
|
|
94
97
|
formatAuthoredPercent,
|
|
95
98
|
formatAutomaticNumber,
|
|
96
|
-
formatAutomaticPercent,
|
|
97
99
|
lowBaseKeyLabel,
|
|
98
|
-
numberRange
|
|
99
|
-
|
|
100
|
-
valueSetDecimals
|
|
101
|
-
} from "./chunk-MSYTF3DZ.js";
|
|
100
|
+
numberRange
|
|
101
|
+
} from "./chunk-FYFXOLWI.js";
|
|
102
102
|
import {
|
|
103
103
|
cellMeta,
|
|
104
104
|
cellValue,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
seriesPaint,
|
|
125
125
|
strokeToken,
|
|
126
126
|
textScaleOf
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-XAH4EWJT.js";
|
|
128
128
|
import {
|
|
129
129
|
MARK_CONTRAST_FLOOR
|
|
130
130
|
} from "./chunk-BQBD6Q5J.js";
|
|
@@ -155,7 +155,7 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
155
155
|
chartTheme(options),
|
|
156
156
|
options.palette,
|
|
157
157
|
warnings
|
|
158
|
-
), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, opt = options.diverging ?? {}, language = options.locale?.language, chartFormat, fmtVal = (v, isPct, example = options.format) => example && example === options.format ? (chartFormat ??= formatterFromExample(example, language, void 0, panels.flatMap((p) => [...p.g.positive, ...p.g.negative])))(v) : example ? formatterFromExample(example, options.locale?.language)(v) : isPct ? formatAuthoredPercent(v, language) :
|
|
158
|
+
), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, opt = options.diverging ?? {}, language = options.locale?.language, chartFormat, fmtVal = (v, isPct, example = options.format) => example && example === options.format ? (chartFormat ??= formatterFromExample(example, language, void 0, panels.flatMap((p) => [...p.g.positive, ...p.g.negative])))(v) : example ? formatterFromExample(example, options.locale?.language)(v) : isPct ? formatAuthoredPercent(v, language) : ruleFormatter([v], language, { unit: options.unit })(v);
|
|
159
159
|
if (!data || !Array.isArray(data.categories) || data.categories.length < 2)
|
|
160
160
|
throw new NormalizeError("empty-data", "categories", "slope variant 'diverging' requires two categories (periods)", void 0, void 0, ["data", "categories"]);
|
|
161
161
|
if (data.categories.length > 2)
|
|
@@ -238,21 +238,22 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
238
238
|
let key = (x) => sort === "net" ? x.g.net[1] : x.g.positive[1];
|
|
239
239
|
order.sort((a, b) => key(b.x) - key(a.x) || a.i - b.i);
|
|
240
240
|
}
|
|
241
|
-
let panels = order.map((o) => o.x), signed = options.format ? signedFormatterFromExample(differenceExample(options.format), language, void 0, panels.flatMap((p) => [...p.g.positive, ...p.g.negative])) : (
|
|
241
|
+
let panels = order.map((o) => o.x), baseFmt = ruleFormatter(panels.flatMap((p) => p.g.n ? [p.g.n[1]] : []), language), signed = options.format ? signedFormatterFromExample(differenceExample(options.format), language, void 0, panels.flatMap((p) => [...p.g.positive, ...p.g.negative])) : rulePointsFormatter(panels.flatMap((p) => [p.g.net[1], p.g.netChange]), language), posName = opt.labels?.positive ?? chartString(options, "positiveName"), negName = opt.labels?.negative ?? chartString(options, "negativeName"), showNet = opt.net ?? !0, notes = [...authoredNotes(options)], neitherAll = panels.flatMap((p) => p.g.neither).map((v) => Math.max(0, v));
|
|
242
242
|
if ((opt.neutralNote ?? !0) && neitherAll.some((v) => v > 0.5)) {
|
|
243
|
-
let lo = minOf(neitherAll), hi = maxOf(neitherAll), restFmt = options.format ? (v) => fmtVal(v, !1) :
|
|
243
|
+
let lo = minOf(neitherAll), hi = maxOf(neitherAll), restFmt = options.format ? (v) => fmtVal(v, !1) : ruleFormatter([lo, hi], language, { unit: options.unit }), span = lo === hi ? restFmt(lo) : numberRange(restFmt(lo), restFmt(hi));
|
|
244
244
|
notes.push(disclosureNote(chartString(options, "slopeResponseRest", { v1: posName, v2: negName, v3: span })));
|
|
245
245
|
}
|
|
246
246
|
let low = panels.filter((p) => p.g.lowBase);
|
|
247
247
|
low.length > 0 && notes.push(disclosureNote(chartString(options, "slopeBaseNote", { v1: minBase, v2: low.map((p) => `${p.label}: n = ${p.g.n[0]} / ${p.g.n[1]}`).join("; ") })));
|
|
248
248
|
let occupied = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height }), margin = { ...canvasMargin(theme, size.width), ...options.margin };
|
|
249
249
|
options.legend !== void 0 && warnings.push({ code: "slope-diverging-legend-ignored", severity: "info", message: "variant 'diverging' keys its areas and periods in its own key row; legend is ignored", suggest: "remove legend" }), (options.annotations ?? []).length > 0 && warnings.push({ code: "slope-diverging-annotations-ignored", severity: "warn", message: "variant 'diverging' draws no annotations; they are ignored", suggest: "remove annotations, or state the point in the title" });
|
|
250
|
-
let frameResult = solveFrame({ size, margin, ...frameTextOptions(options), footnotes: notes, theme, measure }, occupied), nodes = [...frameResult.nodes], labelFont = { family: theme.type.family, ...theme.type.label }, headFont = { ...labelFont, weight: emphasisWeight(theme) }, netFont = headFont, lineH = labelFont.size * (labelFont.lineHeight ?? 1.2), textH = measure("0", labelFont).height, posSolid = colorblindPaint("good", !0), posFill = { ...posSolid, tint: 0.62 }, negFill = { token: "badFill", tint: 0.62 }, posEdge = colorblindPaint("good"), negEdge = { token: "bad" }, keyInk = { token: "markInk" }, labelRequests = [], fontById = /* @__PURE__ */ new Map(), fixed = (id, kind, owner, lines, font, rects, priority, middle = !0, role, runs) => {
|
|
250
|
+
let frameResult = solveFrame({ size, margin, ...frameTextOptions(options), footnotes: notes, theme, measure }, occupied), nodes = [...frameResult.nodes], labelFont = { family: theme.type.family, ...theme.type.label }, headFont = { ...labelFont, weight: emphasisWeight(theme) }, netFont = headFont, lineH = labelFont.size * (labelFont.lineHeight ?? 1.2), textH = measure("0", labelFont).height, posSolid = colorblindPaint("good", !0), posFill = { ...posSolid, tint: 0.62 }, negFill = { token: "badFill", tint: 0.62 }, posEdge = colorblindPaint("good"), negEdge = { token: "bad" }, keyInk = { token: "markInk" }, labelRequests = [], fontById = /* @__PURE__ */ new Map(), fixed = (id, kind, owner, lines, font, rects, priority, middle = !0, role, runs, shows) => {
|
|
251
251
|
fontById.set(id, font), labelRequests.push({
|
|
252
252
|
id,
|
|
253
253
|
kind,
|
|
254
254
|
owner,
|
|
255
255
|
text: lines.join(" "),
|
|
256
|
+
...shows ? { shows } : {},
|
|
256
257
|
lines,
|
|
257
258
|
font,
|
|
258
259
|
priority,
|
|
@@ -293,7 +294,7 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
293
294
|
let example = p.formats[side][e] ?? p.s.format ?? options.format;
|
|
294
295
|
if (example || p.isPct) return fmtVal(v, p.isPct, example);
|
|
295
296
|
let fmt = groupFmts.get(p);
|
|
296
|
-
return fmt || groupFmts.set(p, fmt =
|
|
297
|
+
return fmt || groupFmts.set(p, fmt = ruleFormatter([...p.g.positive, ...p.g.negative], language, { unit: options.unit })), fmt(v);
|
|
297
298
|
}, valueW = maxOf(panels.flatMap((p) => ["positive", "negative"].flatMap((side) => p.g[side].map((v, e) => measure(valueText(v, p, side, e), labelFont).width)))), inset = Math.min(pw / 4, Math.max(6, valueW / 2 + 2)), heads = panels.map((p) => {
|
|
298
299
|
let suffix = markedLabel("", p.s.footnote, p.s.id, { count: authoredFootnoteCount(options), warnings }), fit = fitText(p.label, headFont, pw + PANEL_GAP - HEAD_CLEAR - measure(suffix, headFont).width, 3, measure);
|
|
299
300
|
if (!suffix) return fit;
|
|
@@ -336,7 +337,7 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
336
337
|
...e === 0 ? { stroke: edge, strokeWidth: strokeToken(theme, "mark") } : {},
|
|
337
338
|
owner: { seriesId: sid, categoryId: cat.id },
|
|
338
339
|
part: "endpointDot",
|
|
339
|
-
display: { value: text }
|
|
340
|
+
display: { value: text, shows: { value: text } }
|
|
340
341
|
}), occupied.claim({ x: cx - DOT_R, y: cy - DOT_R, w: 2 * DOT_R, h: 2 * DOT_R }, "mark", { seriesId: sid, categoryId: cat.id });
|
|
341
342
|
let w = measure(text, labelFont).width, above = { x: cx - w / 2, y: cy - DOT_R - 3 - textH, w, h: textH }, below = { x: cx - w / 2, y: cy + DOT_R + 3, w, h: textH }, beside = { x: e === 0 ? cx - DOT_R - 3 - w : cx + DOT_R + 3, y: cy - textH / 2, w, h: textH };
|
|
342
343
|
fixed(
|
|
@@ -346,7 +347,11 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
346
347
|
[text],
|
|
347
348
|
labelFont,
|
|
348
349
|
side === "positive" ? [above, beside] : [below, beside],
|
|
349
|
-
PRIORITY.endpoint
|
|
350
|
+
PRIORITY.endpoint,
|
|
351
|
+
!0,
|
|
352
|
+
void 0,
|
|
353
|
+
void 0,
|
|
354
|
+
{ value: text }
|
|
350
355
|
);
|
|
351
356
|
});
|
|
352
357
|
let head = heads[i], hh = head.lines.length * headFont.size * (headFont.lineHeight ?? 1.2);
|
|
@@ -357,7 +362,7 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
357
362
|
fixed(`total:${id}:net`, "total", { seriesId: id }, [text], netFont, [{ x: px + pw / 2 - w / 2, y: fy, w, h: textH }], PRIORITY.total, !0, "note"), fy += footerPitch;
|
|
358
363
|
}
|
|
359
364
|
if (p.g.n) {
|
|
360
|
-
let text = `n = ${
|
|
365
|
+
let text = `n = ${baseFmt(p.g.n[1])}`, w = measure(text, labelFont).width;
|
|
361
366
|
fixed(`total:${id}:base`, "total", { seriesId: id }, [text], labelFont, [{ x: px + pw / 2 - w / 2, y: fy, w, h: textH }], PRIORITY.total, !0, "note");
|
|
362
367
|
}
|
|
363
368
|
marks.series.push({ seriesId: id, lineNodeId: `mark:${id}`, from: { x: x0, y: yP[0] }, to: { x: x1, y: yP[1] } }), marks.series.push({ seriesId: nid, lineNodeId: `mark:${id}:negative`, from: { x: x0, y: yN[0] }, to: { x: x1, y: yN[1] } }), marks.panels.push({ seriesId: id, rect: { x: px, y: rowY, w: pw, h: rowH }, zeroY, x0, x1, positiveY: yP, negativeY: yN });
|
|
@@ -403,6 +408,10 @@ function layoutDivergingSlope(data, options = {}) {
|
|
|
403
408
|
debug: { occupied: occupied.snapshot(), decisions: solved.decisions }
|
|
404
409
|
};
|
|
405
410
|
}
|
|
411
|
+
function rulePointsFormatter(values, language) {
|
|
412
|
+
let spec = percentChangeSpec(values, language);
|
|
413
|
+
return (value) => formatWithSpec(value, spec);
|
|
414
|
+
}
|
|
406
415
|
|
|
407
416
|
// src/core/charts/slope/layout.ts
|
|
408
417
|
var RAIL_GAP = 8, COMPACT_GAP = 120, NAME_RANK = 1e6, COMPACT_MIN_GAP = 64, WIDE_RAIL_MIN_WIDTH = 600, WIDE_RAIL_BASE = 70, WIDE_RAIL_SHARE = 0.29, MAX_GAP_RATIO = 1.6, RAIL_WASH = 0.75, SPREAD_GAP = 0, TOUCH_TOLERANCE = 1e-6, END_MIN_PITCH = 13, LINE_CLAIM_SEGMENTS = 8, CAGR_ENVELOPE_CLEARANCE = 26, BARE_ANCHOR_KEYS = /* @__PURE__ */ new Set(["at", "from", "to", "vs"]);
|
|
@@ -465,8 +474,7 @@ function layoutSlope(data, options = {}) {
|
|
|
465
474
|
options.format,
|
|
466
475
|
seriesNorm.flatMap((s) => [s.a, s.b].flatMap((end) => end.isPct ? [] : [end.v])),
|
|
467
476
|
options.locale?.language,
|
|
468
|
-
options.unit
|
|
469
|
-
options.target
|
|
477
|
+
options.unit
|
|
470
478
|
);
|
|
471
479
|
if (seriesNorm.length === 0)
|
|
472
480
|
throw new NormalizeError("empty-data", "series", "slope requires at least one data-role series", void 0, void 0, ["data", "series"]);
|
|
@@ -506,7 +514,7 @@ function layoutSlope(data, options = {}) {
|
|
|
506
514
|
pct: s.a.v !== 0 ? cleanFloat(abs / Math.abs(s.a.v) * 100) : null
|
|
507
515
|
};
|
|
508
516
|
}
|
|
509
|
-
let byChange = (dir) => {
|
|
517
|
+
let pctChangeSpec = percentChangeSpec(Object.values(changes).map((c) => c.pct), options.locale?.language), pctChangeText = (pct, suffix) => formatWithSpec(pct, suffix ? { ...pctChangeSpec, suffix } : pctChangeSpec), byChange = (dir) => {
|
|
510
518
|
let best, bestAbs = 0;
|
|
511
519
|
for (let s of plottedSeries) {
|
|
512
520
|
let c = changes[s.id].abs * dir;
|
|
@@ -528,16 +536,14 @@ function layoutSlope(data, options = {}) {
|
|
|
528
536
|
if (c === "absolute" && end.v !== null) {
|
|
529
537
|
let value = fmtVal(end.v, end.isPct, end.format ?? s.format ?? options.format, s);
|
|
530
538
|
parts.push({ text: typeof end.labelOverride == "string" ? end.labelOverride.replace(/\$\{value\}/g, value) : value, isName: !1 });
|
|
531
|
-
} else c === "percent" && changes[s.id]?.pct != null ? parts.push({ text:
|
|
539
|
+
} else c === "percent" && changes[s.id]?.pct != null ? parts.push({ text: pctChangeText(changes[s.id].pct, "%"), isName: !1 }) : c === "category" ? parts.push({ text: cat.label ?? cat.id, isName: !1 }) : c === "series" && parts.push({ text: s.label, isName: !0 });
|
|
532
540
|
return parts;
|
|
533
|
-
}, composeEnd = (s, end, cat, side, compact2 = !1) => composeEndParts(s, end, cat, side, compact2).map((p) => p.text).join(" "), labelFont = { family: theme.type.family, ...theme.type.label }, hlFont = { ...labelFont, weight: emphasisWeight(theme) }, catFont = { family: theme.type.family, ...theme.type.label }, endFontOf = (s) => highlights.has(s.id) ? hlFont : labelFont, endLineH = labelFont.size * (labelFont.lineHeight ?? 1.2), minPitch = Math.max(END_MIN_PITCH, endLineH), changeMode = options.change ?? "none", changeTexts = /* @__PURE__ */ new Map();
|
|
534
|
-
if (changeMode !== "none" && size.width >= COLUMN_MIN_WIDTH)
|
|
535
|
-
let lang = options.locale?.language, pcts = plottedSeries.flatMap((s) => changes[s.id].pct === null ? [] : [changes[s.id].pct]), absText = (s) => differenceFormatter({ format: options.format, locale: lang, decimals: formats.spec.decimals, values: plottedSeries.flatMap((p) => [p.a.v, p.b.v]), scale: formats.specForSeries(seriesKey(s)) }), pctDecimals = Math.min(1, valueSetDecimals(pcts));
|
|
541
|
+
}, composeEnd = (s, end, cat, side, compact2 = !1) => composeEndParts(s, end, cat, side, compact2).map((p) => p.text).join(" "), labelFont = { family: theme.type.family, ...theme.type.label }, hlFont = { ...labelFont, weight: emphasisWeight(theme) }, catFont = { family: theme.type.family, ...theme.type.label }, endFontOf = (s) => highlights.has(s.id) ? hlFont : labelFont, endLineH = labelFont.size * (labelFont.lineHeight ?? 1.2), minPitch = Math.max(END_MIN_PITCH, endLineH), changeMode = options.change ?? "none", changeTexts = /* @__PURE__ */ new Map(), lang = options.locale?.language, differences = plottedSeries.map((p) => changes[p.id].abs), absText = (s) => differenceFormatter({ format: options.format, locale: lang, decimals: formats.spec.decimals, values: plottedSeries.flatMap((p) => [p.a.v, p.b.v]), scale: formats.specForSeries(seriesKey(s)), differences });
|
|
542
|
+
if (changeMode !== "none" && size.width >= COLUMN_MIN_WIDTH)
|
|
536
543
|
for (let s of plottedSeries) {
|
|
537
544
|
let ch = changes[s.id];
|
|
538
|
-
changeMode === "absolute" ? changeTexts.set(s.id, absText(s)(s.b.v, s.a.v)) : ch.pct !== null && changeTexts.set(s.id,
|
|
545
|
+
changeMode === "absolute" ? changeTexts.set(s.id, absText(s)(s.b.v, s.a.v)) : ch.pct !== null && changeTexts.set(s.id, pctChangeText(ch.pct, ""));
|
|
539
546
|
}
|
|
540
|
-
}
|
|
541
547
|
let changeOverride = options.columnOverrides?.change, changeHead = changeTexts.size === 0 ? void 0 : changeOverride?.label ?? columnHeadText(
|
|
542
548
|
chartString(options, "changeHead"),
|
|
543
549
|
changeMode === "relative" || options.unit?.startsWith("%") === !0 || percentLevels(plottedSeries.map((s) => ({ vals: [s.a, s.b], format: s.format, unit: s.unit })), options.format, options.unit),
|
|
@@ -613,7 +619,7 @@ function layoutSlope(data, options = {}) {
|
|
|
613
619
|
}
|
|
614
620
|
}
|
|
615
621
|
}
|
|
616
|
-
let change = changes[s.id]?.abs ?? 0, priority = end.priority ?? PRIORITY.endpoint + Math.min(99, Math.abs(change)) + (highlights.has(s.id) ? PRIORITY.highlightBonus : 0);
|
|
622
|
+
let shows = endContent?.includes("absolute") && end.v !== null && end.labelOverride !== !1 && (typeof end.labelOverride != "string" || end.labelOverride.includes("${value}")) ? { value: fmtVal(end.v, end.isPct, end.format ?? s.format ?? options.format, s) } : void 0, change = changes[s.id]?.abs ?? 0, priority = end.priority ?? PRIORITY.endpoint + Math.min(99, Math.abs(change)) + (highlights.has(s.id) ? PRIORITY.highlightBonus : 0);
|
|
617
623
|
return {
|
|
618
624
|
s,
|
|
619
625
|
text,
|
|
@@ -621,6 +627,7 @@ function layoutSlope(data, options = {}) {
|
|
|
621
627
|
h: tsize.height,
|
|
622
628
|
priority,
|
|
623
629
|
suppressed: end.labelOverride === !1 || !text,
|
|
630
|
+
...shows ? { shows } : {},
|
|
624
631
|
...title !== void 0 ? { title } : {},
|
|
625
632
|
...font !== baseFont ? { fontStep: font } : {},
|
|
626
633
|
lines
|
|
@@ -742,7 +749,7 @@ function layoutSlope(data, options = {}) {
|
|
|
742
749
|
);
|
|
743
750
|
}
|
|
744
751
|
[[railXs[0], yA, c0], [railXs[1], yB, c1]].forEach(([dx, dy, dc]) => {
|
|
745
|
-
let end = dc.id === c0.id ? s.a : s.b;
|
|
752
|
+
let end = dc.id === c0.id ? s.a : s.b, valueText = fmtVal(end.v, end.isPct, end.format ?? s.format ?? options.format, s);
|
|
746
753
|
nodes.push({
|
|
747
754
|
t: "circle",
|
|
748
755
|
id: `dot:${s.id}:${dc.id}`,
|
|
@@ -752,7 +759,8 @@ function layoutSlope(data, options = {}) {
|
|
|
752
759
|
fill: linePaint(s),
|
|
753
760
|
owner: { seriesId: s.id, categoryId: dc.id },
|
|
754
761
|
part: "endpointDot",
|
|
755
|
-
|
|
762
|
+
// The text its end label would print where none is drawn.
|
|
763
|
+
display: { value: valueText, shows: { value: valueText } }
|
|
756
764
|
}), occupied.claim({ x: dx - 2.5, y: dy - 2.5, w: 5, h: 5 }, "mark", {
|
|
757
765
|
seriesId: s.id,
|
|
758
766
|
categoryId: dc.id
|
|
@@ -784,6 +792,7 @@ function layoutSlope(data, options = {}) {
|
|
|
784
792
|
kind: "series",
|
|
785
793
|
owner: { seriesId: r.s.id, categoryId: cat.id },
|
|
786
794
|
text: r.text,
|
|
795
|
+
...r.shows ? { shows: r.shows } : {},
|
|
787
796
|
lines: r.lines,
|
|
788
797
|
...r.title !== void 0 ? { title: r.title } : {},
|
|
789
798
|
...r.fontStep ? { fontStep: r.fontStep } : {},
|
|
@@ -809,6 +818,7 @@ function layoutSlope(data, options = {}) {
|
|
|
809
818
|
kind: "series",
|
|
810
819
|
owner: { seriesId: r.s.id, categoryId: cat.id },
|
|
811
820
|
text: r.text,
|
|
821
|
+
...r.shows ? { shows: r.shows } : {},
|
|
812
822
|
lines: [r.text],
|
|
813
823
|
font: endFontOf(r.s),
|
|
814
824
|
priority: r.priority,
|
|
@@ -906,6 +916,7 @@ function layoutSlope(data, options = {}) {
|
|
|
906
916
|
measure,
|
|
907
917
|
format: options.format,
|
|
908
918
|
locale: options.locale?.language,
|
|
919
|
+
levelSpec: formats.spec,
|
|
909
920
|
strings: options.strings,
|
|
910
921
|
valueLinePercentLevels: options.unit === "%" || percentLevels(plottedSeries.map((series) => ({ vals: [series.a, series.b] }))),
|
|
911
922
|
solveCtx,
|
|
@@ -933,8 +944,8 @@ function layoutSlope(data, options = {}) {
|
|
|
933
944
|
}))
|
|
934
945
|
}
|
|
935
946
|
], changeText = (sid) => {
|
|
936
|
-
let s = plottedById.get(sid), ch = changes[sid], pctPart = ch.pct !== null ? ` (${
|
|
937
|
-
return `${s.label} ${
|
|
947
|
+
let s = plottedById.get(sid), ch = changes[sid], pctPart = ch.pct !== null ? ` (${pctChangeText(ch.pct, "%")})` : "", absPart = options.format ? formatAutomaticNumber(ch.abs, { locale: options.locale?.language, signed: !0, decimals: autoDecimals(ch.abs) }) : absText(s)(s.b.v, s.a.v);
|
|
948
|
+
return `${s.label} ${absPart}${pctPart}`;
|
|
938
949
|
}, steepParts = [];
|
|
939
950
|
steepestUp && steepParts.push(chartString(options, "steepestRiser", { v1: changeText(steepestUp) })), steepestDown && steepParts.push(chartString(options, "steepestFaller", { v1: changeText(steepestDown) }));
|
|
940
951
|
let a11yDesc = chartString(options, "slopeDesc", { v1: plottedSeries.length, v2: c0.label ?? c0.id, v3: c1.label ?? c1.id }) + (steepParts.length ? `${steepParts.join("; ")}.` : chartString(options, "seriesUnchanged")) + (fold ? ` ${fold.record.note}` : ""), derived = {
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-IXOBDDMW.js";
|
|
8
8
|
import {
|
|
9
9
|
themeColors
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XAH4EWJT.js";
|
|
11
11
|
import {
|
|
12
12
|
retiredThemeKeyWarning,
|
|
13
13
|
withoutRetiredThemeKeys
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JF743NNC.js";
|
|
15
15
|
import {
|
|
16
16
|
validateTheme
|
|
17
17
|
} from "./chunk-BQBD6Q5J.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chartRefusals,
|
|
3
3
|
isRefused
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YKYK6C7F.js";
|
|
5
5
|
import {
|
|
6
6
|
prepareFractionAnnotations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QXHFELIA.js";
|
|
8
8
|
import {
|
|
9
9
|
ASPECT_CAPS,
|
|
10
10
|
COMPACT_SOURCE_LINES,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
withDensityNotes,
|
|
53
53
|
withHiddenLabelNote,
|
|
54
54
|
withNoteInA11y
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AUSZDYGE.js";
|
|
56
56
|
import {
|
|
57
57
|
COMPACT_OMITTED_NOTES,
|
|
58
58
|
copyFrame,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
slotDemandHeight,
|
|
66
66
|
staticFrame,
|
|
67
67
|
withEngineNotes
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-WD5NJHZG.js";
|
|
69
69
|
import {
|
|
70
70
|
DATE_NAME_LANGUAGES,
|
|
71
71
|
dateNames
|
|
@@ -75,29 +75,37 @@ import {
|
|
|
75
75
|
} from "./chunk-LINZPU5D.js";
|
|
76
76
|
import {
|
|
77
77
|
MAGNITUDE_DIVISOR,
|
|
78
|
+
RULE_SET,
|
|
78
79
|
decimalCap,
|
|
80
|
+
fixedRuleSet,
|
|
79
81
|
formatWithSpec,
|
|
80
82
|
neededDecimals,
|
|
81
83
|
parseISODate,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
tickScale,
|
|
85
|
+
utcDate,
|
|
86
|
+
withChartFormats,
|
|
87
|
+
writtenExamples
|
|
88
|
+
} from "./chunk-3JG764MI.js";
|
|
84
89
|
import {
|
|
90
|
+
AUTHORED_EXAMPLES,
|
|
85
91
|
AUTO_MAX_DECIMALS,
|
|
86
92
|
chartString,
|
|
87
93
|
currentSmallValues,
|
|
94
|
+
formatScopeKey,
|
|
95
|
+
hasFormatRecord,
|
|
88
96
|
singleStops,
|
|
89
97
|
withChartDefaultStrings,
|
|
90
98
|
withLocaleStrings,
|
|
91
99
|
withNumberMarks,
|
|
92
|
-
|
|
100
|
+
withUnitStandIns,
|
|
93
101
|
wordLanguage
|
|
94
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-FYFXOLWI.js";
|
|
95
103
|
import {
|
|
96
104
|
cellValue
|
|
97
105
|
} from "./chunk-O3VN6BTL.js";
|
|
98
106
|
import {
|
|
99
107
|
presentationInfo
|
|
100
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-3V7Y7CHI.js";
|
|
101
109
|
import {
|
|
102
110
|
DEFAULT_PRESET,
|
|
103
111
|
GRAMMAR_STROKE,
|
|
@@ -129,7 +137,7 @@ import {
|
|
|
129
137
|
textScaleOf,
|
|
130
138
|
textSizeOf,
|
|
131
139
|
withoutOrphanAnnotationMarks
|
|
132
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-XAH4EWJT.js";
|
|
133
141
|
import {
|
|
134
142
|
loadedDeferred
|
|
135
143
|
} from "./chunk-BQBD6Q5J.js";
|
|
@@ -167,6 +175,19 @@ import {
|
|
|
167
175
|
pushAll
|
|
168
176
|
} from "./chunk-WYJEOMNY.js";
|
|
169
177
|
|
|
178
|
+
// src/core/fixedLists.ts
|
|
179
|
+
var fixed = /* @__PURE__ */ new WeakSet(), ids = /* @__PURE__ */ new WeakMap(), idsByContent = /* @__PURE__ */ new Map(), nextId = 0, contentChars = 0, MAX_CONTENT_CHARS = 8 * 1024 * 1024;
|
|
180
|
+
function fixedNumbers(values) {
|
|
181
|
+
return Object.freeze(values), fixed.add(values), values;
|
|
182
|
+
}
|
|
183
|
+
var isFixedNumbers = (value) => fixed.has(value);
|
|
184
|
+
function fixedNumbersId(list) {
|
|
185
|
+
let id = ids.get(list);
|
|
186
|
+
if (id !== void 0) return id;
|
|
187
|
+
let content = list.map((value) => Object.is(value, -0) ? "-0" : String(value)).join(",");
|
|
188
|
+
return id = idsByContent.get(content), id === void 0 && (contentChars + content.length > MAX_CONTENT_CHARS && (idsByContent.clear(), contentChars = 0), id = nextId++, idsByContent.set(content, id), contentChars += content.length), ids.set(list, id), id;
|
|
189
|
+
}
|
|
190
|
+
|
|
170
191
|
// src/core/layoutPlan.ts
|
|
171
192
|
var functionIds = /* @__PURE__ */ new WeakMap(), nextFunctionId = 0, keyFunction = (_key, value) => typeof value != "function" ? value : (functionIds.has(value) || functionIds.set(value, nextFunctionId++), `function ${functionIds.get(value)}`), inputs;
|
|
172
193
|
function withPlanInputs(run) {
|
|
@@ -221,7 +242,7 @@ function optionKey(options) {
|
|
|
221
242
|
value !== void 0 && fields.push(JSON.stringify(key) + ":" + value);
|
|
222
243
|
}
|
|
223
244
|
let theme = options.theme, symbols = Object.getOwnPropertySymbols(options).map((symbol) => "[" + (JSON.stringify(symbol.description) ?? "null") + "," + (valueKey(options[symbol]) ?? "null") + "]");
|
|
224
|
-
return "[{" + fields.join(",") + "}," + (valueKey(theme && typeof theme == "object" ? themeVersion(theme) : theme) ?? "null") + ",[" + symbols.join(",") + "]," + JSON.stringify(currentSmallValues()) + "]";
|
|
245
|
+
return "[{" + fields.join(",") + "}," + (valueKey(theme && typeof theme == "object" ? themeVersion(theme) : theme) ?? "null") + ",[" + symbols.join(",") + "]," + JSON.stringify(currentSmallValues()) + "," + JSON.stringify(formatScopeKey(options)) + "]";
|
|
225
246
|
}
|
|
226
247
|
function layoutKey(data, options) {
|
|
227
248
|
let cap = layoutStepKey();
|
|
@@ -278,6 +299,7 @@ function copyPlannedValue(value, copies = /* @__PURE__ */ new Map()) {
|
|
|
278
299
|
let known = copies.get(value);
|
|
279
300
|
if (known !== void 0) return known;
|
|
280
301
|
if (Array.isArray(value)) {
|
|
302
|
+
if (isFixedNumbers(value)) return value;
|
|
281
303
|
let copy2 = [];
|
|
282
304
|
copies.set(value, copy2);
|
|
283
305
|
for (let entry of value) copy2.push(entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
|
|
@@ -2062,7 +2084,7 @@ function prepareFitLayout(definition, data, origins = /* @__PURE__ */ new WeakMa
|
|
|
2062
2084
|
let probes = /* @__PURE__ */ new Map(), memoKeys = definition.type === "table" || definition.type === "dimswitch" ? {} : void 0, heightFloors = definition.type === "mekko" ? mekkoHeightFloors.get(origins) ?? /* @__PURE__ */ new Map() : void 0;
|
|
2063
2085
|
heightFloors && mekkoHeightFloors.set(origins, heightFloors);
|
|
2064
2086
|
let at = (runOptions, compact) => {
|
|
2065
|
-
let size = runOptions?.size, targetSize = runOptions?.[TARGET_SIZE],
|
|
2087
|
+
let size = runOptions?.size, targetSize = runOptions?.[TARGET_SIZE], fixed2 = targetSize?.fixed, key = `${typeof size == "object" ? `${size?.width}x${size?.height}:${size?.unit}` : String(size)}:${compact}:${forcedCompact(runOptions)}:${String(runOptions?.mode)}:${runOptions?.belowMinimum}:${fixed2?.width}:${fixed2?.height}:${targetSize?.sizePx.width}:${targetSize?.sizePx.height}:${isWidthProbe(definition.type, runOptions)}:${runOptions?.[ACCEPTANCE_PROBE]}`, result = probes.get(key);
|
|
2066
2088
|
if (result === void 0) {
|
|
2067
2089
|
let fixedMekko = definition.type === "mekko" && (runOptions?.variant ?? "stacked100") === "stacked100", requested = fixedMekko ? resolveSize(size, runOptions?.target) : void 0, floorKey = fixedMekko ? JSON.stringify([
|
|
2068
2090
|
requested.width,
|
|
@@ -2385,8 +2407,8 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
|
|
|
2385
2407
|
};
|
|
2386
2408
|
var contentHeight = contentHeight2;
|
|
2387
2409
|
let at = (width2, height2) => {
|
|
2388
|
-
let
|
|
2389
|
-
return atSize ? atSize(
|
|
2410
|
+
let fixed2 = { ...options, size: { width: width2, height: height2 } };
|
|
2411
|
+
return atSize ? atSize(fixed2, compactFallback) : fitSizeMemo(definition, data, fixed2, compactFallback);
|
|
2390
2412
|
}, width = resolveSize(options.size, options.target).width, target = options.target ?? DEFAULT_TARGET, nested = panelTypeClass(options) !== void 0, height = hostlessHeight(declared, width, resolveSize(options.size, options.target).height, !nested);
|
|
2391
2413
|
if (declared.fit === "content" || definition.type === "grid") {
|
|
2392
2414
|
let settled = contentHeight2();
|
|
@@ -3015,16 +3037,22 @@ function niceBelow(v) {
|
|
|
3015
3037
|
|
|
3016
3038
|
// src/core/axis.ts
|
|
3017
3039
|
function tickFormatter(spec, ticks) {
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
magnitude !== spec.magnitude && (spec = { ...spec, magnitude, ...magnitude === "none" ? { autoMagnitude: void 0, rollMagnitude: void 0 } : {} });
|
|
3022
|
-
}
|
|
3023
|
-
let divisor = MAGNITUDE_DIVISOR[spec.magnitude], scaled = ticks.map((tick) => tick / divisor).filter((tick) => Number.isFinite(tick) && (spec.magnitude === "none" || Math.abs(tick) < 1e3)), cap = decimalCap(scaled, spec.decimals), largest = Math.max(0, maxOf(scaled.map((tick) => Math.abs(tick)))), noise = largest > 0 && largest < 1 ? largest : 1, tickSpec = { ...spec, ...spec.significantDigits === void 0 ? {} : { significantDigits: void 0 }, autoMagnitude: void 0, wholeFrom: void 0, decimals: Math.max(0, maxOf(scaled.map((tick) => neededDecimals(tick, cap, noise, spec.decimals)))) }, finite = ticks.filter((tick) => Number.isFinite(tick)), distinct = () => new Set(finite.map((tick) => formatWithSpec(tick, tickSpec))).size === new Set(finite).size;
|
|
3040
|
+
let rule = spec[RULE_SET];
|
|
3041
|
+
if (rule) return ruleTickFormatter(spec, rule, ticks);
|
|
3042
|
+
let divisor = MAGNITUDE_DIVISOR[spec.magnitude], scaled = ticks.map((tick) => tick / divisor).filter((tick) => Number.isFinite(tick) && (spec.magnitude === "none" || Math.abs(tick) < 1e3)), cap = decimalCap(scaled, spec.decimals), largest = Math.max(0, maxOf(scaled.map((tick) => Math.abs(tick)))), noise = largest > 0 && largest < 1 ? largest : 1, tickSpec = { ...spec, ...spec.significantDigits === void 0 ? {} : { significantDigits: void 0 }, wholeFrom: void 0, decimals: Math.max(0, maxOf(scaled.map((tick) => neededDecimals(tick, cap, noise, spec.decimals)))) }, finite = ticks.filter((tick) => Number.isFinite(tick)), distinct = () => new Set(finite.map((tick) => formatWithSpec(tick, tickSpec))).size === new Set(finite).size;
|
|
3024
3043
|
for (; tickSpec.decimals < 20 && !distinct(); )
|
|
3025
3044
|
tickSpec.decimals++, tickSpec.decimals > AUTO_MAX_DECIMALS && (tickSpec.automatic = !1);
|
|
3026
3045
|
let scientific = finite.some((tick) => tick !== 0 && formatWithSpec(tick, tickSpec).includes("\xD7"));
|
|
3027
|
-
return (value) => formatWithSpec(value,
|
|
3046
|
+
return (value) => formatWithSpec(value, scientific && value === 0 ? { ...tickSpec, magnitude: "none", decimals: 0 } : tickSpec);
|
|
3047
|
+
}
|
|
3048
|
+
function ruleTickFormatter(spec, rule, ticks) {
|
|
3049
|
+
let finite = ticks.filter((tick) => Number.isFinite(tick)), scale = tickScale(rule, maxOf(finite.map(Math.abs))), scaled = finite.map((tick) => tick / 10 ** scale), cap = decimalCap(scaled), largest = Math.max(0, maxOf(scaled.map(Math.abs))), noise = largest > 0 && largest < 1 ? largest : 1, decimals = Math.max(0, maxOf(scaled.map((tick) => neededDecimals(tick, cap, noise)))), setAt = (d) => fixedRuleSet(rule, { scale, decimals: d }), apart = (d) => {
|
|
3050
|
+
let at = setAt(d);
|
|
3051
|
+
return new Set(finite.map((tick) => at.rounded(tick))).size === new Set(finite).size;
|
|
3052
|
+
};
|
|
3053
|
+
for (; decimals < 20 && !apart(decimals); ) decimals++;
|
|
3054
|
+
let tickSpec = { ...spec, [RULE_SET]: setAt(decimals) };
|
|
3055
|
+
return (value) => formatWithSpec(value, tickSpec);
|
|
3028
3056
|
}
|
|
3029
3057
|
function thinAxisTicks(ticks, scale, orient, format, font, measure, labelX, keepEnds = !1, keepTop = !1) {
|
|
3030
3058
|
if (ticks.length <= 2) return [...ticks];
|
|
@@ -3515,7 +3543,7 @@ function registerChart(def) {
|
|
|
3515
3543
|
message: `${truncated.length} placed label(s) omit text; the reading lists their full text in labelsTruncated`,
|
|
3516
3544
|
suggest: "give the labels more room or shorten their text"
|
|
3517
3545
|
}), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, options?.labelOffsets, nested)), options[PLAN_ONLY] || (geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale)), pushAll(geo.warnings, removedNames), geo;
|
|
3518
|
-
}), layout2 = ((options) =>
|
|
3546
|
+
}), layout2 = ((options) => withChartFormats(prepared, () => layoutBody(options)));
|
|
3519
3547
|
return layout2.finish = () => {
|
|
3520
3548
|
legendLayout.finish();
|
|
3521
3549
|
for (let run of noteRuns) run.finish();
|
|
@@ -3624,6 +3652,7 @@ function registerChart(def) {
|
|
|
3624
3652
|
run.finish();
|
|
3625
3653
|
}
|
|
3626
3654
|
}, layoutWithFooter = (data, authored) => {
|
|
3655
|
+
if (!hasFormatRecord(authored)) return withUnitStandIns({ [AUTHORED_EXAMPLES]: writtenExamples(data, authored) }, () => layoutWithFooter(data, authored));
|
|
3627
3656
|
let options = withDefaultTarget(authored);
|
|
3628
3657
|
return withLayoutMemo(() => {
|
|
3629
3658
|
let withCuts = (data2, options2) => withCutLabelNotes(data2, options2 ?? {}, (next) => layout(data2, next)), geo = loadedDeferred("footer")?.(withCuts, data, options, def.type) ?? withCuts(data, options);
|
|
@@ -3699,8 +3728,8 @@ function hiddenLabelCollision(title, geo, owed, noteMissing = !1) {
|
|
|
3699
3728
|
}] };
|
|
3700
3729
|
}
|
|
3701
3730
|
function unmatchedIdWarnings(geo, data, highlight, pins, offsets, nested) {
|
|
3702
|
-
let list = (
|
|
3703
|
-
let all = [...new Set(
|
|
3731
|
+
let list = (ids2) => {
|
|
3732
|
+
let all = [...new Set(ids2)];
|
|
3704
3733
|
return all.length > 20 ? `${all.slice(0, 20).join(", ")} and ${all.length - 20} more` : all.join(", ") || "none";
|
|
3705
3734
|
}, warnings = [], asked = typeof highlight == "string" ? [highlight] : Array.isArray(highlight) ? highlight.filter((id) => typeof id == "string") : [];
|
|
3706
3735
|
if (asked.length > 0 && !geo.warnings.some((warning) => warning.code === "highlight-unknown-id")) {
|
|
@@ -3828,6 +3857,9 @@ var unsupported = [
|
|
|
3828
3857
|
];
|
|
3829
3858
|
|
|
3830
3859
|
export {
|
|
3860
|
+
fixedNumbers,
|
|
3861
|
+
isFixedNumbers,
|
|
3862
|
+
fixedNumbersId,
|
|
3831
3863
|
withPlanInputs,
|
|
3832
3864
|
memoExactInputKey,
|
|
3833
3865
|
requestMemo,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-Z6H5ED2I.js";
|
|
9
9
|
import {
|
|
10
10
|
createChartComponent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E4KHHC46.js";
|
|
12
12
|
import {
|
|
13
13
|
boxCore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OM5MAJST.js";
|
|
15
15
|
import {
|
|
16
16
|
registeredType
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4YZQY3AA.js";
|
|
18
18
|
|
|
19
19
|
// src/react/charts/box.ts
|
|
20
20
|
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, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, valueAxis: { show: 0, min: 0, max: 0, gridlines: 0, break: { from: 0, to: 0, style: 0 } }, scaleGroup: { y: 0, id: 0 }, rowLabels: { align: 0 }, sort: { categories: 0, segments: 0 }, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, colorblindSafe: 0, interactive: 0, annotations: sharedKeys9, columnOverrides: { "*": { width: 0, headAlign: 0, label: 0 } }, axisTitles: { primary: 0 }, whiskers: 0, showOutliers: 0, showObservations: 0, methodNote: 0, boxValues: 0 }, labels: ["category", "point", "axisTitle"] }), BoxChart = createChartComponent(registeredType(boxCore), checkOptionKeys);
|
|
@@ -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
|
dotCore
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JRM22ULA.js";
|
|
16
16
|
import {
|
|
17
17
|
registeredType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4YZQY3AA.js";
|
|
19
19
|
|
|
20
20
|
// src/react/charts/dot.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, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, labelOffsets: { "*": { x: 0, y: 0 } }, legend: { position: 0, order: 0 }, valueAxis: sharedKeys0, scaleGroup: { y: 0, id: 0 }, rowLabels: { align: 0 }, sort: { categories: 0, segments: 0 }, topN: { n: 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, columnOverrides: { "*": { width: 0, align: 0, headAlign: 0, label: 0 } }, axisTitles: { primary: 0 }, variant: 0, averageMarker: { scope: 0 }, arrow: 0, gapColumn: 0, methodNote: 0, range: { label: 0, values: 0, midLabel: 0 } }, labels: ["category", "point"] }), DotChart = createChartComponent(registeredType(dotCore), checkOptionKeys);
|
|
@@ -3,26 +3,27 @@ import {
|
|
|
3
3
|
deltaValueText,
|
|
4
4
|
derivedValueText,
|
|
5
5
|
displayedValueText,
|
|
6
|
+
formattedValueText,
|
|
6
7
|
ownerContains,
|
|
7
8
|
signedPercentText
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DEJ27Y2P.js";
|
|
9
10
|
import {
|
|
10
11
|
eventHeading,
|
|
11
12
|
eventReading
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VGOZOBNB.js";
|
|
13
14
|
import {
|
|
14
15
|
composedTextRole,
|
|
15
16
|
fitText,
|
|
16
17
|
lineBox
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AUSZDYGE.js";
|
|
18
19
|
import {
|
|
19
20
|
parseFormatExample,
|
|
20
21
|
roundedNumber
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3JG764MI.js";
|
|
22
23
|
import {
|
|
23
24
|
chartStrings,
|
|
24
25
|
joinSentences
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FYFXOLWI.js";
|
|
26
27
|
import {
|
|
27
28
|
boxGap,
|
|
28
29
|
panelTypeClass,
|
|
@@ -31,7 +32,7 @@ import {
|
|
|
31
32
|
resolveSurface,
|
|
32
33
|
resolveTheme,
|
|
33
34
|
strokeToken
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XAH4EWJT.js";
|
|
35
36
|
import {
|
|
36
37
|
mixColors,
|
|
37
38
|
parseColor,
|
|
@@ -155,7 +156,7 @@ function labelCardContent(record, locale, options) {
|
|
|
155
156
|
for (let field of record.fields)
|
|
156
157
|
field.key === "date" && headingNamesDate(record, field.value) || members.has(field.key) || rows.push(fieldRow(field, locale));
|
|
157
158
|
if (pushAll(rows, record.comparisons.flatMap((comparison) => comparisonRow(comparison, locale) ?? [])), record.share) {
|
|
158
|
-
let base = record.share.denominator, values = [record.share.numerator, base, record.share.percent], withheld = values.some((value2) => value2.state === "suppressed"), whole = options?.hundredPercent === !0 || base.state === "value" && base.raw === 100 && base.unit === "%", wording = { locale: { language: locale } }, label = chartString(wording, "shareLabel"), value = withheld ? chartString(wording, "valueWithheld") : `${shareText(record.share.percent, locale)}${whole ? "" : chartString(wording, "ofValueClause", { v1:
|
|
159
|
+
let base = record.share.denominator, values = [record.share.numerator, base, record.share.percent], withheld = values.some((value2) => value2.state === "suppressed"), whole = options?.hundredPercent === !0 || base.state === "value" && base.raw === 100 && base.unit === "%", wording = { locale: { language: locale } }, label = chartString(wording, "shareLabel"), value = withheld ? chartString(wording, "valueWithheld") : `${shareText(record.share.percent, locale)}${whole ? "" : chartString(wording, "ofValueClause", { v1: formattedValueText(base, locale) })}`;
|
|
159
160
|
rows.push({
|
|
160
161
|
kind: "share",
|
|
161
162
|
label,
|