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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLOT_W_FLOOR_DEMOTED
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4TUU3UGY.js";
|
|
4
4
|
import {
|
|
5
5
|
addRatioTierRequests,
|
|
6
6
|
finalizeRatioTier,
|
|
@@ -9,13 +9,14 @@ import {
|
|
|
9
9
|
ratioTierCanRender,
|
|
10
10
|
ratioTierMetrics,
|
|
11
11
|
ratioTierSpacingWarnings
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SKPOXLG5.js";
|
|
13
13
|
import {
|
|
14
14
|
BUMP_FOLDED,
|
|
15
15
|
END_LABEL_KEY,
|
|
16
16
|
END_LABEL_WIDE,
|
|
17
17
|
INLINE_FALLBACK,
|
|
18
18
|
PLOT_END_AIR,
|
|
19
|
+
POINT_LABEL_CENTERED_ROOM,
|
|
19
20
|
actualHeader,
|
|
20
21
|
backForecastAreaLabels,
|
|
21
22
|
bandHatch,
|
|
@@ -57,6 +58,7 @@ import {
|
|
|
57
58
|
planReferenceBandColumn,
|
|
58
59
|
pointLabelEndRoom,
|
|
59
60
|
pointLabelSelection,
|
|
61
|
+
pointLabelsFollowShape,
|
|
60
62
|
pointValueWidths,
|
|
61
63
|
prepareBump,
|
|
62
64
|
prepareEndpointLabels,
|
|
@@ -75,13 +77,13 @@ import {
|
|
|
75
77
|
usesWideEndLabels,
|
|
76
78
|
valueUnit,
|
|
77
79
|
withoutEvents
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-NT3HCXQC.js";
|
|
79
81
|
import {
|
|
80
82
|
logDomain,
|
|
81
83
|
logScale,
|
|
82
84
|
logSpecFormat,
|
|
83
85
|
logTickTiers
|
|
84
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-2IRMGCYE.js";
|
|
85
87
|
import {
|
|
86
88
|
anomalyA11y,
|
|
87
89
|
anomalyCorridor,
|
|
@@ -94,56 +96,61 @@ import {
|
|
|
94
96
|
lineAnomalyFurniture,
|
|
95
97
|
refuseAnomalySpec,
|
|
96
98
|
seatFlaggedValues
|
|
97
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-GB3RZYTK.js";
|
|
98
100
|
import {
|
|
99
101
|
restValuesHidden
|
|
100
102
|
} from "./chunk-EKQK5D6G.js";
|
|
101
103
|
import {
|
|
102
104
|
cellFields,
|
|
103
105
|
normalizeCategorySeries
|
|
104
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-2CQBBN7M.js";
|
|
105
107
|
import {
|
|
106
108
|
roundWholes,
|
|
107
109
|
shareRoundingNotes
|
|
108
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-MXUPMGRY.js";
|
|
109
111
|
import {
|
|
110
112
|
compositionBasis,
|
|
111
113
|
mixedSignsWarning,
|
|
112
114
|
overfullShareSum,
|
|
113
115
|
overfullWarning
|
|
114
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-ETUKDEGL.js";
|
|
115
117
|
import {
|
|
116
118
|
applyCategoryViewport,
|
|
117
119
|
liveWindowOptions,
|
|
118
120
|
viewportMeanSpan
|
|
119
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-JNDWRV34.js";
|
|
120
122
|
import {
|
|
121
123
|
isIncomplete,
|
|
122
124
|
warnIncompleteComposition,
|
|
123
125
|
warnShareRoundingDrift
|
|
124
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-AICO24HJ.js";
|
|
125
127
|
import {
|
|
128
|
+
corridorEdgeRects,
|
|
126
129
|
emitEventLane,
|
|
127
130
|
percentCellsOnly,
|
|
128
131
|
percentLevels,
|
|
129
132
|
runAnnotatePass,
|
|
130
133
|
settleEventLane
|
|
131
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-R5SGE2NS.js";
|
|
132
135
|
import {
|
|
133
136
|
stepDownFont
|
|
134
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-BHLNSJG7.js";
|
|
135
138
|
import {
|
|
136
139
|
breakUnsupported,
|
|
137
140
|
chartPalette,
|
|
138
141
|
chartTheme
|
|
139
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-WFBN2HXR.js";
|
|
140
143
|
import {
|
|
141
144
|
chartString as chartString2,
|
|
142
145
|
nearZeroTailNote
|
|
143
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-HAG3K6PQ.js";
|
|
144
147
|
import {
|
|
145
148
|
withEventsDescribed
|
|
146
149
|
} from "./chunk-OQQMDSCC.js";
|
|
150
|
+
import {
|
|
151
|
+
drawnVariant,
|
|
152
|
+
noTotal
|
|
153
|
+
} from "./chunk-5ACFYNA4.js";
|
|
147
154
|
import {
|
|
148
155
|
categoryBandFromCenters,
|
|
149
156
|
categoryTargetFields,
|
|
@@ -156,10 +163,10 @@ import {
|
|
|
156
163
|
VALUE_LINE_RESERVE,
|
|
157
164
|
gapBracketPairs,
|
|
158
165
|
hiddenValueLineReserve
|
|
159
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-E5YF236N.js";
|
|
160
167
|
import {
|
|
161
168
|
structureCount
|
|
162
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-KW4JXWHO.js";
|
|
163
170
|
import {
|
|
164
171
|
authoredTimeStep,
|
|
165
172
|
formatTimePattern,
|
|
@@ -177,7 +184,7 @@ import {
|
|
|
177
184
|
timeTicks,
|
|
178
185
|
zoneClock,
|
|
179
186
|
zoneYearSpan
|
|
180
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-54YO56IK.js";
|
|
181
188
|
import {
|
|
182
189
|
AXIS_TITLE_GAP,
|
|
183
190
|
NATURAL_BAND_STEP,
|
|
@@ -205,21 +212,19 @@ import {
|
|
|
205
212
|
valueAxisTitleBand,
|
|
206
213
|
valueAxisTitleText,
|
|
207
214
|
valueAxisUnit
|
|
208
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-GNMB72V7.js";
|
|
209
216
|
import {
|
|
210
217
|
prepareFractionData
|
|
211
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-42QKUSHJ.js";
|
|
212
219
|
import {
|
|
213
220
|
NOTED_LABELS,
|
|
214
221
|
PARTIAL_KEY,
|
|
215
222
|
PRIORITY,
|
|
223
|
+
arrowLook,
|
|
216
224
|
authoredFootnoteCount,
|
|
217
225
|
authoredNotes,
|
|
218
226
|
categoryLabelsAndMarks,
|
|
219
|
-
cleanFloat,
|
|
220
227
|
computedTextRole,
|
|
221
|
-
createOccupiedIndex,
|
|
222
|
-
defaultAnnotationId,
|
|
223
228
|
frameTextOptions,
|
|
224
229
|
labelCtx,
|
|
225
230
|
labelsToNodes,
|
|
@@ -233,20 +238,24 @@ import {
|
|
|
233
238
|
partialIds,
|
|
234
239
|
plotHeightAfter,
|
|
235
240
|
readDateFormat,
|
|
236
|
-
round2,
|
|
237
241
|
saysToDate,
|
|
238
242
|
seatLeader,
|
|
239
243
|
shareUnitOptions,
|
|
240
244
|
solveFrame,
|
|
241
245
|
solveLabels,
|
|
242
246
|
toDateFits,
|
|
243
|
-
withCategoryNoteNames
|
|
244
|
-
|
|
247
|
+
withCategoryNoteNames,
|
|
248
|
+
withUnprintedClaims
|
|
249
|
+
} from "./chunk-4OJF6DXL.js";
|
|
245
250
|
import {
|
|
246
251
|
disclosureNote,
|
|
247
252
|
disclosuresShown,
|
|
248
253
|
footerType
|
|
249
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-DZYTXZNS.js";
|
|
255
|
+
import {
|
|
256
|
+
annotationRef,
|
|
257
|
+
defaultAnnotationId
|
|
258
|
+
} from "./chunk-F2ET5ZTT.js";
|
|
250
259
|
import {
|
|
251
260
|
emptyIdRecord
|
|
252
261
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -255,7 +264,7 @@ import {
|
|
|
255
264
|
parseISODate,
|
|
256
265
|
seriesRasterFormatter,
|
|
257
266
|
withUnit
|
|
258
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
259
268
|
import {
|
|
260
269
|
authoredDecimals,
|
|
261
270
|
autoDecimals,
|
|
@@ -269,17 +278,19 @@ import {
|
|
|
269
278
|
withLocaleStrings
|
|
270
279
|
} from "./chunk-MSYTF3DZ.js";
|
|
271
280
|
import {
|
|
272
|
-
arrowHeadPath,
|
|
273
|
-
arrowShaftEnd,
|
|
274
281
|
canvasMargin,
|
|
282
|
+
cleanFloat,
|
|
283
|
+
createOccupiedIndex,
|
|
275
284
|
dashToken,
|
|
276
285
|
effectiveFill,
|
|
277
286
|
emphasisWeight,
|
|
287
|
+
rectsOverlap,
|
|
288
|
+
round2,
|
|
278
289
|
secondaryFont,
|
|
279
290
|
seriesTextPaint,
|
|
280
291
|
strokeToken,
|
|
281
292
|
textScaleOf
|
|
282
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-TX5FSNAU.js";
|
|
283
294
|
import {
|
|
284
295
|
DEFAULT_TARGET,
|
|
285
296
|
NormalizeError,
|
|
@@ -289,16 +300,16 @@ import {
|
|
|
289
300
|
resolveHighlight,
|
|
290
301
|
resolveSize,
|
|
291
302
|
targetFloorsPx
|
|
292
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-RJICOOB3.js";
|
|
304
|
+
import {
|
|
305
|
+
defaultMeasurer,
|
|
306
|
+
wrapText
|
|
307
|
+
} from "./chunk-UIHGGWES.js";
|
|
293
308
|
import {
|
|
294
309
|
maxOf,
|
|
295
310
|
minOf,
|
|
296
311
|
pushAll
|
|
297
312
|
} from "./chunk-WYJEOMNY.js";
|
|
298
|
-
import {
|
|
299
|
-
defaultMeasurer,
|
|
300
|
-
wrapText
|
|
301
|
-
} from "./chunk-UIHGGWES.js";
|
|
302
313
|
|
|
303
314
|
// src/core/annotateGapBracket.ts
|
|
304
315
|
var RING = 4, ARROW = 5, GAP = 6, CAPTION_SHARE = 0.16;
|
|
@@ -353,8 +364,8 @@ function planGapBracket(pass, frame, tail, head, text, computed, caption, id, ki
|
|
|
353
364
|
};
|
|
354
365
|
for (let [i, end] of [tail, head].entries())
|
|
355
366
|
add({ t: "line", id: `${base}:guide${i}`, x1: end.x + RING, y1: end.y, x2: spine, y2: end.y, stroke: { token: "leader" }, width: strokeToken(input.theme, "rule"), dash: dashToken(input.theme, "reference"), owner, part: "leader" });
|
|
356
|
-
let up = head.y < tail.y ? -1 : 1;
|
|
357
|
-
add({ t: "path", id: `${base}:bracket`, d: `M${spine} ${tail.y}L${spine} ${head.y - up *
|
|
367
|
+
let up = head.y < tail.y ? -1 : 1, look = arrowLook(input.theme, { size: ARROW }), headed = !look.standard || bottom - top >= look.depth + 2;
|
|
368
|
+
add({ t: "path", id: `${base}:bracket`, d: `M${spine} ${tail.y}L${spine} ${head.y - (headed ? up * look.shaftEnd : 0)}`, stroke: { token: "ink" }, width: look.stroke, owner, part: "bracket" }), headed && add({ t: "path", id: `${base}:bracketHead`, d: look.head({ x: spine, y: head.y }, up * Math.PI / 2), fill: { token: "ink" }, owner, part: "arrowHead" });
|
|
358
369
|
for (let [i, end] of [tail, head].entries())
|
|
359
370
|
add({ t: "circle", id: `${base}:ring${i}`, cx: end.x, cy: end.y, r: RING, fill: { token: "background" }, stroke: { token: "ink" }, strokeWidth: strokeToken(input.theme, "mark"), owner, part: "gapRing" });
|
|
360
371
|
let annotation = { id, kind, computedText: computed, nodeIds, labelId, derivation };
|
|
@@ -426,7 +437,9 @@ function lowerLineX(data, options) {
|
|
|
426
437
|
"x-duplicate",
|
|
427
438
|
`data.x[${b}]`,
|
|
428
439
|
`data.x[${a}] and data.x[${b}] are the same x (${JSON.stringify(data.x[a])}, ${JSON.stringify(data.x[b])}); one x holds one reading per series`,
|
|
429
|
-
"drop or merge the repeated reading upstream"
|
|
440
|
+
"drop or merge the repeated reading upstream",
|
|
441
|
+
void 0,
|
|
442
|
+
["data", "x", b]
|
|
430
443
|
);
|
|
431
444
|
}
|
|
432
445
|
data.series.forEach((series, si) => {
|
|
@@ -436,11 +449,13 @@ function lowerLineX(data, options) {
|
|
|
436
449
|
"x-values-length",
|
|
437
450
|
`series[${series.id ?? si}].values`,
|
|
438
451
|
`series '${series.id}' has ${Array.isArray(values) ? values.length : 0} values for ${xs.length} x values; on a continuous axis each series gives one value per x, in the order of data.x`,
|
|
439
|
-
"give a value, or null for a missing reading, at every x"
|
|
452
|
+
"give a value, or null for a missing reading, at every x",
|
|
453
|
+
void 0,
|
|
454
|
+
["data", "series", si, "values"]
|
|
440
455
|
);
|
|
441
456
|
values.forEach((value, vi) => {
|
|
442
457
|
if (typeof value == "object" && value !== null && "categoryId" in value)
|
|
443
|
-
throw new NormalizeError("x-values-keyed", `series[${series.id}].values[${vi}]`, "a keyed { categoryId, value } entry has no category to name on a continuous axis", "give the values in the order of data.x, with null where a series has no reading");
|
|
458
|
+
throw new NormalizeError("x-values-keyed", `series[${series.id}].values[${vi}]`, "a keyed { categoryId, value } entry has no category to name on a continuous axis", "give the values in the order of data.x, with null where a series has no reading", void 0, ["data", "series", si, "values", vi]);
|
|
444
459
|
});
|
|
445
460
|
});
|
|
446
461
|
let sortedXs = order.map((i) => xs[i]), model = lineXModel({ xAxis: axis, locale: options?.locale }, void 0), precision = clock ? timePrecision(sortedXs, clock) : void 0, numberName = clock ? void 0 : seriesRasterFormatter(axis.format, sortedXs, options?.locale?.language).fmt, partial = /* @__PURE__ */ new Set(), unmatched = [];
|
|
@@ -490,36 +505,43 @@ function resolveLineXOptions(options, model, cats, warnings) {
|
|
|
490
505
|
let k = 0;
|
|
491
506
|
for (; k < xs.length - 1 && xs[k + 1] <= x; ) k++;
|
|
492
507
|
return [.../* @__PURE__ */ new Set([cats[k], cats[Math.min(xs.length - 1, k + 1)]])].map((c) => `'${c.label ?? c.id}'`).join(" and ");
|
|
493
|
-
}, readingAt = (value, path) => typeof value == "string" && idSet.has(value) ? value : byX.get(model.read(value, path)), exact = (value, path, what) => {
|
|
508
|
+
}, readingAt = (value, path) => typeof value == "string" && idSet.has(value) ? value : byX.get(model.read(value, path)), exact = (value, path, what, segments) => {
|
|
494
509
|
let id = readingAt(value, path);
|
|
495
510
|
if (id !== void 0) return id;
|
|
496
511
|
throw new NormalizeError(
|
|
497
512
|
"x-anchor-no-reading",
|
|
498
513
|
path,
|
|
499
514
|
`${what} names x ${JSON.stringify(value)}, where no series has a reading; the nearest readings are ${nearest(model.read(value, path))}`,
|
|
500
|
-
"name the x of a reading exactly, as data.x gives it"
|
|
515
|
+
"name the x of a reading exactly, as data.x gives it",
|
|
516
|
+
void 0,
|
|
517
|
+
segments
|
|
501
518
|
);
|
|
502
|
-
}, anchor = (value, path, what) => value === void 0 ? value : typeof value == "string" || typeof value == "number" ? exact(value, path, what) : typeof value == "object" && value.categoryId !== void 0 ? { ...value, categoryId: exact(value.categoryId, `${path}.categoryId`, what) } : value, bandEnds = /* @__PURE__ */ new Map(), authored = options.annotations?.flatMap((raw, index) => {
|
|
503
|
-
let a = model.clock ? timeAnnotationAnchors(raw) : raw,
|
|
519
|
+
}, anchor = (value, path, what, segments) => value === void 0 ? value : typeof value == "string" || typeof value == "number" ? exact(value, path, what, segments) : typeof value == "object" && value.categoryId !== void 0 ? { ...value, categoryId: exact(value.categoryId, `${path}.categoryId`, what, segments.length ? [...segments, "categoryId"] : []) } : value, bandEnds = /* @__PURE__ */ new Map(), authored = options.annotations?.flatMap((raw, index) => {
|
|
520
|
+
let a = model.clock ? timeAnnotationAnchors(raw) : raw, ref = annotationRef(raw, index, `options.annotations[${index}]`), path = (key) => `${ref.name}.${key}`, segmentsOf = (key) => ref.segments.length ? [...ref.segments, key] : [], what = `annotation '${a.id ?? `${a.kind}-${index + 1}`}'`;
|
|
504
521
|
switch (a.kind) {
|
|
505
522
|
case "cagr":
|
|
506
|
-
return model.clock ? [{ ...a, ...a.from === void 0 ? {} : { from: anchor(a.from, path("from"), what) }, ...a.to === void 0 ? {} : { to: anchor(a.to, path("to"), what) } }] : (warnings.push({
|
|
523
|
+
return model.clock ? [{ ...a, ...a.from === void 0 ? {} : { from: anchor(a.from, path("from"), what, segmentsOf("from")) }, ...a.to === void 0 ? {} : { to: anchor(a.to, path("to"), what, segmentsOf("to")) } }] : (warnings.push({
|
|
507
524
|
code: "x-cagr-unsupported",
|
|
508
525
|
severity: "warn",
|
|
509
|
-
field:
|
|
526
|
+
...ref.segments.length ? { field: ref.segments } : {},
|
|
510
527
|
message: `${what}: a CAGR is a rate per year, and a number axis has no years, so it is not drawn`,
|
|
511
528
|
suggest: "use a 'diff' annotation between two readings for the change over the range"
|
|
512
529
|
}), []);
|
|
513
530
|
case "diff":
|
|
514
|
-
return [{ ...a, from: anchor(a.from, path("from"), what), to: anchor(a.to, path("to"), what) }];
|
|
531
|
+
return [{ ...a, from: anchor(a.from, path("from"), what, segmentsOf("from")), to: anchor(a.to, path("to"), what, segmentsOf("to")) }];
|
|
515
532
|
case "delta":
|
|
516
|
-
return [{ ...a, at: anchor(a.at, path("at"), what), ...typeof a.vs == "number" ? {} : { vs: anchor(a.vs, path("vs"), what) } }];
|
|
533
|
+
return [{ ...a, at: anchor(a.at, path("at"), what, segmentsOf("at")), ...typeof a.vs == "number" ? {} : { vs: anchor(a.vs, path("vs"), what, segmentsOf("vs")) } }];
|
|
517
534
|
case "abs":
|
|
518
535
|
case "note":
|
|
519
536
|
case "callout":
|
|
520
|
-
|
|
537
|
+
case "text":
|
|
538
|
+
return [{ ...a, at: anchor(a.at, path("at"), what, segmentsOf("at")) }];
|
|
539
|
+
case "line":
|
|
540
|
+
case "arrow":
|
|
541
|
+
case "box":
|
|
542
|
+
return [{ ...a, from: anchor(a.from, path("from"), what, segmentsOf("from")), to: anchor(a.to, path("to"), what, segmentsOf("to")) }];
|
|
521
543
|
case "valueLine":
|
|
522
|
-
return [{ ...a, ...a.from === void 0 ? {} : { from: exact(a.from, path("from"), what) }, ...a.to === void 0 ? {} : { to: exact(a.to, path("to"), what) } }];
|
|
544
|
+
return [{ ...a, ...a.from === void 0 ? {} : { from: exact(a.from, path("from"), what, segmentsOf("from")) }, ...a.to === void 0 ? {} : { to: exact(a.to, path("to"), what, segmentsOf("to")) } }];
|
|
523
545
|
case "band": {
|
|
524
546
|
if (a.from === void 0 && a.to === void 0) return [a];
|
|
525
547
|
let band = { ...a };
|
|
@@ -620,7 +642,7 @@ var dropLog = [{ op: "remove", path: "/options/valueAxis/log" }];
|
|
|
620
642
|
function conflict(path, reason, fix = dropLog) {
|
|
621
643
|
throw new NormalizeError("log-line-conflict", path, reason, "remove valueAxis.log or the incompatible option", fix, path.split("."));
|
|
622
644
|
}
|
|
623
|
-
function nonpositive(path, value) {
|
|
645
|
+
function nonpositive(path, value, pointer = path) {
|
|
624
646
|
let name = path.map((part, index) => typeof part == "number" ? `[${part}]` : `${index ? "." : ""}${part}`).join("");
|
|
625
647
|
throw new NormalizeError(
|
|
626
648
|
"log-nonpositive",
|
|
@@ -628,11 +650,12 @@ function nonpositive(path, value) {
|
|
|
628
650
|
`${name} is ${value}; a log scale has no place for zero or a negative value`,
|
|
629
651
|
"use a value above zero or remove valueAxis.log",
|
|
630
652
|
dropLog,
|
|
631
|
-
|
|
653
|
+
pointer
|
|
632
654
|
);
|
|
633
655
|
}
|
|
634
|
-
function
|
|
635
|
-
|
|
656
|
+
function annotationField(ann, index, field, value) {
|
|
657
|
+
let { segments } = annotationRef(ann, index);
|
|
658
|
+
return segments.length ? nonpositive([...segments, ...field], value) : nonpositive(["options", "annotations", index, ...field], value, []);
|
|
636
659
|
}
|
|
637
660
|
function validateLineLogSource(options, data) {
|
|
638
661
|
options.valueAxis?.log !== !0 && options.valueAxis?.log !== "y" || !Array.isArray(data?.series) || data.series.forEach((series, si) => {
|
|
@@ -668,15 +691,14 @@ function validateLineLog(options, series) {
|
|
|
668
691
|
value !== void 0 && value <= 0 && nonpositive(["options", "referenceBands", i, key], value);
|
|
669
692
|
}
|
|
670
693
|
}), options.annotations?.forEach((ann, i) => {
|
|
671
|
-
|
|
672
|
-
if (ann.kind === "valueLine" && typeof ann.value == "number" && ann.value <= 0 && nonpositive([...path, "value"], ann.value), ann.kind === "band" && (ann.style === "corridor" || ann.style === "tolerance" || ann.style === "attainment"))
|
|
694
|
+
if (ann.kind === "valueLine" && typeof ann.value == "number" && ann.value <= 0 && annotationField(ann, i, ["value"], ann.value), ann.kind === "band" && (ann.style === "corridor" || ann.style === "tolerance" || ann.style === "attainment"))
|
|
673
695
|
for (let key of ["value", "low", "high"]) {
|
|
674
696
|
let value = ann[key];
|
|
675
|
-
value !== void 0 && value <= 0 &&
|
|
697
|
+
value !== void 0 && value <= 0 && annotationField(ann, i, [key], value);
|
|
676
698
|
}
|
|
677
699
|
if (ann.kind === "valueLine" && typeof ann.tolerance == "object")
|
|
678
700
|
for (let key of ["low", "high"])
|
|
679
|
-
ann.tolerance[key] <= 0 &&
|
|
701
|
+
ann.tolerance[key] <= 0 && annotationField(ann, i, ["tolerance", key], ann.tolerance[key]);
|
|
680
702
|
});
|
|
681
703
|
}
|
|
682
704
|
}
|
|
@@ -686,7 +708,7 @@ function validateLogTolerances(options, series, cats, pv, rowOf, ownUnits, sourc
|
|
|
686
708
|
options.annotations?.forEach((ann, i) => {
|
|
687
709
|
if (ann.kind !== "valueLine" || typeof ann.tolerance != "number") return;
|
|
688
710
|
let scope = ann.seriesId !== void 0 || ann.from !== void 0 || ann.to !== void 0 ? meanValueFor({ seriesId: ann.seriesId, from: ann.from, to: ann.to }) : void 0, value = typeof ann.value == "number" ? ann.value : scope && "value" in scope ? scope.value : meanValue, sourceIndex = sourceAnnotations?.indexOf(ann) ?? i;
|
|
689
|
-
value !== void 0 && value - ann.tolerance <= 0 &&
|
|
711
|
+
value !== void 0 && value - ann.tolerance <= 0 && annotationField(ann, sourceIndex < 0 ? i : sourceIndex, ["tolerance"], value - ann.tolerance);
|
|
690
712
|
});
|
|
691
713
|
}
|
|
692
714
|
|
|
@@ -708,6 +730,7 @@ function resolveLineEnv(options, warnings) {
|
|
|
708
730
|
pctFmt: (p) => formatShare(p, options.locale?.language),
|
|
709
731
|
authoredPctFmt: (p) => formatAuthoredPercent(p, options.locale?.language),
|
|
710
732
|
highlights,
|
|
733
|
+
pointHighlights: /* @__PURE__ */ new Set(),
|
|
711
734
|
anyHighlight: highlights.size > 0,
|
|
712
735
|
density: options.labelDensity ?? "smart"
|
|
713
736
|
};
|
|
@@ -815,14 +838,17 @@ function lineVariant(options, isBump, seriesNorm, warnings) {
|
|
|
815
838
|
throw new NormalizeError(
|
|
816
839
|
"bump-variant-conflict",
|
|
817
840
|
"valueAxis.percent",
|
|
818
|
-
"variant 'bump' plots derived ranks; valueAxis.percent promotes the chart to a 100% area composition, which ranks cannot form \u2014 drop one of the two"
|
|
841
|
+
"variant 'bump' plots derived ranks; valueAxis.percent promotes the chart to a 100% area composition, which ranks cannot form \u2014 drop one of the two",
|
|
842
|
+
void 0,
|
|
843
|
+
void 0,
|
|
844
|
+
["options", "valueAxis", "percent"]
|
|
819
845
|
);
|
|
820
846
|
variant !== "stacked100-area" && warnings.push({
|
|
821
847
|
code: "percent-axis-stacks-area",
|
|
822
848
|
severity: "warn",
|
|
823
849
|
message: `valueAxis.percent draws a 100% stacked area: each series becomes its share of the category sum, not its own value (variant '${variant}' ignored)`,
|
|
824
850
|
suggest: "For percent-formatted lines, remove valueAxis.percent and set data.valueKind: 'fraction' for fraction values, or a percent format such as '0%' for values already in percent. For a 100% composition, set variant: 'stacked100-area'."
|
|
825
|
-
}), variant = "
|
|
851
|
+
}), variant = drawnVariant("line", options);
|
|
826
852
|
}
|
|
827
853
|
let isStacked = variant === "stacked-area" || variant === "stacked100-area", chartInterpolation = options.interpolate ?? "linear", requestedInterpolationFor = (series) => series.smooth === !0 ? "monotone" : series.smooth === !1 ? "linear" : chartInterpolation, interpolationFor = (series) => {
|
|
828
854
|
let requested = requestedInterpolationFor(series);
|
|
@@ -979,22 +1005,25 @@ function valueDomain(d, isBump, warnings, edges = []) {
|
|
|
979
1005
|
if (variant === "stacked100-area" && (annotation.value < 0 || annotation.value > 100))
|
|
980
1006
|
throw new NormalizeError(
|
|
981
1007
|
"value-line-composition-domain",
|
|
982
|
-
|
|
1008
|
+
annotationRef(annotation, annotationIndex).name,
|
|
983
1009
|
`valueLine '${annotationId}' at ${annotation.value} is outside the fixed 0..100 composition axis`,
|
|
984
|
-
"keep the value line between 0 and 100; a reference line cannot rescale a 100% composition"
|
|
1010
|
+
"keep the value line between 0 and 100; a reference line cannot rescale a 100% composition",
|
|
1011
|
+
void 0,
|
|
1012
|
+
annotationRef(annotation, annotationIndex).segments
|
|
985
1013
|
);
|
|
986
1014
|
(annotation.value < lo || annotation.value > hi) && domainExtendingValueLines.push({ id: annotationId, value: annotation.value }), lo = Math.min(lo, annotation.value), hi = Math.max(hi, annotation.value);
|
|
987
1015
|
}
|
|
988
|
-
|
|
989
|
-
|
|
1016
|
+
let bands = options.referenceBands ?? [], outside = (band) => variant === "stacked100-area" ? ["value", "low", "high"].find((key) => band[key] !== void 0 && (band[key] < 0 || band[key] > 100)) : void 0;
|
|
1017
|
+
for (let [bandIndex, band] of bands.entries()) {
|
|
1018
|
+
let field = outside(band);
|
|
990
1019
|
if (field !== void 0) {
|
|
991
|
-
let level = band[field];
|
|
1020
|
+
let level = band[field], gone = bands.flatMap((other, index) => outside(other) === void 0 ? [] : [index]);
|
|
992
1021
|
throw new NormalizeError(
|
|
993
1022
|
"reference-band-composition-domain",
|
|
994
1023
|
`options.referenceBands[${bandIndex}].${field}`,
|
|
995
1024
|
`reference band '${band.label ?? band.id ?? bandIndex + 1}' at ${level} is outside the fixed 0..100 composition axis`,
|
|
996
1025
|
"keep the band between 0 and 100; a reference band cannot rescale a 100% composition",
|
|
997
|
-
[{ op: "remove", path: `/options/referenceBands/${
|
|
1026
|
+
gone.length === bands.length ? [{ op: "remove", path: "/options/referenceBands" }] : gone.reverse().map((index) => ({ op: "remove", path: `/options/referenceBands/${index}` })),
|
|
998
1027
|
["options", "referenceBands", bandIndex, field]
|
|
999
1028
|
);
|
|
1000
1029
|
}
|
|
@@ -1114,7 +1143,7 @@ function resolveLineDomain(data, input, env, warnings) {
|
|
|
1114
1143
|
});
|
|
1115
1144
|
let dataSeries = seriesNorm.filter((s) => s.role !== "reference"), refSeries = seriesNorm.filter((s) => s.role === "reference");
|
|
1116
1145
|
if (dataSeries.length === 0)
|
|
1117
|
-
throw new NormalizeError("empty-data", "series", "line requires at least one data-role series");
|
|
1146
|
+
throw new NormalizeError("empty-data", "series", "line requires at least one data-role series", void 0, void 0, ["data", "series"]);
|
|
1118
1147
|
let seriesById = new Map(seriesNorm.map((series) => [series.id, series])), targets = collectTargets(seriesNorm, cats, options, warnings), { variant, isArea, isStacked, interpolationFor } = lineVariant(options, isBump, seriesNorm, warnings), indexed = options.rebase100 && variant !== "stacked100-area" && cats.some((c) => c.id === rebaseAtId(options.rebase100, cats)), valueSpec = seriesRasterFormatter(options.format, seriesNorm.flatMap((s) => s.vals.map((val) => val.v)), options.locale?.language, indexed ? void 0 : options.unit, options.target, void 0, isStacked), bumpPrepared = prepareBump({
|
|
1119
1148
|
isBump,
|
|
1120
1149
|
options,
|
|
@@ -1653,7 +1682,10 @@ function planLineLabels(env, domain, area, paints, text, reserves, scene, warnin
|
|
|
1653
1682
|
// Authored furniture that divides at a transition stands on the same split.
|
|
1654
1683
|
dividers: area.forecast.map((boundary, index) => ({ x: forecastXs[index], ci: boundary.lastActualIndex })),
|
|
1655
1684
|
...isBump ? { bump: { headroom: area.topPad, named: new Set([...endLabels, ...reserves.startLabels].map((label) => `${label.s.id}:${label.ci}`)) } } : {},
|
|
1685
|
+
shapeSides: pointLabelsFollowShape(env, domain),
|
|
1656
1686
|
flagged: flaggedPoints(domain),
|
|
1687
|
+
pointHighlights: env.pointHighlights,
|
|
1688
|
+
markerExtent: paints.markerExtent,
|
|
1657
1689
|
...focusValue ? { focusFont: focusValue } : {},
|
|
1658
1690
|
toDate: { ids: lineToDateIds(env, domain, text), words: domain.options.strings?.toDate ?? chartString(domain.options, "toDate"), theme: env.theme, measure }
|
|
1659
1691
|
}, valueWidths = isBump ? pointValueWidths(valueInput) : /* @__PURE__ */ new Map();
|
|
@@ -1753,8 +1785,11 @@ function seatValuesOffGapGuides(domain, area, annotations, labelRequests, labelH
|
|
|
1753
1785
|
}
|
|
1754
1786
|
|
|
1755
1787
|
// src/core/charts/line/footnotes.ts
|
|
1788
|
+
function rebaseNotes(suppressed, options) {
|
|
1789
|
+
return suppressed.map((s) => stringFields(s.zero ? options.strings.rebaseZero : options.strings.rebaseMissing, { series: s.series, period: s.period }));
|
|
1790
|
+
}
|
|
1756
1791
|
function lineFrameFootnotes(input) {
|
|
1757
|
-
let { fan, cats, bumpDerived, nearZeroTail, options } = input, mixed = input.mixedSign ?? [], rebase = (input.rebaseSuppressed ?? []
|
|
1792
|
+
let { fan, cats, bumpDerived, nearZeroTail, options } = input, mixed = input.mixedSign ?? [], rebase = rebaseNotes(input.rebaseSuppressed ?? [], options);
|
|
1758
1793
|
return [
|
|
1759
1794
|
...partialFootnotes(cats, options.strings, input.partialNamed),
|
|
1760
1795
|
...missingStackNote(cats, input.incompleteStack ?? [], options, input.footer),
|
|
@@ -1841,33 +1876,41 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1841
1876
|
let words = options.strings?.toDate ?? chartString(options, "toDate");
|
|
1842
1877
|
printed && keyValues.set(s.id, domain.x && cats[ci].partial === !0 && !saysToDate(cats[ci].label ?? cats[ci].id, words) ? `${printed} ${words}` : printed);
|
|
1843
1878
|
}
|
|
1844
|
-
let
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1879
|
+
let endRoom = (shapeSides) => {
|
|
1880
|
+
let room = pointLabelEndRoom({
|
|
1881
|
+
shapeSides,
|
|
1882
|
+
shapeEnd: labelModes.series !== "end" && !usesEndLabelKey(options),
|
|
1883
|
+
markerExtent: paints.markerExtent,
|
|
1884
|
+
valueLabels: labelModes.values,
|
|
1885
|
+
valueLabelsAuthored: options.valueLabels !== void 0,
|
|
1886
|
+
labelOnly: domain.labelOnly,
|
|
1887
|
+
lastWithheld: /* @__PURE__ */ new Set(),
|
|
1888
|
+
valueContent,
|
|
1889
|
+
variant,
|
|
1890
|
+
contentOf: text.contentOf,
|
|
1891
|
+
drawnSeries,
|
|
1892
|
+
pv,
|
|
1893
|
+
rowOf,
|
|
1894
|
+
cats,
|
|
1895
|
+
rebased,
|
|
1896
|
+
composeText,
|
|
1897
|
+
composeEndText: text.composeEndText,
|
|
1898
|
+
absOf,
|
|
1899
|
+
measure,
|
|
1900
|
+
labelFont,
|
|
1901
|
+
highlights,
|
|
1902
|
+
sharesWithheld: domain.sharesWithheld,
|
|
1903
|
+
...valueUnit(options, isBump, rebased),
|
|
1904
|
+
isStacked: domain.isStacked,
|
|
1905
|
+
flagged: flaggedPoints(domain),
|
|
1906
|
+
pointHighlights: env.pointHighlights,
|
|
1907
|
+
...domain.x ? { endToDate: { ids: lineToDateIds(env, domain, text), words: options.strings?.toDate ?? chartString(options, "toDate"), theme: env.theme, measure } } : {}
|
|
1908
|
+
});
|
|
1909
|
+
return isArea && (room.left = room.right = 0), env.pointHighlights.size > 0 && cats.length > 0 && drawnSeries.forEach((series, index) => {
|
|
1910
|
+
let first = paints.markerExtent(series, index, 0), last = paints.markerExtent(series, index, cats.length - 1);
|
|
1911
|
+
first && first.reach > 0 && (room.left = Math.max(room.left, first.reach + PLOT_END_AIR)), last && last.reach > 0 && (room.right = Math.max(room.right, last.reach + PLOT_END_AIR));
|
|
1912
|
+
}), options.latestPoint !== void 0 && options.latestPoint !== "none" && (room.right = Math.max(room.right, latestRingReach(env.theme) + PLOT_END_AIR)), domain.x && (domain.x.shown[0] > domain.x.lo && (room.left = 0), domain.x.shown[domain.x.shown.length - 1] < domain.x.hi && (room.right = 0)), room;
|
|
1913
|
+
}, shaped = pointLabelsFollowShape(env, domain) && !options[POINT_LABEL_CENTERED_ROOM], categoryEndRoom = endRoom(shaped), centred = shaped ? endRoom(!1) : void 0, centredEndRoom = centred && (centred.left !== categoryEndRoom.left || centred.right !== categoryEndRoom.right) ? centred : void 0, bumpFolded = options[BUMP_FOLDED], endpointInput = {
|
|
1871
1914
|
options,
|
|
1872
1915
|
names: labelModes.series,
|
|
1873
1916
|
valueContent,
|
|
@@ -1929,6 +1972,7 @@ function lineReserves(env, domain, paints, text, warnings) {
|
|
|
1929
1972
|
endpoint,
|
|
1930
1973
|
keyValues,
|
|
1931
1974
|
categoryEndRoom,
|
|
1975
|
+
...centredEndRoom ? { centredEndRoom } : {},
|
|
1932
1976
|
startLabels,
|
|
1933
1977
|
startReserve,
|
|
1934
1978
|
annList,
|
|
@@ -2141,8 +2185,29 @@ function valueAxisTicks(env, domain) {
|
|
|
2141
2185
|
};
|
|
2142
2186
|
}
|
|
2143
2187
|
function categoryRow(env, domain, text, reserves, frame, valueAxisReserve, warnings) {
|
|
2144
|
-
|
|
2145
|
-
|
|
2188
|
+
let on = (room, sink2) => domain.x ? continuousRow(env, domain, domain.x, text, room, frame, valueAxisReserve, sink2) : categoryNameRow(env, domain, text, room, frame, valueAxisReserve, sink2), centred = reserves.centredEndRoom;
|
|
2189
|
+
if (!centred) return { ...on(reserves.categoryEndRoom, warnings), endRoom: reserves.categoryEndRoom, sideEndRoom: !1 };
|
|
2190
|
+
let before = warnings.length, fallback = { ...on(centred, warnings), endRoom: centred, sideEndRoom: !1 };
|
|
2191
|
+
if (!domain.x && (fallback.catPlan.stride !== 1 || !fallback.catPlan.keep.every(Boolean))) return fallback;
|
|
2192
|
+
let sink = [], side = on(reserves.categoryEndRoom, sink);
|
|
2193
|
+
return rowSignature(side.catPlan) !== rowSignature(fallback.catPlan) ? fallback : (warnings.length = before, pushAll(warnings, sink), { ...side, endRoom: reserves.categoryEndRoom, sideEndRoom: !0 });
|
|
2194
|
+
}
|
|
2195
|
+
function rowSignature(plan) {
|
|
2196
|
+
return JSON.stringify([
|
|
2197
|
+
plan.stride,
|
|
2198
|
+
plan.rotation,
|
|
2199
|
+
plan.maxLines,
|
|
2200
|
+
plan.font.size,
|
|
2201
|
+
plan.typeRole,
|
|
2202
|
+
plan.keep,
|
|
2203
|
+
plan.infos.map((info) => [info.lines, info.truncated]),
|
|
2204
|
+
plan.yearRow?.years.map((year) => year.text),
|
|
2205
|
+
plan.underRow?.items.map((item) => item.text),
|
|
2206
|
+
plan.cutNotes
|
|
2207
|
+
]);
|
|
2208
|
+
}
|
|
2209
|
+
function categoryNameRow(env, domain, text, room, frame, valueAxisReserve, warnings) {
|
|
2210
|
+
let { theme, measure } = env, { options, cats, population } = domain, n = cats.length, warningsBefore = warnings.length, sparseComposition = domain.variant === "stacked100-area" && n <= 3 && !cats.some((_, ci) => ci > 0 && !domain.compositionInvalidAt(ci - 1) && !domain.compositionInvalidAt(ci)), crossesBetween = options.categoryAxis?.crossesBetween ?? (!domain.isArea || sparseComposition), categoryPlotX = frame.plot.x + valueAxisReserve, categoryPlotWidth = Math.max(10, frame.plot.w - valueAxisReserve), grid = population ?? domain.timeline, spanOf = (x0, width) => categorySpan({ x: x0, w: width }, grid?.span ?? n, crossesBetween, room), categoryStepFor = (x0, width) => categoryStep(spanOf(x0, width).w, population ? n : grid?.span ?? n, crossesBetween), categoryCentersFor = (x0, width) => cats.map((_, ci) => liveCategoryX(ci, n, crossesBetween, spanOf(x0, width), grid)), dateTicks = options.categoryAxis?.dateTicks, ticked = authoredDateTicks(cats, options, warnings), row = categoryLabelsAndMarks(cats, { count: authoredFootnoteCount(options), warnings }, partialAxisWords(options.strings, options, lineToDateIds(env, domain, text).size > 0));
|
|
2146
2211
|
ticked?.name(row);
|
|
2147
2212
|
let planWith = (x0, width, fonts) => planCategoryRow({
|
|
2148
2213
|
target: options.target,
|
|
@@ -2169,9 +2234,9 @@ function categoryRow(env, domain, text, reserves, frame, valueAxisReserve, warni
|
|
|
2169
2234
|
if (dated) {
|
|
2170
2235
|
warnings.length = warningsBefore;
|
|
2171
2236
|
let months = { ...options, categoryAxis: { ...options.categoryAxis, dateTicks: "months" } };
|
|
2172
|
-
return
|
|
2237
|
+
return categoryNameRow(env, { ...domain, cats: dated, options: months }, text, room, frame, valueAxisReserve, warnings);
|
|
2173
2238
|
}
|
|
2174
|
-
let categoryOverhang = rotatedLeftOverhang(catPlan, categoryCentersFor(categoryPlotX, categoryPlotWidth), 4), categoryRightOverhang = 0;
|
|
2239
|
+
let categoryOverhang = rotatedLeftOverhang(catPlan, categoryCentersFor(categoryPlotX, categoryPlotWidth), 4, categoryPlotWidth), categoryRightOverhang = 0;
|
|
2175
2240
|
if (categoryOverhang > 0 && (categoryPlotX += categoryOverhang, categoryPlotWidth -= categoryOverhang, catPlan = planRow(categoryPlotX, categoryPlotWidth)), domain.isArea && !crossesBetween && catPlan.rotation === 0) {
|
|
2176
2241
|
for (let pass = 0; pass < 3 && n > 0; pass++) {
|
|
2177
2242
|
let left = Math.max(0, catPlan.infos[0].w / 2 + 2 - categoryPlotX), right = Math.max(0, catPlan.infos[n - 1].w / 2 + 2 - (env.size.width - categoryPlotX - categoryPlotWidth));
|
|
@@ -2187,8 +2252,8 @@ function categoryRow(env, domain, text, reserves, frame, valueAxisReserve, warni
|
|
|
2187
2252
|
}
|
|
2188
2253
|
return { catPlan, categoryOverhang, categoryRightOverhang, crossesBetween, intervalTicks: ticked?.ticks ?? void 0 };
|
|
2189
2254
|
}
|
|
2190
|
-
function continuousRow(env, domain, x, text,
|
|
2191
|
-
let plotX = frame.plot.x + valueAxisReserve, span = categorySpan({ x: plotX, w: Math.max(10, frame.plot.w - valueAxisReserve) }, 2, !1,
|
|
2255
|
+
function continuousRow(env, domain, x, text, room, frame, valueAxisReserve, warnings) {
|
|
2256
|
+
let plotX = frame.plot.x + valueAxisReserve, span = categorySpan({ x: plotX, w: Math.max(10, frame.plot.w - valueAxisReserve) }, 2, !1, room), xTicks = planXTicks({
|
|
2192
2257
|
model: x.model,
|
|
2193
2258
|
lo: x.lo,
|
|
2194
2259
|
hi: x.hi,
|
|
@@ -2232,7 +2297,7 @@ function forecastHeaderClear(domain, forecast, xOf, plotRight, measure, font, he
|
|
|
2232
2297
|
});
|
|
2233
2298
|
});
|
|
2234
2299
|
}
|
|
2235
|
-
function gridTopRoom(domain, reserves, text, plotH) {
|
|
2300
|
+
function gridTopRoom(env, domain, reserves, text, plotH, markerExtent) {
|
|
2236
2301
|
if (domain.gridDataHi === void 0) return 0;
|
|
2237
2302
|
let log = domain.options.valueAxis?.log === !0 || domain.options.valueAxis?.log === "y", room = (value, seat) => log ? seatRoom(Math.log10(value), [Math.log10(domain.dLo), Math.log10(domain.dHi)], seat, plotH) : seatRoom(value, [domain.dLo, domain.dHi], seat, plotH), top = 0;
|
|
2238
2303
|
for (let label of reserves.endpoint.endLabels) {
|
|
@@ -2251,13 +2316,15 @@ function gridTopRoom(domain, reserves, text, plotH) {
|
|
|
2251
2316
|
pv: domain.pv,
|
|
2252
2317
|
rowOf: domain.rowOf,
|
|
2253
2318
|
flagged: flaggedPoints(domain),
|
|
2254
|
-
variant: domain.variant
|
|
2319
|
+
variant: domain.variant,
|
|
2320
|
+
cats: domain.cats,
|
|
2321
|
+
pointHighlights: env.pointHighlights
|
|
2255
2322
|
});
|
|
2256
|
-
for (let { series, row, only } of picks)
|
|
2323
|
+
for (let { series, dataIdx, row, only } of picks)
|
|
2257
2324
|
for (let ci of only) {
|
|
2258
2325
|
if (series.vals[ci]?.labelOverride === !1) continue;
|
|
2259
|
-
let value = row[ci], climbs = (row[ci - 1] ?? -1 / 0) > value || (row[ci + 1] ?? -1 / 0) > value;
|
|
2260
|
-
top = Math.max(top, room(value, climbs ? 2 * text.labelH + 9 : text.labelH + 5));
|
|
2326
|
+
let value = row[ci], climbs = (row[ci - 1] ?? -1 / 0) > value || (row[ci + 1] ?? -1 / 0) > value, markerExtra = Math.max(0, (markerExtent?.(series, dataIdx, ci)?.reach ?? 3) - 3);
|
|
2327
|
+
top = Math.max(top, room(value, (climbs ? 2 * text.labelH + 9 : text.labelH + 5) + markerExtra));
|
|
2261
2328
|
}
|
|
2262
2329
|
return top;
|
|
2263
2330
|
}
|
|
@@ -2270,10 +2337,10 @@ function titleSharesForecastRow(title, x, row) {
|
|
|
2270
2337
|
}, legs = row.annList.flatMap((annotation) => annotation.kind === "cagr" ? [at(annotation.from, 0), at(annotation.to, row.cats.length - 1)] : []);
|
|
2271
2338
|
return x + title.width + TITLE_ROW_GAP <= Math.min(minOf(headers), minOf(legs));
|
|
2272
2339
|
}
|
|
2273
|
-
function linePlotArea(env, domain, text, reserves, framed, warnings) {
|
|
2340
|
+
function linePlotArea(env, domain, text, reserves, framed, warnings, markerExtent) {
|
|
2274
2341
|
let { theme, measure, isBump, size } = env, { options, cats, seriesNorm, drawnSeries, phases, dLo, dHi } = domain, { frame } = framed, { annList } = reserves, axis = valueAxisTicks(env, domain), peak = (id) => Math.max(0, maxOf((seriesNorm.find((s) => s.id === id)?.vals ?? []).map((cell) => Math.abs(cell.v ?? 0)))), flatNumerator = options.ratioTier !== void 0 && peak(options.ratioTier.numeratorSeriesId) < peak(options.ratioTier.denominatorSeriesId) / 5, ratioTierPrepared = prepareRatioTier(options.ratioTier, cats, seriesNorm, theme, measure, Math.max(10, frame.plot.w - axis.valueAxisReserve), flatNumerator ? domain.fmt : void 0, options.target, notApplicableGlyph(options.strings), options.locale?.language);
|
|
2275
2342
|
warnings.push(...ratioTierPrepared.warnings);
|
|
2276
|
-
let row = categoryRow(env, domain, text, reserves, frame, axis.valueAxisReserve, warnings), { catPlan, categoryOverhang, categoryRightOverhang, crossesBetween, intervalTicks } = row, xTicks =
|
|
2343
|
+
let row = categoryRow(env, domain, text, reserves, frame, axis.valueAxisReserve, warnings), { catPlan, categoryOverhang, categoryRightOverhang, crossesBetween, intervalTicks, endRoom, sideEndRoom } = row, xTicks = row.xTicks, hasCagr = annList.some((a) => a.kind === "cagr"), hasBracketBand = annList.some((a) => a.kind === "band" && a.style === "bracket"), phaseHeaderHeight = phases ? text.labelH + 8 : 0, forecast = forecastBoundaries(drawnSeries, cats, annList, phases, domain.isStacked), forecastHeaderHeight = forecast.some((boundary) => !boundary.labelled) ? measure(options.strings.forecastHeader, text.secondaryFont).height + 8 : 0, axisTitle = axis.axisShown && !isBump && text.kindSetting("axisTitle") !== !1 ? planValueAxisTitle(valueAxisTitleText(
|
|
2277
2344
|
theme,
|
|
2278
2345
|
options.axisTitles?.primary,
|
|
2279
2346
|
options,
|
|
@@ -2286,7 +2353,7 @@ function linePlotArea(env, domain, text, reserves, framed, warnings) {
|
|
|
2286
2353
|
suggest: `add it to the title, e.g. axisTitles.primary: '${logTitle}, log scale'`,
|
|
2287
2354
|
field: ["options", "axisTitles", "primary"]
|
|
2288
2355
|
});
|
|
2289
|
-
let plotX = frame.plot.x + (axis.axisShown || axis.disclosedTicks ? axis.valueAxisReserve : 0) + categoryOverhang, plotW = Math.max(10, frame.plot.w - (axis.axisShown || axis.disclosedTicks ? axis.valueAxisReserve : 0) - categoryOverhang - categoryRightOverhang), n = cats.length, grid = domain.population ?? domain.timeline, span = categorySpan({ x: plotX, w: plotW }, grid?.span ?? n, crossesBetween,
|
|
2356
|
+
let plotX = frame.plot.x + (axis.axisShown || axis.disclosedTicks ? axis.valueAxisReserve : 0) + categoryOverhang, plotW = Math.max(10, frame.plot.w - (axis.axisShown || axis.disclosedTicks ? axis.valueAxisReserve : 0) - categoryOverhang - categoryRightOverhang), n = cats.length, grid = domain.population ?? domain.timeline, span = categorySpan({ x: plotX, w: plotW }, grid?.span ?? n, crossesBetween, endRoom), xOf = (ci) => domain.timeline && !domain.population || domain.x ? round2(liveCategoryX(ci, n, crossesBetween, span, grid)) : liveCategoryX(ci, n, crossesBetween, span, grid), top = domain.isStacked && domain.labelModes.values !== "none" ? drawnSeries[drawnSeries.length - 1] : void 0, topLast = top ? domain.lastIdxOf.get(top.id) ?? n - 1 : n - 1, topFirst = top ? Math.max(0, domain.pv[domain.rowOf.get(top)].findIndex((v) => v != null)) : 0, valueCats = domain.labelModes.values === "last" ? [topLast] : domain.labelModes.values === "ends" ? [topFirst, topLast] : cats.map((_, ci) => ci), estPlotH = frame.plot.h - catPlan.rowHeight - 8 - (8 + forecastHeaderHeight + phaseHeaderHeight + (hasCagr ? 30 : 0) + (hasBracketBand ? 30 : 0)), topValueRow = top !== void 0 && valueCats.some((ci) => {
|
|
2290
2357
|
let value = domain.pv[domain.rowOf.get(top)][ci], total = drawnSeries.reduce((sum, series) => sum + Math.abs(domain.pv[domain.rowOf.get(series)][ci] ?? 0), 0);
|
|
2291
2358
|
return value == null || total <= 0 || Math.abs(value) / total >= 0.15 ? !1 : !(dHi > dLo) || Math.abs(value) / (dHi - dLo) * estPlotH < text.labelH + 2 + THIN_TOP_AIR;
|
|
2292
2359
|
}) ? text.labelH + 8 : 0, forecastHeaderInPlot = forecastHeaderHeight > 0 && domain.isArea && !domain.isStacked && phaseHeaderHeight === 0 && !hasCagr && !hasBracketBand && topValueRow === 0 && dHi > dLo && forecastHeaderClear(
|
|
@@ -2323,13 +2390,14 @@ function linePlotArea(env, domain, text, reserves, framed, warnings) {
|
|
|
2323
2390
|
h: plotHeightAfter(frame, size.height, frame.plot.h - categoryBandHeight - (ratioTierPrepared.tier?.reserveHeight ?? 0) - (headInPlot ? 0 : topPad))
|
|
2324
2391
|
}, endHeight = reserves.endpoint.endLabels.reduce((sum, label) => sum + label.h + 2, 0), minPlot = Math.max(plotFloorRows(options) * text.labelH + 8, endHeight, reserves.referenceBands?.minHeight ?? 0) + (headInPlot && axisTitleBand + headerRows > 0 ? baseTopPad : 0);
|
|
2325
2392
|
frame.frame.plotMinHeight = Math.max(frame.frame.plotMinHeight ?? 0, size.height + (frame.deficit ?? 0) + minPlot - rawHNoBand);
|
|
2326
|
-
let axisTitleY = titleInRow ? frame.plot.y + baseTopPad - measure("0", text.secondaryFont).height / 2 - AXIS_TITLE_GAP - axisTitle.height : frame.plot.y + AXIS_TITLE_TOP, reverse = options.valueAxis?.reverse, legendGap = headInPlot ? frame.plot.y - frame.legend.rect.y - frame.legend.rect.h : 0, tickHead = headInPlot && axis.axisShown ? Math.max(0, measure("0", text.secondaryFont).height / 2 - legendGap) : 0, innerHead = headInPlot ? Math.min(Math.max(tickHead, topPad), plot.h) : 0, topRoom = innerHead + gridTopRoom(domain, reserves, text, plot.h - innerHead), yRange = isBump ? reverse ? [plot.y + plot.h, plot.y] : [plot.y, plot.y + plot.h] : reverse ? [plot.y + innerHead, plot.y + plot.h] : [plot.y + plot.h, plot.y + topRoom];
|
|
2393
|
+
let axisTitleY = titleInRow ? frame.plot.y + baseTopPad - measure("0", text.secondaryFont).height / 2 - AXIS_TITLE_GAP - axisTitle.height : frame.plot.y + AXIS_TITLE_TOP, reverse = options.valueAxis?.reverse, legendGap = headInPlot ? frame.plot.y - frame.legend.rect.y - frame.legend.rect.h : 0, tickHead = headInPlot && axis.axisShown ? Math.max(0, measure("0", text.secondaryFont).height / 2 - legendGap) : 0, innerHead = headInPlot ? Math.min(Math.max(tickHead, topPad), plot.h) : 0, topRoom = innerHead + gridTopRoom(env, domain, reserves, text, plot.h - innerHead, markerExtent), yRange = isBump ? reverse ? [plot.y + plot.h, plot.y] : [plot.y, plot.y + plot.h] : reverse ? [plot.y + innerHead, plot.y + plot.h] : [plot.y + plot.h, plot.y + topRoom];
|
|
2327
2394
|
return {
|
|
2328
2395
|
...framed,
|
|
2329
2396
|
...axis,
|
|
2330
2397
|
ratioTier: ratioTierPrepared.tier,
|
|
2331
2398
|
categoryOverhang,
|
|
2332
2399
|
catPlan,
|
|
2400
|
+
sideEndRoom,
|
|
2333
2401
|
...intervalTicks && showCategoryTickRow ? { intervalTicks } : {},
|
|
2334
2402
|
showCategoryTickRow,
|
|
2335
2403
|
categoryTickReserve,
|
|
@@ -2380,6 +2448,21 @@ function settleLineLabels(env, area, scene, plan, solved, occupied, warnings) {
|
|
|
2380
2448
|
let ratioTierResult = plan.ratioTierRequestState ? finalizeRatioTier(plan.ratioTierRequestState, solved.placed, occupied, env.theme, env.measure) : void 0;
|
|
2381
2449
|
return ratioTierResult && pushAll(scene.nodes, ratioTierResult.nodes), pushAll(warnings, ratioTierSpacingWarnings(area.ratioTier, solved.placed)), ratioTierResult;
|
|
2382
2450
|
}
|
|
2451
|
+
function lineCategoryBandResolver(domain, area) {
|
|
2452
|
+
let { plot, xOf, categoryOrder: catIndex } = area, centred = categoryBandFromCenters(domain.cats.map((c) => c.id), plot, xOf, "x"), splits = area.forecast.map((boundary) => ({ boundary, x: forecastBoundaryX(boundary, xOf, "point") }));
|
|
2453
|
+
return (categoryId) => {
|
|
2454
|
+
if (domain.x && area.xOfValue) {
|
|
2455
|
+
let x = domain.x.model.read(categoryId, "options.annotations");
|
|
2456
|
+
return { x: Math.min(plot.x + plot.w, Math.max(plot.x, area.xOfValue(x))), w: 0 };
|
|
2457
|
+
}
|
|
2458
|
+
let band = centred(categoryId), ci = catIndex.get(categoryId);
|
|
2459
|
+
if (!band || !("x" in band) || ci === void 0) return band;
|
|
2460
|
+
let left = band.x, right = band.x + band.w;
|
|
2461
|
+
for (let { boundary, x } of splits)
|
|
2462
|
+
ci === boundary.categoryIndex && (left = x), ci === boundary.categoryIndex - 1 && (right = x, left = Math.min(left, x));
|
|
2463
|
+
return { x: left, w: right - left };
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2383
2466
|
function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, labelRequests, printedLabels) {
|
|
2384
2467
|
let { options, cats, dataSeries, drawnSeries, refSeries, pv, rowOf, isStacked, cumTop, rebased, absOf, compositionInvalidAt } = domain, { plot, y, xOf, categoryOrder: catIndex } = area, anchorSeries = [...drawnSeries, ...refSeries.filter((s) => scene.nodes.some((node) => node.part === "referenceLine" && node.owner.seriesId === s.id))], anchorError = (ref) => {
|
|
2385
2468
|
let norm = typeof ref == "string" ? { categoryId: ref } : ref, valid = `valid category ids: ${cats.map((c) => c.id).join(", ")}; valid series ids: ${anchorSeries.map((s) => s.id).join(", ")}`;
|
|
@@ -2390,15 +2473,16 @@ function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, la
|
|
|
2390
2473
|
let ci = catIndex.get(norm.categoryId);
|
|
2391
2474
|
if (ci === void 0) return null;
|
|
2392
2475
|
let c = cats[ci];
|
|
2393
|
-
if (isStacked &&
|
|
2476
|
+
if (isStacked && !norm.seriesId && drawnSeries.length > 1) {
|
|
2394
2477
|
if (compositionInvalidAt(ci)) return null;
|
|
2395
|
-
let top = drawnSeries[drawnSeries.length - 1], amounts = drawnSeries.map((s2) => rebased ? pv[rowOf.get(s2)][ci] : absOf(s2, ci)), sharesOnly = drawnSeries.some((s2, i) => amounts[i] === null && s2.vals[ci].v !== null), values = sharesOnly ? drawnSeries.map((s2) => pv[rowOf.get(s2)][ci]) : amounts;
|
|
2478
|
+
let top = drawnSeries[drawnSeries.length - 1], amounts = drawnSeries.map((s2) => rebased ? pv[rowOf.get(s2)][ci] : absOf(s2, ci)), sharesOnly = !rebased && drawnSeries.some((s2, i) => amounts[i] === null && s2.vals[ci].v !== null), values = sharesOnly ? drawnSeries.map((s2) => pv[rowOf.get(s2)][ci]) : amounts;
|
|
2396
2479
|
if (values.every((value3) => value3 === null)) return null;
|
|
2397
2480
|
let value2 = values.reduce((total, value3) => total + (value3 ?? 0), 0);
|
|
2398
2481
|
return {
|
|
2399
2482
|
x: xOf(ci),
|
|
2400
2483
|
y: y(cumTop[dataSeries.indexOf(top)][ci]),
|
|
2401
2484
|
value: value2,
|
|
2485
|
+
...noTotal(!0, !domain.incompleteStack.some((k) => k.id === c.id)),
|
|
2402
2486
|
...sharesOnly ? { pointValueText: domain.valueSpec.forSeries(top, top.vals[ci]?.format)(value2), format: top.format } : { format: rebased ? void 0 : top.format },
|
|
2403
2487
|
date: c.date,
|
|
2404
2488
|
label: c.label ?? c.id,
|
|
@@ -2410,7 +2494,7 @@ function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, la
|
|
|
2410
2494
|
if (!s) return null;
|
|
2411
2495
|
let di = dataSeries.indexOf(s), v = pv[rowOf.get(s)][ci];
|
|
2412
2496
|
if (v === null) return null;
|
|
2413
|
-
let py = isStacked && di >= 0 ? y(cumTop[di][ci]) : y(v), value = rebased ? v : absOf(s, ci) ?? v;
|
|
2497
|
+
let py = isStacked && di >= 0 ? y(cumTop[di][ci]) : y(v), value = rebased ? v : absOf(s, ci) ?? v, markerRadius = scene.marks.series.find((entry) => entry.seriesId === s.id)?.points.find((point) => point.categoryId === c.id)?.markerRadius;
|
|
2414
2498
|
return {
|
|
2415
2499
|
x: xOf(ci),
|
|
2416
2500
|
y: py,
|
|
@@ -2423,20 +2507,10 @@ function annotateLine(env, domain, area, reserves, scene, occupied, solveCtx, la
|
|
|
2423
2507
|
// A category anchor reads the first drawn series, so it is named too.
|
|
2424
2508
|
...dataSeries.length > 1 ? { series: { id: s.id, label: s.label } } : {},
|
|
2425
2509
|
lineAnchored: !0,
|
|
2510
|
+
...markerRadius === void 0 ? {} : { markerRadius },
|
|
2426
2511
|
...ci > 0 && pv[rowOf.get(s)].findIndex((value2) => value2 !== null) === ci ? { lineStart: !0 } : {}
|
|
2427
2512
|
};
|
|
2428
|
-
},
|
|
2429
|
-
if (domain.x && area.xOfValue) {
|
|
2430
|
-
let x = domain.x.model.read(categoryId, "options.annotations");
|
|
2431
|
-
return { x: Math.min(plot.x + plot.w, Math.max(plot.x, area.xOfValue(x))), w: 0 };
|
|
2432
|
-
}
|
|
2433
|
-
let band = centred(categoryId), ci = catIndex.get(categoryId);
|
|
2434
|
-
if (!band || !("x" in band) || ci === void 0) return band;
|
|
2435
|
-
let left = band.x, right = band.x + band.w;
|
|
2436
|
-
for (let { boundary, x } of splits)
|
|
2437
|
-
ci === boundary.categoryIndex && (left = x), ci === boundary.categoryIndex - 1 && (right = x, left = Math.min(left, x));
|
|
2438
|
-
return { x: left, w: right - left };
|
|
2439
|
-
}, resolvePeriodSlot = (categoryId) => {
|
|
2513
|
+
}, resolveCategoryBand = lineCategoryBandResolver(domain, area), resolvePeriodSlot = (categoryId) => {
|
|
2440
2514
|
if (!domain.x || !area.xOfValue) return null;
|
|
2441
2515
|
let shown = domain.x.shown, at = shown.indexOf(domain.x.model.read(categoryId, "options.annotations"));
|
|
2442
2516
|
if (at < 0 || shown.length < 2) return null;
|
|
@@ -2505,7 +2579,7 @@ function lineStandings(env, domain, text) {
|
|
|
2505
2579
|
let row = bumpDerived?.ranks[id] ?? [], at = -1;
|
|
2506
2580
|
return row.forEach((rank, i) => {
|
|
2507
2581
|
rank !== null && (at = i);
|
|
2508
|
-
}), at === -1 ?
|
|
2582
|
+
}), at === -1 ? chartString2(domain.options, "noPeriod") : cats[at].label ?? cats[at].id;
|
|
2509
2583
|
}, bumpExitedDesc = bumpExited.length > 0 ? chartString2(domain.options, "bumpExitedDesc", { v1: cats[finalCi].label ?? cats[finalCi].id, v2: bumpExited.map(
|
|
2510
2584
|
(entry) => chartString2(domain.options, "bumpLastRankDesc", { v1: entry.s.label, v2: lastRankedLabel(entry.s.id), v3: endpoints[entry.s.id].value })
|
|
2511
2585
|
).join(", ") }) : "";
|
|
@@ -2605,6 +2679,11 @@ function assembleLineGeometry(input) {
|
|
|
2605
2679
|
let index = drawnSeries.findIndex((s) => s.id === focusSeriesOf(label));
|
|
2606
2680
|
label.ink = seriesTextPaint(input.seriesPaint(drawnSeries[index], index)), label.font = { ...label.font ?? text.labelFont, weight: emphasisWeight(env.theme) };
|
|
2607
2681
|
}
|
|
2682
|
+
for (let label of allLabels) {
|
|
2683
|
+
if (label.kind !== "point" || label.owner.categoryId === void 0 || !env.pointHighlights.has(label.owner.categoryId)) continue;
|
|
2684
|
+
let index = drawnSeries.findIndex((series) => series.id === label.owner.seriesId), ci = cats.findIndex((category) => category.id === label.owner.categoryId);
|
|
2685
|
+
index >= 0 && ci >= 0 && (label.ink = seriesTextPaint(input.pointPaint(drawnSeries[index], index, ci)));
|
|
2686
|
+
}
|
|
2608
2687
|
let backdrop = lineFocus || bumpStoryNames ? secondaryFont(env.theme) : void 0;
|
|
2609
2688
|
if (backdrop) for (let label of allLabels) {
|
|
2610
2689
|
if (label.kind !== "series" && label.kind !== "point" || shared.has(label.id)) continue;
|
|
@@ -2675,8 +2754,8 @@ function assembleLineGeometry(input) {
|
|
|
2675
2754
|
labelId: plan.catLabelsShown && !area.xTicks ? `category:${c.id}` : void 0
|
|
2676
2755
|
}))
|
|
2677
2756
|
});
|
|
2678
|
-
let variantName = isBump ? chartString2(domain.options, "bumpVariant") : variant === "line" ? chartString2(domain.options, "lineName") : variant === "area" ? chartString2(domain.options, "areaName2") : variant === "stacked-area" ? chartString2(domain.options, "stackedArea") : chartString2(domain.options, "percentArea"), bandLevels = (input.reserves.referenceBands?.entries ?? []).flatMap((entry) => [entry.low, entry.high]), bandFmt = variant === "stacked100-area" ? (v) => formatAutomaticPercent(v, autoDecimals(v), !1, domain.options.locale?.language) : area.axisTickSpec ? tickFormatter(area.axisTickSpec, bandLevels) : area.axisFmt, a11yDesc = lineA11yDesc(env, domain, area, marks, variantName, text) + referenceBandsA11y(input.reserves.referenceBands, bandFmt, domain.options) + (usesEndLabelKey(options) ? chartString2(domain.options, "lineEndKeyDesc") : "");
|
|
2679
|
-
return {
|
|
2757
|
+
let variantName = isBump ? chartString2(domain.options, "bumpVariant") : variant === "line" ? chartString2(domain.options, "lineName") : variant === "area" ? chartString2(domain.options, "areaName2") : variant === "stacked-area" ? chartString2(domain.options, "stackedArea") : chartString2(domain.options, "percentArea"), bandLevels = (input.reserves.referenceBands?.entries ?? []).flatMap((entry) => [entry.low, entry.high]), bandFmt = variant === "stacked100-area" ? (v) => formatAutomaticPercent(v, autoDecimals(v), !1, domain.options.locale?.language) : area.axisTickSpec ? tickFormatter(area.axisTickSpec, bandLevels) : area.axisFmt, a11yDesc = lineA11yDesc(env, domain, area, marks, variantName, text) + referenceBandsA11y(input.reserves.referenceBands, bandFmt, domain.options) + (usesEndLabelKey(options) ? chartString2(domain.options, "lineEndKeyDesc") : ""), keyed = new Set(area.frame.legend?.items.map((item) => item.id));
|
|
2758
|
+
return withUnprintedClaims({
|
|
2680
2759
|
type: "line",
|
|
2681
2760
|
size: env.size,
|
|
2682
2761
|
plot,
|
|
@@ -2704,7 +2783,9 @@ function assembleLineGeometry(input) {
|
|
|
2704
2783
|
...marks.phases ? [structureCount("phases", marks.phases.length, chartString2(domain.options, "lifecyclePhasesCount", { v1: marks.phases.length }))] : [],
|
|
2705
2784
|
...domain.bumpDerived?.ties.length ? [structureCount("groups", domain.bumpDerived.ties.length, chartString2(domain.options, "tiedGroupsCount", { v1: domain.bumpDerived.ties.length, v2: domain.bumpDerived.ties.length === 1 ? "" : "s" }))] : []
|
|
2706
2785
|
],
|
|
2707
|
-
desc: a11yDesc
|
|
2786
|
+
desc: a11yDesc,
|
|
2787
|
+
// A compact card below its plot floor leaves the rebase note off the page; the notes list keeps it.
|
|
2788
|
+
...domain.rebaseCompact ? { compactNotes: [rebaseNotes(domain.rebaseSuppressed, options).join(" ")] } : {}
|
|
2708
2789
|
},
|
|
2709
2790
|
warnings,
|
|
2710
2791
|
paintWarningRules: scene.paintWarningRules,
|
|
@@ -2712,7 +2793,7 @@ function assembleLineGeometry(input) {
|
|
|
2712
2793
|
occupied: input.occupied.snapshot(),
|
|
2713
2794
|
decisions: [...solved.decisions, ...annResult.decisions]
|
|
2714
2795
|
}
|
|
2715
|
-
};
|
|
2796
|
+
}, domain.trends.flatMap((fit) => [`line:trend:${fit.id}:intercept`, ...keyed.has(`trend:${fit.id}`) ? [] : [`line:trend:${fit.id}:slope`, `line:trend:${fit.id}:r2`]]));
|
|
2716
2797
|
}
|
|
2717
2798
|
function firstLastFallback(domain, requests, solved, warnings) {
|
|
2718
2799
|
if (domain.labelModes.values !== "extremes") return;
|
|
@@ -2806,7 +2887,16 @@ function layoutLinePass(data, options = {}) {
|
|
|
2806
2887
|
suggest: "shorten the series labels or give the chart more room. To use a key, set seriesLabels: 'none' and legend: 'top'; point values can still need more room.",
|
|
2807
2888
|
field: ["options", "legend"]
|
|
2808
2889
|
});
|
|
2809
|
-
let env = resolveLineEnv(options, warnings), domain = resolveLineDomain(data, options, env, warnings)
|
|
2890
|
+
let env = resolveLineEnv(options, warnings), domain = resolveLineDomain(data, options, env, warnings);
|
|
2891
|
+
if (domain.variant === "line" && !env.isBump && !domain.fan && domain.dataSeries.length === 1) {
|
|
2892
|
+
let row = domain.pv[domain.rowOf.get(domain.dataSeries[0])];
|
|
2893
|
+
domain.cats.forEach((category, ci) => {
|
|
2894
|
+
row[ci] !== null && env.highlights.has(category.id) && !domain.seriesNorm.some((series) => series.id === category.id) && env.pointHighlights.add(category.id);
|
|
2895
|
+
});
|
|
2896
|
+
}
|
|
2897
|
+
for (let id of env.highlights) domain.drawnSeries.some((series) => series.id === id) || env.highlights.delete(id);
|
|
2898
|
+
env.anyHighlight = env.highlights.size > 0;
|
|
2899
|
+
let paints = linePaints(env, domain, warnings), text = lineText(env, domain);
|
|
2810
2900
|
if (domain.fan && domain.x?.range?.cut.hi && !env.isBump && !usesEndLabelKey(options) && domain.labelModes.values !== "none")
|
|
2811
2901
|
return layoutLinePass(data, { ...withoutInlineFallback(options), [END_LABEL_KEY]: "range" });
|
|
2812
2902
|
let reserves = lineReserves(env, domain, paints, text, warnings);
|
|
@@ -2825,11 +2915,11 @@ function layoutLinePass(data, options = {}) {
|
|
|
2825
2915
|
compact: options.mode === "compact",
|
|
2826
2916
|
solve: (key, w) => ({ ...solveLineFrame(env, domain, paints, text, held, w, key), key }),
|
|
2827
2917
|
area: (framed2, w) => {
|
|
2828
|
-
let count = w.length, area2 = linePlotArea(env, domain, text, held, framed2, w);
|
|
2918
|
+
let count = w.length, area2 = linePlotArea(env, domain, text, held, framed2, w, paints.markerExtent);
|
|
2829
2919
|
if (options.mode !== "compact" || !domain.rebaseSuppressed.length || domain.rebaseCompact || area2.forecastPlot.h >= 80) return area2;
|
|
2830
2920
|
domain.rebaseCompact = !0, w.length = count;
|
|
2831
2921
|
let next = solveLineFrame(env, domain, paints, text, held, w, framed2.key);
|
|
2832
|
-
return Object.assign(framed2, next), linePlotArea(env, domain, text, held, framed2, w);
|
|
2922
|
+
return Object.assign(framed2, next), linePlotArea(env, domain, text, held, framed2, w, paints.markerExtent);
|
|
2833
2923
|
},
|
|
2834
2924
|
...domain.x ? { scale: laneScale(domain.x) } : {},
|
|
2835
2925
|
axis: (area2) => laneAxis(area2, area2.plot),
|
|
@@ -2844,7 +2934,10 @@ function layoutLinePass(data, options = {}) {
|
|
|
2844
2934
|
let plan = planLineLabels(env, domain, area, paints, text, reserves, scene, warnings);
|
|
2845
2935
|
if (plan.endpointWiden) return layoutLinePass(data, { ...options, [END_LABEL_WIDE]: !0 });
|
|
2846
2936
|
if (plan.endpointFallback && !usesEndLabelKey(options)) return endNameFallback(data, options, domain, env);
|
|
2847
|
-
anomalyMarks && seatFlaggedValues(plan.labelRequests, domain.anomaly.seriesId, anomalyMarks)
|
|
2937
|
+
if (anomalyMarks && seatFlaggedValues(plan.labelRequests, domain.anomaly.seriesId, anomalyMarks), pointLabelsFollowShape(env, domain) && reserves.annList.some((ann) => ann.kind === "band" && ann.style === "corridor")) {
|
|
2938
|
+
let input = { plot: area.forecastPlot, yScale: area.y, theme, resolveCategoryBand: lineCategoryBandResolver(domain, area) }, edges = reserves.annList.flatMap((ann) => ann.kind === "band" ? corridorEdgeRects(ann, input) : []);
|
|
2939
|
+
for (let request of plan.labelRequests) request.kind === "point" && (request.candidates = request.candidates.filter((candidate) => candidate.overRules !== !1 || !edges.some((edge) => rectsOverlap(candidate.rect, edge, 2))));
|
|
2940
|
+
}
|
|
2848
2941
|
let folded = options[BUMP_FOLDED], hosts = /* @__PURE__ */ new Map();
|
|
2849
2942
|
for (let name of folded ? [...reserves.endpoint.endLabels, ...reserves.startLabels] : []) {
|
|
2850
2943
|
let id = `point:${name.s.id}:${domain.cats[name.ci].id}`;
|
|
@@ -2901,7 +2994,7 @@ function layoutLinePass(data, options = {}) {
|
|
|
2901
2994
|
}
|
|
2902
2995
|
if (!env.isBump && (!domain.isArea || domain.x?.range) && !domain.fan && domain.drawnSeries.length <= 5 && !usesEndLabelKey(options) && options.seriesLabels !== "key" && options.seriesLabels !== "none" && solved.placed.some((label) => label.kind === "point" && label.hidden === "collision" && (label.owner.categoryId === domain.cats[domain.lastIdxOf.get(label.owner.seriesId ?? "") ?? -1]?.id || domain.x?.range && domain.isArea && label.owner.categoryId === domain.cats[0]?.id)))
|
|
2903
2996
|
return layoutLinePass(data, { ...withoutInlineFallback(options), [END_LABEL_KEY]: !0 });
|
|
2904
|
-
keepEndValueOrder(solved.placed, plan.labelRequests, solveCtx.pins), applyValueAxisTitleInk(solved.placed);
|
|
2997
|
+
keepEndValueOrder(solved.placed, plan.labelRequests, solveCtx.pins, solveCtx.labelOffsets), applyValueAxisTitleInk(solved.placed);
|
|
2905
2998
|
for (let label of solved.placed) hosts.has(label.id) && (label.printedIn = hosts.get(label.id));
|
|
2906
2999
|
pushAll(warnings, solved.warnings);
|
|
2907
3000
|
let ratioTierResult = settleLineLabels(env, area, scene, plan, solved, occupied, warnings);
|
|
@@ -2933,7 +3026,8 @@ function layoutLinePass(data, options = {}) {
|
|
|
2933
3026
|
warnings,
|
|
2934
3027
|
lane,
|
|
2935
3028
|
areaFill: paints.areaFill,
|
|
2936
|
-
seriesPaint: paints.keyPaint
|
|
3029
|
+
seriesPaint: paints.keyPaint,
|
|
3030
|
+
pointPaint: paints.point
|
|
2937
3031
|
});
|
|
2938
3032
|
if (annResult.gapBracketNeed > 0 && Object.assign(geometry, { [GAP_BRACKET_RESERVE]: annResult.gapBracketNeed }), annResult.gapBracketHidden.length > 0 && Object.assign(geometry, { [GAP_BRACKET_REFUSED]: annResult.gapBracketHidden }), annResult.bandNeed > 0 && Object.assign(geometry, { [BAND_PAD]: annResult.bandNeed }), options.variant === "bump") {
|
|
2939
3033
|
let tie = geometry.labels.find((label) => label.id.startsWith("tieLabel:") && label.hidden === "collision");
|
|
@@ -2942,12 +3036,19 @@ function layoutLinePass(data, options = {}) {
|
|
|
2942
3036
|
Object.assign(geometry, { [BAND_PAD]: Math.max(geometry[BAND_PAD] ?? 0, need) });
|
|
2943
3037
|
}
|
|
2944
3038
|
}
|
|
3039
|
+
if (area.sideEndRoom) {
|
|
3040
|
+
let noted = options[NOTED_LABELS], visible = (label) => label.hidden === void 0 && !noted?.has(label.id);
|
|
3041
|
+
if (geometry.labels.some((label) => !visible(label))) {
|
|
3042
|
+
let centred = layoutLinePass(data, { ...options, [POINT_LABEL_CENTERED_ROOM]: !0 }), printed = new Map(geometry.labels.filter(visible).map((label) => [label.id, label.text]));
|
|
3043
|
+
if (!centred.labels.filter(visible).every((label) => printed.get(label.id) === label.text)) return centred;
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
2945
3046
|
return geometry;
|
|
2946
3047
|
}
|
|
2947
|
-
function keepEndValueOrder(placed, requests, pins) {
|
|
3048
|
+
function keepEndValueOrder(placed, requests, pins, offsets) {
|
|
2948
3049
|
let index = new Map(requests.map((request, i) => [request.id, i])), anchorOf = (label) => requests[index.get(label.id)]?.candidates.find((candidate) => candidate.slot === label.slot)?.leaderFrom ?? { x: label.rect.x - 7, y: label.rect.y + label.rect.h / 2 }, groups = /* @__PURE__ */ new Map();
|
|
2949
3050
|
for (let label of placed)
|
|
2950
|
-
label.kind !== "point" || label.hidden !== void 0 || !index.has(label.id) || pins[label.id] !== void 0 || requests[index.get(label.id)]?.pinnedSlot !== void 0 || !(label.slot === "right" || label.slot.startsWith("rightStep")) || groups.set(label.owner.categoryId, [...groups.get(label.owner.categoryId) ?? [], label]);
|
|
3051
|
+
label.kind !== "point" || label.hidden !== void 0 || !index.has(label.id) || pins[label.id] !== void 0 || offsets?.[label.id] !== void 0 || requests[index.get(label.id)]?.pinnedSlot !== void 0 || !(label.slot === "right" || label.slot.startsWith("rightStep")) || groups.set(label.owner.categoryId, [...groups.get(label.owner.categoryId) ?? [], label]);
|
|
2951
3052
|
for (let group of groups.values()) {
|
|
2952
3053
|
if (group.length < 2) continue;
|
|
2953
3054
|
let anchors = new Map(group.map((label) => [label, anchorOf(label)])), seats = group.map((label) => ({ x: label.rect.x, y: label.rect.y, slot: label.slot })).sort((a, b) => a.y - b.y);
|
|
@@ -2978,7 +3079,7 @@ var lineCore = {
|
|
|
2978
3079
|
// Without options (schema normalisation) data.x stays as authored; the request and the layout lower it.
|
|
2979
3080
|
prepare: (data, options) => (options && validateLineLogSource(options, data), prepareFractionData(options ? lowerLineX(data, options) : data)),
|
|
2980
3081
|
defaults: { variant: "line" },
|
|
2981
|
-
annotationKinds: ["cagr", "diff", "delta", "note", "callout", "valueLine", "indicator100", "abs", "event", "band"]
|
|
3082
|
+
annotationKinds: ["cagr", "diff", "delta", "note", "callout", "valueLine", "indicator100", "abs", "event", "band", "text", "line", "arrow", "box"]
|
|
2982
3083
|
};
|
|
2983
3084
|
|
|
2984
3085
|
export {
|