boardplot 0.57.0 → 0.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +311 -0
- package/README.md +48 -14
- package/dist/{DiagnosticDetails-JFBBXOT2.js → DiagnosticDetails-FXNTFSA4.js} +2 -2
- package/dist/{ReaderBox-GCIITQCX.js → ReaderBox-WVOT7VVJ.js} +8 -7
- package/dist/{annotateEngine-JMZI6QEG.js → annotateEngine-57L26X77.js} +2 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-6LQKU6YN.js → chunk-23FT7RLN.js} +11 -10
- package/dist/{chunk-5WSIH4SR.js → chunk-2CQBBN7M.js} +4 -4
- package/dist/chunk-2DS4MT7T.js +25 -0
- package/dist/{chunk-QFIRPOXR.js → chunk-2HII2B6S.js} +3 -3
- package/dist/{chunk-JMOBA5ES.js → chunk-2IRMGCYE.js} +2 -2
- package/dist/{chunk-JKXJWCJ5.js → chunk-2SWSUNA4.js} +116 -54
- package/dist/{chunk-O7Y6RJ4D.js → chunk-33EBLJVZ.js} +11 -11
- package/dist/{chunk-EHQLLZCQ.js → chunk-34PKJZRY.js} +59 -34
- package/dist/{chunk-SHAAMKN7.js → chunk-35ZJUZUO.js} +18 -18
- package/dist/{chunk-TGR6PRKG.js → chunk-3BMPYY26.js} +6 -3
- package/dist/{chunk-XJUZC53Y.js → chunk-3E6NLODZ.js} +1 -1
- package/dist/{chunk-H3EWFSWI.js → chunk-3ESWPMDW.js} +43 -29
- package/dist/{chunk-6KHRMK3I.js → chunk-3M2F7KSS.js} +158 -75
- package/dist/{chunk-UBXIGE2P.js → chunk-3MFVJMP6.js} +2 -2
- package/dist/{chunk-MOQFYJ3F.js → chunk-3OSQ32GN.js} +5 -5
- package/dist/{chunk-HGPFEG2L.js → chunk-3RXUA6VY.js} +5 -5
- package/dist/{chunk-I65OLJ2X.js → chunk-42QKUSHJ.js} +13 -3
- package/dist/{chunk-FAFUMSPR.js → chunk-4DK67I3B.js} +83 -51
- package/dist/{chunk-EEBMK6T6.js → chunk-4DMRIL5K.js} +8 -8
- package/dist/chunk-4M3UADCM.js +602 -0
- package/dist/{chunk-WSKZZ2ZB.js → chunk-4OJF6DXL.js} +538 -503
- package/dist/{chunk-UD6U4EF5.js → chunk-4ROZ4TFL.js} +1 -1
- package/dist/{chunk-I7KDPCC7.js → chunk-4TUU3UGY.js} +18 -10
- package/dist/{chunk-6ZN2XJFI.js → chunk-54YO56IK.js} +1 -1
- package/dist/{chunk-JMGB444D.js → chunk-5ACFYNA4.js} +8 -4
- package/dist/{chunk-BQIADGJB.js → chunk-5CYLT6FJ.js} +5 -5
- package/dist/{chunk-IVQT2E3Y.js → chunk-5I4RPBNE.js} +13 -13
- package/dist/{chunk-LW4ZQGVL.js → chunk-5KAYLRRP.js} +7 -8
- package/dist/{chunk-2BHLRHF2.js → chunk-5SVGTQTW.js} +4 -4
- package/dist/{chunk-5JTRCSBN.js → chunk-62BDQTO6.js} +2 -2
- package/dist/{chunk-4RN4OM6I.js → chunk-63JUV7NR.js} +3 -3
- package/dist/chunk-645BGVPP.js +26 -0
- package/dist/{chunk-JIH52I36.js → chunk-65U6ZBZZ.js} +119 -85
- package/dist/{chunk-3DUGZ7ML.js → chunk-6ALORYH7.js} +46 -31
- package/dist/{chunk-HB3TH7GY.js → chunk-6AVUTZ6W.js} +10 -6
- package/dist/{chunk-JYAZPMSA.js → chunk-6IUK6PAH.js} +7 -6
- package/dist/{chunk-W5SVS4B6.js → chunk-6JFQCVNN.js} +4 -4
- package/dist/{chunk-IZRTNCJQ.js → chunk-6JTCFPAD.js} +5 -5
- package/dist/{chunk-5TUDYKNL.js → chunk-6NGKQNTB.js} +42 -29
- package/dist/{chunk-IUVJVMKS.js → chunk-6V3A3MTG.js} +55 -32
- package/dist/{chunk-FJKFYQ5I.js → chunk-6YBNVI5I.js} +36 -28
- package/dist/chunk-76GPN6AT.js +72 -0
- package/dist/{chunk-SHCW2TCA.js → chunk-7GRR72MY.js} +25 -23
- package/dist/{chunk-D2B3KP35.js → chunk-7VWXXBTC.js} +4 -0
- package/dist/{chunk-Y5IKCXQR.js → chunk-7YZZCQT3.js} +5 -5
- package/dist/chunk-A65B23JK.js +113 -0
- package/dist/{chunk-2WTD3GCR.js → chunk-A6N24NGW.js} +3 -3
- package/dist/{chunk-72OJBDRB.js → chunk-AAQWFTDM.js} +52 -41
- package/dist/{chunk-4JNHF6JW.js → chunk-AGJ2QL4A.js} +84 -40
- package/dist/{chunk-I3DLERI7.js → chunk-AICO24HJ.js} +5 -2
- package/dist/{chunk-LSKCKGCF.js → chunk-AJGSCVVW.js} +2 -2
- package/dist/{chunk-7P7D6WXR.js → chunk-AKZOQGF3.js} +3 -3
- package/dist/{chunk-RSCRIWAH.js → chunk-AL62JJTB.js} +10 -3
- package/dist/{chunk-VY67Q6CJ.js → chunk-AMBQ6SWU.js} +36 -33
- package/dist/{chunk-73O6AOAA.js → chunk-AQ2PQ7FK.js} +241 -140
- package/dist/{chunk-XFCBH3TI.js → chunk-BHLNSJG7.js} +3 -3
- package/dist/{chunk-6XU5XGYV.js → chunk-BQ7SN7AW.js} +5 -5
- package/dist/{chunk-DRHQG44U.js → chunk-BQBD6Q5J.js} +6 -2
- package/dist/{chunk-LSR3SBJ4.js → chunk-BSZOQJXB.js} +234 -136
- package/dist/{chunk-KJLH5EHD.js → chunk-BVIJCUWW.js} +175 -110
- package/dist/{chunk-2AJWRVZ2.js → chunk-C47POAC5.js} +1 -1
- package/dist/{chunk-AOIZJ7GR.js → chunk-C4SQU2PB.js} +6 -6
- package/dist/{chunk-Y7Q3VEYC.js → chunk-CCAAI56H.js} +30 -10
- package/dist/{chunk-T3WCDDIL.js → chunk-CDUR3KWV.js} +2 -2
- package/dist/{chunk-T5MBORBK.js → chunk-CFESVCZR.js} +1 -1
- package/dist/{chunk-EEL2N4Y6.js → chunk-CKEFAD4R.js} +5 -5
- package/dist/{chunk-WE5WVQE4.js → chunk-CMPHT2LS.js} +3 -3
- package/dist/{chunk-FHA3KMFC.js → chunk-CQBPNE7Z.js} +5 -1
- package/dist/{chunk-JSA3ESEJ.js → chunk-CR5FP5SF.js} +1 -1
- package/dist/{chunk-NCCDEUHD.js → chunk-CSMVKG2C.js} +1 -1
- package/dist/{chunk-JHWDTV4K.js → chunk-D2TQX7UJ.js} +2 -2
- package/dist/{chunk-GHFTKVJN.js → chunk-DHGE46UK.js} +1 -1
- package/dist/{chunk-26WNBTWB.js → chunk-DORE2RHL.js} +5 -5
- package/dist/{chunk-AFA32LHN.js → chunk-DUOGEFLG.js} +62 -36
- package/dist/{chunk-WZB6R2ZX.js → chunk-DZYTXZNS.js} +11 -3
- package/dist/{chunk-O4D27FKH.js → chunk-E5YF236N.js} +4 -1
- package/dist/{chunk-6EE6XEMA.js → chunk-EB4PQEI3.js} +26 -17
- package/dist/{chunk-ANNQJWDX.js → chunk-EBWMTQ4U.js} +285 -34
- package/dist/{chunk-EHNGPUTO.js → chunk-EDW5HQND.js} +5 -5
- package/dist/{chunk-VM5CQ7CG.js → chunk-EHRRHSPV.js} +2 -2
- package/dist/{chunk-PYGEIPPH.js → chunk-EILNJQMN.js} +32 -12
- package/dist/{chunk-KGS5Z7SL.js → chunk-ERDKMZ7O.js} +2 -2
- package/dist/{chunk-USFIDSTO.js → chunk-ETUKDEGL.js} +18 -11
- package/dist/chunk-F2ET5ZTT.js +49 -0
- package/dist/{chunk-HVX2E26J.js → chunk-F3XOBFS4.js} +9 -8
- package/dist/{chunk-I4NUYVP5.js → chunk-FB6X7QHA.js} +1 -1
- package/dist/{chunk-LO3AGGE3.js → chunk-FJNZ7NWD.js} +5 -5
- package/dist/{chunk-IRXTNSZL.js → chunk-FPFRLRQO.js} +40 -22
- package/dist/{chunk-YTEJYLU7.js → chunk-FRR7BJ3B.js} +2 -2
- package/dist/{chunk-DPUCT567.js → chunk-FVWHEM2N.js} +7 -5
- package/dist/{chunk-A33MFWHW.js → chunk-G7BCLYL4.js} +2 -2
- package/dist/{chunk-2KCK63DD.js → chunk-G7CXJPEN.js} +2 -2
- package/dist/{chunk-2X6XY4K4.js → chunk-GB3RZYTK.js} +39 -19
- package/dist/{chunk-MTCDGSYW.js → chunk-GHCU6OSE.js} +2 -2
- package/dist/{chunk-AFGQXMKT.js → chunk-GNMB72V7.js} +161 -67
- package/dist/chunk-GOFS336W.js +24 -0
- package/dist/{chunk-JMXNXLAC.js → chunk-GQYT7G4F.js} +2 -2
- package/dist/{chunk-RRPTQGRU.js → chunk-H3VICNTN.js} +1 -1
- package/dist/{chunk-JRRSKCGG.js → chunk-H4EDDGGX.js} +3 -3
- package/dist/{chunk-5H4HFRDO.js → chunk-H7BCNS5J.js} +5 -5
- package/dist/{chunk-GC4WOLV3.js → chunk-HAG3K6PQ.js} +14 -2
- package/dist/chunk-HF4BCPIV.js +26 -0
- package/dist/{chunk-YCUNFAEE.js → chunk-HM4AJ5U4.js} +238 -127
- package/dist/{chunk-7FAO4ICF.js → chunk-HO4ILCW7.js} +2 -2
- package/dist/{chunk-ZV3SNRJI.js → chunk-HTQGJQZN.js} +4 -2
- package/dist/{chunk-G5BUGYIL.js → chunk-I52OMC5B.js} +192 -113
- package/dist/{chunk-TMXRTYGT.js → chunk-I5VNHDPR.js} +3 -2
- package/dist/{chunk-M74H7QYD.js → chunk-IDXYHDQY.js} +1 -1
- package/dist/{chunk-SSZB3VXG.js → chunk-IFUAPFL5.js} +102 -47
- package/dist/{chunk-IPWUBZ4P.js → chunk-IIWZJ5ZM.js} +1 -1
- package/dist/{chunk-KF3ZHLHQ.js → chunk-IMUMPKXF.js} +5 -5
- package/dist/{chunk-HC6WHTBX.js → chunk-IPBOREIY.js} +1 -1
- package/dist/{chunk-76UL4CT4.js → chunk-IPZJCBWD.js} +27 -22
- package/dist/{chunk-5P4MXWKP.js → chunk-ITEJQHXE.js} +4 -4
- package/dist/{chunk-WDAZ2MT4.js → chunk-IVDTP6SV.js} +4 -4
- package/dist/{chunk-BDGLMWPO.js → chunk-IXOBDDMW.js} +11 -2
- package/dist/{chunk-K6Y4HBK7.js → chunk-IXU5C3YY.js} +1000 -904
- package/dist/{chunk-EDBUVDRI.js → chunk-JBAVMO56.js} +372 -93
- package/dist/{chunk-VY2NPB2Q.js → chunk-JNDWRV34.js} +4 -4
- package/dist/{chunk-XYUXB5VK.js → chunk-JT3UTEWZ.js} +3 -3
- package/dist/{chunk-A6XCVOC5.js → chunk-JY4LTPOV.js} +1 -1
- package/dist/{chunk-VT7PBGL2.js → chunk-JYSFAH7C.js} +23 -36
- package/dist/chunk-K7XPTQBJ.js +267 -0
- package/dist/{chunk-2I76VFMZ.js → chunk-KI7VCHNZ.js} +49 -37
- package/dist/{chunk-YB6QGOCO.js → chunk-KUWIRCYJ.js} +2 -2
- package/dist/{chunk-MQ5EKWIG.js → chunk-KVBLTAO7.js} +5 -5
- package/dist/{chunk-XCROSJ2Z.js → chunk-KW4JXWHO.js} +1 -1
- package/dist/{chunk-BY5JGQFZ.js → chunk-KWIP5YRA.js} +4 -4
- package/dist/{chunk-KAAB2DIV.js → chunk-LJDATBPB.js} +6 -6
- package/dist/{chunk-TDDSWNGD.js → chunk-LOXZSTIM.js} +30 -28
- package/dist/{chunk-ZTSJ7NY6.js → chunk-LPMSGO7L.js} +3 -3
- package/dist/{chunk-IXM6BAM4.js → chunk-LXH4RPY4.js} +1 -1
- package/dist/{chunk-D5G67OER.js → chunk-LYAT62UT.js} +1 -1
- package/dist/{chunk-EFKFZNQC.js → chunk-M5LPP2GQ.js} +34 -20
- package/dist/{chunk-QZMLSK43.js → chunk-MALSSEXO.js} +294 -145
- package/dist/{chunk-XN7JDII2.js → chunk-MB5EX2YG.js} +230 -107
- package/dist/{chunk-PSYPB22T.js → chunk-MGXHFRQK.js} +5 -5
- package/dist/{chunk-GADI2DU7.js → chunk-MVR7YKBF.js} +152 -27
- package/dist/{chunk-IFURKTOL.js → chunk-MXUPMGRY.js} +2 -2
- package/dist/{chunk-C5SQEYTQ.js → chunk-NFGV5OAR.js} +153 -65
- package/dist/{chunk-RZNYW7UP.js → chunk-NNIZG3TH.js} +8 -0
- package/dist/{chunk-AKJO6N4K.js → chunk-NQPJWQTW.js} +11 -4
- package/dist/{chunk-YFI5PN5O.js → chunk-NSMYIUBZ.js} +34 -11
- package/dist/{chunk-H6EJ63QN.js → chunk-NT3HCXQC.js} +144 -83
- package/dist/chunk-NZ7FX3AE.js +65 -0
- package/dist/chunk-O3LT4TAI.js +34 -0
- package/dist/{chunk-L2XRUG4P.js → chunk-OELB7MTE.js} +5 -5
- package/dist/{chunk-7MYJUJZV.js → chunk-OMNB27GM.js} +4 -4
- package/dist/{chunk-GS5UG6QD.js → chunk-OO63YP35.js} +1 -1
- package/dist/{chunk-CEMXGMQN.js → chunk-OQUH7I5T.js} +3 -3
- package/dist/{chunk-Q7VPTN5X.js → chunk-OS7C2KMQ.js} +4 -4
- package/dist/{chunk-NRYERHEI.js → chunk-OTWIW2L3.js} +5 -5
- package/dist/chunk-OUNYHYJL.js +27 -0
- package/dist/{chunk-54HEIM2A.js → chunk-OUR5ZHCB.js} +2 -2
- package/dist/{chunk-Z257SH5U.js → chunk-OZA7HA6L.js} +1 -1
- package/dist/{chunk-WJQX7HBH.js → chunk-OZLKEBCD.js} +2 -2
- package/dist/{chunk-YGPLUENN.js → chunk-P3NMDPDP.js} +132 -83
- package/dist/{chunk-NINK4G7U.js → chunk-P5RCP4NK.js} +2 -2
- package/dist/{chunk-DYSEZVIJ.js → chunk-P6DEFCMQ.js} +2 -2
- package/dist/{chunk-J22ETKDJ.js → chunk-P7UOOMXE.js} +2 -2
- package/dist/chunk-PMT75APP.js +94 -0
- package/dist/{chunk-KLQKHA3T.js → chunk-PNYWBY4K.js} +5 -5
- package/dist/{chunk-XNV7VOIT.js → chunk-PVGJM2HP.js} +4 -4
- package/dist/{chunk-4U2WSW6F.js → chunk-Q2I3QLE3.js} +65 -36
- package/dist/{chunk-LGMV7ZV4.js → chunk-QATOOZMH.js} +5 -5
- package/dist/{chunk-H2POQ4LB.js → chunk-QFNWGSCT.js} +4 -4
- package/dist/{chunk-CIDOL4FO.js → chunk-QQMESIDA.js} +5 -5
- package/dist/{chunk-OTGNVAI4.js → chunk-R3VSWOTI.js} +4 -4
- package/dist/{chunk-UCIAHSJK.js → chunk-R5SGE2NS.js} +7 -3
- package/dist/{chunk-FX5VZK5F.js → chunk-RJICOOB3.js} +14 -8
- package/dist/{chunk-RMVCKO6N.js → chunk-RLH2CQCD.js} +458 -136
- package/dist/{chunk-VFLMBA2M.js → chunk-RPGEB3Z5.js} +19 -18
- package/dist/{chunk-KIXNHDXS.js → chunk-RQKDEJFQ.js} +5 -5
- package/dist/chunk-SBKM6XFS.js +211 -0
- package/dist/{chunk-TQ5HHNM3.js → chunk-SCAYWQZK.js} +2 -2
- package/dist/{chunk-Y5WHM2Q5.js → chunk-SH4FLUAD.js} +1 -1
- package/dist/{chunk-7EQU2TUN.js → chunk-SH4UGK5U.js} +84 -53
- package/dist/{chunk-EY4OA4OF.js → chunk-SHYS52VO.js} +370 -785
- package/dist/{chunk-ZSYU6LIH.js → chunk-SKPOXLG5.js} +5 -5
- package/dist/{chunk-OAT6FWKL.js → chunk-T7PRG6AO.js} +5 -5
- package/dist/chunk-TBZT5WUT.js +39 -0
- package/dist/{chunk-5HTGSB6Y.js → chunk-TKH655ON.js} +3 -3
- package/dist/{chunk-YO5UKKCQ.js → chunk-TMEUK2WS.js} +6 -2
- package/dist/{chunk-X5OVVMZX.js → chunk-TVOMGNFQ.js} +1 -1
- package/dist/{chunk-JARJP576.js → chunk-TX5FSNAU.js} +435 -29
- package/dist/{chunk-LUZ7HXBT.js → chunk-U52PNFPX.js} +1 -1
- package/dist/{chunk-OKM5LYYP.js → chunk-U6QZOMYC.js} +5 -5
- package/dist/{chunk-F4JAGDPD.js → chunk-UBYDY4B7.js} +8 -8
- package/dist/{chunk-V3UE3TB7.js → chunk-UCKUAKYQ.js} +2 -2
- package/dist/{chunk-NO7GRVUU.js → chunk-UOOXWGBU.js} +8 -8
- package/dist/{chunk-LFX5BERN.js → chunk-USMKNNOU.js} +47 -33
- package/dist/chunk-USSG6TJV.js +23 -0
- package/dist/{chunk-HFFKN7PA.js → chunk-UY34DDUM.js} +3 -3
- package/dist/{chunk-3LNVEE5Z.js → chunk-V7FV66KL.js} +1 -1
- package/dist/{chunk-62JZL6FW.js → chunk-V7JFT7NQ.js} +56 -42
- package/dist/{chunk-UP4JSNDR.js → chunk-V7NUJEJE.js} +1 -1
- package/dist/{chunk-FERP4WS3.js → chunk-VACZGW5R.js} +16 -18
- package/dist/{chunk-BO5EJBLH.js → chunk-VC62V7CX.js} +82 -47
- package/dist/{chunk-53OEKS4L.js → chunk-VESSIKBG.js} +6 -3
- package/dist/chunk-VJULLJLN.js +70 -0
- package/dist/{chunk-QLWUFEKR.js → chunk-VKNQOSGW.js} +8 -8
- package/dist/{chunk-BFDPY7JM.js → chunk-VTY6YHQZ.js} +11 -6
- package/dist/{chunk-UFZXZJJG.js → chunk-W2QILXAL.js} +5 -5
- package/dist/{chunk-QHPJ5ZKS.js → chunk-W6XSIBLR.js} +5 -5
- package/dist/{chunk-DJBMA4FW.js → chunk-WDJSDJLV.js} +4 -6
- package/dist/{chunk-JKOEHRGV.js → chunk-WDLWWEHZ.js} +1 -1
- package/dist/{chunk-IW3YUMPI.js → chunk-WFBN2HXR.js} +2 -2
- package/dist/chunk-WGJIYFVQ.js +24 -0
- package/dist/{chunk-43PCSBVQ.js → chunk-WKXLJNHW.js} +634 -8
- package/dist/{chunk-EWR6WVOV.js → chunk-WLH5IBFY.js} +6 -6
- package/dist/{chunk-RHVP62HI.js → chunk-WMQ57FOP.js} +5 -5
- package/dist/{chunk-GKQLKUMF.js → chunk-WNTUBGBB.js} +41 -32
- package/dist/{chunk-RHBQ2Q5H.js → chunk-WOICFLOJ.js} +60 -43
- package/dist/{chunk-QNLESRH6.js → chunk-WUP6C4ZD.js} +2 -2
- package/dist/chunk-WVCDISZP.js +89 -0
- package/dist/{chunk-CT4RFZO4.js → chunk-WW4KLAVO.js} +38 -23
- package/dist/{chunk-I5ZADE2U.js → chunk-X3QUASBR.js} +1 -1
- package/dist/{chunk-TXMS7QUJ.js → chunk-X46PSAJ7.js} +6 -6
- package/dist/{chunk-Z2BDTZDT.js → chunk-XC32OSCD.js} +97 -39
- package/dist/{chunk-M2OQK2FO.js → chunk-XD5XB22R.js} +2 -2
- package/dist/chunk-XLLWIHN2.js +24 -0
- package/dist/{chunk-SD6ENKTO.js → chunk-XMX4PCFL.js} +3 -3
- package/dist/{chunk-BM2A3IGQ.js → chunk-XO44IJGZ.js} +1 -1
- package/dist/{chunk-2HD5RY2U.js → chunk-XRRG4MBM.js} +3 -3
- package/dist/chunk-XSC4IXXC.js +24 -0
- package/dist/{chunk-D5RAVZ5C.js → chunk-XSEETONJ.js} +10 -9
- package/dist/{chunk-YBYV56FS.js → chunk-XZOFKLTD.js} +3 -3
- package/dist/{chunk-YNHPPZ7S.js → chunk-XZXZNI7A.js} +1 -1
- package/dist/{chunk-W7Q6PLT4.js → chunk-Y6E4JU3U.js} +37 -37
- package/dist/{chunk-XR7VOF2V.js → chunk-YGWPOYDE.js} +25 -13
- package/dist/{chunk-HDSHS2QZ.js → chunk-YJUBX3QF.js} +70 -47
- package/dist/{chunk-BDCKHLUB.js → chunk-YLRAAJYV.js} +72 -304
- package/dist/{chunk-I6QGYRY4.js → chunk-YW35KSXR.js} +2 -2
- package/dist/{chunk-GAFEN3H7.js → chunk-Z3WQXVFV.js} +2 -2
- package/dist/{chunk-WKWCNS6K.js → chunk-Z62TJQO5.js} +5 -5
- package/dist/{chunk-D3PQAVFW.js → chunk-Z6DUNKFU.js} +152 -29
- package/dist/{chunk-FF7MV4D4.js → chunk-Z6H5ED2I.js} +1 -1
- package/dist/{chunk-TWRFVW3J.js → chunk-ZB3JIL3L.js} +138 -89
- package/dist/{chunk-KUMJI5B6.js → chunk-ZBCCJPGW.js} +17 -14
- package/dist/{chunk-CV3NC75L.js → chunk-ZBOOMLHD.js} +1 -1
- package/dist/{chunk-QRZESG66.js → chunk-ZCHKIR7C.js} +64 -239
- package/dist/{chunk-ZDD3MJ2H.js → chunk-ZDJ7C64T.js} +1 -1
- package/dist/{chunk-KQ2WZ6BY.js → chunk-ZG4BMJRL.js} +1 -1
- package/dist/{chunk-QYOZ46ZQ.js → chunk-ZIVCPXXL.js} +467 -650
- package/dist/{chunk-V62B23VC.js → chunk-ZNRSYS76.js} +8 -2
- package/dist/{chunk-NIDH22DI.js → chunk-ZSYFQSPF.js} +12 -2
- package/dist/cli/index.js +8 -3
- package/dist/{core-5S5CJHBG.js → core-2GWH3ED7.js} +2 -1
- package/dist/{core-ZSERZGK6.js → core-3LCSHMKN.js} +3 -1
- package/dist/{core-FTQBESDS.js → core-3NQ5TXOJ.js} +3 -1
- package/dist/{core-D2OIGYC7.js → core-3XGQBHJI.js} +4 -1
- package/dist/{core-T3OSZOVV.js → core-4N6WH3IF.js} +3 -1
- package/dist/{core-VRVL6LIM.js → core-5CRTPVYA.js} +3 -1
- package/dist/{core-7XKNJM7Y.js → core-5K4HRIHX.js} +5 -1
- package/dist/{core-CCB3IXGD.js → core-743ZXTWK.js} +3 -1
- package/dist/{core-4M4RY7MX.js → core-7OAGK7ZJ.js} +3 -1
- package/dist/{core-VT35VDVS.js → core-7YDNMUU3.js} +6 -1
- package/dist/{core-4PW4MXWR.js → core-AAPPZSSZ.js} +4 -1
- package/dist/{core-OBPTBKX6.js → core-AC5AKSCM.js} +2 -1
- package/dist/{core-QFAVWFI3.js → core-AEALAFRA.js} +2 -1
- package/dist/{core-WXZJ7V7S.js → core-BEK6EPVF.js} +4 -1
- package/dist/{core-WP73P4CW.js → core-BRBJ3LPF.js} +5 -1
- package/dist/{core-AVA4XLQ2.js → core-EGTJOQK7.js} +2 -1
- package/dist/{core-XKXDXALI.js → core-FE4THVV3.js} +6 -1
- package/dist/{core-MAW4S3KA.js → core-FEBNVNVE.js} +5 -1
- package/dist/{core-L3UR75IJ.js → core-HIONDJGC.js} +4 -1
- package/dist/{core-GS4DXDDG.js → core-HMBMMF5Z.js} +4 -1
- package/dist/{core-QM34237W.js → core-LSYX4UQQ.js} +2 -1
- package/dist/{core-N2JEWJ7D.js → core-MIERUUUT.js} +2 -1
- package/dist/{core-A7HXVSKB.js → core-NTOOJZRA.js} +2 -1
- package/dist/{core-JDZDBTID.js → core-O5S2NETE.js} +2 -1
- package/dist/{core-OFPPRHYY.js → core-Q2Y3JEWL.js} +3 -1
- package/dist/{core-BJZEJ63L.js → core-RTBPKALG.js} +3 -1
- package/dist/{core-WNT6ZMRO.js → core-T7CKLMT2.js} +2 -1
- package/dist/{core-VWYXK2R3.js → core-TIIPSEK3.js} +4 -1
- package/dist/{core-EMSJRGSE.js → core-VBMWBPKM.js} +2 -1
- package/dist/{core-WPEYRK6Y.js → core-VLXOQ5CK.js} +4 -1
- package/dist/{core-7TTM4KRP.js → core-VYHQ5JY6.js} +3 -1
- package/dist/{core-DMDAXVMY.js → core-XJZWD43V.js} +2 -1
- package/dist/{core-AMWCZTOT.js → core-XUNZB6BM.js} +5 -1
- package/dist/{core-UNX4ZV4M.js → core-YKDDPMWW.js} +5 -1
- package/dist/{core-SKMHEA4Y.js → core-YN2VVGUL.js} +3 -1
- package/dist/{core-ZACFV6XR.js → core-YP4MNIMV.js} +5 -1
- package/dist/{core-FCSA74RT.js → core-ZETBHLSV.js} +3 -1
- package/dist/{dataTable-7IO546LM.js → dataTable-FEQZSDUZ.js} +7 -2
- package/dist/{engine-US3N6UCH.js → engine-SCQVNSAM.js} +23 -18
- package/dist/fixtures.js +2 -1
- package/dist/flags-BVLSAXT3.js +10 -0
- package/dist/{fontTables-ZPZQ6IR3.js → fontTables-JUW7ZTQY.js} +3 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +27 -20
- package/dist/{main-2UWKGUHR.js → main-7UKLXCIL.js} +50 -119
- package/dist/mcp/server.js +121 -118
- package/dist/react/bar.js +5 -1
- package/dist/react/bartable.js +3 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +4 -1
- package/dist/react/butterfly.js +5 -1
- package/dist/react/choropleth.js +3 -1
- package/dist/react/cohort.js +3 -1
- package/dist/react/column.js +5 -1
- package/dist/react/combo.js +5 -1
- package/dist/react/creative.js +4 -1
- package/dist/react/diagram.js +3 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +4 -1
- package/dist/react/export.js +29 -18
- package/dist/react/funnel.js +4 -1
- package/dist/react/gantt.js +3 -1
- package/dist/react/grid.js +6 -1
- package/dist/react/heatmap.js +3 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +92 -85
- package/dist/react/kpi.js +4 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +4 -1
- package/dist/react/mekko.js +5 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +4 -1
- package/dist/react/prepare.js +35 -22
- package/dist/react/pvm.js +6 -1
- package/dist/react/pyramid.js +5 -1
- package/dist/react/sankey.js +3 -1
- package/dist/react/scatter.js +3 -1
- package/dist/react/slope.js +4 -1
- package/dist/react/sparkline.js +4 -1
- package/dist/react/spec.js +17 -13
- package/dist/react/status.js +3 -1
- package/dist/react/story.js +3 -2
- package/dist/react/table.js +4 -1
- package/dist/react/theme.js +5 -3
- package/dist/react/tilemap.js +3 -1
- package/dist/react/treemap.js +3 -1
- package/dist/react/variance.js +5 -1
- package/dist/react/waffle.js +3 -1
- package/dist/react/waterfall.js +5 -1
- package/dist/{resvg-VB7S5HRF.js → resvg-ZYEZTSUO.js} +3 -1
- package/dist/rows.js +2 -2
- package/dist/{rowsModule-DYDVHBAX.js → rowsModule-WJH4QNXZ.js} +1 -1
- package/dist/{schema-YDZCGL56.js → schema-2R32F6AW.js} +1 -3
- package/dist/{schema-A2XUZUCV.js → schema-2TPGJGVR.js} +1 -3
- package/dist/{schema-MD22QYZU.js → schema-47BG2TZA.js} +1 -3
- package/dist/{schema-HEB6ZDI5.js → schema-56MOEOVR.js} +1 -3
- package/dist/{schema-K4V4PYBO.js → schema-5MSR4LNN.js} +1 -3
- package/dist/{schema-NOBNFD2F.js → schema-5RIYEWE6.js} +1 -3
- package/dist/{schema-OXO2XY4Y.js → schema-ALBF6V7Y.js} +1 -3
- package/dist/{schema-F2Q6MH7W.js → schema-BA6WP5YZ.js} +1 -3
- package/dist/{schema-G5KSSI5W.js → schema-CBL2SMVR.js} +1 -3
- package/dist/{schema-WFGDVBJK.js → schema-CWKGLDSR.js} +1 -3
- package/dist/{schema-DHMMGDTI.js → schema-DBIQFL56.js} +1 -3
- package/dist/{schema-626QXX4G.js → schema-DL7V6NN2.js} +1 -3
- package/dist/{schema-FC6J6KZC.js → schema-DUVJMFKQ.js} +1 -3
- package/dist/{schema-LGLQBRC4.js → schema-ECJERHKF.js} +1 -2
- package/dist/{schema-4JRNXEZF.js → schema-EDSEKZDJ.js} +1 -3
- package/dist/{schema-I44IDRGD.js → schema-ESR6ZIK4.js} +1 -3
- package/dist/{schema-FSYDLMGD.js → schema-F7TWGLRZ.js} +1 -3
- package/dist/{schema-JCU6LTYD.js → schema-FGB6IGZM.js} +1 -3
- package/dist/{schema-MGETMQYC.js → schema-FKGGTM4Z.js} +1 -2
- package/dist/{schema-XIHAKX3B.js → schema-JIAQE7WO.js} +1 -1
- package/dist/{schema-6V5K3J2V.js → schema-JYZ4RF6S.js} +1 -3
- package/dist/{schema-GXOG4MXL.js → schema-K7F6TEDK.js} +1 -2
- package/dist/{schema-NMIYKGHE.js → schema-KAK6DZX4.js} +1 -3
- package/dist/{schema-PHIHMDVB.js → schema-KCJ6WTGV.js} +1 -3
- package/dist/{schema-XRSORYBI.js → schema-MOKWIGF7.js} +1 -3
- package/dist/{schema-3KMU5737.js → schema-MQT6BMNK.js} +1 -3
- package/dist/{schema-JJWORI7D.js → schema-MR3BPPQR.js} +1 -3
- package/dist/{schema-IFTIMTS3.js → schema-OPXZYIW7.js} +1 -3
- package/dist/{schema-UXWKA3PI.js → schema-PV7JGX5H.js} +1 -3
- package/dist/{schema-CNJ4Y6CT.js → schema-PWPQF5RC.js} +1 -3
- package/dist/{schema-WBOPCTPC.js → schema-PYQEUC5P.js} +1 -3
- package/dist/{schema-J4HCSD5C.js → schema-Q5DACE4I.js} +6 -2
- package/dist/{schema-IUY7VYHJ.js → schema-R42VXFIS.js} +1 -3
- package/dist/{schema-WX2RS4OU.js → schema-TVUJNEX7.js} +1 -3
- package/dist/{schema-6PL46VXZ.js → schema-WZOSDDDJ.js} +1 -3
- package/dist/{schema-FGE5YK3S.js → schema-Y4TI2T3T.js} +1 -3
- package/dist/{schema-MQB6CE5V.js → schema-ZU2EU2VP.js} +1 -3
- package/dist/{specValidation-XGELWQUU.js → specValidation-DC4TVHWD.js} +3 -1
- package/dist/theme.js +4 -3
- package/dist/{themeShapeRules-PW4BQHKL.js → themeShapeRules-G7UZX6GJ.js} +1 -1
- package/dist/types/core/annotate.d.ts +27 -2
- package/dist/types/core/annotateArms.d.ts +3 -1
- package/dist/types/core/annotateTargets.d.ts +4 -0
- package/dist/types/core/annotationOrigin.d.ts +13 -0
- package/dist/types/core/axis.d.ts +2 -2
- package/dist/types/core/charts/band/stacks.d.ts +7 -1
- package/dist/types/core/charts/column/model.d.ts +13 -0
- package/dist/types/core/charts/combo/layout.d.ts +7 -0
- package/dist/types/core/charts/gantt/calendar.d.ts +4 -0
- package/dist/types/core/charts/grid/normalize.d.ts +5 -0
- package/dist/types/core/charts/grid/schema.d.ts +2 -2
- package/dist/types/core/charts/pareto/layout.d.ts +2 -0
- package/dist/types/core/charts/pvm/types.d.ts +1 -0
- package/dist/types/core/charts/scatter/clamp.d.ts +2 -1
- package/dist/types/core/charts/scatter/model.d.ts +5 -0
- package/dist/types/core/charts/scatter/valueLines.d.ts +3 -1
- package/dist/types/core/charts/table/resolve.d.ts +8 -3
- package/dist/types/core/charts/table/view.d.ts +24 -1
- package/dist/types/core/claims/browser.d.ts +2 -0
- package/dist/types/core/claims/ids.d.ts +38 -0
- package/dist/types/core/deferred.d.ts +1 -0
- package/dist/types/core/diagnostics/describe.d.ts +6 -1
- package/dist/types/core/doc/diagnostics.d.ts +3 -2
- package/dist/types/core/formatSpec.d.ts +33 -14
- package/dist/types/core/frame.d.ts +25 -58
- package/dist/types/core/frameText.d.ts +203 -0
- package/dist/types/core/geometry.d.ts +2 -0
- package/dist/types/core/label/categoryRow.d.ts +19 -2
- package/dist/types/core/label/solver.d.ts +23 -2
- package/dist/types/core/normalize/shared.d.ts +12 -2
- package/dist/types/core/notes.d.ts +15 -2
- package/dist/types/core/reading.d.ts +12 -1
- package/dist/types/core/request.d.ts +1 -1
- package/dist/types/core/schema/capability.d.ts +12 -0
- package/dist/types/core/seriesIdentity.d.ts +4 -1
- package/dist/types/core/sizing.d.ts +37 -1
- package/dist/types/core/structureCounts.d.ts +3 -1
- package/dist/types/core/theme.d.ts +33 -4
- package/dist/types/core/themeRules.d.ts +2 -0
- package/dist/types/core/types/annotations.d.ts +74 -4
- package/dist/types/core/types/options.d.ts +35 -3
- package/dist/types/core/types/scene.d.ts +30 -2
- package/dist/types/core/types/table.d.ts +6 -0
- package/dist/types/core/types/theme.d.ts +23 -0
- package/dist/types/react/TableChart.d.ts +5 -0
- package/dist/validate.js +13 -6
- package/docs/TELEMETRY.md +2 -2
- package/docs/manual.md +252 -62
- package/docs/reference/bar.md +12 -4
- package/docs/reference/bartable.md +2 -2
- package/docs/reference/box.md +8 -4
- package/docs/reference/bullet.md +9 -5
- package/docs/reference/butterfly.md +10 -5
- package/docs/reference/choropleth.md +3 -5
- package/docs/reference/cohort.md +1 -1
- package/docs/reference/column.md +18 -4
- package/docs/reference/combo.md +10 -5
- package/docs/reference/creative.md +3 -7
- package/docs/reference/diagram.md +1 -1
- package/docs/reference/dimswitch.md +23 -88
- package/docs/reference/dot.md +9 -5
- package/docs/reference/fixtures.md +37 -1
- package/docs/reference/funnel.md +9 -5
- package/docs/reference/gantt.md +8 -15
- package/docs/reference/grid.md +5 -2
- package/docs/reference/heatmap.md +10 -6
- package/docs/reference/kpi.md +1 -1
- package/docs/reference/likert.md +9 -4
- package/docs/reference/line.md +18 -5
- package/docs/reference/mekko.md +10 -5
- package/docs/reference/options.md +17 -13
- package/docs/reference/pareto.md +8 -4
- package/docs/reference/pie.md +9 -5
- package/docs/reference/pvm.md +9 -5
- package/docs/reference/pyramid.md +8 -4
- package/docs/reference/react.md +5 -5
- package/docs/reference/sankey.md +2 -2
- package/docs/reference/scatter.md +8 -4
- package/docs/reference/slope.md +9 -5
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +1 -1
- package/docs/reference/table.md +33 -114
- package/docs/reference/theme.md +12 -4
- package/docs/reference/tilemap.md +2 -4
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/variance.md +12 -6
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/warnings.md +1077 -0
- package/docs/reference/waterfall.md +16 -4
- package/docs/use-cases.md +25 -13
- package/llms.txt +19 -6
- package/package.json +18 -3
- package/dist/chunk-5RHP7YTL.js +0 -24
- package/dist/chunk-6VU2XI3W.js +0 -89
- package/dist/chunk-6WJOHZPW.js +0 -26
- package/dist/chunk-FL3FQ2YA.js +0 -27
- package/dist/chunk-G5CELEUR.js +0 -26
- package/dist/chunk-M4SPKUZE.js +0 -7
- package/dist/chunk-OF7FMGH5.js +0 -24
- package/dist/chunk-S2TSXUYP.js +0 -24
- package/dist/chunk-TKERVBJ3.js +0 -23
- package/dist/chunk-VMGTNB6H.js +0 -25
- package/dist/chunk-WZL4EEBS.js +0 -11
- package/dist/chunk-YJGFT63R.js +0 -27
- package/dist/chunk-ZNX5J7D7.js +0 -47
|
@@ -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
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,
|