boardplot 0.56.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 +408 -0
- package/README.md +49 -15
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-VGSL4NJK.js} +1 -1
- package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-MHMXIDAJ.js} +8 -7
- package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-753KQBNN.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-HZUAEMN5.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/{chunk-K3VZ5QJK.js → chunk-2ETK5TSA.js} +4 -4
- package/dist/{chunk-HHXIVFAU.js → chunk-2ETSI2EL.js} +11 -9
- package/dist/{chunk-ECBUFKCP.js → chunk-2GRXHWRH.js} +3 -3
- package/dist/{chunk-ZVM5TFGR.js → chunk-2HII2B6S.js} +6 -2
- package/dist/{chunk-WBETBGSC.js → chunk-2LC2H3ZM.js} +1003 -907
- package/dist/chunk-2NX7EO7H.js +23 -0
- package/dist/{chunk-52WNCUIN.js → chunk-2QI2PK2O.js} +1 -1
- package/dist/{chunk-QWCLWFKC.js → chunk-2VKQQLP7.js} +180 -58
- package/dist/chunk-3DOVXJ6K.js +602 -0
- package/dist/{chunk-CAJ54IEP.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-MOS6WFWM.js → chunk-3HA4IJTO.js} +9 -9
- package/dist/{chunk-JCIXYOND.js → chunk-3HPPTQEW.js} +4 -4
- package/dist/{chunk-7VVHTOE7.js → chunk-3KT2647F.js} +4 -2
- package/dist/{chunk-O6ZTIDWB.js → chunk-3MFVJMP6.js} +3 -2
- package/dist/{chunk-KQCKK3LD.js → chunk-3P3FKPFN.js} +170 -73
- package/dist/{chunk-WI5VOSQX.js → chunk-3XAJSMYD.js} +2 -2
- package/dist/{chunk-CPGASWNN.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-QB5HV4IY.js → chunk-44JU3VOT.js} +7 -8
- package/dist/{chunk-BYCJ6TKI.js → chunk-44K75CYE.js} +3 -3
- package/dist/{chunk-MS7O3KDJ.js → chunk-4FNM4D57.js} +6 -6
- package/dist/{chunk-BVYIKLQ5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-3V62N3Z7.js → chunk-4VV3KUFT.js} +7 -8
- package/dist/{chunk-MAFPVR4G.js → chunk-54YO56IK.js} +10 -5
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-6AMN7IKJ.js → chunk-5JEU6MWC.js} +49 -28
- package/dist/{chunk-NCLRZQR6.js → chunk-5JIB4VJA.js} +18 -10
- package/dist/{chunk-SXD3OYAR.js → chunk-5OP3E2ZD.js} +205 -96
- package/dist/{chunk-SS4YGK3E.js → chunk-5SLBD4BT.js} +72 -304
- package/dist/{chunk-XMP2DNLI.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/chunk-5U567TYU.js +23 -0
- package/dist/chunk-5ZLF4S7X.js +40 -0
- package/dist/{chunk-T2YDWT54.js → chunk-5ZMTQATF.js} +261 -147
- package/dist/{chunk-WXJ5MHLH.js → chunk-62BDQTO6.js} +2 -2
- package/dist/chunk-64K3V4VN.js +25 -0
- package/dist/{chunk-BK6P6KMW.js → chunk-67YJJJIB.js} +1 -1
- package/dist/{chunk-32LLDRPI.js → chunk-6DJNFT2K.js} +42 -32
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-7STMIK2X.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/chunk-6JXBLQJ2.js +32 -0
- package/dist/{chunk-5TWY3ZIC.js → chunk-6XPV6M3Q.js} +5 -5
- package/dist/{chunk-MPO5TVGF.js → chunk-6ZDSEITW.js} +3 -3
- package/dist/{chunk-75WIUG2W.js → chunk-72HVDLMT.js} +172 -78
- package/dist/chunk-75NU5RLX.js +24 -0
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/chunk-7BQK2UDV.js +13 -0
- package/dist/{chunk-CF4NMRN7.js → chunk-7CAYRPJV.js} +45 -25
- package/dist/{chunk-U3A6FMSI.js → chunk-7GWWBHVQ.js} +7 -7
- package/dist/{chunk-CHAS5A5B.js → chunk-7NYUFMLJ.js} +149 -86
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-4KMZAK6J.js → chunk-A7R6FUS6.js} +4 -4
- package/dist/{chunk-E2ZUBP4Q.js → chunk-AEVGUOPB.js} +7 -8
- package/dist/chunk-AHIK2N72.js +53 -0
- package/dist/{chunk-KLB2QC24.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-7KSUMFBK.js → chunk-AJGSCVVW.js} +5 -1
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-E7V3OHQQ.js → chunk-AN2V2LC4.js} +37 -22
- package/dist/{chunk-JIEVDGAF.js → chunk-AOFUA5XP.js} +1 -1
- package/dist/chunk-B5A7X2BA.js +44 -0
- package/dist/{chunk-2HTYGMMG.js → chunk-BCMEGJRX.js} +2 -2
- package/dist/{chunk-KD5GOR2K.js → chunk-BDIKWR45.js} +124 -69
- package/dist/{chunk-FNRPQIQE.js → chunk-BG6AIWAK.js} +4 -6
- package/dist/{chunk-ZMPH2OC4.js → chunk-BOT6W3VB.js} +7 -8
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-2DOEZ5QY.js → chunk-BZ67BJBH.js} +11 -10
- package/dist/{chunk-UBCVBBJJ.js → chunk-C47POAC5.js} +4 -3
- package/dist/{chunk-O7REHICC.js → chunk-C5OBPO4Z.js} +36 -28
- package/dist/{chunk-IGNBQT23.js → chunk-CCAAI56H.js} +121 -10
- package/dist/{chunk-RPIKNMZA.js → chunk-CDUR3KWV.js} +7 -2
- package/dist/{chunk-MZACASZY.js → chunk-CMPHT2LS.js} +14 -2
- package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
- package/dist/{chunk-IVRYF7QA.js → chunk-CR5FP5SF.js} +1 -1
- package/dist/{chunk-DD6RVD3S.js → chunk-D2TQX7UJ.js} +5 -1
- package/dist/{chunk-VVXKFU72.js → chunk-DEANHDXU.js} +62 -41
- package/dist/{chunk-GM3EGUYW.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-UZTQUPTB.js → chunk-DIHX6NUB.js} +5 -5
- package/dist/{chunk-MD6DCQMA.js → chunk-DILQ34NW.js} +37 -37
- package/dist/{chunk-YMTXTQCN.js → chunk-DJKRYJP7.js} +6 -6
- package/dist/{chunk-JCAGVAB3.js → chunk-DKLC6QLF.js} +1200 -21
- package/dist/{chunk-SRAV6FPB.js → chunk-DNHTMCUP.js} +3 -3
- package/dist/{chunk-CKGSGRP7.js → chunk-DORE2RHL.js} +21 -5
- package/dist/{chunk-SMHZXHHD.js → chunk-DZYTXZNS.js} +15 -5
- package/dist/chunk-E262NRFP.js +39 -0
- package/dist/{chunk-V5JQQMFQ.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-IGJ2G5C6.js → chunk-EBUK7HJP.js} +6 -6
- package/dist/{chunk-ZL6IHMOW.js → chunk-ECBHC272.js} +198 -119
- package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
- package/dist/chunk-EFW43JQJ.js +24 -0
- package/dist/{chunk-5P2TTHBZ.js → chunk-EHRRHSPV.js} +2 -2
- package/dist/{chunk-JXBZIJCG.js → chunk-EILNJQMN.js} +32 -12
- package/dist/{chunk-GELSK76Y.js → chunk-ERDKMZ7O.js} +3 -3
- package/dist/{chunk-T2CYNDYU.js → chunk-ETRAPN5G.js} +366 -130
- package/dist/{chunk-JEUL777U.js → chunk-ETUKDEGL.js} +21 -12
- package/dist/chunk-F2ET5ZTT.js +49 -0
- package/dist/{chunk-2YO4WRJN.js → chunk-F3XOBFS4.js} +40 -29
- package/dist/{chunk-SPSGUFTI.js → chunk-FB6X7QHA.js} +1 -1
- package/dist/{chunk-5PPQIF4D.js → chunk-FGW54I23.js} +7 -8
- package/dist/{chunk-JTC5SEAQ.js → chunk-FP5B5XIL.js} +7 -3
- package/dist/{chunk-RJGCYGC3.js → chunk-FRHQGA5Q.js} +86 -250
- package/dist/{chunk-YZZLIYPA.js → chunk-FRR7BJ3B.js} +5 -1
- package/dist/{chunk-4DZFR52I.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-YPYD6OJ3.js → chunk-FWSMENKH.js} +2 -2
- package/dist/{chunk-YYJORENB.js → chunk-FWTUGNSF.js} +8 -8
- package/dist/{chunk-GIHH6VC2.js → chunk-FZKDZQ6U.js} +10 -6
- package/dist/{chunk-S7NRL66K.js → chunk-G4FF6G3I.js} +26 -17
- package/dist/{chunk-PQLAZEQV.js → chunk-GB6BZSTL.js} +248 -92
- package/dist/chunk-GCIHRRDJ.js +24 -0
- package/dist/{chunk-X3KCQEYZ.js → chunk-GHCU6OSE.js} +9 -1
- package/dist/chunk-GKDUIDU6.js +138 -0
- package/dist/chunk-GO66OCN7.js +24 -0
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-AGDDH6XY.js → chunk-GQYT7G4F.js} +5 -1
- package/dist/{chunk-WN3HEU3P.js → chunk-GUTLXO7Q.js} +140 -89
- package/dist/chunk-H3VICNTN.js +47 -0
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/{chunk-CB4CERXZ.js → chunk-HBQHSZ6S.js} +11 -2
- package/dist/chunk-HTQGJQZN.js +124 -0
- package/dist/{chunk-F77TMAUY.js → chunk-HUQRO6VF.js} +39 -36
- package/dist/{chunk-4KQHKPB3.js → chunk-I5VDW2XZ.js} +543 -509
- package/dist/{chunk-43GGVT7W.js → chunk-I5VNHDPR.js} +11 -4
- package/dist/{chunk-4LTN7SND.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-Y54LU4CU.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-FMDNJ6PC.js → chunk-IPBOREIY.js} +2 -2
- package/dist/chunk-IU335UO7.js +27 -0
- package/dist/{chunk-JVZTKQFS.js → chunk-IVDTP6SV.js} +9 -5
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-EIL3KHAL.js → chunk-J4QRB6DQ.js} +5 -5
- package/dist/{chunk-3465633G.js → chunk-JCMGKQVS.js} +3 -3
- package/dist/{chunk-YK2KWNTU.js → chunk-JM7UTLF3.js} +28 -14
- package/dist/{chunk-CXETOLPX.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-DLUNQHFO.js → chunk-JSRQTDZZ.js} +26 -24
- package/dist/{chunk-WTQAG2OT.js → chunk-JT3UTEWZ.js} +8 -3
- package/dist/{chunk-GQT2SY2S.js → chunk-JUYRDZSV.js} +291 -151
- package/dist/{chunk-LKMFMNQX.js → chunk-JVGL2SCN.js} +1 -1
- package/dist/{chunk-4JC3SE4G.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-P4SMC4BY.js → chunk-KGBUXMFP.js} +120 -86
- package/dist/{chunk-XC5IRUEL.js → chunk-KIE5V3DA.js} +2 -2
- package/dist/{chunk-RT66UTLJ.js → chunk-KU4PCG4W.js} +2 -2
- package/dist/{chunk-VPL3JYC6.js → chunk-KVBLTAO7.js} +52 -10
- package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
- package/dist/{chunk-PJBEJR2U.js → chunk-KWIP5YRA.js} +24 -7
- package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
- package/dist/{chunk-R2IKOLBK.js → chunk-LG6M2JTH.js} +3 -3
- package/dist/{chunk-DF3XEFQ7.js → chunk-LIE2WSB4.js} +21 -18
- package/dist/{chunk-Z55DXFWS.js → chunk-LJDATBPB.js} +26 -16
- package/dist/{chunk-KLIZXSBK.js → chunk-LMMS675D.js} +10 -9
- package/dist/{chunk-MRAP2UVV.js → chunk-LPKGZ664.js} +286 -35
- package/dist/{chunk-JFFREZGT.js → chunk-LPMSGO7L.js} +6 -2
- package/dist/chunk-LQWINE7K.js +211 -0
- package/dist/{chunk-6MJUW5R5.js → chunk-MKMMQDIY.js} +139 -71
- package/dist/{chunk-F5BYLT3M.js → chunk-MQ4IEDM5.js} +462 -138
- package/dist/{chunk-QGFKSDQO.js → chunk-MRM4KJ2O.js} +2 -2
- package/dist/{chunk-ETMHDCEH.js → chunk-MX2OZHIT.js} +102 -42
- package/dist/{chunk-6EYTD777.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-2FKEF2AC.js → chunk-NHU26HQ7.js} +58 -35
- package/dist/{chunk-KBJMLXNW.js → chunk-NQVJ4FPY.js} +161 -78
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/chunk-OALBVELJ.js +23 -0
- package/dist/{chunk-5S3JQ5AT.js → chunk-OGZ4UPYK.js} +183 -137
- package/dist/{chunk-6WHWXCHJ.js → chunk-OMNB27GM.js} +7 -3
- package/dist/{chunk-EGGDPDYJ.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-ZYQYX66L.js → chunk-OPYDTW5Q.js} +6 -6
- package/dist/{chunk-A2GAWGVJ.js → chunk-OSJN7KDS.js} +68 -39
- package/dist/{chunk-RMC4OONA.js → chunk-OSJXIW6I.js} +1030 -1123
- package/dist/{chunk-X23SZHV5.js → chunk-OVVE42P4.js} +6 -6
- package/dist/{chunk-CCJP6QZO.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/chunk-OZLKEBCD.js +54 -0
- package/dist/{chunk-TE4M52AA.js → chunk-P6DEFCMQ.js} +18 -2
- package/dist/{chunk-AMR4SUAN.js → chunk-PDTIQL3B.js} +6 -6
- package/dist/{chunk-BIVL764T.js → chunk-PJ5BYZPN.js} +2 -2
- package/dist/{chunk-BISJK67O.js → chunk-PK7Z7WRJ.js} +98 -46
- package/dist/{chunk-7VMEM3LN.js → chunk-PL6NWB5U.js} +178 -113
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/chunk-PP6A4X55.js +11 -0
- package/dist/{chunk-I7H5DU34.js → chunk-PPCH3PLO.js} +25 -13
- package/dist/{chunk-BIGQKCU7.js → chunk-PPE6S7WU.js} +42 -24
- package/dist/{chunk-2NSQIPAA.js → chunk-PT7KSIEO.js} +23 -36
- package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
- package/dist/{chunk-ZJFJ2IKQ.js → chunk-QAUGRVRU.js} +122 -23
- package/dist/{chunk-BTDGWHGJ.js → chunk-QMFWZG2P.js} +39 -19
- package/dist/{chunk-L6YVK6VC.js → chunk-QZGGCE45.js} +2 -2
- package/dist/{chunk-67QSW5RW.js → chunk-R2RJQ3BM.js} +4 -4
- package/dist/{chunk-ZY72LSQK.js → chunk-R7HBIQ63.js} +102 -61
- package/dist/{chunk-4JHMCXOB.js → chunk-RBNDZLYS.js} +77 -36
- package/dist/chunk-RCSY4CT4.js +2170 -0
- package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
- package/dist/{chunk-2NN676RI.js → chunk-RHQRPJHS.js} +7 -8
- package/dist/chunk-RI6XQKWJ.js +26 -0
- package/dist/{chunk-YOOHNQ3L.js → chunk-RJICOOB3.js} +18 -8
- package/dist/{chunk-5DTCOOLU.js → chunk-RLAVNCQJ.js} +2 -2
- package/dist/{chunk-CYKXROFG.js → chunk-ROPPWJQB.js} +23 -12
- package/dist/{chunk-54ROMBU7.js → chunk-SELOV32X.js} +105 -50
- package/dist/{chunk-TUW5IYGA.js → chunk-SQI4NWTQ.js} +9 -9
- package/dist/{chunk-ZEYBI47P.js → chunk-SRJ74CMG.js} +11 -3
- package/dist/{chunk-NHC2ADGI.js → chunk-STWOURLG.js} +253 -144
- package/dist/chunk-SWMFXSVW.js +23 -0
- package/dist/chunk-SXAZDIGM.js +84 -0
- package/dist/{chunk-EMFUZKYK.js → chunk-SZ5VGWDY.js} +3 -3
- package/dist/{chunk-R5MEBBAA.js → chunk-T26G23RS.js} +442 -119
- package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
- package/dist/chunk-T7GPIJ4L.js +89 -0
- package/dist/{chunk-MJPXHCBW.js → chunk-TAEB3RU6.js} +5 -5
- package/dist/{chunk-V7F4F6JA.js → chunk-TBDIMTRD.js} +37 -16
- package/dist/{chunk-63Y3ROZ7.js → chunk-TFFPEWNP.js} +102 -64
- package/dist/{chunk-EZZ533MH.js → chunk-TMEUK2WS.js} +6 -2
- package/dist/{chunk-37PKNVLS.js → chunk-TVOMGNFQ.js} +1 -1
- package/dist/{chunk-HJRNBKIT.js → chunk-TX5FSNAU.js} +436 -30
- package/dist/{chunk-V634AXDM.js → chunk-U52PNFPX.js} +1 -1
- package/dist/{chunk-QLANK3VN.js → chunk-U74AWJ3X.js} +6 -6
- package/dist/chunk-UC7LBW7N.js +26 -0
- package/dist/{chunk-PZ46S2SY.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-KF7HD3EH.js → chunk-UCYL3YA7.js} +77 -55
- package/dist/{chunk-HOU2MZHC.js → chunk-UD2GI3CS.js} +11 -4
- package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
- package/dist/{chunk-LGNJCPFP.js → chunk-ULQIC76A.js} +10 -13
- package/dist/{chunk-KTHFHD6C.js → chunk-UY34DDUM.js} +11 -6
- package/dist/{chunk-6QDMRPXI.js → chunk-UYMFLWM6.js} +215 -258
- package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
- package/dist/{chunk-JTFKRDDA.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-27OIGDRK.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-CCDXK5NA.js → chunk-VESSIKBG.js} +8 -3
- package/dist/{chunk-QSMGZOT5.js → chunk-VRFJAF3R.js} +7 -8
- package/dist/chunk-VS2R3OGN.js +34 -0
- package/dist/{chunk-RLMC5CUP.js → chunk-VS5B4J2D.js} +7 -8
- package/dist/{chunk-7M2GK7XQ.js → chunk-W4R6SGU3.js} +252 -121
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-7DAH2E4T.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/{chunk-DLDDRXAI.js → chunk-WJS6SAWA.js} +296 -145
- package/dist/{chunk-WWGPTEQB.js → chunk-WQYNKF33.js} +73 -22
- package/dist/{chunk-64LJDGJH.js → chunk-WUP6C4ZD.js} +4 -2
- package/dist/{chunk-F2EVCJ4U.js → chunk-X24WAHHV.js} +87 -43
- package/dist/{chunk-OJ5CQV7H.js → chunk-X3UCQPVV.js} +209 -96
- package/dist/{chunk-7FKY6YWU.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-H3IBJQ5A.js → chunk-XD5XB22R.js} +2 -2
- package/dist/chunk-XDIAQEYK.js +28 -0
- package/dist/{chunk-7PPMT5EJ.js → chunk-XFPNYHX3.js} +372 -105
- package/dist/{chunk-FCECYJVA.js → chunk-XIBVAKCO.js} +1 -1
- package/dist/{chunk-OG2YUVBW.js → chunk-XMX4PCFL.js} +8 -3
- package/dist/{chunk-2NRHD2G7.js → chunk-XRRG4MBM.js} +12 -4
- package/dist/{chunk-FNMH5WEY.js → chunk-XTFO6D4L.js} +1 -1
- package/dist/chunk-XWRI3N5O.js +70 -0
- package/dist/{chunk-ZKJ5L35C.js → chunk-XXPLPSOE.js} +36 -25
- package/dist/{chunk-XQMYQ4TN.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-E555EDOQ.js → chunk-YEJZ2OYS.js} +490 -182
- package/dist/chunk-YGZEG3JV.js +123 -0
- package/dist/{chunk-F6OLHND5.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-FFJGC2DX.js → chunk-Z6DUNKFU.js} +173 -40
- package/dist/{chunk-N5HN5QGH.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-7Q37C6GZ.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-MOK3ZS6P.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-GLQ3KCTY.js → chunk-ZGZLEUKM.js} +7 -8
- package/dist/{chunk-YHD2FZFP.js → chunk-ZHRGX225.js} +6 -6
- package/dist/{chunk-76Q7E3TM.js → chunk-ZIVCPXXL.js} +510 -646
- package/dist/{chunk-BSATR6ZO.js → chunk-ZNRSYS76.js} +21 -3
- package/dist/{chunk-DMAMWUYY.js → chunk-ZSLTSCTI.js} +5 -5
- package/dist/{chunk-IGVAWAOK.js → chunk-ZSYFQSPF.js} +43 -9
- package/dist/cli/index.js +8 -3
- package/dist/{core-7Y5BZZON.js → core-43GLGBOY.js} +8 -1
- package/dist/{core-7S3XMW5O.js → core-5GI3ERXO.js} +4 -1
- package/dist/{core-K3JX5WPM.js → core-5L7TMK7I.js} +6 -1
- package/dist/{core-LB5M7XL4.js → core-7TO4OVY5.js} +6 -1
- package/dist/{core-ILPXXC2Z.js → core-BJVENHFQ.js} +7 -1
- package/dist/{core-JDFUZFRH.js → core-BX4MFWKC.js} +6 -1
- package/dist/{core-XW7UJFJZ.js → core-C3KXTOIZ.js} +7 -1
- package/dist/{core-WJNK7F2J.js → core-C5Y6BFLL.js} +7 -1
- package/dist/{core-WZ4CHVYL.js → core-CLUSJ2SK.js} +5 -1
- package/dist/{core-TCSW24N6.js → core-E3IN2VVH.js} +5 -1
- package/dist/{core-MU4ALRR7.js → core-FD67NQOV.js} +6 -1
- package/dist/{core-YMXYUGF5.js → core-FDKMLRAK.js} +5 -1
- package/dist/{core-VKZSQFRG.js → core-FL6Z3VVX.js} +5 -1
- package/dist/{core-5UF44NDI.js → core-JC7JUFPY.js} +8 -1
- package/dist/{core-RR2CAZC5.js → core-JF33TADA.js} +8 -1
- package/dist/{core-4RR6VSXM.js → core-JH32ZAKM.js} +4 -1
- package/dist/{core-G3LXHW73.js → core-JYYZPPQV.js} +7 -1
- package/dist/{core-4HFVG4CP.js → core-KJTKCV4U.js} +4 -1
- package/dist/{core-GSILPKUR.js → core-LCQPE5Y6.js} +8 -1
- package/dist/{core-GLOZY6Z7.js → core-LHVGWE54.js} +6 -1
- package/dist/{core-J2JD5ODO.js → core-OVSNBOCE.js} +9 -1
- package/dist/{core-BLHEJ5OK.js → core-PPEC236B.js} +5 -1
- package/dist/{core-ZLSQHZ3I.js → core-QTJZDK5H.js} +5 -1
- package/dist/{core-TKZZZ6UW.js → core-R3YZCOUZ.js} +7 -1
- package/dist/{core-HTD5RHE7.js → core-RIBW5XU4.js} +7 -1
- package/dist/{core-AR2T32Y3.js → core-RJFILBWL.js} +8 -1
- package/dist/{core-A5AKUB7H.js → core-RWSXEKTE.js} +4 -1
- package/dist/{core-DD62MWEW.js → core-SOPPZLEH.js} +5 -1
- package/dist/{core-HDNWVLJW.js → core-TBUZCXLX.js} +5 -1
- package/dist/{core-BOG33BFD.js → core-TZ5QLTAX.js} +5 -1
- package/dist/{core-H5HO2CED.js → core-U7E5W4MY.js} +3 -1
- package/dist/{core-QPSAYRFT.js → core-UBNVSL44.js} +7 -1
- package/dist/{core-E2XOSHPR.js → core-UDRD4WIU.js} +6 -1
- package/dist/{core-DFZMOO7E.js → core-UVJZ4HY2.js} +7 -1
- package/dist/{core-LGJZUP6H.js → core-X7WWYQH4.js} +8 -1
- package/dist/{core-BBNY2BX4.js → core-XP56X47I.js} +5 -1
- package/dist/{core-3KLQSYWB.js → core-XQG54CYG.js} +6 -1
- package/dist/{dataTable-CNDRVGA5.js → dataTable-U7W4I6IF.js} +15 -2
- package/dist/{engine-FVEIM3WV.js → engine-O5V26MGR.js} +32 -19
- package/dist/fixtures.js +4 -1
- package/dist/flags-BVLSAXT3.js +10 -0
- package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
- package/dist/fonts.js +1 -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 +41 -22
- package/dist/{main-THU6VIVU.js → main-35GS47XC.js} +68 -123
- package/dist/mcp/server.js +131 -118
- package/dist/react/bar.js +10 -1
- package/dist/react/bartable.js +10 -1
- package/dist/react/box.js +8 -1
- package/dist/react/bullet.js +10 -1
- package/dist/react/butterfly.js +10 -1
- package/dist/react/choropleth.js +10 -1
- package/dist/react/cohort.js +11 -1
- package/dist/react/column.js +10 -1
- package/dist/react/combo.js +10 -1
- package/dist/react/creative.js +11 -1
- package/dist/react/diagram.js +10 -1
- package/dist/react/dimswitch.js +11 -1
- package/dist/react/dot.js +9 -1
- package/dist/react/export.js +36 -18
- package/dist/react/funnel.js +9 -1
- package/dist/react/gantt.js +9 -1
- package/dist/react/grid.js +10 -1
- package/dist/react/heatmap.js +9 -1
- package/dist/react/histogram.js +11 -1
- package/dist/react/index.js +101 -85
- package/dist/react/kpi.js +10 -1
- package/dist/react/likert.js +11 -1
- package/dist/react/line.js +9 -1
- package/dist/react/mekko.js +10 -1
- package/dist/react/pareto.js +11 -1
- package/dist/react/pie.js +9 -1
- package/dist/react/prepare.js +49 -21
- package/dist/react/pvm.js +12 -1
- package/dist/react/pyramid.js +10 -1
- package/dist/react/sankey.js +10 -1
- package/dist/react/scatter.js +8 -1
- package/dist/react/slope.js +10 -1
- package/dist/react/sparkline.js +10 -1
- package/dist/react/spec.js +24 -14
- package/dist/react/status.js +9 -1
- package/dist/react/story.js +5 -2
- package/dist/react/table.js +9 -1
- package/dist/react/theme.js +10 -3
- package/dist/react/tilemap.js +9 -1
- package/dist/react/treemap.js +9 -1
- package/dist/react/variance.js +10 -1
- package/dist/react/waffle.js +9 -1
- package/dist/react/waterfall.js +11 -1
- package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
- package/dist/rows.js +3 -2
- package/dist/{rowsModule-LI6KOS46.js → rowsModule-H2S6WW4D.js} +2 -1
- package/dist/{schema-CGQID64D.js → schema-2R32F6AW.js} +1 -1
- package/dist/{schema-H2EC4GAQ.js → schema-2TPGJGVR.js} +1 -1
- package/dist/{schema-THXXFY6I.js → schema-47BG2TZA.js} +1 -3
- package/dist/{schema-AMT7P7KB.js → schema-56MOEOVR.js} +1 -1
- package/dist/{schema-GNTKL5DN.js → schema-5MSR4LNN.js} +1 -1
- package/dist/{schema-5ZTGVQAJ.js → schema-5RIYEWE6.js} +1 -1
- package/dist/{schema-LOQ3AFC7.js → schema-A26ZNGTZ.js} +1 -3
- package/dist/{schema-MMVPMJEF.js → schema-ALBF6V7Y.js} +1 -3
- package/dist/{schema-BKUFZLLI.js → schema-BA6WP5YZ.js} +1 -1
- package/dist/{schema-PQZWO3BP.js → schema-CBL2SMVR.js} +1 -3
- package/dist/{schema-BBTXTWYI.js → schema-CWKGLDSR.js} +1 -3
- package/dist/{schema-5KDEQBBT.js → schema-DBIQFL56.js} +1 -1
- package/dist/{schema-KPEPBGAX.js → schema-DL7V6NN2.js} +1 -1
- package/dist/{schema-PL3EU6EQ.js → schema-DUVJMFKQ.js} +4 -2
- package/dist/{schema-L5U4OROI.js → schema-ECJERHKF.js} +2 -1
- package/dist/{schema-YLE4XXQQ.js → schema-EDSEKZDJ.js} +1 -1
- package/dist/{schema-HH5HOORE.js → schema-ESR6ZIK4.js} +1 -3
- package/dist/{schema-5DUTAVO7.js → schema-F7TWGLRZ.js} +1 -3
- package/dist/{schema-B2GCEYXD.js → schema-FGB6IGZM.js} +1 -3
- package/dist/{schema-7NSV542V.js → schema-FKGGTM4Z.js} +2 -1
- package/dist/{schema-72EEMYS3.js → schema-FU2AFIEE.js} +1 -1
- package/dist/{schema-QORUB6EK.js → schema-JNJFCYBM.js} +18 -1
- package/dist/{schema-JH57NFXJ.js → schema-JYZ4RF6S.js} +2 -1
- package/dist/{schema-25INXAMY.js → schema-K7F6TEDK.js} +1 -2
- package/dist/{schema-OU35XA3Z.js → schema-KAK6DZX4.js} +1 -1
- package/dist/{schema-R5Y6NVBH.js → schema-MOKWIGF7.js} +1 -1
- package/dist/{schema-ZQSIR5UC.js → schema-MQT6BMNK.js} +1 -3
- package/dist/{schema-FDFQKIO5.js → schema-MR3BPPQR.js} +1 -1
- package/dist/{schema-VYECMPON.js → schema-OPXZYIW7.js} +1 -3
- package/dist/{schema-ZEVJMFLV.js → schema-PV7JGX5H.js} +1 -1
- package/dist/{schema-QPOBZUAR.js → schema-PWPQF5RC.js} +1 -1
- package/dist/{schema-GN6GAIU5.js → schema-PYQEUC5P.js} +1 -3
- package/dist/{schema-M5JBHQIV.js → schema-QPIC5MAG.js} +9 -2
- package/dist/{schema-QCIE6M2P.js → schema-R42VXFIS.js} +1 -1
- package/dist/{schema-J7TNCZIP.js → schema-TVUJNEX7.js} +1 -1
- package/dist/{schema-AXRDF6ND.js → schema-Y4TI2T3T.js} +1 -1
- package/dist/{schema-ZG6ZKFRZ.js → schema-ZU2EU2VP.js} +1 -1
- package/dist/{specValidation-VHLGDEME.js → specValidation-2NHJT7TQ.js} +4 -1
- package/dist/theme.js +7 -2
- 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/bartable/types.d.ts +14 -1
- package/dist/types/core/charts/box/types.d.ts +3 -1
- package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
- package/dist/types/core/charts/choropleth/types.d.ts +19 -0
- package/dist/types/core/charts/cohort/types.d.ts +16 -3
- 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/creative/types.d.ts +21 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
- package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
- package/dist/types/core/charts/gantt/calendar.d.ts +24 -0
- package/dist/types/core/charts/gantt/columns.d.ts +56 -0
- package/dist/types/core/charts/gantt/layout.d.ts +8 -2
- package/dist/types/core/charts/gantt/model.d.ts +296 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -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/histogram/types.d.ts +8 -0
- package/dist/types/core/charts/likert/layout.d.ts +10 -8
- package/dist/types/core/charts/pareto/layout.d.ts +2 -0
- package/dist/types/core/charts/pvm/types.d.ts +10 -1
- package/dist/types/core/charts/pyramid/types.d.ts +3 -1
- package/dist/types/core/charts/sankey/types.d.ts +5 -1
- 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/status/layout.d.ts +3 -0
- package/dist/types/core/charts/table/resolve.d.ts +22 -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/footer.d.ts +2 -0
- package/dist/types/core/formatSpec.d.ts +43 -14
- package/dist/types/core/frame.d.ts +26 -59
- package/dist/types/core/frameText.d.ts +203 -0
- package/dist/types/core/geo/types.d.ts +2 -0
- package/dist/types/core/geometry.d.ts +3 -1
- 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 +14 -2
- package/dist/types/core/notes.d.ts +15 -2
- package/dist/types/core/reading.d.ts +12 -1
- package/dist/types/core/registry.d.ts +4 -5
- package/dist/types/core/request.d.ts +7 -1
- package/dist/types/core/schema/capability.d.ts +32 -7
- package/dist/types/core/schema/generatedColumns.d.ts +168 -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/text.d.ts +16 -0
- package/dist/types/core/theme.d.ts +33 -4
- package/dist/types/core/themeGeometry.d.ts +9 -0
- package/dist/types/core/themeRules.d.ts +2 -0
- package/dist/types/core/timeAxis.d.ts +6 -1
- package/dist/types/core/types/annotations.d.ts +74 -4
- package/dist/types/core/types/diagram.d.ts +7 -0
- package/dist/types/core/types/options.d.ts +118 -15
- package/dist/types/core/types/scene.d.ts +30 -2
- package/dist/types/core/types/table.d.ts +27 -3
- package/dist/types/core/types/theme.d.ts +23 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react/TableChart.d.ts +5 -0
- package/dist/types/react/barrelCharts.d.ts +16 -5
- package/dist/types/react/charts/butterfly.d.ts +2 -2
- package/dist/types/react/charts/dot.d.ts +7 -1
- package/dist/types/react/charts/pareto.d.ts +4 -1
- package/dist/types/react/charts/variance.d.ts +3 -1
- package/dist/types/react/hover/labelCard.d.ts +11 -2
- package/dist/types/react/prepare.d.ts +7 -1
- package/dist/types/theme.d.ts +2 -0
- package/dist/validate.js +23 -6
- package/docs/TELEMETRY.md +2 -2
- package/docs/manual.md +283 -65
- package/docs/reference/bar.md +15 -4
- package/docs/reference/bartable.md +17 -2
- package/docs/reference/box.md +15 -4
- package/docs/reference/bullet.md +21 -6
- package/docs/reference/butterfly.md +17 -6
- package/docs/reference/choropleth.md +16 -5
- package/docs/reference/cohort.md +25 -5
- package/docs/reference/column.md +19 -4
- package/docs/reference/combo.md +11 -5
- package/docs/reference/creative.md +17 -8
- package/docs/reference/diagram.md +6 -1
- package/docs/reference/dimswitch.md +71 -118
- package/docs/reference/dot.md +16 -7
- package/docs/reference/fixtures.md +94 -1
- package/docs/reference/funnel.md +14 -5
- package/docs/reference/gantt.md +17 -16
- package/docs/reference/grid.md +13 -3
- package/docs/reference/heatmap.md +16 -6
- package/docs/reference/histogram.md +2 -2
- package/docs/reference/kpi.md +5 -1
- package/docs/reference/likert.md +17 -4
- package/docs/reference/line.md +18 -5
- package/docs/reference/mekko.md +10 -5
- package/docs/reference/options.md +20 -15
- package/docs/reference/pareto.md +9 -5
- package/docs/reference/pie.md +9 -5
- package/docs/reference/pvm.md +16 -6
- package/docs/reference/pyramid.md +14 -4
- package/docs/reference/react.md +6 -7
- package/docs/reference/sankey.md +7 -3
- package/docs/reference/scatter.md +8 -4
- package/docs/reference/slope.md +15 -5
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +7 -1
- package/docs/reference/table.md +41 -110
- 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 +20 -5
- package/docs/use-cases.md +25 -13
- package/llms.txt +19 -6
- package/package.json +18 -3
- package/dist/chunk-6364WO5D.js +0 -47
- package/dist/chunk-DQ7YMQVX.js +0 -26
- package/dist/chunk-EBB4PYBN.js +0 -24
- package/dist/chunk-FG5L2LUK.js +0 -89
- package/dist/chunk-IFQN4GKK.js +0 -1852
- package/dist/chunk-IRXVV65V.js +0 -24
- package/dist/chunk-JGFHNAHS.js +0 -22
- package/dist/chunk-JHWYG7V5.js +0 -24
- package/dist/chunk-M4SPKUZE.js +0 -7
- package/dist/chunk-O36WX56O.js +0 -13
- package/dist/chunk-QJWLNP64.js +0 -24
- package/dist/chunk-QZIHKQRH.js +0 -26
- package/dist/chunk-SE7MJ2LQ.js +0 -24
- package/dist/chunk-TXBO2LWM.js +0 -25
- package/dist/chunk-UPTXFTKH.js +0 -25
- package/dist/chunk-UREXN6WG.js +0 -25
- package/dist/chunk-UZLR25BW.js +0 -24
- package/dist/chunk-WIVFIVFZ.js +0 -27
- package/dist/chunk-WZL4EEBS.js +0 -11
- package/dist/chunk-XHRUXZD7.js +0 -28
- package/dist/chunk-ZWNRLIFT.js +0 -24
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
RETIRED_THEME_KEYS,
|
|
5
5
|
retiredThemeKeyWarning,
|
|
6
6
|
withoutRetiredThemeKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CCAAI56H.js";
|
|
8
8
|
import {
|
|
9
9
|
FILL_SEPARATION_FLOOR,
|
|
10
10
|
MARK_CONTRAST_FLOOR,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
requireDeferred,
|
|
30
30
|
swatchApart,
|
|
31
31
|
tint
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BQBD6Q5J.js";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_THEME,
|
|
35
35
|
fmtPathNumber,
|
|
36
36
|
themeShape
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-6IUK6PAH.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_TARGET,
|
|
40
40
|
NormalizeError,
|
|
@@ -45,16 +45,189 @@ import {
|
|
|
45
45
|
targetFloorsPx,
|
|
46
46
|
targetTypeSizesPx,
|
|
47
47
|
textSizeScale
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RJICOOB3.js";
|
|
49
49
|
import {
|
|
50
50
|
AUTHORED_TYPE_SIZE,
|
|
51
51
|
hasAuthoredTypeSize,
|
|
52
52
|
measureText
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-UIHGGWES.js";
|
|
54
|
+
import {
|
|
55
|
+
maxOf,
|
|
56
|
+
minOf
|
|
57
|
+
} from "./chunk-WYJEOMNY.js";
|
|
54
58
|
import {
|
|
55
59
|
plainText
|
|
56
60
|
} from "./chunk-SRUV7AT6.js";
|
|
57
61
|
|
|
62
|
+
// src/core/geometry.ts
|
|
63
|
+
function rectsOverlap(a, b, pad = 0) {
|
|
64
|
+
return !(a.x + a.w + pad <= b.x || b.x + b.w + pad <= a.x || a.y + a.h + pad <= b.y || b.y + b.h + pad <= a.y);
|
|
65
|
+
}
|
|
66
|
+
function rectContains(outer, inner, pad = 0) {
|
|
67
|
+
return inner.x >= outer.x + pad && inner.y >= outer.y + pad && inner.x + inner.w <= outer.x + outer.w - pad && inner.y + inner.h <= outer.y + outer.h - pad;
|
|
68
|
+
}
|
|
69
|
+
function polylineYAt(line, x) {
|
|
70
|
+
if (x <= line[0].x) return line[0].y;
|
|
71
|
+
for (let i = 1; i < line.length; i++) {
|
|
72
|
+
let a = line[i - 1], b = line[i];
|
|
73
|
+
if (x <= b.x) return b.x === a.x ? b.y : a.y + (b.y - a.y) * (x - a.x) / (b.x - a.x);
|
|
74
|
+
}
|
|
75
|
+
return line[line.length - 1].y;
|
|
76
|
+
}
|
|
77
|
+
function pointRectDistance(p, rect) {
|
|
78
|
+
return Math.hypot(Math.max(rect.x - p.x, 0, p.x - rect.x - rect.w), Math.max(rect.y - p.y, 0, p.y - rect.y - rect.h));
|
|
79
|
+
}
|
|
80
|
+
function pointSegmentDistance(x, y, a, dx, dy, squared) {
|
|
81
|
+
let t = dx === 0 && dy === 0 ? 0 : Math.max(0, Math.min(1, ((x - a.x) * dx + (y - a.y) * dy) / squared));
|
|
82
|
+
return Math.hypot(x - a.x - t * dx, y - a.y - t * dy);
|
|
83
|
+
}
|
|
84
|
+
function rectLineDistance(rect, line) {
|
|
85
|
+
if (line.length === 1) return pointRectDistance(line[0], rect);
|
|
86
|
+
let right = rect.x + rect.w, bottom = rect.y + rect.h, best = 1 / 0, previousDistance = 1 / 0;
|
|
87
|
+
for (let i = 1; i < line.length; i++) {
|
|
88
|
+
let a = line[i - 1], b = line[i], dx = b.x - a.x, dy = b.y - a.y, squared = dx * dx + dy * dy, minX = Math.min(a.x, b.x), maxX = Math.max(a.x, b.x), minY = Math.min(a.y, b.y), maxY = Math.max(a.y, b.y), scale = Math.max(
|
|
89
|
+
1,
|
|
90
|
+
Math.abs(rect.x),
|
|
91
|
+
Math.abs(rect.y),
|
|
92
|
+
Math.abs(right),
|
|
93
|
+
Math.abs(bottom),
|
|
94
|
+
Math.abs(a.x),
|
|
95
|
+
Math.abs(a.y),
|
|
96
|
+
Math.abs(b.x),
|
|
97
|
+
Math.abs(b.y)
|
|
98
|
+
), error = scale <= 2 ** 40 && (dx === 0 || Math.abs(dx) >= 2 ** -256) && (dy === 0 || Math.abs(dy) >= 2 ** -256) ? 64 * Number.EPSILON * scale : 1 / 0;
|
|
99
|
+
if (!(rect.w >= 0 && rect.h >= 0 && (maxX < rect.x - error || minX > right + error || maxY < rect.y - error || minY > bottom + error)) && segmentHitsRect(a, b, rect)) return 0;
|
|
100
|
+
i === 1 && (previousDistance = pointRectDistance(a, rect));
|
|
101
|
+
let nextDistance = pointRectDistance(b, rect);
|
|
102
|
+
best = Math.min(best, previousDistance, nextDistance);
|
|
103
|
+
let limit = best + error, leftGap = Math.max(0, minX - rect.x, rect.x - maxX), rightGap = Math.max(0, minX - right, right - maxX), topGap = Math.max(0, minY - rect.y, rect.y - maxY), bottomGap = Math.max(0, minY - bottom, bottom - maxY);
|
|
104
|
+
best = Math.min(
|
|
105
|
+
best,
|
|
106
|
+
leftGap > limit || topGap > limit ? 1 / 0 : pointSegmentDistance(rect.x, rect.y, a, dx, dy, squared),
|
|
107
|
+
rightGap > limit || topGap > limit ? 1 / 0 : pointSegmentDistance(right, rect.y, a, dx, dy, squared),
|
|
108
|
+
leftGap > limit || bottomGap > limit ? 1 / 0 : pointSegmentDistance(rect.x, bottom, a, dx, dy, squared),
|
|
109
|
+
rightGap > limit || bottomGap > limit ? 1 / 0 : pointSegmentDistance(right, bottom, a, dx, dy, squared)
|
|
110
|
+
), previousDistance = nextDistance;
|
|
111
|
+
}
|
|
112
|
+
return best;
|
|
113
|
+
}
|
|
114
|
+
function sideAwayFrom(point, others) {
|
|
115
|
+
let above = 1 / 0, below = 1 / 0, any = !1;
|
|
116
|
+
for (let line of others) {
|
|
117
|
+
if (line.length === 0 || point.x < line[0].x || point.x > line[line.length - 1].x) continue;
|
|
118
|
+
any = !0;
|
|
119
|
+
let y = polylineYAt(line, point.x);
|
|
120
|
+
y < point.y ? above = Math.min(above, point.y - y) : y > point.y && (below = Math.min(below, y - point.y));
|
|
121
|
+
}
|
|
122
|
+
return any ? below > above ? "below" : "above" : void 0;
|
|
123
|
+
}
|
|
124
|
+
function segmentSpanInRect(a, b, rect, pad = 0) {
|
|
125
|
+
let dx = b.x - a.x, dy = b.y - a.y, t0 = 0, t1 = 1, clip = (p, q) => {
|
|
126
|
+
if (p === 0) return q >= 0;
|
|
127
|
+
let t = q / p;
|
|
128
|
+
return p < 0 ? t0 = Math.max(t0, t) : t1 = Math.min(t1, t), t0 <= t1;
|
|
129
|
+
};
|
|
130
|
+
return clip(-dx, a.x - rect.x + pad) && clip(dx, rect.x + rect.w + pad - a.x) && clip(-dy, a.y - rect.y + pad) && clip(dy, rect.y + rect.h + pad - a.y) ? [t0, t1] : void 0;
|
|
131
|
+
}
|
|
132
|
+
function segmentHitsRect(a, b, rect, pad = 0) {
|
|
133
|
+
let x0 = rect.x - pad, y0 = rect.y - pad, x1 = rect.x + rect.w + pad, y1 = rect.y + rect.h + pad, dx = b.x - a.x, dy = b.y - a.y, t0 = 0, t1 = 1;
|
|
134
|
+
for (let side = 0; side < 4; side++) {
|
|
135
|
+
let p = side === 0 ? -dx : side === 1 ? dx : side === 2 ? -dy : dy, q = side === 0 ? a.x - x0 : side === 1 ? x1 - a.x : side === 2 ? a.y - y0 : y1 - a.y;
|
|
136
|
+
if (p === 0) {
|
|
137
|
+
if (q < 0) return !1;
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
let t = q / p;
|
|
141
|
+
if (p < 0 ? t0 = Math.max(t0, t) : t1 = Math.min(t1, t), t0 > t1) return !1;
|
|
142
|
+
}
|
|
143
|
+
return !0;
|
|
144
|
+
}
|
|
145
|
+
function rectHitsConvexPolygon(rect, polygon, pad = 0) {
|
|
146
|
+
let x0 = rect.x - pad, y0 = rect.y - pad, x1 = rect.x + rect.w + pad, y1 = rect.y + rect.h + pad, corners = [{ x: x0, y: y0 }, { x: x1, y: y0 }, { x: x1, y: y1 }, { x: x0, y: y1 }], axes = [{ x: 1, y: 0 }, { x: 0, y: 1 }];
|
|
147
|
+
return polygon.forEach((p, i) => {
|
|
148
|
+
let q = polygon[(i + 1) % polygon.length];
|
|
149
|
+
(p.x !== q.x || p.y !== q.y) && axes.push({ x: q.y - p.y, y: p.x - q.x });
|
|
150
|
+
}), axes.every((axis) => {
|
|
151
|
+
let a = corners.map((p) => p.x * axis.x + p.y * axis.y), b = polygon.map((p) => p.x * axis.x + p.y * axis.y);
|
|
152
|
+
return Math.max(...a) > minOf(b) && maxOf(b) > Math.min(...a);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function prepareConvexPolygon(polygon) {
|
|
156
|
+
let axes = [[1, 0], [0, 1], ...polygon.map((p, i) => {
|
|
157
|
+
let q = polygon[(i + 1) % polygon.length];
|
|
158
|
+
return [q.y - p.y, p.x - q.x];
|
|
159
|
+
})], projected = [];
|
|
160
|
+
for (let [x, y] of axes) {
|
|
161
|
+
if (!x && !y) continue;
|
|
162
|
+
let min = 1 / 0, max = -1 / 0;
|
|
163
|
+
for (let point of polygon) {
|
|
164
|
+
let value = point.x * x + point.y * y;
|
|
165
|
+
min = Math.min(min, value), max = Math.max(max, value);
|
|
166
|
+
}
|
|
167
|
+
projected.push([x, y, min, max]);
|
|
168
|
+
}
|
|
169
|
+
return (rect, pad) => {
|
|
170
|
+
let x0 = rect.x - pad, y0 = rect.y - pad, x1 = rect.x + rect.w + pad, y1 = rect.y + rect.h + pad;
|
|
171
|
+
return projected.every(([x, y, min, max]) => {
|
|
172
|
+
let a = x0 * x + y0 * y, b = x1 * x + y0 * y, c = x1 * x + y1 * y, d = x0 * x + y1 * y;
|
|
173
|
+
return Math.max(a, b, c, d) > min && max > Math.min(a, b, c, d);
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
var deltaGap = (labelHeight) => Math.round(labelHeight);
|
|
178
|
+
function boxGap(a, b) {
|
|
179
|
+
return Math.hypot(Math.max(0, b.x - (a.x + a.w), a.x - (b.x + b.w)), Math.max(0, b.y - (a.y + a.h), a.y - (b.y + b.h)));
|
|
180
|
+
}
|
|
181
|
+
function rectCenter(r) {
|
|
182
|
+
return { x: r.x + r.w / 2, y: r.y + r.h / 2 };
|
|
183
|
+
}
|
|
184
|
+
function inflate(r, by) {
|
|
185
|
+
return { x: r.x - by, y: r.y - by, w: r.w + 2 * by, h: r.h + 2 * by };
|
|
186
|
+
}
|
|
187
|
+
function boundsOf(rects) {
|
|
188
|
+
if (rects.length === 0) return { x: 0, y: 0, w: 0, h: 0 };
|
|
189
|
+
let x0 = 1 / 0, y0 = 1 / 0, x1 = -1 / 0, y1 = -1 / 0;
|
|
190
|
+
for (let r of rects)
|
|
191
|
+
x0 = Math.min(x0, r.x), y0 = Math.min(y0, r.y), x1 = Math.max(x1, r.x + r.w), y1 = Math.max(y1, r.y + r.h);
|
|
192
|
+
return { x: x0, y: y0, w: x1 - x0, h: y1 - y0 };
|
|
193
|
+
}
|
|
194
|
+
function unionRect(a, b) {
|
|
195
|
+
let x = Math.min(a.x, b.x), y = Math.min(a.y, b.y);
|
|
196
|
+
return {
|
|
197
|
+
x,
|
|
198
|
+
y,
|
|
199
|
+
w: Math.max(a.x + a.w, b.x + b.w) - x,
|
|
200
|
+
h: Math.max(a.y + a.h, b.y + b.h) - y
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function clamp(v, lo, hi) {
|
|
204
|
+
return v < lo ? lo : v > hi ? hi : v;
|
|
205
|
+
}
|
|
206
|
+
function round2(v) {
|
|
207
|
+
return Math.round(v * 100) / 100;
|
|
208
|
+
}
|
|
209
|
+
function cleanFloat(v, scale = v) {
|
|
210
|
+
let decimals = 14 - Math.floor(Math.log10(Math.abs(scale)));
|
|
211
|
+
if (decimals < 0 || decimals > 100) return v;
|
|
212
|
+
let cleaned = Number(v.toFixed(decimals)) + 0;
|
|
213
|
+
return Math.abs(cleaned - v) > 4 * Number.EPSILON * Math.abs(scale) ? v : cleaned;
|
|
214
|
+
}
|
|
215
|
+
function cleanSum(terms) {
|
|
216
|
+
let scale = 0;
|
|
217
|
+
for (let t of terms) scale += Math.abs(t);
|
|
218
|
+
return cleanFloat(terms.reduce((a, b) => a + b, 0), scale);
|
|
219
|
+
}
|
|
220
|
+
function cleanDiff(a, b) {
|
|
221
|
+
return cleanFloat(a - b, Math.max(Math.abs(a), Math.abs(b)));
|
|
222
|
+
}
|
|
223
|
+
function strokeBoxPad(width, dx, dy) {
|
|
224
|
+
let r = width / 2, length = Math.hypot(dx, dy);
|
|
225
|
+
return length === 0 ? { x: r, y: r } : { x: r * Math.abs(dy) / length, y: r * Math.abs(dx) / length };
|
|
226
|
+
}
|
|
227
|
+
function rowLabelX(laneX, laneW, labelW, align) {
|
|
228
|
+
return align === "right" ? laneX + laneW - labelW : align === "center" ? laneX + (laneW - labelW) / 2 : laneX;
|
|
229
|
+
}
|
|
230
|
+
|
|
58
231
|
// src/core/svgPath.ts
|
|
59
232
|
function isHatchPattern(pattern) {
|
|
60
233
|
return pattern === "hatch45" || pattern === "crosshatch" || pattern === "horizontal" || pattern === "vertical";
|
|
@@ -420,6 +593,85 @@ function adaptivePaintColor(theme, source) {
|
|
|
420
593
|
}
|
|
421
594
|
}
|
|
422
595
|
|
|
596
|
+
// src/core/label/occupied.ts
|
|
597
|
+
var CELL = 16;
|
|
598
|
+
function cellRange(rect, pad, range) {
|
|
599
|
+
let x0 = Math.floor((rect.x - pad) / CELL), x1 = Math.floor((rect.x + rect.w + pad) / CELL), y0 = Math.floor((rect.y - pad) / CELL), y1 = Math.floor((rect.y + rect.h + pad) / CELL);
|
|
600
|
+
if (x0 <= x1 && y0 <= y1 && (x1 - x0 + 1) * (y1 - y0 + 1) <= 256 && Math.max(-x0, x1, -y0, y1) < 32768)
|
|
601
|
+
return range[0] = x0, range[1] = x1, range[2] = y0, range[3] = y1, range;
|
|
602
|
+
}
|
|
603
|
+
function createOccupiedIndex(_plot) {
|
|
604
|
+
let rects = [], scratchRange = [0, 0, 0, 0], released = /* @__PURE__ */ new Set(), cells = /* @__PURE__ */ new Map(), wide = [], polygonTests = [], hit = (index, rect, pad) => {
|
|
605
|
+
let claim = rects[index];
|
|
606
|
+
return rectsOverlap(claim.rect, rect, pad) && (claim.polygon === void 0 || (polygonTests[index] ??= prepareConvexPolygon(claim.polygon))(rect, pad));
|
|
607
|
+
}, seen = [], stamp = 0, visiting = !1, visitNear = (rect, pad, visit) => {
|
|
608
|
+
if (visiting) throw new Error("occupied index: a query ran inside another query's callback");
|
|
609
|
+
visiting = !0;
|
|
610
|
+
try {
|
|
611
|
+
return visitClaims(rect, pad, visit);
|
|
612
|
+
} finally {
|
|
613
|
+
visiting = !1;
|
|
614
|
+
}
|
|
615
|
+
}, visitClaims = (rect, pad, visit) => {
|
|
616
|
+
let range = cellRange(rect, pad, scratchRange);
|
|
617
|
+
if (range === void 0) {
|
|
618
|
+
for (let i = 0; i < rects.length; i++) if (visit(i)) return !0;
|
|
619
|
+
return !1;
|
|
620
|
+
}
|
|
621
|
+
let [x0, x1, y0, y1] = range;
|
|
622
|
+
stamp++;
|
|
623
|
+
for (let w = 0; w < wide.length; w++) if (visit(wide[w])) return !0;
|
|
624
|
+
for (let x = x0; x <= x1; x++)
|
|
625
|
+
for (let y = y0; y <= y1; y++) {
|
|
626
|
+
let cell = cells.get(x * 65536 + y);
|
|
627
|
+
if (cell !== void 0)
|
|
628
|
+
for (let c = 0; c < cell.length; c++) {
|
|
629
|
+
let i = cell[c];
|
|
630
|
+
if (seen[i] !== stamp && (seen[i] = stamp, visit(i)))
|
|
631
|
+
return !0;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return !1;
|
|
635
|
+
};
|
|
636
|
+
return {
|
|
637
|
+
claim(rect, kind, owner, part, polygon) {
|
|
638
|
+
let claimed = part === void 0 ? { rect: { ...rect }, kind, owner } : { rect: { ...rect }, kind, owner, part };
|
|
639
|
+
polygon !== void 0 && (claimed.polygon = polygon.map((point) => ({ ...point })));
|
|
640
|
+
let index = rects.push(claimed) - 1, range = cellRange(rect, 0, scratchRange);
|
|
641
|
+
if (range === void 0) wide.push(index);
|
|
642
|
+
else {
|
|
643
|
+
let [x0, x1, y0, y1] = range;
|
|
644
|
+
for (let x = x0; x <= x1; x++) for (let y = y0; y <= y1; y++) {
|
|
645
|
+
let key = x * 65536 + y, cell = cells.get(key);
|
|
646
|
+
cell === void 0 ? cells.set(key, [index]) : cell.push(index);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
hits(rect, pad = 0, skip) {
|
|
651
|
+
return visitNear(rect, pad, (i) => !skip?.(rects[i]) && hit(i, rect, pad));
|
|
652
|
+
},
|
|
653
|
+
some(rect, pad, test) {
|
|
654
|
+
return visitNear(rect, pad, (i) => hit(i, rect, pad) && test(rects[i]));
|
|
655
|
+
},
|
|
656
|
+
hitsWhich(rect, pad = 0, skip) {
|
|
657
|
+
let found = [];
|
|
658
|
+
return visitNear(rect, pad, (i) => (!skip?.(rects[i]) && hit(i, rect, pad) && found.push(i), !1)), found.sort((a, b) => a - b).map((i) => rects[i]);
|
|
659
|
+
},
|
|
660
|
+
snapshot() {
|
|
661
|
+
let copy = (entry) => ({ ...entry, rect: { ...entry.rect } });
|
|
662
|
+
if (released.size === 0) return rects.map(copy);
|
|
663
|
+
let kept = [];
|
|
664
|
+
return rects.forEach((entry, index) => {
|
|
665
|
+
released.has(index) || kept.push(copy(entry));
|
|
666
|
+
}), kept;
|
|
667
|
+
},
|
|
668
|
+
release(claim) {
|
|
669
|
+
let index = rects.indexOf(claim);
|
|
670
|
+
index < 0 || (released.add(index), claim.rect = { x: -1e9, y: -1e9, w: 0, h: 0 }, claim.polygon = void 0);
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
|
|
423
675
|
// src/core/markVisibility.ts
|
|
424
676
|
function markVisibilityFloor(background) {
|
|
425
677
|
return contrastRatio(background, "#FFFFFF") > contrastRatio(background, "#000000") ? 3 : 1.4;
|
|
@@ -855,14 +1107,16 @@ function linesBehindText(scene) {
|
|
|
855
1107
|
for (let [, y1, , y2] of straightSegments(node) ?? []) reach.push([Math.min(y1, y2) + (node.ty ?? 0) - half - TEXT_TOUCH_PX, Math.max(y1, y2) + (node.ty ?? 0) + half + TEXT_TOUCH_PX]);
|
|
856
1108
|
}
|
|
857
1109
|
if (reach.length === 0) return scene;
|
|
858
|
-
let boxes = glyphBoxes(scene, (
|
|
859
|
-
|
|
1110
|
+
let boxes = glyphBoxes(scene, reachesBand(reach));
|
|
1111
|
+
if (boxes.length === 0) return scene;
|
|
1112
|
+
let nearBoxes = glyphBoxIndex(boxes);
|
|
1113
|
+
return scene.map((node) => {
|
|
860
1114
|
if (!behindText(node)) return node;
|
|
861
1115
|
let segments = straightSegments(node);
|
|
862
1116
|
if (!segments) return node;
|
|
863
1117
|
let half = (node.t === "line" ? node.width : node.width ?? 1) / 2, dx = node.tx ?? 0, dy = node.ty ?? 0, crossed = !1, runs = segments.flatMap(([x1, y1, x2, y2]) => {
|
|
864
1118
|
let a = [x1 + dx, y1 + dy], b = [x2 + dx, y2 + dy], cuts = [];
|
|
865
|
-
for (let box of
|
|
1119
|
+
for (let box of nearBoxes(a, b, half + REFERENCE_LABEL_CLEARANCE)) {
|
|
866
1120
|
if (!segmentInBox(a, b, box, half + TEXT_TOUCH_PX)) continue;
|
|
867
1121
|
let cut = segmentInBox(a, b, box, half + REFERENCE_LABEL_CLEARANCE);
|
|
868
1122
|
cut && cuts.push(cut);
|
|
@@ -881,6 +1135,33 @@ function linesBehindText(scene) {
|
|
|
881
1135
|
return { ...rest, t: "path", width, d };
|
|
882
1136
|
});
|
|
883
1137
|
}
|
|
1138
|
+
function reachesBand(reach) {
|
|
1139
|
+
let sorted = reach.filter(([a, b]) => a === a && b === b).sort((p, q) => p[0] - q[0]), maxEnd = [];
|
|
1140
|
+
for (let [, b] of sorted) maxEnd.push(Math.max(maxEnd.at(-1) ?? -1 / 0, b));
|
|
1141
|
+
return (y0, y1) => {
|
|
1142
|
+
let low = 0, high = sorted.length;
|
|
1143
|
+
for (; low < high; ) {
|
|
1144
|
+
let mid = low + high >> 1;
|
|
1145
|
+
sorted[mid][0] <= y1 ? low = mid + 1 : high = mid;
|
|
1146
|
+
}
|
|
1147
|
+
return low > 0 && maxEnd[low - 1] >= y0;
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
function glyphBoxIndex(boxes) {
|
|
1151
|
+
let index = createOccupiedIndex({ x: 0, y: 0, w: 0, h: 0 }), byOwner = /* @__PURE__ */ new Map();
|
|
1152
|
+
for (let box of boxes) {
|
|
1153
|
+
let owner = {};
|
|
1154
|
+
if (byOwner.set(owner, box), box.sin === 0) index.claim({ x: box.x0, y: box.y0, w: box.x1 - box.x0, h: box.y1 - box.y0 }, "label", owner);
|
|
1155
|
+
else {
|
|
1156
|
+
let r = Math.max(...[box.x0, box.x1].flatMap((x) => [box.y0, box.y1].map((y) => Math.hypot(x - box.ax, y - box.ay))));
|
|
1157
|
+
index.claim({ x: box.ax - r, y: box.ay - r, w: 2 * r, h: 2 * r }, "label", owner);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
return (a, b, grow) => {
|
|
1161
|
+
let rect = { x: Math.min(a[0], b[0]), y: Math.min(a[1], b[1]), w: Math.abs(b[0] - a[0]), h: Math.abs(b[1] - a[1]) };
|
|
1162
|
+
return index.hitsWhich(rect, 2 * grow + 1).map((claim) => byOwner.get(claim.owner));
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
884
1165
|
function referenceCasings(scene, own2 = () => !0) {
|
|
885
1166
|
let lines = new Set(scene.filter((node) => node.part === "valueLine").map((node) => node.id));
|
|
886
1167
|
return scene.filter((node) => node.part !== "referenceCasing" || !own2(node) || !lines.has(node.id.replace(/:casing:\d+$/, "")));
|
|
@@ -1000,9 +1281,9 @@ function textSizeOf(options) {
|
|
|
1000
1281
|
let value = options?.textSize;
|
|
1001
1282
|
if (value !== void 0) {
|
|
1002
1283
|
if (typeof value != "number" || !(value >= TEXT_SIZE_RANGE.min && value <= TEXT_SIZE_RANGE.max))
|
|
1003
|
-
throw new NormalizeError("invalid-text-size", "options.textSize", "textSize must be a number from 6 to 32 (px)", "use 13 for the sizes of a wide report chart");
|
|
1284
|
+
throw new NormalizeError("invalid-text-size", "options.textSize", "textSize must be a number from 6 to 32 (px)", "use 13 for the sizes of a wide report chart", void 0, ["options", "textSize"]);
|
|
1004
1285
|
if (options.textScale !== void 0)
|
|
1005
|
-
throw new NormalizeError("text-size-and-scale", "options.textSize", "textSize and textScale cannot be used together", "keep one: textSize for equal text across charts, textScale to scale the width-class sizes");
|
|
1286
|
+
throw new NormalizeError("text-size-and-scale", "options.textSize", "textSize and textScale cannot be used together", "keep one: textSize for equal text across charts, textScale to scale the width-class sizes", void 0, ["options", "textSize"]);
|
|
1006
1287
|
return value;
|
|
1007
1288
|
}
|
|
1008
1289
|
}
|
|
@@ -1012,7 +1293,7 @@ function textScaleOf(options) {
|
|
|
1012
1293
|
let value = options?.textScale;
|
|
1013
1294
|
if (value === void 0) return 1;
|
|
1014
1295
|
if (typeof value != "number" || !(value >= TEXT_SCALE_RANGE.min && value <= TEXT_SCALE_RANGE.max))
|
|
1015
|
-
throw new NormalizeError("invalid-text-scale", "options.textScale", `textScale must be a number from ${TEXT_SCALE_RANGE.min} to ${TEXT_SCALE_RANGE.max}`, "use 1 for the target sizes, 1.25 for text 25 % larger");
|
|
1296
|
+
throw new NormalizeError("invalid-text-scale", "options.textScale", `textScale must be a number from ${TEXT_SCALE_RANGE.min} to ${TEXT_SCALE_RANGE.max}`, "use 1 for the target sizes, 1.25 for text 25 % larger", void 0, ["options", "textScale"]);
|
|
1016
1297
|
return value;
|
|
1017
1298
|
}
|
|
1018
1299
|
var KPI_VALUE_SIZE = /* @__PURE__ */ Symbol("kpiValueSize"), KPI_HOST_TEXT = /* @__PURE__ */ Symbol("kpiHostText");
|
|
@@ -1075,6 +1356,34 @@ function computePieRamp(base, background, count, apartFrom, quietest = !1, pageF
|
|
|
1075
1356
|
}
|
|
1076
1357
|
return { tints, distinguishableCount };
|
|
1077
1358
|
}
|
|
1359
|
+
var ROLE_SHADE_MAX = 0.7, ROLE_TINT_MAX = 0.85, ROLE_SPREAD_MAX = 14, roleStepMemo = /* @__PURE__ */ new Map();
|
|
1360
|
+
function roleSteps(base, background, count, stroke, others) {
|
|
1361
|
+
let key = `${base}|${background}|${count}|${stroke}|${others ?? ""}`, known = roleStepMemo.get(key);
|
|
1362
|
+
if (known) return [...known];
|
|
1363
|
+
let dark = isDarkPage(background), floor = stroke || dark ? DARK_PAGE_FLOOR : PAGE_FLOOR, pole = dark ? "#FFFFFF" : "#000000", keepApart = others !== void 0 && swatchApart(base, others), line = [], baseAt = -1;
|
|
1364
|
+
for (let i = -Math.round(ROLE_SHADE_MAX * 100); i <= Math.round(ROLE_TINT_MAX * 100); i++) {
|
|
1365
|
+
let color = i < 0 ? mixColors(base, pole, 1 + i / 100) : tint(base, i / 100, background);
|
|
1366
|
+
contrastRatio(color, background) < floor || keepApart && !swatchApart(color, others) || (i <= 0 && (baseAt = line.length), line.push(color));
|
|
1367
|
+
}
|
|
1368
|
+
let apart = (a, b, gap) => palettePerceptualDistance(a, b, "normal") >= gap && (gap < PALETTE_NORMAL_FLOOR || swatchApart(a, b)), walk = (from, dir, gap, want) => {
|
|
1369
|
+
let found = [];
|
|
1370
|
+
for (let i = from + dir, prev = from; i >= 0 && i < line.length && found.length < want; i += dir)
|
|
1371
|
+
apart(line[prev], line[i], gap) && found.push(prev = i);
|
|
1372
|
+
return found;
|
|
1373
|
+
}, steps;
|
|
1374
|
+
for (let shades = 0; !steps && baseAt >= 0 && shades < count; shades++)
|
|
1375
|
+
for (let gap = ROLE_SPREAD_MAX; !steps && gap >= PALETTE_NORMAL_FLOOR; gap -= 0.5) {
|
|
1376
|
+
let up = walk(baseAt, -1, gap, shades), down = walk(baseAt, 1, gap, count - 1 - shades);
|
|
1377
|
+
up.length === shades && down.length === count - 1 - shades && (steps = [...up, baseAt, ...down]);
|
|
1378
|
+
}
|
|
1379
|
+
for (let gap = PALETTE_NORMAL_FLOOR; !steps && line.length > 0 && gap > 0; gap -= 0.5) {
|
|
1380
|
+
let down = walk(0, 1, gap, count - 1);
|
|
1381
|
+
down.length === count - 1 && (steps = [0, ...down]);
|
|
1382
|
+
}
|
|
1383
|
+
!steps && line.length > 0 && (steps = Array.from({ length: count }, (_, i) => Math.round(count === 1 ? 0 : i * (line.length - 1) / (count - 1))));
|
|
1384
|
+
let colors = steps ? steps.sort((a, b) => a - b).map((i) => line[i]) : Array.from({ length: count }, () => base);
|
|
1385
|
+
return roleStepMemo.set(key, colors), [...colors];
|
|
1386
|
+
}
|
|
1078
1387
|
function quietestTintCap(base, background, others, max) {
|
|
1079
1388
|
let othersContrast = contrastRatio(others, background);
|
|
1080
1389
|
for (let t = max; t > 0; t = Math.max(0, t - 0.01)) {
|
|
@@ -2153,7 +2462,7 @@ function resolveColors(value) {
|
|
|
2153
2462
|
}
|
|
2154
2463
|
|
|
2155
2464
|
// src/core/theme.ts
|
|
2156
|
-
registerDeferredLoader("theme-rules", () => import("./themeShapeRules-
|
|
2465
|
+
registerDeferredLoader("theme-rules", () => import("./themeShapeRules-G7UZX6GJ.js").then((module) => module.linkThemeShapeRules()));
|
|
2157
2466
|
var ATLANTIC_SERIES = ["#075A8E", "#55BEF7", "#2AB1A9", "#838CDA", "#208668", "#9259AC"], ATLANTIC_DARK_SERIES = ["#55BEFB", "#087397", "#25AAA2", "#828BD9", "#1E9240", "#A054C4"], NOTATION_DARK_SERIES = ["#FFFFFF", "#858585", "#D5D5D5", "#606060", "#ACACAC"], DARK_WARN = "#F2C14E", LIGHT_WARN_FILL = "#F5A800", LIGHT_CB_BAD_FILL = "#A0431A";
|
|
2158
2467
|
function canonicalType(family) {
|
|
2159
2468
|
return {
|
|
@@ -2171,7 +2480,41 @@ function canonicalType(family) {
|
|
|
2171
2480
|
};
|
|
2172
2481
|
}
|
|
2173
2482
|
function typeWidthClass(width) {
|
|
2174
|
-
|
|
2483
|
+
let cls = width >= WIDE_CANVAS_MIN_WIDTH ? "L" : width >= 720 ? "M" : "S";
|
|
2484
|
+
return classCap !== void 0 && CLASS_ORDER.indexOf(cls) > CLASS_ORDER.indexOf(classCap) ? classCap : cls;
|
|
2485
|
+
}
|
|
2486
|
+
var CLASS_ORDER = ["S", "M", "L"], classCap;
|
|
2487
|
+
function withTypeClassCap(cap, run) {
|
|
2488
|
+
let outer = classCap;
|
|
2489
|
+
classCap = cap;
|
|
2490
|
+
try {
|
|
2491
|
+
return run();
|
|
2492
|
+
} finally {
|
|
2493
|
+
classCap = outer;
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
var marginBelow = !1;
|
|
2497
|
+
function layoutStepKey() {
|
|
2498
|
+
return (classCap ?? "") + (marginBelow ? "<" : "");
|
|
2499
|
+
}
|
|
2500
|
+
function withMarginStepBelow(run) {
|
|
2501
|
+
let outer = marginBelow;
|
|
2502
|
+
marginBelow = !0;
|
|
2503
|
+
try {
|
|
2504
|
+
return run();
|
|
2505
|
+
} finally {
|
|
2506
|
+
marginBelow = outer;
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
function inMarginStepBand(width) {
|
|
2510
|
+
if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return !1;
|
|
2511
|
+
let at = CANVAS_MARGIN_STEPS.findIndex((step) => width >= step.minWidth), under = CANVAS_MARGIN_STEPS[at + 1];
|
|
2512
|
+
if (!under) return !1;
|
|
2513
|
+
let { minWidth, margin } = CANVAS_MARGIN_STEPS[at];
|
|
2514
|
+
return width - margin.left - margin.right < minWidth - 1 - under.margin.left - under.margin.right;
|
|
2515
|
+
}
|
|
2516
|
+
function classStepWidth(width) {
|
|
2517
|
+
return classCap === "S" ? Math.min(width, 719) : classCap === "M" ? Math.min(width, WIDE_CANVAS_MIN_WIDTH - 1) : width;
|
|
2175
2518
|
}
|
|
2176
2519
|
function smallestTitleSize(theme) {
|
|
2177
2520
|
let { title, scale } = theme.type;
|
|
@@ -2616,6 +2959,10 @@ function removedNameWarnings(options) {
|
|
|
2616
2959
|
}
|
|
2617
2960
|
return warnings;
|
|
2618
2961
|
}
|
|
2962
|
+
function unknownThemeSuggest(name) {
|
|
2963
|
+
let names = Object.keys(themes), word = name.toLowerCase(), named = names.filter((candidate) => candidate.split("-").includes(word));
|
|
2964
|
+
return named.length ? `Use ${named.length > 1 ? `${named.slice(0, -1).join(", ")} or ${named.at(-1)}` : named[0]}; the themes are ${names.join(", ")}.` : `Use one of: ${names.join(", ")}.`;
|
|
2965
|
+
}
|
|
2619
2966
|
function resolveTheme(ref) {
|
|
2620
2967
|
if (!ref) return own(bridgeTheme);
|
|
2621
2968
|
ref = themeShape(ref);
|
|
@@ -2626,7 +2973,9 @@ function resolveTheme(ref) {
|
|
|
2626
2973
|
"unknown-theme",
|
|
2627
2974
|
"options.theme",
|
|
2628
2975
|
`unknown theme '${String(presetName)}'`,
|
|
2629
|
-
|
|
2976
|
+
unknownThemeSuggest(String(presetName)),
|
|
2977
|
+
void 0,
|
|
2978
|
+
["options", "theme"]
|
|
2630
2979
|
);
|
|
2631
2980
|
}
|
|
2632
2981
|
return typeof ref == "string" || !ref.overrides ? own(base) : validatedOverride(base, ref.overrides, presetName);
|
|
@@ -2684,7 +3033,8 @@ function checkedOverride(base, overrides, presetName) {
|
|
|
2684
3033
|
"options.theme.overrides",
|
|
2685
3034
|
`overrides on preset '${presetName}' produce a structurally invalid theme \u2014 ${issues.join("; ")}`,
|
|
2686
3035
|
repair?.suggest ?? "keep each token within its declared type and bounds",
|
|
2687
|
-
repair?.fix
|
|
3036
|
+
repair?.fix,
|
|
3037
|
+
["options", "theme", "overrides"]
|
|
2688
3038
|
);
|
|
2689
3039
|
}
|
|
2690
3040
|
let blocking = rules.semanticErasureWarnings(base).length > 0 ? [] : rules.semanticErasureWarnings(merged);
|
|
@@ -2693,7 +3043,9 @@ function checkedOverride(base, overrides, presetName) {
|
|
|
2693
3043
|
"invalid-theme-override",
|
|
2694
3044
|
"options.theme.overrides",
|
|
2695
3045
|
`overrides on preset '${presetName}' erase a judgment token \u2014 ${blocking.map((b) => `${b.code}: ${b.message}`).join("; ")}`,
|
|
2696
|
-
blocking.find((b) => b.suggest)?.suggest
|
|
3046
|
+
blocking.find((b) => b.suggest)?.suggest,
|
|
3047
|
+
void 0,
|
|
3048
|
+
["options", "theme", "overrides"]
|
|
2697
3049
|
);
|
|
2698
3050
|
return own(merged);
|
|
2699
3051
|
}
|
|
@@ -2933,12 +3285,13 @@ var WIDE_CANVAS_MIN_WIDTH = 1080, SPACE_CANVAS_WIDE = { top: 24, right: 32, bott
|
|
|
2933
3285
|
{ minWidth: 0, margin: { top: 16, right: 16, bottom: 10, left: 16 } }
|
|
2934
3286
|
];
|
|
2935
3287
|
function defaultCanvasMargin(width) {
|
|
2936
|
-
if (width >= WIDE_CANVAS_MIN_WIDTH) return SPACE_CANVAS_WIDE;
|
|
2937
|
-
for (let step of CANVAS_MARGIN_STEPS
|
|
3288
|
+
if (classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH) return SPACE_CANVAS_WIDE;
|
|
3289
|
+
for (let [index, step] of CANVAS_MARGIN_STEPS.entries())
|
|
3290
|
+
if (width >= step.minWidth) return (marginBelow && inMarginStepBand(width) ? CANVAS_MARGIN_STEPS[index + 1]?.margin : void 0) ?? step.margin;
|
|
2938
3291
|
return CANVAS_MARGIN_STEPS[CANVAS_MARGIN_STEPS.length - 1].margin;
|
|
2939
3292
|
}
|
|
2940
3293
|
function spaceTokens(theme, width) {
|
|
2941
|
-
let wide = width >= WIDE_CANVAS_MIN_WIDTH, canvas = theme.space.canvas, margin = wide ? canvas?.wide : canvas?.base, fallback = defaultCanvasMargin(width), gap = theme.space.gap;
|
|
3294
|
+
let wide = classStepWidth(width) >= WIDE_CANVAS_MIN_WIDTH, canvas = theme.space.canvas, margin = wide ? canvas?.wide : canvas?.base, fallback = defaultCanvasMargin(width), gap = theme.space.gap;
|
|
2942
3295
|
return {
|
|
2943
3296
|
margin: {
|
|
2944
3297
|
top: margin?.top ?? fallback.top,
|
|
@@ -3098,9 +3451,26 @@ function sourceColor(theme, source) {
|
|
|
3098
3451
|
return resolved2(pole);
|
|
3099
3452
|
}
|
|
3100
3453
|
if (source.kind === "colorblind") return colorblindColor(theme, source.role);
|
|
3454
|
+
if (source.kind === "role-step") {
|
|
3455
|
+
let base = paintColor(theme, source.base), steps = roleSteps(base, theme.color.background, source.count, source.stroke === !0, source.stroke ? void 0 : paintTokenColor(theme, "othersMark"));
|
|
3456
|
+
if (source.fills === void 0) return steps[source.index] ?? base;
|
|
3457
|
+
let near = steps.map((_, i) => i).sort((a, b) => palettePerceptualDistance(steps[a], base, "normal") - palettePerceptualDistance(steps[b], base, "normal") || a - b).slice(0, source.fills), own2 = steps.map((_, i) => i).filter((i) => near.includes(i) === (source.filled === !0));
|
|
3458
|
+
return steps[own2[source.index]] ?? base;
|
|
3459
|
+
}
|
|
3101
3460
|
if (source.kind === "pie-ramp" || source.kind === "visible-tint") {
|
|
3102
3461
|
let ramp2 = source.kind === "pie-ramp" ? pieRamp(paintColor(theme, source.base), theme.color.background, source.count, source.withOthers ? paintTokenColor(theme, "othersMark") : void 0, source.othersShade !== "apart", theme.marks?.contrastEdge !== !0) : void 0, base = ramp2 ? ramp2.base : paintColor(theme, source.base), amount = source.kind === "pie-ramp" ? ramp2.tints[source.index] ?? 0.82 : visibleTintAmount(theme, source), washed = amount ? tint(base, amount, theme.color.background) : base;
|
|
3103
|
-
|
|
3462
|
+
if (source.kind === "visible-tint" && source.darkApartFrom && darkPage(theme)) return washApart(theme, base, amount, source.darkApartFrom);
|
|
3463
|
+
if (source.kind === "visible-tint" && source.darkMatchLight && darkPage(theme)) return washLikeLight(theme, base, amount);
|
|
3464
|
+
let step = source.kind === "visible-tint" && source.apart !== void 0 && typeof source.amount == "number" && amount < source.amount ? apartStep(theme, base, washed, source.apart) : washed, apartFrom = source.kind === "visible-tint" ? source.apartFrom : void 0;
|
|
3465
|
+
if (!apartFrom) return step;
|
|
3466
|
+
let others = [apartFrom.paint].flat().map((paint) => paintColor(theme, paint)), floor = source.kind !== "visible-tint" ? 0 : source.floor === "mark" ? markVisibilityFloor(theme.color.background) : source.floor, nearest = (color) => Math.min(...others.map((other) => palettePerceptualDistance(color, other))), best = step;
|
|
3467
|
+
for (let percent = 0; percent < 100; percent++)
|
|
3468
|
+
for (let candidate of [mixColors(theme.color.background, step, percent / 100), mixColors(base, step, percent / 100)])
|
|
3469
|
+
if (!(contrastRatio(candidate, theme.color.background) < floor)) {
|
|
3470
|
+
if (nearest(candidate) >= apartFrom.distance) return candidate;
|
|
3471
|
+
nearest(candidate) > nearest(best) && (best = candidate);
|
|
3472
|
+
}
|
|
3473
|
+
return best;
|
|
3104
3474
|
}
|
|
3105
3475
|
if (source.kind === "brighter-pole") return brighterPole(theme);
|
|
3106
3476
|
if (source.kind === "table-ground") return cellGroundColor(theme, source.ground);
|
|
@@ -3305,15 +3675,16 @@ function neutralRampColor(theme, source) {
|
|
|
3305
3675
|
function neutralRampStep(theme, source) {
|
|
3306
3676
|
let quiet = theme.color.neutralLight, muted = paintColor(theme, mutedMarkPaint());
|
|
3307
3677
|
if (source.count < 2) return muted;
|
|
3308
|
-
if (source.hatched)
|
|
3309
|
-
|
|
3310
|
-
for (let weight = 0.05; weight <= 0.6 && palettePerceptualDistance(strong2, muted, "normal") / (source.count - 1) < NEUTRAL_RAMP_STEP; weight += 0.05)
|
|
3311
|
-
strong2 = mixColors(ink, mark, weight);
|
|
3312
|
-
return mixColors(muted, strong2, source.index / (source.count - 1));
|
|
3313
|
-
}
|
|
3314
|
-
let strong = palettePerceptualDistance(muted, quiet, "normal") / (source.count - 1) >= NEUTRAL_RAMP_STEP ? muted : paintTokenColor(theme, "neutralMark");
|
|
3678
|
+
if (source.hatched) return mixColors(muted, rampStrongEnd(theme, muted, source.count), source.index / (source.count - 1));
|
|
3679
|
+
let strong = palettePerceptualDistance(muted, quiet, "normal") / (source.count - 1) >= NEUTRAL_RAMP_STEP ? muted : rampStrongEnd(theme, quiet, source.count);
|
|
3315
3680
|
return mixColors(quiet, strong, source.index / (source.count - 1));
|
|
3316
3681
|
}
|
|
3682
|
+
function rampStrongEnd(theme, weak, count) {
|
|
3683
|
+
let mark = paintTokenColor(theme, "neutralMark"), ink = paintTokenColor(theme, "markInk"), strong = mark;
|
|
3684
|
+
for (let weight = 0.05; weight <= 0.6 && palettePerceptualDistance(strong, weak, "normal") / (count - 1) < NEUTRAL_RAMP_STEP; weight += 0.05)
|
|
3685
|
+
strong = mixColors(ink, mark, weight);
|
|
3686
|
+
return strong;
|
|
3687
|
+
}
|
|
3317
3688
|
function orderedRampPaint(index, count, withOthers = !1) {
|
|
3318
3689
|
return { token: "markInk", theme: { kind: "ordered-ramp", index, count, ...withOthers ? { withOthers: !0 } : {} } };
|
|
3319
3690
|
}
|
|
@@ -3441,13 +3812,21 @@ function markRolePaint(role, fill = !1) {
|
|
|
3441
3812
|
return { token: role === "highlight" ? "focus" : fill && Object.hasOwn(TONE_FILL_TWINS, role) ? TONE_FILL_TWINS[role] : markRoleToken(role) };
|
|
3442
3813
|
}
|
|
3443
3814
|
function colorRolePaints(series, fill = !0) {
|
|
3444
|
-
let byRole = /* @__PURE__ */ new Map();
|
|
3815
|
+
let filled = (id) => typeof fill == "boolean" ? fill : fill(id), byRole = /* @__PURE__ */ new Map();
|
|
3445
3816
|
for (let s of series)
|
|
3446
3817
|
s.fill || !s.colorRole || byRole.set(s.colorRole, [...byRole.get(s.colorRole) ?? [], s.id]);
|
|
3447
3818
|
let paints = /* @__PURE__ */ new Map();
|
|
3448
3819
|
for (let [role, ids] of byRole) {
|
|
3449
|
-
let base = markRolePaint(role,
|
|
3450
|
-
ids.forEach((id, index) => paints.set(id, ids.length === 1 ? base : { token: "token" in base ? base.token : "series-1", theme: {
|
|
3820
|
+
let fills = ids.every(filled), base = markRolePaint(role, fills), filledIds = ids.filter(filled), mixed = filledIds.length > 0 && !fills, lineIds = ids.filter((i) => !filled(i));
|
|
3821
|
+
ids.forEach((id, index) => paints.set(id, ids.length === 1 ? base : { token: "token" in base ? base.token : "series-1", theme: {
|
|
3822
|
+
kind: "role-step",
|
|
3823
|
+
base,
|
|
3824
|
+
// A mixed role counts each mark within its own kind.
|
|
3825
|
+
index: mixed ? (filled(id) ? filledIds : lineIds).indexOf(id) : index,
|
|
3826
|
+
count: ids.length,
|
|
3827
|
+
...fills ? {} : { stroke: !0 },
|
|
3828
|
+
...mixed ? { fills: filledIds.length, ...filled(id) ? { filled: !0 } : {} } : {}
|
|
3829
|
+
} }));
|
|
3451
3830
|
}
|
|
3452
3831
|
return paints;
|
|
3453
3832
|
}
|
|
@@ -3521,6 +3900,28 @@ export {
|
|
|
3521
3900
|
fanPaintSteps,
|
|
3522
3901
|
bulletBandPaints,
|
|
3523
3902
|
bumpStoryPaints,
|
|
3903
|
+
rectsOverlap,
|
|
3904
|
+
rectContains,
|
|
3905
|
+
polylineYAt,
|
|
3906
|
+
rectLineDistance,
|
|
3907
|
+
sideAwayFrom,
|
|
3908
|
+
segmentSpanInRect,
|
|
3909
|
+
segmentHitsRect,
|
|
3910
|
+
rectHitsConvexPolygon,
|
|
3911
|
+
deltaGap,
|
|
3912
|
+
boxGap,
|
|
3913
|
+
rectCenter,
|
|
3914
|
+
inflate,
|
|
3915
|
+
boundsOf,
|
|
3916
|
+
unionRect,
|
|
3917
|
+
clamp,
|
|
3918
|
+
round2,
|
|
3919
|
+
cleanFloat,
|
|
3920
|
+
cleanSum,
|
|
3921
|
+
cleanDiff,
|
|
3922
|
+
strokeBoxPad,
|
|
3923
|
+
rowLabelX,
|
|
3924
|
+
createOccupiedIndex,
|
|
3524
3925
|
fillEdgesOff,
|
|
3525
3926
|
labelPlate,
|
|
3526
3927
|
LABEL_PLATE_RADIUS,
|
|
@@ -3557,6 +3958,11 @@ export {
|
|
|
3557
3958
|
adoptTheme,
|
|
3558
3959
|
themeColors,
|
|
3559
3960
|
typeWidthClass,
|
|
3961
|
+
withTypeClassCap,
|
|
3962
|
+
layoutStepKey,
|
|
3963
|
+
withMarginStepBelow,
|
|
3964
|
+
inMarginStepBand,
|
|
3965
|
+
classStepWidth,
|
|
3560
3966
|
smallestTitleSize,
|
|
3561
3967
|
panelTypeClass,
|
|
3562
3968
|
labelsOffKeepsNames,
|