boardplot 0.57.0 → 0.58.1
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 +311 -0
- package/README.md +48 -14
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-FXNTFSA4.js} +2 -2
- package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-WVOT7VVJ.js} +8 -7
- package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-57L26X77.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-6LQKU6YN.js → chunk-23FT7RLN.js} +11 -10
- package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/chunk-2DS4MT7T.js +25 -0
- package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
- package/dist/{chunk-JMOBA5ES.js → chunk-2IRMGCYE.js} +2 -2
- package/dist/{chunk-JKXJWCJ5.js → chunk-2SWSUNA4.js} +116 -54
- package/dist/{chunk-O7Y6RJ4D.js → chunk-33EBLJVZ.js} +11 -11
- package/dist/{chunk-EHQLLZCQ.js → chunk-34PKJZRY.js} +59 -34
- package/dist/{chunk-SHAAMKN7.js → chunk-35ZJUZUO.js} +18 -18
- package/dist/{chunk-TGR6PRKG.js → chunk-3BMPYY26.js} +6 -3
- package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-H3EWFSWI.js → chunk-3ESWPMDW.js} +43 -29
- package/dist/{chunk-6KHRMK3I.js → chunk-3M2F7KSS.js} +158 -75
- package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
- package/dist/{chunk-MOQFYJ3F.js → chunk-3OSQ32GN.js} +5 -5
- package/dist/{chunk-HGPFEG2L.js → chunk-3RXUA6VY.js} +5 -5
- package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-FAFUMSPR.js → chunk-4DK67I3B.js} +83 -51
- package/dist/{chunk-EEBMK6T6.js → chunk-4DMRIL5K.js} +8 -8
- package/dist/chunk-4M3UADCM.js +602 -0
- package/dist/{chunk-WSKZZ2ZB.js → chunk-4OJF6DXL.js} +538 -503
- package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-I7KDPCC7.js → chunk-4TUU3UGY.js} +18 -10
- package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-BQIADGJB.js → chunk-5CYLT6FJ.js} +5 -5
- package/dist/{chunk-IVQT2E3Y.js → chunk-5I4RPBNE.js} +13 -13
- package/dist/{chunk-LW4ZQGVL.js → chunk-5KAYLRRP.js} +7 -8
- package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
- package/dist/{chunk-4RN4OM6I.js → chunk-63JUV7NR.js} +3 -3
- package/dist/chunk-645BGVPP.js +26 -0
- package/dist/{chunk-JIH52I36.js → chunk-65U6ZBZZ.js} +119 -85
- package/dist/{chunk-3DUGZ7ML.js → chunk-6ALORYH7.js} +46 -31
- package/dist/{chunk-HB3TH7GY.js → chunk-6AVUTZ6W.js} +10 -6
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/{chunk-IZRTNCJQ.js → chunk-6JTCFPAD.js} +5 -5
- package/dist/{chunk-5TUDYKNL.js → chunk-6NGKQNTB.js} +42 -29
- package/dist/{chunk-IUVJVMKS.js → chunk-6V3A3MTG.js} +55 -32
- package/dist/{chunk-FJKFYQ5I.js → chunk-6YBNVI5I.js} +36 -28
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/{chunk-SHCW2TCA.js → chunk-7GRR72MY.js} +25 -23
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/{chunk-Y5IKCXQR.js → chunk-7YZZCQT3.js} +5 -5
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-2WTD3GCR.js → chunk-A6N24NGW.js} +3 -3
- package/dist/{chunk-72OJBDRB.js → chunk-AAQWFTDM.js} +52 -41
- package/dist/{chunk-4JNHF6JW.js → chunk-AGJ2QL4A.js} +84 -40
- package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
- package/dist/{chunk-7P7D6WXR.js → chunk-AKZOQGF3.js} +3 -3
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-VY67Q6CJ.js → chunk-AMBQ6SWU.js} +36 -33
- package/dist/{chunk-73O6AOAA.js → chunk-AQ2PQ7FK.js} +241 -140
- package/dist/{chunk-XFCBH3TI.js → chunk-BHLNSJG7.js} +3 -3
- package/dist/{chunk-6XU5XGYV.js → chunk-BQ7SN7AW.js} +5 -5
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-LSR3SBJ4.js → chunk-BSZOQJXB.js} +234 -136
- package/dist/{chunk-KJLH5EHD.js → chunk-BVIJCUWW.js} +175 -110
- package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
- package/dist/{chunk-AOIZJ7GR.js → chunk-C4SQU2PB.js} +6 -6
- package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
- package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
- package/dist/{chunk-T5MBORBK.js → chunk-CFESVCZR.js} +1 -1
- package/dist/{chunk-EEL2N4Y6.js → chunk-CKEFAD4R.js} +5 -5
- package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
- package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
- package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
- package/dist/{chunk-NCCDEUHD.js → chunk-CSMVKG2C.js} +1 -1
- package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
- package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
- package/dist/{chunk-AFA32LHN.js → chunk-DUOGEFLG.js} +62 -36
- package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
- package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-6EE6XEMA.js → chunk-EB4PQEI3.js} +26 -17
- package/dist/{chunk-ANNQJWDX.js → chunk-EBWMTQ4U.js} +285 -34
- package/dist/{chunk-EHNGPUTO.js → chunk-EDW5HQND.js} +5 -5
- package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
- package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
- package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
- package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
- package/dist/chunk-F2ET5ZTT.js +49 -0
- package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
- package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
- package/dist/{chunk-LO3AGGE3.js → chunk-FJNZ7NWD.js} +5 -5
- package/dist/{chunk-IRXTNSZL.js → chunk-FPFRLRQO.js} +40 -22
- package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
- package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-A33MFWHW.js → chunk-G7BCLYL4.js} +2 -2
- package/dist/{chunk-2KCK63DD.js → chunk-G7CXJPEN.js} +2 -2
- package/dist/{chunk-2X6XY4K4.js → chunk-GB3RZYTK.js} +39 -19
- package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
- package/dist/{chunk-AFGQXMKT.js → chunk-GNMB72V7.js} +161 -67
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
- package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
- package/dist/{chunk-JRRSKCGG.js → chunk-H4EDDGGX.js} +3 -3
- package/dist/{chunk-5H4HFRDO.js → chunk-H7BCNS5J.js} +5 -5
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/chunk-HF4BCPIV.js +26 -0
- package/dist/{chunk-YCUNFAEE.js → chunk-HM4AJ5U4.js} +238 -127
- package/dist/{chunk-7FAO4ICF.js → chunk-HO4ILCW7.js} +2 -2
- package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
- package/dist/{chunk-G5BUGYIL.js → chunk-I52OMC5B.js} +192 -113
- package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
- package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-SSZB3VXG.js → chunk-IFUAPFL5.js} +102 -47
- package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-KF3ZHLHQ.js → chunk-IMUMPKXF.js} +5 -5
- package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
- package/dist/{chunk-76UL4CT4.js → chunk-IPZJCBWD.js} +27 -22
- package/dist/{chunk-5P4MXWKP.js → chunk-ITEJQHXE.js} +4 -4
- package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-K6Y4HBK7.js → chunk-IXU5C3YY.js} +1000 -904
- package/dist/{chunk-EDBUVDRI.js → chunk-JBAVMO56.js} +372 -93
- package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
- package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/{chunk-VT7PBGL2.js → chunk-JYSFAH7C.js} +23 -36
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-2I76VFMZ.js → chunk-KI7VCHNZ.js} +49 -37
- package/dist/{chunk-YB6QGOCO.js → chunk-KUWIRCYJ.js} +2 -2
- package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
- package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
- package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
- package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
- package/dist/{chunk-TDDSWNGD.js → chunk-LOXZSTIM.js} +30 -28
- package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
- package/dist/{chunk-IXM6BAM4.js → chunk-LXH4RPY4.js} +1 -1
- package/dist/{chunk-D5G67OER.js → chunk-LYAT62UT.js} +1 -1
- package/dist/{chunk-EFKFZNQC.js → chunk-M5LPP2GQ.js} +34 -20
- package/dist/{chunk-QZMLSK43.js → chunk-MALSSEXO.js} +294 -145
- package/dist/{chunk-XN7JDII2.js → chunk-MB5EX2YG.js} +230 -107
- package/dist/{chunk-PSYPB22T.js → chunk-MGXHFRQK.js} +5 -5
- package/dist/{chunk-GADI2DU7.js → chunk-MVR7YKBF.js} +152 -27
- package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-C5SQEYTQ.js → chunk-NFGV5OAR.js} +153 -65
- package/dist/{chunk-RZNYW7UP.js → chunk-NNIZG3TH.js} +8 -0
- package/dist/{chunk-AKJO6N4K.js → chunk-NQPJWQTW.js} +11 -4
- package/dist/{chunk-YFI5PN5O.js → chunk-NSMYIUBZ.js} +34 -11
- package/dist/{chunk-H6EJ63QN.js → chunk-NT3HCXQC.js} +144 -83
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/chunk-O3LT4TAI.js +34 -0
- package/dist/{chunk-L2XRUG4P.js → chunk-OELB7MTE.js} +5 -5
- package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
- package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-CEMXGMQN.js → chunk-OQUH7I5T.js} +3 -3
- package/dist/{chunk-Q7VPTN5X.js → chunk-OS7C2KMQ.js} +4 -4
- package/dist/{chunk-NRYERHEI.js → chunk-OTWIW2L3.js} +5 -5
- package/dist/chunk-OUNYHYJL.js +27 -0
- package/dist/{chunk-54HEIM2A.js → chunk-OUR5ZHCB.js} +2 -2
- package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
- package/dist/{chunk-YGPLUENN.js → chunk-P3NMDPDP.js} +132 -83
- package/dist/{chunk-NINK4G7U.js → chunk-P5RCP4NK.js} +2 -2
- package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
- package/dist/{chunk-J22ETKDJ.js → chunk-P7UOOMXE.js} +2 -2
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/{chunk-KLQKHA3T.js → chunk-PNYWBY4K.js} +5 -5
- package/dist/{chunk-XNV7VOIT.js → chunk-PVGJM2HP.js} +4 -4
- package/dist/{chunk-4U2WSW6F.js → chunk-Q2I3QLE3.js} +65 -36
- package/dist/{chunk-LGMV7ZV4.js → chunk-QATOOZMH.js} +5 -5
- package/dist/{chunk-H2POQ4LB.js → chunk-QFNWGSCT.js} +4 -4
- package/dist/{chunk-CIDOL4FO.js → chunk-QQMESIDA.js} +5 -5
- package/dist/{chunk-OTGNVAI4.js → chunk-R3VSWOTI.js} +4 -4
- package/dist/{chunk-UCIAHSJK.js → chunk-R5SGE2NS.js} +7 -3
- package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
- package/dist/{chunk-RMVCKO6N.js → chunk-RLH2CQCD.js} +458 -136
- package/dist/{chunk-VFLMBA2M.js → chunk-RPGEB3Z5.js} +19 -18
- package/dist/{chunk-KIXNHDXS.js → chunk-RQKDEJFQ.js} +5 -5
- package/dist/chunk-SBKM6XFS.js +211 -0
- package/dist/{chunk-TQ5HHNM3.js → chunk-SCAYWQZK.js} +2 -2
- package/dist/{chunk-Y5WHM2Q5.js → chunk-SH4FLUAD.js} +1 -1
- package/dist/{chunk-7EQU2TUN.js → chunk-SH4UGK5U.js} +84 -53
- package/dist/{chunk-EY4OA4OF.js → chunk-SHYS52VO.js} +370 -785
- package/dist/{chunk-ZSYU6LIH.js → chunk-SKPOXLG5.js} +5 -5
- package/dist/{chunk-OAT6FWKL.js → chunk-T7PRG6AO.js} +5 -5
- package/dist/chunk-TBZT5WUT.js +39 -0
- package/dist/{chunk-5HTGSB6Y.js → chunk-TKH655ON.js} +3 -3
- package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
- package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
- package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
- package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
- package/dist/{chunk-OKM5LYYP.js → chunk-U6QZOMYC.js} +5 -5
- package/dist/{chunk-F4JAGDPD.js → chunk-UBYDY4B7.js} +8 -8
- package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-NO7GRVUU.js → chunk-UOOXWGBU.js} +8 -8
- package/dist/{chunk-LFX5BERN.js → chunk-USMKNNOU.js} +47 -33
- package/dist/chunk-USSG6TJV.js +23 -0
- package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
- package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-62JZL6FW.js → chunk-V7JFT7NQ.js} +56 -42
- package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-FERP4WS3.js → chunk-VACZGW5R.js} +16 -18
- package/dist/{chunk-BO5EJBLH.js → chunk-VC62V7CX.js} +82 -47
- package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
- package/dist/chunk-VJULLJLN.js +70 -0
- package/dist/{chunk-QLWUFEKR.js → chunk-VKNQOSGW.js} +8 -8
- package/dist/{chunk-BFDPY7JM.js → chunk-VTY6YHQZ.js} +11 -6
- package/dist/{chunk-UFZXZJJG.js → chunk-W2QILXAL.js} +5 -5
- package/dist/{chunk-QHPJ5ZKS.js → chunk-W6XSIBLR.js} +5 -5
- package/dist/{chunk-DJBMA4FW.js → chunk-WDJSDJLV.js} +4 -6
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/chunk-WGJIYFVQ.js +24 -0
- package/dist/{chunk-43PCSBVQ.js → chunk-WKXLJNHW.js} +634 -8
- package/dist/{chunk-EWR6WVOV.js → chunk-WLH5IBFY.js} +6 -6
- package/dist/{chunk-RHVP62HI.js → chunk-WMQ57FOP.js} +5 -5
- package/dist/{chunk-GKQLKUMF.js → chunk-WNTUBGBB.js} +41 -32
- package/dist/{chunk-RHBQ2Q5H.js → chunk-WOICFLOJ.js} +60 -43
- package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
- package/dist/chunk-WVCDISZP.js +89 -0
- package/dist/{chunk-CT4RFZO4.js → chunk-WW4KLAVO.js} +38 -23
- package/dist/{chunk-I5ZADE2U.js → chunk-X3QUASBR.js} +1 -1
- package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-Z2BDTZDT.js → chunk-XC32OSCD.js} +97 -39
- package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
- package/dist/chunk-XLLWIHN2.js +24 -0
- package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
- package/dist/{chunk-BM2A3IGQ.js → chunk-XO44IJGZ.js} +1 -1
- package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
- package/dist/chunk-XSC4IXXC.js +24 -0
- package/dist/{chunk-D5RAVZ5C.js → chunk-XSEETONJ.js} +10 -9
- package/dist/{chunk-YBYV56FS.js → chunk-XZOFKLTD.js} +3 -3
- package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-W7Q6PLT4.js → chunk-Y6E4JU3U.js} +37 -37
- package/dist/{chunk-XR7VOF2V.js → chunk-YGWPOYDE.js} +25 -13
- package/dist/{chunk-HDSHS2QZ.js → chunk-YJUBX3QF.js} +70 -47
- package/dist/{chunk-BDCKHLUB.js → chunk-YLRAAJYV.js} +72 -304
- package/dist/{chunk-I6QGYRY4.js → chunk-YW35KSXR.js} +2 -2
- package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-WKWCNS6K.js → chunk-Z62TJQO5.js} +5 -5
- package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
- package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-TWRFVW3J.js → chunk-ZB3JIL3L.js} +138 -89
- package/dist/{chunk-KUMJI5B6.js → chunk-ZBCCJPGW.js} +17 -14
- package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-QRZESG66.js → chunk-ZCHKIR7C.js} +64 -239
- package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-KQ2WZ6BY.js → chunk-ZG4BMJRL.js} +1 -1
- package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
- package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
- package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
- package/dist/cli/index.js +8 -3
- package/dist/{core-5S5CJHBG.js → core-2GWH3ED7.js} +2 -1
- package/dist/{core-ZSERZGK6.js → core-3LCSHMKN.js} +3 -1
- package/dist/{core-FTQBESDS.js → core-3NQ5TXOJ.js} +3 -1
- package/dist/{core-D2OIGYC7.js → core-3XGQBHJI.js} +4 -1
- package/dist/{core-T3OSZOVV.js → core-4N6WH3IF.js} +3 -1
- package/dist/{core-VRVL6LIM.js → core-5CRTPVYA.js} +3 -1
- package/dist/{core-7XKNJM7Y.js → core-5K4HRIHX.js} +5 -1
- package/dist/{core-CCB3IXGD.js → core-743ZXTWK.js} +3 -1
- package/dist/{core-4M4RY7MX.js → core-7OAGK7ZJ.js} +3 -1
- package/dist/{core-VT35VDVS.js → core-7YDNMUU3.js} +6 -1
- package/dist/{core-4PW4MXWR.js → core-AAPPZSSZ.js} +4 -1
- package/dist/{core-OBPTBKX6.js → core-AC5AKSCM.js} +2 -1
- package/dist/{core-QFAVWFI3.js → core-AEALAFRA.js} +2 -1
- package/dist/{core-WXZJ7V7S.js → core-BEK6EPVF.js} +4 -1
- package/dist/{core-WP73P4CW.js → core-BRBJ3LPF.js} +5 -1
- package/dist/{core-AVA4XLQ2.js → core-EGTJOQK7.js} +2 -1
- package/dist/{core-XKXDXALI.js → core-FE4THVV3.js} +6 -1
- package/dist/{core-MAW4S3KA.js → core-FEBNVNVE.js} +5 -1
- package/dist/{core-L3UR75IJ.js → core-HIONDJGC.js} +4 -1
- package/dist/{core-GS4DXDDG.js → core-HMBMMF5Z.js} +4 -1
- package/dist/{core-QM34237W.js → core-LSYX4UQQ.js} +2 -1
- package/dist/{core-N2JEWJ7D.js → core-MIERUUUT.js} +2 -1
- package/dist/{core-A7HXVSKB.js → core-NTOOJZRA.js} +2 -1
- package/dist/{core-JDZDBTID.js → core-O5S2NETE.js} +2 -1
- package/dist/{core-OFPPRHYY.js → core-Q2Y3JEWL.js} +3 -1
- package/dist/{core-BJZEJ63L.js → core-RTBPKALG.js} +3 -1
- package/dist/{core-WNT6ZMRO.js → core-T7CKLMT2.js} +2 -1
- package/dist/{core-VWYXK2R3.js → core-TIIPSEK3.js} +4 -1
- package/dist/{core-EMSJRGSE.js → core-VBMWBPKM.js} +2 -1
- package/dist/{core-WPEYRK6Y.js → core-VLXOQ5CK.js} +4 -1
- package/dist/{core-7TTM4KRP.js → core-VYHQ5JY6.js} +3 -1
- package/dist/{core-DMDAXVMY.js → core-XJZWD43V.js} +2 -1
- package/dist/{core-AMWCZTOT.js → core-XUNZB6BM.js} +5 -1
- package/dist/{core-UNX4ZV4M.js → core-YKDDPMWW.js} +5 -1
- package/dist/{core-SKMHEA4Y.js → core-YN2VVGUL.js} +3 -1
- package/dist/{core-ZACFV6XR.js → core-YP4MNIMV.js} +5 -1
- package/dist/{core-FCSA74RT.js → core-ZETBHLSV.js} +3 -1
- package/dist/{dataTable-7IO546LM.js → dataTable-FEQZSDUZ.js} +7 -2
- package/dist/{engine-US3N6UCH.js → engine-SCQVNSAM.js} +23 -18
- package/dist/fixtures.js +2 -1
- package/dist/flags-BVLSAXT3.js +10 -0
- package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +27 -20
- package/dist/{main-2UWKGUHR.js → main-7UKLXCIL.js} +50 -119
- package/dist/mcp/server.js +121 -118
- package/dist/react/bar.js +5 -1
- package/dist/react/bartable.js +3 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +4 -1
- package/dist/react/butterfly.js +5 -1
- package/dist/react/choropleth.js +3 -1
- package/dist/react/cohort.js +3 -1
- package/dist/react/column.js +5 -1
- package/dist/react/combo.js +5 -1
- package/dist/react/creative.js +4 -1
- package/dist/react/diagram.js +3 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +4 -1
- package/dist/react/export.js +29 -18
- package/dist/react/funnel.js +4 -1
- package/dist/react/gantt.js +3 -1
- package/dist/react/grid.js +6 -1
- package/dist/react/heatmap.js +3 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +92 -85
- package/dist/react/kpi.js +4 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +4 -1
- package/dist/react/mekko.js +5 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +4 -1
- package/dist/react/prepare.js +35 -22
- package/dist/react/pvm.js +6 -1
- package/dist/react/pyramid.js +5 -1
- package/dist/react/sankey.js +3 -1
- package/dist/react/scatter.js +3 -1
- package/dist/react/slope.js +4 -1
- package/dist/react/sparkline.js +4 -1
- package/dist/react/spec.js +17 -13
- package/dist/react/status.js +3 -1
- package/dist/react/story.js +3 -2
- package/dist/react/table.js +4 -1
- package/dist/react/theme.js +5 -3
- package/dist/react/tilemap.js +3 -1
- package/dist/react/treemap.js +3 -1
- package/dist/react/variance.js +5 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +5 -1
- package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
- package/dist/rows.js +2 -2
- package/dist/{rowsModule-DYDVHBAX.js → rowsModule-WJH4QNXZ.js} +1 -1
- package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
- package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
- package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
- package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
- package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
- package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
- package/dist/{schema-OXO2XY4Y.js → schema-ALBF6V7Y.js} +1 -3
- package/dist/{schema-F2Q6MH7W.js → schema-BA6WP5YZ.js} +1 -3
- package/dist/{schema-G5KSSI5W.js → schema-CBL2SMVR.js} +1 -3
- package/dist/{schema-WFGDVBJK.js → schema-CWKGLDSR.js} +1 -3
- package/dist/{schema-DHMMGDTI.js → schema-DBIQFL56.js} +1 -3
- package/dist/{schema-626QXX4G.js → schema-DL7V6NN2.js} +1 -3
- package/dist/{schema-FC6J6KZC.js → schema-DUVJMFKQ.js} +1 -3
- package/dist/{schema-LGLQBRC4.js → schema-ECJERHKF.js} +1 -2
- package/dist/{schema-4JRNXEZF.js → schema-EDSEKZDJ.js} +1 -3
- package/dist/{schema-I44IDRGD.js → schema-ESR6ZIK4.js} +1 -3
- package/dist/{schema-FSYDLMGD.js → schema-F7TWGLRZ.js} +1 -3
- package/dist/{schema-JCU6LTYD.js → schema-FGB6IGZM.js} +1 -3
- package/dist/{schema-MGETMQYC.js → schema-FKGGTM4Z.js} +1 -2
- package/dist/{schema-XIHAKX3B.js → schema-JIAQE7WO.js} +1 -1
- package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
- package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
- package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.js} +1 -3
- package/dist/{schema-PHIHMDVB.js → schema-KCJ6WTGV.js} +1 -3
- package/dist/{schema-XRSORYBI.js → schema-MOKWIGF7.js} +1 -3
- package/dist/{schema-3KMU5737.js → schema-MQT6BMNK.js} +1 -3
- package/dist/{schema-JJWORI7D.js → schema-MR3BPPQR.js} +1 -3
- package/dist/{schema-IFTIMTS3.js → schema-OPXZYIW7.js} +1 -3
- package/dist/{schema-UXWKA3PI.js → schema-PV7JGX5H.js} +1 -3
- package/dist/{schema-CNJ4Y6CT.js → schema-PWPQF5RC.js} +1 -3
- package/dist/{schema-WBOPCTPC.js → schema-PYQEUC5P.js} +1 -3
- package/dist/{schema-J4HCSD5C.js → schema-Q5DACE4I.js} +6 -2
- package/dist/{schema-IUY7VYHJ.js → schema-R42VXFIS.js} +1 -3
- package/dist/{schema-WX2RS4OU.js → schema-TVUJNEX7.js} +1 -3
- package/dist/{schema-6PL46VXZ.js → schema-WZOSDDDJ.js} +1 -3
- package/dist/{schema-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
- package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
- package/dist/{specValidation-XGELWQUU.js → specValidation-DC4TVHWD.js} +3 -1
- package/dist/theme.js +4 -3
- package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
- package/dist/types/core/annotate.d.ts +27 -2
- package/dist/types/core/annotateArms.d.ts +3 -1
- package/dist/types/core/annotateTargets.d.ts +4 -0
- package/dist/types/core/annotationOrigin.d.ts +13 -0
- package/dist/types/core/axis.d.ts +2 -2
- package/dist/types/core/charts/band/stacks.d.ts +7 -1
- package/dist/types/core/charts/column/model.d.ts +13 -0
- package/dist/types/core/charts/combo/layout.d.ts +7 -0
- package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
- package/dist/types/core/charts/grid/normalize.d.ts +5 -0
- package/dist/types/core/charts/grid/schema.d.ts +2 -2
- package/dist/types/core/charts/pareto/layout.d.ts +2 -0
- package/dist/types/core/charts/pvm/types.d.ts +1 -0
- package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
- package/dist/types/core/charts/scatter/model.d.ts +5 -0
- package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
- package/dist/types/core/charts/table/resolve.d.ts +8 -3
- package/dist/types/core/charts/table/view.d.ts +24 -1
- package/dist/types/core/claims/browser.d.ts +2 -0
- package/dist/types/core/claims/ids.d.ts +38 -0
- package/dist/types/core/deferred.d.ts +1 -0
- package/dist/types/core/diagnostics/describe.d.ts +6 -1
- package/dist/types/core/doc/diagnostics.d.ts +3 -2
- package/dist/types/core/formatSpec.d.ts +33 -14
- package/dist/types/core/frame.d.ts +25 -58
- package/dist/types/core/frameText.d.ts +203 -0
- package/dist/types/core/geometry.d.ts +2 -0
- package/dist/types/core/label/categoryRow.d.ts +19 -2
- package/dist/types/core/label/solver.d.ts +23 -2
- package/dist/types/core/normalize/shared.d.ts +12 -2
- package/dist/types/core/notes.d.ts +15 -2
- package/dist/types/core/reading.d.ts +12 -1
- package/dist/types/core/request.d.ts +1 -1
- package/dist/types/core/schema/capability.d.ts +12 -0
- package/dist/types/core/seriesIdentity.d.ts +4 -1
- package/dist/types/core/sizing.d.ts +37 -1
- package/dist/types/core/structureCounts.d.ts +3 -1
- package/dist/types/core/theme.d.ts +33 -4
- package/dist/types/core/themeRules.d.ts +2 -0
- package/dist/types/core/types/annotations.d.ts +74 -4
- package/dist/types/core/types/options.d.ts +35 -3
- package/dist/types/core/types/scene.d.ts +30 -2
- package/dist/types/core/types/table.d.ts +6 -0
- package/dist/types/core/types/theme.d.ts +23 -0
- package/dist/types/react/TableChart.d.ts +5 -0
- package/dist/validate.js +13 -6
- package/docs/TELEMETRY.md +2 -2
- package/docs/manual.md +252 -62
- package/docs/reference/bar.md +12 -4
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/box.md +8 -4
- package/docs/reference/bullet.md +9 -5
- package/docs/reference/butterfly.md +10 -5
- package/docs/reference/choropleth.md +3 -5
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +18 -4
- package/docs/reference/combo.md +10 -5
- package/docs/reference/creative.md +3 -7
- package/docs/reference/diagram.md +1 -1
- package/docs/reference/dimswitch.md +23 -88
- package/docs/reference/dot.md +9 -5
- package/docs/reference/fixtures.md +37 -1
- package/docs/reference/funnel.md +9 -5
- package/docs/reference/gantt.md +8 -15
- package/docs/reference/grid.md +5 -2
- package/docs/reference/heatmap.md +10 -6
- package/docs/reference/kpi.md +1 -1
- package/docs/reference/likert.md +9 -4
- package/docs/reference/line.md +18 -5
- package/docs/reference/mekko.md +10 -5
- package/docs/reference/options.md +17 -13
- package/docs/reference/pareto.md +8 -4
- package/docs/reference/pie.md +9 -5
- package/docs/reference/pvm.md +9 -5
- package/docs/reference/pyramid.md +8 -4
- package/docs/reference/react.md +5 -5
- package/docs/reference/sankey.md +2 -2
- package/docs/reference/scatter.md +8 -4
- package/docs/reference/slope.md +9 -5
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +1 -1
- package/docs/reference/table.md +33 -114
- package/docs/reference/theme.md +12 -4
- package/docs/reference/tilemap.md +2 -4
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/variance.md +12 -6
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/warnings.md +1077 -0
- package/docs/reference/waterfall.md +16 -4
- package/docs/use-cases.md +25 -13
- package/llms.txt +19 -6
- package/package.json +18 -3
- package/dist/chunk-5RHP7YTL.js +0 -24
- package/dist/chunk-6VU2XI3W.js +0 -89
- package/dist/chunk-6WJOHZPW.js +0 -26
- package/dist/chunk-FL3FQ2YA.js +0 -27
- package/dist/chunk-G5CELEUR.js +0 -26
- package/dist/chunk-M4SPKUZE.js +0 -7
- package/dist/chunk-OF7FMGH5.js +0 -24
- package/dist/chunk-S2TSXUYP.js +0 -24
- package/dist/chunk-TKERVBJ3.js +0 -23
- package/dist/chunk-VMGTNB6H.js +0 -25
- package/dist/chunk-WZL4EEBS.js +0 -11
- package/dist/chunk-YJGFT63R.js +0 -27
- package/dist/chunk-ZNX5J7D7.js +0 -47
|
@@ -2,48 +2,60 @@ import {
|
|
|
2
2
|
floorValueLabel,
|
|
3
3
|
printedValueLabel,
|
|
4
4
|
valueLabelPlotFloor
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3QUASBR.js";
|
|
6
6
|
import {
|
|
7
7
|
stackSegmentCandidates
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HO4ILCW7.js";
|
|
9
|
+
import {
|
|
10
|
+
hasLabelPosition,
|
|
11
|
+
positionBarLabel
|
|
12
|
+
} from "./chunk-76GPN6AT.js";
|
|
9
13
|
import {
|
|
10
14
|
STACK_ROOM,
|
|
11
15
|
digitSeat,
|
|
12
16
|
digitSeatEdge,
|
|
13
17
|
segmentTooShort
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TKH655ON.js";
|
|
15
19
|
import {
|
|
16
20
|
axisBreakHeightOrderWarning,
|
|
17
21
|
axisBreakInvalid,
|
|
18
22
|
breakReversesOrder,
|
|
19
23
|
breakStyleRefusal
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SH4FLUAD.js";
|
|
21
25
|
import {
|
|
22
26
|
valueLineExtent
|
|
23
27
|
} from "./chunk-QPWRHDLZ.js";
|
|
24
28
|
import {
|
|
25
29
|
runAnnotatePass
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-R5SGE2NS.js";
|
|
27
31
|
import {
|
|
28
32
|
GUTTER_MAX_SHARE,
|
|
29
33
|
fitColumn,
|
|
30
34
|
stepDownFont
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BHLNSJG7.js";
|
|
32
36
|
import {
|
|
33
37
|
chartPalette,
|
|
34
38
|
chartTheme
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WFBN2HXR.js";
|
|
36
40
|
import {
|
|
37
41
|
widthsThatFit
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-LXH4RPY4.js";
|
|
43
|
+
import {
|
|
44
|
+
categoryBandFromCenters
|
|
45
|
+
} from "./chunk-CDZHNLO6.js";
|
|
46
|
+
import {
|
|
47
|
+
BRACKET_GAP,
|
|
48
|
+
BRACKET_TICK
|
|
49
|
+
} from "./chunk-E5YF236N.js";
|
|
39
50
|
import {
|
|
40
51
|
structureCount
|
|
41
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KW4JXWHO.js";
|
|
42
53
|
import {
|
|
43
54
|
generatedIdWarnings
|
|
44
55
|
} from "./chunk-SXAZDIGM.js";
|
|
45
56
|
import {
|
|
46
57
|
CROWDED_NAMES,
|
|
58
|
+
NARROW_FORM,
|
|
47
59
|
NATURAL_BAND_STEP,
|
|
48
60
|
SIZE_TOLERANCE,
|
|
49
61
|
applyValueAxisTitleInk,
|
|
@@ -63,20 +75,17 @@ import {
|
|
|
63
75
|
planCategoryRow,
|
|
64
76
|
planValueAxisTitle,
|
|
65
77
|
rotatedClaimRect,
|
|
66
|
-
rotatedLeftOverhang,
|
|
67
78
|
straightBreakGlyph,
|
|
68
79
|
valueAxisTitleBand,
|
|
69
|
-
valueAxisTitleRequest
|
|
70
|
-
|
|
80
|
+
valueAxisTitleRequest,
|
|
81
|
+
yieldToRotatedName
|
|
82
|
+
} from "./chunk-GNMB72V7.js";
|
|
71
83
|
import {
|
|
72
84
|
HEIGHT_STRUCTURE,
|
|
73
85
|
PRIORITY,
|
|
74
86
|
SERIES_VALUE_GAP,
|
|
75
87
|
authoredNotes,
|
|
76
|
-
boxGap,
|
|
77
|
-
cleanFloat,
|
|
78
88
|
composedTextRole,
|
|
79
|
-
createOccupiedIndex,
|
|
80
89
|
distinguishSeries,
|
|
81
90
|
fitText,
|
|
82
91
|
fixedPlotChrome,
|
|
@@ -88,14 +97,15 @@ import {
|
|
|
88
97
|
lineBox,
|
|
89
98
|
normalizeLegendOption,
|
|
90
99
|
plotHeightAfter,
|
|
91
|
-
|
|
100
|
+
requestClaims,
|
|
92
101
|
scenarioLegendKeys,
|
|
93
102
|
solveFrame,
|
|
94
|
-
solveLabels
|
|
95
|
-
|
|
103
|
+
solveLabels,
|
|
104
|
+
withUnprintedClaims
|
|
105
|
+
} from "./chunk-4OJF6DXL.js";
|
|
96
106
|
import {
|
|
97
107
|
disclosureNote
|
|
98
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-DZYTXZNS.js";
|
|
99
109
|
import {
|
|
100
110
|
emptyIdRecord
|
|
101
111
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -105,7 +115,7 @@ import {
|
|
|
105
115
|
levelFormatterFromExample,
|
|
106
116
|
seriesRasterFormatter,
|
|
107
117
|
signedFormatterFromExample
|
|
108
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
109
119
|
import {
|
|
110
120
|
authoredDecimals,
|
|
111
121
|
changePercentText,
|
|
@@ -118,23 +128,27 @@ import {
|
|
|
118
128
|
isPctCell
|
|
119
129
|
} from "./chunk-O3VN6BTL.js";
|
|
120
130
|
import {
|
|
131
|
+
boxGap,
|
|
121
132
|
canvasMargin,
|
|
133
|
+
cleanFloat,
|
|
134
|
+
colorRolePaints,
|
|
122
135
|
colorblindPaint,
|
|
136
|
+
createOccupiedIndex,
|
|
123
137
|
dashToken,
|
|
124
138
|
effectiveFill,
|
|
125
139
|
emphasisLabelTheme,
|
|
126
140
|
emphasisWeight,
|
|
127
141
|
haloOverpaintedInsideLabels,
|
|
128
|
-
markRolePaint,
|
|
129
142
|
paintColor,
|
|
130
143
|
panelTypeClass,
|
|
144
|
+
rectsOverlap,
|
|
131
145
|
secondaryType,
|
|
132
146
|
seriesPaint,
|
|
133
147
|
signedFillPaint,
|
|
134
148
|
strokeToken,
|
|
135
149
|
textScaleOf,
|
|
136
150
|
withSegmentSeams
|
|
137
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-TX5FSNAU.js";
|
|
138
152
|
import {
|
|
139
153
|
NormalizeError,
|
|
140
154
|
accessibleTitle,
|
|
@@ -142,15 +156,15 @@ import {
|
|
|
142
156
|
normalizeScenario,
|
|
143
157
|
resolveHighlight,
|
|
144
158
|
resolveSize
|
|
145
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-RJICOOB3.js";
|
|
160
|
+
import {
|
|
161
|
+
defaultMeasurer
|
|
162
|
+
} from "./chunk-UIHGGWES.js";
|
|
146
163
|
import {
|
|
147
164
|
maxOf,
|
|
148
165
|
minOf,
|
|
149
166
|
pushAll
|
|
150
167
|
} from "./chunk-WYJEOMNY.js";
|
|
151
|
-
import {
|
|
152
|
-
defaultMeasurer
|
|
153
|
-
} from "./chunk-UIHGGWES.js";
|
|
154
168
|
|
|
155
169
|
// src/core/strings/waterfall.ts
|
|
156
170
|
var EN = {
|
|
@@ -258,21 +272,39 @@ function automaticWaterfall(data, options) {
|
|
|
258
272
|
let need = horizontal.sizing, pinned = options.size?.height !== void 0;
|
|
259
273
|
return need === void 0 || horizontal.size.width + SIZE_TOLERANCE >= need.minWidth && (!pinned || horizontal.size.height + SIZE_TOLERANCE >= need.minHeight) ? { geometry: horizontal, horizontal: !0 } : staysVertical;
|
|
260
274
|
}
|
|
275
|
+
function totalChangeBracket(annotation, data) {
|
|
276
|
+
if (annotation.kind !== "diff" && annotation.kind !== "delta" || annotation.placement === "label" || data.cases?.length) return !1;
|
|
277
|
+
let [from, to] = annotation.kind === "diff" ? [annotation.from, annotation.to] : [annotation.vs, annotation.at], id = (ref) => typeof ref == "string" ? ref : ref !== null && typeof ref == "object" && "categoryId" in ref && !("seriesId" in ref) && (ref.edge ?? "total") === "total" ? ref.categoryId : void 0, totals = data.items.filter((item) => item.type === "total" || item.type === "subtotal"), ends = [totals[0]?.id, totals[totals.length - 1]?.id], pair = [id(from), id(to)];
|
|
278
|
+
return totals.length >= 2 && data.items.indexOf(totals[totals.length - 1]) - data.items.indexOf(totals[0]) > 1 && pair.every((x) => x !== void 0 && ends.includes(x)) && pair[0] !== pair[1];
|
|
279
|
+
}
|
|
280
|
+
function growthArms(options, data) {
|
|
281
|
+
return (options.annotations ?? []).some((a) => a.kind === "cagr" || totalChangeBracket(a, data));
|
|
282
|
+
}
|
|
261
283
|
function layoutVerticalWaterfall(data, options) {
|
|
262
284
|
let withBridgeGap = (geometry) => ({
|
|
263
285
|
...geometry,
|
|
264
286
|
scene: insetBridgeEnds(geometry.scene)
|
|
265
|
-
}), pad = 0,
|
|
287
|
+
}), pad = 0, cut = 0, lay = (band, enforceBreakOrder) => layoutWaterfallWithPad(data, options, band, !0, void 0, enforceBreakOrder, cut), pass = lay(pad, !options.annotations?.length), hiddenCount = (geometry) => geometry.labels.filter((label) => label.hidden !== void 0 && label.hidden !== "redundant").length;
|
|
288
|
+
if (options.bracketRow !== "span" && options.annotations?.some((a) => a.kind === "bracket") && pass.geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden !== void 0 && label.hidden !== "redundant")) {
|
|
289
|
+
let own = layoutWaterfallWithPad(data, { ...options, bracketRow: "span" }, pad, !0, void 0, !options.annotations.length);
|
|
290
|
+
if (hiddenCount(own.geometry) < hiddenCount(pass.geometry)) return layoutVerticalWaterfall(data, { ...options, bracketRow: "span" });
|
|
291
|
+
}
|
|
292
|
+
if ((pass.bracketSlack ?? 0) >= 1) {
|
|
293
|
+
cut = Math.floor(pass.bracketSlack);
|
|
294
|
+
let next = lay(pad, !options.annotations?.length);
|
|
295
|
+
(next.bracketSlack ?? -1) < 0 || hiddenCount(next.geometry) > hiddenCount(pass.geometry) || (next.geometry.warnings?.length ?? 0) > (pass.geometry.warnings?.length ?? 0) ? cut = 0 : pass = next;
|
|
296
|
+
}
|
|
297
|
+
let cagr = growthArms(options, data), unseated = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden === "collision");
|
|
266
298
|
for (; cagr && pad < 48 && (unseated(pass.geometry) || pad < 18 && pass.annotationLegDeficit > 0); )
|
|
267
|
-
pad += 6, pass =
|
|
268
|
-
pad > 0 && (pad = unseated(pass.geometry) ? 18 : pad + 4, pass =
|
|
299
|
+
pad += 6, pass = lay(pad, !1);
|
|
300
|
+
pad > 0 && (pad = unseated(pass.geometry) ? 18 : pad + 4, pass = lay(pad, !1));
|
|
269
301
|
for (let i = 0; i < 3 && pass.annotationLegDeficit > 0.5; i++)
|
|
270
|
-
pad += Math.ceil(pass.annotationLegDeficit) + 2, pass =
|
|
302
|
+
pad += Math.ceil(pass.annotationLegDeficit) + 2, pass = lay(pad, !1);
|
|
271
303
|
let freeSeated = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.slot === "freeSpot"), noteHidden = (geometry) => geometry.labels.some((label) => label.id.startsWith("annotation:") && label.hidden);
|
|
272
304
|
if (!cagr && freeSeated(pass.geometry)) {
|
|
273
305
|
let warned = pass.geometry.warnings?.length ?? 0;
|
|
274
306
|
for (let grown = 6; grown <= 48; grown += 6) {
|
|
275
|
-
let next =
|
|
307
|
+
let next = lay(grown, !1);
|
|
276
308
|
if (!freeSeated(next.geometry) && !noteHidden(next.geometry) && (next.geometry.warnings?.length ?? 0) <= warned) {
|
|
277
309
|
pass = next;
|
|
278
310
|
break;
|
|
@@ -282,18 +314,25 @@ function layoutVerticalWaterfall(data, options) {
|
|
|
282
314
|
if (pass.unsafeBreak && (pass = pass.repairBreak(), cagr && unseated(pass.geometry))) {
|
|
283
315
|
let repairPad = pad, repaired = pass;
|
|
284
316
|
for (; repairPad < 48 && unseated(repaired.geometry); )
|
|
285
|
-
repairPad += 6, repaired =
|
|
317
|
+
repairPad += 6, repaired = lay(repairPad, !0);
|
|
286
318
|
if (!unseated(repaired.geometry)) {
|
|
287
|
-
let settled =
|
|
319
|
+
let settled = lay(repairPad + 4, !0);
|
|
288
320
|
pass = unseated(settled.geometry) ? repaired : settled;
|
|
289
321
|
}
|
|
290
322
|
}
|
|
323
|
+
if (hiddenCount(pass.geometry) > 0 && options.annotations?.some((a) => totalChangeBracket(a, data))) {
|
|
324
|
+
let arrow = layoutVerticalWaterfall(data, { ...options, annotations: options.annotations.map((a) => (a.kind === "diff" || a.kind === "delta") && totalChangeBracket(a, data) ? { ...a, placement: "label" } : a) });
|
|
325
|
+
if (hiddenCount(arrow) < hiddenCount(pass.geometry)) return arrow;
|
|
326
|
+
}
|
|
291
327
|
return withBridgeGap(pass.geometry);
|
|
292
328
|
}
|
|
293
329
|
function layoutHorizontalWaterfall(data, options) {
|
|
294
330
|
let authoredAnnotations = options.annotations ?? [], verticalOptions = {
|
|
295
331
|
...options,
|
|
296
332
|
variant: "vertical",
|
|
333
|
+
labelPosition: void 0,
|
|
334
|
+
// Offsets are screen pixels, so only the final horizontal solve applies them.
|
|
335
|
+
labelOffsets: void 0,
|
|
297
336
|
annotations: []
|
|
298
337
|
}, source = layoutWaterfallWithPad(data, verticalOptions, 0, !1).geometry, plot = source.plot, theme = chartTheme(options), measure = options.measure ?? defaultMeasurer, nameFont = { family: theme.type.family, ...theme.type.axis }, bands = options.columnOverrides, wantedName = bands?.label?.width, wantedValue = bands?.value?.width, wordFloor = wantedName === void 0 ? 0 : Math.max(48, 20 + Math.ceil(Math.max(0, ...data.items.flatMap((item) => (item.label ?? item.id).split(/\s+/).map((word) => measure(word, nameFont).width))))), valueLabelWidth = Math.max(
|
|
299
338
|
0,
|
|
@@ -417,8 +456,7 @@ function layoutHorizontalWaterfall(data, options) {
|
|
|
417
456
|
// A value sits inside only with 4 px per side; wider, it would cross the bar's edge.
|
|
418
457
|
...!box || transformed.w + 8 <= box.w ? [{ slot: "insideCenter", rect: insideCenter, penalty: 1, ...segment ? segmentInside : { needsBacking: !0 } }] : [],
|
|
419
458
|
{ slot: "outsideLeft", rect: outsideLeft, penalty: 2 }
|
|
420
|
-
].filter((candidate) => !segment || candidate.slot === "insideCenter" || !stackedRow && !siblings.some((other) => rectsOverlap(candidate.rect, other.rect))), authoredPin = options.labelPlacements?.[label.id]
|
|
421
|
-
return {
|
|
459
|
+
].filter((candidate) => !segment || candidate.slot === "insideCenter" || !stackedRow && !siblings.some((other) => rectsOverlap(candidate.rect, other.rect))), authoredPin = options.labelPlacements?.[label.id], request = {
|
|
422
460
|
id: label.id,
|
|
423
461
|
kind: label.kind,
|
|
424
462
|
owner: label.owner,
|
|
@@ -430,8 +468,24 @@ function layoutHorizontalWaterfall(data, options) {
|
|
|
430
468
|
...authoredPin ? { pinnedSlot: mapSlot(authoredPin) } : {},
|
|
431
469
|
candidates,
|
|
432
470
|
...label.hidden === "redundant" && label.kind !== "category" ? { redundant: !0 } : {},
|
|
433
|
-
...label.swatch ? { swatch: label.swatch } : {}
|
|
471
|
+
...label.swatch ? { swatch: label.swatch } : {},
|
|
472
|
+
...label.claimIds ? { claimIds: label.claimIds } : {}
|
|
434
473
|
};
|
|
474
|
+
if (!hasLabelPosition(options) || !bar || !/^(sum|total):/.test(label.id) || authoredPin || (data.items.find((item2) => item2.id === categoryId)?.segments?.length ?? 0) > 0 || bar.segments.length > 1) return request;
|
|
475
|
+
let mark = scene.find((node) => node.id === bar.segments[0]?.nodeId), level = source.derived.levels[bar.id], pattern = mark?.t === "rect" && mark.pattern !== "hollow" ? mark.pattern : void 0, paint = mark?.t === "rect" ? mark.fill : void 0, positioned = positionBarLabel(request, options, {
|
|
476
|
+
rect: bar.rect,
|
|
477
|
+
size: { width: transformed.w, height: transformed.h },
|
|
478
|
+
orientation: "horizontal",
|
|
479
|
+
endPositive: Math.abs(Math.max(level.start, level.end)) >= Math.abs(Math.min(level.start, level.end)),
|
|
480
|
+
zero: level.start === level.end,
|
|
481
|
+
edgeGap: 4,
|
|
482
|
+
outsideGap: 8,
|
|
483
|
+
fallback: label.id.startsWith("sum:") ? "bridge" : void 0,
|
|
484
|
+
insidePaint: paint,
|
|
485
|
+
insidePattern: pattern,
|
|
486
|
+
insideFill: paint ? effectiveFill(paintColor(theme, paint), pattern, theme) : theme.color.background
|
|
487
|
+
});
|
|
488
|
+
return { ...positioned, candidates: positioned.candidates.filter((candidate) => candidate.slot !== "outsideBarLeft" || candidate.rect.x >= horizontalPlot.x) };
|
|
435
489
|
}), horizontalPins = Object.fromEntries(
|
|
436
490
|
Object.entries(options.labelPlacements ?? {}).map(([id, slot]) => [id, mapSlot(slot)])
|
|
437
491
|
), solved = solveLabels(labelRequests, occupied, labelCtx(theme, source.size, options, {
|
|
@@ -444,7 +498,7 @@ function layoutHorizontalWaterfall(data, options) {
|
|
|
444
498
|
if (isSignBridge(theme, options))
|
|
445
499
|
for (let label of labels) {
|
|
446
500
|
let id = label.id.startsWith("sum:") ? label.id.slice(4) : void 0, level = id === void 0 ? void 0 : source.derived.levels[id], tone = level ? stepTone(level.end - level.start, data.items.find((it) => it.id === label.owner.categoryId)?.direction) : "neutral";
|
|
447
|
-
tone !== "neutral" && label.slot
|
|
501
|
+
tone !== "neutral" && !label.slot?.startsWith("inside") && (label.ink = options.colorblindSafe === !0 ? colorblindPaint(tone) : { token: tone });
|
|
448
502
|
}
|
|
449
503
|
pushAll(scene, labelsToNodes(theme, labels, fontForLabel, scene));
|
|
450
504
|
let bandWarnings = [
|
|
@@ -529,12 +583,12 @@ function automaticBreak(allItems, levels, totals, line) {
|
|
|
529
583
|
let to = floorTwoDigits(runLo - span / 4), axisBreak = { from: floorTwoDigits(Math.min(totalMin * 0.05, (runHi - to) * 0.4)), to }, drawn = [...deltaLevels, ...line ? [line.lo, line.hi] : []];
|
|
530
584
|
return invalidLinearBreakReason([0, runHi], axisBreak, drawn) ? void 0 : axisBreak;
|
|
531
585
|
}
|
|
532
|
-
function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, automaticOverride, enforceBreakOrder = !0) {
|
|
586
|
+
function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, automaticOverride, enforceBreakOrder = !0, bracketCut = 0) {
|
|
533
587
|
let fmtPlain = (value, settings = {}) => formatAutomaticNumber(value, { locale: options.locale?.language, ...settings }), warnings = [], theme = chartTheme(options), paletteRamp = chartPalette(theme, options.palette, warnings), size = resolveSize(options.size), measure = options.measure ?? defaultMeasurer, highlights = new Set(resolveHighlight(options.highlight)), signBridge = isSignBridge(theme, options), signSteps = stepsBySign(theme, options), connectorStroke = { token: signBridge ? "inkMeta" : "leader" }, connectorDash = dashToken(theme, signBridge ? "dotted" : "reference"), stepTones = /* @__PURE__ */ new Map(), paintWarningRules = highlights.size > 0 ? [{ kind: "highlight-reads-as-loss", chart: "waterfall", before: warnings.length }] : [];
|
|
534
588
|
paintWarningRules.length && warnings.push(...highlightPaintWarnings(theme, "waterfall"));
|
|
535
589
|
let build = options.build ?? "up";
|
|
536
590
|
if (!data || !Array.isArray(data.items) || data.items.length === 0)
|
|
537
|
-
throw new NormalizeError("empty-data", "items", "waterfall requires at least one item");
|
|
591
|
+
throw new NormalizeError("empty-data", "items", "waterfall requires at least one item", void 0, void 0, ["data", "items"]);
|
|
538
592
|
let cases = data.cases ?? [], colonCase = cases.findIndex((c) => c.id.includes(":"));
|
|
539
593
|
if (colonCase >= 0)
|
|
540
594
|
throw new NormalizeError("waterfall-case-id-colon", `cases[${colonCase}].id`, `case id '${cases[colonCase].id}' holds ':', which joins an item id to its case id in the bars, levels and claims ('<item>:<case>'), so two bars could share one id`, "give the case an id without a colon", void 0, ["data", "cases", colonCase, "id"]);
|
|
@@ -586,7 +640,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
586
640
|
owner: { categoryId: it.id, segmentId: seg.id }
|
|
587
641
|
}), !known.label && seg.label && (known.label = seg.label), !known.colorRole && seg.colorRole && (known.colorRole = seg.colorRole), !known.scenario && seg.scenario && (known.scenario = seg.scenario);
|
|
588
642
|
}
|
|
589
|
-
let fixedKeys = [];
|
|
643
|
+
let roleKey = (identity) => `${identity.label ?? identity.id}\0${identity.colorRole}`, roleSteps = colorRolePaints([...new Map([...segmentCatalog.values()].map((identity) => [roleKey(identity), { id: roleKey(identity), colorRole: identity.colorRole }])).values()]), segmentRoles = new Map([...segmentCatalog.values()].flatMap((identity) => roleSteps.has(roleKey(identity)) ? [[identity.id, roleSteps.get(roleKey(identity))]] : [])), fixedKeys = [];
|
|
590
644
|
items.some((it) => it.type !== "delta" && !it.authoredSegments) && fixedKeys.push({ id: "__keyTotal", label: chartString(options, "total"), paint: { token: "total" } });
|
|
591
645
|
let segmentPaints = new Map(distinguishSeries(
|
|
592
646
|
[
|
|
@@ -609,12 +663,10 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
609
663
|
paintColor(theme, paint), segmentPaints.set(id, paint);
|
|
610
664
|
});
|
|
611
665
|
}
|
|
612
|
-
let connectors = data.connectors ?? [], hiddenAfter = new Set(connectors.filter((c) => c.hidden).map((c) => c.from)), connectorInto = new Map(connectors.filter((c) => !c.hidden).map((c) => [c.to, c])), bridges = cases.length > 0 ? caseItems.map(deriveBridge) : [deriveBridge(items)], levels = bridges.reduce((all, bridge) => Object.assign(all, bridge.levels), emptyIdRecord()), totals = bridges.reduce((all, bridge) => Object.assign(all, bridge.totals), emptyIdRecord()), valuesOff = pointValuesOff(options), closingNet = (() => {
|
|
666
|
+
let connectors = data.connectors ?? [], hiddenAfter = new Set(connectors.filter((c) => c.hidden).map((c) => c.from)), connectorInto = new Map(connectors.filter((c) => !c.hidden).map((c) => [c.to, c])), bridges = cases.length > 0 ? caseItems.map(deriveBridge) : [deriveBridge(items)], levels = bridges.reduce((all, bridge) => Object.assign(all, bridge.levels), emptyIdRecord()), totals = bridges.reduce((all, bridge) => Object.assign(all, bridge.totals), emptyIdRecord()), valuesOff = pointValuesOff(options), closingChange = options.closingChange, closingNet = (() => {
|
|
613
667
|
let open = items[0], close = items[items.length - 1];
|
|
614
|
-
if (!categoryRow || cases.length > 0 || options.labels === !1 || items.length < 2 || open.type === "delta" || close.type === "delta") return;
|
|
615
|
-
let
|
|
616
|
-
if (given === void 0) return;
|
|
617
|
-
let { delta, base } = given;
|
|
668
|
+
if (!categoryRow || cases.length > 0 || options.labels === !1 || items.length < 2 || open.type === "delta" || close.type === "delta" || closingChange === void 0) return;
|
|
669
|
+
let { delta, base } = closingChange;
|
|
618
670
|
if (!Number.isFinite(delta) || delta === 0) return;
|
|
619
671
|
let change = fmtSigned(delta), percent = base > 0 ? `(${changePercentText(delta / base * 100, 1, options.locale?.language)})` : "";
|
|
620
672
|
return { text: percent ? `${change} ${percent}` : change, lines: percent ? [change, percent] : [change], tone: stepTone(delta) };
|
|
@@ -794,7 +846,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
794
846
|
}, bandFor = (x0, w) => bandScale(items.length, [x0, x0 + w], {
|
|
795
847
|
paddingInner: 1 - fractionFor(w),
|
|
796
848
|
paddingOuter: (1 - fractionFor(w)) / 2 + 0.05
|
|
797
|
-
}), plotLeft = frameResult.plot.x, plotWidth = frameResult.plot.w, band = bandFor(plotLeft, plotWidth), dateNumericTicks = isDateNumericTickSequence(items.map((it) => it.label)), planRowAt = (b, widths) => planCategoryRow({
|
|
849
|
+
}), plotLeft = frameResult.plot.x, plotWidth = frameResult.plot.w, band = bandFor(plotLeft, plotWidth), dateNumericTicks = isDateNumericTickSequence(items.map((it) => it.label)), planRowAt = (b, widths, rotate) => planCategoryRow({
|
|
798
850
|
labels: items.map((it) => it.label),
|
|
799
851
|
centers: items.map((_, i) => b.center(i)),
|
|
800
852
|
step: b.step,
|
|
@@ -805,12 +857,13 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
805
857
|
target: options2.target,
|
|
806
858
|
textScale: textScaleOf(options2),
|
|
807
859
|
range: b.range,
|
|
808
|
-
spreadBeforeRotate: categoryRow
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
860
|
+
spreadBeforeRotate: categoryRow,
|
|
861
|
+
...rotate === !1 ? { rotate } : {}
|
|
862
|
+
}), planRow = (b, rotate) => planRowAt(b, void 0, rotate), catPlan = planRow(band), widthBeforeRow = plotWidth;
|
|
863
|
+
categoryRow && ({ plan: catPlan, band, x0: plotLeft, width: plotWidth } = yieldToRotatedName(catPlan, band, items.length, plotLeft, plotWidth, bandFor, planRow));
|
|
864
|
+
let catOverhang = widthBeforeRow - plotWidth, catInfos = catPlan.infos, catFont = catPlan.font, catRowH = catPlan.rowHeight, catTickMaxLines = catPlan.maxLines, CAT_TIER_GAP = 4, catStaggerExtra = catPlan.rowHeight - catTickMaxLines * catFont.size * (catFont.lineHeight ?? 1.2), catBandH = categoryRow ? catPlan.rowHeight + 8 : 0;
|
|
812
865
|
categoryRow && pushAll(warnings2, catPlan.warnings);
|
|
813
|
-
let bracketLabelH = measure("X", { family: theme.type.family, ...theme.type.label }).height, bracketRoom = (options2.annotations ?? []).some((a) => a.kind === "bracket") ? Math.ceil(2 * bracketLabelH + 8) : 0, annPad = ((options2
|
|
866
|
+
let bracketLabelH = measure("X", { family: theme.type.family, ...theme.type.label }).height, bracketRoom = (options2.annotations ?? []).some((a) => a.kind === "bracket") ? Math.max(0, Math.ceil(2 * bracketLabelH + 8) - bracketCut) : 0, annPad = (growthArms(options2, data) ? 12 + extraAnnPad : extraAnnPad) + bracketRoom, axisTitle = categoryRow && axisTitleAllowed(options2.labels) ? planValueAxisTitle(options2.axisTitles?.primary, theme, measure, plotWidth) : void 0, axisTitleBand = valueAxisTitleBand(axisTitle, theme, measure, annPad), plot = {
|
|
814
867
|
x: plotLeft,
|
|
815
868
|
y: frameResult.plot.y + 8 + annPad + axisTitleBand,
|
|
816
869
|
w: plotWidth,
|
|
@@ -841,7 +894,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
841
894
|
});
|
|
842
895
|
}
|
|
843
896
|
let labelFont = { family: theme.type.family, ...theme.type.label }, segmentFont = { ...labelFont, size: Math.min(labelFont.size, secondaryType(theme).size) }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, hangingEnd = Math.min(0, minOf(allItems.map((it) => (it.type === "delta" ? levels[it.id].end - levels[it.id].start : totals[it.id]) < 0 ? traversalExtrema[it.id].min : 0))), hangingRoom = options2.labels === !1 || !categoryRow ? 0 : measure("0", strongFont).height + 4, hangingReserve = hangingLabelReserve(plot.h, [dLo, dHi], hangingEnd, hangingRoom);
|
|
844
|
-
categoryRow && !options2
|
|
897
|
+
categoryRow && !growthArms(options2, data) && ["fit", "wrap", "font-down"].includes(catPlan.step) && fixedPlotChrome(frameResult, catBandH + 8 + axisTitleBand), plot.h = plotHeightAfter(frameResult, size.height, plot.h - hangingReserve);
|
|
845
898
|
let y = activeBreak ? brokenLinearScale([dLo, dHi], [plot.y + plot.h, plot.y], activeBreak) : linearScale([dLo, dHi], [plot.y + plot.h, plot.y]), unsafeBreak = !1;
|
|
846
899
|
if (activeBreak) {
|
|
847
900
|
let steps = allItems.filter((it) => it.type === "delta").flatMap((it) => {
|
|
@@ -870,7 +923,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
870
923
|
return requestedBreak && result.geometry.warnings.push(axisBreakHeightOrderWarning()), result;
|
|
871
924
|
}
|
|
872
925
|
}
|
|
873
|
-
let y0 = y(0), catRowY = (dateNumericTicks ? plot.y + plot.h + hangingReserve : categoryRowTop(y, minOf(allItems.map((it) => traversalExtrema[it.id].min)), hangingEnd, hangingRoom)) + 6, nodes = [...frameResult.nodes], marks = { bars: [], connectors: [] }, labelRequests = axisTitle ? [valueAxisTitleRequest(axisTitle, { x: plot.x, y: frameResult.plot.y + 4 }, "start", "axis:y:title")] : [], baselineId = "axis:baseline";
|
|
926
|
+
let y0 = y(0), catRowY = (dateNumericTicks ? plot.y + plot.h + hangingReserve : categoryRowTop(y, minOf(allItems.map((it) => traversalExtrema[it.id].min)), hangingEnd, hangingRoom)) + 6, nodes = [...frameResult.nodes], marks = { bars: [], connectors: [] }, labelRequests = axisTitle ? [valueAxisTitleRequest(axisTitle, { x: plot.x, y: frameResult.plot.y + 4 }, "start", "axis:y:title")] : [], withheld = [], baselineId = "axis:baseline";
|
|
874
927
|
nodes.push({
|
|
875
928
|
t: "line",
|
|
876
929
|
id: baselineId,
|
|
@@ -977,7 +1030,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
977
1030
|
}
|
|
978
1031
|
});
|
|
979
1032
|
let inputIndex = new Map(drawSegments.map((s, k) => [s.id, k]));
|
|
980
|
-
segRects.sort((a, b) => (inputIndex.get(a.id) ?? 0) - (inputIndex.get(b.id) ?? 0)), mixed && caseId === void 0 || occupied.claim(barRect, "mark", stepOwner), marks.bars.push({ id: it.id, rect: barRect, segments: segRects });
|
|
1033
|
+
segRects.sort((a, b) => (inputIndex.get(a.id) ?? 0) - (inputIndex.get(b.id) ?? 0)), mixed && caseId === void 0 || occupied.claim(barRect, "mark", stepOwner, "bar"), marks.bars.push({ id: it.id, rect: barRect, segments: segRects });
|
|
981
1034
|
let apart = (item) => levels[item.id]?.balance !== void 0, nextIndex = i + 1;
|
|
982
1035
|
for (; nextIndex < items.length && apart(items[nextIndex]) && !hiddenAfter.has(items[nextIndex].id); ) nextIndex++;
|
|
983
1036
|
if ((nextIndex >= items.length || apart(items[nextIndex])) && (nextIndex = -1), caseIndex === void 0 && !apart(it) && nextIndex > 0 && !hiddenAfter.has(it.id) && !connectorInto.has(items[nextIndex].id)) {
|
|
@@ -1003,9 +1056,10 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1003
1056
|
isTotal || stepTones.set(it.id, stepTone(itemValue, it.direction));
|
|
1004
1057
|
let boldStep = !isTotal && categoryRow && highlights.has(cat.id);
|
|
1005
1058
|
boldStep && boldValueIds.add(`sum:${it.id}`), typeof valueMeta?.valueLabel == "string" && authoredValueIds.add(isTotal ? `total:${it.id}` : `sum:${it.id}`);
|
|
1006
|
-
let font = isTotal || boldStep ? strongFont : labelFont, tsize = measure(text, font), negative = itemValue < 0, outsideY = negative ? yBot + 4 : yTop - tsize.height - 4, endpoint = i === 0 || i === items.length - 1, insidePaint = paintOf(stackedTotal ? drawSegments[drawSegments.length - 1] : it.segments[0]), insidePattern = scenarioPattern(stackedTotal ? drawSegments[drawSegments.length - 1].scenario ?? it.scenario : it.scenario ?? (it.segments.length === 1 ? it.segments[0].scenario : void 0)), centredX = bx + bw / 2 - tsize.width / 2, outerCase = caseIndex === 0 || caseIndex !== void 0 && caseIndex === cases.length - 1, outsideSlot = negative ? "outsideBottom" : "outsideTop", valueRequest = {
|
|
1059
|
+
let font = isTotal || boldStep ? strongFont : labelFont, tsize = measure(text, font), negative = itemValue < 0, outsideY = negative ? yBot + 4 : yTop - tsize.height - 4, endpoint = i === 0 || i === items.length - 1, insidePaint = paintOf(stackedTotal ? drawSegments[drawSegments.length - 1] : it.segments[0]), insidePattern = scenarioPattern(stackedTotal ? drawSegments[drawSegments.length - 1].scenario ?? it.scenario : it.scenario ?? (it.segments.length === 1 ? it.segments[0].scenario : void 0)), centredX = bx + bw / 2 - tsize.width / 2, outerCase = caseIndex === 0 || caseIndex !== void 0 && caseIndex === cases.length - 1, outsideSlot = negative ? "outsideBottom" : "outsideTop", baselineClear = Math.abs((negative ? yBot : yTop) - y0) < 1 ? 1 : 0, valueRequest = {
|
|
1007
1060
|
id: isTotal ? `total:${it.id}` : `sum:${it.id}`,
|
|
1008
1061
|
kind: isTotal ? "total" : "segment",
|
|
1062
|
+
...isTotal ? { claimIds: [`wf:total:${it.id}`] } : {},
|
|
1009
1063
|
// A one-part value names its segment back, so a pinned segment placed first takes the value; an authored text keeps its seat.
|
|
1010
1064
|
...drawSegments.length === 1 && typeof drawSegments[0].valueLabel != "string" && typeof valueMeta?.valueLabel != "string" ? { printedIn: `segment:${it.id}:${drawSegments[0].id}` } : {},
|
|
1011
1065
|
owner: stepOwner,
|
|
@@ -1015,8 +1069,8 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1015
1069
|
font,
|
|
1016
1070
|
priority: valueMeta?.priority ?? (isTotal ? PRIORITY.total : endpoint ? PRIORITY.endpoint : PRIORITY.extreme) + (highlights.has(cat.id) ? PRIORITY.highlightBonus : 0),
|
|
1017
1071
|
...valueMeta?.valueLabel === !1 ? { redundant: !0 } : {},
|
|
1018
|
-
// An authored value passes the density gate, as on column and bar.
|
|
1019
|
-
...typeof valueMeta?.valueLabel == "string" ? { keepWhenDense: !0 } : {},
|
|
1072
|
+
// An authored or a highlighted value passes the density gate, as on column and bar.
|
|
1073
|
+
...typeof valueMeta?.valueLabel == "string" || highlights.has(cat.id) ? { keepWhenDense: !0 } : {},
|
|
1020
1074
|
candidates: [
|
|
1021
1075
|
{ slot: outsideSlot, rect: { x: centredX, y: outsideY, w: tsize.width, h: tsize.height }, penalty: 0 },
|
|
1022
1076
|
// Crowded, the outer cases' totals stand the series value gap apart over the 2 px case gap, or two equal totals read as one number.
|
|
@@ -1031,11 +1085,11 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1031
1085
|
rect: { x: caseIndex === 0 ? bx + bw - tsize.width : bx, y: outsideY, w: tsize.width, h: tsize.height },
|
|
1032
1086
|
penalty: isTotal ? 1 : 0
|
|
1033
1087
|
}] : [],
|
|
1034
|
-
...tsize.height + 4 <= barRect.h && tsize.width + 4 <= bw ? [{
|
|
1088
|
+
...tsize.height + 4 + baselineClear <= barRect.h && tsize.width + 4 <= bw ? [{
|
|
1035
1089
|
slot: "insideEnd",
|
|
1036
1090
|
rect: {
|
|
1037
1091
|
x: bx + bw / 2 - tsize.width / 2,
|
|
1038
|
-
y: negative ? yBot - tsize.height - 2 : yTop + 2,
|
|
1092
|
+
y: negative ? yBot - tsize.height - 2 - baselineClear : yTop + 2 + baselineClear,
|
|
1039
1093
|
w: tsize.width,
|
|
1040
1094
|
h: tsize.height
|
|
1041
1095
|
},
|
|
@@ -1044,6 +1098,13 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1044
1098
|
insidePattern,
|
|
1045
1099
|
insideFill: effectiveFill(paintColor(theme, insidePaint), insidePattern, theme)
|
|
1046
1100
|
}] : [],
|
|
1101
|
+
// A step that ends on the baseline with no room inside has its outside seat among the category names:
|
|
1102
|
+
// its value stands at its other end, the bridge seat an explicit labelPosition gives it.
|
|
1103
|
+
...!isTotal && baselineClear > 0 ? [{
|
|
1104
|
+
slot: negative ? "outsideTop" : "outsideBottom",
|
|
1105
|
+
rect: { x: centredX, y: negative ? yTop - tsize.height - 4 : yBot + 4, w: tsize.width, h: tsize.height },
|
|
1106
|
+
penalty: 3
|
|
1107
|
+
}] : [],
|
|
1047
1108
|
// Full mode prints the start and end totals. When the centred seats collide with
|
|
1048
1109
|
// the neighbouring bar, the end total hangs outward from its bar's outer edge.
|
|
1049
1110
|
...isTotal && endpoint && caseIndex === void 0 && items.length > 1 ? [{
|
|
@@ -1053,9 +1114,21 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1053
1114
|
}] : []
|
|
1054
1115
|
]
|
|
1055
1116
|
};
|
|
1056
|
-
if (
|
|
1057
|
-
|
|
1058
|
-
|
|
1117
|
+
if (segmentedMark || (valueRequest = positionBarLabel(valueRequest, options2, {
|
|
1118
|
+
rect: barRect,
|
|
1119
|
+
size: tsize,
|
|
1120
|
+
orientation: "vertical",
|
|
1121
|
+
endPositive: Math.abs(Math.max(lvl.start, lvl.end)) >= Math.abs(Math.min(lvl.start, lvl.end)),
|
|
1122
|
+
zero: itemValue === 0,
|
|
1123
|
+
edgeGap: 2,
|
|
1124
|
+
fallback: isTotal ? void 0 : "bridge",
|
|
1125
|
+
insidePaint,
|
|
1126
|
+
insidePattern,
|
|
1127
|
+
insideFill: effectiveFill(paintColor(theme, insidePaint), insidePattern, theme)
|
|
1128
|
+
})), (valuesOff ? withheld : labelRequests).push(valueRequest), caseIndex !== void 0 && caseValues[i].push(valueRequest), closingNet !== void 0 && isTotal && caseIndex === void 0 && i === items.length - 1) {
|
|
1129
|
+
let netId = `net:${it.id}`, netText = closingNet.text, netSize = measure(netText, strongFont), netAtBar = valuesOff, netY = netAtBar ? negative ? outsideY : yTop - netSize.height - 4 : negative ? outsideY + tsize.height + 2 : outsideY - netSize.height - 2;
|
|
1130
|
+
boldValueIds.add(netId);
|
|
1131
|
+
let netRequest = {
|
|
1059
1132
|
id: netId,
|
|
1060
1133
|
kind: "total",
|
|
1061
1134
|
owner: stepOwner,
|
|
@@ -1073,11 +1146,18 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1073
1146
|
// Still too wide: the change and its percent stand on two lines over the bar.
|
|
1074
1147
|
...closingNet.lines.length === 2 ? [(() => {
|
|
1075
1148
|
let w = Math.max(...closingNet.lines.map((line) => measure(line, strongFont).width)), h = netSize.height * 2;
|
|
1076
|
-
return { slot: outsideSlot, rect: { x: bx + bw / 2 - w / 2, y:
|
|
1149
|
+
return { slot: outsideSlot, rect: { x: bx + bw / 2 - w / 2, y: netAtBar ? negative ? outsideY : yTop - h - 4 : negative ? outsideY + tsize.height + 2 : outsideY - h - 2, w, h }, penalty: 2, lines: closingNet.lines };
|
|
1077
1150
|
})()] : []
|
|
1078
1151
|
]
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1152
|
+
};
|
|
1153
|
+
hasLabelPosition(options2) && !segmentedMark && !valuesOff && !options2.labelPlacements?.[netId] && (netRequest.noLeader = !0, netRequest.candidates = [
|
|
1154
|
+
...netRequest.candidates.map((candidate) => ({
|
|
1155
|
+
...candidate,
|
|
1156
|
+
rect: { ...candidate.rect, y: negative ? outsideY : yTop - candidate.rect.h - 4 }
|
|
1157
|
+
})),
|
|
1158
|
+
...netRequest.candidates.map((candidate) => ({ ...candidate, penalty: candidate.penalty + 3, outsidePlot: !0 }))
|
|
1159
|
+
]), labelRequests.push(netRequest);
|
|
1160
|
+
} else closingChange !== void 0 && caseIndex === void 0 && i === items.length - 1 && withheld.push({ id: `net:${it.id}`, kind: "total", owner: stepOwner });
|
|
1081
1161
|
if (caseIndex !== void 0 && caseIndex > 0) return;
|
|
1082
1162
|
let catInfo = catInfos[i], catX = catPlan.x(i), catY = catRowY, rotated = catPlan.rotation !== 0;
|
|
1083
1163
|
labelRequests.push({
|
|
@@ -1162,11 +1242,28 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1162
1242
|
ids: rowValues.filter((request) => `${request.kind}:${request.owner.seriesId ?? ""}` === role).map((request) => request.id),
|
|
1163
1243
|
alternate: !0
|
|
1164
1244
|
}));
|
|
1165
|
-
let
|
|
1245
|
+
let full = options2.mode !== "compact", plotFloor = (placed) => {
|
|
1246
|
+
let valueLabels = new Map(placed.map((label) => [label.id, label]));
|
|
1247
|
+
return valueLabelPlotFloor(plot.w, marks.bars.map((bar, k) => ({
|
|
1248
|
+
bar: bar.rect,
|
|
1249
|
+
group: String(cases.length > 0 ? Math.floor(k / cases.length) : k),
|
|
1250
|
+
labels: [valueLabels.has(`sum:${bar.id}`) ? floorValueLabel(valueLabels.get(`sum:${bar.id}`), full) : printedValueLabel(valueLabels.get(`total:${bar.id}`))].flatMap((rect) => rect ?? [])
|
|
1251
|
+
})), !full);
|
|
1252
|
+
}, narrowForm = options2[NARROW_FORM] === !0, unlabelled = narrowForm ? occupied.snapshot() : [], solved = solveLabels(labelRequests, occupied, solveCtx), minPlotW = plotFloor(solved.placed);
|
|
1253
|
+
if (narrowForm && minPlotW > plot.w + SIZE_TOLERANCE) for (let from of ["alternate", "none"]) {
|
|
1254
|
+
let index = createOccupiedIndex({ x: 0, y: 0, w: size.width, h: size.height });
|
|
1255
|
+
index.tickColumns = occupied.tickColumns;
|
|
1256
|
+
for (let claim of unlabelled) index.claim(claim.rect, claim.kind, claim.owner, claim.part, claim.polygon);
|
|
1257
|
+
let thinned = solveLabels(labelRequests, index, { ...solveCtx, valueRows: solveCtx.valueRows.map((row) => row.ids[0]?.startsWith("sum:") ? { ...row, from } : row) }), floor = plotFloor(thinned.placed);
|
|
1258
|
+
if (!(floor > plot.w + SIZE_TOLERANCE)) {
|
|
1259
|
+
occupied = index, solved = thinned, minPlotW = floor;
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1166
1263
|
if (applyValueAxisTitleInk(solved.placed), pushAll(warnings2, solved.warnings), signBridge) {
|
|
1167
1264
|
for (let label of solved.placed) {
|
|
1168
1265
|
let tone = label.id.startsWith("sum:") ? stepTones.get(label.id.slice(4)) : void 0;
|
|
1169
|
-
tone && tone !== "neutral" && label.slot
|
|
1266
|
+
tone && tone !== "neutral" && !label.slot?.startsWith("inside") && (label.ink = options2.colorblindSafe === !0 ? colorblindPaint(tone) : { token: tone });
|
|
1170
1267
|
}
|
|
1171
1268
|
if (closingNet !== void 0) {
|
|
1172
1269
|
let net = solved.placed.find((label) => label.id.startsWith("net:"));
|
|
@@ -1195,9 +1292,22 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1195
1292
|
y: plot.y - annPad,
|
|
1196
1293
|
w: plot.w,
|
|
1197
1294
|
h: plot.h + annPad
|
|
1198
|
-
},
|
|
1295
|
+
}, bracketTopRow = annPlot.y + bracketLabelH + 3, spanSeat = (i, j) => {
|
|
1296
|
+
let spanIds = new Set(items.slice(i, j + 1).map((x) => x.id)), tops = [
|
|
1297
|
+
...marks.bars.filter((bar) => spanIds.has(bar.id)).map((bar) => bar.rect.y),
|
|
1298
|
+
...solved.placed.filter((label) => !label.hidden && label.kind !== "category" && label.owner.categoryId !== void 0 && spanIds.has(label.owner.categoryId)).map((label) => label.rect.y)
|
|
1299
|
+
];
|
|
1300
|
+
return Math.min(...tops) - BRACKET_GAP - BRACKET_TICK;
|
|
1301
|
+
}, bracketSpans = cases.length > 0 ? [] : annotations.flatMap((a) => {
|
|
1302
|
+
if (a.kind !== "bracket") return [];
|
|
1303
|
+
let i = items.findIndex((x) => x.id === a.from), j = items.findIndex((x) => x.id === a.to);
|
|
1304
|
+
return i >= 0 && j >= i && items.slice(i, j + 1).every((x) => x.type === "delta") ? [[i, j]] : [];
|
|
1305
|
+
}), bracketRowFree = bracketSpans.length ? Math.min(...bracketSpans.map(([i, j]) => spanSeat(i, j))) : void 0, bracketRow = bracketRowFree === void 0 ? void 0 : Math.max(bracketTopRow, bracketRowFree), sourceValues = annotations.some((annotation) => annotation.kind === "valueLine") ? data.items.flatMap((item) => item.values ?? (item.segments?.length ? item.segments.map((segment) => segment.value) : [item.value ?? null])).filter((value) => value !== null) : [], annResult = runAnnotatePass({
|
|
1199
1306
|
annotations,
|
|
1200
1307
|
resolve,
|
|
1308
|
+
spanBracket: (annotation) => totalChangeBracket(annotation, data),
|
|
1309
|
+
// A box given by category wraps the step's whole band.
|
|
1310
|
+
drawingCategoryBand: categoryBandFromCenters(items.map((it) => it.id), plot, (i) => band.center(i), "x"),
|
|
1201
1311
|
defaultSpan: totalsOrder.length >= 2 ? { from: totalsOrder[0].id, to: totalsOrder[totalsOrder.length - 1].id } : items.length >= 2 ? { from: items[0].id, to: items[items.length - 1].id } : void 0,
|
|
1202
1312
|
occupied,
|
|
1203
1313
|
plot: annPlot,
|
|
@@ -1223,7 +1333,9 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1223
1333
|
return {
|
|
1224
1334
|
left: band.position(i),
|
|
1225
1335
|
right: band.position(j) + band.bandwidth,
|
|
1226
|
-
y:
|
|
1336
|
+
y: bracketTopRow,
|
|
1337
|
+
// Each bracket stands on the shared row; `bracketRow: 'span'` keeps it right above its own steps.
|
|
1338
|
+
spanY: options2.bracketRow === "span" ? Math.max(bracketTopRow, spanSeat(i, j)) : bracketRow,
|
|
1227
1339
|
sum: compensatedSum(values.map((step) => step.value)),
|
|
1228
1340
|
steps: values
|
|
1229
1341
|
};
|
|
@@ -1245,79 +1357,78 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1245
1357
|
);
|
|
1246
1358
|
let first = items[0], last = items[items.length - 1], stepsDesc = (bridge) => bridge.map(
|
|
1247
1359
|
(it) => it.type === "delta" ? `${it.label} ${labelRequests.find((label) => label.id === `sum:${it.id}`)?.text ?? fmtSigned(levels[it.id].end - levels[it.id].start)}` : `${it.label} ${labelRequests.find((label) => label.id === `total:${it.id}`)?.text ?? fmt(totals[it.id])}`
|
|
1248
|
-
).join(", "), a11yDesc = cases.length > 0 ? chartString(options2, "waterfallCasesDesc", { v1: cases.length, v2: cases.map((c, k) => `${c.label ?? c.id}: ${stepsDesc(caseItems[k])}`).join(". ") }) : stepsDesc(items),
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
geometry: {
|
|
1255
|
-
type: "waterfall",
|
|
1256
|
-
size,
|
|
1257
|
-
sizing: {
|
|
1258
|
-
...bandSizing("waterfall", size, plot.w + catOverhang, band.step, minPlotW),
|
|
1259
|
-
...nodes.some((node) => node.part === "barBreak") ? { [HEIGHT_STRUCTURE]: !0 } : {}
|
|
1260
|
-
},
|
|
1261
|
-
plot,
|
|
1262
|
-
scene: withSegmentSeams(nodes, theme),
|
|
1263
|
-
labels: allLabels,
|
|
1264
|
-
axes: [
|
|
1265
|
-
{
|
|
1266
|
-
axis: "x",
|
|
1267
|
-
baselineNodeId: baselineId,
|
|
1268
|
-
ticks: items.map((it, i) => ({
|
|
1269
|
-
at: it.id,
|
|
1270
|
-
pos: band.center(i),
|
|
1271
|
-
labelId: `category:${it.id}`
|
|
1272
|
-
}))
|
|
1273
|
-
}
|
|
1274
|
-
],
|
|
1275
|
-
annotations: annResult.placed,
|
|
1276
|
-
legend: frameResult.legend,
|
|
1277
|
-
frame: frameResult.frame,
|
|
1278
|
-
marks,
|
|
1279
|
-
derived: {
|
|
1280
|
-
levels,
|
|
1281
|
-
totals,
|
|
1282
|
-
totalBasis,
|
|
1283
|
-
tickBand: {
|
|
1284
|
-
reserved: catBandH,
|
|
1285
|
-
measuredLines: catTickMaxLines,
|
|
1286
|
-
lineHeight: catFont.size * 1.2,
|
|
1287
|
-
extra: catStaggerExtra,
|
|
1288
|
-
dateNumeric: dateNumericTicks,
|
|
1289
|
-
position: "below"
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
|
-
a11y: {
|
|
1293
|
-
title: accessibleTitle(options2.title, chartString(options2, "waterfallTitle", { v1: first.label, v2: last.label })),
|
|
1294
|
-
counts: [...cases.length ? [structureCount("cases", cases.length, void 0, options2)] : []],
|
|
1295
|
-
desc: chartString(options2, "waterfallDesc", { v1: build === "down" ? chartString(options2, "buildDownClause") : "", v2: a11yDesc })
|
|
1296
|
-
},
|
|
1297
|
-
...paintWarningRules.length ? { paintWarningRules } : {},
|
|
1298
|
-
warnings: warnings2,
|
|
1299
|
-
debug: { occupied: occupied.snapshot(), decisions: [...solved.decisions, ...annResult.decisions] }
|
|
1360
|
+
).join(", "), a11yDesc = cases.length > 0 ? chartString(options2, "waterfallCasesDesc", { v1: cases.length, v2: cases.map((c, k) => `${c.label ?? c.id}: ${stepsDesc(caseItems[k])}`).join(". ") }) : stepsDesc(items), geometry = withUnprintedClaims({
|
|
1361
|
+
type: "waterfall",
|
|
1362
|
+
size,
|
|
1363
|
+
sizing: {
|
|
1364
|
+
...bandSizing("waterfall", size, plot.w + catOverhang, band.step, minPlotW),
|
|
1365
|
+
...nodes.some((node) => node.part === "barBreak") ? { [HEIGHT_STRUCTURE]: !0 } : {}
|
|
1300
1366
|
},
|
|
1367
|
+
plot,
|
|
1368
|
+
scene: withSegmentSeams(nodes, theme),
|
|
1369
|
+
labels: allLabels,
|
|
1370
|
+
axes: [
|
|
1371
|
+
{
|
|
1372
|
+
axis: "x",
|
|
1373
|
+
baselineNodeId: baselineId,
|
|
1374
|
+
ticks: items.map((it, i) => ({
|
|
1375
|
+
at: it.id,
|
|
1376
|
+
pos: band.center(i),
|
|
1377
|
+
labelId: `category:${it.id}`
|
|
1378
|
+
}))
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
annotations: annResult.placed,
|
|
1382
|
+
legend: frameResult.legend,
|
|
1383
|
+
frame: frameResult.frame,
|
|
1384
|
+
marks,
|
|
1385
|
+
derived: {
|
|
1386
|
+
levels,
|
|
1387
|
+
totals,
|
|
1388
|
+
totalBasis,
|
|
1389
|
+
tickBand: {
|
|
1390
|
+
reserved: catBandH,
|
|
1391
|
+
measuredLines: catTickMaxLines,
|
|
1392
|
+
lineHeight: catFont.size * 1.2,
|
|
1393
|
+
extra: catStaggerExtra,
|
|
1394
|
+
dateNumeric: dateNumericTicks,
|
|
1395
|
+
position: "below"
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
a11y: {
|
|
1399
|
+
title: accessibleTitle(options2.title, chartString(options2, "waterfallTitle", { v1: first.label, v2: last.label })),
|
|
1400
|
+
counts: [...cases.length ? [structureCount("cases", cases.length, void 0, options2)] : []],
|
|
1401
|
+
desc: chartString(options2, "waterfallDesc", { v1: build === "down" ? chartString(options2, "buildDownClause") : "", v2: a11yDesc })
|
|
1402
|
+
},
|
|
1403
|
+
...paintWarningRules.length ? { paintWarningRules } : {},
|
|
1404
|
+
warnings: warnings2,
|
|
1405
|
+
debug: { occupied: occupied.snapshot(), decisions: [...solved.decisions, ...annResult.decisions] }
|
|
1406
|
+
}, withheld.flatMap((request) => requestClaims(request, options2) ?? [])), bracketLabels = new Set(annResult.placed.filter((placed) => placed.kind === "bracket").map((placed) => `annotation:${placed.id}`)), onRow = bracketRowFree !== void 0 && options2.bracketRow !== "span" && annResult.labels.filter((label) => bracketLabels.has(label.id) && label.hidden === void 0).every((label) => label.rect.y + label.rect.h + 3 >= bracketRow - 0.5);
|
|
1407
|
+
return {
|
|
1408
|
+
geometry,
|
|
1301
1409
|
annotationLegDeficit: annResult.legDeficit,
|
|
1302
1410
|
unsafeBreak,
|
|
1411
|
+
...onRow ? { bracketSlack: Math.min(bracketRowFree - bracketTopRow, bracketRoom) } : {},
|
|
1303
1412
|
...unsafeBreak && !enforceBreakOrder2 ? { repairBreak: () => drawBridge(options2) } : {}
|
|
1304
1413
|
};
|
|
1305
1414
|
}
|
|
1306
1415
|
function normalizeItem(raw, i) {
|
|
1307
|
-
if (!raw?.id) throw new NormalizeError("missing-id", `items[${i}]`, "item requires an id");
|
|
1416
|
+
if (!raw?.id) throw new NormalizeError("missing-id", `items[${i}]`, "item requires an id", void 0, void 0, ["data", "items", i, "id"]);
|
|
1308
1417
|
let type = raw.type ?? "delta", path = `items[${raw.id}]`, checkCell = raw.value !== void 0 ? normalizeCell(raw.value, `${path}.value`) : null, checkValue = checkCell === null ? null : cellValue(checkCell), segments;
|
|
1309
|
-
if (type !== "delta")
|
|
1418
|
+
if (type !== "delta") {
|
|
1310
1419
|
raw.segments?.some((segment) => cellMeta(segment.value)?.format) && warnings.push({
|
|
1311
1420
|
code: "format-ignored",
|
|
1312
1421
|
severity: "warn",
|
|
1313
1422
|
owner: { categoryId: raw.id },
|
|
1314
1423
|
message: `item '${raw.id}': a total derives its segments; an authored segment format cannot apply`,
|
|
1315
1424
|
suggest: "set the total format on value.format, or format its contributing delta segments"
|
|
1316
|
-
})
|
|
1317
|
-
|
|
1425
|
+
});
|
|
1426
|
+
let fill = checkCell === null ? void 0 : cellMeta(checkCell)?.fill;
|
|
1427
|
+
segments = [{ id: "__total", value: 0, ...fill ? { fill } : {} }];
|
|
1428
|
+
} else if (raw.segments && raw.segments.length > 0)
|
|
1318
1429
|
segments = raw.segments.map((s, k) => {
|
|
1319
1430
|
let cell = normalizeCell(s.value, `${path}.segments[${k}].value`), v = cellValue(cell);
|
|
1320
|
-
if (v === null) throw new NormalizeError("missing-value", `${path}.segments[${k}]`, "segment needs a numeric value");
|
|
1431
|
+
if (v === null) throw new NormalizeError("missing-value", `${path}.segments[${k}]`, "segment needs a numeric value", void 0, void 0, ["data", "items", i, "segments", k]);
|
|
1321
1432
|
let meta = cellMeta(cell);
|
|
1322
1433
|
return {
|
|
1323
1434
|
id: s.id ?? `s${k}`,
|
|
@@ -1373,7 +1484,7 @@ function layoutWaterfallWithPad(data, options, extraAnnPad, categoryRow = !0, au
|
|
|
1373
1484
|
return segmentPaints.get(identity.id) ?? rawIdentityPaint(identity);
|
|
1374
1485
|
}
|
|
1375
1486
|
function rawIdentityPaint(identity) {
|
|
1376
|
-
return identity.colorRole ?
|
|
1487
|
+
return identity.colorRole ? segmentRoles.get(identity.id) : seriesPaint(identity.slot, paletteRamp ? options.palette : void 0);
|
|
1377
1488
|
}
|
|
1378
1489
|
function scenarioPattern(scenario) {
|
|
1379
1490
|
return scenario === "FC" ? "hatch45" : scenario === "PL" ? "outline" : void 0;
|