watch-tail 0.4.0 → 0.5.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/README.md +130 -0
- package/build/client/_app/immutable/assets/0.BQQ1YLPc.css +2 -0
- package/build/client/_app/immutable/assets/0.BQQ1YLPc.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BQQ1YLPc.css.gz +0 -0
- package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css +1 -0
- package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.br +0 -0
- package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.gz +0 -0
- package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css +1 -0
- package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.br +0 -0
- package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.gz +0 -0
- package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css +1 -0
- package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.br +1 -0
- package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.gz +0 -0
- package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css +1 -0
- package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.br +0 -0
- package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.gz +0 -0
- package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css +1 -0
- package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.br +0 -0
- package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.gz +0 -0
- package/build/client/_app/immutable/assets/Labels.sEaJtb97.css +1 -0
- package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.br +0 -0
- package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.gz +0 -0
- package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css +1 -0
- package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.br +0 -0
- package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.gz +0 -0
- package/build/client/_app/immutable/assets/Path.B0wDzTrn.css +1 -0
- package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.br +0 -0
- package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.gz +0 -0
- package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css +1 -0
- package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.br +0 -0
- package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.gz +0 -0
- package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css +1 -0
- package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.br +0 -0
- package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/AUlz4-kZ.js +1 -0
- package/build/client/_app/immutable/chunks/AUlz4-kZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/AUlz4-kZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1t8v2wP.js +1 -0
- package/build/client/_app/immutable/chunks/B1t8v2wP.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1t8v2wP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B6nyufJR.js +1 -0
- package/build/client/_app/immutable/chunks/B6nyufJR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B6nyufJR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR2LaRms.js +1 -0
- package/build/client/_app/immutable/chunks/BR2LaRms.js.br +1 -0
- package/build/client/_app/immutable/chunks/BR2LaRms.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR7qH0F5.js +1 -0
- package/build/client/_app/immutable/chunks/BR7qH0F5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BR7qH0F5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkXArOra.js +1 -0
- package/build/client/_app/immutable/chunks/BkXArOra.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkXArOra.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bl052uUt.js +1 -0
- package/build/client/_app/immutable/chunks/Bl052uUt.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bl052uUt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bmk_Voz6.js +1 -0
- package/build/client/_app/immutable/chunks/Bmk_Voz6.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bmk_Voz6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bp63j1zN.js +1 -0
- package/build/client/_app/immutable/chunks/Bp63j1zN.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bp63j1zN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwntJtbK.js +1 -0
- package/build/client/_app/immutable/chunks/BwntJtbK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwntJtbK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C20WvNRq.js +1 -0
- package/build/client/_app/immutable/chunks/C20WvNRq.js.br +0 -0
- package/build/client/_app/immutable/chunks/C20WvNRq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C58PZtCD.js +4 -0
- package/build/client/_app/immutable/chunks/C58PZtCD.js.br +0 -0
- package/build/client/_app/immutable/chunks/C58PZtCD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCch3uox.js +1 -0
- package/build/client/_app/immutable/chunks/CCch3uox.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCch3uox.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDbeYGlD.js +1 -0
- package/build/client/_app/immutable/chunks/CDbeYGlD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDbeYGlD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJFHBop_.js +1 -0
- package/build/client/_app/immutable/chunks/CJFHBop_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJFHBop_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYw9ugj1.js +1 -0
- package/build/client/_app/immutable/chunks/CYw9ugj1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYw9ugj1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjJd0uRB.js +1 -0
- package/build/client/_app/immutable/chunks/CjJd0uRB.js.br +1 -0
- package/build/client/_app/immutable/chunks/CjJd0uRB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoEFQJcr.js +1 -0
- package/build/client/_app/immutable/chunks/CoEFQJcr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoEFQJcr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-JtVVAo.js +1 -0
- package/build/client/_app/immutable/chunks/D-JtVVAo.js.br +0 -0
- package/build/client/_app/immutable/chunks/D-JtVVAo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJDlf6lC.js +1 -0
- package/build/client/_app/immutable/chunks/DJDlf6lC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJDlf6lC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJLYkl5w.js +1 -0
- package/build/client/_app/immutable/chunks/DJLYkl5w.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJLYkl5w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPKdNiYi.js +1 -0
- package/build/client/_app/immutable/chunks/DPKdNiYi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPKdNiYi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQi7bc16.js +1 -0
- package/build/client/_app/immutable/chunks/DQi7bc16.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQi7bc16.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DVTgeA2y.js +2 -0
- package/build/client/_app/immutable/chunks/DVTgeA2y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DVTgeA2y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db0q5_zr.js +1 -0
- package/build/client/_app/immutable/chunks/Db0q5_zr.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db0q5_zr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dfvzj6n2.js +1 -0
- package/build/client/_app/immutable/chunks/Dfvzj6n2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dfvzj6n2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Di37PX72.js +1 -0
- package/build/client/_app/immutable/chunks/Di37PX72.js.br +0 -0
- package/build/client/_app/immutable/chunks/Di37PX72.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bw_9uNRP.js → DkyYNO4U.js} +1 -1
- package/build/client/_app/immutable/chunks/DkyYNO4U.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkyYNO4U.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmRhEzIa.js +1 -0
- package/build/client/_app/immutable/chunks/DmRhEzIa.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmRhEzIa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dp8S9ymS.js +1 -0
- package/build/client/_app/immutable/chunks/Dp8S9ymS.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dp8S9ymS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DslUcEd-.js +1 -0
- package/build/client/_app/immutable/chunks/DslUcEd-.js.br +0 -0
- package/build/client/_app/immutable/chunks/DslUcEd-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dt_Zd6U2.js +1 -0
- package/build/client/_app/immutable/chunks/Dt_Zd6U2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dt_Zd6U2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwezeuNE.js +5 -0
- package/build/client/_app/immutable/chunks/DwezeuNE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwezeuNE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HclGiUj8.js +1 -0
- package/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
- package/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PYzEcuyd.js +10 -0
- package/build/client/_app/immutable/chunks/PYzEcuyd.js.br +0 -0
- package/build/client/_app/immutable/chunks/PYzEcuyd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RobXhXPM.js +1 -0
- package/build/client/_app/immutable/chunks/RobXhXPM.js.br +1 -0
- package/build/client/_app/immutable/chunks/RobXhXPM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UySfXNq7.js +1 -0
- package/build/client/_app/immutable/chunks/UySfXNq7.js.br +0 -0
- package/build/client/_app/immutable/chunks/UySfXNq7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y5urAfNy.js +1 -0
- package/build/client/_app/immutable/chunks/Y5urAfNy.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y5urAfNy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_Zq76xnA.js +15 -0
- package/build/client/_app/immutable/chunks/_Zq76xnA.js.br +0 -0
- package/build/client/_app/immutable/chunks/_Zq76xnA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dbhDrJmm.js +1 -0
- package/build/client/_app/immutable/chunks/dbhDrJmm.js.br +0 -0
- package/build/client/_app/immutable/chunks/dbhDrJmm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pqiPC7Y8.js +3 -0
- package/build/client/_app/immutable/chunks/pqiPC7Y8.js.br +0 -0
- package/build/client/_app/immutable/chunks/pqiPC7Y8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yCfI4PCa.js +1 -0
- package/build/client/_app/immutable/chunks/yCfI4PCa.js.br +0 -0
- package/build/client/_app/immutable/chunks/yCfI4PCa.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.vMZB8_Zr.js +2 -0
- package/build/client/_app/immutable/entry/app.vMZB8_Zr.js.br +0 -0
- package/build/client/_app/immutable/entry/app.vMZB8_Zr.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js +1 -0
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js.br +0 -0
- package/build/client/_app/immutable/entry/start.pM5lNk_5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CZO0sIxX.js +1 -0
- package/build/client/_app/immutable/nodes/0.CZO0sIxX.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CZO0sIxX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.zcN3R_zF.js +1 -0
- package/build/client/_app/immutable/nodes/1.zcN3R_zF.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.zcN3R_zF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DxevVqut.js +2 -0
- package/build/client/_app/immutable/nodes/2.DxevVqut.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DxevVqut.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +9 -7
- package/build/handler.js.map +1 -1
- package/build/index.js +9 -7
- package/build/index.js.map +1 -1
- package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js +701 -0
- package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js.map +1 -0
- package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js +31 -0
- package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js.map +1 -0
- package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js +448 -0
- package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js.map +1 -0
- package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js +983 -0
- package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js.map +1 -0
- package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js +355 -0
- package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js.map +1 -0
- package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js +170 -0
- package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js.map +1 -0
- package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js +352 -0
- package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js.map +1 -0
- package/build/server/chunks/chunks/EventScatter.js-DqCMPeHG.js +7304 -0
- package/build/server/chunks/chunks/EventScatter.js-DqCMPeHG.js.map +1 -0
- package/build/server/chunks/chunks/Labels.js-DpagpV6d.js +497 -0
- package/build/server/chunks/chunks/Labels.js-DpagpV6d.js.map +1 -0
- package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js +343 -0
- package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js.map +1 -0
- package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js +423 -0
- package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js.map +1 -0
- package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js +756 -0
- package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js.map +1 -0
- package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js +1259 -0
- package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js.map +1 -0
- package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js +228 -0
- package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js.map +1 -0
- package/build/server/chunks/chunks/Points.js-e6g0Re6H.js +14 -0
- package/build/server/chunks/chunks/Points.js-e6g0Re6H.js.map +1 -0
- package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js +25 -0
- package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js.map +1 -0
- package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js +547 -0
- package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js.map +1 -0
- package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js +516 -0
- package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js.map +1 -0
- package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js +847 -0
- package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js.map +1 -0
- package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js +314 -0
- package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js.map +1 -0
- package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js +2052 -0
- package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js.map +1 -0
- package/build/server/chunks/chunks/archive.js-C6rz09rJ.js +584 -0
- package/build/server/chunks/chunks/archive.js-C6rz09rJ.js.map +1 -0
- package/build/server/chunks/chunks/array.js-CBp0H4t3.js +8 -0
- package/build/server/chunks/chunks/array.js-CBp0H4t3.js.map +1 -0
- package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js +25 -0
- package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js.map +1 -0
- package/build/server/chunks/chunks/{env2.js-DXveJt1Y.js → aws.js-DkPqAybc.js} +2 -59
- package/build/server/chunks/chunks/aws.js-DkPqAybc.js.map +1 -0
- package/build/server/chunks/chunks/band.js-C7izXphE.js +155 -0
- package/build/server/chunks/chunks/band.js-C7izXphE.js.map +1 -0
- package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js +1356 -0
- package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js.map +1 -0
- package/build/server/chunks/chunks/common.js-BWQB8Die.js +5760 -0
- package/build/server/chunks/chunks/common.js-BWQB8Die.js.map +1 -0
- package/build/server/chunks/chunks/env2.js-CcIskxOZ.js +60 -0
- package/build/server/chunks/chunks/env2.js-CcIskxOZ.js.map +1 -0
- package/build/server/chunks/chunks/{exports.js-CvFPPbaH.js → exports.js-ClPPfcHj.js} +6 -1
- package/build/server/chunks/chunks/exports.js-ClPPfcHj.js.map +1 -0
- package/build/server/chunks/chunks/group.js-DBFzWAox.js +30 -0
- package/build/server/chunks/chunks/group.js-DBFzWAox.js.map +1 -0
- package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js +248 -0
- package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js.map +1 -0
- package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js +2 -0
- package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js.map +1 -0
- package/build/server/chunks/chunks/{internal2.js-DZ8ZzzjN.js → internal.js-DZ8ZzzjN.js} +1 -1
- package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js.map +1 -0
- package/build/server/chunks/chunks/internal2.js-DDcktblR.js +188 -0
- package/build/server/chunks/chunks/internal2.js-DDcktblR.js.map +1 -0
- package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js +695 -0
- package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js.map +1 -0
- package/build/server/chunks/chunks/{internal.js-Cc3oBhL-.js → legacy-client.js-DJmDw3Zx.js} +13 -439
- package/build/server/chunks/chunks/legacy-client.js-DJmDw3Zx.js.map +1 -0
- package/build/server/chunks/chunks/level-filter.js-H_AdNbCw.js +297 -0
- package/build/server/chunks/chunks/level-filter.js-H_AdNbCw.js.map +1 -0
- package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js +126 -0
- package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js.map +1 -0
- package/build/server/chunks/chunks/linear.js-CTOKrHn9.js +1046 -0
- package/build/server/chunks/chunks/linear.js-CTOKrHn9.js.map +1 -0
- package/build/server/chunks/chunks/log-buffer.js-CpI7gyom.js +471 -0
- package/build/server/chunks/chunks/log-buffer.js-CpI7gyom.js.map +1 -0
- package/build/server/chunks/chunks/math.js-BqujbaBs.js +50 -0
- package/build/server/chunks/chunks/math.js-BqujbaBs.js.map +1 -0
- package/build/server/chunks/chunks/max.js-CuS0BpRI.js +11 -0
- package/build/server/chunks/chunks/max.js-CuS0BpRI.js.map +1 -0
- package/build/server/chunks/chunks/min.js-DZWt5tPl.js +11 -0
- package/build/server/chunks/chunks/min.js-DZWt5tPl.js.map +1 -0
- package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js +677 -0
- package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js.map +1 -0
- package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js +33 -0
- package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js.map +1 -0
- package/build/server/chunks/chunks/path.js-BizMrlzb.js +488 -0
- package/build/server/chunks/chunks/path.js-BizMrlzb.js.map +1 -0
- package/build/server/chunks/chunks/path2.js-pquT2Kg6.js +27 -0
- package/build/server/chunks/chunks/path2.js-pquT2Kg6.js.map +1 -0
- package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js +7 -0
- package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js.map +1 -0
- package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js +187 -0
- package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js.map +1 -0
- package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js +276 -0
- package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js.map +1 -0
- package/build/server/chunks/chunks/series-buckets.js-CX_rWCeH.js +123 -0
- package/build/server/chunks/chunks/series-buckets.js-CX_rWCeH.js.map +1 -0
- package/build/server/chunks/chunks/{server.js-ByNB8uti.js → server.js-CAEBuMIH.js} +167 -2
- package/build/server/chunks/chunks/server.js-CAEBuMIH.js.map +1 -0
- package/build/server/chunks/chunks/source.js-DZEVvuho.js +21 -0
- package/build/server/chunks/chunks/source.js-DZEVvuho.js.map +1 -0
- package/build/server/chunks/chunks/{state.js-9DxsWxU-.js → state.js-Dves8H8h.js} +5 -4
- package/build/server/chunks/chunks/state.js-Dves8H8h.js.map +1 -0
- package/build/server/chunks/chunks/types.js-x3GyGPOz.js +11 -0
- package/build/server/chunks/chunks/types.js-x3GyGPOz.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-sNd3lS0y.js +39 -0
- package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-sNd3lS0y.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BOjix7GN.js → _server.ts.js-VctnBhIJ.js} +5 -4
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-VctnBhIJ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/identity/{_server.ts.js-g13uvmrX.js → _server.ts.js-Dt540Sio.js} +4 -3
- package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-Dt540Sio.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-CmHRxdZK.js → _server.ts.js-BGyWbj78.js} +57 -8
- package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-BGyWbj78.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/regions/{_server.ts.js-BgUwioxp.js → _server.ts.js-CBqfN6Pg.js} +5 -4
- package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-CBqfN6Pg.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DjGMqXKo.js +194 -0
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DjGMqXKo.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-CIYo4C-0.js → _server.ts.js-C-XDemlx.js} +324 -223
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-C-XDemlx.js.map +1 -0
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js → error.svelte.js-DdUYlUJV.js} +7 -5
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js.map → error.svelte.js-DdUYlUJV.js.map} +1 -1
- package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js → _layout.svelte.js-CBQpEToy.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js.map → _layout.svelte.js-CBQpEToy.js.map} +1 -1
- package/build/server/chunks/entries/pages/{_page.svelte.js-CpwYbxbM.js → _page.svelte.js-B-kVwiNh.js} +538 -351
- package/build/server/chunks/entries/pages/_page.svelte.js-B-kVwiNh.js.map +1 -0
- package/build/server/chunks/{handler-DS32NMsJ.js → handler-BHf-eLnl.js} +3 -3
- package/build/server/chunks/{handler-DS32NMsJ.js.map → handler-BHf-eLnl.js.map} +1 -1
- package/build/server/chunks/{index.js-HHu-yOEK.js → index.js-D6Auup1Z.js} +6 -5
- package/build/server/chunks/index.js-D6Auup1Z.js.map +1 -0
- package/build/server/chunks/{manifest.js-BUrA7Zyr.js → manifest.js-B3Q7n9I6.js} +24 -10
- package/build/server/chunks/manifest.js-B3Q7n9I6.js.map +1 -0
- package/build/server/chunks/nodes/0.js-BMP_Yttt.js +9 -0
- package/build/server/chunks/nodes/{0.js-gSRmrAt_.js.map → 0.js-BMP_Yttt.js.map} +1 -1
- package/build/server/chunks/nodes/1.js-2HQHUOse.js +9 -0
- package/build/server/chunks/nodes/{1.js-D68K7Ad_.js.map → 1.js-2HQHUOse.js.map} +1 -1
- package/build/server/chunks/nodes/2.js-7RtHpiHN.js +9 -0
- package/build/server/chunks/nodes/2.js-7RtHpiHN.js.map +1 -0
- package/dist/cli/completions.js +6 -0
- package/dist/cli/index.js +21 -1
- package/dist/cli/options.js +28 -2
- package/dist/cli/preflight.js +30 -0
- package/dist/lib/cli/aws.js +12 -4
- package/dist/lib/log-buffer.js +314 -0
- package/dist/lib/log-format.js +185 -0
- package/dist/lib/types.js +0 -4
- package/package.json +6 -2
- package/build/client/_app/immutable/assets/0.BPmQoXaO.css +0 -2
- package/build/client/_app/immutable/assets/0.BPmQoXaO.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BPmQoXaO.css.gz +0 -0
- package/build/client/_app/immutable/chunks/Bw_9uNRP.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bw_9uNRP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De_x7GQi.js +0 -1
- package/build/client/_app/immutable/chunks/De_x7GQi.js.br +0 -0
- package/build/client/_app/immutable/chunks/De_x7GQi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZAD2y5xJ.js +0 -3
- package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Be166AxG.js +0 -2
- package/build/client/_app/immutable/entry/app.Be166AxG.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Be166AxG.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.clEDpQL9.js +0 -1
- package/build/client/_app/immutable/entry/start.clEDpQL9.js.br +0 -0
- package/build/client/_app/immutable/entry/start.clEDpQL9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js +0 -1
- package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.br +0 -4
- package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.xMNWuLLz.js +0 -1
- package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CaxDXwmh.js +0 -5
- package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.gz +0 -0
- package/build/server/chunks/chunks/env2.js-DXveJt1Y.js.map +0 -1
- package/build/server/chunks/chunks/exports.js-CvFPPbaH.js.map +0 -1
- package/build/server/chunks/chunks/internal.js-Cc3oBhL-.js.map +0 -1
- package/build/server/chunks/chunks/internal2.js-DZ8ZzzjN.js.map +0 -1
- package/build/server/chunks/chunks/server.js-ByNB8uti.js.map +0 -1
- package/build/server/chunks/chunks/state.js-9DxsWxU-.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BOjix7GN.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-g13uvmrX.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-CmHRxdZK.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-BgUwioxp.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-CIYo4C-0.js.map +0 -1
- package/build/server/chunks/entries/pages/_page.svelte.js-CpwYbxbM.js.map +0 -1
- package/build/server/chunks/index.js-HHu-yOEK.js.map +0 -1
- package/build/server/chunks/manifest.js-BUrA7Zyr.js.map +0 -1
- package/build/server/chunks/nodes/0.js-gSRmrAt_.js +0 -9
- package/build/server/chunks/nodes/1.js-D68K7Ad_.js +0 -9
- package/build/server/chunks/nodes/2.js-ChYsaaoC.js +0 -9
- package/build/server/chunks/nodes/2.js-ChYsaaoC.js.map +0 -1
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
import { at as spread_props, am as bind_props, ac as derived, al as stringify } from './server.js-CAEBuMIH.js';
|
|
2
|
+
import { a as getChartContext, b as cls } from './common.js-BWQB8Die.js';
|
|
3
|
+
import { l as linear } from './linear.js-CTOKrHn9.js';
|
|
4
|
+
import { m as max$1 } from './max.js-CuS0BpRI.js';
|
|
5
|
+
import { e as extractLayerProps } from './attributes.js-BVWo7wbg.js';
|
|
6
|
+
import { w as withPath, c as constant_default } from './path2.js-pquT2Kg6.js';
|
|
7
|
+
import { a as Path_svg, b as Path_canvas } from './Path.canvas.js-DNAtnEBt.js';
|
|
8
|
+
import { d as createMotion } from './motion.svelte.js-DCHSFMu-.js';
|
|
9
|
+
import { d as degreesToRadians, r as radiansToDegrees } from './math.js-BqujbaBs.js';
|
|
10
|
+
|
|
11
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js
|
|
12
|
+
var abs = Math.abs;
|
|
13
|
+
var atan2 = Math.atan2;
|
|
14
|
+
var cos = Math.cos;
|
|
15
|
+
var max = Math.max;
|
|
16
|
+
var min = Math.min;
|
|
17
|
+
var sin = Math.sin;
|
|
18
|
+
var sqrt = Math.sqrt;
|
|
19
|
+
var pi = Math.PI;
|
|
20
|
+
var halfPi = pi / 2;
|
|
21
|
+
var tau = 2 * pi;
|
|
22
|
+
function acos(x) {
|
|
23
|
+
return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
|
|
24
|
+
}
|
|
25
|
+
function asin(x) {
|
|
26
|
+
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js
|
|
30
|
+
function arcInnerRadius(d) {
|
|
31
|
+
return d.innerRadius;
|
|
32
|
+
}
|
|
33
|
+
function arcOuterRadius(d) {
|
|
34
|
+
return d.outerRadius;
|
|
35
|
+
}
|
|
36
|
+
function arcStartAngle(d) {
|
|
37
|
+
return d.startAngle;
|
|
38
|
+
}
|
|
39
|
+
function arcEndAngle(d) {
|
|
40
|
+
return d.endAngle;
|
|
41
|
+
}
|
|
42
|
+
function arcPadAngle(d) {
|
|
43
|
+
return d && d.padAngle;
|
|
44
|
+
}
|
|
45
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
46
|
+
var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = y32 * x10 - x32 * y10;
|
|
47
|
+
if (t * t < 1e-12) return;
|
|
48
|
+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
|
49
|
+
return [x0 + t * x10, y0 + t * y10];
|
|
50
|
+
}
|
|
51
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
52
|
+
var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;
|
|
53
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
|
54
|
+
return {
|
|
55
|
+
cx: cx0,
|
|
56
|
+
cy: cy0,
|
|
57
|
+
x01: -ox,
|
|
58
|
+
y01: -oy,
|
|
59
|
+
x11: cx0 * (r1 / r - 1),
|
|
60
|
+
y11: cy0 * (r1 / r - 1)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function arc_default() {
|
|
64
|
+
var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant_default(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null, path = withPath(arc);
|
|
65
|
+
function arc() {
|
|
66
|
+
var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - halfPi, a1 = endAngle.apply(this, arguments) - halfPi, da = abs(a1 - a0), cw = a1 > a0;
|
|
67
|
+
if (!context) context = buffer = path();
|
|
68
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
69
|
+
if (!(r1 > 1e-12)) context.moveTo(0, 0);
|
|
70
|
+
else if (da > tau - 1e-12) {
|
|
71
|
+
context.moveTo(r1 * cos(a0), r1 * sin(a0));
|
|
72
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
|
73
|
+
if (r0 > 1e-12) {
|
|
74
|
+
context.moveTo(r0 * cos(a1), r0 * sin(a1));
|
|
75
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = ap > 1e-12 && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)), rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1;
|
|
79
|
+
if (rp > 1e-12) {
|
|
80
|
+
var p0 = asin(rp / r0 * sin(ap)), p1 = asin(rp / r1 * sin(ap));
|
|
81
|
+
if ((da0 -= p0 * 2) > 1e-12) p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;
|
|
82
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
83
|
+
if ((da1 -= p1 * 2) > 1e-12) p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;
|
|
84
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
85
|
+
}
|
|
86
|
+
var x01 = r1 * cos(a01), y01 = r1 * sin(a01), x10 = r0 * cos(a10), y10 = r0 * sin(a10);
|
|
87
|
+
if (rc > 1e-12) {
|
|
88
|
+
var x11 = r1 * cos(a11), y11 = r1 * sin(a11), x00 = r0 * cos(a00), y00 = r0 * sin(a00), oc;
|
|
89
|
+
if (da < pi) {
|
|
90
|
+
if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {
|
|
91
|
+
var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2), lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
92
|
+
rc0 = min(rc, (r0 - lc) / (kc - 1));
|
|
93
|
+
rc1 = min(rc, (r1 - lc) / (kc + 1));
|
|
94
|
+
} else rc0 = rc1 = 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (!(da1 > 1e-12)) context.moveTo(x01, y01);
|
|
98
|
+
else if (rc1 > 1e-12) {
|
|
99
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
100
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
101
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
102
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
|
103
|
+
else {
|
|
104
|
+
context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
|
105
|
+
context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
|
106
|
+
context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
|
107
|
+
}
|
|
108
|
+
} else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
|
109
|
+
if (!(r0 > 1e-12) || !(da0 > 1e-12)) context.lineTo(x10, y10);
|
|
110
|
+
else if (rc0 > 1e-12) {
|
|
111
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
112
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
113
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
114
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);
|
|
115
|
+
else {
|
|
116
|
+
context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);
|
|
117
|
+
context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
|
118
|
+
context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);
|
|
119
|
+
}
|
|
120
|
+
} else context.arc(0, 0, r0, a10, a00, cw);
|
|
121
|
+
}
|
|
122
|
+
context.closePath();
|
|
123
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
124
|
+
}
|
|
125
|
+
arc.centroid = function() {
|
|
126
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
|
|
127
|
+
return [cos(a) * r, sin(a) * r];
|
|
128
|
+
};
|
|
129
|
+
arc.innerRadius = function(_) {
|
|
130
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant_default(+_), arc) : innerRadius;
|
|
131
|
+
};
|
|
132
|
+
arc.outerRadius = function(_) {
|
|
133
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant_default(+_), arc) : outerRadius;
|
|
134
|
+
};
|
|
135
|
+
arc.cornerRadius = function(_) {
|
|
136
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant_default(+_), arc) : cornerRadius;
|
|
137
|
+
};
|
|
138
|
+
arc.padRadius = function(_) {
|
|
139
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), arc) : padRadius;
|
|
140
|
+
};
|
|
141
|
+
arc.startAngle = function(_) {
|
|
142
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant_default(+_), arc) : startAngle;
|
|
143
|
+
};
|
|
144
|
+
arc.endAngle = function(_) {
|
|
145
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant_default(+_), arc) : endAngle;
|
|
146
|
+
};
|
|
147
|
+
arc.padAngle = function(_) {
|
|
148
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant_default(+_), arc) : padAngle;
|
|
149
|
+
};
|
|
150
|
+
arc.context = function(_) {
|
|
151
|
+
return arguments.length ? (context = _ == null ? null : _, arc) : context;
|
|
152
|
+
};
|
|
153
|
+
return arc;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/utils/arcText.svelte.js
|
|
157
|
+
function extractOutsideArc(arcPath) {
|
|
158
|
+
const matches = arcPath.match(/(^.+?)(L|Z)/);
|
|
159
|
+
if (!matches || !matches[1]) return arcPath;
|
|
160
|
+
return matches[1];
|
|
161
|
+
}
|
|
162
|
+
function normalizeAngle(angle) {
|
|
163
|
+
return (angle % 360 + 360) % 360;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Calculates and generates a path in the middle/medial line of an arc.
|
|
167
|
+
*/
|
|
168
|
+
function getArcPathMiddle(props) {
|
|
169
|
+
const centerRadius = derived(() => (props.innerRadius() + props.outerRadius()) / 2);
|
|
170
|
+
const cornerAngleOffset = derived(() => {
|
|
171
|
+
if (props.cornerRadius() <= 0 || centerRadius() <= 0) return 0;
|
|
172
|
+
return Math.min(props.cornerRadius(), centerRadius()) * .5 / centerRadius();
|
|
173
|
+
});
|
|
174
|
+
const effectiveStartAngle = derived(() => {
|
|
175
|
+
if (props.invertCorner()) return props.startAngle() - cornerAngleOffset();
|
|
176
|
+
return props.startAngle() + cornerAngleOffset();
|
|
177
|
+
});
|
|
178
|
+
const effectiveEndAngle = derived(() => {
|
|
179
|
+
if (props.invertCorner()) return props.endAngle() + cornerAngleOffset();
|
|
180
|
+
return props.endAngle() - cornerAngleOffset();
|
|
181
|
+
});
|
|
182
|
+
const path = derived(() => extractOutsideArc(arc_default().outerRadius(centerRadius()).innerRadius(centerRadius() - .5).startAngle(effectiveStartAngle()).endAngle(effectiveEndAngle())() ?? ""));
|
|
183
|
+
return { get current() {
|
|
184
|
+
return path();
|
|
185
|
+
} };
|
|
186
|
+
}
|
|
187
|
+
function getArcPathInner(props) {
|
|
188
|
+
const cornerAngleOffset = derived(() => {
|
|
189
|
+
if (props.cornerRadius() <= 0 || props.innerRadius() <= 0) return 0;
|
|
190
|
+
if (props.cornerRadius() >= props.innerRadius()) return Math.PI / 4;
|
|
191
|
+
return props.cornerRadius() * .5 / props.innerRadius();
|
|
192
|
+
});
|
|
193
|
+
const effectiveStartAngle = derived(() => {
|
|
194
|
+
if (props.invertCorner()) return props.startAngle() - cornerAngleOffset();
|
|
195
|
+
return props.startAngle() + cornerAngleOffset();
|
|
196
|
+
});
|
|
197
|
+
const effectiveEndAngle = derived(() => {
|
|
198
|
+
if (props.invertCorner()) return props.endAngle() + cornerAngleOffset();
|
|
199
|
+
return props.endAngle() - cornerAngleOffset();
|
|
200
|
+
});
|
|
201
|
+
const path = derived(() => extractOutsideArc(arc_default().innerRadius(props.innerRadius()).outerRadius(props.innerRadius() + .5).startAngle(effectiveStartAngle()).endAngle(effectiveEndAngle())() ?? ""));
|
|
202
|
+
return { get current() {
|
|
203
|
+
return path();
|
|
204
|
+
} };
|
|
205
|
+
}
|
|
206
|
+
function getArcPathOuter(props) {
|
|
207
|
+
const cornerAngleOffset = derived(() => {
|
|
208
|
+
if (props.cornerRadius() <= 0 || props.outerRadius() <= 0) return 0;
|
|
209
|
+
return props.cornerRadius() * .5 / props.outerRadius();
|
|
210
|
+
});
|
|
211
|
+
const effectiveStartAngle = derived(() => {
|
|
212
|
+
if (props.invertCorner()) return props.startAngle() - cornerAngleOffset();
|
|
213
|
+
return props.startAngle() + cornerAngleOffset();
|
|
214
|
+
});
|
|
215
|
+
const effectiveEndAngle = derived(() => {
|
|
216
|
+
if (props.invertCorner()) return props.endAngle() + cornerAngleOffset();
|
|
217
|
+
return props.endAngle() - cornerAngleOffset();
|
|
218
|
+
});
|
|
219
|
+
const path = derived(() => extractOutsideArc(arc_default().innerRadius(props.outerRadius() - .5).outerRadius(props.outerRadius()).startAngle(effectiveStartAngle()).endAngle(effectiveEndAngle())() ?? ""));
|
|
220
|
+
return { get current() {
|
|
221
|
+
return path();
|
|
222
|
+
} };
|
|
223
|
+
}
|
|
224
|
+
function pointOnCircle(radius, angle) {
|
|
225
|
+
const adjustedAngle = angle - Math.PI / 2;
|
|
226
|
+
return [radius * Math.cos(adjustedAngle), radius * Math.sin(adjustedAngle)];
|
|
227
|
+
}
|
|
228
|
+
function createArcTextProps(props, opts = {}, position) {
|
|
229
|
+
const effectiveStartAngleRadians = derived(() => {
|
|
230
|
+
const start = props.startAngle();
|
|
231
|
+
const end = props.endAngle();
|
|
232
|
+
const offset = opts.startOffset;
|
|
233
|
+
if (offset) try {
|
|
234
|
+
const percentage = parseFloat(offset.slice(0, -1)) / 100;
|
|
235
|
+
if (!isNaN(percentage) && percentage >= 0 && percentage <= 1) return start + (end - start) * percentage;
|
|
236
|
+
else console.warn("Invalid percentage for startOffset:", offset);
|
|
237
|
+
} catch (e) {
|
|
238
|
+
console.warn("Could not parse startOffset percentage:", offset, e);
|
|
239
|
+
}
|
|
240
|
+
return start;
|
|
241
|
+
});
|
|
242
|
+
const effectiveStartDegrees = derived(() => radiansToDegrees(effectiveStartAngleRadians()));
|
|
243
|
+
const normalizedStartDegrees = derived(() => normalizeAngle(effectiveStartDegrees()));
|
|
244
|
+
const startDegrees = derived(() => radiansToDegrees(props.startAngle()));
|
|
245
|
+
const endDegrees = derived(() => radiansToDegrees(props.endAngle()));
|
|
246
|
+
const isClockwise = derived(() => startDegrees() < endDegrees());
|
|
247
|
+
const isTopCw = derived(() => isClockwise() && (normalizedStartDegrees() >= 270 || normalizedStartDegrees() <= 90));
|
|
248
|
+
const isTopCcw = derived(() => !isClockwise() && (normalizedStartDegrees() > 270 || normalizedStartDegrees() <= 90));
|
|
249
|
+
const isBottomCw = derived(() => isClockwise() && normalizedStartDegrees() < 270 && normalizedStartDegrees() >= 90);
|
|
250
|
+
const isBottomCcw = derived(() => !isClockwise() && normalizedStartDegrees() <= 270 && normalizedStartDegrees() > 90);
|
|
251
|
+
const reverseText = derived(() => isTopCcw() || isBottomCw());
|
|
252
|
+
const pathGenProps = {
|
|
253
|
+
...props,
|
|
254
|
+
startAngle: () => reverseText() ? props.endAngle() : props.startAngle(),
|
|
255
|
+
endAngle: () => reverseText() ? props.startAngle() : props.endAngle(),
|
|
256
|
+
invertCorner: () => isBottomCw() || isBottomCcw()
|
|
257
|
+
};
|
|
258
|
+
const innerPath = getArcPathInner(pathGenProps);
|
|
259
|
+
const middlePath = getArcPathMiddle(pathGenProps);
|
|
260
|
+
const outerPath = getArcPathOuter(pathGenProps);
|
|
261
|
+
const innerDominantBaseline = derived(() => {
|
|
262
|
+
if (isBottomCw() || isBottomCcw()) return "auto";
|
|
263
|
+
if (isTopCw() || isTopCcw()) return "hanging";
|
|
264
|
+
return "auto";
|
|
265
|
+
});
|
|
266
|
+
const outerDominantBaseline = derived(() => {
|
|
267
|
+
if (isBottomCw() || isBottomCcw()) return "hanging";
|
|
268
|
+
});
|
|
269
|
+
const sharedProps = derived(() => {
|
|
270
|
+
if (opts.startOffset != null) return {
|
|
271
|
+
startOffset: opts.startOffset,
|
|
272
|
+
textAnchor: "start"
|
|
273
|
+
};
|
|
274
|
+
return {
|
|
275
|
+
startOffset: "50%",
|
|
276
|
+
textAnchor: "middle"
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
const radialPositionProps = derived(() => {
|
|
280
|
+
if (position !== "outer-radial") return {};
|
|
281
|
+
const midAngle = (props.startAngle() + props.endAngle()) / 2;
|
|
282
|
+
const basePadding = opts.radialOffset ?? opts.outerPadding ?? 23;
|
|
283
|
+
const midAngleDegrees = normalizeAngle(radiansToDegrees(midAngle));
|
|
284
|
+
let textAnchor = "middle";
|
|
285
|
+
let effectivePadding = basePadding;
|
|
286
|
+
const isBottomZone = midAngleDegrees > 45 && midAngleDegrees < 135;
|
|
287
|
+
const isTopZone = midAngleDegrees > 225 && midAngleDegrees < 315;
|
|
288
|
+
const isRightZone = midAngleDegrees <= 45 || midAngleDegrees >= 315;
|
|
289
|
+
const isLeftZone = midAngleDegrees >= 135 && midAngleDegrees <= 225;
|
|
290
|
+
const [x, y] = pointOnCircle(props.outerRadius() + effectivePadding, midAngle);
|
|
291
|
+
if (isRightZone) {
|
|
292
|
+
textAnchor = "start";
|
|
293
|
+
if (midAngleDegrees > 350 || midAngleDegrees < 10) textAnchor = "start";
|
|
294
|
+
} else if (isLeftZone) {
|
|
295
|
+
textAnchor = "end";
|
|
296
|
+
if (midAngleDegrees > 170 && midAngleDegrees < 190) textAnchor = "end";
|
|
297
|
+
} else if (isBottomZone) textAnchor = "middle";
|
|
298
|
+
else if (isTopZone) textAnchor = "middle";
|
|
299
|
+
return {
|
|
300
|
+
x,
|
|
301
|
+
y,
|
|
302
|
+
textAnchor,
|
|
303
|
+
dominantBaseline: "middle"
|
|
304
|
+
};
|
|
305
|
+
});
|
|
306
|
+
const current = derived(() => {
|
|
307
|
+
if (position === "inner") return {
|
|
308
|
+
path: innerPath.current,
|
|
309
|
+
...sharedProps(),
|
|
310
|
+
dominantBaseline: innerDominantBaseline()
|
|
311
|
+
};
|
|
312
|
+
else if (position === "outer") return {
|
|
313
|
+
path: outerPath.current,
|
|
314
|
+
...sharedProps(),
|
|
315
|
+
dominantBaseline: outerDominantBaseline()
|
|
316
|
+
};
|
|
317
|
+
else if (position === "middle") return {
|
|
318
|
+
path: middlePath.current,
|
|
319
|
+
...sharedProps(),
|
|
320
|
+
dominantBaseline: "middle"
|
|
321
|
+
};
|
|
322
|
+
else if (position === "centroid") {
|
|
323
|
+
const centroid = props.centroid();
|
|
324
|
+
return {
|
|
325
|
+
x: centroid[0],
|
|
326
|
+
y: centroid[1],
|
|
327
|
+
textAnchor: "middle",
|
|
328
|
+
verticalAnchor: "middle"
|
|
329
|
+
};
|
|
330
|
+
} else return radialPositionProps();
|
|
331
|
+
});
|
|
332
|
+
return { get current() {
|
|
333
|
+
return current();
|
|
334
|
+
} };
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Arc/Arc.shared.svelte.js
|
|
338
|
+
function getOuterRadius(outerRadius, chartRadius) {
|
|
339
|
+
if (!outerRadius) return chartRadius;
|
|
340
|
+
if (outerRadius > 1) return outerRadius;
|
|
341
|
+
if (outerRadius > 0) return chartRadius * outerRadius;
|
|
342
|
+
if (outerRadius < 0) return chartRadius + outerRadius;
|
|
343
|
+
return outerRadius;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Reactive state shared by every per-layer Arc variant. Derives the d3-arc
|
|
347
|
+
* generators (`arc`, `trackArc`), resolved radii/angles, and the centroid
|
|
348
|
+
* used for snippet props.
|
|
349
|
+
*/
|
|
350
|
+
var ArcState = class {
|
|
351
|
+
#getProps = () => ({});
|
|
352
|
+
/**
|
|
353
|
+
* Memoized props — the component's props closure allocates a fresh object
|
|
354
|
+
* (it spreads `rest`), so calling it once per derived meant one allocation
|
|
355
|
+
* per derived per update. Read it once here instead.
|
|
356
|
+
*/
|
|
357
|
+
#props = derived(() => this.#getProps());
|
|
358
|
+
ctx = getChartContext();
|
|
359
|
+
trackRef;
|
|
360
|
+
#motionEndAngle;
|
|
361
|
+
constructor(getProps) {
|
|
362
|
+
this.#getProps = getProps;
|
|
363
|
+
const initial = getProps();
|
|
364
|
+
this.#motionEndAngle = createMotion(initial.initialValue ?? 0, () => this.#props().value ?? 0, initial.motion);
|
|
365
|
+
}
|
|
366
|
+
get motionEndAngleValue() {
|
|
367
|
+
return this.#motionEndAngle.current;
|
|
368
|
+
}
|
|
369
|
+
#range = derived(() => this.#props().range ?? [0, 360]);
|
|
370
|
+
get range() {
|
|
371
|
+
return this.#range();
|
|
372
|
+
}
|
|
373
|
+
set range($$value) {
|
|
374
|
+
return this.#range($$value);
|
|
375
|
+
}
|
|
376
|
+
#domain = derived(() => this.#props().domain ?? [0, 100]);
|
|
377
|
+
get domain() {
|
|
378
|
+
return this.#domain();
|
|
379
|
+
}
|
|
380
|
+
set domain($$value) {
|
|
381
|
+
return this.#domain($$value);
|
|
382
|
+
}
|
|
383
|
+
#endAngle = derived(() => {
|
|
384
|
+
return this.#props().endAngle ?? degreesToRadians(this.ctx.config.xRange ? max$1(this.ctx.config.xRange) : max$1(this.range));
|
|
385
|
+
});
|
|
386
|
+
get endAngle() {
|
|
387
|
+
return this.#endAngle();
|
|
388
|
+
}
|
|
389
|
+
set endAngle($$value) {
|
|
390
|
+
return this.#endAngle($$value);
|
|
391
|
+
}
|
|
392
|
+
#scale = derived(() => linear().domain(this.domain).range(this.range));
|
|
393
|
+
get scale() {
|
|
394
|
+
return this.#scale();
|
|
395
|
+
}
|
|
396
|
+
set scale($$value) {
|
|
397
|
+
return this.#scale($$value);
|
|
398
|
+
}
|
|
399
|
+
#chartRadius = derived(() => (Math.min(this.ctx.width, this.ctx.height) ?? 0) / 2);
|
|
400
|
+
get chartRadius() {
|
|
401
|
+
return this.#chartRadius();
|
|
402
|
+
}
|
|
403
|
+
set chartRadius($$value) {
|
|
404
|
+
return this.#chartRadius($$value);
|
|
405
|
+
}
|
|
406
|
+
#outerRadius = derived(() => getOuterRadius(this.#props().outerRadius, this.chartRadius));
|
|
407
|
+
get outerRadius() {
|
|
408
|
+
return this.#outerRadius();
|
|
409
|
+
}
|
|
410
|
+
set outerRadius($$value) {
|
|
411
|
+
return this.#outerRadius($$value);
|
|
412
|
+
}
|
|
413
|
+
#trackOuterRadius = derived(() => {
|
|
414
|
+
const trackOuterRadiusProp = this.#props().trackOuterRadius;
|
|
415
|
+
return trackOuterRadiusProp ? getOuterRadius(trackOuterRadiusProp, this.chartRadius) : this.outerRadius;
|
|
416
|
+
});
|
|
417
|
+
get trackOuterRadius() {
|
|
418
|
+
return this.#trackOuterRadius();
|
|
419
|
+
}
|
|
420
|
+
set trackOuterRadius($$value) {
|
|
421
|
+
return this.#trackOuterRadius($$value);
|
|
422
|
+
}
|
|
423
|
+
#getInnerRadius(innerRadius, outerRadius) {
|
|
424
|
+
if (innerRadius == null) return Math.min(...this.ctx.yRange);
|
|
425
|
+
if (innerRadius > 1) return innerRadius;
|
|
426
|
+
if (innerRadius > 0) return outerRadius * innerRadius;
|
|
427
|
+
if (innerRadius < 0) return outerRadius + innerRadius;
|
|
428
|
+
return innerRadius;
|
|
429
|
+
}
|
|
430
|
+
#innerRadius = derived(() => this.#getInnerRadius(this.#props().innerRadius, this.outerRadius));
|
|
431
|
+
get innerRadius() {
|
|
432
|
+
return this.#innerRadius();
|
|
433
|
+
}
|
|
434
|
+
set innerRadius($$value) {
|
|
435
|
+
return this.#innerRadius($$value);
|
|
436
|
+
}
|
|
437
|
+
#trackInnerRadius = derived(() => {
|
|
438
|
+
const trackInnerRadiusProp = this.#props().trackInnerRadius;
|
|
439
|
+
return trackInnerRadiusProp ? this.#getInnerRadius(trackInnerRadiusProp, this.trackOuterRadius) : this.innerRadius;
|
|
440
|
+
});
|
|
441
|
+
get trackInnerRadius() {
|
|
442
|
+
return this.#trackInnerRadius();
|
|
443
|
+
}
|
|
444
|
+
set trackInnerRadius($$value) {
|
|
445
|
+
return this.#trackInnerRadius($$value);
|
|
446
|
+
}
|
|
447
|
+
#startAngle = derived(() => this.#props().startAngle ?? degreesToRadians(this.range[0]));
|
|
448
|
+
get startAngle() {
|
|
449
|
+
return this.#startAngle();
|
|
450
|
+
}
|
|
451
|
+
set startAngle($$value) {
|
|
452
|
+
return this.#startAngle($$value);
|
|
453
|
+
}
|
|
454
|
+
#trackStartAngle = derived(() => this.#props().trackStartAngle ?? this.#props().startAngle ?? degreesToRadians(this.range[0]));
|
|
455
|
+
get trackStartAngle() {
|
|
456
|
+
return this.#trackStartAngle();
|
|
457
|
+
}
|
|
458
|
+
set trackStartAngle($$value) {
|
|
459
|
+
return this.#trackStartAngle($$value);
|
|
460
|
+
}
|
|
461
|
+
#trackEndAngle = derived(() => this.#props().trackEndAngle ?? this.#props().endAngle ?? degreesToRadians(this.range[1]));
|
|
462
|
+
get trackEndAngle() {
|
|
463
|
+
return this.#trackEndAngle();
|
|
464
|
+
}
|
|
465
|
+
set trackEndAngle($$value) {
|
|
466
|
+
return this.#trackEndAngle($$value);
|
|
467
|
+
}
|
|
468
|
+
#trackCornerRadius = derived(() => this.#props().trackCornerRadius ?? this.#props().cornerRadius ?? 0);
|
|
469
|
+
get trackCornerRadius() {
|
|
470
|
+
return this.#trackCornerRadius();
|
|
471
|
+
}
|
|
472
|
+
set trackCornerRadius($$value) {
|
|
473
|
+
return this.#trackCornerRadius($$value);
|
|
474
|
+
}
|
|
475
|
+
#trackPadAngle = derived(() => this.#props().trackPadAngle ?? this.#props().padAngle ?? 0);
|
|
476
|
+
get trackPadAngle() {
|
|
477
|
+
return this.#trackPadAngle();
|
|
478
|
+
}
|
|
479
|
+
set trackPadAngle($$value) {
|
|
480
|
+
return this.#trackPadAngle($$value);
|
|
481
|
+
}
|
|
482
|
+
#arcEndAngle = derived(() => this.#props().endAngle ?? degreesToRadians(this.scale(this.motionEndAngleValue)));
|
|
483
|
+
get arcEndAngle() {
|
|
484
|
+
return this.#arcEndAngle();
|
|
485
|
+
}
|
|
486
|
+
set arcEndAngle($$value) {
|
|
487
|
+
return this.#arcEndAngle($$value);
|
|
488
|
+
}
|
|
489
|
+
#arc = derived(() => {
|
|
490
|
+
const props = this.#props();
|
|
491
|
+
return arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius).startAngle(this.startAngle).endAngle(this.arcEndAngle).cornerRadius(props.cornerRadius ?? 0).padAngle(props.padAngle ?? 0);
|
|
492
|
+
});
|
|
493
|
+
get arc() {
|
|
494
|
+
return this.#arc();
|
|
495
|
+
}
|
|
496
|
+
set arc($$value) {
|
|
497
|
+
return this.#arc($$value);
|
|
498
|
+
}
|
|
499
|
+
#trackArc = derived(() => arc_default().innerRadius(this.trackInnerRadius).outerRadius(this.trackOuterRadius).startAngle(this.trackStartAngle).endAngle(this.trackEndAngle).cornerRadius(this.trackCornerRadius).padAngle(this.trackPadAngle));
|
|
500
|
+
get trackArc() {
|
|
501
|
+
return this.#trackArc();
|
|
502
|
+
}
|
|
503
|
+
set trackArc($$value) {
|
|
504
|
+
return this.#trackArc($$value);
|
|
505
|
+
}
|
|
506
|
+
#angle = derived(() => ((this.startAngle ?? 0) + (this.endAngle ?? 0)) / 2);
|
|
507
|
+
get angle() {
|
|
508
|
+
return this.#angle();
|
|
509
|
+
}
|
|
510
|
+
set angle($$value) {
|
|
511
|
+
return this.#angle($$value);
|
|
512
|
+
}
|
|
513
|
+
#xOffset = derived(() => Math.sin(this.angle) * (this.#props().offset ?? 0));
|
|
514
|
+
get xOffset() {
|
|
515
|
+
return this.#xOffset();
|
|
516
|
+
}
|
|
517
|
+
set xOffset($$value) {
|
|
518
|
+
return this.#xOffset($$value);
|
|
519
|
+
}
|
|
520
|
+
#yOffset = derived(() => -Math.cos(this.angle) * (this.#props().offset ?? 0));
|
|
521
|
+
get yOffset() {
|
|
522
|
+
return this.#yOffset();
|
|
523
|
+
}
|
|
524
|
+
set yOffset($$value) {
|
|
525
|
+
return this.#yOffset($$value);
|
|
526
|
+
}
|
|
527
|
+
#trackArcCentroid = derived(() => {
|
|
528
|
+
const centroid = this.trackArc.centroid();
|
|
529
|
+
return [centroid[0] + this.xOffset, centroid[1] + this.yOffset];
|
|
530
|
+
});
|
|
531
|
+
get trackArcCentroid() {
|
|
532
|
+
return this.#trackArcCentroid();
|
|
533
|
+
}
|
|
534
|
+
set trackArcCentroid($$value) {
|
|
535
|
+
return this.#trackArcCentroid($$value);
|
|
536
|
+
}
|
|
537
|
+
#boundingBox = derived(() => this.trackRef ? this.trackRef.getBBox() : {});
|
|
538
|
+
get boundingBox() {
|
|
539
|
+
return this.#boundingBox();
|
|
540
|
+
}
|
|
541
|
+
set boundingBox($$value) {
|
|
542
|
+
return this.#boundingBox($$value);
|
|
543
|
+
}
|
|
544
|
+
getTrackTextProps = (position, opts = {}) => {
|
|
545
|
+
return createArcTextProps({
|
|
546
|
+
startAngle: () => this.trackStartAngle,
|
|
547
|
+
endAngle: () => this.trackEndAngle,
|
|
548
|
+
outerRadius: () => this.trackOuterRadius + (opts.outerPadding ?? 0),
|
|
549
|
+
innerRadius: () => this.trackInnerRadius - (opts.innerPadding ?? 0),
|
|
550
|
+
cornerRadius: () => this.trackCornerRadius,
|
|
551
|
+
centroid: () => this.trackArcCentroid
|
|
552
|
+
}, opts, position).current;
|
|
553
|
+
};
|
|
554
|
+
getArcTextProps = (position, opts = {}) => {
|
|
555
|
+
return createArcTextProps({
|
|
556
|
+
startAngle: () => this.startAngle,
|
|
557
|
+
endAngle: () => this.arcEndAngle,
|
|
558
|
+
outerRadius: () => this.outerRadius + (opts.outerPadding ?? 0),
|
|
559
|
+
innerRadius: () => this.innerRadius - (opts.innerPadding ?? 0),
|
|
560
|
+
cornerRadius: () => this.#props().cornerRadius ?? 0,
|
|
561
|
+
centroid: () => this.trackArcCentroid
|
|
562
|
+
}, opts, position).current;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Arc/Arc.base.svelte
|
|
567
|
+
function Arc_base($$renderer, $$props) {
|
|
568
|
+
$$renderer.component(($$renderer) => {
|
|
569
|
+
let { Path, ref: refProp = void 0, trackRef: trackRefProp = void 0, stroke = "none", motion, value, initialValue, domain, range, startAngle, endAngle, innerRadius, outerRadius, cornerRadius, padAngle, trackStartAngle, trackEndAngle, trackInnerRadius, trackOuterRadius, trackCornerRadius, trackPadAngle, offset, data, tooltip, track = false, onpointerenter = () => {}, onpointermove = () => {}, onpointerleave = () => {}, ontouchmove = () => {}, children, class: className, $$slots, $$events, ...restProps } = $$props;
|
|
570
|
+
const c = new ArcState(() => ({
|
|
571
|
+
motion,
|
|
572
|
+
value,
|
|
573
|
+
initialValue,
|
|
574
|
+
domain,
|
|
575
|
+
range,
|
|
576
|
+
startAngle,
|
|
577
|
+
endAngle,
|
|
578
|
+
innerRadius,
|
|
579
|
+
outerRadius,
|
|
580
|
+
cornerRadius,
|
|
581
|
+
padAngle,
|
|
582
|
+
trackStartAngle,
|
|
583
|
+
trackEndAngle,
|
|
584
|
+
trackInnerRadius,
|
|
585
|
+
trackOuterRadius,
|
|
586
|
+
trackCornerRadius,
|
|
587
|
+
trackPadAngle,
|
|
588
|
+
offset
|
|
589
|
+
}));
|
|
590
|
+
let ref = void 0;
|
|
591
|
+
const onPointerEnter = (e) => {
|
|
592
|
+
onpointerenter?.(e);
|
|
593
|
+
if (tooltip) c.ctx.tooltip.show(e, data);
|
|
594
|
+
};
|
|
595
|
+
const onPointerMove = (e) => {
|
|
596
|
+
onpointermove?.(e);
|
|
597
|
+
if (tooltip) c.ctx.tooltip.show(e, data);
|
|
598
|
+
};
|
|
599
|
+
const onPointerLeave = (e) => {
|
|
600
|
+
onpointerleave?.(e);
|
|
601
|
+
if (tooltip) c.ctx.tooltip.hide();
|
|
602
|
+
};
|
|
603
|
+
let $$settled = true;
|
|
604
|
+
let $$inner_renderer;
|
|
605
|
+
function $$render_inner($$renderer) {
|
|
606
|
+
if (track) {
|
|
607
|
+
$$renderer.push("<!--[0-->");
|
|
608
|
+
var bind_get = () => c.trackRef;
|
|
609
|
+
var bind_set = (v) => c.trackRef = v;
|
|
610
|
+
if (Path) {
|
|
611
|
+
$$renderer.push("<!--[-->");
|
|
612
|
+
Path($$renderer, spread_props([{
|
|
613
|
+
pathData: c.trackArc(),
|
|
614
|
+
stroke: "none",
|
|
615
|
+
get pathRef() {
|
|
616
|
+
return bind_get();
|
|
617
|
+
},
|
|
618
|
+
set pathRef($$value) {
|
|
619
|
+
bind_set($$value);
|
|
620
|
+
}
|
|
621
|
+
}, extractLayerProps(track, "lc-arc-track")]));
|
|
622
|
+
$$renderer.push("<!--]-->");
|
|
623
|
+
} else {
|
|
624
|
+
$$renderer.push("<!--[!-->");
|
|
625
|
+
$$renderer.push("<!--]-->");
|
|
626
|
+
}
|
|
627
|
+
} else $$renderer.push("<!--[-1-->");
|
|
628
|
+
$$renderer.push(`<!--]--> `);
|
|
629
|
+
if (Path) {
|
|
630
|
+
$$renderer.push("<!--[-->");
|
|
631
|
+
Path($$renderer, spread_props([
|
|
632
|
+
{
|
|
633
|
+
pathData: c.arc(),
|
|
634
|
+
transform: `translate(${stringify(c.xOffset)}, ${stringify(c.yOffset)})`,
|
|
635
|
+
stroke
|
|
636
|
+
},
|
|
637
|
+
restProps,
|
|
638
|
+
{
|
|
639
|
+
class: cls("lc-arc-line", className),
|
|
640
|
+
onpointerenter: onPointerEnter,
|
|
641
|
+
onpointermove: onPointerMove,
|
|
642
|
+
onpointerleave: onPointerLeave,
|
|
643
|
+
ontouchmove: (e) => {
|
|
644
|
+
ontouchmove?.(e);
|
|
645
|
+
if (tooltip) e.preventDefault();
|
|
646
|
+
},
|
|
647
|
+
get pathRef() {
|
|
648
|
+
return ref;
|
|
649
|
+
},
|
|
650
|
+
set pathRef($$value) {
|
|
651
|
+
ref = $$value;
|
|
652
|
+
$$settled = false;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
]));
|
|
656
|
+
$$renderer.push("<!--]-->");
|
|
657
|
+
} else {
|
|
658
|
+
$$renderer.push("<!--[!-->");
|
|
659
|
+
$$renderer.push("<!--]-->");
|
|
660
|
+
}
|
|
661
|
+
$$renderer.push(` `);
|
|
662
|
+
children?.($$renderer, {
|
|
663
|
+
centroid: c.trackArcCentroid,
|
|
664
|
+
boundingBox: c.boundingBox,
|
|
665
|
+
value: c.motionEndAngleValue,
|
|
666
|
+
startAngle: c.startAngle,
|
|
667
|
+
endAngle: c.arcEndAngle,
|
|
668
|
+
innerRadius: c.innerRadius,
|
|
669
|
+
outerRadius: c.outerRadius,
|
|
670
|
+
getTrackTextProps: c.getTrackTextProps,
|
|
671
|
+
getArcTextProps: c.getArcTextProps
|
|
672
|
+
});
|
|
673
|
+
$$renderer.push(`<!---->`);
|
|
674
|
+
}
|
|
675
|
+
do {
|
|
676
|
+
$$settled = true;
|
|
677
|
+
$$inner_renderer = $$renderer.copy();
|
|
678
|
+
$$render_inner($$inner_renderer);
|
|
679
|
+
} while (!$$settled);
|
|
680
|
+
$$renderer.subsume($$inner_renderer);
|
|
681
|
+
bind_props($$props, {
|
|
682
|
+
ref: refProp,
|
|
683
|
+
trackRef: trackRefProp
|
|
684
|
+
});
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
//#endregion
|
|
688
|
+
//#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Arc/Arc.svg.svelte
|
|
689
|
+
function Arc_svg($$renderer, $$props) {
|
|
690
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
691
|
+
Arc_base($$renderer, spread_props([{ Path: Path_svg }, props]));
|
|
692
|
+
}
|
|
693
|
+
//#endregion
|
|
694
|
+
//#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Arc/Arc.canvas.svelte
|
|
695
|
+
function Arc_canvas($$renderer, $$props) {
|
|
696
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
697
|
+
Arc_base($$renderer, spread_props([{ Path: Path_canvas }, props]));
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export { Arc_svg as A, Arc_canvas as a };
|
|
701
|
+
//# sourceMappingURL=Arc.canvas.js-D6g58nSp.js.map
|