boardplot 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +298 -0
- package/README.md +48 -14
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
- package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-MHMXIDAJ.js} +8 -7
- package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-753KQBNN.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/{chunk-Q7VPTN5X.js → chunk-2ETK5TSA.js} +4 -4
- package/dist/{chunk-NO7GRVUU.js → chunk-2ETSI2EL.js} +8 -8
- package/dist/{chunk-4RN4OM6I.js → chunk-2GRXHWRH.js} +3 -3
- package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
- package/dist/{chunk-K6Y4HBK7.js → chunk-2LC2H3ZM.js} +1000 -904
- package/dist/{chunk-KF3ZHLHQ.js → chunk-2NX7EO7H.js} +5 -5
- package/dist/{chunk-D5G67OER.js → chunk-2QI2PK2O.js} +1 -1
- package/dist/{chunk-AFA32LHN.js → chunk-2VKQQLP7.js} +62 -36
- package/dist/chunk-3DOVXJ6K.js +602 -0
- package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-D5RAVZ5C.js → chunk-3HA4IJTO.js} +9 -8
- package/dist/{chunk-OTGNVAI4.js → chunk-3HPPTQEW.js} +4 -4
- package/dist/{chunk-TGR6PRKG.js → chunk-3KT2647F.js} +4 -2
- package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
- package/dist/{chunk-JKXJWCJ5.js → chunk-3P3FKPFN.js} +116 -54
- package/dist/{chunk-JMOBA5ES.js → chunk-3XAJSMYD.js} +2 -2
- package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-Y5IKCXQR.js → chunk-44JU3VOT.js} +5 -5
- package/dist/{chunk-YBYV56FS.js → chunk-44K75CYE.js} +3 -3
- package/dist/{chunk-WKWCNS6K.js → chunk-4FNM4D57.js} +5 -5
- package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-LO3AGGE3.js → chunk-4VV3KUFT.js} +5 -5
- package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-SHAAMKN7.js → chunk-5JEU6MWC.js} +18 -18
- package/dist/{chunk-I7KDPCC7.js → chunk-5JIB4VJA.js} +18 -10
- package/dist/{chunk-C5SQEYTQ.js → chunk-5OP3E2ZD.js} +153 -65
- package/dist/{chunk-BDCKHLUB.js → chunk-5SLBD4BT.js} +72 -304
- package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/chunk-5U567TYU.js +23 -0
- package/dist/{chunk-BFDPY7JM.js → chunk-5ZLF4S7X.js} +11 -6
- package/dist/{chunk-73O6AOAA.js → chunk-5ZMTQATF.js} +241 -140
- package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
- package/dist/chunk-64K3V4VN.js +25 -0
- package/dist/{chunk-BM2A3IGQ.js → chunk-67YJJJIB.js} +1 -1
- package/dist/{chunk-TDDSWNGD.js → chunk-6DJNFT2K.js} +30 -28
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/{chunk-H2POQ4LB.js → chunk-6XPV6M3Q.js} +4 -4
- package/dist/{chunk-XFCBH3TI.js → chunk-6ZDSEITW.js} +3 -3
- package/dist/{chunk-LFX5BERN.js → chunk-72HVDLMT.js} +46 -32
- package/dist/chunk-75NU5RLX.js +24 -0
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/{chunk-EFKFZNQC.js → chunk-7CAYRPJV.js} +34 -20
- package/dist/{chunk-EWR6WVOV.js → chunk-7GWWBHVQ.js} +6 -6
- package/dist/{chunk-H6EJ63QN.js → chunk-7NYUFMLJ.js} +143 -82
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-XNV7VOIT.js → chunk-A7R6FUS6.js} +4 -4
- package/dist/{chunk-KIXNHDXS.js → chunk-AEVGUOPB.js} +5 -5
- package/dist/{chunk-IXM6BAM4.js → chunk-AHIK2N72.js} +1 -1
- package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-CT4RFZO4.js → chunk-AN2V2LC4.js} +37 -22
- package/dist/{chunk-T5MBORBK.js → chunk-AOFUA5XP.js} +1 -1
- package/dist/{chunk-7FAO4ICF.js → chunk-BCMEGJRX.js} +2 -2
- package/dist/{chunk-H3EWFSWI.js → chunk-BDIKWR45.js} +43 -29
- package/dist/{chunk-DJBMA4FW.js → chunk-BG6AIWAK.js} +4 -6
- package/dist/{chunk-6XU5XGYV.js → chunk-BOT6W3VB.js} +5 -5
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-6LQKU6YN.js → chunk-BZ67BJBH.js} +11 -10
- package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
- package/dist/{chunk-FJKFYQ5I.js → chunk-C5OBPO4Z.js} +36 -28
- package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
- package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
- 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-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
- package/dist/{chunk-5TUDYKNL.js → chunk-DEANHDXU.js} +42 -29
- package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-ZSYU6LIH.js → chunk-DIHX6NUB.js} +5 -5
- package/dist/{chunk-W7Q6PLT4.js → chunk-DILQ34NW.js} +37 -37
- package/dist/{chunk-IZRTNCJQ.js → chunk-DJKRYJP7.js} +5 -5
- package/dist/{chunk-43PCSBVQ.js → chunk-DKLC6QLF.js} +634 -8
- package/dist/{chunk-I6QGYRY4.js → chunk-DNHTMCUP.js} +2 -2
- package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
- package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
- package/dist/chunk-E262NRFP.js +39 -0
- package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-5H4HFRDO.js → chunk-EBUK7HJP.js} +5 -5
- package/dist/{chunk-YGPLUENN.js → chunk-ECBHC272.js} +132 -83
- package/dist/{chunk-KLQKHA3T.js → chunk-EFW43JQJ.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-AFGQXMKT.js → chunk-ETRAPN5G.js} +143 -62
- 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-LW4ZQGVL.js → chunk-FGW54I23.js} +7 -8
- package/dist/{chunk-UCIAHSJK.js → chunk-FP5B5XIL.js} +7 -3
- package/dist/{chunk-QRZESG66.js → chunk-FRHQGA5Q.js} +64 -239
- package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
- package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-54HEIM2A.js → chunk-FWSMENKH.js} +2 -2
- package/dist/{chunk-F4JAGDPD.js → chunk-FWTUGNSF.js} +8 -8
- package/dist/{chunk-HB3TH7GY.js → chunk-FZKDZQ6U.js} +10 -6
- package/dist/{chunk-6EE6XEMA.js → chunk-G4FF6G3I.js} +25 -16
- package/dist/{chunk-72OJBDRB.js → chunk-GB6BZSTL.js} +52 -41
- package/dist/{chunk-QLWUFEKR.js → chunk-GCIHRRDJ.js} +8 -8
- package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
- package/dist/chunk-GO66OCN7.js +24 -0
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
- package/dist/{chunk-TWRFVW3J.js → chunk-GUTLXO7Q.js} +138 -89
- package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/{chunk-7P7D6WXR.js → chunk-HBQHSZ6S.js} +3 -3
- package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
- package/dist/{chunk-VY67Q6CJ.js → chunk-HUQRO6VF.js} +36 -33
- package/dist/{chunk-WSKZZ2ZB.js → chunk-I5VDW2XZ.js} +538 -503
- package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
- package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
- package/dist/chunk-IU335UO7.js +27 -0
- package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-PSYPB22T.js → chunk-J4QRB6DQ.js} +5 -5
- package/dist/{chunk-CEMXGMQN.js → chunk-JCMGKQVS.js} +3 -3
- package/dist/{chunk-XR7VOF2V.js → chunk-JM7UTLF3.js} +25 -13
- package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-SHCW2TCA.js → chunk-JSRQTDZZ.js} +25 -23
- package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
- package/dist/{chunk-BO5EJBLH.js → chunk-JUYRDZSV.js} +63 -43
- package/dist/{chunk-I5ZADE2U.js → chunk-JVGL2SCN.js} +1 -1
- package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-JIH52I36.js → chunk-KGBUXMFP.js} +119 -85
- package/dist/{chunk-2KCK63DD.js → chunk-KIE5V3DA.js} +2 -2
- package/dist/{chunk-A33MFWHW.js → chunk-KU4PCG4W.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-JRRSKCGG.js → chunk-LG6M2JTH.js} +3 -3
- package/dist/{chunk-KUMJI5B6.js → chunk-LIE2WSB4.js} +17 -14
- package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
- package/dist/{chunk-EHNGPUTO.js → chunk-LMMS675D.js} +5 -5
- package/dist/{chunk-ANNQJWDX.js → chunk-LPKGZ664.js} +285 -34
- package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
- package/dist/chunk-LQWINE7K.js +211 -0
- package/dist/{chunk-RHBQ2Q5H.js → chunk-MKMMQDIY.js} +60 -43
- package/dist/{chunk-RMVCKO6N.js → chunk-MQ4IEDM5.js} +458 -136
- package/dist/{chunk-J22ETKDJ.js → chunk-MRM4KJ2O.js} +2 -2
- package/dist/{chunk-Z2BDTZDT.js → chunk-MX2OZHIT.js} +97 -39
- package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-IUVJVMKS.js → chunk-NHU26HQ7.js} +55 -32
- package/dist/{chunk-6KHRMK3I.js → chunk-NQVJ4FPY.js} +158 -75
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/{chunk-L2XRUG4P.js → chunk-OALBVELJ.js} +5 -5
- package/dist/{chunk-3DUGZ7ML.js → chunk-OGZ4UPYK.js} +46 -31
- package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
- package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-RHVP62HI.js → chunk-OPYDTW5Q.js} +5 -5
- package/dist/{chunk-4U2WSW6F.js → chunk-OSJN7KDS.js} +65 -36
- package/dist/{chunk-EY4OA4OF.js → chunk-OSJXIW6I.js} +370 -785
- package/dist/{chunk-NRYERHEI.js → chunk-OVVE42P4.js} +5 -5
- package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
- package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
- package/dist/{chunk-CIDOL4FO.js → chunk-PDTIQL3B.js} +5 -5
- package/dist/{chunk-TQ5HHNM3.js → chunk-PJ5BYZPN.js} +2 -2
- package/dist/{chunk-EHQLLZCQ.js → chunk-PK7Z7WRJ.js} +59 -34
- package/dist/{chunk-KJLH5EHD.js → chunk-PL6NWB5U.js} +175 -110
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/{chunk-KQ2WZ6BY.js → chunk-PP6A4X55.js} +1 -1
- package/dist/{chunk-O7Y6RJ4D.js → chunk-PPCH3PLO.js} +11 -11
- package/dist/{chunk-IRXTNSZL.js → chunk-PPE6S7WU.js} +40 -22
- package/dist/{chunk-VT7PBGL2.js → chunk-PT7KSIEO.js} +23 -36
- package/dist/{chunk-GADI2DU7.js → chunk-QAUGRVRU.js} +121 -23
- package/dist/{chunk-2X6XY4K4.js → chunk-QMFWZG2P.js} +39 -19
- package/dist/{chunk-YB6QGOCO.js → chunk-QZGGCE45.js} +2 -2
- package/dist/{chunk-5P4MXWKP.js → chunk-R2RJQ3BM.js} +4 -4
- package/dist/{chunk-FAFUMSPR.js → chunk-R7HBIQ63.js} +83 -51
- package/dist/{chunk-76UL4CT4.js → chunk-RBNDZLYS.js} +27 -22
- package/dist/{chunk-XN7JDII2.js → chunk-RCSY4CT4.js} +230 -107
- package/dist/{chunk-OAT6FWKL.js → chunk-RHQRPJHS.js} +5 -5
- package/dist/chunk-RI6XQKWJ.js +26 -0
- package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
- package/dist/{chunk-NINK4G7U.js → chunk-RLAVNCQJ.js} +2 -2
- package/dist/{chunk-FERP4WS3.js → chunk-ROPPWJQB.js} +11 -10
- package/dist/{chunk-SSZB3VXG.js → chunk-SELOV32X.js} +102 -47
- package/dist/{chunk-EEBMK6T6.js → chunk-SQI4NWTQ.js} +8 -8
- package/dist/{chunk-2WTD3GCR.js → chunk-SRJ74CMG.js} +2 -2
- package/dist/{chunk-LSR3SBJ4.js → chunk-STWOURLG.js} +234 -136
- package/dist/{chunk-BQIADGJB.js → chunk-SWMFXSVW.js} +5 -5
- package/dist/{chunk-5HTGSB6Y.js → chunk-SZ5VGWDY.js} +3 -3
- package/dist/{chunk-EDBUVDRI.js → chunk-T26G23RS.js} +359 -86
- package/dist/chunk-T7GPIJ4L.js +89 -0
- package/dist/{chunk-LGMV7ZV4.js → chunk-TAEB3RU6.js} +5 -5
- package/dist/{chunk-YFI5PN5O.js → chunk-TBDIMTRD.js} +34 -11
- package/dist/{chunk-HDSHS2QZ.js → chunk-TFFPEWNP.js} +70 -47
- 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-U74AWJ3X.js +24 -0
- package/dist/chunk-UC7LBW7N.js +26 -0
- package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-62JZL6FW.js → chunk-UCYL3YA7.js} +56 -42
- package/dist/{chunk-AKJO6N4K.js → chunk-UD2GI3CS.js} +11 -4
- package/dist/{chunk-MOQFYJ3F.js → chunk-ULQIC76A.js} +5 -5
- package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
- package/dist/{chunk-2I76VFMZ.js → chunk-UYMFLWM6.js} +49 -37
- package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
- package/dist/{chunk-HGPFEG2L.js → chunk-VRFJAF3R.js} +5 -5
- package/dist/chunk-VS2R3OGN.js +34 -0
- package/dist/{chunk-EEL2N4Y6.js → chunk-VS5B4J2D.js} +5 -5
- package/dist/{chunk-G5BUGYIL.js → chunk-W4R6SGU3.js} +192 -113
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/{chunk-YCUNFAEE.js → chunk-WJS6SAWA.js} +238 -127
- package/dist/{chunk-VFLMBA2M.js → chunk-WQYNKF33.js} +19 -18
- package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
- package/dist/{chunk-4JNHF6JW.js → chunk-X24WAHHV.js} +84 -40
- package/dist/{chunk-GKQLKUMF.js → chunk-X3UCQPVV.js} +41 -32
- package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
- package/dist/{chunk-AOIZJ7GR.js → chunk-XDIAQEYK.js} +6 -6
- package/dist/{chunk-7EQU2TUN.js → chunk-XFPNYHX3.js} +84 -53
- package/dist/{chunk-NCCDEUHD.js → chunk-XIBVAKCO.js} +1 -1
- package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
- package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
- package/dist/{chunk-Y5WHM2Q5.js → chunk-XTFO6D4L.js} +1 -1
- package/dist/chunk-XWRI3N5O.js +70 -0
- package/dist/{chunk-IVQT2E3Y.js → chunk-XXPLPSOE.js} +13 -13
- package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-QZMLSK43.js → chunk-YEJZ2OYS.js} +294 -145
- package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
- package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-OKM5LYYP.js → chunk-ZGZLEUKM.js} +5 -5
- package/dist/{chunk-QHPJ5ZKS.js → chunk-ZHRGX225.js} +5 -5
- package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
- package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
- package/dist/{chunk-UFZXZJJG.js → chunk-ZSLTSCTI.js} +5 -5
- package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
- package/dist/cli/index.js +8 -3
- package/dist/{core-UNX4ZV4M.js → core-43GLGBOY.js} +5 -1
- package/dist/{core-T3OSZOVV.js → core-5GI3ERXO.js} +3 -1
- package/dist/{core-AMWCZTOT.js → core-5L7TMK7I.js} +5 -1
- package/dist/{core-5S5CJHBG.js → core-7TO4OVY5.js} +2 -1
- package/dist/{core-BJZEJ63L.js → core-BJVENHFQ.js} +3 -1
- package/dist/{core-A7HXVSKB.js → core-BX4MFWKC.js} +2 -1
- package/dist/{core-4PW4MXWR.js → core-C3KXTOIZ.js} +4 -1
- package/dist/{core-SKMHEA4Y.js → core-C5Y6BFLL.js} +3 -1
- package/dist/{core-FTQBESDS.js → core-CLUSJ2SK.js} +3 -1
- package/dist/{core-QM34237W.js → core-E3IN2VVH.js} +2 -1
- package/dist/{core-4M4RY7MX.js → core-FD67NQOV.js} +3 -1
- package/dist/{core-WXZJ7V7S.js → core-FDKMLRAK.js} +4 -1
- package/dist/{core-L3UR75IJ.js → core-FL6Z3VVX.js} +4 -1
- package/dist/{core-XKXDXALI.js → core-JC7JUFPY.js} +6 -1
- package/dist/{core-WP73P4CW.js → core-JF33TADA.js} +5 -1
- package/dist/{core-DMDAXVMY.js → core-JH32ZAKM.js} +2 -1
- package/dist/{core-GS4DXDDG.js → core-JYYZPPQV.js} +4 -1
- package/dist/{core-N2JEWJ7D.js → core-KJTKCV4U.js} +2 -1
- package/dist/{core-7XKNJM7Y.js → core-LCQPE5Y6.js} +5 -1
- package/dist/{core-ZACFV6XR.js → core-LHVGWE54.js} +5 -1
- package/dist/{core-VT35VDVS.js → core-OVSNBOCE.js} +6 -1
- package/dist/{core-AVA4XLQ2.js → core-PPEC236B.js} +2 -1
- package/dist/{core-QFAVWFI3.js → core-QTJZDK5H.js} +2 -1
- package/dist/{core-VWYXK2R3.js → core-R3YZCOUZ.js} +4 -1
- package/dist/{core-OFPPRHYY.js → core-RIBW5XU4.js} +3 -1
- package/dist/{core-MAW4S3KA.js → core-RJFILBWL.js} +5 -1
- package/dist/{core-FCSA74RT.js → core-RWSXEKTE.js} +3 -1
- package/dist/{core-WPEYRK6Y.js → core-SOPPZLEH.js} +4 -1
- package/dist/{core-EMSJRGSE.js → core-TBUZCXLX.js} +2 -1
- package/dist/{core-OBPTBKX6.js → core-TZ5QLTAX.js} +2 -1
- package/dist/{core-JDZDBTID.js → core-U7E5W4MY.js} +2 -1
- package/dist/{core-ZSERZGK6.js → core-UBNVSL44.js} +3 -1
- package/dist/{core-WNT6ZMRO.js → core-UDRD4WIU.js} +2 -1
- package/dist/{core-VRVL6LIM.js → core-UVJZ4HY2.js} +3 -1
- package/dist/{core-7TTM4KRP.js → core-X7WWYQH4.js} +3 -1
- package/dist/{core-D2OIGYC7.js → core-XP56X47I.js} +4 -1
- package/dist/{core-CCB3IXGD.js → core-XQG54CYG.js} +3 -1
- package/dist/{dataTable-7IO546LM.js → dataTable-U7W4I6IF.js} +7 -2
- package/dist/{engine-US3N6UCH.js → engine-O5V26MGR.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-35GS47XC.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-H2S6WW4D.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-PHIHMDVB.js → schema-A26ZNGTZ.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-6PL46VXZ.js → schema-FU2AFIEE.js} +1 -3
- package/dist/{schema-XIHAKX3B.js → schema-JNJFCYBM.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-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-QPIC5MAG.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-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
- package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
- package/dist/{specValidation-XGELWQUU.js → specValidation-2NHJT7TQ.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/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 +32 -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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chartRefusals,
|
|
3
3
|
isRefused
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UCKUAKYQ.js";
|
|
5
5
|
import {
|
|
6
6
|
prepareFractionAnnotations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-42QKUSHJ.js";
|
|
8
8
|
import {
|
|
9
9
|
ASPECT_CAPS,
|
|
10
10
|
COMPACT_SOURCE_LINES,
|
|
@@ -18,8 +18,6 @@ import {
|
|
|
18
18
|
UNVERIFIED_DENSITY_REFUSALS,
|
|
19
19
|
aspectClassFor,
|
|
20
20
|
authoredNotes,
|
|
21
|
-
boundsOf,
|
|
22
|
-
createOccupiedIndex,
|
|
23
21
|
cutWithTitle,
|
|
24
22
|
dataOrder,
|
|
25
23
|
dateTickKeep,
|
|
@@ -42,7 +40,6 @@ import {
|
|
|
42
40
|
needsSeriesKey,
|
|
43
41
|
owedHiddenLabels,
|
|
44
42
|
plotChromeFloor,
|
|
45
|
-
rectsOverlap,
|
|
46
43
|
reportLabelOmissions,
|
|
47
44
|
scatterGroupIdentities,
|
|
48
45
|
scatterGroupNameIsDrawn,
|
|
@@ -55,7 +52,7 @@ import {
|
|
|
55
52
|
withDensityNotes,
|
|
56
53
|
withHiddenLabelNote,
|
|
57
54
|
withNoteInA11y
|
|
58
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-I5VDW2XZ.js";
|
|
59
56
|
import {
|
|
60
57
|
COMPACT_OMITTED_NOTES,
|
|
61
58
|
copyFrame,
|
|
@@ -68,7 +65,7 @@ import {
|
|
|
68
65
|
slotDemandHeight,
|
|
69
66
|
staticFrame,
|
|
70
67
|
withEngineNotes
|
|
71
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DZYTXZNS.js";
|
|
72
69
|
import {
|
|
73
70
|
DATE_NAME_LANGUAGES,
|
|
74
71
|
dateNames
|
|
@@ -83,7 +80,7 @@ import {
|
|
|
83
80
|
neededDecimals,
|
|
84
81
|
parseISODate,
|
|
85
82
|
utcDate
|
|
86
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
87
84
|
import {
|
|
88
85
|
AUTO_MAX_DECIMALS,
|
|
89
86
|
chartString,
|
|
@@ -95,23 +92,31 @@ import {
|
|
|
95
92
|
withSmallValues,
|
|
96
93
|
wordLanguage
|
|
97
94
|
} from "./chunk-MSYTF3DZ.js";
|
|
95
|
+
import {
|
|
96
|
+
cellValue
|
|
97
|
+
} from "./chunk-O3VN6BTL.js";
|
|
98
98
|
import {
|
|
99
99
|
presentationInfo
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-OZLKEBCD.js";
|
|
101
101
|
import {
|
|
102
102
|
DEFAULT_PRESET,
|
|
103
103
|
GRAMMAR_STROKE,
|
|
104
104
|
REMOVED_NAMES,
|
|
105
105
|
TABLE_HEAD_PARTS,
|
|
106
106
|
WIDE_CANVAS_MIN_WIDTH,
|
|
107
|
+
boundsOf,
|
|
107
108
|
casingUnderFills,
|
|
109
|
+
classStepWidth,
|
|
108
110
|
colorblindRoles,
|
|
111
|
+
createOccupiedIndex,
|
|
109
112
|
fillEdges,
|
|
110
113
|
gridDash,
|
|
111
114
|
labelsOnFills,
|
|
115
|
+
layoutStepKey,
|
|
112
116
|
libraryPatch,
|
|
113
117
|
marksOnBands,
|
|
114
118
|
panelTypeClass,
|
|
119
|
+
rectsOverlap,
|
|
115
120
|
referenceLineClearance,
|
|
116
121
|
removedNameWarnings,
|
|
117
122
|
resolveTargetTheme,
|
|
@@ -124,13 +129,13 @@ import {
|
|
|
124
129
|
textScaleOf,
|
|
125
130
|
textSizeOf,
|
|
126
131
|
withoutOrphanAnnotationMarks
|
|
127
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-TX5FSNAU.js";
|
|
128
133
|
import {
|
|
129
134
|
loadedDeferred
|
|
130
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-BQBD6Q5J.js";
|
|
131
136
|
import {
|
|
132
137
|
cubicPoint
|
|
133
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-6IUK6PAH.js";
|
|
134
139
|
import {
|
|
135
140
|
addWhereAbsent,
|
|
136
141
|
toJsonPointer
|
|
@@ -139,18 +144,16 @@ import {
|
|
|
139
144
|
DEFAULT_TARGET,
|
|
140
145
|
NormalizeError,
|
|
141
146
|
TARGET_SIZE,
|
|
147
|
+
normalizeCategory,
|
|
148
|
+
normalizeSeriesValues,
|
|
149
|
+
ranksCategories,
|
|
142
150
|
resolveCanvasOptions,
|
|
143
151
|
resolveSize,
|
|
144
152
|
resolveSubtitle,
|
|
145
153
|
resolveTargetSize,
|
|
146
154
|
targetFloorsPx,
|
|
147
155
|
withDefaultTarget
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import {
|
|
150
|
-
maxOf,
|
|
151
|
-
minOf,
|
|
152
|
-
pushAll
|
|
153
|
-
} from "./chunk-WYJEOMNY.js";
|
|
156
|
+
} from "./chunk-RJICOOB3.js";
|
|
154
157
|
import {
|
|
155
158
|
compareText,
|
|
156
159
|
defaultMeasurer,
|
|
@@ -158,6 +161,11 @@ import {
|
|
|
158
161
|
measureText,
|
|
159
162
|
wrapText
|
|
160
163
|
} from "./chunk-UIHGGWES.js";
|
|
164
|
+
import {
|
|
165
|
+
maxOf,
|
|
166
|
+
minOf,
|
|
167
|
+
pushAll
|
|
168
|
+
} from "./chunk-WYJEOMNY.js";
|
|
161
169
|
|
|
162
170
|
// src/core/layoutPlan.ts
|
|
163
171
|
var functionIds = /* @__PURE__ */ new WeakMap(), nextFunctionId = 0, keyFunction = (_key, value) => typeof value != "function" ? value : (functionIds.has(value) || functionIds.set(value, nextFunctionId++), `function ${functionIds.get(value)}`), inputs;
|
|
@@ -177,6 +185,13 @@ function memoExactInputKey(value, read) {
|
|
|
177
185
|
let key = read(value);
|
|
178
186
|
return keys.set(value, key), key;
|
|
179
187
|
}
|
|
188
|
+
function requestMemo(scope, key, compute) {
|
|
189
|
+
if (!inputs) return compute();
|
|
190
|
+
let results = inputs.results ??= /* @__PURE__ */ new WeakMap(), byKey = results.get(scope);
|
|
191
|
+
if (byKey || results.set(scope, byKey = /* @__PURE__ */ new Map()), byKey.has(key)) return byKey.get(key);
|
|
192
|
+
let value = compute();
|
|
193
|
+
return byKey.set(key, value), value;
|
|
194
|
+
}
|
|
180
195
|
function inputJson(value) {
|
|
181
196
|
let key = inputs?.json.get(value);
|
|
182
197
|
return key === void 0 && (key = JSON.stringify(value, keyFunction), inputs?.json.set(value, key)), key;
|
|
@@ -209,7 +224,8 @@ function optionKey(options) {
|
|
|
209
224
|
return "[{" + fields.join(",") + "}," + (valueKey(theme && typeof theme == "object" ? themeVersion(theme) : theme) ?? "null") + ",[" + symbols.join(",") + "]," + JSON.stringify(currentSmallValues()) + "]";
|
|
210
225
|
}
|
|
211
226
|
function layoutKey(data, options) {
|
|
212
|
-
|
|
227
|
+
let cap = layoutStepKey();
|
|
228
|
+
return (cap ? cap + ":" : "") + inputVersion(data) + ":" + optionKey(options);
|
|
213
229
|
}
|
|
214
230
|
var measurers = /* @__PURE__ */ new WeakMap(), wrappedMeasurers = /* @__PURE__ */ new WeakSet(), sameFont = (a, b) => a.family === b.family && a.size === b.size && a.weight === b.weight && a.style === b.style && a.letterSpacing === b.letterSpacing && a.tabular === b.tabular && a.lineHeight === b.lineHeight;
|
|
215
231
|
function tableTextMeasure(raw) {
|
|
@@ -270,7 +286,8 @@ function copyPlannedValue(value, copies = /* @__PURE__ */ new Map()) {
|
|
|
270
286
|
if (value instanceof Map) {
|
|
271
287
|
let copy2 = /* @__PURE__ */ new Map();
|
|
272
288
|
copies.set(value, copy2);
|
|
273
|
-
for (let [key, entry] of value)
|
|
289
|
+
for (let [key, entry] of value)
|
|
290
|
+
copy2.set(key !== null && typeof key == "object" ? copyPlannedValue(key, copies) : key, entry !== null && typeof entry == "object" ? copyPlannedValue(entry, copies) : entry);
|
|
274
291
|
return copy2;
|
|
275
292
|
}
|
|
276
293
|
if (value instanceof Set) {
|
|
@@ -290,9 +307,16 @@ function copyPlannedValue(value, copies = /* @__PURE__ */ new Map()) {
|
|
|
290
307
|
return copy;
|
|
291
308
|
}
|
|
292
309
|
var requestResults = /* @__PURE__ */ new WeakMap();
|
|
310
|
+
function contentKey(data, options, resolved) {
|
|
311
|
+
let cap = layoutStepKey();
|
|
312
|
+
return `${cap ? cap + ":" : ""}${inputJson(data)}:${optionKey(options)}:${inputJson(resolved)}`;
|
|
313
|
+
}
|
|
314
|
+
function requestKey(data, options, resolved) {
|
|
315
|
+
return `${layoutKey(data, options)}:${inputJson(resolved)}`;
|
|
316
|
+
}
|
|
293
317
|
function repeatedResult(data, options, resolved, layout) {
|
|
294
318
|
return withPlanInputs(() => {
|
|
295
|
-
let key =
|
|
319
|
+
let key = requestKey(data, options, resolved), byKey = requestResults.get(data);
|
|
296
320
|
return byKey || requestResults.set(data, byKey = /* @__PURE__ */ new Map()), byKey.size >= 32 && !byKey.has(key) && byKey.delete(byKey.keys().next().value), byKey.has(key) || byKey.set(key, layout()), copyPlannedValue(byKey.get(key));
|
|
297
321
|
});
|
|
298
322
|
}
|
|
@@ -980,7 +1004,7 @@ function yearRowRequests(plan, top) {
|
|
|
980
1004
|
function categoryLineAlign(plan, index) {
|
|
981
1005
|
return plan.rotation === 0 && (plan.infos[index]?.lines.length ?? 0) > 1 ? { align: "middle" } : {};
|
|
982
1006
|
}
|
|
983
|
-
var SIN45 = Math.SQRT1_2, ROTATED_NAME_AIR = 5, nth = (k) => `${k}${k % 100 >= 11 && k % 100 <= 13 ? "th" : ["th", "st", "nd", "rd"][k % 10] ?? "th"}`, ROTATED_HEIGHT_SHARE = 0.3, VERTICAL_HEIGHT_SHARE = 0.5, VERTICAL_MIN_WIDTH = 130, VERTICAL_MAX_LINES = 3;
|
|
1007
|
+
var SIN45 = Math.SQRT1_2, MIN_PLOT_WIDTH = 10, ROTATED_NAME_AIR = 5, nth = (k) => `${k}${k % 100 >= 11 && k % 100 <= 13 ? "th" : ["th", "st", "nd", "rd"][k % 10] ?? "th"}`, ROTATED_HEIGHT_SHARE = 0.3, VERTICAL_HEIGHT_SHARE = 0.5, VERTICAL_MIN_WIDTH = 130, VERTICAL_MAX_LINES = 3;
|
|
984
1008
|
function stackedName(label, font, room, lines, measure) {
|
|
985
1009
|
let least = Math.floor((measure(label, font).width - (lines - 1) * measure(" ", font).width) / lines) - 2;
|
|
986
1010
|
if (least > room) return;
|
|
@@ -1545,14 +1569,20 @@ function rotatedClaimRect(anchorX, anchorY, lineHeight, rowTop) {
|
|
|
1545
1569
|
let y = Math.max(anchorY - lineHeight * SIN45 / 2, rowTop === void 0 ? -1 / 0 : rowTop + 3);
|
|
1546
1570
|
return { x: anchorX - lineHeight, y, w: lineHeight, h: lineHeight };
|
|
1547
1571
|
}
|
|
1548
|
-
function rotatedLeftOverhang(plan, centers, minX) {
|
|
1572
|
+
function rotatedLeftOverhang(plan, centers, minX, plotWidth) {
|
|
1549
1573
|
if (plan.rotation !== 45) return 0;
|
|
1550
1574
|
let lineH = plan.font.size * (plan.font.lineHeight ?? 1.2), overhang = 0;
|
|
1551
1575
|
return plan.infos.forEach((info, i) => {
|
|
1552
1576
|
if (!plan.keep[i]) return;
|
|
1553
1577
|
let left = centers[i] - (info.w + lineH) * SIN45;
|
|
1554
1578
|
overhang = Math.max(overhang, minX - left);
|
|
1555
|
-
}), Math.ceil(overhang);
|
|
1579
|
+
}), Math.min(Math.ceil(overhang), Math.max(0, Math.floor(plotWidth - MIN_PLOT_WIDTH)));
|
|
1580
|
+
}
|
|
1581
|
+
function yieldToRotatedName(plan, band, count, x0, width, bandAt, planAt) {
|
|
1582
|
+
let overhang = rotatedLeftOverhang(plan, ((b) => Array.from({ length: count }, (_, i) => b.center(i)))(band), 4, width);
|
|
1583
|
+
if (overhang <= 0) return { plan, band, x0, width };
|
|
1584
|
+
let narrowed = bandAt(x0 + overhang, width - overhang), narrowPlan = planAt(narrowed);
|
|
1585
|
+
return narrowPlan.rotation !== 0 ? { plan: narrowPlan, band: narrowed, x0: x0 + overhang, width: width - overhang } : { plan: planAt(band, !1), band, x0, width };
|
|
1556
1586
|
}
|
|
1557
1587
|
function verticalNameRect(centerX, rowTop, width, font, lines = 1) {
|
|
1558
1588
|
let lineH = font.size * (font.lineHeight ?? 1.2), pivotX = centerX + font.size * VERTICAL_CAP_SHARE / 2 - (lines - 1) * lineH / 2, pivotY = rowTop + 4 + lineH * SIN45 / 2;
|
|
@@ -1817,8 +1847,8 @@ function aspectHeight(policy, size) {
|
|
|
1817
1847
|
}
|
|
1818
1848
|
var TALL_ASPECT_CAP_WIDTH = 720;
|
|
1819
1849
|
function hostlessHeight(policy, width, fallbackHeight, card = !1) {
|
|
1820
|
-
let full = aspectHeight(policy, { width, height: fallbackHeight }), aspect = card && policy.fit === "fill" && policy.aspect !== "16:9" && width < WIDE_CANVAS_MIN_WIDTH ? Math.min(full, aspectHeight(policy, { width: TALL_ASPECT_CAP_WIDTH, height: fallbackHeight })) : full, floor = card && policy.fit === "fill" ? policy.minHeight : requestFloor(policy).height;
|
|
1821
|
-
return card && policy.fit === "fill" && policy.aspect === "16:9" && width < WIDE_CANVAS_MIN_WIDTH ? floor : card && policy.fit === "fill" && floor > aspect && width < WIDE_CANVAS_MIN_WIDTH ? Math.ceil(floor) : policy.fit === "fill" && floor > aspect ? ladderHeights(width).find((step) => step.height >= floor)?.height ?? floor : Math.max(floor, aspect);
|
|
1850
|
+
let full = aspectHeight(policy, { width, height: fallbackHeight }), aspect = card && policy.fit === "fill" && policy.aspect !== "16:9" && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? Math.min(full, aspectHeight(policy, { width: TALL_ASPECT_CAP_WIDTH, height: fallbackHeight })) : full, floor = card && policy.fit === "fill" ? policy.minHeight : requestFloor(policy).height;
|
|
1851
|
+
return card && policy.fit === "fill" && policy.aspect === "16:9" && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? floor : card && policy.fit === "fill" && floor > aspect && classStepWidth(width) < WIDE_CANVAS_MIN_WIDTH ? Math.ceil(floor) : policy.fit === "fill" && floor > aspect ? ladderHeights(width).find((step) => step.height >= floor)?.height ?? floor : Math.max(floor, aspect);
|
|
1822
1852
|
}
|
|
1823
1853
|
var PLOT_FLOOR_PX = { report: 160, print: 160, slide: 160, dashboard: 140 }, PLOT_FLOOR_SHARE = 0.5, NARROW_SHARE_WIDTH = 600, NARROW_PLOT_FLOOR_SHARE = 0.4;
|
|
1824
1854
|
function plotFloorShare(width, options) {
|
|
@@ -1867,7 +1897,7 @@ function plotRepairHeight(geometry, target) {
|
|
|
1867
1897
|
);
|
|
1868
1898
|
}
|
|
1869
1899
|
function autoPlotPx(target, width) {
|
|
1870
|
-
return width >= WIDE_CANVAS_MIN_WIDTH ? PLOT_FLOOR_PX[target] : Math.max(PLOT_FLOOR_PX[target], Math.round(150 + 0.115 * width));
|
|
1900
|
+
return classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH ? PLOT_FLOOR_PX[target] : Math.max(PLOT_FLOOR_PX[target], Math.round(150 + 0.115 * width));
|
|
1871
1901
|
}
|
|
1872
1902
|
var STACKED_COLUMN_PLOT_PX = 80, STACKED_COLUMN_WIDE_PLOT_PX = 65;
|
|
1873
1903
|
function stackedColumnPlotPx(type, options, width) {
|
|
@@ -1876,9 +1906,9 @@ function stackedColumnPlotPx(type, options, width) {
|
|
|
1876
1906
|
}
|
|
1877
1907
|
var AREA100_PLOT_PX = 40, VARIANCE_ABSOLUTE_PLOT_PX = 45, VARIANCE_RELATIVE_NARROW_PLOT_PX = -25, MEKKO_UNIT_NARROW_PLOT_PX = -40;
|
|
1878
1908
|
function wholeBridgePlotPx(type, options, width) {
|
|
1879
|
-
if (type !== "waterfall" && type !== "pvm" || width === void 0 || width >= WIDE_CANVAS_MIN_WIDTH) return 0;
|
|
1880
|
-
let bridge = options;
|
|
1881
|
-
return bridge?.valueAxis?.break !== void 0 && bridge.valueAxis.break !== !1 ? 0 : type === "pvm" ? width < CARD_CLASS_WIDTH ? 20 :
|
|
1909
|
+
if (type !== "waterfall" && type !== "pvm" || width === void 0 || classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return 0;
|
|
1910
|
+
let narrow = classStepWidth(width) < 720, bridge = options;
|
|
1911
|
+
return bridge?.valueAxis?.break !== void 0 && bridge.valueAxis.break !== !1 ? 0 : type === "pvm" ? width < CARD_CLASS_WIDTH ? 20 : narrow ? 55 : 40 : bridge?.variant === "horizontal" ? width < CARD_CLASS_WIDTH ? 0 : narrow ? 15 : width < 960 ? 40 : 60 : width < 400 ? 80 : narrow ? 72 : Math.max(73, 100 - (width - 720) * 27 / 240);
|
|
1882
1912
|
}
|
|
1883
1913
|
function typePlotPx(type, options, width) {
|
|
1884
1914
|
if (type === "waterfall" || type === "pvm") return wholeBridgePlotPx(type, options, width);
|
|
@@ -2202,14 +2232,14 @@ function grownForNotes(definition, data, options, first, compact = !1, atSize) {
|
|
|
2202
2232
|
let width = first.size.width, at = (height) => {
|
|
2203
2233
|
let layout = fitOnce(definition, data, { ...options, size: { width, height } }, compact, atSize);
|
|
2204
2234
|
return !layout.refused && layout.sizing && widthOnly(options?.size) && (layout.sizing = { ...layout.sizing, naturalHeight: Math.max(layout.sizing.naturalHeight, layout.size.height) }), layout;
|
|
2205
|
-
}, target = options.target, share = autoPlotShare(definition, options, width), fill = declaredSizing(definition, options).fit !== "content" && definition.type !== "grid", short = (layout) => fill && !layout.refused && plotFloorHeight(layout, target, PLOT_FLOOR_PX[target], share, freedChromeOf(layout.frame)) > layout.size.height + SIZE_TOLERANCE, ladder = ladderHeights(width).map((step) => step.height).filter((height) => height > first.size.height * (1 + LADDER_TOLERANCE)), steps = width >= WIDE_CANVAS_MIN_WIDTH || ladder.length > 0 ? ladder : [Math.ceil(first.size.height * (1 + NOTE_GROWTH_SHARE))], below = first.size.height, top;
|
|
2235
|
+
}, target = options.target, share = autoPlotShare(definition, options, width), fill = declaredSizing(definition, options).fit !== "content" && definition.type !== "grid", short = (layout) => fill && !layout.refused && plotFloorHeight(layout, target, PLOT_FLOOR_PX[target], share, freedChromeOf(layout.frame)) > layout.size.height + SIZE_TOLERANCE, ladder = ladderHeights(width).map((step) => step.height).filter((height) => height > first.size.height * (1 + LADDER_TOLERANCE)), steps = classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH || ladder.length > 0 ? ladder : [Math.ceil(first.size.height * (1 + NOTE_GROWTH_SHARE))], below = first.size.height, top;
|
|
2206
2236
|
for (let height of steps) {
|
|
2207
2237
|
let next = at(height);
|
|
2208
2238
|
if (next.refused || (top = next), next.refused || owes(next) || short(next)) {
|
|
2209
2239
|
below = height;
|
|
2210
2240
|
continue;
|
|
2211
2241
|
}
|
|
2212
|
-
if (width >= WIDE_CANVAS_MIN_WIDTH) return next;
|
|
2242
|
+
if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return next;
|
|
2213
2243
|
let best2 = next, low2 = below, high2 = height;
|
|
2214
2244
|
for (; high2 - low2 > 1; ) {
|
|
2215
2245
|
let mid = Math.floor((low2 + high2) / 2), probe = at(mid);
|
|
@@ -2218,7 +2248,7 @@ function grownForNotes(definition, data, options, first, compact = !1, atSize) {
|
|
|
2218
2248
|
return best2;
|
|
2219
2249
|
}
|
|
2220
2250
|
let noted = (layout) => layout.refused ? 1 / 0 : layout.labels.filter(notedForSize).length;
|
|
2221
|
-
if (width >= WIDE_CANVAS_MIN_WIDTH || top === void 0 || noted(top) >= noted(first) || short(top)) return first;
|
|
2251
|
+
if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH || top === void 0 || noted(top) >= noted(first) || short(top)) return first;
|
|
2222
2252
|
let goal = noted(top), best = top, low = first.size.height, high = top.size.height;
|
|
2223
2253
|
for (; high - low > 1; ) {
|
|
2224
2254
|
let mid = Math.floor((low + high) / 2), probe = at(mid);
|
|
@@ -2243,7 +2273,7 @@ function grownForFurniture(definition, data, options, first, compact = !1, atSiz
|
|
|
2243
2273
|
return !layout.refused && layout.sizing && widthOnly(options?.size) && (layout.sizing = { ...layout.sizing, naturalHeight: Math.max(layout.sizing.naturalHeight, layout.size.height) }), layout;
|
|
2244
2274
|
}, steps = ladderHeights(width).map((step) => step.height).filter((height2) => height2 > first.size.height).sort((a, b) => a - b), top = steps.at(-1);
|
|
2245
2275
|
if (top === void 0 || Math.ceil(furnitureShare(first) * first.size.height / budget) > top) return first;
|
|
2246
|
-
if (width >= WIDE_CANVAS_MIN_WIDTH) {
|
|
2276
|
+
if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) {
|
|
2247
2277
|
for (let height2 of steps) {
|
|
2248
2278
|
let next = at(height2);
|
|
2249
2279
|
if (!over(next)) return next;
|
|
@@ -2260,7 +2290,11 @@ function grownForFurniture(definition, data, options, first, compact = !1, atSiz
|
|
|
2260
2290
|
}
|
|
2261
2291
|
return first;
|
|
2262
2292
|
}
|
|
2263
|
-
var HARD_MINIMUM = /* @__PURE__ */ Symbol("boardplot.hardMinimum"), LAYOUT_CALL = /* @__PURE__ */ Symbol("boardplot.layoutCall"), FULL_LAYOUT_PROBE = /* @__PURE__ */ Symbol("boardplot.fullLayoutProbe"), VERIFY_ADVICE = /* @__PURE__ */ Symbol("boardplot.verifyAdvice"), FORCE_COMPACT = /* @__PURE__ */ Symbol("boardplot.forceCompact"),
|
|
2293
|
+
var HARD_MINIMUM = /* @__PURE__ */ Symbol("boardplot.hardMinimum"), LAYOUT_CALL = /* @__PURE__ */ Symbol("boardplot.layoutCall"), FULL_LAYOUT_PROBE = /* @__PURE__ */ Symbol("boardplot.fullLayoutProbe"), VERIFY_ADVICE = /* @__PURE__ */ Symbol("boardplot.verifyAdvice"), FORCE_COMPACT = /* @__PURE__ */ Symbol("boardplot.forceCompact"), NARROW_FORM = /* @__PURE__ */ Symbol("boardplot.narrowForm"), NARROW_FORM_TYPES = /* @__PURE__ */ new Set(["bullet", "grid", "heatmap", "status", "waffle", "waterfall"]), SIDE_KEY_OFF = /* @__PURE__ */ Symbol("boardplot.sideKeyOff"), sideKeyOff = (options) => options[SIDE_KEY_OFF] === !0;
|
|
2294
|
+
function sideKeyGivesWay(options, geo, again) {
|
|
2295
|
+
return options.mode !== "compact" || sideKeyOff(options) || geo.refused || !geo.sizing || geo.sizing.minWidth <= geo.size.width + SIZE_TOLERANCE || !geo.frame?.warnings?.some((warning) => warning.code === "legend-beside-plot") ? geo : again({ ...options, [SIDE_KEY_OFF]: !0 });
|
|
2296
|
+
}
|
|
2297
|
+
var WIDTH_PROBE = /* @__PURE__ */ Symbol("boardplot.widthProbe"), FIXED_SIZE_PROBE = /* @__PURE__ */ Symbol("boardplot.fixedSizeProbe"), ACCEPTANCE_PROBE = /* @__PURE__ */ Symbol("boardplot.acceptanceProbe");
|
|
2264
2298
|
function isWidthProbe(type, options) {
|
|
2265
2299
|
return options?.[WIDTH_PROBE] === type && options?.belowMinimum === "refuse" && panelTypeClass(options) === void 0;
|
|
2266
2300
|
}
|
|
@@ -2285,13 +2319,21 @@ function compactReplacesRefusal(definition, options, data) {
|
|
|
2285
2319
|
return !(requested.fixed.height && !fitsSize(requested.sizePx, declaredSizing(definition, options)));
|
|
2286
2320
|
}
|
|
2287
2321
|
var CARD_HEIGHT_MEMO = /* @__PURE__ */ Symbol("boardplot.cardHeightMemo");
|
|
2322
|
+
function sameContent(a, b, depth = 0) {
|
|
2323
|
+
if (a === b) return !0;
|
|
2324
|
+
if (depth > 24 || typeof a != "object" || typeof b != "object" || a === null || b === null) return !1;
|
|
2325
|
+
let proto = Object.getPrototypeOf(a);
|
|
2326
|
+
if (proto !== Object.getPrototypeOf(b) || !Array.isArray(a) && proto !== Object.prototype && proto !== null) return !1;
|
|
2327
|
+
let keys = Reflect.ownKeys(a);
|
|
2328
|
+
return keys.length === Reflect.ownKeys(b).length && keys.every((key) => Object.hasOwn(b, key) && sameContent(a[key], b[key], depth + 1));
|
|
2329
|
+
}
|
|
2288
2330
|
function cardReferenceHeight(data, options, wider, draw, capture) {
|
|
2289
2331
|
let memo = options[CARD_HEIGHT_MEMO];
|
|
2290
2332
|
if (!memo?.active) {
|
|
2291
2333
|
let result2 = draw(wider);
|
|
2292
2334
|
return result2.refused ? void 0 : result2.size.height;
|
|
2293
2335
|
}
|
|
2294
|
-
let
|
|
2336
|
+
let entries = memo.references ??= [], match = entries.find((entry) => entry.data === data && resolveSize(entry.options.size, entry.options.target).width === resolveSize(wider.size, wider.target).width && [.../* @__PURE__ */ new Set([...Object.keys(entry.options), ...Object.keys(wider)])].every((key) => key === "size" || sameContent(entry.options[key], wider[key])));
|
|
2295
2337
|
if (match)
|
|
2296
2338
|
return match.restore?.(), match.height;
|
|
2297
2339
|
let result = draw({ ...wider, [CARD_HEIGHT_MEMO]: memo }), height = result.refused ? void 0 : result.size.height;
|
|
@@ -2362,7 +2404,7 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
|
|
|
2362
2404
|
return tall.refused ? settled : tall;
|
|
2363
2405
|
}
|
|
2364
2406
|
if (!nested) {
|
|
2365
|
-
let plotShare = autoPlotShare(definition, options, width), floorShare = autoPlotShare(definition, { ...options, [PLOT_SHARE]: void 0 }, width), freed = (r) => r.refused ? 0 : freedChromeOf(r.frame);
|
|
2407
|
+
let plotShare = autoPlotShare(definition, options, width), floorShare = autoPlotShare(definition, { ...options, [PLOT_SHARE]: void 0 }, width), freed = (r) => r.refused ? 0 : freedChromeOf(r.frame), ownStart = height;
|
|
2366
2408
|
width < CARD_CLASS_WIDTH && (height = Math.max(height, cardClassHeight(definition, data, options, width, !0) ?? 0));
|
|
2367
2409
|
let wholeAxis = { ...options, valueAxis: { ...options.valueAxis, break: !1 } }, drawnProbe = declared.aspect === "16:9" && options?.valueAxis?.break === "auto" && wholeBridgePlotPx(definition.type, wholeAxis, width) !== 0 ? at(width, height) : void 0, allowanceOptions = drawnProbe && !drawnProbe.refused && !drawnProbe.axes.some((axis) => axis.break) && !drawnProbe.scene.some((node) => node.t === "line" && (node.part === "barBreak" || node.part === "axisBreak")) ? wholeAxis : options, plotPx = declared.aspect === "16:9" ? autoPlotPx(target, width) + typePlotPx(definition.type, allowanceOptions, width) : PLOT_FLOOR_PX[target], search = (plotPx2, startHeight) => {
|
|
2368
2410
|
let height2 = startHeight, previous, directRefusal, triedDirectRefusal = !1;
|
|
@@ -2411,7 +2453,12 @@ function fitOnce(definition, data, options, compactFallback, atSize) {
|
|
|
2411
2453
|
height2 = floor > height2 ? floor : need;
|
|
2412
2454
|
}
|
|
2413
2455
|
return at(width, height2);
|
|
2414
|
-
}, first = search(plotPx, height)
|
|
2456
|
+
}, first = search(plotPx, height);
|
|
2457
|
+
if (height > ownStart && first.refused && first.size.width + SIZE_TOLERANCE < (first.sizing?.minWidth ?? 0)) {
|
|
2458
|
+
let own = search(plotPx, ownStart);
|
|
2459
|
+
if (!own.refused) return own;
|
|
2460
|
+
}
|
|
2461
|
+
let plainPx = declared.aspect === "16:9" ? autoPlotPx(target, width) + typePlotPx(definition.type, options) : plotPx;
|
|
2415
2462
|
if (plainPx === plotPx || hiddenForSpace(first) === 0) return first;
|
|
2416
2463
|
let plain = search(plainPx, height);
|
|
2417
2464
|
if (hiddenForSpace(plain) >= hiddenForSpace(first)) return first;
|
|
@@ -2557,7 +2604,7 @@ function fitSizeMemo(definition, data, options, compactFallback, keys) {
|
|
|
2557
2604
|
} finally {
|
|
2558
2605
|
memoKeyData = void 0;
|
|
2559
2606
|
}
|
|
2560
|
-
let key = `${memoId(definition)}|${memoId(data)}|${compactFallback}|${definition.type === "gantt" && card ? memoId(card) : ""}|${optionsKey}`, entry = memo.get(key) ?? {};
|
|
2607
|
+
let key = `${memoId(definition)}|${memoId(data)}|${compactFallback}|${definition.type === "gantt" && card ? memoId(card) : ""}|${layoutStepKey()}|${optionsKey}`, entry = memo.get(key) ?? {};
|
|
2561
2608
|
if (entry.result) return memoCopy(entry.result);
|
|
2562
2609
|
let shared = entry.byShare?.get(share);
|
|
2563
2610
|
if (shared)
|
|
@@ -2583,8 +2630,12 @@ function columnBarFloor(geometry) {
|
|
|
2583
2630
|
let bars = geometry.marks?.bars ?? [], thinnest = Math.min(...bars.map((bar) => bar.rect.w).filter((w) => w > 0));
|
|
2584
2631
|
return !Number.isFinite(thinnest) || thinnest >= MIN_COLUMN_BAR ? 0 : Math.min(CARD_MIN_WIDTH, Math.ceil(geometry.size.width - geometry.plot.w + geometry.plot.w * MIN_COLUMN_BAR / thinnest));
|
|
2585
2632
|
}
|
|
2633
|
+
function sizeGate(definition, data, options, compactFallback, declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target)) {
|
|
2634
|
+
let nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared), growsFull = definition.type === "pie" && !(options?.[TARGET_SIZE] ?? resolveTargetSize(options?.target ?? DEFAULT_TARGET, options?.size)).fixed.height, tight = !nested && (compactFallback || belowMinimum(declared, growsFull ? { ...requested, height: declared.minHeight } : requested, options, definition.type)), gateWidth = definition.type === "column" && !columnCannotFit(data, options, requested.width) ? Math.min(floor.width, NARROW_MIN_WIDTH) : floor.width, gatePolicy = tight ? { ...declared, minWidth: gateWidth, minHeight: floor.height } : declared;
|
|
2635
|
+
return { tight, gatePolicy };
|
|
2636
|
+
}
|
|
2586
2637
|
function fitSize(definition, data, options, compactFallback) {
|
|
2587
|
-
let declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target), nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared),
|
|
2638
|
+
let declared = declaredSizing(definition, options), requested = resolveSize(options?.size, options?.target), nested = panelTypeClass(options) !== void 0, floor = requestFloor(declared), { tight, gatePolicy } = sizeGate(definition, data, options, compactFallback, declared, requested);
|
|
2588
2639
|
if (!nested && !fitsSize(requested, definition.type === "grid" ? { ...gatePolicy, minHeight: 0 } : gatePolicy))
|
|
2589
2640
|
return sizeRefusal(definition.type, definition.title, requested, resolveSizing(gatePolicy, requested));
|
|
2590
2641
|
let mode = tight || definition.type !== "mekko" && options?.mode === "compact" ? "compact" : "full", layoutOptions = mode === "compact" ? compactOptions(definition.type, options ?? {}, tight ? floor : void 0, requested.width) : options, rawOptions = definition.type === "kpi" ? { ...layoutOptions, typeClass: "M" } : layoutOptions, layout = (runOptions) => {
|
|
@@ -2690,15 +2741,14 @@ var BUDGETED_LISTS = {
|
|
|
2690
2741
|
cohort: ["cohorts"]
|
|
2691
2742
|
}, TOP_N_TYPES = /* @__PURE__ */ new Set(["bar", "butterfly", "column", "dot", "mekko", "pareto", "likert", "pyramid", "variance"]), VIEWPORT_TYPES = /* @__PURE__ */ new Set(["column", "combo"]);
|
|
2692
2743
|
function barTotalsAtLeast(data, threshold) {
|
|
2693
|
-
let
|
|
2694
|
-
if (Array.isArray(series)
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
}
|
|
2744
|
+
let { categories, series } = data;
|
|
2745
|
+
if (!Array.isArray(series) || !Array.isArray(categories)) return 0;
|
|
2746
|
+
let cats = categories.map(normalizeCategory), totals = new Float64Array(cats.length);
|
|
2747
|
+
series.forEach((one, index) => {
|
|
2748
|
+
ranksCategories(one) && normalizeSeriesValues(one, cats, index).forEach((cell, i) => {
|
|
2749
|
+
totals[i] = totals[i] + (cellValue(cell) ?? 0);
|
|
2750
|
+
});
|
|
2751
|
+
});
|
|
2702
2752
|
let count = 0;
|
|
2703
2753
|
for (let total of totals) Math.abs(total) >= threshold && (count += 1);
|
|
2704
2754
|
return count;
|
|
@@ -2712,7 +2762,7 @@ function drawnCount(type, key, list, data, options) {
|
|
|
2712
2762
|
let topN = options?.topN;
|
|
2713
2763
|
if (TOP_N_TYPES.has(type) && topN?.n !== void 0 && topN.n > 0 && !(type === "column" && options?.anomaly)) {
|
|
2714
2764
|
let kept = Math.min(count, type === "bar" ? Math.max(1, topN.n) : topN.n);
|
|
2715
|
-
type === "bar" && topN.threshold !== void 0 && (kept = Math.min(kept, Math.max(1, barTotalsAtLeast(data, topN.threshold)))), count = Math.min(count, kept + (type === "dot" || type === "variance" || topN.rest === !1 || kept === count ? 0 : 1));
|
|
2765
|
+
(type === "bar" || type === "column") && topN.threshold !== void 0 && (kept = Math.min(kept, Math.max(1, barTotalsAtLeast(data, topN.threshold)))), count = Math.min(count, kept + (type === "dot" || type === "variance" || topN.rest === !1 || kept === count ? 0 : 1));
|
|
2716
2766
|
}
|
|
2717
2767
|
if (VIEWPORT_TYPES.has(type) && key === "categories") {
|
|
2718
2768
|
let ends = options?.viewDomain?.x;
|
|
@@ -2996,12 +3046,12 @@ function thinAxisTicks(ticks, scale, orient, format, font, measure, labelX, keep
|
|
|
2996
3046
|
let keep = sweepHide(itemsFor(ticks), 2);
|
|
2997
3047
|
return ticks.filter((_, index) => keep[index]);
|
|
2998
3048
|
}
|
|
2999
|
-
function inferLinearYDomain(geometry) {
|
|
3000
|
-
let ticks = geometry.axes.find((axis) => axis.axis ===
|
|
3049
|
+
function inferLinearYDomain(geometry, axisName = "y") {
|
|
3050
|
+
let ticks = geometry.axes.find((axis) => axis.axis === axisName)?.ticks.filter((tick) => typeof tick.at == "number");
|
|
3001
3051
|
if (!ticks || ticks.length < 2) return null;
|
|
3002
3052
|
let a = ticks[0], b = ticks.find((tick) => tick.pos !== a.pos);
|
|
3003
3053
|
if (!b) return null;
|
|
3004
|
-
let valueAt = (position) => a.at + (position - a.pos) * (b.at - a.at) / (b.pos - a.pos), roundDomain = (value) => Math.round(value * 1e9) / 1e9,
|
|
3054
|
+
let valueAt = (position) => a.at + (position - a.pos) * (b.at - a.at) / (b.pos - a.pos), roundDomain = (value) => Math.round(value * 1e9) / 1e9, [start, length] = axisName === "y" ? [geometry.plot.y, geometry.plot.h] : [geometry.plot.x, geometry.plot.w], bounds = [valueAt(start), valueAt(start + length)].map(roundDomain);
|
|
3005
3055
|
return [Math.min(bounds[0], bounds[1]), Math.max(bounds[0], bounds[1])];
|
|
3006
3056
|
}
|
|
3007
3057
|
var BREAK_HALF_SEPARATION = 2;
|
|
@@ -3353,7 +3403,7 @@ function registerChart(def) {
|
|
|
3353
3403
|
}
|
|
3354
3404
|
return { geo: geo2, noteRefused: !1 };
|
|
3355
3405
|
}, sClassMinimum = (minimum, size) => {
|
|
3356
|
-
if (nested || isWidthProbe(def.type, options) || minimum.aspect !== "content" || size.width < 720 || minimum.minWidth >= 720) return minimum;
|
|
3406
|
+
if (nested || isWidthProbe(def.type, options) || minimum.aspect !== "content" || classStepWidth(size.width) < 720 || minimum.minWidth >= 720) return minimum;
|
|
3357
3407
|
let at = Math.max(Math.ceil(minimum.minWidth), CARD_MIN_WIDTH), probe;
|
|
3358
3408
|
try {
|
|
3359
3409
|
probe = legendLayout(withoutForcedCompact({
|
|
@@ -3451,7 +3501,7 @@ function registerChart(def) {
|
|
|
3451
3501
|
severity: "warn",
|
|
3452
3502
|
message: `${truncated.length} placed label(s) omit text; the reading lists their full text in labelsTruncated`,
|
|
3453
3503
|
suggest: "give the labels more room or shorten their text"
|
|
3454
|
-
}), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, nested)), options[PLAN_ONLY] || (geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale)), pushAll(geo.warnings, removedNames), geo;
|
|
3504
|
+
}), pushAll(geo.warnings, unmatchedIdWarnings(geo, data, def.type === "sankey" ? void 0 : options?.highlight, pins, options?.labelOffsets, nested)), options[PLAN_ONLY] || (geo.presentation = presentationInfo(geo, target, panelTypeClass(options), textScale)), pushAll(geo.warnings, removedNames), geo;
|
|
3455
3505
|
}), layout2 = ((options) => withSmallValues(prepared.smallValues, () => layoutBody(options)));
|
|
3456
3506
|
return layout2.finish = () => {
|
|
3457
3507
|
legendLayout.finish();
|
|
@@ -3481,6 +3531,11 @@ function registerChart(def) {
|
|
|
3481
3531
|
if (def.namesMustPrint === !0 && !full.refused && full.mode !== "compact" && lostCategoryNames(full).length > 0) {
|
|
3482
3532
|
let compact2 = compactFallbackApplies(def, options, data) ? layoutOnce({ ...options, [FORCE_COMPACT]: !0 }) : full;
|
|
3483
3533
|
if (compact2 !== full && !isRefused(compact2) && lostCategoryNames(compact2).length === 0) return compact2;
|
|
3534
|
+
let natural = full.sizing?.naturalHeight;
|
|
3535
|
+
if (!resolveTargetSize(options?.target ?? DEFAULT_TARGET, options?.size).fixed.height && natural !== void 0 && natural > full.size.height && !options?.[FIXED_SIZE_PROBE]) {
|
|
3536
|
+
let taller = layoutOnce({ ...options, size: { width: full.size.width, height: Math.ceil(natural) } });
|
|
3537
|
+
if (!isRefused(taller) && lostCategoryNames(taller).length === 0) return taller;
|
|
3538
|
+
}
|
|
3484
3539
|
let wider = widerForNames(full, options, layoutOnce);
|
|
3485
3540
|
return wider || hiddenLabelCollision(def.title, full, new Map(lostCategoryNames(full).map((label) => [label.id, label.text])));
|
|
3486
3541
|
}
|
|
@@ -3603,7 +3658,7 @@ function inheritGridTarget(data, target, textScale, textSize) {
|
|
|
3603
3658
|
if (entry.type === "text" || entry.type === "legend") return entry;
|
|
3604
3659
|
let { textScale: _own, textSize: ownSize, ...options } = entry.options ?? {};
|
|
3605
3660
|
if (ownSize !== void 0 && ownSize !== textSize)
|
|
3606
|
-
throw new NormalizeError("grid-panel-text-size", "options.textSize", "a grid panel cannot set its own textSize", "set textSize once on the grid");
|
|
3661
|
+
throw new NormalizeError("grid-panel-text-size", "options.textSize", "a grid panel cannot set its own textSize", "set textSize once on the grid", void 0, ["options", "textSize"]);
|
|
3607
3662
|
return { ...entry, options: { ...options, target, ...textSize !== void 0 ? { textSize } : textScale === 1 ? {} : { textScale } } };
|
|
3608
3663
|
}, grid = data;
|
|
3609
3664
|
return {
|
|
@@ -3630,23 +3685,28 @@ function hiddenLabelCollision(title, geo, owed, noteMissing = !1) {
|
|
|
3630
3685
|
suggest: "Shorten or move the named labels, or remove the colliding element."
|
|
3631
3686
|
}] };
|
|
3632
3687
|
}
|
|
3633
|
-
function unmatchedIdWarnings(geo, data, highlight, pins, nested) {
|
|
3688
|
+
function unmatchedIdWarnings(geo, data, highlight, pins, offsets, nested) {
|
|
3634
3689
|
let list = (ids) => {
|
|
3635
3690
|
let all = [...new Set(ids)];
|
|
3636
3691
|
return all.length > 20 ? `${all.slice(0, 20).join(", ")} and ${all.length - 20} more` : all.join(", ") || "none";
|
|
3637
3692
|
}, warnings = [], asked = typeof highlight == "string" ? [highlight] : Array.isArray(highlight) ? highlight.filter((id) => typeof id == "string") : [];
|
|
3638
3693
|
if (asked.length > 0 && !geo.warnings.some((warning) => warning.code === "highlight-unknown-id")) {
|
|
3639
|
-
let owned = geo.scene.flatMap((node) => [
|
|
3694
|
+
let seriesOnly = geo.type === "line" || geo.type === "slope", dataSeries = seriesOnly ? new Set(geo.marks.series.map((series) => series.seriesId)) : void 0, owned = geo.scene.flatMap((node) => dataSeries ? node.owner?.seriesId !== void 0 && dataSeries.has(node.owner.seriesId) ? [node.owner.seriesId] : [] : [
|
|
3640
3695
|
...node.id?.includes("/") ? [node.id.slice(0, node.id.indexOf("/"))] : [],
|
|
3641
3696
|
...Object.values(node.owner ?? {}).filter((id) => typeof id == "string")
|
|
3642
3697
|
]), points = data?.points;
|
|
3643
3698
|
Array.isArray(points) && pushAll(owned, points.map((point) => point?.group).filter((id) => typeof id == "string"));
|
|
3644
|
-
let known = new Set(owned)
|
|
3699
|
+
let known = new Set(owned);
|
|
3700
|
+
if (geo.type === "line") {
|
|
3701
|
+
let series = geo.marks.series;
|
|
3702
|
+
for (let entry of series) for (let point of entry.points) point.highlighted && known.add(point.categoryId);
|
|
3703
|
+
}
|
|
3704
|
+
let unknown = [...new Set(asked.filter((id) => !known.has(id)))];
|
|
3645
3705
|
unknown.length > 0 && warnings.push({
|
|
3646
3706
|
code: "highlight-unknown-id",
|
|
3647
3707
|
severity: "warn",
|
|
3648
|
-
message: `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which no mark of this chart carries, so nothing is highlighted for it; ids here: ${list(owned)}`,
|
|
3649
|
-
suggest: "Name a series, category, point or row id of this chart.",
|
|
3708
|
+
message: seriesOnly ? `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which cannot highlight a drawn data series${geo.type === "line" ? " or eligible point" : ""} of this chart; series ids here: ${list(owned)}${geo.type === "line" ? ". Category emphasis works only on a plain line with one data series and no fan." : ""}` : `highlight names ${unknown.map((id) => `'${id}'`).join(", ")}, which no mark of this chart carries, so nothing is highlighted for it; ids here: ${list(owned)}`,
|
|
3709
|
+
suggest: seriesOnly ? "Name a drawn data series id of this chart, or remove the highlight." : "Name a series, category, point or row id of this chart.",
|
|
3650
3710
|
// A grid panel's field is relative to the panel; the grid names the panel in the message.
|
|
3651
3711
|
...nested ? {} : { field: ["options", "highlight"] }
|
|
3652
3712
|
});
|
|
@@ -3663,6 +3723,18 @@ function unmatchedIdWarnings(geo, data, highlight, pins, nested) {
|
|
|
3663
3723
|
...nested ? {} : { field: ["options", "labelPlacements", id] }
|
|
3664
3724
|
});
|
|
3665
3725
|
}
|
|
3726
|
+
let moved2 = Object.keys(offsets ?? {});
|
|
3727
|
+
if (moved2.length > 0) {
|
|
3728
|
+
let labels = [...geo.labels.map((label) => label.id), ...geo.debug.decisions.map((decision) => decision.labelId)], own = geo.type === "grid" ? labels.filter((id) => !id.includes("/")) : labels, known = new Set(own);
|
|
3729
|
+
for (let id of moved2.filter((key) => !known.has(key)))
|
|
3730
|
+
warnings.push({
|
|
3731
|
+
code: "label-offset-unknown",
|
|
3732
|
+
severity: "warn",
|
|
3733
|
+
message: `labelOffsets names label '${id}', which this chart does not draw, so the offset does nothing; label ids: ${list(own)}`,
|
|
3734
|
+
suggest: geo.type === "grid" ? "Set labelOffsets in the options of the panel that draws the label." : "Use a label id from the list, or remove the offset.",
|
|
3735
|
+
...nested ? {} : { field: ["options", "labelOffsets", id] }
|
|
3736
|
+
});
|
|
3737
|
+
}
|
|
3666
3738
|
return warnings;
|
|
3667
3739
|
}
|
|
3668
3740
|
function noPlottedValuesWarning(data) {
|
|
@@ -3745,6 +3817,7 @@ var unsupported = [
|
|
|
3745
3817
|
export {
|
|
3746
3818
|
withPlanInputs,
|
|
3747
3819
|
memoExactInputKey,
|
|
3820
|
+
requestMemo,
|
|
3748
3821
|
ownPlanInput,
|
|
3749
3822
|
optionKey,
|
|
3750
3823
|
layoutKey,
|
|
@@ -3755,6 +3828,7 @@ export {
|
|
|
3755
3828
|
plannedCutCount,
|
|
3756
3829
|
materializeLayout,
|
|
3757
3830
|
copyPlannedValue,
|
|
3831
|
+
contentKey,
|
|
3758
3832
|
repeatedResult,
|
|
3759
3833
|
caseInsensitiveValue,
|
|
3760
3834
|
inputConversion,
|
|
@@ -3765,6 +3839,7 @@ export {
|
|
|
3765
3839
|
checkPointBudget,
|
|
3766
3840
|
typeDocLints,
|
|
3767
3841
|
themeForDensity,
|
|
3842
|
+
omittedCompactNotes,
|
|
3768
3843
|
AUTO_LEGEND,
|
|
3769
3844
|
isAutomaticLegend,
|
|
3770
3845
|
normalizedName,
|
|
@@ -3843,6 +3918,7 @@ export {
|
|
|
3843
3918
|
categoryCutLint,
|
|
3844
3919
|
rotatedClaimRect,
|
|
3845
3920
|
rotatedLeftOverhang,
|
|
3921
|
+
yieldToRotatedName,
|
|
3846
3922
|
verticalNameRect,
|
|
3847
3923
|
tallestContentHeight,
|
|
3848
3924
|
rowDrivenHeight,
|
|
@@ -3887,11 +3963,16 @@ export {
|
|
|
3887
3963
|
FULL_LAYOUT_PROBE,
|
|
3888
3964
|
VERIFY_ADVICE,
|
|
3889
3965
|
FORCE_COMPACT,
|
|
3966
|
+
NARROW_FORM,
|
|
3967
|
+
NARROW_FORM_TYPES,
|
|
3968
|
+
sideKeyOff,
|
|
3969
|
+
sideKeyGivesWay,
|
|
3890
3970
|
WIDTH_PROBE,
|
|
3891
3971
|
FIXED_SIZE_PROBE,
|
|
3892
3972
|
ACCEPTANCE_PROBE,
|
|
3893
3973
|
isWidthProbe,
|
|
3894
3974
|
compactFallbackApplies,
|
|
3895
3975
|
CARD_HEIGHT_MEMO,
|
|
3896
|
-
cardReferenceHeight
|
|
3976
|
+
cardReferenceHeight,
|
|
3977
|
+
sizeGate
|
|
3897
3978
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
periodSpanName
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JNDWRV34.js";
|
|
4
4
|
import {
|
|
5
5
|
warnIncompleteComposition
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AICO24HJ.js";
|
|
7
7
|
import {
|
|
8
8
|
SHARES_OF_ONE_WHOLE_FIX
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5ACFYNA4.js";
|
|
10
10
|
import {
|
|
11
|
-
cleanSum,
|
|
12
11
|
defaultAnnotationId
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F2ET5ZTT.js";
|
|
14
13
|
import {
|
|
15
|
-
|
|
14
|
+
formatNonzeroWithSpec,
|
|
16
15
|
specUnitKind
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
18
17
|
import {
|
|
19
18
|
localeStrings
|
|
20
19
|
} from "./chunk-MSYTF3DZ.js";
|
|
20
|
+
import {
|
|
21
|
+
cleanSum
|
|
22
|
+
} from "./chunk-TX5FSNAU.js";
|
|
21
23
|
|
|
22
24
|
// src/core/charts/band/stacks.ts
|
|
23
25
|
var sk = (a, b) => `${a}${b}`;
|
|
@@ -43,9 +45,10 @@ function netLineName(series, boundary, stacks, strings) {
|
|
|
43
45
|
return boundary ? series.slice(0, series.findIndex((s) => s.id === boundary.id) + 1).map((s) => s.label).join(" + ") : stacks.some((stack) => stack.positive > 0 && stack.negative < 0) ? strings?.positiveTotal ?? localeStrings().positiveTotal : strings?.net ?? localeStrings().net;
|
|
44
46
|
}
|
|
45
47
|
function stackTotalFormatter(variant, spec, fmt) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
let percentShares = variant === "stacked100" && specUnitKind(spec) === "percent";
|
|
49
|
+
if (!percentShares && spec.automatic) return fmt;
|
|
50
|
+
let total = percentShares ? { ...spec, suffix: spec.suffix.replace(/\s*%/, "") } : spec;
|
|
51
|
+
return (v) => formatNonzeroWithSpec(v, total);
|
|
49
52
|
}
|
|
50
53
|
function grandTotalRequested(authored, variant, warnings, partsAdd = !0) {
|
|
51
54
|
return variant !== "grouped" && partsAdd ? authored ?? variant === "stacked" : variant !== "grouped" ? (authored === !0 && warnings.push({
|
|
@@ -88,9 +91,12 @@ function averageOfWholeShares(variant, scope, warnings) {
|
|
|
88
91
|
}), !0);
|
|
89
92
|
}
|
|
90
93
|
function averageMarkerLine(annotations, value, statFmt, span, average = localeStrings().average) {
|
|
94
|
+
return { kind: "valueLine", id: averageMarkerId(annotations), value, label: averageMarkerText(value, statFmt, span, average) };
|
|
95
|
+
}
|
|
96
|
+
function averageMarkerId(annotations) {
|
|
91
97
|
let id = "averageMarker", suffix = 2;
|
|
92
98
|
for (; annotations.some((annotation) => annotation.id === id); ) id = `averageMarker-${suffix++}`;
|
|
93
|
-
return
|
|
99
|
+
return id;
|
|
94
100
|
}
|
|
95
101
|
function averageMarkerText(value, statFmt, span, average = localeStrings().average) {
|
|
96
102
|
return `${average} ${statFmt(value)}${span ? ` (${span})` : ""}`;
|
|
@@ -229,6 +235,7 @@ export {
|
|
|
229
235
|
averageOfUnaddedSums,
|
|
230
236
|
averageOfWholeShares,
|
|
231
237
|
averageMarkerLine,
|
|
238
|
+
averageMarkerId,
|
|
232
239
|
averageMarkerScope,
|
|
233
240
|
averageMarkerMean,
|
|
234
241
|
averageMarkerSpan,
|