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
|
@@ -2,32 +2,33 @@ import {
|
|
|
2
2
|
ENGINE_NOTES,
|
|
3
3
|
LABEL_WRAP_FLOOR,
|
|
4
4
|
SOFT_LABEL_CAP
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F3XOBFS4.js";
|
|
6
|
+
import {
|
|
7
|
+
chartString
|
|
8
|
+
} from "./chunk-PMT75APP.js";
|
|
6
9
|
import {
|
|
7
10
|
bandFor
|
|
8
11
|
} from "./chunk-263SZKIL.js";
|
|
9
12
|
import {
|
|
10
13
|
closestKey
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZNRSYS76.js";
|
|
12
15
|
import {
|
|
13
16
|
EMPTY_DATA
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KUWIRCYJ.js";
|
|
15
18
|
import {
|
|
16
19
|
generatedIdWarnings
|
|
17
20
|
} from "./chunk-SXAZDIGM.js";
|
|
18
21
|
import {
|
|
19
22
|
cappedItems,
|
|
20
|
-
cleanDiff,
|
|
21
|
-
cleanSum,
|
|
22
23
|
saysToDate
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4OJF6DXL.js";
|
|
24
25
|
import {
|
|
25
26
|
defaultNotePlacement,
|
|
26
27
|
disclosureNote,
|
|
27
28
|
disclosuresShown,
|
|
28
29
|
engineNote,
|
|
29
30
|
shownNoteKinds
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DZYTXZNS.js";
|
|
31
32
|
import {
|
|
32
33
|
emptyIdRecord
|
|
33
34
|
} from "./chunk-LINZPU5D.js";
|
|
@@ -39,19 +40,23 @@ import {
|
|
|
39
40
|
parseFormatExample,
|
|
40
41
|
specUnitKind,
|
|
41
42
|
unitMagnitude
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
43
44
|
import {
|
|
44
45
|
formatAutomaticPercent,
|
|
45
46
|
formatPercentagePoints,
|
|
46
47
|
localeStrings,
|
|
47
48
|
stringFields
|
|
48
49
|
} from "./chunk-MSYTF3DZ.js";
|
|
50
|
+
import {
|
|
51
|
+
cleanDiff,
|
|
52
|
+
cleanSum
|
|
53
|
+
} from "./chunk-TX5FSNAU.js";
|
|
49
54
|
import {
|
|
50
55
|
toJsonPointer
|
|
51
56
|
} from "./chunk-ZQ4VFQID.js";
|
|
52
57
|
import {
|
|
53
58
|
NormalizeError
|
|
54
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RJICOOB3.js";
|
|
55
60
|
import {
|
|
56
61
|
maxOf
|
|
57
62
|
} from "./chunk-WYJEOMNY.js";
|
|
@@ -119,6 +124,9 @@ function currentDimSwitchOptions(compiled, options, form, effectLabel) {
|
|
|
119
124
|
var fields = (expr) => typeof expr == "number" || "measure" in expr ? [] : "field" in expr ? [expr.field] : "total" in expr ? [] : [...fields(expr.a), ...fields(expr.b)], refs = (expr) => typeof expr == "number" || "field" in expr ? [] : "measure" in expr ? [expr.measure] : "total" in expr ? refs(expr.total) : [...refs(expr.a), ...refs(expr.b)], usesTotal = (expr) => typeof expr == "number" || "field" in expr || "measure" in expr ? !1 : "total" in expr || usesTotal(expr.a) || usesTotal(expr.b), percentMeasure = (m) => m.scale === "percent" || m.format !== void 0 && specUnitKind(parseFormatExample(m.format)) === "percent", affix = (m) => {
|
|
120
125
|
let kind = m.format ? specUnitKind(parseFormatExample(m.format)) : m.scale === "percent" ? "percent" : void 0;
|
|
121
126
|
return (m.unit === "%" || m.unit === "pp") && (kind === "percent" || kind === "pp") ? void 0 : m.unit;
|
|
127
|
+
}, pointAt = (at, list, id, ...field) => {
|
|
128
|
+
let hits = list.flatMap((entry, index) => entry.id === id ? [index] : []);
|
|
129
|
+
return hits.length === 1 ? [...at, hits[0], ...field] : [];
|
|
122
130
|
}, combine = (op, a, b) => op === "sub" ? cleanDiff(a, b) : op === "add" ? cleanSum([a, b]) : op === "mul" ? a * b : a / b;
|
|
123
131
|
function evaluate(expr, sums, total) {
|
|
124
132
|
if (typeof expr == "number") return { raw: expr, state: "value" };
|
|
@@ -194,34 +202,34 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
194
202
|
let decimals = formatDecimals.get(format);
|
|
195
203
|
return decimals === void 0 && (decimals = parseFormatExample(format).decimals, formatDecimals.set(format, decimals)), decimals;
|
|
196
204
|
}, variant = options.variant ?? "by-measure", depth = options.depth ?? 1;
|
|
197
|
-
if (!data.periods.length || !data.facts.length) throw new NormalizeError(EMPTY_DATA, data.periods.length ? "facts" : "periods", `dimswitch requires at least one ${data.periods.length ? "fact" : "period"}
|
|
205
|
+
if (!data.periods.length || !data.facts.length) throw new NormalizeError(EMPTY_DATA, data.periods.length ? "facts" : "periods", `dimswitch requires at least one ${data.periods.length ? "fact" : "period"}`, void 0, void 0, ["data", data.periods.length ? "facts" : "periods"]);
|
|
198
206
|
let range = data.periods.find((p) => p.kind === "range"), prior = data.periods.find((p) => p.kind === "prior");
|
|
199
|
-
if (!range || !prior) throw new NormalizeError("invalid-data", "periods", "dimswitch requires one range and one prior period", "
|
|
207
|
+
if (!range || !prior) throw new NormalizeError("invalid-data", "periods", "dimswitch requires one range and one prior period", "Give periods one period of kind range and one of kind prior. To hide their columns, keep both and set options.columnVisibility to { range: false, pp: false }.", void 0, ["data", "periods"]);
|
|
200
208
|
let authoredPeriods = hostPeriods(data, options), plan = data.periods.find((p) => p.kind === "plan"), hidden = authoredPeriods.slice(0, form.hide ?? 0), periods = authoredPeriods.slice(hidden.length), blockColumns = ["range", "pp", ...plan ? ["pl"] : []].filter((id) => options.columnVisibility?.[id] !== !1), drawnBlock = new Set(blockColumns), rangeDrawn = drawnBlock.has("range"), blockCells = () => {
|
|
201
209
|
let cells = emptyIdRecord();
|
|
202
210
|
for (let id of blockColumns) cells[id] = null;
|
|
203
211
|
return cells;
|
|
204
212
|
};
|
|
205
|
-
if (data.periods.filter((p) => p.kind === "plan").length > 1) throw new NormalizeError("invalid-count", "periods", "dimswitch permits at most one plan period", "keep one period of kind plan");
|
|
213
|
+
if (data.periods.filter((p) => p.kind === "plan").length > 1) throw new NormalizeError("invalid-count", "periods", "dimswitch permits at most one plan period", "keep one period of kind plan", void 0, ["data", "periods"]);
|
|
206
214
|
for (let setting of [options.thresholds, options.thresholds?.period, options.thresholds?.prior, options.thresholds?.plan]) for (let family of ["volume", "cost", "rate", "effect"]) {
|
|
207
215
|
let pair = setting?.[family];
|
|
208
216
|
if (pair && (!pair.every(Number.isFinite) || !(pair[0] >= 0 && pair[0] <= pair[1]))) throw new NormalizeError("invalid-number", "options.thresholds", `dimswitch thresholds.${family} must satisfy 0 <= first <= second.`);
|
|
209
217
|
}
|
|
210
218
|
let memberIndex = new Map(data.dimension.members.map((m) => [m.id, m])), memberLevels = 0;
|
|
211
219
|
for (let member of data.dimension.members) {
|
|
212
|
-
let seen = /* @__PURE__ */ new Set(), current = member, level = 0;
|
|
220
|
+
let seen = /* @__PURE__ */ new Set(), current = member, level = 0, child;
|
|
213
221
|
for (; current; ) {
|
|
214
|
-
if (seen.has(current.id)) throw new NormalizeError("parent-cycle", "dimension.members", "dimswitch member hierarchy contains a cycle");
|
|
222
|
+
if (seen.has(current.id)) throw new NormalizeError("parent-cycle", "dimension.members", "dimswitch member hierarchy contains a cycle", void 0, void 0, pointAt(["data", "dimension", "members"], data.dimension.members, child.id, "parentId"));
|
|
215
223
|
seen.add(current.id), level++;
|
|
216
224
|
let parent = current.parentId;
|
|
217
|
-
if (parent && !memberIndex.has(parent)) throw new NormalizeError("parent-missing", "dimension.members", `Unknown dimswitch parent ${parent}
|
|
218
|
-
current = parent ? memberIndex.get(parent) : void 0;
|
|
225
|
+
if (parent && !memberIndex.has(parent)) throw new NormalizeError("parent-missing", "dimension.members", `Unknown dimswitch parent ${parent}`, void 0, void 0, pointAt(["data", "dimension", "members"], data.dimension.members, current.id, "parentId"));
|
|
226
|
+
child = current, current = parent ? memberIndex.get(parent) : void 0;
|
|
219
227
|
}
|
|
220
228
|
memberLevels = Math.max(memberLevels, level);
|
|
221
229
|
}
|
|
222
|
-
let measures = new Map(data.measures.map((m) => [m.id, m])), measure = (id, from) => {
|
|
230
|
+
let measures = new Map(data.measures.map((m) => [m.id, m])), measure = (id, from, field) => {
|
|
223
231
|
let m = measures.get(id);
|
|
224
|
-
if (!m) throw new NormalizeError("calc-ref-missing", "measures", `dimswitch measure '${from}' names unknown measure '${id}'; use a measures[].id
|
|
232
|
+
if (!m) throw new NormalizeError("calc-ref-missing", "measures", `dimswitch measure '${from}' names unknown measure '${id}'; use a measures[].id.`, void 0, void 0, pointAt(["data", "measures"], data.measures, from, field));
|
|
225
233
|
return m;
|
|
226
234
|
}, warnings = [], totalHidden = options.rowVisibility?.[data.dimension.total.id] === !1, headHidden = (group) => `group:${group}` !== data.dimension.total.id && options.rowVisibility?.[`group:${group}`] === !1, headIds = /* @__PURE__ */ new Set(), hostHidEveryPeriod = !authoredPeriods.length && data.periods.some((p) => !p.kind), generatedIds = ["label", "range", "pp", ...plan ? ["pl"] : []], allPeriodIds = data.periods.filter((p) => !p.kind).map((p) => p.id);
|
|
227
235
|
warnings.push(
|
|
@@ -260,52 +268,55 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
260
268
|
});
|
|
261
269
|
});
|
|
262
270
|
let driverOwner = /* @__PURE__ */ new Map();
|
|
263
|
-
for (let m of data.measures) if (m.drivers !== void 0) {
|
|
271
|
+
for (let [index, m] of data.measures.entries()) if (m.drivers !== void 0) {
|
|
264
272
|
let ids = refs(m.drivers);
|
|
265
|
-
if (!ids.length || fields(m.drivers).length || usesTotal(m.drivers)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': drivers is a formula over { measure } references and numbers, not sums fields
|
|
266
|
-
if (new Set(ids).size > 6) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': at most 6 drivers; the effect split evaluates every order of them
|
|
273
|
+
if (!ids.length || fields(m.drivers).length || usesTotal(m.drivers)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': drivers is a formula over { measure } references and numbers, not sums fields.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
274
|
+
if (new Set(ids).size > 6) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': at most 6 drivers; the effect split evaluates every order of them.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
267
275
|
for (let id of ids) {
|
|
268
|
-
let driver = measure(id, m.id);
|
|
269
|
-
if (id === m.id || driverOwner.has(id) && driverOwner.get(id) !== m.id) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver explains one other line; '${m.id}' and '${driverOwner.get(id) ?? m.id}' both name it
|
|
270
|
-
if (driver.sign !== void 0 || driver.result || driver.drivers !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver takes no sign, result or drivers; it is printed, never added
|
|
276
|
+
let driver = measure(id, m.id, "drivers");
|
|
277
|
+
if (id === m.id || driverOwner.has(id) && driverOwner.get(id) !== m.id) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver explains one other line; '${m.id}' and '${driverOwner.get(id) ?? m.id}' both name it.`, void 0, void 0, ["data", "measures", index, "drivers"]);
|
|
278
|
+
if (driver.sign !== void 0 || driver.result || driver.drivers !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}': a driver takes no sign, result or drivers; it is printed, never added.`, void 0, void 0, pointAt(["data", "measures"], data.measures, id, driver.sign !== void 0 ? "sign" : driver.result ? "result" : "drivers"));
|
|
271
279
|
driverOwner.set(id, m.id);
|
|
272
280
|
}
|
|
273
281
|
}
|
|
274
282
|
let placed = /* @__PURE__ */ new Set();
|
|
275
283
|
for (let start of data.measures) {
|
|
276
|
-
let path = /* @__PURE__ */ new Map(), edges = [], current = start;
|
|
284
|
+
let path = /* @__PURE__ */ new Map(), edges = [], child, current = start;
|
|
277
285
|
for (; current && !placed.has(current.id); ) {
|
|
278
286
|
let cycleAt = path.get(current.id);
|
|
279
287
|
if (cycleAt !== void 0) throw new NormalizeError(
|
|
280
288
|
"invalid-data",
|
|
281
289
|
"measures",
|
|
282
290
|
`dimswitch measure placement forms a cycle: ${edges.slice(cycleAt).join("; ")}.`,
|
|
283
|
-
"remove one partOf or drivers reference in this cycle"
|
|
291
|
+
"remove one partOf or drivers reference in this cycle",
|
|
292
|
+
void 0,
|
|
293
|
+
// The edge out of the line before closes the cycle: its partOf, or the drivers of its owner.
|
|
294
|
+
child.partOf !== void 0 ? pointAt(["data", "measures"], data.measures, child.id, "partOf") : pointAt(["data", "measures"], data.measures, driverOwner.get(child.id), "drivers")
|
|
284
295
|
);
|
|
285
296
|
path.set(current.id, edges.length);
|
|
286
297
|
let parent = current.partOf ?? driverOwner.get(current.id);
|
|
287
298
|
if (parent === void 0) break;
|
|
288
|
-
edges.push(current.partOf !== void 0 ? `'${current.id}'.partOf -> '${parent}'` : `'${current.id}' is a driver in '${parent}'.drivers`), current = measure(parent, current.id);
|
|
299
|
+
edges.push(current.partOf !== void 0 ? `'${current.id}'.partOf -> '${parent}'` : `'${current.id}' is a driver in '${parent}'.drivers`), child = current, current = measure(parent, current.id, "partOf");
|
|
289
300
|
}
|
|
290
301
|
for (let id of path.keys()) placed.add(id);
|
|
291
302
|
}
|
|
292
303
|
let isDriver = (m) => driverOwner.has(m.id), placeOf = (m) => m.partOf ?? (isDriver(m) ? measures.get(driverOwner.get(m.id)).partOf : void 0), partsOf = (id) => data.measures.filter((m) => m.partOf === id && !isDriver(m)), childrenOf = (id) => data.measures.filter((m) => placeOf(m) === id), isSubtotal = (m) => partsOf(m.id).length > 0;
|
|
293
|
-
for (let m of data.measures) {
|
|
304
|
+
for (let [index, m] of data.measures.entries()) {
|
|
294
305
|
if (m.partOf !== void 0) {
|
|
295
|
-
let parent = measure(m.partOf, m.id);
|
|
296
|
-
if (m.parentId !== void 0 || m.splitOf !== void 0 || parent.parentId !== void 0 || parent.splitOf !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': partOf and split fields (parentId, splitOf) do not mix
|
|
297
|
-
if (parent.result) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result has no parts; name its lines in its value instead
|
|
306
|
+
let parent = measure(m.partOf, m.id, "partOf");
|
|
307
|
+
if (m.parentId !== void 0 || m.splitOf !== void 0 || parent.parentId !== void 0 || parent.splitOf !== void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': partOf and split fields (parentId, splitOf) do not mix.`, void 0, void 0, ["data", "measures", index, "partOf"]);
|
|
308
|
+
if (parent.result) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result has no parts; name its lines in its value instead.`, void 0, void 0, ["data", "measures", index, "partOf"]);
|
|
298
309
|
}
|
|
299
|
-
if (m.result && (m.sign !== void 0 || m.partOf !== void 0 || m.value === void 0)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result is a top-level line with a value that names its lines, e.g. { "op": "sub", "a": { "measure": "income" }, "b": { "measure": "costs" } }; it takes no sign or partOf
|
|
300
|
-
if (m.change === "absolute" && percentMeasure(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a percent measure changes in points; use change 'pp', not 'absolute'
|
|
301
|
-
if (m.value === void 0 && !isSubtotal(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}' has no value and no measure names it in partOf; add a value or make it a subtotal
|
|
310
|
+
if (m.result && (m.sign !== void 0 || m.partOf !== void 0 || m.value === void 0)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a result is a top-level line with a value that names its lines, e.g. { "op": "sub", "a": { "measure": "income" }, "b": { "measure": "costs" } }; it takes no sign or partOf.`, void 0, void 0, ["data", "measures", index, "result"]);
|
|
311
|
+
if (m.change === "absolute" && percentMeasure(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a percent measure changes in points; use change 'pp', not 'absolute'.`, void 0, void 0, ["data", "measures", index, "change"]);
|
|
312
|
+
if (m.value === void 0 && !isSubtotal(m)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}' has no value and no measure names it in partOf; add a value or make it a subtotal.`, void 0, void 0, ["data", "measures", index, "value"]);
|
|
302
313
|
}
|
|
303
314
|
let statementGroups = /* @__PURE__ */ new Set(), statementField = (m) => m.partOf !== void 0 || m.sign !== void 0 || m.result === !0 || m.drivers !== void 0 || isDriver(m) || isSubtotal(m), groupOf = (m) => m.group ?? (placeOf(m) !== void 0 ? groupOf(measures.get(placeOf(m))) : isDriver(m) ? groupOf(measures.get(driverOwner.get(m.id))) : void 0);
|
|
304
|
-
for (let m of data.measures) if (statementField(m)) {
|
|
315
|
+
for (let [index, m] of data.measures.entries()) if (statementField(m)) {
|
|
305
316
|
let g = groupOf(m);
|
|
306
|
-
if (g === void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a statement line needs a group; the group is the statement (e.g. "Contribution margin")
|
|
317
|
+
if (g === void 0) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': a statement line needs a group; the group is the statement (e.g. "Contribution margin").`, void 0, void 0, ["data", "measures", index, "group"]);
|
|
307
318
|
let place = placeOf(m);
|
|
308
|
-
if (place !== void 0 && m.group !== void 0 && groupOf(measures.get(place)) !== m.group) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': its group differs from the group of '${place}'; a line sits in its subtotal's group
|
|
319
|
+
if (place !== void 0 && m.group !== void 0 && groupOf(measures.get(place)) !== m.group) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${m.id}': its group differs from the group of '${place}'; a line sits in its subtotal's group.`, void 0, void 0, ["data", "measures", index, "group"]);
|
|
309
320
|
statementGroups.add(g);
|
|
310
321
|
}
|
|
311
322
|
let inStatement = (m) => {
|
|
@@ -315,19 +326,19 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
315
326
|
if (effectMeasures.length) {
|
|
316
327
|
for (let kind of ["prior", ...periods.length ? ["period"] : [], ...plan ? ["plan"] : []]) if (!thresholdFor("effect", kind, options)) throw new NormalizeError("invalid-number", "options.thresholds", `dimswitch options.thresholds.effect or thresholds.${kind}.effect is required for judge family effect: two ascending numbers in the statement unit.`);
|
|
317
328
|
let scales = new Set(effectMeasures.filter((m) => !isDriver(m)).map((m) => m.scale ?? m.format ?? ""));
|
|
318
|
-
if (scales.size > 1) throw new NormalizeError("invalid-data", "measures", `dimswitch effect lines must share one scale and format; ${[...scales].map((s) => `'${s}'`).join(" and ")} differ. One threshold pair cannot judge two units
|
|
329
|
+
if (scales.size > 1) throw new NormalizeError("invalid-data", "measures", `dimswitch effect lines must share one scale and format; ${[...scales].map((s) => `'${s}'`).join(" and ")} differ. One threshold pair cannot judge two units.`, void 0, void 0, ["data", "measures"]);
|
|
319
330
|
}
|
|
320
331
|
let resolved = /* @__PURE__ */ new Map(), resolving = /* @__PURE__ */ new Set(), valueOf = (id) => {
|
|
321
332
|
let done = resolved.get(id);
|
|
322
333
|
if (done !== void 0) return done;
|
|
323
|
-
if (resolving.has(id)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}' refers to itself through { measure } references
|
|
334
|
+
if (resolving.has(id)) throw new NormalizeError("invalid-data", "measures", `dimswitch measure '${id}' refers to itself through { measure } references.`, void 0, void 0, pointAt(["data", "measures"], data.measures, id, ...measures.get(id)?.value === void 0 ? [] : ["value"]));
|
|
324
335
|
resolving.add(id);
|
|
325
336
|
let m = measures.get(id), expr = m.value === void 0 ? composed(id) : inline(m.value, id);
|
|
326
337
|
return resolving.delete(id), resolved.set(id, expr), expr;
|
|
327
338
|
}, inline = (e, from) => {
|
|
328
339
|
if (typeof e == "number" || "field" in e) return e;
|
|
329
340
|
if ("measure" in e) {
|
|
330
|
-
let m = measure(e.measure, from), v = valueOf(m.id);
|
|
341
|
+
let m = measure(e.measure, from, "value"), v = valueOf(m.id);
|
|
331
342
|
return percentMeasure(m) ? { op: "mul", a: v, b: 0.01 } : v;
|
|
332
343
|
}
|
|
333
344
|
return "total" in e ? { total: inline(e.total, from) } : { ...e, a: inline(e.a, from), b: inline(e.b, from) };
|
|
@@ -713,7 +724,7 @@ function compileDimSwitch(data, options = {}, form = {}) {
|
|
|
713
724
|
{ id: "label", kind: "rowLabel", label: headOf("label", variant === "by-measure" ? "KPI" : data.dimension.label), ...aligned("label"), ...labelWidth === void 0 && !form.card ? { maxTextWidth: labelCap } : { maxWidth: labelCap } },
|
|
714
725
|
...periodsFirst ? [...periodTracks, ...blockTracks] : [...blockTracks, ...periodTracks]
|
|
715
726
|
// Range and its comparisons form one block between labels and periods.
|
|
716
|
-
], columnGroups: [{ id: "labels", label: "
|
|
727
|
+
], columnGroups: [{ id: "labels", label: chartString(options, "dimswitchLabels"), heading: !1, columns: ["label"] }, ...blockColumns.length ? [{ id: "block", label: chartString(options, "dimswitchRange"), heading: !1, columns: blockColumns }] : []], rows },
|
|
717
728
|
// No rowExtent: under the default the rules end at the last track.
|
|
718
729
|
options: {
|
|
719
730
|
...tableDefaults(form, pinned),
|
|
@@ -3,28 +3,31 @@ import {
|
|
|
3
3
|
} from "./chunk-M4YLED7M.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutButterfly
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4DK67I3B.js";
|
|
7
7
|
import {
|
|
8
8
|
structureCount
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KW4JXWHO.js";
|
|
10
10
|
import {
|
|
11
11
|
chartSizing
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GNMB72V7.js";
|
|
13
13
|
import {
|
|
14
|
+
HOST_CLAIMS,
|
|
14
15
|
authoredNotes,
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
claimId,
|
|
17
|
+
withAuthoredFootnotes,
|
|
18
|
+
withUnprintedClaims
|
|
19
|
+
} from "./chunk-4OJF6DXL.js";
|
|
17
20
|
import {
|
|
18
21
|
disclosureNote,
|
|
19
22
|
keepShownNotes
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DZYTXZNS.js";
|
|
21
24
|
import {
|
|
22
25
|
emptyIdRecord
|
|
23
26
|
} from "./chunk-LINZPU5D.js";
|
|
24
27
|
import {
|
|
25
28
|
formatterFromExample,
|
|
26
29
|
seriesRasterFormatter
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Z6DUNKFU.js";
|
|
28
31
|
import {
|
|
29
32
|
chartStrings,
|
|
30
33
|
formatAutomaticPercent
|
|
@@ -37,12 +40,12 @@ import {
|
|
|
37
40
|
resolveTheme,
|
|
38
41
|
strokeToken,
|
|
39
42
|
themeForWidth
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TX5FSNAU.js";
|
|
41
44
|
import {
|
|
42
45
|
NormalizeError,
|
|
43
46
|
TARGET_SIZE,
|
|
44
47
|
accessibleTitle
|
|
45
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RJICOOB3.js";
|
|
46
49
|
import {
|
|
47
50
|
maxOf
|
|
48
51
|
} from "./chunk-WYJEOMNY.js";
|
|
@@ -133,15 +136,17 @@ function layoutPyramid(data, options = {}) {
|
|
|
133
136
|
if (!data || !Array.isArray(data.bands) || !Array.isArray(data.groups))
|
|
134
137
|
throw new NormalizeError("empty-data", "data", "pyramid requires bands and groups");
|
|
135
138
|
if (data.bands.length === 0)
|
|
136
|
-
throw new NormalizeError("empty-data", "bands", "pyramid requires at least one band");
|
|
139
|
+
throw new NormalizeError("empty-data", "bands", "pyramid requires at least one band", void 0, void 0, ["data", "bands"]);
|
|
137
140
|
if (data.groups.length === 0)
|
|
138
|
-
throw new NormalizeError("empty-data", "groups", "pyramid requires two groups");
|
|
141
|
+
throw new NormalizeError("empty-data", "groups", "pyramid requires two groups", void 0, void 0, ["data", "groups"]);
|
|
139
142
|
if (data.groups.length !== 2)
|
|
140
143
|
throw new NormalizeError(
|
|
141
144
|
"pyramid-groups-count",
|
|
142
145
|
"groups",
|
|
143
146
|
`a pyramid mirrors exactly two groups; ${data.groups.length} supplied`,
|
|
144
|
-
data.groups.length < 2 ? "a one-sided pyramid is a bar chart \u2014 use `bar`" : "three or more groups have no mirrored geometry \u2014 use a bar or column chart"
|
|
147
|
+
data.groups.length < 2 ? "a one-sided pyramid is a bar chart \u2014 use `bar`" : "three or more groups have no mirrored geometry \u2014 use a bar or column chart",
|
|
148
|
+
void 0,
|
|
149
|
+
["data", "groups"]
|
|
145
150
|
);
|
|
146
151
|
let bands = validateBands(data.bands), bandWidth = closedWidth(bands), openTopBand = bands[bands.length - 1].to === void 0 ? bands[bands.length - 1].id : null, groups = data.groups, groupIds = [requireGroupId(groups[0], 0), requireGroupId(groups[1], 1)];
|
|
147
152
|
if (groupIds[0] === groupIds[1])
|
|
@@ -149,7 +154,9 @@ function layoutPyramid(data, options = {}) {
|
|
|
149
154
|
"pyramid-groups-count",
|
|
150
155
|
"groups[1].id",
|
|
151
156
|
`both groups are named '${groupIds[0]}'; the two mirrored sides must be distinguishable`,
|
|
152
|
-
"give each group its own id"
|
|
157
|
+
"give each group its own id",
|
|
158
|
+
void 0,
|
|
159
|
+
["data", "groups", 1, "id"]
|
|
153
160
|
);
|
|
154
161
|
let bothDated = groups[0].date !== void 0 && groups[1].date !== void 0, basis = requestedBasis === "shareOfTotal" && bothDated ? "shareOfGroup" : requestedBasis, isShare = basis !== "count", counts = [
|
|
155
162
|
readValues(groups[0], 0, bands),
|
|
@@ -166,7 +173,9 @@ function layoutPyramid(data, options = {}) {
|
|
|
166
173
|
"pyramid-zero-total",
|
|
167
174
|
"groups",
|
|
168
175
|
basis === "shareOfGroup" ? `a group sums to 0 across every band (${groupIds[0]}: ${totals[groupIds[0]]}, ${groupIds[1]}: ${totals[groupIds[1]]}), so its shares would be 0/0` : `both groups sum to ${grandTotal} across every band, so every share would be 0/0`,
|
|
169
|
-
"supply at least one positive count per group, or use basis: 'count'"
|
|
176
|
+
"supply at least one positive count per group, or use basis: 'count'",
|
|
177
|
+
void 0,
|
|
178
|
+
["data", "groups"]
|
|
170
179
|
);
|
|
171
180
|
shares = emptyIdRecord();
|
|
172
181
|
let whole = (id) => basis === "shareOfGroup" ? totals[id] : grandTotal;
|
|
@@ -217,8 +226,9 @@ function layoutPyramid(data, options = {}) {
|
|
|
217
226
|
values: order.map((bandId) => plotted(bandId, g)),
|
|
218
227
|
...group.colorRole ? { colorRole: group.colorRole } : {}
|
|
219
228
|
}))
|
|
220
|
-
}, butterflyOptions = withAuthoredFootnotes({
|
|
229
|
+
}, shareClaims = ({ id, kind, owner: { seriesId, categoryId } }) => isShare && kind === "point" && seriesId !== void 0 && categoryId !== void 0 && id === `point:${seriesId}:${categoryId}` ? [claimId("pyramid:share", categoryId, seriesId)] : void 0, butterflyOptions = withAuthoredFootnotes({
|
|
221
230
|
...stripPyramidOnly(options),
|
|
231
|
+
[HOST_CLAIMS]: shareClaims,
|
|
222
232
|
// a pyramid's bars fill 0.8 of the row pitch at every
|
|
223
233
|
// width, so the silhouette reads as one shape; an authored value stays.
|
|
224
234
|
bandFraction: options.bandFraction ?? PYRAMID_BAND_FRACTION,
|
|
@@ -300,7 +310,7 @@ function layoutPyramid(data, options = {}) {
|
|
|
300
310
|
chartString(options, "pyramidTotals", { v1: labelA, v2: fmtCount(totals[groupIds[0]]), v3: countUnit, v4: labelB, v5: fmtCount(totals[groupIds[1]]), v6: countUnit, v7: fmtCount(grandTotal), v8: countUnit }) + (isShare ? chartString(options, basis === "shareOfGroup" ? "pyramidSharesOfGroup" : "pyramidShares") : chartString(options, "pyramidCounts", { v1: countUnit === "" ? "" : chartString(options, "inUnitClause", { v1: options.unit }) })) + [...bands].reverse().map(
|
|
301
311
|
(band) => `${labelOf(band)}: ${labelA} ${fmtPlotted(plotted(band.id, 0))}, ${labelB} ${fmtPlotted(plotted(band.id, 1))}`
|
|
302
312
|
).join("; ") + ".";
|
|
303
|
-
return {
|
|
313
|
+
return withUnprintedClaims({
|
|
304
314
|
...geo,
|
|
305
315
|
type: "pyramid",
|
|
306
316
|
derived: {
|
|
@@ -324,11 +334,11 @@ function layoutPyramid(data, options = {}) {
|
|
|
324
334
|
desc
|
|
325
335
|
},
|
|
326
336
|
warnings: [...geo.warnings, ...warnings]
|
|
327
|
-
};
|
|
337
|
+
}, order.map((bandId) => `pyramid:ratio:${bandId}`));
|
|
328
338
|
}
|
|
329
339
|
function requireGroupId(group, index) {
|
|
330
340
|
if (!group || typeof group != "object" || !group.id)
|
|
331
|
-
throw new NormalizeError("missing-id", `groups[${index}]`, "each pyramid group requires an id");
|
|
341
|
+
throw new NormalizeError("missing-id", `groups[${index}]`, "each pyramid group requires an id", void 0, void 0, ["data", "groups", index]);
|
|
332
342
|
return group.id;
|
|
333
343
|
}
|
|
334
344
|
function validateBands(raw) {
|
|
@@ -336,29 +346,35 @@ function validateBands(raw) {
|
|
|
336
346
|
raw.forEach((band, i) => {
|
|
337
347
|
let path = `bands[${i}]`;
|
|
338
348
|
if (!band || typeof band != "object" || !band.id)
|
|
339
|
-
throw new NormalizeError("missing-id", path, "each pyramid band requires an id");
|
|
349
|
+
throw new NormalizeError("missing-id", path, "each pyramid band requires an id", void 0, void 0, ["data", "bands", i]);
|
|
340
350
|
if (seen.has(band.id))
|
|
341
|
-
throw new NormalizeError("duplicate-id", path, `duplicate band id '${band.id}'
|
|
351
|
+
throw new NormalizeError("duplicate-id", path, `duplicate band id '${band.id}'`, void 0, void 0, ["data", "bands", i]);
|
|
342
352
|
if (seen.add(band.id), typeof band.from != "number" || !Number.isFinite(band.from))
|
|
343
353
|
throw new NormalizeError(
|
|
344
354
|
"pyramid-bands-unordered",
|
|
345
355
|
`${path}.from`,
|
|
346
356
|
`band '${band.id}' has a non-finite lower bound (${String(band.from)})`,
|
|
347
|
-
"every band needs a finite `from`"
|
|
357
|
+
"every band needs a finite `from`",
|
|
358
|
+
void 0,
|
|
359
|
+
["data", "bands", i, "from"]
|
|
348
360
|
);
|
|
349
361
|
if (band.to !== void 0 && (typeof band.to != "number" || !Number.isFinite(band.to)))
|
|
350
362
|
throw new NormalizeError(
|
|
351
363
|
"pyramid-bands-unordered",
|
|
352
364
|
`${path}.to`,
|
|
353
365
|
`band '${band.id}' has a non-finite upper bound (${String(band.to)})`,
|
|
354
|
-
"omit `to` to declare the band open-ended, or give it a finite number"
|
|
366
|
+
"omit `to` to declare the band open-ended, or give it a finite number",
|
|
367
|
+
void 0,
|
|
368
|
+
["data", "bands", i, "to"]
|
|
355
369
|
);
|
|
356
370
|
if (band.to !== void 0 && !(band.to > band.from))
|
|
357
371
|
throw new NormalizeError(
|
|
358
372
|
"pyramid-bands-unordered",
|
|
359
373
|
`${path}.to`,
|
|
360
374
|
`band '${band.id}' spans from ${band.from} to ${band.to}: a band's \`to\` must be greater than its \`from\``,
|
|
361
|
-
"bands are authored ascending, lowest first"
|
|
375
|
+
"bands are authored ascending, lowest first",
|
|
376
|
+
void 0,
|
|
377
|
+
["data", "bands", i, "to"]
|
|
362
378
|
);
|
|
363
379
|
});
|
|
364
380
|
for (let i = 1; i < raw.length; i++)
|
|
@@ -367,7 +383,9 @@ function validateBands(raw) {
|
|
|
367
383
|
"pyramid-bands-unordered",
|
|
368
384
|
`bands[${i}].from`,
|
|
369
385
|
`bands must be authored in strictly ascending order: band '${raw[i].id}' starts at ${raw[i].from}, which is not above band '${raw[i - 1].id}' at ${raw[i - 1].from}`,
|
|
370
|
-
"author the bands lowest-first; the engine reverses them for rendering"
|
|
386
|
+
"author the bands lowest-first; the engine reverses them for rendering",
|
|
387
|
+
void 0,
|
|
388
|
+
["data", "bands", i, "from"]
|
|
371
389
|
);
|
|
372
390
|
for (let i = 0; i < raw.length - 1; i++) {
|
|
373
391
|
let here = raw[i], next = raw[i + 1];
|
|
@@ -376,7 +394,9 @@ function validateBands(raw) {
|
|
|
376
394
|
"pyramid-bands-noncontiguous",
|
|
377
395
|
`bands[${i}].to`,
|
|
378
396
|
`band '${here.id}' is open-ended but is followed by '${next.id}': only the LAST band may omit \`to\`, because an open band in the middle makes contiguity uncheckable`,
|
|
379
|
-
`give '${here.id}' a \`to\` of ${next.from}
|
|
397
|
+
`give '${here.id}' a \`to\` of ${next.from}`,
|
|
398
|
+
void 0,
|
|
399
|
+
["data", "bands", i, "to"]
|
|
380
400
|
);
|
|
381
401
|
if (here.to !== next.from) {
|
|
382
402
|
let gap = next.from - here.to;
|
|
@@ -384,7 +404,9 @@ function validateBands(raw) {
|
|
|
384
404
|
"pyramid-bands-noncontiguous",
|
|
385
405
|
`bands[${i + 1}].from`,
|
|
386
406
|
gap > 0 ? `bands '${here.id}' and '${next.id}' leave a gap of ${trim(gap)} (${trim(here.to)} to ${trim(next.from)}): that population is missing from the exhibit, and the two bands would be drawn as neighbours` : `bands '${here.id}' and '${next.id}' overlap by ${trim(-gap)} (${trim(next.from)} to ${trim(here.to)}): the overlapping population would be counted twice`,
|
|
387
|
-
`set bands[${i + 1}].from to ${trim(here.to)}, or close the gap with another band
|
|
407
|
+
`set bands[${i + 1}].from to ${trim(here.to)}, or close the gap with another band`,
|
|
408
|
+
void 0,
|
|
409
|
+
["data", "bands", i + 1, "from"]
|
|
388
410
|
);
|
|
389
411
|
}
|
|
390
412
|
}
|
|
@@ -398,7 +420,9 @@ function validateBands(raw) {
|
|
|
398
420
|
"pyramid-unequal-bands",
|
|
399
421
|
`bands[${raw.indexOf(band)}]`,
|
|
400
422
|
`band '${band.id}' is ${trim(w)} wide but '${first.id}' is ${trim(width)} wide: row heights are equal, so a wider band's bar reads as a larger cohort than it is`,
|
|
401
|
-
`re-bucket every band to a common width of ${trim(width)}
|
|
423
|
+
`re-bucket every band to a common width of ${trim(width)}`,
|
|
424
|
+
void 0,
|
|
425
|
+
["data", "bands", raw.indexOf(band)]
|
|
402
426
|
);
|
|
403
427
|
}
|
|
404
428
|
}
|
|
@@ -411,7 +435,7 @@ function closedWidth(bands) {
|
|
|
411
435
|
function readValues(group, index, bands) {
|
|
412
436
|
let path = `groups[${index}].values`;
|
|
413
437
|
if (!Array.isArray(group.values))
|
|
414
|
-
throw new NormalizeError("empty-data", path, `group '${group.id}' has no values array
|
|
438
|
+
throw new NormalizeError("empty-data", path, `group '${group.id}' has no values array`, void 0, void 0, ["data", "groups", index, "values"]);
|
|
415
439
|
let recordAt = group.values.map((value, i) => isBound(value) ? i : -1).filter((i) => i >= 0), bound = recordAt.length > 0;
|
|
416
440
|
if (bound && recordAt.length !== group.values.length) {
|
|
417
441
|
let bare = group.values.findIndex((value) => !isBound(value));
|
|
@@ -419,7 +443,9 @@ function readValues(group, index, bands) {
|
|
|
419
443
|
"pyramid-values-arity",
|
|
420
444
|
`${path}[${bare}]`,
|
|
421
445
|
`group '${group.id}' mixes bare values with { bandId, value } records (${recordAt.length} of ${group.values.length} are records, and index ${bare} is not); one form per group`,
|
|
422
|
-
"use one form throughout: either a positional array or { bandId, value } for every band"
|
|
446
|
+
"use one form throughout: either a positional array or { bandId, value } for every band",
|
|
447
|
+
void 0,
|
|
448
|
+
["data", "groups", index, "values", bare]
|
|
423
449
|
);
|
|
424
450
|
}
|
|
425
451
|
let out = [];
|
|
@@ -429,10 +455,12 @@ function readValues(group, index, bands) {
|
|
|
429
455
|
"pyramid-values-arity",
|
|
430
456
|
path,
|
|
431
457
|
`group '${group.id}' supplies ${group.values.length} values for ${bands.length} bands; a positional array is matched band by band, so the counts must agree`,
|
|
432
|
-
`supply ${bands.length} values, or use the { bandId, value } form
|
|
458
|
+
`supply ${bands.length} values, or use the { bandId, value } form`,
|
|
459
|
+
void 0,
|
|
460
|
+
["data", "groups", index, "values"]
|
|
433
461
|
);
|
|
434
462
|
return bands.forEach((band, i) => {
|
|
435
|
-
out.push(check(group.values[i], `${path}[${i}]`, group.id, band.id));
|
|
463
|
+
out.push(check(group.values[i], `${path}[${i}]`, group.id, band.id, index, i, !1));
|
|
436
464
|
}), out;
|
|
437
465
|
}
|
|
438
466
|
let records = group.values, byBand = /* @__PURE__ */ new Map();
|
|
@@ -441,7 +469,10 @@ function readValues(group, index, bands) {
|
|
|
441
469
|
throw new NormalizeError(
|
|
442
470
|
"pyramid-values-arity",
|
|
443
471
|
`${path}[${i}]`,
|
|
444
|
-
`group '${group.id}' supplies band '${record.bandId}' twice
|
|
472
|
+
`group '${group.id}' supplies band '${record.bandId}' twice`,
|
|
473
|
+
void 0,
|
|
474
|
+
void 0,
|
|
475
|
+
["data", "groups", index, "values", i]
|
|
445
476
|
);
|
|
446
477
|
byBand.set(record.bandId, { value: record.value, at: i });
|
|
447
478
|
});
|
|
@@ -451,45 +482,58 @@ function readValues(group, index, bands) {
|
|
|
451
482
|
"pyramid-values-arity",
|
|
452
483
|
path,
|
|
453
484
|
`group '${group.id}' supplies ${records.length} values for ${bands.length} bands` + (missing.length > 0 ? `; no value for ${missing.map((id) => `'${id}'`).join(", ")}` : "") + (unknown.length > 0 ? `; unknown band ${unknown.map((id) => `'${id}'`).join(", ")}` : ""),
|
|
454
|
-
"every band needs exactly one value per group"
|
|
485
|
+
"every band needs exactly one value per group",
|
|
486
|
+
void 0,
|
|
487
|
+
["data", "groups", index, "values"]
|
|
455
488
|
);
|
|
456
489
|
for (let band of bands) {
|
|
457
490
|
let hit = byBand.get(band.id);
|
|
458
|
-
out.push(check(hit.value, `${path}[${hit.at}].value`, group.id, band.id));
|
|
491
|
+
out.push(check(hit.value, `${path}[${hit.at}].value`, group.id, band.id, index, hit.at, !0));
|
|
459
492
|
}
|
|
460
493
|
return out;
|
|
461
494
|
}
|
|
462
495
|
function isBound(v) {
|
|
463
496
|
return typeof v == "object" && v !== null && "bandId" in v;
|
|
464
497
|
}
|
|
465
|
-
function
|
|
498
|
+
function cellAt(group, entry, record) {
|
|
499
|
+
return ["data", "groups", group, "values", entry, ...record ? ["value"] : []];
|
|
500
|
+
}
|
|
501
|
+
function check(raw, path, groupId, bandId, group, entry, record) {
|
|
466
502
|
if (isPctCell(raw))
|
|
467
503
|
throw new NormalizeError(
|
|
468
504
|
"pyramid-percent-input",
|
|
469
505
|
path,
|
|
470
506
|
`group '${groupId}' supplies a share for band '${bandId}'; a pyramid derives every share from the counts, and an authored share would be a second source of truth`,
|
|
471
|
-
"supply counts or amounts and set basis: 'shareOfTotal'"
|
|
507
|
+
"supply counts or amounts and set basis: 'shareOfTotal'",
|
|
508
|
+
void 0,
|
|
509
|
+
cellAt(group, entry, record)
|
|
472
510
|
);
|
|
473
511
|
if (raw == null)
|
|
474
512
|
throw new NormalizeError(
|
|
475
513
|
"pyramid-missing-value",
|
|
476
514
|
path,
|
|
477
515
|
`group '${groupId}' has no value for band '${bandId}'; a band with no number renders as zero and reads as "nobody lives here"`,
|
|
478
|
-
"state 0 if the band was measured and is empty, or drop the band from both groups"
|
|
516
|
+
"state 0 if the band was measured and is empty, or drop the band from both groups",
|
|
517
|
+
void 0,
|
|
518
|
+
cellAt(group, entry, record)
|
|
479
519
|
);
|
|
480
520
|
if (typeof raw != "number" || Number.isNaN(raw) || !Number.isFinite(raw))
|
|
481
521
|
throw new NormalizeError(
|
|
482
522
|
"pyramid-nonfinite-value",
|
|
483
523
|
path,
|
|
484
524
|
`group '${groupId}' has a non-finite value for band '${bandId}' (${String(raw)})`,
|
|
485
|
-
"supply a finite number"
|
|
525
|
+
"supply a finite number",
|
|
526
|
+
void 0,
|
|
527
|
+
cellAt(group, entry, record)
|
|
486
528
|
);
|
|
487
529
|
if (raw < 0)
|
|
488
530
|
throw new NormalizeError(
|
|
489
531
|
"pyramid-negative-value",
|
|
490
532
|
path,
|
|
491
533
|
`group '${groupId}' is negative for band '${bandId}' (${raw}); a population cannot be negative, and a mirrored pane would draw |value| and hide the sign`,
|
|
492
|
-
"use a butterfly or variance chart for signed data"
|
|
534
|
+
"use a butterfly or variance chart for signed data",
|
|
535
|
+
void 0,
|
|
536
|
+
cellAt(group, entry, record)
|
|
493
537
|
);
|
|
494
538
|
return raw;
|
|
495
539
|
}
|
|
@@ -527,7 +571,7 @@ var pyramidCore = {
|
|
|
527
571
|
aliases: ["age-pyramid", "population-pyramid"],
|
|
528
572
|
layout: layoutPyramid,
|
|
529
573
|
defaults: { basis: "count" },
|
|
530
|
-
annotationKinds: ["cagr", "diff", "delta", "note", "callout"]
|
|
574
|
+
annotationKinds: ["cagr", "diff", "delta", "note", "callout", "text", "line", "arrow", "box"]
|
|
531
575
|
};
|
|
532
576
|
|
|
533
577
|
export {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chartString
|
|
3
|
+
} from "./chunk-GOFS336W.js";
|
|
1
4
|
import {
|
|
2
5
|
printedShare
|
|
3
6
|
} from "./chunk-MSYTF3DZ.js";
|
|
4
7
|
import {
|
|
5
8
|
strokeToken
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TX5FSNAU.js";
|
|
7
10
|
|
|
8
11
|
// src/core/dataGaps.ts
|
|
9
12
|
var quoted = (names) => names.map((name) => `'${name}'`).join(", ");
|
|
@@ -49,7 +52,7 @@ function gapMarkerNode(theme, input) {
|
|
|
49
52
|
strokeWidth: strokeToken(theme, "mark"),
|
|
50
53
|
owner: input.owner,
|
|
51
54
|
part: "gapMarker",
|
|
52
|
-
display: { value:
|
|
55
|
+
display: { value: chartString({ locale: { language: input.language } }, "noValue"), state: "missing" }
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOverridesOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3VICNTN.js";
|
|
4
4
|
import {
|
|
5
5
|
addDuplicateIdIssues,
|
|
6
6
|
baseOptionsSchema,
|
|
7
7
|
idSchema,
|
|
8
8
|
primaryAxisTitleSchema,
|
|
9
9
|
refusedBaseOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZIVCPXXL.js";
|
|
11
11
|
|
|
12
12
|
// src/core/charts/box/schema.ts
|
|
13
13
|
import * as z from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
columnOverridesOption
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H3VICNTN.js";
|
|
4
4
|
import {
|
|
5
5
|
DIVERGING_COLUMN_OVERRIDES_REFUSAL
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZG4BMJRL.js";
|
|
7
7
|
import {
|
|
8
8
|
TYPE_REFUSED_REASONS,
|
|
9
9
|
addCategorySeriesIdIssues,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
refusedBaseOptions,
|
|
18
18
|
scenarioField,
|
|
19
19
|
valueKindSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZIVCPXXL.js";
|
|
21
21
|
|
|
22
22
|
// src/core/charts/slope/schema.ts
|
|
23
23
|
import * as z from "zod";
|