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
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
fitLogTicks,
|
|
4
4
|
olsFit,
|
|
5
5
|
olsMoments
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2IRMGCYE.js";
|
|
7
7
|
import {
|
|
8
8
|
preparePolyline
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OZA7HA6L.js";
|
|
10
10
|
import {
|
|
11
11
|
INTERVAL_TICK
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GB3RZYTK.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_OTHERS_SHADE
|
|
15
15
|
} from "./chunk-RQ5DNYLG.js";
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
} from "./chunk-EKQK5D6G.js";
|
|
19
19
|
import {
|
|
20
20
|
warnSliverLabels
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TKH655ON.js";
|
|
22
22
|
import {
|
|
23
23
|
gapMarkerNode
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AICO24HJ.js";
|
|
25
25
|
import {
|
|
26
26
|
chartString as chartString2,
|
|
27
27
|
localeStrings,
|
|
28
28
|
planNearZeroTails
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HAG3K6PQ.js";
|
|
30
30
|
import {
|
|
31
31
|
categoryBandFromCenters
|
|
32
32
|
} from "./chunk-CDZHNLO6.js";
|
|
33
33
|
import {
|
|
34
34
|
trendTimeUnit
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-54YO56IK.js";
|
|
36
36
|
import {
|
|
37
37
|
categoryLineAlign,
|
|
38
38
|
dayUnit,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
valueAxisTitleRequest,
|
|
47
47
|
warnSpreadOverflow,
|
|
48
48
|
yearRowRequests
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-GNMB72V7.js";
|
|
50
50
|
import {
|
|
51
51
|
AREA_FILL_PART,
|
|
52
52
|
LAST_RESORT_PENALTY,
|
|
@@ -54,26 +54,22 @@ import {
|
|
|
54
54
|
SWATCH_RESERVE,
|
|
55
55
|
adjacentSeriesWarnings,
|
|
56
56
|
composedTextRole,
|
|
57
|
-
createOccupiedIndex,
|
|
58
|
-
defaultAnnotationId,
|
|
59
57
|
fitText,
|
|
60
|
-
inflate,
|
|
61
58
|
othersShadeUnavailableWarnings,
|
|
62
59
|
partialKeyForced,
|
|
63
|
-
polylineYAt,
|
|
64
60
|
resolvePaintWarnings,
|
|
65
61
|
retainAdjacentWarningRule,
|
|
66
|
-
round2,
|
|
67
62
|
saysToDate,
|
|
68
|
-
segmentHitsRect,
|
|
69
|
-
sideAwayFrom,
|
|
70
63
|
toDateFits,
|
|
71
64
|
toDateLabel,
|
|
72
65
|
unitPrinted
|
|
73
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-4OJF6DXL.js";
|
|
74
67
|
import {
|
|
75
68
|
disclosureNote
|
|
76
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DZYTXZNS.js";
|
|
70
|
+
import {
|
|
71
|
+
defaultAnnotationId
|
|
72
|
+
} from "./chunk-F2ET5ZTT.js";
|
|
77
73
|
import {
|
|
78
74
|
emptyIdRecord
|
|
79
75
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -84,7 +80,7 @@ import {
|
|
|
84
80
|
seriesRasterFormatter,
|
|
85
81
|
trendRateFormatter,
|
|
86
82
|
withUnit
|
|
87
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
88
84
|
import {
|
|
89
85
|
NOT_AVAILABLE,
|
|
90
86
|
NOT_MEANINGFUL,
|
|
@@ -102,11 +98,14 @@ import {
|
|
|
102
98
|
HATCH_STRENGTH_DEFAULT,
|
|
103
99
|
LABEL_PLATE_RADIUS,
|
|
104
100
|
bumpStoryPaints,
|
|
101
|
+
colorRolePaints,
|
|
102
|
+
createOccupiedIndex,
|
|
105
103
|
dashToken,
|
|
106
104
|
effectiveFill,
|
|
107
105
|
emphasisWeight,
|
|
108
106
|
fanPaintSteps,
|
|
109
107
|
hatchGapFactor,
|
|
108
|
+
inflate,
|
|
110
109
|
isOthersFill,
|
|
111
110
|
labelPlate,
|
|
112
111
|
labelsOffKeepsNames,
|
|
@@ -117,18 +116,22 @@ import {
|
|
|
117
116
|
orderedRampPaint,
|
|
118
117
|
othersSeparation,
|
|
119
118
|
paintColor,
|
|
119
|
+
polylineYAt,
|
|
120
120
|
rampSlots,
|
|
121
121
|
readerFloorPx,
|
|
122
|
+
round2,
|
|
122
123
|
secondaryFont,
|
|
124
|
+
segmentHitsRect,
|
|
123
125
|
separatedWashPaint,
|
|
124
126
|
seriesPaint,
|
|
127
|
+
sideAwayFrom,
|
|
125
128
|
strokeToken,
|
|
126
129
|
textScaleOf
|
|
127
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-TX5FSNAU.js";
|
|
128
131
|
import {
|
|
129
132
|
PALETTE_NORMAL_FLOOR,
|
|
130
133
|
palettePerceptualDistance
|
|
131
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-BQBD6Q5J.js";
|
|
132
135
|
import {
|
|
133
136
|
cubicPoint,
|
|
134
137
|
curvePathFromSegments,
|
|
@@ -139,12 +142,12 @@ import {
|
|
|
139
142
|
monotoneYAt,
|
|
140
143
|
splitCurve,
|
|
141
144
|
splitCurveSegmentsAtX
|
|
142
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-6IUK6PAH.js";
|
|
143
146
|
import {
|
|
144
147
|
DEFAULT_TARGET,
|
|
145
148
|
NormalizeError,
|
|
146
149
|
resolveSubtitle
|
|
147
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-RJICOOB3.js";
|
|
148
151
|
import {
|
|
149
152
|
maxOf,
|
|
150
153
|
minOf,
|
|
@@ -179,7 +182,7 @@ function trendTimeline(cats, source = cats) {
|
|
|
179
182
|
function fitLineTrends(domain, warnings) {
|
|
180
183
|
if (!domain.options.trend) return [];
|
|
181
184
|
if (domain.isStacked || domain.bumpDerived)
|
|
182
|
-
throw new NormalizeError("trend-unsupported", "options.trend", "trend needs variant 'line' or 'area'; a stack or rank is not a series value");
|
|
185
|
+
throw new NormalizeError("trend-unsupported", "options.trend", "trend needs variant 'line' or 'area'; a stack or rank is not a series value", void 0, void 0, ["options", "trend"]);
|
|
183
186
|
let population = domain.population, lo = population ? population.indexes[0] : 0, hi = population ? population.indexes[population.indexes.length - 1] : domain.cats.length - 1, cats = population ? population.categories.slice(lo, hi + 1) : domain.cats, rows = population ? population.plotted : domain.pv, continuous = domain.x ? continuousTrend(domain.x, lo, hi) : void 0, unit = continuous?.unit ?? trendUnit(cats), xs = continuous?.xs ?? (unit === "period" ? cats.map((_, i) => population ? i : domain.timeline?.positions[i] ?? i) : trendXs(cats, unit));
|
|
184
187
|
return domain.drawnSeries.flatMap((s) => {
|
|
185
188
|
let row = rows[domain.rowOf.get(s)], points = xs.flatMap((x, i) => row[lo + i] === null ? [] : [{ x, y: row[lo + i] }]), moments = olsMoments(points), fit = moments.n >= 3 ? olsFit(moments) : null;
|
|
@@ -326,7 +329,7 @@ function seatValuesOnGround(requests, grounds, pad, cssOf, others = !0, kinds =
|
|
|
326
329
|
}
|
|
327
330
|
|
|
328
331
|
// src/core/charts/line/labels.ts
|
|
329
|
-
var BUMP_NAME_MAX_FRACTION = 0.18, BUMP_NAME_MAX_LINES = 2, ENDPOINT_LEADER_CLEARANCE = 4, ENDPOINT_LEADER_MIN_DY = 3, END_LABEL_MAX_DISPLACEMENT_LINES = 3, SLIVER_MIN_H = 10, END_NAME_GAP = 16, NAME_PRIORITY = PRIORITY.endpoint + 1, END_LABEL_KEY = /* @__PURE__ */ Symbol("lineEndLabelKey"), END_LABEL_WIDE = /* @__PURE__ */ Symbol("lineEndLabelWide"), INLINE_FALLBACK = /* @__PURE__ */ Symbol("lineInlineFallback"), usesInlineFallback = (options) => options[INLINE_FALLBACK] === !0, usesEndLabelKey = (options) => options[END_LABEL_KEY] !== void 0, fanEdgeInKey = (domain) => domain.fan !== null && domain.x?.range?.cut.hi === !0 && usesEndLabelKey(domain.options), usesWideEndLabels = (options) => options[END_LABEL_WIDE] === !0;
|
|
332
|
+
var BUMP_NAME_MAX_FRACTION = 0.18, BUMP_NAME_MAX_LINES = 2, ENDPOINT_LEADER_CLEARANCE = 4, ENDPOINT_LEADER_MIN_DY = 3, END_LABEL_MAX_DISPLACEMENT_LINES = 3, SLIVER_MIN_H = 10, END_NAME_GAP = 16, NAME_PRIORITY = PRIORITY.endpoint + 1, END_LABEL_KEY = /* @__PURE__ */ Symbol("lineEndLabelKey"), END_LABEL_WIDE = /* @__PURE__ */ Symbol("lineEndLabelWide"), POINT_LABEL_CENTERED_ROOM = /* @__PURE__ */ Symbol("pointLabelCenteredRoom"), INLINE_FALLBACK = /* @__PURE__ */ Symbol("lineInlineFallback"), usesInlineFallback = (options) => options[INLINE_FALLBACK] === !0, usesEndLabelKey = (options) => options[END_LABEL_KEY] !== void 0, fanEdgeInKey = (domain) => domain.fan !== null && domain.x?.range?.cut.hi === !0 && usesEndLabelKey(domain.options), usesWideEndLabels = (options) => options[END_LABEL_WIDE] === !0;
|
|
330
333
|
function lineFocusFont(env, domain, font, weight) {
|
|
331
334
|
return !env.isBump && env.anyHighlight && domain.variant === "line" && !domain.isArea && domain.options.highlightMode !== "fade" ? { ...font, weight } : void 0;
|
|
332
335
|
}
|
|
@@ -652,8 +655,8 @@ function pointLabelSeeds(input) {
|
|
|
652
655
|
source,
|
|
653
656
|
categoryId: category.id
|
|
654
657
|
})), !text && cell.labelOverride !== !1) continue;
|
|
655
|
-
let endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
|
|
656
|
-
seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme });
|
|
658
|
+
let endpoint = ci === drawn[0] || ci === last, extreme = value === min || value === max, highlighted = input.highlights.has(series.id) || input.highlights.has(category.id) || input.pointHighlights?.has(category.id), priority = cell.priority ?? (endpoint ? PRIORITY.endpoint : extreme ? PRIORITY.extreme : PRIORITY.interior + Math.min(99, Math.abs(value))) + (highlighted ? PRIORITY.highlightBonus : 0);
|
|
659
|
+
seeds.push({ ci, text, w: input.measure(text || "0", input.labelFont).width, priority, suppressed: cell.labelOverride === !1, extreme, highlighted: highlighted === !0 });
|
|
657
660
|
}
|
|
658
661
|
return seeds;
|
|
659
662
|
}
|
|
@@ -726,10 +729,14 @@ function pushPointRequests(input) {
|
|
|
726
729
|
return;
|
|
727
730
|
}
|
|
728
731
|
} else {
|
|
729
|
-
let away = input.bump ? "above" : sideAwayFrom({ x: input.xOf(candidate.ci), y: candidate.py }, input.others), order = away === "below" ? ["below", "above", "belowShifted", "aboveShifted"] : away === "above" ? ["above", "below", "aboveShifted", "belowShifted"] : ["above", "aboveShifted", "below", "belowShifted"], px = input.xOf(candidate.ci),
|
|
732
|
+
let away = input.bump ? "above" : sideAwayFrom({ x: input.xOf(candidate.ci), y: candidate.py }, input.others), order = away === "below" ? ["below", "above", "belowShifted", "aboveShifted"] : away === "above" ? ["above", "below", "aboveShifted", "belowShifted"] : ["above", "aboveShifted", "below", "belowShifted"], px = input.xOf(candidate.ci), markerExtra = Math.max(0, (input.markerRadiusOf?.(candidate.ci) ?? 3) - 3), clearMarker = (slot, rect) => markerExtra === 0 ? rect : {
|
|
733
|
+
...rect,
|
|
734
|
+
x: rect.x + (slot.startsWith("left") ? -markerExtra : slot.startsWith("right") ? markerExtra : 0),
|
|
735
|
+
y: rect.y + (slot.startsWith("above") || slot === "forecastAboveEdge" ? -markerExtra : slot.startsWith("below") || slot === "forecastBelowEdge" ? markerExtra : 0)
|
|
736
|
+
}, at = { x: px, y: candidate.py, w: 0, h: 0 }, rivals = otherQueries.filter((stroke) => stroke.distance(at) > 1e-6), last = candidate.ci === lastDrawn, lateFirst = candidate.ci === firstDrawn && firstDrawn > 0 && !input.bump, rescue = [
|
|
730
737
|
// The first focus value has the same level seat as the last value,
|
|
731
738
|
// mirrored left. A steep rise can block every seat over the point.
|
|
732
|
-
...candidate.ci === firstDrawn && input.highlighted ? [
|
|
739
|
+
...candidate.ci === firstDrawn && (input.highlighted || input.shapeSide?.get(candidate.ci) === "left") ? [
|
|
733
740
|
{ slot: "left", rect: { x: px - w - 7, y: candidate.py - labelH / 2, w, h: labelH }, penalty: 4 }
|
|
734
741
|
] : [],
|
|
735
742
|
// Use the plot's 8 px axis gutter, with 2 px left clear, when clamping
|
|
@@ -794,7 +801,10 @@ function pushPointRequests(input) {
|
|
|
794
801
|
] : []
|
|
795
802
|
]
|
|
796
803
|
], named = input.bump?.named?.has(`${input.series.id}:${candidate.ci}`) === !0;
|
|
797
|
-
slots = seats.filter((seat) => !last || continuedEnd || Math.max(seat.y - candidate.py, candidate.py - seat.y - labelH, 0) <= labelH).filter((seat) => !((named || input.bump) && seat.slot.startsWith("below"))).filter((seat) => input.fillTo === void 0 || (seat.y + labelH / 2 - candidate.py) * (input.fillTo - candidate.py) <= 0).map((seat) =>
|
|
804
|
+
slots = seats.filter((seat) => !last || continuedEnd || Math.max(seat.y - candidate.py, candidate.py - seat.y - labelH, 0) <= labelH).filter((seat) => !((named || input.bump) && seat.slot.startsWith("below"))).filter((seat) => input.fillTo === void 0 || (seat.y + labelH / 2 - candidate.py) * (input.fillTo - candidate.py) <= 0).map((seat) => {
|
|
805
|
+
let moved = clearMarker(seat.slot, { x: seat.x, y: seat.y, w, h: labelH });
|
|
806
|
+
return { slot: seat.slot, rect: containedRect(bounds, moved.x, moved.y, w, labelH), penalty: seat.penalty ?? (seat.slot.endsWith("Right") ? 1.5 : order.indexOf(seat.slot)) };
|
|
807
|
+
}).concat(rescue.map((seat) => ({ ...seat, rect: clearMarker(seat.slot, seat.rect) }))).sort((a, b) => a.penalty - b.penalty).flatMap((seat) => {
|
|
798
808
|
let { slot, rect, penalty } = seat, leaderFrom = "leaderFrom" in seat ? seat.leaderFrom : void 0;
|
|
799
809
|
if (rect === null) return [];
|
|
800
810
|
if (ownQueries.some((stroke) => stroke.hits(rect, 2))) return [];
|
|
@@ -805,7 +815,9 @@ function pushPointRequests(input) {
|
|
|
805
815
|
return rivals.some((stroke) => stroke.distance(rect) < own) ? [] : [{ slot, rect, penalty }];
|
|
806
816
|
});
|
|
807
817
|
}
|
|
808
|
-
computed && !continuedEnd && (slots = slots.filter((slot) => !slot.leaderFrom && !/Shifted|Raised|Step/.test(slot.slot)))
|
|
818
|
+
computed && !continuedEnd && (slots = slots.filter((slot) => !slot.leaderFrom && !/Shifted|Raised|Step/.test(slot.slot)));
|
|
819
|
+
let preferred = continuedEnd ? void 0 : input.shapeSide?.get(candidate.ci);
|
|
820
|
+
preferred && (slots = [...slots.filter((slot) => slot.slot === preferred).map((slot) => preferred === "left" || preferred === "right" ? { ...slot, overRules: !1 } : slot), ...slots.filter((slot) => slot.slot !== preferred)]), !candidate.suppressed && !rest && !keep[index] && input.lost.thinned.push(name), input.labelRequests.push({
|
|
809
821
|
id: `point:${input.series.id}:${category.id}`,
|
|
810
822
|
kind: "point",
|
|
811
823
|
role: composedTextRole(candidate.text),
|
|
@@ -821,6 +833,7 @@ function pushPointRequests(input) {
|
|
|
821
833
|
...restFields,
|
|
822
834
|
candidates: slots,
|
|
823
835
|
...computed && !input.highlighted && !continuedEnd ? { noLeader: !0 } : {},
|
|
836
|
+
...candidate.highlighted ? { keepWhenDense: !0 } : {},
|
|
824
837
|
// A value over a neighbour's point reads as that point's value.
|
|
825
838
|
...input.isStacked || input.bump ? {} : { anchor: { x: input.xOf(candidate.ci), y: candidate.py }, ...computed ? { ownStrokeClear: !0 } : {} },
|
|
826
839
|
...input.isStacked ? {} : { ownStroke: ownQueries }
|
|
@@ -835,7 +848,7 @@ function pointLabelSelection(input) {
|
|
|
835
848
|
if (drawn.length === 0) return [];
|
|
836
849
|
let first = drawn[0], last = drawn[drawn.length - 1], values = drawn.map((ci) => row[ci]), [min, max] = [minOf(values), maxOf(values)], engine = mode === "all" ? drawn : mode === "extremes" ? drawn.filter((ci) => ci === first || ci === last || row[ci] === min || row[ci] === max) : mode === "ends" ? [first, last] : mode === "last" ? [last] : [], fcStart = mode === "none" || mode === "all" || input.variant === "line" || input.variant === "stacked-area" ? -1 : series.scenario === "FC" ? 0 : series.vals.findIndex((val) => val.scenario === "FC"), lastActual = fcStart > 0 ? lastActualIndex(series, fcStart, !1) : -1, extra = lastActual >= 0 && row[lastActual] !== null && !engine.includes(lastActual) ? lastActual : -1;
|
|
837
850
|
extra >= 0 && engine.push(extra);
|
|
838
|
-
let authored = input.valueLabelsAuthored && series.vals.every((cell) => cell.v === null || cell.labelOverride === !1 || typeof cell.labelOverride == "string") ? [] : drawn.filter((ci) => typeof series.vals[ci]?.labelOverride == "string"), flagged = input.flagged?.seriesId === series.id && pointContent !== null ? drawn.filter((ci) => input.flagged.at.has(ci)) : [], withheld = input.lastWithheld.has(series.id) ? last : -1, keepAuthoredLast = typeof series.vals[last]?.labelOverride == "string" && !input.lastCarried?.has(series.id), only = [.../* @__PURE__ */ new Set([...engine, ...authored, ...flagged])].filter((ci) => (ci !== withheld || keepAuthoredLast) && (ci !== first || !input.firstWithheld?.has(series.id))).sort((a, b) => a - b);
|
|
851
|
+
let authored = input.valueLabelsAuthored && series.vals.every((cell) => cell.v === null || cell.labelOverride === !1 || typeof cell.labelOverride == "string") ? [] : drawn.filter((ci) => typeof series.vals[ci]?.labelOverride == "string"), flagged = input.flagged?.seriesId === series.id && pointContent !== null ? drawn.filter((ci) => input.flagged.at.has(ci)) : [], emphasized = mode !== "none" && input.pointHighlights?.size ? drawn.filter((ci) => input.pointHighlights.has(input.cats[ci].id) && series.vals[ci]?.labelOverride !== !1) : [], withheld = input.lastWithheld.has(series.id) ? last : -1, keepAuthoredLast = typeof series.vals[last]?.labelOverride == "string" && !input.lastCarried?.has(series.id), only = [.../* @__PURE__ */ new Set([...engine, ...authored, ...flagged, ...emphasized])].filter((ci) => (ci !== withheld || keepAuthoredLast) && (ci !== first || !input.firstWithheld?.has(series.id))).sort((a, b) => a - b);
|
|
839
852
|
return only.length > 0 ? [{ series, dataIdx, row, content, only, ...extra >= 0 ? { lastActual: extra } : {} }] : [];
|
|
840
853
|
});
|
|
841
854
|
}
|
|
@@ -843,6 +856,9 @@ function defaultValueContent(variant, seriesValueContent) {
|
|
|
843
856
|
return seriesValueContent ?? (variant === "stacked100-area" ? ["percent"] : ["absolute"]);
|
|
844
857
|
}
|
|
845
858
|
var PLOT_END_AIR = 4;
|
|
859
|
+
function pointLabelsFollowShape(env, domain) {
|
|
860
|
+
return domain.options.pointLabelSide !== "auto" && domain.variant === "line" && !env.isBump && !domain.fan && domain.dataSeries.length === 1;
|
|
861
|
+
}
|
|
846
862
|
function pointLabelEndRoom(input) {
|
|
847
863
|
let room = { left: 0, right: 0 }, last = input.cats.length - 1;
|
|
848
864
|
if (input.isStacked || last < 0) return room;
|
|
@@ -850,9 +866,10 @@ function pointLabelEndRoom(input) {
|
|
|
850
866
|
let categoryIndices = pick.only.filter((ci) => ci === 0 || ci === last);
|
|
851
867
|
for (let seed of pointLabelSeeds({ ...input, series: pick.series, row: pick.row, content: pick.content, categoryIndices })) {
|
|
852
868
|
if (seed.suppressed) continue;
|
|
853
|
-
|
|
869
|
+
let shape = input.shapeSides && pick.row.filter((value) => value !== null).length > 1, sideGap = 7 + Math.max(0, (input.markerExtent?.(pick.series, pick.dataIdx, seed.ci)?.reach ?? 3) - 3);
|
|
870
|
+
seed.ci === 0 && (room.left = Math.max(room.left, (shape ? seed.w + sideGap : seed.w / 2) + PLOT_END_AIR));
|
|
854
871
|
let words = seed.ci === last && input.endToDate?.ids.has(input.cats[last].id) ? toDateLabel(seed.text, input.labelFont, input.endToDate.words, input.endToDate.theme, input.endToDate.measure).size.width : seed.w;
|
|
855
|
-
seed.ci === last && (room.right = Math.max(room.right, words / 2 + PLOT_END_AIR));
|
|
872
|
+
seed.ci === last && (room.right = Math.max(room.right, (shape && input.shapeEnd ? words + sideGap : words / 2) + PLOT_END_AIR));
|
|
856
873
|
}
|
|
857
874
|
}
|
|
858
875
|
return room;
|
|
@@ -870,6 +887,17 @@ function placePointValueLabels(input) {
|
|
|
870
887
|
return [series.id, stroke];
|
|
871
888
|
}));
|
|
872
889
|
for (let { series, dataIdx, row, content, only, lastActual } of pointLabelSelection(input)) {
|
|
890
|
+
let shapeSide = input.shapeSides ? /* @__PURE__ */ new Map() : void 0;
|
|
891
|
+
if (shapeSide) {
|
|
892
|
+
let runs = drawnRuns(row, series.interpolateGaps), first = runs[0]?.[0], last = runs.at(-1)?.at(-1);
|
|
893
|
+
if (first !== void 0 && last !== void 0 && first !== last) {
|
|
894
|
+
shapeSide.set(first, "left"), shapeSide.set(last, "right");
|
|
895
|
+
for (let run of runs) for (let i = 1; i < run.length - 1; i++) {
|
|
896
|
+
let ci = run[i], py = input.y(row[ci]), before = input.y(row[run[i - 1]]), after = input.y(row[run[i + 1]]);
|
|
897
|
+
py < before && py < after ? shapeSide.set(ci, "above") : py > before && py > after && shapeSide.set(ci, "below");
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
873
901
|
let seriesFont = input.focusFont && input.highlights.has(series.id) ? input.focusFont : input.labelFont, candidates = buildPointCandidates({ ...input, labelFont: seriesFont, series, dataIdx, row, content, categoryIndices: only });
|
|
874
902
|
for (let candidate of candidates) {
|
|
875
903
|
let divider = input.dividers.find((split) => split.ci === candidate.ci && Math.abs(split.x - candidate.x) < candidate.w / 2 + 3);
|
|
@@ -882,7 +910,7 @@ function placePointValueLabels(input) {
|
|
|
882
910
|
for (let query of stroke.queries ??= stroke.runs.map(preparePolyline)) otherQueries.push(query);
|
|
883
911
|
}
|
|
884
912
|
let edge = (cum) => drawnStroke(input.cats.map((_, ci) => ({ x: input.xOf(ci), y: input.y(cum[dataIdx][ci]) })), input.interpolationFor(series)), drawn = input.drawnEdges?.get(series.id), bandEdges = input.isStacked ? { top: drawn?.runs.flat() ?? edge(input.cumTop), bottom: drawn?.bottom ?? edge(input.cumBot) } : void 0, namedEnd = input.valueLabels !== "all" && !input.isStacked && !input.bump && (input.endNamed.has(series.id) || input.labelRequests.some((request) => request.kind === "series" && request.owner.seriesId === series.id));
|
|
885
|
-
pushPointRequests({ continued: input.drawnEdges !== void 0, highlighted: input.highlights.has(series.id) && !input.bump && input.variant === "line", regularRow: input.valueLabels === "all" && !input.isStacked, namedEnd, candidates, series, cats: input.cats, isStacked: input.isStacked, variant: input.variant, labelH: input.labelH, step: input.step, density: input.density, plot: input.plot, labelFont: seriesFont, labelRequests: input.labelRequests, ownQueries, others, otherQueries, xOf: input.xOf, besideLast: !input.endNamed.has(series.id), ...bandEdges ? { bandEdges } : {}, ...input.bump ? { bump: input.bump } : {}, topBand: input.isStacked && dataIdx === input.drawnSeries.length - 1, row, ...input.isStacked ? { painted: input.paintedAreaCats.get(series.id) } : {}, ...input.variant === "area" && input.drawnSeries.length > 1 && input.paintedAreaCats.has(series.id) ? { fillTo: input.y(0) } : {}, lost, restHidden: input.isStacked && input.restHidden?.(series) === !0, ...input.toDate ? { toDate: input.toDate } : {} });
|
|
913
|
+
pushPointRequests({ shapeSide, markerRadiusOf: (ci) => input.markerExtent?.(series, dataIdx, ci)?.reach, continued: input.drawnEdges !== void 0, highlighted: input.highlights.has(series.id) && !input.bump && input.variant === "line", regularRow: input.valueLabels === "all" && !input.isStacked, namedEnd, candidates, series, cats: input.cats, isStacked: input.isStacked, variant: input.variant, labelH: input.labelH, step: input.step, density: input.density, plot: input.plot, labelFont: seriesFont, labelRequests: input.labelRequests, ownQueries, others, otherQueries, xOf: input.xOf, besideLast: !input.endNamed.has(series.id), ...bandEdges ? { bandEdges } : {}, ...input.bump ? { bump: input.bump } : {}, topBand: input.isStacked && dataIdx === input.drawnSeries.length - 1, row, ...input.isStacked ? { painted: input.paintedAreaCats.get(series.id) } : {}, ...input.variant === "area" && input.drawnSeries.length > 1 && input.paintedAreaCats.has(series.id) ? { fillTo: input.y(0) } : {}, lost, restHidden: input.isStacked && input.restHidden?.(series) === !0, ...input.toDate ? { toDate: input.toDate } : {} });
|
|
886
914
|
let extra = lastActual === void 0 || typeof series.vals[lastActual]?.labelOverride == "string" ? void 0 : input.labelRequests.find((request) => request.id === `point:${series.id}:${input.cats[lastActual].id}`);
|
|
887
915
|
extra && (extra.quietWhenCrowded = !0, extra.redundant && extra.suppressedAs === "density" && delete extra.suppressedAs);
|
|
888
916
|
}
|
|
@@ -939,8 +967,8 @@ function lineLabelModes(options, variant, drawnSeries) {
|
|
|
939
967
|
var BUMP_FOLDED = /* @__PURE__ */ Symbol("bumpFolded");
|
|
940
968
|
function validateBumpInput(input) {
|
|
941
969
|
let { options, targetsLength, dataSeries, cats } = input;
|
|
942
|
-
if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", "a rank chart needs at least two data-role series \u2014 one entity is a flat line at rank 1, which states nothing about who overtook whom");
|
|
943
|
-
if (cats.length < 2) throw new NormalizeError("bump-two-categories", "categories", "a rank chart needs at least two categories \u2014 crossings are the message and one period has none", "use chart type 'slope' for two points");
|
|
970
|
+
if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", "a rank chart needs at least two data-role series \u2014 one entity is a flat line at rank 1, which states nothing about who overtook whom", void 0, void 0, ["data", "series"]);
|
|
971
|
+
if (cats.length < 2) throw new NormalizeError("bump-two-categories", "categories", "a rank chart needs at least two categories \u2014 crossings are the message and one period has none", "use chart type 'slope' for two points", void 0, ["data", "categories"]);
|
|
944
972
|
let conflicts = [
|
|
945
973
|
["rebase100", !!options.rebase100],
|
|
946
974
|
["ratioTier", options.ratioTier !== void 0],
|
|
@@ -958,7 +986,9 @@ function validateBumpIds(dataSeries) {
|
|
|
958
986
|
"bump-duplicate-series-id",
|
|
959
987
|
"series",
|
|
960
988
|
`series id${duplicateIds.length === 1 ? "" : "s"} ${duplicateIds.map((id) => `'${id}'`).join(", ")} appear more than once \u2014 the ranking receipt is keyed by series id, so two entities under one id cannot both be ranked, drawn or described`,
|
|
961
|
-
"give every ranked entity its own id"
|
|
989
|
+
"give every ranked entity its own id",
|
|
990
|
+
void 0,
|
|
991
|
+
["data", "series"]
|
|
962
992
|
);
|
|
963
993
|
}
|
|
964
994
|
function warnBumpAxis(input) {
|
|
@@ -998,7 +1028,7 @@ function prepareBump(input) {
|
|
|
998
1028
|
for (let series of empty) seriesNorm.splice(seriesNorm.indexOf(series), 1);
|
|
999
1029
|
}
|
|
1000
1030
|
let dataSeries = seriesNorm.filter((series) => series.role !== "reference");
|
|
1001
|
-
if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", `after dropping entities that hold no rank anywhere, ${dataSeries.length} data-role series remain \u2014 a rank chart needs at least two
|
|
1031
|
+
if (dataSeries.length < 2) throw new NormalizeError("bump-two-series", "series", `after dropping entities that hold no rank anywhere, ${dataSeries.length} data-role series remain \u2014 a rank chart needs at least two`, void 0, void 0, ["data", "series"]);
|
|
1002
1032
|
validateBumpIds(dataSeries);
|
|
1003
1033
|
let bridging = dataSeries.filter((series) => series.interpolateGaps);
|
|
1004
1034
|
if (bridging.length > 0) {
|
|
@@ -1057,7 +1087,7 @@ function buildBumpStartLabels(input) {
|
|
|
1057
1087
|
return { startLabels, startReserve: railStartLabels.length > 0 ? maxOf(railStartLabels.map((label) => label.w)) + 14 : 0 };
|
|
1058
1088
|
}
|
|
1059
1089
|
function renderBumpTies(theme, input) {
|
|
1060
|
-
let { bump, marks, nodes, occupied } = input;
|
|
1090
|
+
let { bump, marks, nodes, occupied } = input, words = { locale: { language: input.language } };
|
|
1061
1091
|
if (!bump || bump.ties.length === 0) return;
|
|
1062
1092
|
let radius = 7;
|
|
1063
1093
|
for (let tie of bump.ties) {
|
|
@@ -1072,7 +1102,7 @@ function renderBumpTies(theme, input) {
|
|
|
1072
1102
|
width: strokeToken(theme, "mark"),
|
|
1073
1103
|
owner: { categoryId: tie.categoryId },
|
|
1074
1104
|
part: "tie",
|
|
1075
|
-
display: { value:
|
|
1105
|
+
display: { value: chartString2(words, "bumpRank", { v1: String(tie.rank) }), state: chartString2(words, "bumpTied", { v1: String(tie.seriesIds.length) }) }
|
|
1076
1106
|
}), occupied.claim({ x: point.x - radius, y: point.y - radius, w: radius * 2, h: radius * 2 }, "mark", { categoryId: tie.categoryId });
|
|
1077
1107
|
}
|
|
1078
1108
|
}
|
|
@@ -1602,7 +1632,7 @@ function markBridgedGaps(input, series, dataIdx, geometry, run, runIndex) {
|
|
|
1602
1632
|
input.nodes.push({ t: "path", id: `${id}:erase`, d, stroke: { token: "background" }, width: strokeToken(input.theme, "casing"), owner: { seriesId: series.id }, part: "lineCasing" }), input.nodes.push({ t: "path", id, d, stroke: paint, width, dash: dashToken(input.theme, "reference"), owner: { seriesId: series.id }, part: "gapBridge" });
|
|
1603
1633
|
for (let ci = a.ci + 1; ci < b.ci; ci++) {
|
|
1604
1634
|
let x = input.xOf(ci), t = (x - a.x) / (b.x - a.x), y = segment ? cubicPoint(segment, t).y : geometry.interpolation === "step-after" ? a.y : geometry.interpolation === "step-before" ? b.y : a.y + (b.y - a.y) * t;
|
|
1605
|
-
input.nodes.push(gapMarkerNode(input.theme, { id: `gap:${series.id}:${input.cats[ci].id}`, x, y, ink: paint, owner: { seriesId: series.id, categoryId: input.cats[ci].id } }));
|
|
1635
|
+
input.nodes.push(gapMarkerNode(input.theme, { id: `gap:${series.id}:${input.cats[ci].id}`, x, y, ink: paint, owner: { seriesId: series.id, categoryId: input.cats[ci].id }, language: input.language }));
|
|
1606
1636
|
}
|
|
1607
1637
|
}
|
|
1608
1638
|
}
|
|
@@ -1613,12 +1643,12 @@ function markerDisplay(input, series, row, ci) {
|
|
|
1613
1643
|
...input.bumpPointState(row, ci)
|
|
1614
1644
|
};
|
|
1615
1645
|
}
|
|
1616
|
-
function pushMarkerNode(input, series, dataIdx, row, point, shape, id) {
|
|
1617
|
-
let stroke = series.role === "reference" ? input.refPaintOf(series) : input.
|
|
1618
|
-
shape === "circle" ? input.nodes.push({ t: "circle", id, cx: point.x, cy: point.y, r
|
|
1646
|
+
function pushMarkerNode(input, series, dataIdx, row, point, shape, id, scale = 1) {
|
|
1647
|
+
let stroke = series.role === "reference" ? input.refPaintOf(series) : input.pointPaint(series, dataIdx, point.ci), hollow = input.hollowAt(series, point.ci), fill = hollow ? { token: "background" } : stroke, owner = { seriesId: series.id, categoryId: input.cats[point.ci].id }, display = markerDisplay(input, series, row, point.ci), r = 3 * scale;
|
|
1648
|
+
shape === "circle" ? input.nodes.push({ t: "circle", id, cx: point.x, cy: point.y, r, fill, ...hollow ? { stroke } : {}, owner, part: "marker", display }) : shape === "square" ? input.nodes.push({ t: "rect", id, rect: { x: point.x - r, y: point.y - r, w: 2 * r, h: 2 * r }, fill, ...hollow ? { stroke, strokeWidth: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display }) : shape !== "none" && input.nodes.push({ t: "path", id, d: markerPath(shape, point, scale), fill, ...hollow ? { stroke, width: strokeToken(input.theme, "mark") } : {}, owner, part: "marker", display });
|
|
1619
1649
|
}
|
|
1620
|
-
function markerPath(shape, point) {
|
|
1621
|
-
return shape === "triangle" ? `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 3.5)}L${fmtPathNumber(point.x + 3.5)} ${fmtPathNumber(point.y + 3)}L${fmtPathNumber(point.x - 3.5)} ${fmtPathNumber(point.y + 3)}Z` : `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 4)}L${fmtPathNumber(point.x + 4)} ${fmtPathNumber(point.y)}L${fmtPathNumber(point.x)} ${fmtPathNumber(point.y + 4)}L${fmtPathNumber(point.x - 4)} ${fmtPathNumber(point.y)}Z`;
|
|
1650
|
+
function markerPath(shape, point, scale = 1) {
|
|
1651
|
+
return shape === "triangle" ? `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 3.5 * scale)}L${fmtPathNumber(point.x + 3.5 * scale)} ${fmtPathNumber(point.y + 3 * scale)}L${fmtPathNumber(point.x - 3.5 * scale)} ${fmtPathNumber(point.y + 3 * scale)}Z` : `M${fmtPathNumber(point.x)} ${fmtPathNumber(point.y - 4 * scale)}L${fmtPathNumber(point.x + 4 * scale)} ${fmtPathNumber(point.y)}L${fmtPathNumber(point.x)} ${fmtPathNumber(point.y + 4 * scale)}L${fmtPathNumber(point.x - 4 * scale)} ${fmtPathNumber(point.y)}Z`;
|
|
1622
1652
|
}
|
|
1623
1653
|
function renderMarkers(input, series, dataIdx, entry, geometry, claims) {
|
|
1624
1654
|
geometry.allPoints.forEach((point) => {
|
|
@@ -1627,8 +1657,13 @@ function renderMarkers(input, series, dataIdx, entry, geometry, claims) {
|
|
|
1627
1657
|
entry.points.push({ categoryId: input.cats[point.ci].id, x: point.x, y: point.y });
|
|
1628
1658
|
return;
|
|
1629
1659
|
}
|
|
1630
|
-
let nodeId;
|
|
1631
|
-
shape !== "none"
|
|
1660
|
+
let extent = input.markerExtent(series, dataIdx, point.ci), nodeId;
|
|
1661
|
+
if (shape !== "none") {
|
|
1662
|
+
nodeId = `marker:${series.id}:${input.cats[point.ci].id}`, pushMarkerNode(input, series, dataIdx, geometry.row, point, shape, nodeId, extent?.scale);
|
|
1663
|
+
let reach = extent ? Math.max(4, extent.reach + 1) : 4;
|
|
1664
|
+
input.occupied.claim({ x: point.x - reach, y: point.y - reach, w: 2 * reach, h: 2 * reach }, "mark", claims.lineOwner(series.id, input.cats[point.ci].id));
|
|
1665
|
+
}
|
|
1666
|
+
entry.points.push({ categoryId: input.cats[point.ci].id, x: point.x, y: point.y, ...nodeId ? { nodeId } : {}, ...extent ? { highlighted: !0, markerRadius: extent.reach } : {} });
|
|
1632
1667
|
});
|
|
1633
1668
|
}
|
|
1634
1669
|
function renderSeries(input, series, dataIdx, marks, paintedAreaCats, claims, outlines) {
|
|
@@ -1729,7 +1764,7 @@ function renderLineMarks(input) {
|
|
|
1729
1764
|
let highlight = new Set(input.drawnSeries.filter((series) => series.colorRole === "highlight" || input.highlights.has(series.id)).map((series) => series.id)), ink = input.nodes.splice(seriesStart), fill = (node) => node.part === "area" || node.part === "forecastHatch", raised = (node) => highlight.has(node.owner.seriesId) && (node.id.startsWith("mark:line:") || node.id.startsWith("casing:mark:line:") || node.part === "marker");
|
|
1730
1765
|
pushAll(input.nodes, ink.filter(fill)), pushAll(input.nodes, ink.filter((node) => !fill(node) && !raised(node))), pushAll(input.nodes, ink.filter(raised));
|
|
1731
1766
|
}
|
|
1732
|
-
renderAreaSeparators(input, geometries, paintedAreaCats), renderBumpTies(input.theme, { bump: input.bump, marks, nodes: input.nodes, occupied: input.occupied });
|
|
1767
|
+
renderAreaSeparators(input, geometries, paintedAreaCats), renderBumpTies(input.theme, { bump: input.bump, marks, nodes: input.nodes, occupied: input.occupied, language: input.language });
|
|
1733
1768
|
for (let series of input.bumpOmitted ?? []) {
|
|
1734
1769
|
let row = input.pv[input.rowOf.get(series)];
|
|
1735
1770
|
marks.series.push({ seriesId: series.id, points: row.flatMap((rank, ci) => rank === null ? [] : [{ categoryId: input.cats[ci].id, x: input.xOf(ci), y: input.y(rank) }]) });
|
|
@@ -1819,11 +1854,11 @@ function renderPhaseFills(theme, input) {
|
|
|
1819
1854
|
fill: "tint" in bandPaint ? { ...bandPaint, tint: PHASE_BAND_TINT } : bandPaint,
|
|
1820
1855
|
owner: { seriesId: phases.series.id, annotationId: phase.id },
|
|
1821
1856
|
part: "phaseFill",
|
|
1822
|
-
display: { value:
|
|
1857
|
+
display: { value: chartString2({ locale: { language: input.language } }, "phaseRange", { v1: phase.label, v2: input.fmt(start.value), v3: input.fmt(end.value) }) }
|
|
1823
1858
|
});
|
|
1824
1859
|
}
|
|
1825
1860
|
let span = ranged?.spans[index], top = span ? edgePath(span, linePath) : phases.interpolation === "monotone" ? monotonePathBetween(curvePoints, start, end) : linePath([{ x: start.x, y: start.y }, ...curvePoints.filter((point) => point.x > start.x && point.x < end.x), { x: end.x, y: end.y }]), nodeId = `mark:phase:${phase.id}`;
|
|
1826
|
-
banded || fills.push({ t: "path", id: nodeId, d: `${top}L${fmtPathNumber(end.x)} ${fmtPathNumber(input.baseY)}L${fmtPathNumber(start.x)} ${fmtPathNumber(input.baseY)}Z`, fill: phasePaint(phase, index, input.paletteRamp, input.palette), stroke: { token: "axis" }, width: strokeToken(theme, "hair"), dash: dashToken(theme, "reference"), owner: { seriesId: phases.series.id, annotationId: phase.id }, part: "phaseFill", display: { value:
|
|
1861
|
+
banded || fills.push({ t: "path", id: nodeId, d: `${top}L${fmtPathNumber(end.x)} ${fmtPathNumber(input.baseY)}L${fmtPathNumber(start.x)} ${fmtPathNumber(input.baseY)}Z`, fill: phasePaint(phase, index, input.paletteRamp, input.palette), stroke: { token: "axis" }, width: strokeToken(theme, "hair"), dash: dashToken(theme, "reference"), owner: { seriesId: phases.series.id, annotationId: phase.id }, part: "phaseFill", display: { value: chartString2({ locale: { language: input.language } }, "phaseRange", { v1: phase.label, v2: input.fmt(start.value), v3: input.fmt(end.value) }) } });
|
|
1827
1862
|
let owner = { annotationId: phase.id }, tops = span ? edgePolyline({ ...span, mode: phases.interpolation }) : [start, ...curvePoints.filter((point) => point.x > start.x && point.x < end.x), end];
|
|
1828
1863
|
if (!banded)
|
|
1829
1864
|
if (!span && phases.interpolation === "monotone" || tops.some((point) => point.y > input.baseY))
|
|
@@ -2033,23 +2068,28 @@ function validateDeclaration(input) {
|
|
|
2033
2068
|
[`fan.bands[${k}].low`, band.low],
|
|
2034
2069
|
[`fan.bands[${k}].high`, band.high]
|
|
2035
2070
|
])
|
|
2036
|
-
]
|
|
2037
|
-
|
|
2038
|
-
|
|
2071
|
+
], pointer = (entry) => {
|
|
2072
|
+
let at = named.indexOf(entry);
|
|
2073
|
+
return at === 0 ? ["options", "fan", "of"] : ["options", "fan", "bands", at - 1 >> 1, at % 2 === 1 ? "low" : "high"];
|
|
2074
|
+
};
|
|
2075
|
+
for (let entry of named) {
|
|
2076
|
+
let [path, id] = entry;
|
|
2077
|
+
if (!seriesById.has(id)) throw new NormalizeError("fan-series-unknown", path, `fan names unknown series '${id}' \u2014 a band is DECLARED DATA, so every bound must exist in data.series`, `add a series with id '${id}', or point this bound at one of: ${seriesNorm.map((s) => `'${s.id}'`).join(", ")}`, void 0, pointer(entry));
|
|
2078
|
+
}
|
|
2039
2079
|
spec.bands.forEach((band, k) => {
|
|
2040
|
-
if (typeof band.label != "string" || band.label.trim() === "") throw new NormalizeError("fan-band-unlabelled", `fan.bands[${k}].label`, `fan.bands[${k}] has no label \u2014 '80% predictive interval' and 'min/max of three scenarios' draw the same band and mean different things`, "add a label that says what the interval means, such as '80% predictive interval'");
|
|
2080
|
+
if (typeof band.label != "string" || band.label.trim() === "") throw new NormalizeError("fan-band-unlabelled", `fan.bands[${k}].label`, `fan.bands[${k}] has no label \u2014 '80% predictive interval' and 'min/max of three scenarios' draw the same band and mean different things`, "add a label that says what the interval means, such as '80% predictive interval'", void 0, ["options", "fan", "bands", k, "label"]);
|
|
2041
2081
|
});
|
|
2042
2082
|
let seen = /* @__PURE__ */ new Map([[spec.of, "fan.of"]]);
|
|
2043
|
-
for (let
|
|
2044
|
-
let first = seen.get(id);
|
|
2045
|
-
if (first !== void 0) throw new NormalizeError("fan-series-reused", path, `series '${id}' is used twice by the fan (${first} and ${path}) \u2014 each bound and the centre must be its own series, or the bands drawn are not the bands declared`, "give each band its own low/high series; a shared bound means two intervals claim the same numbers");
|
|
2083
|
+
for (let entry of named.slice(1)) {
|
|
2084
|
+
let [path, id] = entry, first = seen.get(id);
|
|
2085
|
+
if (first !== void 0) throw new NormalizeError("fan-series-reused", path, `series '${id}' is used twice by the fan (${first} and ${path}) \u2014 each bound and the centre must be its own series, or the bands drawn are not the bands declared`, "give each band its own low/high series; a shared bound means two intervals claim the same numbers", void 0, pointer(entry));
|
|
2046
2086
|
seen.set(id, path);
|
|
2047
2087
|
}
|
|
2048
|
-
if (spec.bands.length > 4) throw new NormalizeError("fan-too-many-bands", "fan.bands", `${spec.bands.length} bands exceed the four the tint ladder can keep apart \u2014 past four the washes are indistinguishable and the exhibit claims a precision the reader cannot see`, "four nested intervals is the legibility limit; drop or merge bands");
|
|
2088
|
+
if (spec.bands.length > 4) throw new NormalizeError("fan-too-many-bands", "fan.bands", `${spec.bands.length} bands exceed the four the tint ladder can keep apart \u2014 past four the washes are indistinguishable and the exhibit claims a precision the reader cannot see`, "four nested intervals is the legibility limit; drop or merge bands", void 0, ["options", "fan", "bands"]);
|
|
2049
2089
|
if (variant === "stacked-area" || variant === "stacked100-area") throw new NormalizeError("fan-composition-conflict", "variant", `variant '${variant}' stacks each series onto the ones below it; a band around one member of a composition bounds nothing the reader can see, because the member's own position depends on its neighbours' values`, "use variant 'line' for a fan, and a separate exhibit for the composition");
|
|
2050
2090
|
if (isArea) throw new NormalizeError("fan-area-conflict", "variant", `variant '${variant}' fills from the trajectory down to the baseline with an opaque fill that paints OVER the lower half of every band \u2014 the reader would see only the upper edge of each interval, i.e. a one-sided uncertainty, while the legend key beside it names the whole interval`, "use variant 'line' for a fan \u2014 the fan IS the fill, and a second fill under it hides half of what it declares");
|
|
2051
|
-
if (rebase100) throw new NormalizeError("fan-rebase-conflict", "rebase100", "rebase100 divides EACH series by its OWN value at the base category, so the bounds and the centre are rescaled by different divisors and the bands stop nesting \u2014 the fan would still be drawn, and would be wrong", "rebase the numbers before authoring them, so centre and bounds share one base, or drop rebase100");
|
|
2052
|
-
if (gapFill) throw new NormalizeError("fan-gapfill-conflict", "gapFill", "gapFill and fan are two wash systems in one plot \u2014 a reader cannot tell an uncertainty band from a shaded difference, and the picture would answer neither question", "keep the fan and drop gapFill, or split them into two exhibits");
|
|
2091
|
+
if (rebase100) throw new NormalizeError("fan-rebase-conflict", "rebase100", "rebase100 divides EACH series by its OWN value at the base category, so the bounds and the centre are rescaled by different divisors and the bands stop nesting \u2014 the fan would still be drawn, and would be wrong", "rebase the numbers before authoring them, so centre and bounds share one base, or drop rebase100", void 0, ["options", "rebase100"]);
|
|
2092
|
+
if (gapFill) throw new NormalizeError("fan-gapfill-conflict", "gapFill", "gapFill and fan are two wash systems in one plot \u2014 a reader cannot tell an uncertainty band from a shaded difference, and the picture would answer neither question", "keep the fan and drop gapFill, or split them into two exhibits", void 0, ["options", "gapFill"]);
|
|
2053
2093
|
}
|
|
2054
2094
|
function buildBands(input) {
|
|
2055
2095
|
let { spec, seriesById, cats, pv, rowOf } = input, catLabel = (ci) => cats[ci].label ?? cats[ci].id, bands = spec.bands.map((band) => ({
|
|
@@ -2067,7 +2107,9 @@ function buildBands(input) {
|
|
|
2067
2107
|
"fan-band-inverted",
|
|
2068
2108
|
`fan.bands[${k}]`,
|
|
2069
2109
|
`band '${band.label}' is inverted at category '${catLabel(ci)}': low '${band.low.id}' = ${lo} is above high '${band.high.id}' = ${hi}`,
|
|
2070
|
-
"swap the low and high series ids for this band \u2014 the engine will not swap them for you, because a silently corrected bound hides which series is actually which"
|
|
2110
|
+
"swap the low and high series ids for this band \u2014 the engine will not swap them for you, because a silently corrected bound hides which series is actually which",
|
|
2111
|
+
void 0,
|
|
2112
|
+
["options", "fan", "bands", k]
|
|
2071
2113
|
);
|
|
2072
2114
|
band.widths[ci] = hi - lo;
|
|
2073
2115
|
}
|
|
@@ -2085,7 +2127,9 @@ function validateNesting(input) {
|
|
|
2085
2127
|
"fan-bands-crossed",
|
|
2086
2128
|
`fan.bands[${k + 1}]`,
|
|
2087
2129
|
`bands are not nested at category '${cats[ci].label ?? cats[ci].id}': band ${k} '${outer.label}' spans ${ol}..${oh} and does not contain band ${k + 1} '${inner.label}' spanning ${il}..${ih} \u2014 bands must be authored OUTERMOST FIRST`,
|
|
2088
|
-
"reorder the bands outermost-first in the document, or fix the bound values; the engine will not reorder them, because a reordered fan hides an authoring error the reader can never see"
|
|
2130
|
+
"reorder the bands outermost-first in the document, or fix the bound values; the engine will not reorder them, because a reordered fan hides an authoring error the reader can never see",
|
|
2131
|
+
void 0,
|
|
2132
|
+
["options", "fan", "bands", k + 1]
|
|
2089
2133
|
);
|
|
2090
2134
|
}
|
|
2091
2135
|
}
|
|
@@ -2099,7 +2143,9 @@ function validateCenter(input) {
|
|
|
2099
2143
|
"fan-center-outside-band",
|
|
2100
2144
|
"fan.of",
|
|
2101
2145
|
`the central series '${of.id}' = ${center} at category '${cats[ci].label ?? cats[ci].id}' lies outside its innermost band '${band.label}' (${lo}..${hi}) \u2014 the centre and the bounds do not describe the same quantity`,
|
|
2102
|
-
"check that fan.of names the central trajectory and that the bound series are aligned to the same categories; a fan whose centre escapes its own interval is drawing two different series as one"
|
|
2146
|
+
"check that fan.of names the central trajectory and that the bound series are aligned to the same categories; a fan whose centre escapes its own interval is drawing two different series as one",
|
|
2147
|
+
void 0,
|
|
2148
|
+
["options", "fan", "of"]
|
|
2103
2149
|
);
|
|
2104
2150
|
}
|
|
2105
2151
|
}
|
|
@@ -2108,7 +2154,7 @@ function resolveFan(input) {
|
|
|
2108
2154
|
if (!spec) return null;
|
|
2109
2155
|
validateDeclaration({ spec, seriesById, seriesNorm, variant, isArea, rebase100, gapFill });
|
|
2110
2156
|
let of = seriesById.get(spec.of), ofRow = pv[rowOf.get(of)];
|
|
2111
|
-
if (ofRow.every((value) => value === null)) throw new NormalizeError("fan-center-empty", "fan.of", `the central series '${of.id}' is null in every category \u2014 a fan with no trajectory is bands around nothing`, "give the central series values, or point fan.of at the series that carries the projection");
|
|
2157
|
+
if (ofRow.every((value) => value === null)) throw new NormalizeError("fan-center-empty", "fan.of", `the central series '${of.id}' is null in every category \u2014 a fan with no trajectory is bands around nothing`, "give the central series values, or point fan.of at the series that carries the projection", void 0, ["options", "fan", "of"]);
|
|
2112
2158
|
let bands = buildBands({ spec, seriesById, cats, pv, rowOf });
|
|
2113
2159
|
validateNesting({ bands, cats, pv, rowOf }), validateCenter({ of, ofRow, band: bands[bands.length - 1], cats, pv, rowOf });
|
|
2114
2160
|
let boundIds = new Set(bands.flatMap((band) => [band.low.id, band.high.id])), origin = null;
|
|
@@ -2164,7 +2210,7 @@ function collectRuns(input) {
|
|
|
2164
2210
|
}), current.length > 0 && runs.push(current), runs;
|
|
2165
2211
|
}
|
|
2166
2212
|
function addFanRun(theme, input) {
|
|
2167
|
-
let { run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, occupied, fanNodes, hairNodes, gapCats } = input;
|
|
2213
|
+
let { run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, occupied, fanNodes, hairNodes, gapCats } = input, words = { locale: { language: input.language } };
|
|
2168
2214
|
if (run.length < 2) {
|
|
2169
2215
|
for (let point of run) gapCats.add(cats[point.ci].id);
|
|
2170
2216
|
return null;
|
|
@@ -2179,7 +2225,7 @@ function addFanRun(theme, input) {
|
|
|
2179
2225
|
fill: fanLadder[bandIndex].paint,
|
|
2180
2226
|
owner: {},
|
|
2181
2227
|
part: "fanBand",
|
|
2182
|
-
display: { value: `${band.label}: ${numberRange(loText, hiText)
|
|
2228
|
+
display: { value: `${band.label}: ${chartString2(words, "fanAt", { v1: numberRange(loText, hiText), v2: cats[widestAt].label ?? cats[widestAt].id })}${(band.widths[widestAt] ?? 0) > 0 ? chartString2(words, "fanWidest") : ""}` }
|
|
2183
2229
|
});
|
|
2184
2230
|
for (let k = 0; k + 1 < run.length; k++) {
|
|
2185
2231
|
let a = run[k], b = run[k + 1], top = Math.min(a.yHigh, b.yHigh), bottom = Math.max(a.yLow, b.yLow);
|
|
@@ -2211,7 +2257,7 @@ function renderFanWashes(theme, input) {
|
|
|
2211
2257
|
input.range && cats.forEach((cat, ci) => {
|
|
2212
2258
|
(lowRow[ci] === null || highRow[ci] === null) && gapCats.add(cat.id);
|
|
2213
2259
|
});
|
|
2214
|
-
let edges = input.range && input.xOfValue ? rangeRuns(input.range, [input.range.plotted[rowOf.get(band.high)], input.range.plotted[rowOf.get(band.low)]], interpolation).map((run) => run.map((edge) => mapEdge(edge, input.xOfValue, y))) : void 0, nodeIds = (edges ? edges.map((run) => run[0].points.map((p, i) => ({ ci: p.ci, x: p.x, yHigh: p.y, yLow: run[1].points[i].y }))) : collectRuns({ lowRow, highRow, cats, compositionInvalidAt, xOf, y, gapCats })).map((run, runIndex) => addFanRun(theme, { ...edges ? { edges: edges[runIndex] } : {}, run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds: fan.showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, numberSpec, occupied, fanNodes, hairNodes, gapCats })).filter((id) => id !== null);
|
|
2260
|
+
let edges = input.range && input.xOfValue ? rangeRuns(input.range, [input.range.plotted[rowOf.get(band.high)], input.range.plotted[rowOf.get(band.low)]], interpolation).map((run) => run.map((edge) => mapEdge(edge, input.xOfValue, y))) : void 0, nodeIds = (edges ? edges.map((run) => run[0].points.map((p, i) => ({ ci: p.ci, x: p.x, yHigh: p.y, yLow: run[1].points[i].y }))) : collectRuns({ lowRow, highRow, cats, compositionInvalidAt, xOf, y, gapCats })).map((run, runIndex) => addFanRun(theme, { language: input.language, ...edges ? { edges: edges[runIndex] } : {}, run, runIndex, band, bandIndex, lowRow, highRow, cats, interpolation, fanLadder, showBounds: fan.showBounds, pathFor: pathFor2, reversePathTail: reversePathTail2, fmt, numberSpec, occupied, fanNodes, hairNodes, gapCats })).filter((id) => id !== null);
|
|
2215
2261
|
nodeIds.length > 0 && fanMarks.push({ bandIndex, nodeIds, low: band.low.id, high: band.high.id, label: band.label });
|
|
2216
2262
|
}), gapCats.size > 0 && warnings.push({
|
|
2217
2263
|
code: "fan-band-gap",
|
|
@@ -2276,7 +2322,7 @@ function heroPlan(env, domain, warnings) {
|
|
|
2276
2322
|
let heroId = heroMode ? fan && fan.origin !== null ? fan.of.id : drawnSeries[0].id : null;
|
|
2277
2323
|
return !env.isBump && variant === "line" && !heroMode && !env.anyHighlight && drawnSeries.length > 3 && warnings.push({
|
|
2278
2324
|
code: "line-peer-overload",
|
|
2279
|
-
severity: "
|
|
2325
|
+
severity: "advice",
|
|
2280
2326
|
message: `${drawnSeries.length} peer-styled lines are hard to follow \u2014 highlight one series, set emphasis 'first', or facet into small multiples (grid repeat)`
|
|
2281
2327
|
}), { heroMode, heroId };
|
|
2282
2328
|
}
|
|
@@ -2296,7 +2342,9 @@ function bumpIdentity(env, domain, warnings) {
|
|
|
2296
2342
|
"bump-identity-exhausted",
|
|
2297
2343
|
"series",
|
|
2298
2344
|
`${autoIdentity} entities exceed the ${capacity} distinguishable identities theme '${env.theme.name}' can give a rank line (${bumpRampLen} ramp colours x ${BUMP_SHAPES.length} marker shapes x ${BUMP_DASH_ROLES.length} line styles) \u2014 past that two entities would be drawn identically and a crossing between them could not be read at all`,
|
|
2299
|
-
"rank fewer entities, give the extra series an explicit `fill`, or facet into small multiples with grid repeat"
|
|
2345
|
+
"rank fewer entities, give the extra series an explicit `fill`, or facet into small multiples with grid repeat",
|
|
2346
|
+
void 0,
|
|
2347
|
+
["data", "series"]
|
|
2300
2348
|
);
|
|
2301
2349
|
if (autoIdentity > bumpRampLen) {
|
|
2302
2350
|
let channels = autoIdentity > bumpRampLen * BUMP_SHAPES.length ? "the TRIPLE (colour, marker shape, line style)" : "the PAIR (colour, marker shape)";
|
|
@@ -2390,20 +2438,20 @@ function linePaints(env, domain, warnings) {
|
|
|
2390
2438
|
}, planStyleOf = (s) => !areaFilled(s) && !isBump ? planLineStyle(s.scenario, theme) : void 0, lineHollowOf = (s) => planStyleOf(s) !== void 0, scenarioStyleOf = (s) => s.scenario === void 0 ? void 0 : {
|
|
2391
2439
|
...planStyleOf(s),
|
|
2392
2440
|
...options.scenarioStyle?.[s.scenario]
|
|
2393
|
-
}, areaTint = theme.marks?.areaTint, themedArea = (s) => areaTint !== void 0 && isArea && !isStacked && drawnSeries.length === 1 && !palette && !s.fill && !s.colorRole && !scenarioStyleOf(s)?.ink && s.scenario !== "PY" && s.scenario !== "PL", emphasis = options.emphasis ?? (isStacked && !grey && !fade && options.palette === void 0 && dataSeries.every((s) => !s.fill && !scenarioStyleOf(s)?.ink) ? "ordered" : void 0), slots = rampSlots(theme, dataSeries.map((s) => {
|
|
2441
|
+
}, areaTint = theme.marks?.areaTint, themedArea = (s) => areaTint !== void 0 && isArea && !isStacked && drawnSeries.length === 1 && !palette && !s.fill && !s.colorRole && !scenarioStyleOf(s)?.ink && s.scenario !== "PY" && s.scenario !== "PL", emphasis = options.emphasis ?? (isStacked && !grey && !fade && options.palette === void 0 && dataSeries.every((s) => !s.fill && !scenarioStyleOf(s)?.ink) ? "ordered" : void 0), roleMixed = areaLead !== void 0 ? colorRolePaints(dataSeries, (id) => id === areaLead.id) : void 0, oneLadder = (paints) => roleMixed === void 0 ? paints : new Map([...paints].map(([id, paint]) => [id, "theme" in paint && paint.theme?.kind === "role-step" ? roleMixed.get(id) : paint])), roleStrokes = oneLadder(colorRolePaints(dataSeries, !1)), roleFills = oneLadder(colorRolePaints(dataSeries, !0)), slots = rampSlots(theme, dataSeries.map((s) => {
|
|
2394
2442
|
let ink = scenarioStyleOf(s)?.ink;
|
|
2395
|
-
return s.fill ? { css: s.fill } : isArea && grey && highlights.has(s.id) ? { token: "focus" } : s.colorRole ?
|
|
2443
|
+
return s.fill ? { css: s.fill } : isArea && grey && highlights.has(s.id) ? { token: "focus" } : s.colorRole ? (isArea ? roleFills : roleStrokes).get(s.id) : ink ? { token: ink } : void 0;
|
|
2396
2444
|
}), palette, !grey && !heroMode && !isBump && emphasis !== "ordered" && dataSeries.length > 1 ? { labels: dataSeries.map((s) => s.label), warnings } : void 0), quietRest = emphasis === "ordered" && (options.othersShade ?? DEFAULT_OTHERS_SHADE) === "quietest" && dataSeries.some((s) => s.colorRole === "others" && !s.fill);
|
|
2397
2445
|
quietRest && pushAll(warnings, othersShadeUnavailableWarnings(theme, { token: "markInk" }));
|
|
2398
|
-
let ordered = (s) => emphasis === "ordered" && !s.colorRole && !(grey && highlights.has(s.id)), series = (s, dataIdx) => {
|
|
2446
|
+
let ordered = (s) => emphasis === "ordered" && !s.colorRole && !(grey && highlights.has(s.id)), focusPaint = (s) => s.fill ? { css: s.fill } : { token: "focus" }, series = (s, dataIdx) => {
|
|
2399
2447
|
let paint, scenarioInk = scenarioStyleOf(s)?.ink;
|
|
2400
|
-
return themedArea(s) ? paint = { token: "markInk" } : s.fill ? paint = { css: s.fill } : ordered(s) ? paint = orderedRampPaint(dataIdx, dataSeries.length, quietRest) : bumpStory && !s.colorRole ? paint = bumpStory.paintOf(s.id) : grey ? paint = highlights.has(s.id) ?
|
|
2448
|
+
return themedArea(s) ? paint = { token: "markInk" } : s.fill ? paint = { css: s.fill } : ordered(s) ? paint = orderedRampPaint(dataIdx, dataSeries.length, quietRest) : bumpStory && !s.colorRole ? paint = bumpStory.paintOf(s.id) : grey ? paint = highlights.has(s.id) ? focusPaint(s) : s.colorRole ? roleStrokes.get(s.id) : contextPaint(s) : heroMode ? paint = s.id === heroId ? { token: "markInk" } : contextPaint(s) : s.colorRole ? paint = roleStrokes.get(s.id) : scenarioInk ? paint = { token: scenarioInk } : dataSeries.length === 1 ? paint = seriesPaint(dataIdx, palette, s.scenario) : paint = seriesPaint(isBump ? bumpSlot(dataIdx).color : slots[dataIdx] ?? dataIdx, palette), shadeSafeStroke(faded(paint, s), s, paint);
|
|
2401
2449
|
}, areaFillOwn = (s, dataIdx, forecast = !1) => {
|
|
2402
2450
|
if (themedArea(s)) return forecast ? { token: "focus" } : { token: "focus", tint: areaTint };
|
|
2403
2451
|
if (s.fill) return { css: s.fill };
|
|
2404
2452
|
if (ordered(s)) return orderedRampPaint(dataIdx, dataSeries.length, quietRest);
|
|
2405
2453
|
if (grey && highlights.has(s.id)) return { token: "focus" };
|
|
2406
|
-
if (s.colorRole) return
|
|
2454
|
+
if (s.colorRole) return roleFills.get(s.id);
|
|
2407
2455
|
let scenarioInk = scenarioStyleOf(s)?.ink;
|
|
2408
2456
|
return scenarioInk ? { token: scenarioInk } : dataSeries.length === 1 ? seriesPaint(dataIdx, palette, s.scenario) : seriesPaint(slots[dataIdx] ?? dataIdx, palette);
|
|
2409
2457
|
}, areaFill = (s, dataIdx, forecast = !1) => faded(areaFillOwn(s, dataIdx, forecast), s), keyPaint = (s, dataIdx) => areaFilled(s) && !themedArea(s) ? areaFill(s, dataIdx) : !isArea && s.scenario === "FC" && domain.variant !== "line" ? forecastStroke(series(s, dataIdx), theme, seriesCrossesShadedBand(s)) : series(s, dataIdx), { fanLadder, fanCentrePaint, fanPaints } = buildFanPaints({
|
|
@@ -2414,12 +2462,21 @@ function linePaints(env, domain, warnings) {
|
|
|
2414
2462
|
theme,
|
|
2415
2463
|
anyHighlight,
|
|
2416
2464
|
highlights
|
|
2417
|
-
}), dashOf = (s, dataIdx) => s.lineStyle === "dashed" ? dashToken(theme, "reference") : s.lineStyle === "dotted" ? dashToken(theme, "dotted") : isBump ? bumpSlot(dataIdx).dash : void 0, pointScenario = (s, ci) => s.vals[ci].scenario ?? s.scenario
|
|
2465
|
+
}), dashOf = (s, dataIdx) => s.lineStyle === "dashed" ? dashToken(theme, "reference") : s.lineStyle === "dotted" ? dashToken(theme, "dotted") : isBump ? bumpSlot(dataIdx).dash : void 0, pointScenario = (s, ci) => s.vals[ci].scenario ?? s.scenario, pointSelected = (s, ci) => s.role !== "reference" && env.pointHighlights.has(cats[ci].id), markerOf = (s, dataIdx, ci) => s.marker ?? (pointSelected(s, ci) ? "circle" : bumpStory ? bumpStory.isContext(s) ? "none" : "circle" : isBump ? bumpSlot(dataIdx).shape : isArea || (markersOff || cats.length > MARKER_MAX_CATS) && cats[ci].partial !== !0 ? "none" : contextRank.has(s.id) ? plainGrey ? LINE_GREY_SHAPES[contextRank.get(s.id) % LINE_GREY_SHAPES.length] : BUMP_SHAPES[contextRank.get(s.id) % BUMP_SHAPES.length] : "circle"), hollowAt = (s, ci) => {
|
|
2466
|
+
let sc = pointScenario(s, ci);
|
|
2467
|
+
return sc === "PY" || sc === "PL" || sc === "FC" || cats[ci].partial === !0;
|
|
2468
|
+
};
|
|
2418
2469
|
return {
|
|
2419
2470
|
css,
|
|
2420
2471
|
bandRules: () => [...bandRules.values()],
|
|
2421
2472
|
seriesCrossesShadedBand,
|
|
2422
2473
|
series,
|
|
2474
|
+
point: (s, dataIdx, ci) => pointSelected(s, ci) ? shadeSafeStroke(focusPaint(s), s, focusPaint(s)) : series(s, dataIdx),
|
|
2475
|
+
markerExtent: (s, dataIdx, ci) => {
|
|
2476
|
+
if (!pointSelected(s, ci)) return;
|
|
2477
|
+
let dataStroke = strokeToken(theme, "data"), scale = Math.max(1, strokeToken(theme, "focus") / (dataStroke > 0 ? dataStroke : 1)), shape = markerOf(s, dataIdx, ci), radius = shape === "none" ? 0 : shape === "triangle" ? 3.5 : shape === "diamond" ? 4 : 3;
|
|
2478
|
+
return { scale, reach: radius === 0 ? 0 : radius * scale + (hollowAt(s, ci) ? strokeToken(theme, "mark") / 2 : 0) };
|
|
2479
|
+
},
|
|
2423
2480
|
areaFill,
|
|
2424
2481
|
areaFilled,
|
|
2425
2482
|
keyPaint,
|
|
@@ -2431,15 +2488,12 @@ function linePaints(env, domain, warnings) {
|
|
|
2431
2488
|
// Bump ignores the density cutoff: the marker is what makes a crossing
|
|
2432
2489
|
// readable. A partial period keeps a (hollow) marker where density drops
|
|
2433
2490
|
// the rest. A theme without default markers drops them as the cutoff does.
|
|
2434
|
-
markerOf
|
|
2435
|
-
hollowAt
|
|
2436
|
-
let sc = pointScenario(s, ci);
|
|
2437
|
-
return sc === "PY" || sc === "PL" || sc === "FC" || cats[ci].partial === !0;
|
|
2438
|
-
},
|
|
2491
|
+
markerOf,
|
|
2492
|
+
hollowAt,
|
|
2439
2493
|
pointScenario,
|
|
2440
2494
|
// A bump point carries BOTH quantities: `display.value` stays the metric
|
|
2441
2495
|
// and `display.state` names the rank the y position encodes.
|
|
2442
|
-
bumpPointState: (row, ci) => isBump && row[ci] !== null ? { state:
|
|
2496
|
+
bumpPointState: (row, ci) => isBump && row[ci] !== null ? { state: chartString2(options, "bumpRank", { v1: String(row[ci]) }) } : {},
|
|
2443
2497
|
heroMode,
|
|
2444
2498
|
heroId,
|
|
2445
2499
|
fanLadder,
|
|
@@ -2826,7 +2880,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2826
2880
|
}
|
|
2827
2881
|
pushAll(nodes, axisResult.nodes), axes.push(axisResult.axis);
|
|
2828
2882
|
}
|
|
2829
|
-
let tickXs = domain.autoSampled ? area.intervalTicks?.flatMap((tick, ci) => tick ? [xOf(ci)] : []) : void 0, crowded = tickXs?.some((x, k) => k > 0 && x - tickXs[k - 1] < MIN_TICK_GAP) === !0;
|
|
2883
|
+
let tickXs = domain.autoSampled || options.categoryAxis?.dateTicks === void 0 ? area.intervalTicks?.flatMap((tick, ci) => tick ? [xOf(ci)] : []) : void 0, crowded = tickXs?.some((x, k) => k > 0 && Math.abs(x - tickXs[k - 1]) < MIN_TICK_GAP) === !0;
|
|
2830
2884
|
if (area.intervalTicks?.forEach((tick, ci) => {
|
|
2831
2885
|
if (!tick || crowded && !area.catPlan.keep[ci]) return;
|
|
2832
2886
|
let x = xOf(ci), top = plot.y + plot.h;
|
|
@@ -2844,6 +2898,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2844
2898
|
placeForecastHeaders(area.forecast, xOf, area.forecastPlot, area.forecastHeaderInPlot ? area.forecastPlot.y + 2 : area.forecastPlot.y - area.phaseHeaderHeight - area.forecastHeaderHeight, text.secondaryFont, measure, headerRequests, claims, options.strings.forecastHeader, forecastDividerAt(domain), actualHeader(domain));
|
|
2845
2899
|
let baseY = dLo <= 0 && dHi >= 0 ? y(0) : plot.y + plot.h, rendered = renderLineMarks({
|
|
2846
2900
|
theme,
|
|
2901
|
+
language: options.locale?.language,
|
|
2847
2902
|
highlights: env.highlights,
|
|
2848
2903
|
drawnSeries,
|
|
2849
2904
|
refSeries: domain.refSeries,
|
|
@@ -2867,6 +2922,8 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2867
2922
|
// weight, 9.6 px apart along x at the default strength; lower strengths spread and fade them.
|
|
2868
2923
|
hatch: bandHatch(theme, options.hatchStrength),
|
|
2869
2924
|
seriesPaint: paints.series,
|
|
2925
|
+
pointPaint: paints.point,
|
|
2926
|
+
markerExtent: paints.markerExtent,
|
|
2870
2927
|
areaFillPaint: paints.areaFill,
|
|
2871
2928
|
areaFilled: paints.areaFilled,
|
|
2872
2929
|
// A plain line's forecast keeps its colour; the dashes, open markers and divider mark it.
|
|
@@ -2923,6 +2980,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2923
2980
|
marks,
|
|
2924
2981
|
analyticalSceneStart
|
|
2925
2982
|
}), renderFanWashes(theme, {
|
|
2983
|
+
language: options.locale?.language,
|
|
2926
2984
|
range: domain.x?.range,
|
|
2927
2985
|
xOfValue: area.xOfValue,
|
|
2928
2986
|
fan: domain.fan,
|
|
@@ -2946,6 +3004,7 @@ function layoutLineMarks(env, domain, area, paints, text, reserves, warnings) {
|
|
|
2946
3004
|
analyticalSceneStart
|
|
2947
3005
|
});
|
|
2948
3006
|
let phaseRequests = [], phaseDerived = renderPhaseFills(theme, {
|
|
3007
|
+
language: options.locale?.language,
|
|
2949
3008
|
range: domain.x?.range,
|
|
2950
3009
|
xOfValue: area.xOfValue,
|
|
2951
3010
|
phases: domain.phases,
|
|
@@ -3038,6 +3097,7 @@ export {
|
|
|
3038
3097
|
latestRingReach,
|
|
3039
3098
|
END_LABEL_KEY,
|
|
3040
3099
|
END_LABEL_WIDE,
|
|
3100
|
+
POINT_LABEL_CENTERED_ROOM,
|
|
3041
3101
|
INLINE_FALLBACK,
|
|
3042
3102
|
usesInlineFallback,
|
|
3043
3103
|
usesEndLabelKey,
|
|
@@ -3053,6 +3113,7 @@ export {
|
|
|
3053
3113
|
pointLabelSelection,
|
|
3054
3114
|
defaultValueContent,
|
|
3055
3115
|
PLOT_END_AIR,
|
|
3116
|
+
pointLabelsFollowShape,
|
|
3056
3117
|
pointLabelEndRoom,
|
|
3057
3118
|
pointValueWidths,
|
|
3058
3119
|
placePointValueLabels,
|