watch-tail 0.9.0 → 0.10.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/README.md +111 -10
- package/build/client/_app/immutable/assets/0.B5hI3s8c.css +2 -0
- package/build/client/_app/immutable/assets/2.Cn4w1JYv.css +1 -0
- package/build/client/_app/immutable/chunks/0bp2Fczu.js +1 -0
- package/build/client/_app/immutable/chunks/B2En4t_E.js +3 -0
- package/build/client/_app/immutable/chunks/{DS3cLPAu.js → B7X5bVGV.js} +1 -1
- package/build/client/_app/immutable/chunks/BDcWO4cr.js +1 -0
- package/build/client/_app/immutable/chunks/{Dkh4Dwm8.js → BDdUgtQ9.js} +1 -1
- package/build/client/_app/immutable/chunks/{0b2v80OK.js → BP77Fyht.js} +1 -1
- package/build/client/_app/immutable/chunks/{dqF8mxBW.js → B_Mg_9D4.js} +1 -1
- package/build/client/_app/immutable/chunks/BvE-N_5_.js +1 -0
- package/build/client/_app/immutable/chunks/C0Fq51PS.js +1 -0
- package/build/client/_app/immutable/chunks/CBu7zaX6.js +15 -0
- package/build/client/_app/immutable/chunks/CDs2jokv.js +1 -0
- package/build/client/_app/immutable/chunks/{B5RiPG8Z.js → CL6wPCzw.js} +1 -1
- package/build/client/_app/immutable/chunks/CMPe3AwH.js +1 -0
- package/build/client/_app/immutable/chunks/{b77-bq1n.js → CRxuTO84.js} +1 -1
- package/build/client/_app/immutable/chunks/CXlCR4o6.js +10 -0
- package/build/client/_app/immutable/chunks/{DQqLOGLe.js → CZZUqHxO.js} +1 -1
- package/build/client/_app/immutable/chunks/{aI_O2VuQ.js → CaFHnwyo.js} +1 -1
- package/build/client/_app/immutable/chunks/CbtqT1c8.js +1 -0
- package/build/client/_app/immutable/chunks/{DGYKsRyW.js → CfRqDrzx.js} +1 -1
- package/build/client/_app/immutable/chunks/CwzJ9AB4.js +1 -0
- package/build/client/_app/immutable/chunks/{DwOZdLDj.js → Cy2yzzl5.js} +1 -1
- package/build/client/_app/immutable/chunks/D067lFSc.js +2 -0
- package/build/client/_app/immutable/chunks/{C_U_Jvk5.js → D27MZEE2.js} +1 -1
- package/build/client/_app/immutable/chunks/{IlwbfbOu.js → D9KJP6hv.js} +1 -1
- package/build/client/_app/immutable/chunks/DO938hpm.js +1 -0
- package/build/client/_app/immutable/chunks/DrLgrJ3k.js +1 -0
- package/build/client/_app/immutable/chunks/DrupwIIS.js +1 -0
- package/build/client/_app/immutable/chunks/LGzrUxfF.js +1 -0
- package/build/client/_app/immutable/chunks/{D7vimbmk.js → PUpq0Ki5.js} +1 -1
- package/build/client/_app/immutable/chunks/{DvxMaQv_.js → kSuEE8Bt.js} +1 -1
- package/build/client/_app/immutable/chunks/y79YFfGW.js +1 -0
- package/build/client/_app/immutable/chunks/zP_HZRCk.js +1 -0
- package/build/client/_app/immutable/entry/app.BEq8gOel.js +2 -0
- package/build/client/_app/immutable/entry/start.DmBlaUbV.js +1 -0
- package/build/client/_app/immutable/nodes/0.D63E8Q6i.js +1 -0
- package/build/client/_app/immutable/nodes/1.DXfG5P6X.js +1 -0
- package/build/client/_app/immutable/nodes/2.45XrHxUU.js +5 -0
- package/build/client/_app/version.json +1 -1
- package/build/env.js +0 -1
- package/build/handler.js +6 -9
- package/build/index.js +6 -9
- package/build/server/chunks/chunks/{archive.js-D2jtMmDo.js → archive.js-D7cGVWaq.js} +331 -31
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +0 -1
- package/build/server/chunks/chunks/env2.js-C5BgBJDY.js +0 -1
- package/build/server/chunks/chunks/{exports.js-ClPPfcHj.js → exports.js-CvFPPbaH.js} +0 -6
- package/build/server/chunks/chunks/identity.js-NmGXxBz3.js +0 -1
- package/build/server/chunks/chunks/{index-server.js-CtH9Hqwf.js → index-server.js-DOq0LmqS.js} +87 -112
- package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js +0 -1
- package/build/server/chunks/chunks/{legacy-client.js-DAqKExQD.js → internal2.js-B2FekELn.js} +279 -7
- package/build/server/chunks/chunks/{level-filter.js-D9MNrew3.js → level-filter.js-kKdNjmbR.js} +2 -3
- package/build/server/chunks/chunks/{log-buffer.js-A9FA-Qv8.js → log-buffer.js-BjT3sJlh.js} +1 -2
- package/build/server/chunks/chunks/regions.js-COf7DgnH.js +0 -1
- package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js +0 -1
- package/build/server/chunks/chunks/shared.js-CgjUIvRK.js +0 -1
- package/build/server/chunks/chunks/source.js-DZEVvuho.js +0 -1
- package/build/server/chunks/chunks/{state.js-i-NVNGIq.js → state.js-CdO6iuBd.js} +3 -4
- package/build/server/chunks/chunks/text-size.svelte.js-D09gVgvI.js +309 -0
- package/build/server/chunks/chunks/{time-range.js-BLMT8aU3.js → time-range.js-__87ZPq6.js} +9 -5
- package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js +0 -1
- package/build/server/chunks/chunks/utils.js-BIlHjgGW.js +0 -1
- package/build/server/chunks/entries/endpoints/api/archive/{_server.ts.js-C4hWyXuu.js → _server.ts.js-D-97I3hr.js} +2 -3
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-C5tfrpmC.js +0 -1
- package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-PWRPScuN.js +0 -1
- package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-D4y43Vwe.js → _server.ts.js-BBBsBX5h.js} +2 -3
- package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-9_g0ojki.js +0 -1
- package/build/server/chunks/entries/endpoints/api/series/{_server.ts.js-DibT3Hjc.js → _server.ts.js-bsGqvQ1O.js} +4 -5
- package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-BxXw5K0R.js → _server.ts.js-B6obpUbh.js} +211 -49
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-ylsqA41Y.js → error.svelte.js-BupH3lxJ.js} +4 -7
- package/build/server/chunks/entries/pages/_layout.svelte.js-C3CVxu2T.js +621 -0
- package/build/server/chunks/entries/pages/{_page.svelte.js-C9-7d7mD.js → _page.svelte.js-DS9p1LVo.js} +643 -191
- package/build/server/chunks/{handler-Bqo8aDgP.js → handler-DrjCpeeA.js} +4 -5
- package/build/server/chunks/{index.js-fPvMujCL.js → index.js-BLTOesya.js} +3 -4
- package/build/server/chunks/{manifest.js-Bkj-8GaD.js → manifest.js-C1_IS4sj.js} +8 -9
- package/build/server/chunks/nodes/0.js-BHXaR9OX.js +8 -0
- package/build/server/chunks/nodes/1.js-C-coUSdu.js +8 -0
- package/build/server/chunks/nodes/2.js-Dor6Xgc7.js +8 -0
- package/build/shims.js +0 -1
- package/dist/cli/completions.js +24 -0
- package/dist/cli/index.js +144 -3
- package/dist/cli/mcp/agents.js +344 -0
- package/dist/cli/mcp/backend.js +235 -0
- package/dist/cli/mcp/run.js +245 -0
- package/dist/cli/mcp/stdio.js +103 -0
- package/dist/cli/mcp/tools.js +245 -0
- package/dist/cli/options.js +138 -25
- package/dist/cli/server.js +28 -0
- package/dist/cli/ui.js +20 -1
- package/dist/lib/time-range.js +14 -3
- package/package.json +21 -6
- package/build/client/_app/immutable/assets/0.ChTKqSf6.css +0 -2
- package/build/client/_app/immutable/assets/0.ChTKqSf6.css.br +0 -0
- package/build/client/_app/immutable/assets/0.ChTKqSf6.css.gz +0 -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.br +0 -0
- package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.gz +0 -0
- package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.br +0 -1
- package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.gz +0 -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.0BkgJO-l.css.br +0 -0
- package/build/client/_app/immutable/assets/EventScatter.0BkgJO-l.css.gz +0 -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.br +0 -0
- package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.gz +0 -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.br +0 -0
- package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.gz +0 -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/0b2v80OK.js.br +0 -0
- package/build/client/_app/immutable/chunks/0b2v80OK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5EFAIHuJ.js +0 -1
- package/build/client/_app/immutable/chunks/5EFAIHuJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/5EFAIHuJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B15XBe8D.js +0 -1
- package/build/client/_app/immutable/chunks/B15XBe8D.js.br +0 -0
- package/build/client/_app/immutable/chunks/B15XBe8D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5RiPG8Z.js.br +0 -2
- package/build/client/_app/immutable/chunks/B5RiPG8Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BR2LaRms.js.br +0 -1
- package/build/client/_app/immutable/chunks/BR2LaRms.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_KVdCQT.js +0 -10
- package/build/client/_app/immutable/chunks/B_KVdCQT.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_KVdCQT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -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/BuCpRsEL.js +0 -1
- package/build/client/_app/immutable/chunks/BuCpRsEL.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuCpRsEL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvZtsVvW.js +0 -1
- package/build/client/_app/immutable/chunks/BvZtsVvW.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvZtsVvW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3Y15ONf.js +0 -2
- package/build/client/_app/immutable/chunks/C3Y15ONf.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3Y15ONf.js.gz +0 -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/C9GPQYs7.js +0 -1
- package/build/client/_app/immutable/chunks/C9GPQYs7.js.br +0 -0
- package/build/client/_app/immutable/chunks/C9GPQYs7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBZpkDc1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBZpkDc1.js.gz +0 -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/C_U_Jvk5.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_U_Jvk5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cd7JqZj9.js +0 -1
- package/build/client/_app/immutable/chunks/Cd7JqZj9.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cd7JqZj9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2PbcyDU.js +0 -1
- package/build/client/_app/immutable/chunks/D2PbcyDU.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2PbcyDU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D7vimbmk.js.br +0 -0
- package/build/client/_app/immutable/chunks/D7vimbmk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAqXSYzi.js +0 -1
- package/build/client/_app/immutable/chunks/DAqXSYzi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAqXSYzi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGYKsRyW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGYKsRyW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPaulGql.js +0 -1
- package/build/client/_app/immutable/chunks/DPaulGql.js.br +0 -1
- package/build/client/_app/immutable/chunks/DPaulGql.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQqLOGLe.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQqLOGLe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DS3cLPAu.js.br +0 -0
- package/build/client/_app/immutable/chunks/DS3cLPAu.js.gz +0 -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.br +0 -0
- package/build/client/_app/immutable/chunks/Dfvzj6n2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dkh4Dwm8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dkh4Dwm8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnqfXHAL.js +0 -15
- package/build/client/_app/immutable/chunks/DnqfXHAL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DnqfXHAL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DsYron7_.js +0 -1
- package/build/client/_app/immutable/chunks/DsYron7_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DsYron7_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DuM1cPdZ.js +0 -1
- package/build/client/_app/immutable/chunks/DuM1cPdZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DuM1cPdZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DvxMaQv_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DvxMaQv_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwOZdLDj.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwOZdLDj.js.gz +0 -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/IlwbfbOu.js.br +0 -0
- package/build/client/_app/immutable/chunks/IlwbfbOu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RobXhXPM.js.br +0 -1
- package/build/client/_app/immutable/chunks/RobXhXPM.js.gz +0 -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/aI_O2VuQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/aI_O2VuQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/b77-bq1n.js.br +0 -0
- package/build/client/_app/immutable/chunks/b77-bq1n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dqF8mxBW.js.br +0 -0
- package/build/client/_app/immutable/chunks/dqF8mxBW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gkAHSOnS.js +0 -1
- package/build/client/_app/immutable/chunks/gkAHSOnS.js.br +0 -0
- package/build/client/_app/immutable/chunks/gkAHSOnS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pqiPC7Y8.js +0 -3
- 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/ti8ecMFX.js +0 -1
- package/build/client/_app/immutable/chunks/ti8ecMFX.js.br +0 -0
- package/build/client/_app/immutable/chunks/ti8ecMFX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +0 -1
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -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.CTR4aUFT.js +0 -2
- package/build/client/_app/immutable/entry/app.CTR4aUFT.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CTR4aUFT.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CC6Ln8E2.js +0 -1
- package/build/client/_app/immutable/entry/start.CC6Ln8E2.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CC6Ln8E2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CvUxmLsM.js +0 -1
- package/build/client/_app/immutable/nodes/0.CvUxmLsM.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CvUxmLsM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CbSHqfEx.js +0 -1
- package/build/client/_app/immutable/nodes/1.CbSHqfEx.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CbSHqfEx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DcD5v8dU.js +0 -5
- package/build/client/_app/immutable/nodes/2.DcD5v8dU.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DcD5v8dU.js.gz +0 -0
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/robots.txt.br +0 -0
- package/build/client/robots.txt.gz +0 -0
- package/build/env.js.map +0 -1
- package/build/handler.js.map +0 -1
- package/build/index.js.map +0 -1
- package/build/server/chunks/chunks/Arc.canvas.js-CN0KDoHG.js +0 -701
- package/build/server/chunks/chunks/Arc.canvas.js-CN0KDoHG.js.map +0 -1
- package/build/server/chunks/chunks/Arc.js-C8EC9NoE.js +0 -31
- package/build/server/chunks/chunks/Arc.js-C8EC9NoE.js.map +0 -1
- package/build/server/chunks/chunks/Bar.js-DtAb3LZZ.js +0 -448
- package/build/server/chunks/chunks/Bar.js-DtAb3LZZ.js.map +0 -1
- package/build/server/chunks/chunks/ChartAnnotations.js-twzDSVzY.js +0 -983
- package/build/server/chunks/chunks/ChartAnnotations.js-twzDSVzY.js.map +0 -1
- package/build/server/chunks/chunks/Circle.html.js-BJywADGK.js +0 -355
- package/build/server/chunks/chunks/Circle.html.js-BJywADGK.js.map +0 -1
- package/build/server/chunks/chunks/ClipPath.canvas.js-9Fc0bTEM.js +0 -170
- package/build/server/chunks/chunks/ClipPath.canvas.js-9Fc0bTEM.js.map +0 -1
- package/build/server/chunks/chunks/DefaultTooltip.js-C2NWK2AD.js +0 -352
- package/build/server/chunks/chunks/DefaultTooltip.js-C2NWK2AD.js.map +0 -1
- package/build/server/chunks/chunks/EventScatter.js-CO2GonW-.js +0 -7370
- package/build/server/chunks/chunks/EventScatter.js-CO2GonW-.js.map +0 -1
- package/build/server/chunks/chunks/Labels.js-DB9qoyZ3.js +0 -497
- package/build/server/chunks/chunks/Labels.js-DB9qoyZ3.js.map +0 -1
- package/build/server/chunks/chunks/Legend.js-B_ArjxQ7.js +0 -343
- package/build/server/chunks/chunks/Legend.js-B_ArjxQ7.js.map +0 -1
- package/build/server/chunks/chunks/Line.html.js-B1REcOFe.js +0 -423
- package/build/server/chunks/chunks/Line.html.js-B1REcOFe.js.map +0 -1
- package/build/server/chunks/chunks/Link.canvas.js-nWimAHfH.js +0 -756
- package/build/server/chunks/chunks/Link.canvas.js-nWimAHfH.js.map +0 -1
- package/build/server/chunks/chunks/Path.canvas.js-5A9wB8zQ.js +0 -1259
- package/build/server/chunks/chunks/Path.canvas.js-5A9wB8zQ.js.map +0 -1
- package/build/server/chunks/chunks/Points.html.js-B2o3k-ZZ.js +0 -228
- package/build/server/chunks/chunks/Points.html.js-B2o3k-ZZ.js.map +0 -1
- package/build/server/chunks/chunks/Points.js-D7ozN9W5.js +0 -14
- package/build/server/chunks/chunks/Points.js-D7ozN9W5.js.map +0 -1
- package/build/server/chunks/chunks/Points2.js-BVbWugLT.js +0 -25
- package/build/server/chunks/chunks/Points2.js-BVbWugLT.js.map +0 -1
- package/build/server/chunks/chunks/Rect.html.js-DnQ6ObhQ.js +0 -547
- package/build/server/chunks/chunks/Rect.html.js-DnQ6ObhQ.js.map +0 -1
- package/build/server/chunks/chunks/Spline.js-YnAxvrKY.js +0 -516
- package/build/server/chunks/chunks/Spline.js-YnAxvrKY.js.map +0 -1
- package/build/server/chunks/chunks/Text.html.js-LbmYJb11.js +0 -847
- package/build/server/chunks/chunks/Text.html.js-LbmYJb11.js.map +0 -1
- package/build/server/chunks/chunks/TooltipItem.js-Ce-blieA.js +0 -314
- package/build/server/chunks/chunks/TooltipItem.js-Ce-blieA.js.map +0 -1
- package/build/server/chunks/chunks/Voronoi.js-CalFJAXH.js +0 -2052
- package/build/server/chunks/chunks/Voronoi.js-CalFJAXH.js.map +0 -1
- package/build/server/chunks/chunks/archive.js-D2jtMmDo.js.map +0 -1
- package/build/server/chunks/chunks/array.js-CBp0H4t3.js +0 -8
- package/build/server/chunks/chunks/array.js-CBp0H4t3.js.map +0 -1
- package/build/server/chunks/chunks/attributes.js-CbKEpZKa.js +0 -25
- package/build/server/chunks/chunks/attributes.js-CbKEpZKa.js.map +0 -1
- package/build/server/chunks/chunks/band.js-CjzHWr4k.js +0 -155
- package/build/server/chunks/chunks/band.js-CjzHWr4k.js.map +0 -1
- package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js +0 -1356
- package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js.map +0 -1
- package/build/server/chunks/chunks/common.js-BvQnfkFo.js +0 -5760
- package/build/server/chunks/chunks/common.js-BvQnfkFo.js.map +0 -1
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js.map +0 -1
- package/build/server/chunks/chunks/env2.js-C5BgBJDY.js.map +0 -1
- package/build/server/chunks/chunks/events.js-zIVaXIP1.js +0 -95
- package/build/server/chunks/chunks/events.js-zIVaXIP1.js.map +0 -1
- package/build/server/chunks/chunks/exports.js-ClPPfcHj.js.map +0 -1
- package/build/server/chunks/chunks/group.js-D0SfevId.js +0 -30
- package/build/server/chunks/chunks/group.js-D0SfevId.js.map +0 -1
- package/build/server/chunks/chunks/identity.js-NmGXxBz3.js.map +0 -1
- package/build/server/chunks/chunks/index-server.js-CtH9Hqwf.js.map +0 -1
- package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js +0 -2
- package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js.map +0 -1
- package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js.map +0 -1
- package/build/server/chunks/chunks/internal2.js-CfVVfAb5.js +0 -188
- package/build/server/chunks/chunks/internal2.js-CfVVfAb5.js.map +0 -1
- package/build/server/chunks/chunks/key.svelte.js-Cq0L6YlN.js +0 -695
- package/build/server/chunks/chunks/key.svelte.js-Cq0L6YlN.js.map +0 -1
- package/build/server/chunks/chunks/legacy-client.js-DAqKExQD.js.map +0 -1
- package/build/server/chunks/chunks/level-filter.js-D9MNrew3.js.map +0 -1
- package/build/server/chunks/chunks/lineRadial.js-B7ZNP_Jp.js +0 -126
- package/build/server/chunks/chunks/lineRadial.js-B7ZNP_Jp.js.map +0 -1
- package/build/server/chunks/chunks/linear.js-CHlwr1I4.js +0 -1046
- package/build/server/chunks/chunks/linear.js-CHlwr1I4.js.map +0 -1
- package/build/server/chunks/chunks/log-buffer.js-A9FA-Qv8.js.map +0 -1
- package/build/server/chunks/chunks/math.js-BqujbaBs.js +0 -50
- package/build/server/chunks/chunks/math.js-BqujbaBs.js.map +0 -1
- package/build/server/chunks/chunks/max.js-CuS0BpRI.js +0 -11
- package/build/server/chunks/chunks/max.js-CuS0BpRI.js.map +0 -1
- package/build/server/chunks/chunks/min.js-DZWt5tPl.js +0 -11
- package/build/server/chunks/chunks/min.js-DZWt5tPl.js.map +0 -1
- package/build/server/chunks/chunks/motion.svelte.js-Crk8ri1u.js +0 -677
- package/build/server/chunks/chunks/motion.svelte.js-Crk8ri1u.js.map +0 -1
- package/build/server/chunks/chunks/occlusion.js-ot9_OqWn.js +0 -33
- package/build/server/chunks/chunks/occlusion.js-ot9_OqWn.js.map +0 -1
- package/build/server/chunks/chunks/path.js-BizMrlzb.js +0 -488
- package/build/server/chunks/chunks/path.js-BizMrlzb.js.map +0 -1
- package/build/server/chunks/chunks/path2.js-DLVU8nc9.js +0 -27
- package/build/server/chunks/chunks/path2.js-DLVU8nc9.js.map +0 -1
- package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js +0 -7
- package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js.map +0 -1
- package/build/server/chunks/chunks/rect.svelte.js-_0PgI5fe.js +0 -187
- package/build/server/chunks/chunks/rect.svelte.js-_0PgI5fe.js.map +0 -1
- package/build/server/chunks/chunks/regions.js-COf7DgnH.js.map +0 -1
- package/build/server/chunks/chunks/scales.svelte.js-DeNkKcI-.js +0 -276
- package/build/server/chunks/chunks/scales.svelte.js-DeNkKcI-.js.map +0 -1
- package/build/server/chunks/chunks/series-buckets.js-C-vMEJT2.js +0 -316
- package/build/server/chunks/chunks/series-buckets.js-C-vMEJT2.js.map +0 -1
- package/build/server/chunks/chunks/shared-server.js-Dn5XheXH.js.map +0 -1
- package/build/server/chunks/chunks/shared.js-CgjUIvRK.js.map +0 -1
- package/build/server/chunks/chunks/source.js-DZEVvuho.js.map +0 -1
- package/build/server/chunks/chunks/state.js-i-NVNGIq.js.map +0 -1
- package/build/server/chunks/chunks/time-range.js-BLMT8aU3.js.map +0 -1
- package/build/server/chunks/chunks/types.js-x3GyGPOz.js +0 -11
- package/build/server/chunks/chunks/types.js-x3GyGPOz.js.map +0 -1
- package/build/server/chunks/chunks/uneval.js-DaakSYFQ.js.map +0 -1
- package/build/server/chunks/chunks/utils.js-BIlHjgGW.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-C4hWyXuu.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-C5tfrpmC.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-PWRPScuN.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-D4y43Vwe.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-9_g0ojki.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DibT3Hjc.js.map +0 -1
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BxXw5K0R.js.map +0 -1
- package/build/server/chunks/entries/fallbacks/error.svelte.js-ylsqA41Y.js.map +0 -1
- package/build/server/chunks/entries/pages/_layout.svelte.js-D7sAdBVX.js +0 -113
- package/build/server/chunks/entries/pages/_layout.svelte.js-D7sAdBVX.js.map +0 -1
- package/build/server/chunks/entries/pages/_page.svelte.js-C9-7d7mD.js.map +0 -1
- package/build/server/chunks/handler-Bqo8aDgP.js.map +0 -1
- package/build/server/chunks/index.js-fPvMujCL.js.map +0 -1
- package/build/server/chunks/manifest.js-Bkj-8GaD.js.map +0 -1
- package/build/server/chunks/nodes/0.js-7J6kXnEo.js +0 -9
- package/build/server/chunks/nodes/0.js-7J6kXnEo.js.map +0 -1
- package/build/server/chunks/nodes/1.js-DZXnUx67.js +0 -9
- package/build/server/chunks/nodes/1.js-DZXnUx67.js.map +0 -1
- package/build/server/chunks/nodes/2.js-85y9-1SS.js +0 -9
- package/build/server/chunks/nodes/2.js-85y9-1SS.js.map +0 -1
- package/build/shims.js.map +0 -1
|
@@ -1,701 +0,0 @@
|
|
|
1
|
-
import { an as spread_props, af as bind_props, a1 as derived, ae as stringify } from './index-server.js-CtH9Hqwf.js';
|
|
2
|
-
import { a as getChartContext, b as cls } from './common.js-BvQnfkFo.js';
|
|
3
|
-
import { l as linear } from './linear.js-CHlwr1I4.js';
|
|
4
|
-
import { m as max$1 } from './max.js-CuS0BpRI.js';
|
|
5
|
-
import { e as extractLayerProps } from './attributes.js-CbKEpZKa.js';
|
|
6
|
-
import { w as withPath, c as constant_default } from './path2.js-DLVU8nc9.js';
|
|
7
|
-
import { a as Path_svg, b as Path_canvas } from './Path.canvas.js-5A9wB8zQ.js';
|
|
8
|
-
import { d as createMotion } from './motion.svelte.js-Crk8ri1u.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-CN0KDoHG.js.map
|