boardplot 0.52.5 → 0.54.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 +58 -0
- package/README.md +13 -12
- package/dist/{ReaderBox-VUNSFKZY.js → ReaderBox-YXC5XK7D.js} +6 -5
- package/dist/{annotateEngine-H7OW4H3W.js → annotateEngine-5O3IRSQL.js} +3 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-ZSLGN6CO.js → chunk-23RWLBZF.js} +1 -1
- package/dist/{chunk-HAAUJDGB.js → chunk-24BHMKDD.js} +2 -2
- package/dist/{chunk-MDYLOIS2.js → chunk-26P4WRQC.js} +1 -1
- package/dist/{chunk-EWVKBRLV.js → chunk-2DR5MMDY.js} +2 -2
- package/dist/{chunk-3ZCKEANJ.js → chunk-2HXKW6U6.js} +3 -3
- package/dist/{chunk-GWQIXU37.js → chunk-2IXDYW6O.js} +30 -28
- package/dist/{chunk-OLNORNCT.js → chunk-2THWIKRB.js} +4 -4
- package/dist/{chunk-JRPI64AQ.js → chunk-32X7JGH3.js} +18 -15
- package/dist/{chunk-PUVGWJQ5.js → chunk-35ZTANEK.js} +4 -4
- package/dist/{chunk-FOKEGVPB.js → chunk-3CLLHMFF.js} +3 -3
- package/dist/{chunk-XYONCO5Q.js → chunk-3FNY7ZCG.js} +19 -16
- package/dist/{chunk-X7TXGKRX.js → chunk-3P4PJJND.js} +6 -6
- package/dist/{chunk-4DNOEV3Q.js → chunk-3RMTPAEJ.js} +79 -2
- package/dist/{chunk-NYEY6W5R.js → chunk-3UBTO342.js} +8 -8
- package/dist/{chunk-MCOIEWW6.js → chunk-3V7AA3IZ.js} +1 -1
- package/dist/{chunk-RJQ5YS3Q.js → chunk-43OQ26TL.js} +10 -6
- package/dist/{chunk-V422EKLW.js → chunk-46ZPFJAM.js} +3 -3
- package/dist/{chunk-W7UZXD5D.js → chunk-47BO6MYI.js} +18 -15
- package/dist/{chunk-5T5YW52S.js → chunk-4FFCIQDG.js} +1 -1
- package/dist/{chunk-KU4YS6HN.js → chunk-4MREJWRM.js} +1 -1
- package/dist/{chunk-IDTLHPTK.js → chunk-4TPHMIE5.js} +2 -2
- package/dist/{chunk-2MTWKMEG.js → chunk-4WK3CNW5.js} +13 -6
- package/dist/{chunk-ORUJI3VB.js → chunk-4WQ2MBE7.js} +1 -1
- package/dist/chunk-4ZGN4ZUN.js +164 -0
- package/dist/{chunk-YQ2B3YVF.js → chunk-53OYF4ZT.js} +1 -1
- package/dist/{chunk-JL5BRMDT.js → chunk-57ZGVAU3.js} +1 -1
- package/dist/{chunk-VYMGZ27S.js → chunk-5A6MO4AR.js} +3 -2
- package/dist/{chunk-WHSTEAVP.js → chunk-5PCCSSII.js} +1 -1
- package/dist/{chunk-Z256ACGC.js → chunk-5SJQOPL7.js} +2 -2
- package/dist/{chunk-RNOD2UWF.js → chunk-6BJQULXR.js} +12 -12
- package/dist/{chunk-2DHJJ2EN.js → chunk-6BWSF5PS.js} +3 -3
- package/dist/{chunk-CAE2HK2G.js → chunk-6I7YZTY7.js} +3 -11
- package/dist/{chunk-XW5J5JAX.js → chunk-6K2TMVPF.js} +2 -2
- package/dist/{chunk-IZ35GMGB.js → chunk-6NLH6TEP.js} +13 -10
- package/dist/{chunk-TTR7EWNH.js → chunk-6TJDWMZV.js} +4 -4
- package/dist/{chunk-KSYVTEKR.js → chunk-6ZXMA4TY.js} +3 -3
- package/dist/{chunk-OH7FA4TF.js → chunk-7EOLHBI6.js} +1 -1
- package/dist/{chunk-3W23F7EY.js → chunk-7EVIIADO.js} +1 -1
- package/dist/{chunk-EC2NAYPQ.js → chunk-7HFUG25L.js} +3 -3
- package/dist/{chunk-DLC23CKC.js → chunk-7JQAUJOL.js} +1 -1
- package/dist/{chunk-3I6RANBJ.js → chunk-7NWFKHSG.js} +36 -32
- package/dist/{chunk-RNXITK5M.js → chunk-7R5EV5MS.js} +3 -3
- package/dist/{chunk-ELYU6TRQ.js → chunk-7X3UZM7F.js} +1 -1
- package/dist/{chunk-UZF3G2FN.js → chunk-A5TY7H5T.js} +5 -5
- package/dist/{chunk-XEGRWWNO.js → chunk-AA4U62G6.js} +2 -2
- package/dist/{chunk-TXINIAFL.js → chunk-AG2CJ4JY.js} +10 -5
- package/dist/{chunk-R5SWC3EW.js → chunk-AHQ4L3BE.js} +1 -1
- package/dist/{chunk-35DZP2R2.js → chunk-AJHYXD5U.js} +2 -2
- package/dist/{chunk-TPYV2FTV.js → chunk-ATUZTGZI.js} +3 -3
- package/dist/{chunk-S53OGZL6.js → chunk-AVMKRVNP.js} +1 -1
- package/dist/{chunk-R3WI7ZLE.js → chunk-AZIRTSVP.js} +14 -11
- package/dist/{chunk-II7652VA.js → chunk-B3F4TS3V.js} +47 -20
- package/dist/{chunk-DCCJRLAJ.js → chunk-B6LHZLLK.js} +5 -0
- package/dist/{chunk-M6KTNAND.js → chunk-BRPOSOK5.js} +17 -11
- package/dist/{chunk-EQT3EPTB.js → chunk-BWTX7LUG.js} +1 -1
- package/dist/{chunk-BVWU6GOB.js → chunk-BXEM2CVW.js} +2 -2
- package/dist/{chunk-A7A4PDG5.js → chunk-BYD7VLAI.js} +3 -3
- package/dist/{chunk-JFG4DHKQ.js → chunk-C3O45JWU.js} +1 -1
- package/dist/{chunk-BKYMLFUG.js → chunk-C54QLNE4.js} +1 -1
- package/dist/{chunk-7JVAQX6C.js → chunk-CEY646NZ.js} +4 -4
- package/dist/{chunk-GZ4RHGIW.js → chunk-CICWSCLC.js} +19 -19
- package/dist/{chunk-QHFQHQDC.js → chunk-CPKHL7FK.js} +2 -2
- package/dist/{chunk-NXNQQ3DS.js → chunk-D3D7XHBI.js} +7 -14
- package/dist/{chunk-RSWVH7DB.js → chunk-D7GZPMHW.js} +3 -3
- package/dist/chunk-DAVHGK27.js +657 -0
- package/dist/{chunk-7VXZDB45.js → chunk-DDI2W4TR.js} +1 -1
- package/dist/{chunk-JLCAWQ3H.js → chunk-DHWCFQNO.js} +3 -3
- package/dist/{chunk-GQS46LC3.js → chunk-DSZUV3TM.js} +11 -3
- package/dist/{chunk-H57TJD3B.js → chunk-E42JZ2DA.js} +1 -1
- package/dist/{chunk-YTSSXSZR.js → chunk-E64MTTBC.js} +3 -3
- package/dist/{chunk-NT3HAZYT.js → chunk-EHDWWFNV.js} +1 -1
- package/dist/{chunk-FT3F72C3.js → chunk-EHVESNLV.js} +1 -1
- package/dist/{chunk-W2RGSGRR.js → chunk-ELPQZIGR.js} +13 -10
- package/dist/{chunk-7IFLQMJL.js → chunk-ENOCOA3F.js} +5 -4
- package/dist/{chunk-KPMGGE4W.js → chunk-EP54VZI5.js} +1 -1
- package/dist/{chunk-QG6MOQLI.js → chunk-EYLWVI26.js} +17 -14
- package/dist/{chunk-NEVSQGOI.js → chunk-EYZ6SLF3.js} +2 -2
- package/dist/{chunk-HFG76JTS.js → chunk-F35DA442.js} +3 -3
- package/dist/{chunk-A372DLQX.js → chunk-F7X53SZM.js} +3 -3
- package/dist/{chunk-PTVOXB5T.js → chunk-FHA3KMFC.js} +6 -2
- package/dist/{chunk-S4F27M7N.js → chunk-FILDYFT4.js} +2 -2
- package/dist/{chunk-WMJPFLF3.js → chunk-FMFCGYCE.js} +29 -25
- package/dist/{chunk-TPZB2YWR.js → chunk-FPPN5NAR.js} +2 -2
- package/dist/{chunk-5DJXJXDE.js → chunk-FV32N6AF.js} +1 -1
- package/dist/{chunk-MJMJEURO.js → chunk-G57ZO7DB.js} +10 -10
- package/dist/{chunk-WDUNR2VI.js → chunk-G63ROSY5.js} +22 -19
- package/dist/{chunk-V4VC25UL.js → chunk-G6XCUX3I.js} +4 -4
- package/dist/{chunk-JLZM7XMZ.js → chunk-GEBGBJBD.js} +14 -11
- package/dist/{chunk-FT47HQ5U.js → chunk-GGO43PHB.js} +4 -4
- package/dist/{chunk-XDLQRSSH.js → chunk-GSMWHKOW.js} +2 -2
- package/dist/{chunk-2JAWQ7VV.js → chunk-GVKFFJ23.js} +11 -10
- package/dist/{chunk-Q6XJOJTY.js → chunk-GYNZ72GO.js} +2 -2
- package/dist/{chunk-WRHFBCVY.js → chunk-H4SYN3QA.js} +3 -3
- package/dist/{chunk-MEISCROL.js → chunk-HC4NDND6.js} +3 -3
- package/dist/{chunk-I322G5UG.js → chunk-HDZGZJKR.js} +17 -14
- package/dist/{chunk-3GZECHOK.js → chunk-HGGLJYPZ.js} +12 -12
- package/dist/{chunk-B67K5X4M.js → chunk-HHS6333D.js} +1 -1
- package/dist/{chunk-6UBEGKIQ.js → chunk-HNVW3YDS.js} +3 -3
- package/dist/{chunk-GZ2VNM4L.js → chunk-HW7BPJNQ.js} +3 -3
- package/dist/{chunk-NG5IGZXC.js → chunk-HZG5NB7Q.js} +23 -20
- package/dist/{chunk-S7VDRUED.js → chunk-HZZH3MQI.js} +1 -1
- package/dist/{chunk-CS4DHFNG.js → chunk-I2E3YDNZ.js} +3 -3
- package/dist/{chunk-YAYRRKC7.js → chunk-I5L3QTKQ.js} +3 -3
- package/dist/{chunk-KYELSLDJ.js → chunk-IDT7DJ7F.js} +1 -1
- package/dist/{chunk-JETXFF3M.js → chunk-IK4BHOPZ.js} +1 -1
- package/dist/{chunk-GDQ3NGDZ.js → chunk-IM4WUIR7.js} +2 -2
- package/dist/chunk-IMJXJHFW.js +88 -0
- package/dist/{chunk-5C7TWNYZ.js → chunk-ISWU5YB3.js} +1 -1
- package/dist/{chunk-5KWXRYAT.js → chunk-J2ROMB7J.js} +17 -11
- package/dist/{chunk-WJMUMN3I.js → chunk-J33RA3YO.js} +2 -2
- package/dist/{chunk-627P6T25.js → chunk-JAKRPSWP.js} +21 -18
- package/dist/{chunk-PEN2DK7T.js → chunk-JB4YPOMT.js} +2 -2
- package/dist/{chunk-YP3I6W7T.js → chunk-JDEVGTSX.js} +3 -3
- package/dist/{chunk-JSX3C6LL.js → chunk-JEL6665C.js} +5 -5
- package/dist/{chunk-DFKTS6XJ.js → chunk-JEYJRJ7M.js} +1 -1
- package/dist/{chunk-JA755JHN.js → chunk-JJJ2KAHR.js} +10 -7
- package/dist/{chunk-SGSPYHFE.js → chunk-JTJNQKPM.js} +8 -5
- package/dist/{chunk-DGDOGOTQ.js → chunk-K2KU4HHT.js} +3 -3
- package/dist/{chunk-CRZKGHZ6.js → chunk-K4K6KGEF.js} +17 -19
- package/dist/{chunk-QVABTUDS.js → chunk-K4RCWNLC.js} +7 -7
- package/dist/{chunk-GULJ6KVT.js → chunk-KAQH75T6.js} +14 -14
- package/dist/{chunk-2UVTHU7A.js → chunk-KBFPMESI.js} +37 -27
- package/dist/{chunk-S5ADHIZK.js → chunk-KFWEO4UA.js} +28 -25
- package/dist/{chunk-MIXKQJ64.js → chunk-KJEZFOO6.js} +18 -18
- package/dist/{chunk-NLOMCLKI.js → chunk-KL2XJQAA.js} +8 -8
- package/dist/{chunk-2AKWCMS4.js → chunk-KNZD53L4.js} +3 -3
- package/dist/{chunk-DVKBU23L.js → chunk-KORHKDJW.js} +1 -1
- package/dist/{chunk-NMCOUVN5.js → chunk-KSQEG6DX.js} +3 -3
- package/dist/{chunk-TVHLKVUO.js → chunk-KVSJ2O4Q.js} +3 -3
- package/dist/{chunk-XTNV2YMB.js → chunk-L3JWM7FR.js} +1 -1
- package/dist/{chunk-IZCOG3FS.js → chunk-L7FSCT4M.js} +4 -4
- package/dist/{chunk-Z5VSLLNY.js → chunk-L7RHB734.js} +1 -1
- package/dist/{chunk-B2EBEXIS.js → chunk-LFX7W4B7.js} +1 -1
- package/dist/chunk-LINZPU5D.js +8 -0
- package/dist/{chunk-COKHNEJP.js → chunk-LMPZKCDM.js} +3 -3
- package/dist/{chunk-ZVTFZF4V.js → chunk-LTMF75MR.js} +8 -8
- package/dist/{chunk-A6XCAQ52.js → chunk-LVXOY5WL.js} +7 -6
- package/dist/{chunk-3HHNQPAH.js → chunk-LYVOL4TQ.js} +1 -1
- package/dist/{chunk-HJXXFPOL.js → chunk-MBVXROCI.js} +2 -2
- package/dist/{chunk-76ANFJOI.js → chunk-MCYM3RNF.js} +1 -1
- package/dist/{chunk-F77BNDAT.js → chunk-MEG4NMSI.js} +2 -2
- package/dist/{chunk-C64FBRJO.js → chunk-MKVV7GVJ.js} +5 -5
- package/dist/{chunk-XPWRD424.js → chunk-MONVTUHR.js} +3 -3
- package/dist/{chunk-YI2ZVTCB.js → chunk-MT4MP3UZ.js} +1 -1
- package/dist/{chunk-V4DYVLOO.js → chunk-MYCLO35J.js} +5 -5
- package/dist/{chunk-4SM2ONUC.js → chunk-MZJBPDIL.js} +1 -1
- package/dist/{chunk-CYDZP5W6.js → chunk-NGRIT3CY.js} +26 -23
- package/dist/{chunk-2SGIHKKU.js → chunk-NQSDIDRO.js} +1 -1
- package/dist/{chunk-WVSNSWBJ.js → chunk-NRF223FR.js} +1 -1
- package/dist/{chunk-QXILAMAU.js → chunk-NRHTC2SQ.js} +1 -1
- package/dist/{chunk-H7UZZ7KP.js → chunk-NWQTSZYC.js} +3 -3
- package/dist/{chunk-OAPCJO6W.js → chunk-O3VN6BTL.js} +1 -0
- package/dist/{chunk-LO2DANS6.js → chunk-OD3IH6FG.js} +5 -5
- package/dist/{chunk-S62M63LU.js → chunk-OM67S6S4.js} +3 -3
- package/dist/{chunk-UEU46Q3D.js → chunk-OMNQXHFF.js} +7 -7
- package/dist/{chunk-HZQEQ34U.js → chunk-OMVYFSOM.js} +3 -3
- package/dist/{chunk-COYPDRJK.js → chunk-OTW5SEFS.js} +2 -2
- package/dist/{chunk-GH3ZMBFX.js → chunk-OU5K2JPF.js} +11 -11
- package/dist/{chunk-AZOUSKZD.js → chunk-OURX73UJ.js} +1 -1
- package/dist/{chunk-27QQEWNV.js → chunk-OZUTYDV4.js} +2 -2
- package/dist/{chunk-TSR5YDPS.js → chunk-P52JHUUM.js} +23 -20
- package/dist/{chunk-YFG4E3N2.js → chunk-PBYUJSEY.js} +14 -14
- package/dist/{chunk-A3ULWR5N.js → chunk-PDG4IM3L.js} +1 -1
- package/dist/{chunk-AFK47A6O.js → chunk-PGV25HTX.js} +3 -3
- package/dist/{chunk-A5JWFZVU.js → chunk-PJWLKCFX.js} +80 -81
- package/dist/{chunk-MNJ2DHU6.js → chunk-QJ4WGAC6.js} +8 -8
- package/dist/{chunk-VB2MJLET.js → chunk-QQNPU27R.js} +1 -1
- package/dist/{chunk-6JUJ2DU3.js → chunk-QR35TD2B.js} +37 -37
- package/dist/{chunk-LC3PSQJJ.js → chunk-QY5ZKUWY.js} +1 -1
- package/dist/{chunk-ASAON7G4.js → chunk-RGZGLKFB.js} +4 -4
- package/dist/{chunk-S4ONWRJE.js → chunk-RK4S3VPS.js} +2 -2
- package/dist/{chunk-TXZBBZOG.js → chunk-RKITD2UJ.js} +2 -2
- package/dist/{chunk-ETHWK2RZ.js → chunk-RNOJSEES.js} +1 -1
- package/dist/{chunk-PGIQMQRU.js → chunk-RZB4RPPD.js} +228 -95
- package/dist/{chunk-XO5ONLVM.js → chunk-S32YYDIB.js} +1 -1
- package/dist/{chunk-QN6JHMGU.js → chunk-S4QSJAGY.js} +1 -1
- package/dist/{chunk-IXSZ7OKR.js → chunk-S6CRZKPO.js} +1 -1
- package/dist/{chunk-YHTO46W2.js → chunk-SFQ5ADIG.js} +35 -31
- package/dist/{chunk-Y4PXIJMD.js → chunk-SHH2AHIU.js} +14 -14
- package/dist/{chunk-HUF6TQ2J.js → chunk-SZCPKGYG.js} +3 -3
- package/dist/{chunk-K2HNV4LE.js → chunk-T3PNYRDM.js} +12 -12
- package/dist/{chunk-QNHZXFRA.js → chunk-T7ZCYYQZ.js} +3 -3
- package/dist/{chunk-JY4R3GML.js → chunk-TKQKXBGC.js} +1 -1
- package/dist/{chunk-XDS4UZGR.js → chunk-TNHD4UTC.js} +3 -3
- package/dist/{chunk-FGAGGPFF.js → chunk-TNNK4IIY.js} +8 -8
- package/dist/{chunk-LC6DYCTG.js → chunk-TSPWXAAI.js} +1 -1
- package/dist/{chunk-HX3MQ3H4.js → chunk-U2ES66IN.js} +3 -3
- package/dist/{chunk-MFLH5ZDQ.js → chunk-U2HQELXL.js} +2 -2
- package/dist/{chunk-SXGTRZFN.js → chunk-U4P6TQRW.js} +3 -2
- package/dist/{chunk-KFFNCDX6.js → chunk-U6CJPTOB.js} +3 -3
- package/dist/{chunk-GQPESFAF.js → chunk-U7LLQ7XM.js} +11 -11
- package/dist/{chunk-IN4QT33I.js → chunk-ULTSSIOU.js} +1 -1
- package/dist/{chunk-HUFCSX2Y.js → chunk-UTQGZF37.js} +17 -6
- package/dist/{chunk-CCQNL33L.js → chunk-UYNAL3Y3.js} +9 -9
- package/dist/{chunk-7QDAHY5M.js → chunk-V7RAPZHX.js} +2 -2
- package/dist/{chunk-6XE3GVGU.js → chunk-VAEC53B3.js} +3 -2
- package/dist/{chunk-YKO3VCTF.js → chunk-VDVXGAIP.js} +3 -3
- package/dist/{chunk-WYJMV62X.js → chunk-VGWWUCAB.js} +3 -3
- package/dist/{chunk-5ENRZX6I.js → chunk-VNLSTZES.js} +19 -16
- package/dist/{chunk-D4BIV6WG.js → chunk-VWYUUBBP.js} +19 -16
- package/dist/{chunk-JMH5MD5A.js → chunk-WDONXBQE.js} +1 -1
- package/dist/{chunk-62FR4FYJ.js → chunk-WEPAE4KG.js} +2 -2
- package/dist/{chunk-A5LZUYK4.js → chunk-WGIO6AHP.js} +3 -2
- package/dist/{chunk-UQSVWO7Z.js → chunk-WJKVNRCR.js} +8 -7
- package/dist/{chunk-24WB3HMB.js → chunk-WKWMOZNE.js} +22 -7
- package/dist/{chunk-V667FCIJ.js → chunk-WMZCOGD6.js} +1 -1
- package/dist/{chunk-33CBPK5Q.js → chunk-WQ55QPEB.js} +51 -45
- package/dist/{chunk-SLTMRTXV.js → chunk-WUKSZNHL.js} +15 -12
- package/dist/{chunk-QETGGFH2.js → chunk-WZBMTZBM.js} +3 -3
- package/dist/{chunk-XY5O74BH.js → chunk-X4U6PT3Z.js} +3 -3
- package/dist/{chunk-E2HEVF23.js → chunk-XNA6DATU.js} +10 -10
- package/dist/{chunk-ALKTNXMR.js → chunk-XTGWCYAR.js} +37 -37
- package/dist/{chunk-3XQ635KD.js → chunk-XXNLNZ7E.js} +3 -3
- package/dist/{chunk-YEDYBMCW.js → chunk-YF2PYLC4.js} +1 -1
- package/dist/{chunk-ZJKOLOVF.js → chunk-YS56RSTZ.js} +26 -20
- package/dist/{chunk-RTJXOIIQ.js → chunk-YWP7XFKD.js} +1 -1
- package/dist/{chunk-ATTE3FYC.js → chunk-ZBJNEJSL.js} +3 -3
- package/dist/{chunk-A2FHZH7E.js → chunk-ZNHF2XCP.js} +35 -21
- package/dist/{chunk-ERAIVAK5.js → chunk-ZTH6YSVA.js} +37 -4
- package/dist/{chunk-KS7DXCXH.js → chunk-ZWJTHFWB.js} +3 -3
- package/dist/{chunk-EKQMYG2B.js → chunk-ZXOD37BE.js} +18 -18
- package/dist/cli/index.js +2 -2
- package/dist/{core-5Z6UW5DS.js → core-34KIMTK6.js} +2 -1
- package/dist/{core-XXIOJY2X.js → core-3CWPIFAL.js} +3 -1
- package/dist/{core-WLVU2HWX.js → core-7R3ARYNI.js} +3 -1
- package/dist/{core-DU77ZYPR.js → core-7YKLT7KY.js} +3 -1
- package/dist/{core-QUYSNTC7.js → core-AEYGGH7X.js} +3 -1
- package/dist/{core-CPN2HF75.js → core-ASBJZZTP.js} +2 -1
- package/dist/{core-JQV7STNF.js → core-CJ7FFPDU.js} +3 -1
- package/dist/{core-PL64QPOH.js → core-CJZXX2V3.js} +3 -1
- package/dist/{core-T5Q4DSH2.js → core-DAFZ7YJW.js} +2 -1
- package/dist/{core-RUA3EWW3.js → core-DJPGSTXB.js} +3 -1
- package/dist/{core-KBH3EJZV.js → core-DKJUX7Q4.js} +2 -1
- package/dist/{core-FFLPH5XK.js → core-EAIFSTDE.js} +3 -1
- package/dist/{core-E6YD7VU4.js → core-GEUPUZUY.js} +3 -1
- package/dist/{core-OK2ZY5OJ.js → core-JLJTP7P6.js} +2 -1
- package/dist/{core-RY6IFRKM.js → core-JLXFDYHX.js} +3 -1
- package/dist/{core-ZH7XTJTD.js → core-KCORN7F7.js} +3 -1
- package/dist/{core-IZVZ2B7Y.js → core-KF6GJOGW.js} +2 -1
- package/dist/{core-DBRILYNB.js → core-KII4CH3W.js} +2 -1
- package/dist/{core-TJX3I7KH.js → core-KZK3WCUG.js} +3 -1
- package/dist/{core-RE3L6YCM.js → core-L5KTPXHC.js} +2 -1
- package/dist/{core-CS7AKNME.js → core-L7Y7YXWR.js} +2 -1
- package/dist/{core-IV26EL5C.js → core-MN45UFF4.js} +3 -1
- package/dist/{core-PVINU5JJ.js → core-MNUVP5IJ.js} +3 -1
- package/dist/{core-OW5V74Q4.js → core-O2K4BDYH.js} +3 -1
- package/dist/{core-ZHE7N4NS.js → core-ONNGSKWQ.js} +3 -1
- package/dist/{core-KFBW5PRT.js → core-PFXIBWLD.js} +3 -1
- package/dist/{core-ZJYLJWZQ.js → core-QXIAQFHM.js} +2 -1
- package/dist/{core-KWGXHBJE.js → core-R27R6J5M.js} +3 -1
- package/dist/{core-OV5MPTZP.js → core-RCFFJANI.js} +3 -1
- package/dist/{core-WQPHNVNY.js → core-RGLOYY73.js} +3 -1
- package/dist/{core-SE67HHFG.js → core-V7I4F6JW.js} +3 -1
- package/dist/{core-6LLJNZ4O.js → core-W7AZNHOX.js} +3 -1
- package/dist/{core-MZMR2DF4.js → core-WHI4ABF2.js} +2 -1
- package/dist/{core-6ANZ2OWO.js → core-WJSKT5XM.js} +2 -1
- package/dist/{core-EE55P6XK.js → core-XKV7GMPG.js} +3 -1
- package/dist/{core-ULUA5ZB2.js → core-YPH723Z7.js} +3 -1
- package/dist/{core-SCWEVNUY.js → core-YVNOHIQ4.js} +3 -1
- package/dist/{dataTable-IL7HVDHL.js → dataTable-VKEHFLJM.js} +3 -2
- package/dist/{engine-MYLZI5VH.js → engine-PPXKJJFI.js} +12 -11
- package/dist/fixtures.js +3 -1
- package/dist/{fontTables-ZYBUCJ5N.js → fontTables-WYCZNRE7.js} +1 -1
- package/dist/fonts.js +1 -1
- package/dist/index.js +21 -19
- package/dist/{main-ISJ53IS5.js → main-53MXACOU.js} +12 -10
- package/dist/mcp/server.js +18 -15
- package/dist/react/bar.js +3 -1
- package/dist/react/bartable.js +2 -1
- package/dist/react/box.js +3 -1
- package/dist/react/bullet.js +3 -1
- package/dist/react/butterfly.js +3 -1
- package/dist/react/choropleth.js +2 -1
- package/dist/react/cohort.js +3 -1
- package/dist/react/column.js +3 -1
- package/dist/react/combo.js +3 -1
- package/dist/react/creative.js +2 -1
- package/dist/react/diagram.js +2 -1
- package/dist/react/dimswitch.js +3 -1
- package/dist/react/dot.js +3 -1
- package/dist/react/export.js +20 -18
- package/dist/react/funnel.js +3 -1
- package/dist/react/gantt.js +2 -1
- package/dist/react/grid.js +3 -1
- package/dist/react/heatmap.js +3 -1
- package/dist/react/histogram.js +3 -1
- package/dist/react/index.js +86 -84
- package/dist/react/kpi.js +2 -1
- package/dist/react/likert.js +3 -1
- package/dist/react/line.js +3 -1
- package/dist/react/mekko.js +3 -1
- package/dist/react/pareto.js +3 -1
- package/dist/react/pie.js +3 -1
- package/dist/react/prepare.js +20 -18
- package/dist/react/pvm.js +3 -1
- package/dist/react/pyramid.js +3 -1
- package/dist/react/sankey.js +2 -1
- package/dist/react/scatter.js +3 -1
- package/dist/react/slope.js +3 -1
- package/dist/react/sparkline.js +2 -1
- package/dist/react/spec.js +36 -26
- package/dist/react/status.js +2 -1
- package/dist/react/story.js +4 -3
- package/dist/react/table.js +3 -1
- package/dist/react/theme.js +4 -3
- package/dist/react/tilemap.js +2 -1
- package/dist/react/treemap.js +2 -1
- package/dist/react/variance.js +3 -1
- package/dist/react/waffle.js +2 -1
- package/dist/react/waterfall.js +3 -1
- package/dist/rows.js +2 -2
- package/dist/{rowsModule-3Y4I3M3E.js → rowsModule-L3MBGPBH.js} +2 -1
- package/dist/{schema-STGL44TL.js → schema-26YUL3MG.js} +4 -1
- package/dist/{schema-5YTNQ6JY.js → schema-33ZF6WKL.js} +4 -1
- package/dist/{schema-E6YOSOWB.js → schema-3W7IFXVN.js} +3 -1
- package/dist/{schema-G4KFMQBL.js → schema-4ZXJCRZR.js} +4 -1
- package/dist/{schema-QJJPRRE7.js → schema-5E5J43CF.js} +4 -1
- package/dist/{schema-34ZELWRQ.js → schema-6ZV532RM.js} +4 -1
- package/dist/{schema-P63S63GE.js → schema-733PO52K.js} +4 -1
- package/dist/{schema-QEVSIMGO.js → schema-AQD3H5VV.js} +4 -1
- package/dist/{schema-EVLLL5UF.js → schema-B4GFRYIP.js} +4 -1
- package/dist/{schema-EQQB43AY.js → schema-CMXL5F5L.js} +4 -1
- package/dist/{schema-IF5N3J56.js → schema-FT37ZEYY.js} +4 -1
- package/dist/{schema-2GUBWOBC.js → schema-GK6MD4EG.js} +4 -1
- package/dist/{schema-MEAFRXVH.js → schema-GSE3QXUK.js} +4 -2
- package/dist/{schema-4735XAZX.js → schema-GVHM2HEF.js} +4 -1
- package/dist/{schema-E2ISJ65D.js → schema-H7RKVTVO.js} +4 -1
- package/dist/{schema-XYYDUUHS.js → schema-HGUBNXUY.js} +4 -1
- package/dist/{schema-KFC4WYH4.js → schema-HRHNGOFC.js} +3 -1
- package/dist/{schema-PNC3Z7AH.js → schema-HWU55RJL.js} +4 -1
- package/dist/{schema-3BHL2B76.js → schema-IOKAZVL7.js} +4 -1
- package/dist/{schema-7J3NAIN2.js → schema-IOWE3RQO.js} +4 -1
- package/dist/{schema-2BMZOHXI.js → schema-KFXLS67Q.js} +4 -1
- package/dist/{schema-EYQ5IBLF.js → schema-KH62LDYK.js} +4 -1
- package/dist/{schema-S3EQKVOT.js → schema-KHCLVE2V.js} +4 -1
- package/dist/{schema-PA2MXYY4.js → schema-KORNUIC6.js} +4 -1
- package/dist/{schema-AOJJ7JZB.js → schema-LYBOPAGQ.js} +4 -1
- package/dist/{schema-GH7IKSOU.js → schema-MNG24WU2.js} +4 -1
- package/dist/{schema-PDZ6256H.js → schema-NOPOI5G2.js} +4 -1
- package/dist/{schema-T4NE2EAO.js → schema-PNUC54GC.js} +4 -1
- package/dist/{schema-P7LJFJAJ.js → schema-Q4IPIR6W.js} +4 -1
- package/dist/{schema-TQYTESG3.js → schema-QLH2DZFI.js} +4 -1
- package/dist/{schema-D3RCMN3T.js → schema-QNI6MNQ2.js} +4 -1
- package/dist/{schema-W376PAJG.js → schema-SLQPM32G.js} +4 -1
- package/dist/{schema-EYZVD73N.js → schema-SY3MKF5S.js} +4 -1
- package/dist/{schema-JJYJOQTT.js → schema-WAKLKLBB.js} +4 -1
- package/dist/{schema-IG7JIR4H.js → schema-WCDYWS4K.js} +4 -1
- package/dist/{schema-CVMV4LRA.js → schema-ZCZCY34J.js} +4 -1
- package/dist/{schema-L7263JMT.js → schema-ZSYX76MO.js} +4 -1
- package/dist/{specValidation-NVBIZMEE.js → specValidation-H5B4MQST.js} +3 -1
- package/dist/theme.js +3 -2
- package/dist/{themeShapeRules-5C2463YH.js → themeShapeRules-54U5EIZR.js} +1 -1
- package/dist/types/core/annotateEngine.d.ts +14 -0
- package/dist/types/core/charts/gantt/layout.d.ts +7 -0
- package/dist/types/core/charts/grid/schema.d.ts +1 -1
- package/dist/types/core/deferred.d.ts +6 -1
- package/dist/types/core/formatSpec.d.ts +2 -0
- package/dist/types/core/label/solver.d.ts +5 -1
- package/dist/types/core/rows.d.ts +2 -0
- package/dist/types/core/theme.d.ts +3 -1
- package/dist/types/core/themeShape.d.ts +3 -3
- package/dist/types/core/themeValidate.d.ts +3 -3
- package/dist/types/core/types/annotations.d.ts +6 -2
- package/dist/types/core/types/data.d.ts +8 -3
- package/dist/types/core/types/theme.d.ts +2 -1
- package/dist/types/react/rowsStore.d.ts +5 -0
- package/dist/types/react/spec.d.ts +17 -0
- package/dist/types/rows.d.ts +6 -1
- package/dist/validate.js +8 -6
- package/docs/manual.md +19 -5
- package/docs/reference/box.md +1 -1
- package/docs/reference/fixtures.md +1 -0
- package/docs/reference/gantt.md +11 -5
- package/docs/reference/histogram.md +1 -1
- package/docs/reference/line.md +1 -1
- package/docs/reference/react.md +3 -0
- package/docs/reference/table.md +1 -1
- package/docs/reference/theme.md +2 -3
- package/docs/use-cases.md +198 -0
- package/llms.txt +4 -3
- package/package.json +2 -1
- package/dist/chunk-2GELJH37.js +0 -88
- package/dist/chunk-4GB7TBY7.js +0 -373
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seatsPastBlockers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYNZ72GO.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareRangeData,
|
|
6
6
|
resolveCellRange
|
|
@@ -8,36 +8,40 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
averageMarkerLine,
|
|
10
10
|
averageMarkerScope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6TJDWMZV.js";
|
|
12
12
|
import {
|
|
13
13
|
warnMissingValue
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V7RAPZHX.js";
|
|
15
15
|
import {
|
|
16
16
|
labelOn
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WMZCOGD6.js";
|
|
18
18
|
import {
|
|
19
|
+
percentCellsOnly,
|
|
19
20
|
percentLevels,
|
|
20
21
|
runAnnotatePass
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DSZUV3TM.js";
|
|
22
23
|
import {
|
|
23
24
|
rowLabelBand
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-F7X53SZM.js";
|
|
25
26
|
import {
|
|
26
27
|
fittedLabel,
|
|
27
28
|
gutterBudget,
|
|
28
29
|
stepDownFont
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2DR5MMDY.js";
|
|
30
31
|
import {
|
|
31
32
|
breakUnsupported,
|
|
32
33
|
chartPalette,
|
|
33
34
|
chartTheme
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-U4P6TQRW.js";
|
|
35
36
|
import {
|
|
36
37
|
namedLineText
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ISWU5YB3.js";
|
|
38
39
|
import {
|
|
39
40
|
structureCount
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LFX7W4B7.js";
|
|
42
|
+
import {
|
|
43
|
+
emptyIdRecord
|
|
44
|
+
} from "./chunk-LINZPU5D.js";
|
|
41
45
|
import {
|
|
42
46
|
CONTENT_PLOT_HEIGHT,
|
|
43
47
|
HARD_MINIMUM,
|
|
@@ -51,7 +55,7 @@ import {
|
|
|
51
55
|
niceDomain,
|
|
52
56
|
planValueAxisTitle,
|
|
53
57
|
valueAxisTitleRequest
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-U7LLQ7XM.js";
|
|
55
59
|
import {
|
|
56
60
|
prepareFractionData
|
|
57
61
|
} from "./chunk-3EZRM4YM.js";
|
|
@@ -76,25 +80,25 @@ import {
|
|
|
76
80
|
solveLabels,
|
|
77
81
|
unionRect,
|
|
78
82
|
unitPrinted
|
|
79
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-GVKFFJ23.js";
|
|
80
84
|
import {
|
|
81
85
|
disclosureNote
|
|
82
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-E64MTTBC.js";
|
|
83
87
|
import {
|
|
84
88
|
formatterFromExample,
|
|
85
89
|
neededDecimals,
|
|
86
90
|
seriesRasterFormatter
|
|
87
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-RGZGLKFB.js";
|
|
88
92
|
import {
|
|
89
93
|
autoDecimals,
|
|
90
94
|
chartStrings,
|
|
91
95
|
formatAutomaticNumber
|
|
92
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-53OYF4ZT.js";
|
|
93
97
|
import {
|
|
94
98
|
cellMeta,
|
|
95
99
|
cellValue,
|
|
96
100
|
isPctCell
|
|
97
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-O3VN6BTL.js";
|
|
98
102
|
import {
|
|
99
103
|
REFERENCE_LABEL_CLEARANCE,
|
|
100
104
|
arrowHeadPath,
|
|
@@ -111,12 +115,12 @@ import {
|
|
|
111
115
|
seriesPaint,
|
|
112
116
|
strokeToken,
|
|
113
117
|
textScaleOf
|
|
114
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-B3F4TS3V.js";
|
|
115
119
|
import {
|
|
116
120
|
MARK_CONTRAST_FLOOR,
|
|
117
121
|
hueSaturation,
|
|
118
122
|
palettePerceptualDistance
|
|
119
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-4WK3CNW5.js";
|
|
120
124
|
import {
|
|
121
125
|
NormalizeError,
|
|
122
126
|
TARGET_SIZE,
|
|
@@ -135,7 +139,7 @@ import {
|
|
|
135
139
|
} from "./chunk-WYJEOMNY.js";
|
|
136
140
|
import {
|
|
137
141
|
defaultMeasurer
|
|
138
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-AG2CJ4JY.js";
|
|
139
143
|
|
|
140
144
|
// src/core/strings/dot.ts
|
|
141
145
|
var EN = {
|
|
@@ -240,7 +244,7 @@ function layoutDot(data, options = {}) {
|
|
|
240
244
|
throw new NormalizeError("no-data-series", "series", "dot requires at least one data-role series");
|
|
241
245
|
let valueSpec = seriesRasterFormatter(options.format, normSeries.flatMap(
|
|
242
246
|
(s) => s.cells.flatMap((cell) => [cell.v, cell.range?.low, cell.range?.high, cell.range?.mid])
|
|
243
|
-
), options.locale?.language, options.unit, options.target), fmt = valueSpec.fmt,
|
|
247
|
+
), options.locale?.language, options.unit, options.target), fmt = valueSpec.fmt, percent = options.unit === "%" || percentLevels(dataSeries.map((series) => ({ vals: series.cells }))), percentAxis = percentCellsOnly(dataSeries.map((series) => ({ vals: series.cells.map((cell) => ({ ...cell, format: cell.meta?.format })), format: series.format }))), referenceFmt = percent && !options.format ? (v) => formatAutomaticNumber(v, { locale: options.locale?.language, decimals: Math.max(autoDecimals(v), neededDecimals(v)), suffix: "%" }) : fmt;
|
|
244
248
|
if (variant === "dumbbell" && dataSeries.length !== 2)
|
|
245
249
|
throw new NormalizeError(
|
|
246
250
|
"dumbbell-two-series",
|
|
@@ -268,7 +272,7 @@ function layoutDot(data, options = {}) {
|
|
|
268
272
|
catSort === "asc" ? idx.sort((a, b) => key[a] - key[b] || a - b) : catSort === "desc" ? idx.sort((a, b) => key[b] - key[a] || a - b) : idx.reverse(), applyOrder(idx);
|
|
269
273
|
}
|
|
270
274
|
let gaps;
|
|
271
|
-
variant === "dumbbell" && (gaps =
|
|
275
|
+
variant === "dumbbell" && (gaps = emptyIdRecord(), cats.forEach((c, ci) => {
|
|
272
276
|
let a = dataSeries[0].cells[ci].v, b = dataSeries[1].cells[ci].v;
|
|
273
277
|
a !== null && b !== null && (gaps[c.id] = round2(b - a));
|
|
274
278
|
}));
|
|
@@ -307,11 +311,12 @@ function layoutDot(data, options = {}) {
|
|
|
307
311
|
v !== void 0 && (lo = Math.min(lo, v), hi = Math.max(hi, v));
|
|
308
312
|
}
|
|
309
313
|
[lo, hi] = applyAxisBounds([lo, hi], [lo, hi], options.valueAxis, warnings);
|
|
310
|
-
let tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, textFor = (v,
|
|
314
|
+
let tickFont = { family: theme.type.family, ...theme.type.axis }, labelFont = { family: theme.type.family, ...theme.type.label }, strongFont = { family: theme.type.family, ...theme.type.label, weight: emphasisWeight(theme) }, textFor = (v, cell, s) => {
|
|
315
|
+
let { meta } = cell;
|
|
311
316
|
if (meta?.label === !1) return null;
|
|
312
|
-
let base = displayFor(v,
|
|
317
|
+
let base = displayFor(v, cell, s);
|
|
313
318
|
return typeof meta?.label == "string" ? meta.label.replace(/\$\{value\}/g, base) : base;
|
|
314
|
-
}, seriesKeys = /* @__PURE__ */ new Map(), seriesKey = (s) => seriesKeys.get(s) ?? seriesKeys.set(s, { format: s.format, unit: s.unit }).get(s), displayFor = (v,
|
|
319
|
+
}, seriesKeys = /* @__PURE__ */ new Map(), seriesKey = (s) => seriesKeys.get(s) ?? seriesKeys.set(s, { format: s.format, unit: s.unit }).get(s), displayFor = (v, cell, s) => cell.meta?.format ? formatterFromExample(cell.meta.format, options.locale?.language)(v) : (cell.isPct && !s?.format ? valueSpec.fmtPercent : s ? valueSpec.forSeries(seriesKey(s)) : fmt)(v), primarySide = (si, ci, v) => {
|
|
315
320
|
if (variant === "dumbbell" || dataSeries.length === 2) {
|
|
316
321
|
let other = dataSeries[1 - si].cells[ci].v;
|
|
317
322
|
return other === null ? "right" : v < other ? "left" : v > other ? "right" : si === 0 ? "left" : "right";
|
|
@@ -322,7 +327,7 @@ function layoutDot(data, options = {}) {
|
|
|
322
327
|
dataSeries.forEach((s, si) => {
|
|
323
328
|
let cell = s.cells[ci];
|
|
324
329
|
if (cell.v === null || cell.range && cell.v >= cell.range.low && cell.v <= cell.range.high) return;
|
|
325
|
-
let text = textFor(cell.v, cell
|
|
330
|
+
let text = textFor(cell.v, cell, s);
|
|
326
331
|
if (!text) return;
|
|
327
332
|
let w = measure(text, pointFont(cell, si)).width;
|
|
328
333
|
primarySide(si, ci, cell.v) === "right" ? maxRightW = Math.max(maxRightW, w) : maxLeftW = Math.max(maxLeftW, w);
|
|
@@ -353,7 +358,7 @@ function layoutDot(data, options = {}) {
|
|
|
353
358
|
measure
|
|
354
359
|
},
|
|
355
360
|
occupied
|
|
356
|
-
), plot0 = frameResult.plot, autoAxis = variant === "lollipop" && options.valueAxis?.show === void 0 && labelOn2("point") && dataSeries.every((s) => s.cells.every((cell) => cell.v === null || textFor(cell.v, cell
|
|
361
|
+
), plot0 = frameResult.plot, autoAxis = variant === "lollipop" && options.valueAxis?.show === void 0 && labelOn2("point") && dataSeries.every((s) => s.cells.every((cell) => cell.v === null || textFor(cell.v, cell, s) !== null)), axisShown = autoAxis ? !1 : options.valueAxis?.show !== !1, axisTitle = axisShown && labelOn2("axisTitle") ? planValueAxisTitle(options.axisTitles?.primary, theme, measure, plot0.w) : void 0, annPad = localAnns.length > 0 ? 26 : 8, axisH = axisShown ? measure("0", tickFont).height + 8 + (axisTitle ? axisTitle.height + 2 : 0) : 0;
|
|
357
362
|
fixedPlotChrome(frameResult, annPad + axisH);
|
|
358
363
|
let availH = plotHeightAfter(frameResult, size.height, plot0.h - annPad - axisH), lineH = tickFont.size * 1.2, stepEst = availH / cats.length, openHeight = options[TARGET_SIZE]?.fixed.height === !1, rowHeaders = variant === "dumbbell" && labelOn2("category") && options.rowLabels === void 0 && size.width <= HEADER_ROWS_MAX_WIDTH && (openHeight || stepEst >= 2 * lineH + 8), headerH = rowHeaders ? lineH + 3 : 0, catMaxLines = rowHeaders ? 1 : openHeight ? 1 / 0 : stepEst >= 2 * lineH + 4 ? 2 : 1, capW = rowHeaders ? plot0.w : Math.max(24, plot0.w * 0.28), { labels: catLines, width: catColumnW } = rowLabelBand(cats, tickFont, capW, catMaxLines, lineH, measure, {
|
|
359
364
|
wider: gutterBudget(24, plot0.w),
|
|
@@ -425,8 +430,7 @@ function layoutDot(data, options = {}) {
|
|
|
425
430
|
plot,
|
|
426
431
|
orient: "x",
|
|
427
432
|
gridlines: gridOn,
|
|
428
|
-
format: fmt,
|
|
429
|
-
formatSpec: valueSpec.spec,
|
|
433
|
+
...percentAxis ? { format: valueSpec.fmtPercent, formatSpec: valueSpec.percentSpec } : { format: fmt, formatSpec: valueSpec.spec },
|
|
430
434
|
theme,
|
|
431
435
|
measure,
|
|
432
436
|
canvasWidth: size.width
|
|
@@ -488,7 +492,7 @@ function layoutDot(data, options = {}) {
|
|
|
488
492
|
if (variant === "dumbbell" && labelOn2("point")) {
|
|
489
493
|
let sa = dataSeries[0], sb = dataSeries[1], ca = sa.cells[ci], cb = sb.cells[ci];
|
|
490
494
|
if (ca.v !== null && cb.v !== null && Math.abs(x(ca.v) - x(cb.v)) < 2 * r + 2) {
|
|
491
|
-
let ta = textFor(ca.v, ca
|
|
495
|
+
let ta = textFor(ca.v, ca, sa), tb = textFor(cb.v, cb, sb);
|
|
492
496
|
if (ta && tb && ta === tb) {
|
|
493
497
|
mergedLabel = !0;
|
|
494
498
|
let text = pairText(ta, tb, options), tsize = measure(text, labelFont), leftX = Math.min(x(ca.v), x(cb.v)), rightX = Math.max(x(ca.v), x(cb.v)), midX = (leftX + rightX) / 2, ty = cy - tsize.height / 2;
|
|
@@ -666,7 +670,7 @@ function layoutDot(data, options = {}) {
|
|
|
666
670
|
strokeWidth: hollow ? strokeToken(theme, "mark") : strokeToken(theme, "rule"),
|
|
667
671
|
owner,
|
|
668
672
|
part: "dot",
|
|
669
|
-
display: { value: displayFor(v, cell
|
|
673
|
+
display: { value: displayFor(v, cell, s) }
|
|
670
674
|
}), occupied.claim({ x: cx - r, y: cy - r, w: 2 * r, h: 2 * r }, "mark", owner), row.dots.push({ seriesId: s.id, cx, cy, nodeId }), anchorByDot.set(`${cat.id}:${s.id}`, {
|
|
671
675
|
x: cx,
|
|
672
676
|
y: cy,
|
|
@@ -676,7 +680,7 @@ function layoutDot(data, options = {}) {
|
|
|
676
680
|
...cat.date === void 0 ? {} : { date: cat.date },
|
|
677
681
|
owner
|
|
678
682
|
}), labelOn2("point") && !mergedLabel) {
|
|
679
|
-
let text = textFor(v, cell
|
|
683
|
+
let text = textFor(v, cell, s);
|
|
680
684
|
if (text) {
|
|
681
685
|
let font = pointFont(cell, si);
|
|
682
686
|
font === strongFont ? boldLabelIds.add(`point:${s.id}:${cat.id}`) : variant === "dumbbell" && mutedLabelIds.add(`point:${s.id}:${cat.id}`);
|
|
@@ -877,7 +881,7 @@ function layoutDot(data, options = {}) {
|
|
|
877
881
|
let vals = dataSeries.map((s) => {
|
|
878
882
|
let v = s.cells[ci].v;
|
|
879
883
|
if (v === null) return null;
|
|
880
|
-
let range = s.cells[ci].range, cell = s.cells[ci], text = textFor(v, cell
|
|
884
|
+
let range = s.cells[ci].range, cell = s.cells[ci], text = textFor(v, cell, s) ?? displayFor(v, cell, s), value = dataSeries.length > 1 ? `${s.label} ${text}` : text;
|
|
881
885
|
return range ? chartString(options, "dotRangeDesc", { v1: value, v2: fmt(range.low), v3: fmt(range.high), v4: range.mid === void 0 ? "" : chartString(options, "midpointClause", { v1: fmt(range.mid) }) }) : value;
|
|
882
886
|
}).filter((t) => t !== null).join(", ");
|
|
883
887
|
return `${c.label} ${vals}`;
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-H4H4O62O.js";
|
|
9
9
|
import {
|
|
10
10
|
createChartComponent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KJEZFOO6.js";
|
|
12
12
|
import {
|
|
13
13
|
pvmCore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JJJ2KAHR.js";
|
|
15
15
|
import {
|
|
16
16
|
registeredType
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MZJBPDIL.js";
|
|
18
18
|
|
|
19
19
|
// src/react/charts/pvm.ts
|
|
20
20
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, smallValues: 0, palette: 0, labelDensity: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, valueAxis: { break: { from: 0, to: 0, style: 0 } }, scaleGroup: { y: 0, id: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, interactive: 0, annotations: sharedKeys9, interaction: 0, volumeMix: 0, methodNote: 0 } }), PvmChart = createChartComponent(registeredType(pvmCore), checkOptionKeys);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-BUPLB3EX.js";
|
|
6
6
|
import {
|
|
7
7
|
structureCount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LFX7W4B7.js";
|
|
9
9
|
import {
|
|
10
10
|
claimedRegionIds,
|
|
11
11
|
resolveGeoRegionId
|
|
@@ -19,24 +19,24 @@ import {
|
|
|
19
19
|
leaderTerminus,
|
|
20
20
|
rectsOverlap,
|
|
21
21
|
solveLabels
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GVKFFJ23.js";
|
|
23
23
|
import {
|
|
24
24
|
MAGNITUDE_DIVISOR,
|
|
25
25
|
exampleSpec,
|
|
26
26
|
formatWithSpec,
|
|
27
27
|
parseFormatExample
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RGZGLKFB.js";
|
|
29
29
|
import {
|
|
30
30
|
autoDecimals,
|
|
31
31
|
chartStrings,
|
|
32
32
|
intervalText
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-53OYF4ZT.js";
|
|
34
34
|
import {
|
|
35
35
|
colorblindPaint,
|
|
36
36
|
markRoleToken,
|
|
37
37
|
semanticPalettePaint,
|
|
38
38
|
strokeToken
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-B3F4TS3V.js";
|
|
40
40
|
import {
|
|
41
41
|
fmtPathNumber
|
|
42
42
|
} from "./chunk-WLZ54FWG.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layoutBar
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WQ55QPEB.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareRangeData
|
|
6
6
|
} from "./chunk-VDAZPGR2.js";
|
|
7
7
|
import {
|
|
8
8
|
calendarCategories,
|
|
9
9
|
chartSizing
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U7LLQ7XM.js";
|
|
11
11
|
import {
|
|
12
12
|
prepareFractionData
|
|
13
13
|
} from "./chunk-3EZRM4YM.js";
|
|
@@ -7,7 +7,11 @@ var AUTHORED_TYPE_SIZE = /* @__PURE__ */ Symbol("authoredTypeSize");
|
|
|
7
7
|
function hasAuthoredTypeSize(font) {
|
|
8
8
|
return font[AUTHORED_TYPE_SIZE] === !0;
|
|
9
9
|
}
|
|
10
|
-
var NARROW = 0.3, DIGIT = 0.6, UPPER = 0.72, WIDE = 0.95, DEFAULT = 0.56, SPACE = 0.28, NARROW_RE = /[ijltfrI.,:;'|!()[\]\-]/, WIDE_RE = /[mwMW@%]/, EAST_ASIAN_WIDE = /[\u1100-\u115F\u2E80-\u303E\u3041-\u33FF\u3400-\u4DBF\u4E00-\u9FFF\uA000-\uA4CF\uA960-\uA97F\uAC00-\uD7A3\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE6F\uFF00-\uFF60\uFFE0-\uFFE6\u{20000}-\u{3FFFD}]/u, EMOJI_RE = /\p{Emoji_Presentation}|\uFE0F/u,
|
|
10
|
+
var NARROW = 0.3, DIGIT = 0.6, UPPER = 0.72, WIDE = 0.95, DEFAULT = 0.56, SPACE = 0.28, NARROW_RE = /[ijltfrI.,:;'|!()[\]\-]/, WIDE_RE = /[mwMW@%]/, EAST_ASIAN_WIDE = /[\u1100-\u115F\u2E80-\u303E\u3041-\u33FF\u3400-\u4DBF\u4E00-\u9FFF\uA000-\uA4CF\uA960-\uA97F\uAC00-\uD7A3\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE6F\uFF00-\uFF60\uFFE0-\uFFE6\u{20000}-\u{3FFFD}]/u, EMOJI_RE = /\p{Emoji_Presentation}|\uFE0F/u, DEFAULT_IGNORABLE = /\p{Default_Ignorable_Code_Point}/u, SPACING_IGNORABLES = /* @__PURE__ */ new Set([4447, 4448, 12644, 65440, 113824, 113825, 113826, 113827]);
|
|
11
|
+
function drawsNoWidth(codePoint) {
|
|
12
|
+
return codePoint < 173 ? !1 : !SPACING_IGNORABLES.has(codePoint) && DEFAULT_IGNORABLE.test(String.fromCodePoint(codePoint));
|
|
13
|
+
}
|
|
14
|
+
var JOINS_PREVIOUS = /[\p{M}\u200D\u{1F3FB}-\u{1F3FF}\u{E0020}-\u{E007F}]/u, REGIONAL_INDICATOR = /[\u{1F1E6}-\u{1F1FF}]/u, CLUSTER_RE = /[\p{M}\u200D\u{1F3FB}-\u{1F3FF}\u{E0020}-\u{E007F}\u{1F1E6}-\u{1F1FF}]/u;
|
|
11
15
|
function graphemes(text) {
|
|
12
16
|
if (!CLUSTER_RE.test(text)) return Array.from(text);
|
|
13
17
|
let clusters = [], joinNext = !1, loneIndicator = !1;
|
|
@@ -31,17 +35,18 @@ function estimateTextWidth(text, font) {
|
|
|
31
35
|
return estimateTextWidthForFace(text, font, resolveFace(font.family, font.weight));
|
|
32
36
|
}
|
|
33
37
|
function estimateTextWidthForFace(text, font, face) {
|
|
34
|
-
let s = String(text), boldFactor = font.weight >= 600 ? 1.06 : 1, figure = font.tabular === !0 && face !== void 0 ? widestDigit(face) : 0, units = 0, clusters = graphemes(s);
|
|
38
|
+
let s = String(text), boldFactor = font.weight >= 600 ? 1.06 : 1, figure = font.tabular === !0 && face !== void 0 ? widestDigit(face) : 0, units = 0, drawn = 0, clusters = graphemes(s);
|
|
35
39
|
for (let cluster of clusters) {
|
|
36
40
|
let base = cluster.codePointAt(0);
|
|
37
|
-
if (
|
|
41
|
+
if (drawsNoWidth(base)) continue;
|
|
42
|
+
if (drawn++, EMOJI_RE.test(cluster)) {
|
|
38
43
|
units += 1;
|
|
39
44
|
continue;
|
|
40
45
|
}
|
|
41
46
|
let advance = figure > 0 && base >= 48 && base <= 57 ? figure : face?.advance(base);
|
|
42
47
|
units += advance !== void 0 ? advance / 1e3 : classUnits(String.fromCodePoint(base)) * boldFactor;
|
|
43
48
|
}
|
|
44
|
-
let tracking = font.letterSpacing ? font.letterSpacing * Math.max(0,
|
|
49
|
+
let tracking = font.letterSpacing ? font.letterSpacing * Math.max(0, drawn - 1) : 0;
|
|
45
50
|
return units * font.size * (face ? WIDTH_SAFETY : 1) + tracking;
|
|
46
51
|
}
|
|
47
52
|
function widestDigit(face) {
|
|
@@ -140,7 +145,7 @@ function wrapText(text, font, maxWidth, maxLines = 2, measure = measureText, bre
|
|
|
140
145
|
return !plain.truncated || prefix(plain.lines) > prefix(joined.lines) ? plain : joined;
|
|
141
146
|
}
|
|
142
147
|
function wordsOf(text) {
|
|
143
|
-
return String(text).split(/[^\S\u00a0\u202f]+/).filter(Boolean);
|
|
148
|
+
return String(text).split(/[^\S\u00a0\u202f\ufeff]+/).filter(Boolean);
|
|
144
149
|
}
|
|
145
150
|
function wrapWords(words, font, maxWidth, lineLimit, measure, glued) {
|
|
146
151
|
if (words.length === 0) return { lines: [], truncated: !1 };
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-H4H4O62O.js";
|
|
10
10
|
import {
|
|
11
11
|
createChartComponent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KJEZFOO6.js";
|
|
13
13
|
import {
|
|
14
14
|
barCore
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AA4U62G6.js";
|
|
16
16
|
import {
|
|
17
17
|
registeredType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MZJBPDIL.js";
|
|
19
19
|
|
|
20
20
|
// src/react/charts/bar.ts
|
|
21
21
|
var checkOptionKeys = optionKeyCheck({ tree: { target: 0, textScale: 0, textSize: 0, a11y: { title: 0, table: 0 }, mode: 0, belowMinimum: 0, size: { width: 0, height: 0, unit: 0 }, embed: { width: 0 }, margin: { top: 0, right: 0, bottom: 0, left: 0 }, canvas: { margin: { top: 0, right: 0, bottom: 0, left: 0 } }, title: 0, subtitle: { company: 0, measure: 0, period: 0, scenarios: 0 }, unit: 0, unitShown: 0, source: 0, footnotes: 0, notes: { maxListed: 0, placement: 0, maxLines: 0, show: 0, pointer: 0 }, theme: { preset: 0, overrides: 0 }, locale: { language: 0, decimal: 0, thousands: 0, minusGlyph: 0, weekStartsOn: 0 }, strings: sharedKeys10, format: 0, detailFields: { "[]": { key: 0, label: 0, format: 0, unit: 0 } }, smallValues: 0, palette: 0, labelDensity: 0, labels: 0, labelPlacements: 0, legend: { position: 0, order: 0 }, valueAxis: sharedKeys3, scaleGroup: { y: 0, id: 0 }, rowLabels: { align: 0 }, sort: { categories: 0, segments: 0 }, topN: { n: 0, rest: 0, restLabel: 0, showRestCount: 0, threshold: 0 }, bandFraction: 0, highlight: 0, story: { steps: { "[]": { id: 0, title: 0, body: 0, highlight: 0 } }, step: 0 }, focus: sharedKeys5, hatchStrength: 0, colorblindSafe: 0, rounding: 0, interactive: 0, annotations: sharedKeys9, axisTitles: { primary: 0 }, valueLabels: 0, variant: 0, sharesOfOneWhole: 0, baseValue: { value: 0, label: 0 }, tornado: { low: 0, high: 0 }, currentValue: { value: 0, label: 0 }, methodNote: 0, grandTotalLabels: 0, referenceStyle: 0, referenceTick: { width: 0, color: 0 }, signColor: 0, netLine: { seriesId: 0, connectors: 0 }, averageMarker: { scope: 0 }, connectors: { style: 0, scope: 0 } }, labels: ["category", "segment", "restSeries", "point", "grandTotal", "percentIndicator", "tick", "axisTitle", "valueLine"] }), BarChart = createChartComponent(registeredType(barCore), checkOptionKeys);
|
|
@@ -2,34 +2,37 @@ import {
|
|
|
2
2
|
ENGINE_NOTES,
|
|
3
3
|
LABEL_WRAP_FLOOR,
|
|
4
4
|
SOFT_LABEL_CAP
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-T7ZCYYQZ.js";
|
|
6
6
|
import {
|
|
7
7
|
bandFor
|
|
8
8
|
} from "./chunk-263SZKIL.js";
|
|
9
|
+
import {
|
|
10
|
+
emptyIdRecord
|
|
11
|
+
} from "./chunk-LINZPU5D.js";
|
|
9
12
|
import {
|
|
10
13
|
EMPTY_DATA
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MEG4NMSI.js";
|
|
12
15
|
import {
|
|
13
16
|
cappedItems,
|
|
14
17
|
saysToDate
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GVKFFJ23.js";
|
|
16
19
|
import {
|
|
17
20
|
disclosureNote,
|
|
18
21
|
disclosuresShown,
|
|
19
22
|
engineNote
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-E64MTTBC.js";
|
|
21
24
|
import {
|
|
22
25
|
AUTOMATIC_FORMAT,
|
|
23
26
|
MAGNITUDE_GROUP,
|
|
24
27
|
parseFormatExample,
|
|
25
28
|
specUnitKind
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RGZGLKFB.js";
|
|
27
30
|
import {
|
|
28
31
|
formatAutomaticPercent,
|
|
29
32
|
formatPercentagePoints,
|
|
30
33
|
localeStrings,
|
|
31
34
|
stringFields
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-53OYF4ZT.js";
|
|
33
36
|
import {
|
|
34
37
|
NormalizeError
|
|
35
38
|
} from "./chunk-SGD3ZHID.js";
|
|
@@ -232,13 +235,13 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
232
235
|
return sum === void 0 ? p.sign === -1 ? { op: "mul", a: -1, b: term } : term : { op: p.sign === -1 ? "sub" : "add", a: sum, b: term };
|
|
233
236
|
}, void 0), exprOf = (m) => valueOf(m.id);
|
|
234
237
|
for (let m of data.measures) exprOf(m);
|
|
235
|
-
let facts = new Map(data.facts.map((f) => [key(f.memberId, f.periodId), { ...f, sums: { ...f.sums }, ...f.ref ? { ref: { ...f.ref } } : {} }])), statementFields = new Set(data.measures.filter(inStatement).flatMap((m) => fields(exprOf(m)))), roots = data.measures.filter((m) => !m.parentId && placeOf(m) === void 0 && !(options.splits && m.splitOf)), records = [];
|
|
238
|
+
let facts = new Map(data.facts.map((f) => [key(f.memberId, f.periodId), { ...f, sums: Object.setPrototypeOf({ ...f.sums }, null), ...f.ref ? { ref: Object.setPrototypeOf({ ...f.ref }, null) } : {} }])), statementFields = new Set(data.measures.filter(inStatement).flatMap((m) => fields(exprOf(m)))), roots = data.measures.filter((m) => !m.parentId && placeOf(m) === void 0 && !(options.splits && m.splitOf)), records = [];
|
|
236
239
|
if (data.dimension.sums) {
|
|
237
240
|
let derive = (member, children) => {
|
|
238
241
|
for (let child of children) derive(child.id, data.dimension.members.filter((m) => m.parentId === child.id));
|
|
239
242
|
if (children.length)
|
|
240
243
|
for (let period of data.periods) {
|
|
241
|
-
let existing = facts.get(key(member, period.id)), next = { memberId: member, periodId: period.id, sums:
|
|
244
|
+
let existing = facts.get(key(member, period.id)), next = { memberId: member, periodId: period.id, sums: emptyIdRecord(), ref: emptyIdRecord() };
|
|
242
245
|
for (let window of ["sums", "ref"]) {
|
|
243
246
|
let fieldSet = new Set(children.flatMap((child) => Object.keys(facts.get(key(child.id, period.id))?.[window] ?? {})));
|
|
244
247
|
for (let field of fieldSet) {
|
|
@@ -333,7 +336,7 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
333
336
|
assign(m.drivers);
|
|
334
337
|
}
|
|
335
338
|
let addMeasure = (m, member, parentId, rung, label = m.label, kind = "measure") => {
|
|
336
|
-
let id = dimswitchRowId(variant, member, m.id), cells =
|
|
339
|
+
let id = dimswitchRowId(variant, member, m.id), cells = emptyIdRecord(), changes = Object.setPrototypeOf({ range: null, pp: null, ...plan ? { pl: null } : {} }, null), effects = Object.setPrototypeOf({ range: null, pp: null, ...plan ? { pl: null } : {} }, null), values = /* @__PURE__ */ new Map(), owner = isDriver(m) ? measures.get(driverOwner.get(m.id)) : void 0, ownFormat = formatOf(m), effectFormat = signedFormat(formatOf(owner ?? m));
|
|
337
340
|
for (let { p, reference, comparisonKind } of [
|
|
338
341
|
{ p: range, reference: prior, comparisonKind: "prior" },
|
|
339
342
|
...plan ? [{ p: range, reference: plan, comparisonKind: "plan" }] : [],
|
|
@@ -484,8 +487,8 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
484
487
|
}
|
|
485
488
|
for (let id of options.expansion?.expanded ?? []) collapsed.delete(id);
|
|
486
489
|
for (let id of options.expansion?.collapsed ?? []) collapsed.add(id);
|
|
487
|
-
let { variant: _v, depth: _d, splits: _sp, order: _o, show: _sh, thresholds: _t, minimumSample: _m, expansion: _e, widths, ...tableOptions } = options
|
|
488
|
-
|
|
490
|
+
let { variant: _v, depth: _d, splits: _sp, order: _o, show: _sh, thresholds: _t, minimumSample: _m, expansion: _e, widths, ...tableOptions } = options;
|
|
491
|
+
tableOptions.density?.startsWith("cohort") && delete tableOptions.density;
|
|
489
492
|
let width = { label: widths?.label ?? 320, range: widths?.range ?? 110, change: widths?.change ?? 92, period: widths?.period ?? 94 }, fixed = (w) => form.card ? {} : { width: w }, labelCap = form.card ? Math.min(widths?.label ?? CARD_LABEL_WIDTH, CARD_LABEL_WIDTH) : width.label, strings = { ...localeStrings(options.locale?.language), ...options.strings }, partial = [range, ...periods].filter((p) => p.partial), star = disclosuresShown(options) ? "*" : "", headSub = (p) => star || !p.partial || saysToDate(`${p.label} ${p.subLabel ?? ""}`, strings.toDate) ? p.subLabel : p.subLabel ? `${p.subLabel} ${strings.toDate}` : strings.toDate, omitted = hidden.map((p) => p.label), fullPeriodNote = stringFields(strings.hiddenPeriods, { periods: omitted.join(", ") }), listed = cappedItems(omitted, { notes: options.notes, strings }), shortPeriodNote = stringFields(strings.hiddenPeriods, { periods: listed.join(", ") }), notes = [
|
|
490
493
|
...partial.length ? [disclosureNote(`${star ? `${star} ` : ""}${partial.map((p) => p.label).join(", ")} ${strings.toDate}`)] : [],
|
|
491
494
|
...nearZeroSeen ? [disclosureNote(strings.nearZeroChange)] : [],
|
|
@@ -20,10 +20,17 @@ import {
|
|
|
20
20
|
requireDeferred,
|
|
21
21
|
swatchApart,
|
|
22
22
|
tint
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4WK3CNW5.js";
|
|
24
24
|
import {
|
|
25
25
|
fmtPathNumber
|
|
26
26
|
} from "./chunk-WLZ54FWG.js";
|
|
27
|
+
import {
|
|
28
|
+
RETIRED_PALETTES,
|
|
29
|
+
RETIRED_PRESETS,
|
|
30
|
+
RETIRED_THEME_KEYS,
|
|
31
|
+
retiredThemeKeyWarning,
|
|
32
|
+
withoutRetiredThemeKeys
|
|
33
|
+
} from "./chunk-4ZGN4ZUN.js";
|
|
27
34
|
import {
|
|
28
35
|
DEFAULT_TARGET,
|
|
29
36
|
NormalizeError,
|
|
@@ -39,7 +46,7 @@ import {
|
|
|
39
46
|
AUTHORED_TYPE_SIZE,
|
|
40
47
|
hasAuthoredTypeSize,
|
|
41
48
|
measureText
|
|
42
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-AG2CJ4JY.js";
|
|
43
50
|
|
|
44
51
|
// src/core/svgPath.ts
|
|
45
52
|
function isHatchPattern(pattern) {
|
|
@@ -710,7 +717,8 @@ var DATA_MARK_LINE_PARTS = /* @__PURE__ */ new Set([
|
|
|
710
717
|
"legendTick",
|
|
711
718
|
"axisTitleSwatch",
|
|
712
719
|
"sizeKeyTick",
|
|
713
|
-
"diagramIcon"
|
|
720
|
+
"diagramIcon",
|
|
721
|
+
"ganttRule"
|
|
714
722
|
]), behindText = (node) => (node.t === "line" || node.t === "path" && node.stroke !== void 0 && node.fill === void 0) && !DATA_MARK_LINE_PARTS.has(node.part), FRAME_TEXT_PARTS = /* @__PURE__ */ new Set(["title", "subtitle", "source", "footnote", "note", "footer", "credit"]), GLYPH_TOP = 0.14, GLYPH_BOTTOM = 1.09, TEXT_ASCENT = 0.88;
|
|
715
723
|
function textBreaksLine(scene, x0, x1, top, size) {
|
|
716
724
|
let box = { x0, x1, y0: top + size * GLYPH_TOP, y1: top + size * GLYPH_BOTTOM, ax: x0, ay: top, cos: 1, sin: 0 };
|
|
@@ -1555,7 +1563,7 @@ function resolveColors(value) {
|
|
|
1555
1563
|
}
|
|
1556
1564
|
|
|
1557
1565
|
// src/core/theme.ts
|
|
1558
|
-
registerDeferredLoader("theme-rules", () => import("./themeShapeRules-
|
|
1566
|
+
registerDeferredLoader("theme-rules", () => import("./themeShapeRules-54U5EIZR.js").then((module) => module.linkThemeShapeRules()));
|
|
1559
1567
|
var ATLANTIC_SERIES = ["#075A8E", "#55BEF7", "#2AB1A9", "#838CDA", "#208668", "#9259AC"], ATLANTIC_DARK_SERIES = ["#087397", "#55BEFB", "#25AAA2", "#828BD9", "#1E9240", "#A054C4"], NOTATION_DARK_SERIES = ["#606060", "#858585", "#ACACAC", "#D5D5D5", "#FFFFFF"], DARK_WARN = "#F2C14E", LIGHT_WARN_FILL = "#F5A800", LIGHT_CB_BAD_FILL = "#A0431A";
|
|
1560
1568
|
function canonicalType(family) {
|
|
1561
1569
|
return {
|
|
@@ -1968,8 +1976,11 @@ function scaledTextTheme(theme, textScale, target) {
|
|
|
1968
1976
|
});
|
|
1969
1977
|
return byScale.set(`${target}:${textScale}`, scaled), scaled;
|
|
1970
1978
|
}
|
|
1979
|
+
function currentPreset(name) {
|
|
1980
|
+
return !Object.hasOwn(themes, name) && Object.hasOwn(RETIRED_PRESETS, name) ? RETIRED_PRESETS[name].to : name;
|
|
1981
|
+
}
|
|
1971
1982
|
function targetTheme(ref, target) {
|
|
1972
|
-
let preset = typeof ref == "string" ? ref : ref?.preset ?? "boardroom";
|
|
1983
|
+
let preset = currentPreset(typeof ref == "string" ? ref : ref?.preset ?? "boardroom");
|
|
1973
1984
|
if (!PRESET_NAMES.has(preset) || typeof ref == "object" && ref.overrides && ownThemes.has(ref.overrides))
|
|
1974
1985
|
return resolveTheme(ref);
|
|
1975
1986
|
let base = resolveTheme(preset), byTarget = targetThemes.get(base);
|
|
@@ -1981,28 +1992,36 @@ var REMOVED_NAMES = /* @__PURE__ */ Symbol("removedNames");
|
|
|
1981
1992
|
function removedNameWarnings(options) {
|
|
1982
1993
|
let warnings = [], ref = options?.theme;
|
|
1983
1994
|
if (ref !== null && typeof ref == "object" && ownThemes.has(ref.overrides ?? {})) return warnings;
|
|
1984
|
-
let
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
1995
|
+
let authored = typeof ref == "string" ? ref : ref !== null && typeof ref == "object" ? ref.preset : void 0;
|
|
1996
|
+
if (typeof authored != "string") return warnings;
|
|
1997
|
+
let preset = currentPreset(authored);
|
|
1998
|
+
if (preset !== authored) {
|
|
1999
|
+
let field = typeof ref == "string" ? ["options", "theme"] : ["options", "theme", "preset"], path = `/${field.join("/")}`;
|
|
1987
2000
|
warnings.push({
|
|
1988
2001
|
code: "option-deprecated",
|
|
1989
2002
|
severity: "warn",
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
2003
|
+
field,
|
|
2004
|
+
message: RETIRED_PRESETS[authored].same ? `Theme preset '${authored}' is renamed '${preset}'.` : `Theme preset '${authored}' is retired and draws as '${preset}'.`,
|
|
2005
|
+
suggest: `Set the theme preset to '${preset}'.`,
|
|
2006
|
+
fix: [{ op: "test", path, value: authored }, { op: "replace", path, value: preset }]
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
let base = Object.hasOwn(themes, preset) ? themes[preset] : adoptedTheme(preset), overrides = ref && typeof ref == "object" ? ref.overrides : void 0, has = (theme, dotted) => dotted.split(".").reduce((node, key) => node !== null && typeof node == "object" && Object.hasOwn(node, key) ? node[key] : void 0, theme) !== void 0;
|
|
2010
|
+
for (let dotted of Object.keys(RETIRED_THEME_KEYS)) {
|
|
2011
|
+
let inOverrides = has(overrides, dotted), inBase = has(base, dotted);
|
|
2012
|
+
inOverrides && !inBase ? warnings.push(retiredThemeKeyWarning(dotted, ["options", "theme", "overrides"])) : inBase && warnings.push({
|
|
2013
|
+
code: "option-deprecated",
|
|
2014
|
+
severity: "warn",
|
|
2015
|
+
field: ["options", "theme"],
|
|
2016
|
+
message: `Theme key ${dotted} is retired and ignored.`,
|
|
2017
|
+
suggest: `Remove ${dotted} from the '${preset}' theme definition${inOverrides ? " and authored overrides" : ""}. ${RETIRED_THEME_KEYS[dotted]}`
|
|
1999
2018
|
});
|
|
2000
2019
|
}
|
|
2001
2020
|
return warnings;
|
|
2002
2021
|
}
|
|
2003
2022
|
function resolveTheme(ref) {
|
|
2004
2023
|
if (!ref) return own(roadshowFamilyThemes.boardroom);
|
|
2005
|
-
let presetName = typeof ref == "string" ? ref : ref.preset, base = Object.hasOwn(themes, presetName) ? themes[presetName] : adoptedTheme(presetName);
|
|
2024
|
+
let presetName = typeof ref == "string" ? currentPreset(ref) : typeof ref.preset == "string" ? currentPreset(ref.preset) : ref.preset, base = Object.hasOwn(themes, presetName) ? themes[presetName] : adoptedTheme(presetName);
|
|
2006
2025
|
if (!base) {
|
|
2007
2026
|
if (typeof ref == "object" && ref.overrides && !requireDeferred("theme-rules").checkThemeShape(ref.overrides).length) return own(ref.overrides);
|
|
2008
2027
|
throw new NormalizeError(
|
|
@@ -2059,7 +2078,7 @@ function checkedOverride(base, overrides, presetName) {
|
|
|
2059
2078
|
}
|
|
2060
2079
|
overrides = { ...overrides, color: { ...overrides.color, series: ramp } };
|
|
2061
2080
|
}
|
|
2062
|
-
let merged = mergeDeep(base, familyFollows(base, authoredSizesHold(base, overrides))), rules = requireDeferred("theme-rules"), issues = rules.checkThemeShape(merged);
|
|
2081
|
+
let merged = withoutRetiredThemeKeys(mergeDeep(base, familyFollows(base, authoredSizesHold(base, overrides)))).theme, rules = requireDeferred("theme-rules"), issues = rules.checkThemeShape(merged);
|
|
2063
2082
|
if (issues.length > 0) {
|
|
2064
2083
|
let repair = rules.unknownThemeKeyRepair(issues, "/options/theme/overrides");
|
|
2065
2084
|
throw new NormalizeError(
|
|
@@ -2680,9 +2699,16 @@ function paintColor(theme, paint) {
|
|
|
2680
2699
|
let base = paint.theme === void 0 ? paintTokenColor(theme, paint.token) : themePaintSourceColor(theme, paint.theme);
|
|
2681
2700
|
return paint.tint ? tint(base, paint.tint, theme.color.background) : base;
|
|
2682
2701
|
}
|
|
2702
|
+
function paletteWarning(code, message) {
|
|
2703
|
+
return code === "option-deprecated" ? { code, severity: "warn", message, field: ["options", "palette"], suggest: "Remove options.palette.", fix: [{ op: "remove", path: "/options/palette" }] } : { code, severity: "warn", message };
|
|
2704
|
+
}
|
|
2683
2705
|
function resolvePalette(theme, name, warn) {
|
|
2684
2706
|
if (!name) return;
|
|
2685
2707
|
let ramp = theme.color.palettes?.[name];
|
|
2708
|
+
if (!ramp && RETIRED_PALETTES.has(name)) {
|
|
2709
|
+
warn?.("option-deprecated", `palette '${name}' is retired and ignored; the theme's own series draw.`);
|
|
2710
|
+
return;
|
|
2711
|
+
}
|
|
2686
2712
|
if (!ramp) {
|
|
2687
2713
|
warn?.(
|
|
2688
2714
|
"unknown-palette",
|
|
@@ -2695,7 +2721,7 @@ function resolvePalette(theme, name, warn) {
|
|
|
2695
2721
|
function resolveSemanticPaletteTheme(theme, name, warnings) {
|
|
2696
2722
|
if (name === void 0) return theme;
|
|
2697
2723
|
let ramp = resolvePalette(theme, name, (code, message) => {
|
|
2698
|
-
warnings.push(
|
|
2724
|
+
warnings.push(paletteWarning(code, message));
|
|
2699
2725
|
});
|
|
2700
2726
|
if (!ramp) return theme;
|
|
2701
2727
|
let primary = seriesColor(theme, 0, ramp), secondary = seriesColor(theme, 1, ramp);
|
|
@@ -2905,6 +2931,7 @@ export {
|
|
|
2905
2931
|
colorblindRoles,
|
|
2906
2932
|
colorblindTheme,
|
|
2907
2933
|
paintColor,
|
|
2934
|
+
paletteWarning,
|
|
2908
2935
|
resolvePalette,
|
|
2909
2936
|
resolveSemanticPaletteTheme,
|
|
2910
2937
|
focusColor,
|