watch-tail 0.4.0 → 0.6.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 +158 -0
- package/build/client/_app/immutable/assets/0.Dfts6BC4.css +2 -0
- package/build/client/_app/immutable/assets/0.Dfts6BC4.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dfts6BC4.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/Amq8zxdJ.js +1 -0
- package/build/client/_app/immutable/chunks/Amq8zxdJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Amq8zxdJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3p3umIY.js +1 -0
- package/build/client/_app/immutable/chunks/B3p3umIY.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3p3umIY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B43Eeyih.js +1 -0
- package/build/client/_app/immutable/chunks/B43Eeyih.js.br +0 -0
- package/build/client/_app/immutable/chunks/B43Eeyih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5q6rkQ-.js +1 -0
- package/build/client/_app/immutable/chunks/B5q6rkQ-.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5q6rkQ-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAynhd7i.js +1 -0
- package/build/client/_app/immutable/chunks/BAynhd7i.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAynhd7i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDlvDAqe.js +1 -0
- package/build/client/_app/immutable/chunks/BDlvDAqe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDlvDAqe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGmgUZMc.js +10 -0
- package/build/client/_app/immutable/chunks/BGmgUZMc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BGmgUZMc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJpWBbAS.js +1 -0
- package/build/client/_app/immutable/chunks/BJpWBbAS.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJpWBbAS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOT2hFMn.js +1 -0
- package/build/client/_app/immutable/chunks/BOT2hFMn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOT2hFMn.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/BZFYtRPj.js +1 -0
- package/build/client/_app/immutable/chunks/BZFYtRPj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BZFYtRPj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.js +5 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjxZ_neZ.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/{Bw_9uNRP.js → BsH4MNzX.js} +1 -1
- package/build/client/_app/immutable/chunks/BsH4MNzX.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsH4MNzX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ByhwhtiG.js +1 -0
- package/build/client/_app/immutable/chunks/ByhwhtiG.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByhwhtiG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1lycbEF.js +1 -0
- package/build/client/_app/immutable/chunks/C1lycbEF.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1lycbEF.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/CEU4ihsz.js +1 -0
- package/build/client/_app/immutable/chunks/CEU4ihsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEU4ihsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CG6rRxUy.js +2 -0
- package/build/client/_app/immutable/chunks/CG6rRxUy.js.br +0 -0
- package/build/client/_app/immutable/chunks/CG6rRxUy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CM5sQDq_.js +1 -0
- package/build/client/_app/immutable/chunks/CM5sQDq_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CM5sQDq_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CT_NYh_-.js +1 -0
- package/build/client/_app/immutable/chunks/CT_NYh_-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CT_NYh_-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZIk93qi.js +1 -0
- package/build/client/_app/immutable/chunks/CZIk93qi.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZIk93qi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C_aXFBl3.js +1 -0
- package/build/client/_app/immutable/chunks/C_aXFBl3.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_aXFBl3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js +1 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js.br +1 -0
- package/build/client/_app/immutable/chunks/CqWPu3PG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyncJW0D.js +1 -0
- package/build/client/_app/immutable/chunks/CyncJW0D.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyncJW0D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4sC5v3c.js +1 -0
- package/build/client/_app/immutable/chunks/D4sC5v3c.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4sC5v3c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D76YLq-2.js +1 -0
- package/build/client/_app/immutable/chunks/D76YLq-2.js.br +0 -0
- package/build/client/_app/immutable/chunks/D76YLq-2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8H_ivbb.js +1 -0
- package/build/client/_app/immutable/chunks/D8H_ivbb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8H_ivbb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DU0OQtdJ.js +1 -0
- package/build/client/_app/immutable/chunks/DU0OQtdJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU0OQtdJ.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/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/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/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/Yk6ZJZnu.js +1 -0
- package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jO4fmY1N.js +1 -0
- package/build/client/_app/immutable/chunks/jO4fmY1N.js.br +0 -0
- package/build/client/_app/immutable/chunks/jO4fmY1N.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/snfmbqby.js +1 -0
- package/build/client/_app/immutable/chunks/snfmbqby.js.br +0 -0
- package/build/client/_app/immutable/chunks/snfmbqby.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wx-wtMGx.js +15 -0
- package/build/client/_app/immutable/chunks/wx-wtMGx.js.br +0 -0
- package/build/client/_app/immutable/chunks/wx-wtMGx.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/chunks/zHL7lw4G.js +1 -0
- package/build/client/_app/immutable/chunks/zHL7lw4G.js.br +0 -0
- package/build/client/_app/immutable/chunks/zHL7lw4G.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DFSifnlU.js +2 -0
- package/build/client/_app/immutable/entry/app.DFSifnlU.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DFSifnlU.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js +1 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js.br +1 -0
- package/build/client/_app/immutable/entry/start.2H5s3Lol.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BN3NguWs.js +1 -0
- package/build/client/_app/immutable/nodes/0.BN3NguWs.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BN3NguWs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Djdw1GzA.js +1 -0
- package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js +4 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CjvaJDQJ.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-D3Jaw_Cw.js +7308 -0
- package/build/server/chunks/chunks/EventScatter.js-D3Jaw_Cw.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-C2D-5edp.js +823 -0
- package/build/server/chunks/chunks/archive.js-C2D-5edp.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-BPo5dcDi.js +188 -0
- package/build/server/chunks/chunks/internal2.js-BPo5dcDi.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-B3o2hyWD.js +313 -0
- package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.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-BI_gQOls.js +587 -0
- package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.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-BjigySff.js +290 -0
- package/build/server/chunks/chunks/series-buckets.js-BjigySff.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-DgkwfYFo.js} +5 -4
- package/build/server/chunks/chunks/state.js-DgkwfYFo.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-83Ch7djd.js +39 -0
- package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-83Ch7djd.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-drLgUdvB.js} +57 -8
- package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-drLgUdvB.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-DOvBhEDU.js +225 -0
- package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-CIYo4C-0.js → _server.ts.js-BWRHawY8.js} +324 -223
- package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BWRHawY8.js.map +1 -0
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js → error.svelte.js-CsCL5PMW.js} +7 -5
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js.map → error.svelte.js-CsCL5PMW.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-qqtU0apo.js +1641 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js.map +1 -0
- package/build/server/chunks/{handler-DS32NMsJ.js → handler-DlfTB05m.js} +3 -3
- package/build/server/chunks/{handler-DS32NMsJ.js.map → handler-DlfTB05m.js.map} +1 -1
- package/build/server/chunks/{index.js-HHu-yOEK.js → index.js-BMrd9hfO.js} +6 -5
- package/build/server/chunks/index.js-BMrd9hfO.js.map +1 -0
- package/build/server/chunks/{manifest.js-BUrA7Zyr.js → manifest.js-D1kCuVe5.js} +24 -10
- package/build/server/chunks/manifest.js-D1kCuVe5.js.map +1 -0
- package/build/server/chunks/nodes/0.js-CNFDDPj5.js +9 -0
- package/build/server/chunks/nodes/{0.js-gSRmrAt_.js.map → 0.js-CNFDDPj5.js.map} +1 -1
- package/build/server/chunks/nodes/1.js-B5FPLYnf.js +9 -0
- package/build/server/chunks/nodes/{1.js-D68K7Ad_.js.map → 1.js-B5FPLYnf.js.map} +1 -1
- package/build/server/chunks/nodes/2.js-BEuxzw6b.js +9 -0
- package/build/server/chunks/nodes/2.js-BEuxzw6b.js.map +1 -0
- package/dist/cli/completions.js +6 -0
- package/dist/cli/index.js +131 -88
- package/dist/cli/options.js +28 -2
- package/dist/cli/preflight.js +30 -0
- package/dist/cli/ui.js +18 -3
- package/dist/lib/cli/aws.js +12 -4
- package/dist/lib/log-buffer.js +443 -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 +0 -1291
- 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,983 @@
|
|
|
1
|
+
import { ak as ensure_array_like, at as spread_props, ac as derived, as as props_id, ar as attributes, ag as attr, aj as attr_class, an as clsx, al as stringify, am as bind_props } from './server.js-CAEBuMIH.js';
|
|
2
|
+
import { a as getChartContext, b as cls } from './common.js-BWQB8Die.js';
|
|
3
|
+
import { g as getLayerContext, b as getGeoContext, y as createPattern, n as getComputedStyles, z as createLinearGradient } from './key.svelte.js-CWIvXc6L.js';
|
|
4
|
+
import { i as isScaleBand } from './scales.svelte.js-D_1popPi.js';
|
|
5
|
+
import { e as extractLayerProps } from './attributes.js-BVWo7wbg.js';
|
|
6
|
+
import { c as createId } from './Path.canvas.js-DNAtnEBt.js';
|
|
7
|
+
import { L as Link_svg, a as Link_canvas, g as getPointLabelLayout } from './Link.canvas.js-P8ySzEAw.js';
|
|
8
|
+
import { a as parsePercent } from './math.js-BqujbaBs.js';
|
|
9
|
+
import { R as Rect_svg, a as Rect_canvas, b as Rect_html } from './Rect.html.js-Q3UvRwNn.js';
|
|
10
|
+
import { T as Text_svg, a as Text_canvas, b as Text_html, c as getPixelValue } from './Text.html.js-C8xO5Nz6.js';
|
|
11
|
+
import { C as Circle_svg, a as Circle_canvas, b as Circle_html } from './Circle.html.js-BjwyNRG3.js';
|
|
12
|
+
import { a as asAny } from './types.js-x3GyGPOz.js';
|
|
13
|
+
import { L as Line_svg, a as Line_canvas, b as Line_html } from './Line.html.js-BM5tR11G.js';
|
|
14
|
+
import './uneval.js-DaakSYFQ.js';
|
|
15
|
+
import './linear.js-CTOKrHn9.js';
|
|
16
|
+
import './band.js-C7izXphE.js';
|
|
17
|
+
import './motion.svelte.js-DCHSFMu-.js';
|
|
18
|
+
import './path2.js-pquT2Kg6.js';
|
|
19
|
+
import './array.js-CBp0H4t3.js';
|
|
20
|
+
import './lineRadial.js-Dm0GMqo3.js';
|
|
21
|
+
import './pointRadial.js-Deeu1LXx.js';
|
|
22
|
+
import './rect.svelte.js-zeS7FWjB.js';
|
|
23
|
+
import './max.js-CuS0BpRI.js';
|
|
24
|
+
import './min.js-DZWt5tPl.js';
|
|
25
|
+
|
|
26
|
+
//#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/AnnotationLine/AnnotationLine.base.svelte
|
|
27
|
+
function AnnotationLine_base($$renderer, $$props) {
|
|
28
|
+
$$renderer.component(($$renderer) => {
|
|
29
|
+
let { Line, Text, x, y, x1: x1Prop, y1: y1Prop, x2: x2Prop, y2: y2Prop, seriesKey, label, labelPlacement = "top-right", labelXOffset = 0, labelYOffset = 0, props } = $$props;
|
|
30
|
+
const ctx = getChartContext();
|
|
31
|
+
const isVertical = derived(() => x != null || x1Prop != null && x2Prop != null && x1Prop === x2Prop);
|
|
32
|
+
/**
|
|
33
|
+
* Each end read against its series' stacked segment, at the category that end sits on.
|
|
34
|
+
*
|
|
35
|
+
* A rule spanning the plot (a `y` with no `x`) has no single category to read against, so it
|
|
36
|
+
* is left where it was asked for.
|
|
37
|
+
*/
|
|
38
|
+
const stacked = derived(() => {
|
|
39
|
+
if (seriesKey == null || !ctx.isStacked) return {
|
|
40
|
+
x1: x1Prop,
|
|
41
|
+
y1: y1Prop,
|
|
42
|
+
x2: x2Prop,
|
|
43
|
+
y2: y2Prop,
|
|
44
|
+
x,
|
|
45
|
+
y
|
|
46
|
+
};
|
|
47
|
+
const at = (value, keyValue) => keyValue == null ? value : ctx.stackedValue(seriesKey, keyValue, value);
|
|
48
|
+
return ctx.valueAxis === "y" ? {
|
|
49
|
+
x1: x1Prop,
|
|
50
|
+
x2: x2Prop,
|
|
51
|
+
x,
|
|
52
|
+
y1: at(y1Prop, x1Prop ?? x),
|
|
53
|
+
y2: at(y2Prop, x2Prop ?? x),
|
|
54
|
+
y: at(y, x)
|
|
55
|
+
} : {
|
|
56
|
+
y1: y1Prop,
|
|
57
|
+
y2: y2Prop,
|
|
58
|
+
y,
|
|
59
|
+
x1: at(x1Prop, y1Prop ?? y),
|
|
60
|
+
x2: at(x2Prop, y2Prop ?? y),
|
|
61
|
+
x: at(x, y)
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
const line = derived(() => ({
|
|
65
|
+
x1: stacked().x1 != null ? ctx.xScale(stacked().x1) : stacked().x != null ? ctx.xScale(stacked().x) : ctx.xRange[0],
|
|
66
|
+
y1: stacked().y1 != null ? ctx.yScale(stacked().y1) : stacked().y != null && stacked().x == null ? ctx.yScale(stacked().y) : ctx.yRange[0],
|
|
67
|
+
x2: stacked().x2 != null ? ctx.xScale(stacked().x2) : stacked().x != null ? ctx.xScale(stacked().x) : ctx.xRange[1],
|
|
68
|
+
y2: stacked().y2 != null ? ctx.yScale(stacked().y2) : stacked().y != null ? ctx.yScale(stacked().y) : ctx.yRange[1]
|
|
69
|
+
}));
|
|
70
|
+
const isSloped = derived(() => !isVertical() && line().x1 !== line().x2 && line().y1 !== line().y2);
|
|
71
|
+
const slopeAngle = derived(() => {
|
|
72
|
+
let angle = Math.atan2(line().y2 - line().y1, line().x2 - line().x1) * (180 / Math.PI);
|
|
73
|
+
if (angle > 90) angle -= 180;
|
|
74
|
+
else if (angle < -90) angle += 180;
|
|
75
|
+
return angle;
|
|
76
|
+
});
|
|
77
|
+
const labelProps = derived(() => {
|
|
78
|
+
const isLeft = labelPlacement.includes("left");
|
|
79
|
+
const isRight = labelPlacement.includes("right");
|
|
80
|
+
const isTop = labelPlacement.includes("top");
|
|
81
|
+
const isBottom = labelPlacement.includes("bottom");
|
|
82
|
+
if (isVertical()) return {
|
|
83
|
+
x: line().x1 + (isLeft ? -labelXOffset : labelXOffset),
|
|
84
|
+
y: (isTop ? line().y2 : isBottom ? line().y1 : (line().y1 - line().y2) / 2) + ([
|
|
85
|
+
"top",
|
|
86
|
+
"bottom-left",
|
|
87
|
+
"bottom-right"
|
|
88
|
+
].includes(labelPlacement) ? -labelYOffset : labelYOffset),
|
|
89
|
+
dy: -2,
|
|
90
|
+
textAnchor: isLeft ? "end" : isRight ? "start" : "middle",
|
|
91
|
+
verticalAnchor: labelPlacement === "top" ? "end" : labelPlacement === "bottom" ? "start" : isTop ? "start" : isBottom ? "end" : "middle"
|
|
92
|
+
};
|
|
93
|
+
const _x = isLeft ? line().x1 : isRight ? line().x2 : (line().x1 + line().x2) / 2;
|
|
94
|
+
const _y = isLeft ? line().y1 : isRight ? line().y2 : (line().y1 + line().y2) / 2;
|
|
95
|
+
const textAnchor = labelPlacement === "left" ? "end" : labelPlacement === "right" ? "start" : isLeft ? "start" : isRight ? "end" : "middle";
|
|
96
|
+
const verticalAnchor = isTop ? "end" : isBottom ? "start" : "middle";
|
|
97
|
+
if (isSloped()) {
|
|
98
|
+
const aSign = [
|
|
99
|
+
"left",
|
|
100
|
+
"top-right",
|
|
101
|
+
"bottom-right"
|
|
102
|
+
].includes(labelPlacement) ? -1 : 1;
|
|
103
|
+
const pSign = isTop ? 1 : -1;
|
|
104
|
+
const alongLine = aSign * labelXOffset;
|
|
105
|
+
const perpAbove = pSign * labelYOffset + 2;
|
|
106
|
+
const theta = slopeAngle() * Math.PI / 180;
|
|
107
|
+
const cosT = Math.cos(theta);
|
|
108
|
+
const sinT = Math.sin(theta);
|
|
109
|
+
return {
|
|
110
|
+
x: _x,
|
|
111
|
+
y: _y,
|
|
112
|
+
rotate: slopeAngle(),
|
|
113
|
+
dx: alongLine * cosT + perpAbove * sinT,
|
|
114
|
+
dy: alongLine * sinT - perpAbove * cosT,
|
|
115
|
+
textAnchor,
|
|
116
|
+
verticalAnchor
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
x: _x + ([
|
|
121
|
+
"left",
|
|
122
|
+
"top-right",
|
|
123
|
+
"bottom-right"
|
|
124
|
+
].includes(labelPlacement) ? -labelXOffset : labelXOffset),
|
|
125
|
+
y: _y + (isTop ? -labelYOffset : labelYOffset),
|
|
126
|
+
dy: -2,
|
|
127
|
+
textAnchor,
|
|
128
|
+
verticalAnchor
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
if (Line) {
|
|
132
|
+
$$renderer.push("<!--[-->");
|
|
133
|
+
Line($$renderer, spread_props([
|
|
134
|
+
{
|
|
135
|
+
x1: line().x1,
|
|
136
|
+
y1: line().y1,
|
|
137
|
+
x2: line().x2,
|
|
138
|
+
y2: line().y2
|
|
139
|
+
},
|
|
140
|
+
props?.line,
|
|
141
|
+
{ class: cls("lc-annotation-line", props?.line?.class) }
|
|
142
|
+
]));
|
|
143
|
+
$$renderer.push("<!--]-->");
|
|
144
|
+
} else {
|
|
145
|
+
$$renderer.push("<!--[!-->");
|
|
146
|
+
$$renderer.push("<!--]-->");
|
|
147
|
+
}
|
|
148
|
+
$$renderer.push(` `);
|
|
149
|
+
if (label) {
|
|
150
|
+
$$renderer.push("<!--[0-->");
|
|
151
|
+
if (Text) {
|
|
152
|
+
$$renderer.push("<!--[-->");
|
|
153
|
+
Text($$renderer, spread_props([
|
|
154
|
+
{ value: label },
|
|
155
|
+
labelProps(),
|
|
156
|
+
props?.label,
|
|
157
|
+
{ class: cls("lc-annotation-line-label", props?.label?.class) }
|
|
158
|
+
]));
|
|
159
|
+
$$renderer.push("<!--]-->");
|
|
160
|
+
} else {
|
|
161
|
+
$$renderer.push("<!--[!-->");
|
|
162
|
+
$$renderer.push("<!--]-->");
|
|
163
|
+
}
|
|
164
|
+
} else $$renderer.push("<!--[-1-->");
|
|
165
|
+
$$renderer.push(`<!--]-->`);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#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/AnnotationLine/AnnotationLine.svg.svelte
|
|
170
|
+
function AnnotationLine_svg($$renderer, $$props) {
|
|
171
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
172
|
+
AnnotationLine_base($$renderer, spread_props([{
|
|
173
|
+
Line: Line_svg,
|
|
174
|
+
Text: Text_svg
|
|
175
|
+
}, props]));
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#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/AnnotationLine/AnnotationLine.canvas.svelte
|
|
179
|
+
function AnnotationLine_canvas($$renderer, $$props) {
|
|
180
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
181
|
+
AnnotationLine_base($$renderer, spread_props([{
|
|
182
|
+
Line: Line_canvas,
|
|
183
|
+
Text: Text_canvas
|
|
184
|
+
}, props]));
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
//#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/AnnotationLine/AnnotationLine.html.svelte
|
|
188
|
+
function AnnotationLine_html($$renderer, $$props) {
|
|
189
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
190
|
+
AnnotationLine_base($$renderer, spread_props([{
|
|
191
|
+
Line: Line_html,
|
|
192
|
+
Text: Text_html
|
|
193
|
+
}, props]));
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#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/AnnotationLine/AnnotationLine.svelte
|
|
197
|
+
function AnnotationLine($$renderer, $$props) {
|
|
198
|
+
$$renderer.component(($$renderer) => {
|
|
199
|
+
const layerCtx = getLayerContext();
|
|
200
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
201
|
+
if (layerCtx === "svg") {
|
|
202
|
+
$$renderer.push("<!--[0-->");
|
|
203
|
+
AnnotationLine_svg($$renderer, spread_props([props]));
|
|
204
|
+
} else if (layerCtx === "canvas") {
|
|
205
|
+
$$renderer.push("<!--[1-->");
|
|
206
|
+
AnnotationLine_canvas($$renderer, spread_props([props]));
|
|
207
|
+
} else if (layerCtx === "html") {
|
|
208
|
+
$$renderer.push("<!--[2-->");
|
|
209
|
+
AnnotationLine_html($$renderer, spread_props([props]));
|
|
210
|
+
} else $$renderer.push("<!--[-1-->");
|
|
211
|
+
$$renderer.push(`<!--]-->`);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#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/AnnotationPoint/AnnotationPoint.base.svelte
|
|
216
|
+
function AnnotationPoint_base($$renderer, $$props) {
|
|
217
|
+
$$renderer.component(($$renderer) => {
|
|
218
|
+
let { Circle, Link, Text, x, y, r = 4, label, labelPlacement = "center", labelXOffset = 0, labelYOffset = 0, labelX, labelY, seriesKey, fontSize = 12, labelGap = 2, link, details, props } = $$props;
|
|
219
|
+
const ctx = getChartContext();
|
|
220
|
+
const geo = getGeoContext();
|
|
221
|
+
const stackedX = derived(() => ctx.valueAxis === "x" ? ctx.stackedValue(seriesKey, y, x) : x);
|
|
222
|
+
const stackedY = derived(() => ctx.valueAxis === "y" ? ctx.stackedValue(seriesKey, x, y) : y);
|
|
223
|
+
const point = derived(() => {
|
|
224
|
+
if (geo.projection && typeof x === "number" && typeof y === "number") {
|
|
225
|
+
const [px, py] = geo.projection([x, y]) ?? [0, 0];
|
|
226
|
+
return {
|
|
227
|
+
x: px,
|
|
228
|
+
y: py
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
return {
|
|
232
|
+
x: stackedX() ? ctx.xScale(stackedX()) + (isScaleBand(ctx.xScale) ? ctx.xScale.bandwidth() / 2 : 0) : 0,
|
|
233
|
+
y: stackedY() ? ctx.yScale(stackedY()) + (isScaleBand(ctx.yScale) ? ctx.yScale.bandwidth() / 2 : 0) : ctx.height
|
|
234
|
+
};
|
|
235
|
+
});
|
|
236
|
+
const labelLayout = derived(() => getPointLabelLayout({
|
|
237
|
+
x: point().x,
|
|
238
|
+
y: point().y,
|
|
239
|
+
r,
|
|
240
|
+
labelPlacement,
|
|
241
|
+
labelX,
|
|
242
|
+
labelY,
|
|
243
|
+
labelXOffset,
|
|
244
|
+
labelYOffset,
|
|
245
|
+
fontSize: getPixelValue(fontSize),
|
|
246
|
+
labelGap,
|
|
247
|
+
link: !!link,
|
|
248
|
+
verticalAnchor: props?.label?.verticalAnchor
|
|
249
|
+
}));
|
|
250
|
+
const labelProps = derived(() => ({
|
|
251
|
+
...labelLayout().text,
|
|
252
|
+
fontSize
|
|
253
|
+
}));
|
|
254
|
+
const linkEndpoints = derived(() => {
|
|
255
|
+
if (!link) return null;
|
|
256
|
+
const a = labelLayout().anchor;
|
|
257
|
+
if (labelPlacement === "smart") {
|
|
258
|
+
const dx = a.x - point().x;
|
|
259
|
+
const dy = a.y - point().y;
|
|
260
|
+
const dist = Math.hypot(dx, dy);
|
|
261
|
+
if (dist <= r) return null;
|
|
262
|
+
return {
|
|
263
|
+
source: {
|
|
264
|
+
x: point().x + r * dx / dist,
|
|
265
|
+
y: point().y + r * dy / dist
|
|
266
|
+
},
|
|
267
|
+
target: {
|
|
268
|
+
x: a.x,
|
|
269
|
+
y: a.y
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
const { x: dirX, y: dirY } = labelLayout().direction;
|
|
274
|
+
if (dirX === 0 && dirY === 0) return null;
|
|
275
|
+
const mag = Math.hypot(dirX, dirY);
|
|
276
|
+
return {
|
|
277
|
+
source: {
|
|
278
|
+
x: point().x + r * dirX / mag,
|
|
279
|
+
y: point().y + r * dirY / mag
|
|
280
|
+
},
|
|
281
|
+
target: {
|
|
282
|
+
x: a.x,
|
|
283
|
+
y: a.y
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
});
|
|
287
|
+
const linkProps = derived(() => typeof link === "object" ? link : {});
|
|
288
|
+
function onPointerMove(e) {
|
|
289
|
+
if (details) {
|
|
290
|
+
e.stopPropagation();
|
|
291
|
+
ctx.tooltip.show(e, { annotation: {
|
|
292
|
+
label,
|
|
293
|
+
details
|
|
294
|
+
} });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function onPointerLeave(e) {
|
|
298
|
+
if (details) {
|
|
299
|
+
e.stopPropagation();
|
|
300
|
+
ctx.tooltip.hide();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
if (Circle) {
|
|
304
|
+
$$renderer.push("<!--[-->");
|
|
305
|
+
Circle($$renderer, spread_props([
|
|
306
|
+
{
|
|
307
|
+
cx: point().x,
|
|
308
|
+
cy: point().y,
|
|
309
|
+
r,
|
|
310
|
+
onpointermove: onPointerMove,
|
|
311
|
+
onmousemove: onPointerMove,
|
|
312
|
+
ontouchmove: onPointerMove,
|
|
313
|
+
onpointerleave: onPointerLeave,
|
|
314
|
+
onmouseleave: onPointerLeave,
|
|
315
|
+
ontouchend: onPointerLeave
|
|
316
|
+
},
|
|
317
|
+
props?.circle,
|
|
318
|
+
{ class: cls("lc-annotation-point", link && "lc-annotation-point-ring", props?.circle?.class) }
|
|
319
|
+
]));
|
|
320
|
+
$$renderer.push("<!--]-->");
|
|
321
|
+
} else {
|
|
322
|
+
$$renderer.push("<!--[!-->");
|
|
323
|
+
$$renderer.push("<!--]-->");
|
|
324
|
+
}
|
|
325
|
+
$$renderer.push(` `);
|
|
326
|
+
if (linkEndpoints() && Link) {
|
|
327
|
+
$$renderer.push("<!--[0-->");
|
|
328
|
+
if (Link) {
|
|
329
|
+
$$renderer.push("<!--[-->");
|
|
330
|
+
Link($$renderer, spread_props([
|
|
331
|
+
{
|
|
332
|
+
x1: linkEndpoints().source.x,
|
|
333
|
+
y1: linkEndpoints().source.y,
|
|
334
|
+
x2: linkEndpoints().target.x,
|
|
335
|
+
y2: linkEndpoints().target.y,
|
|
336
|
+
type: "straight"
|
|
337
|
+
},
|
|
338
|
+
linkProps(),
|
|
339
|
+
{ class: cls("lc-annotation-point-link", typeof linkProps().class === "string" ? linkProps().class : void 0) }
|
|
340
|
+
]));
|
|
341
|
+
$$renderer.push("<!--]-->");
|
|
342
|
+
} else {
|
|
343
|
+
$$renderer.push("<!--[!-->");
|
|
344
|
+
$$renderer.push("<!--]-->");
|
|
345
|
+
}
|
|
346
|
+
} else $$renderer.push("<!--[-1-->");
|
|
347
|
+
$$renderer.push(`<!--]--> `);
|
|
348
|
+
if (label) {
|
|
349
|
+
$$renderer.push("<!--[0-->");
|
|
350
|
+
if (Text) {
|
|
351
|
+
$$renderer.push("<!--[-->");
|
|
352
|
+
Text($$renderer, spread_props([
|
|
353
|
+
{ value: label },
|
|
354
|
+
labelProps(),
|
|
355
|
+
props?.label,
|
|
356
|
+
{ class: cls("lc-annotation-point-label", props?.label?.class) }
|
|
357
|
+
]));
|
|
358
|
+
$$renderer.push("<!--]-->");
|
|
359
|
+
} else {
|
|
360
|
+
$$renderer.push("<!--[!-->");
|
|
361
|
+
$$renderer.push("<!--]-->");
|
|
362
|
+
}
|
|
363
|
+
} else $$renderer.push("<!--[-1-->");
|
|
364
|
+
$$renderer.push(`<!--]-->`);
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
//#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/AnnotationPoint/AnnotationPoint.svg.svelte
|
|
369
|
+
function AnnotationPoint_svg($$renderer, $$props) {
|
|
370
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
371
|
+
AnnotationPoint_base($$renderer, spread_props([{
|
|
372
|
+
Circle: Circle_svg,
|
|
373
|
+
Link: Link_svg,
|
|
374
|
+
Text: Text_svg
|
|
375
|
+
}, props]));
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
//#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/AnnotationPoint/AnnotationPoint.canvas.svelte
|
|
379
|
+
function AnnotationPoint_canvas($$renderer, $$props) {
|
|
380
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
381
|
+
AnnotationPoint_base($$renderer, spread_props([{
|
|
382
|
+
Circle: Circle_canvas,
|
|
383
|
+
Link: Link_canvas,
|
|
384
|
+
Text: Text_canvas
|
|
385
|
+
}, props]));
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#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/AnnotationPoint/AnnotationPoint.html.svelte
|
|
389
|
+
function AnnotationPoint_html($$renderer, $$props) {
|
|
390
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
391
|
+
AnnotationPoint_base($$renderer, spread_props([{
|
|
392
|
+
Circle: Circle_html,
|
|
393
|
+
Text: Text_html
|
|
394
|
+
}, props]));
|
|
395
|
+
}
|
|
396
|
+
//#endregion
|
|
397
|
+
//#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/AnnotationPoint/AnnotationPoint.svelte
|
|
398
|
+
function AnnotationPoint($$renderer, $$props) {
|
|
399
|
+
$$renderer.component(($$renderer) => {
|
|
400
|
+
const layerCtx = getLayerContext();
|
|
401
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
402
|
+
if (layerCtx === "svg") {
|
|
403
|
+
$$renderer.push("<!--[0-->");
|
|
404
|
+
AnnotationPoint_svg($$renderer, spread_props([props]));
|
|
405
|
+
} else if (layerCtx === "canvas") {
|
|
406
|
+
$$renderer.push("<!--[1-->");
|
|
407
|
+
AnnotationPoint_canvas($$renderer, spread_props([props]));
|
|
408
|
+
} else if (layerCtx === "html") {
|
|
409
|
+
$$renderer.push("<!--[2-->");
|
|
410
|
+
AnnotationPoint_html($$renderer, spread_props([props]));
|
|
411
|
+
} else $$renderer.push("<!--[-1-->");
|
|
412
|
+
$$renderer.push(`<!--]-->`);
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
//#endregion
|
|
416
|
+
//#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/AnnotationRange/AnnotationRange.base.svelte
|
|
417
|
+
function AnnotationRange_base($$renderer, $$props) {
|
|
418
|
+
$$renderer.component(($$renderer) => {
|
|
419
|
+
let { LinearGradient, Pattern, Rect, Text, x, y, fill, class: className, gradient, pattern, label, labelPlacement = "center", labelXOffset = 0, labelYOffset = 0, props } = $$props;
|
|
420
|
+
const ctx = getChartContext();
|
|
421
|
+
const rect = derived(() => {
|
|
422
|
+
const x0FromScale = x?.[0] != null;
|
|
423
|
+
const x1FromScale = x?.[1] != null;
|
|
424
|
+
const x0 = x0FromScale ? ctx.xScale(x[0]) : ctx.xRange[0];
|
|
425
|
+
const x1 = x1FromScale ? ctx.xScale(x[1]) : ctx.xRange[1];
|
|
426
|
+
const y0 = y?.[0] != null ? ctx.yScale(y[0]) : ctx.yRange[0];
|
|
427
|
+
const y1 = y?.[1] != null ? ctx.yScale(y[1]) : ctx.yRange[1];
|
|
428
|
+
const bandPadding = isScaleBand(ctx.xScale) ? ctx.xScale.padding() * ctx.xScale.step() / 2 : 0;
|
|
429
|
+
const bandStep = isScaleBand(ctx.xScale) ? ctx.xScale.step() : 0;
|
|
430
|
+
const leftFromScale = x0 <= x1 ? x0FromScale : x1FromScale;
|
|
431
|
+
const rightFromScale = x0 <= x1 ? x1FromScale : x0FromScale;
|
|
432
|
+
const left = Math.min(x0, x1) - (leftFromScale ? bandPadding : 0);
|
|
433
|
+
const right = Math.max(x0, x1) + (rightFromScale ? bandStep - bandPadding : 0);
|
|
434
|
+
return {
|
|
435
|
+
x: left,
|
|
436
|
+
y: Math.min(y0, y1),
|
|
437
|
+
width: right - left,
|
|
438
|
+
height: Math.abs(y1 - y0)
|
|
439
|
+
};
|
|
440
|
+
});
|
|
441
|
+
const labelProps = derived(() => ({
|
|
442
|
+
x: ((labelPlacement.includes("left") ? rect().x : labelPlacement.includes("right") ? (rect().x ?? 0) + rect().width : (rect().x ?? 0) + rect().width / 2) ?? 0) + (labelPlacement.includes("right") ? -labelXOffset : labelXOffset),
|
|
443
|
+
y: ((labelPlacement.includes("top") ? rect().y : labelPlacement.includes("bottom") ? (rect().y ?? 0) + rect().height : (rect().y ?? 0) + rect().height / 2) ?? 0) + (labelPlacement.includes("bottom") ? -labelYOffset : labelYOffset),
|
|
444
|
+
dy: -2,
|
|
445
|
+
textAnchor: labelPlacement.includes("left") ? "start" : labelPlacement.includes("right") ? "end" : "middle",
|
|
446
|
+
verticalAnchor: labelPlacement.includes("top") ? "start" : labelPlacement.includes("bottom") ? "end" : "middle"
|
|
447
|
+
}));
|
|
448
|
+
if (fill || className) {
|
|
449
|
+
$$renderer.push("<!--[0-->");
|
|
450
|
+
if (Rect) {
|
|
451
|
+
$$renderer.push("<!--[-->");
|
|
452
|
+
Rect($$renderer, spread_props([
|
|
453
|
+
rect(),
|
|
454
|
+
props?.rect,
|
|
455
|
+
{
|
|
456
|
+
fill,
|
|
457
|
+
class: cls("lc-annotation-range", props?.rect?.class, className)
|
|
458
|
+
}
|
|
459
|
+
]));
|
|
460
|
+
$$renderer.push("<!--]-->");
|
|
461
|
+
} else {
|
|
462
|
+
$$renderer.push("<!--[!-->");
|
|
463
|
+
$$renderer.push("<!--]-->");
|
|
464
|
+
}
|
|
465
|
+
} else $$renderer.push("<!--[-1-->");
|
|
466
|
+
$$renderer.push(`<!--]--> `);
|
|
467
|
+
if (gradient) {
|
|
468
|
+
$$renderer.push("<!--[0-->");
|
|
469
|
+
{
|
|
470
|
+
function children($$renderer, { gradient }) {
|
|
471
|
+
if (Rect) {
|
|
472
|
+
$$renderer.push("<!--[-->");
|
|
473
|
+
Rect($$renderer, spread_props([
|
|
474
|
+
rect(),
|
|
475
|
+
props?.rect,
|
|
476
|
+
{ fill: gradient }
|
|
477
|
+
]));
|
|
478
|
+
$$renderer.push("<!--]-->");
|
|
479
|
+
} else {
|
|
480
|
+
$$renderer.push("<!--[!-->");
|
|
481
|
+
$$renderer.push("<!--]-->");
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if (LinearGradient) {
|
|
485
|
+
$$renderer.push("<!--[-->");
|
|
486
|
+
LinearGradient($$renderer, spread_props([gradient, {
|
|
487
|
+
children,
|
|
488
|
+
$$slots: { default: true }
|
|
489
|
+
}]));
|
|
490
|
+
$$renderer.push("<!--]-->");
|
|
491
|
+
} else {
|
|
492
|
+
$$renderer.push("<!--[!-->");
|
|
493
|
+
$$renderer.push("<!--]-->");
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
} else $$renderer.push("<!--[-1-->");
|
|
497
|
+
$$renderer.push(`<!--]--> `);
|
|
498
|
+
if (pattern) {
|
|
499
|
+
$$renderer.push("<!--[0-->");
|
|
500
|
+
{
|
|
501
|
+
function children($$renderer, { pattern }) {
|
|
502
|
+
if (Rect) {
|
|
503
|
+
$$renderer.push("<!--[-->");
|
|
504
|
+
Rect($$renderer, spread_props([
|
|
505
|
+
rect(),
|
|
506
|
+
props?.rect,
|
|
507
|
+
{ fill: pattern }
|
|
508
|
+
]));
|
|
509
|
+
$$renderer.push("<!--]-->");
|
|
510
|
+
} else {
|
|
511
|
+
$$renderer.push("<!--[!-->");
|
|
512
|
+
$$renderer.push("<!--]-->");
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
if (Pattern) {
|
|
516
|
+
$$renderer.push("<!--[-->");
|
|
517
|
+
Pattern($$renderer, spread_props([pattern, {
|
|
518
|
+
children,
|
|
519
|
+
$$slots: { default: true }
|
|
520
|
+
}]));
|
|
521
|
+
$$renderer.push("<!--]-->");
|
|
522
|
+
} else {
|
|
523
|
+
$$renderer.push("<!--[!-->");
|
|
524
|
+
$$renderer.push("<!--]-->");
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
} else $$renderer.push("<!--[-1-->");
|
|
528
|
+
$$renderer.push(`<!--]--> `);
|
|
529
|
+
if (label) {
|
|
530
|
+
$$renderer.push("<!--[0-->");
|
|
531
|
+
if (Text) {
|
|
532
|
+
$$renderer.push("<!--[-->");
|
|
533
|
+
Text($$renderer, spread_props([
|
|
534
|
+
{ value: label },
|
|
535
|
+
labelProps(),
|
|
536
|
+
props?.label,
|
|
537
|
+
{ class: cls("lc-annotation-range-label", props?.label?.class) }
|
|
538
|
+
]));
|
|
539
|
+
$$renderer.push("<!--]-->");
|
|
540
|
+
} else {
|
|
541
|
+
$$renderer.push("<!--[!-->");
|
|
542
|
+
$$renderer.push("<!--]-->");
|
|
543
|
+
}
|
|
544
|
+
} else $$renderer.push("<!--[-1-->");
|
|
545
|
+
$$renderer.push(`<!--]-->`);
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
//#endregion
|
|
549
|
+
//#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/LinearGradient/LinearGradient.svg.svelte
|
|
550
|
+
function LinearGradient_svg($$renderer, $$props) {
|
|
551
|
+
$$renderer.component(($$renderer) => {
|
|
552
|
+
const uid = props_id($$renderer);
|
|
553
|
+
let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, x1 = "0%", y1 = "0%", x2 = vertical ? "0%" : "100%", y2 = vertical ? "100%" : "0%", rotate, units = "objectBoundingBox", ref: refProp = void 0, class: className, stopsContent, children, $$slots, $$events, ...rest } = $$props;
|
|
554
|
+
$$renderer.push(`<defs><linearGradient${attributes({
|
|
555
|
+
id,
|
|
556
|
+
x1,
|
|
557
|
+
y1,
|
|
558
|
+
x2,
|
|
559
|
+
y2,
|
|
560
|
+
gradientTransform: rotate ? `rotate(${rotate})` : "",
|
|
561
|
+
gradientUnits: units,
|
|
562
|
+
...extractLayerProps(rest, "lc-linear-gradient")
|
|
563
|
+
}, void 0, void 0, void 0, 3)}>`);
|
|
564
|
+
if (stopsContent) {
|
|
565
|
+
$$renderer.push("<!--[0-->");
|
|
566
|
+
stopsContent?.($$renderer);
|
|
567
|
+
$$renderer.push(`<!---->`);
|
|
568
|
+
} else if (stops) {
|
|
569
|
+
$$renderer.push(`<!--[1--><!--[-->`);
|
|
570
|
+
const each_array = ensure_array_like(stops);
|
|
571
|
+
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
572
|
+
let stop = each_array[i];
|
|
573
|
+
if (Array.isArray(stop)) $$renderer.push(`<!--[0--><stop${attr("offset", stop[0])}${attr("stop-color", stop[1])}${attr_class(clsx(cls("lc-linear-gradient-stop", className)))}></stop>`);
|
|
574
|
+
else $$renderer.push(`<!--[-1--><stop${attr("offset", `${stringify(i * (100 / (stops.length - 1)))}%`)}${attr("stop-color", stop)}${attr_class(clsx(cls("lc-linear-gradient-stop", className)))}></stop>`);
|
|
575
|
+
$$renderer.push(`<!--]-->`);
|
|
576
|
+
}
|
|
577
|
+
$$renderer.push(`<!--]-->`);
|
|
578
|
+
} else $$renderer.push("<!--[-1-->");
|
|
579
|
+
$$renderer.push(`<!--]--></linearGradient></defs>`);
|
|
580
|
+
children?.($$renderer, {
|
|
581
|
+
id,
|
|
582
|
+
gradient: `url(#${id})`
|
|
583
|
+
});
|
|
584
|
+
$$renderer.push(`<!---->`);
|
|
585
|
+
bind_props($$props, { ref: refProp });
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
//#endregion
|
|
589
|
+
//#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/Pattern/Pattern.shared.svelte.js
|
|
590
|
+
function buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp) {
|
|
591
|
+
const shapes = [];
|
|
592
|
+
if (linesProp) {
|
|
593
|
+
const lineDefs = Array.isArray(linesProp) ? linesProp : linesProp === true ? [{}] : [linesProp];
|
|
594
|
+
for (const line of lineDefs) {
|
|
595
|
+
const stroke = line.color ?? "var(--color-surface-content, currentColor)";
|
|
596
|
+
const strokeWidth = line.width ?? 1;
|
|
597
|
+
const opacity = line.opacity ?? 1;
|
|
598
|
+
let rotate = Math.round(line.rotate ?? 0) % 360;
|
|
599
|
+
if (rotate > 180) rotate = rotate - 360;
|
|
600
|
+
else if (rotate > 90) rotate = rotate - 180;
|
|
601
|
+
else if (rotate < -180) rotate = rotate + 360;
|
|
602
|
+
else if (rotate < -90) rotate = rotate + 180;
|
|
603
|
+
let path = "";
|
|
604
|
+
if (rotate === 0) path = `
|
|
605
|
+
M 0 0 L ${width} 0
|
|
606
|
+
M 0 ${height} L ${width} ${height}
|
|
607
|
+
`;
|
|
608
|
+
else if (rotate === 90) path = `
|
|
609
|
+
M 0 0 L 0 ${height}
|
|
610
|
+
M ${width} 0 L ${width} ${height}
|
|
611
|
+
`;
|
|
612
|
+
else if (rotate > 0) path = `
|
|
613
|
+
M 0 ${-height} L ${width * 2} ${height}
|
|
614
|
+
M ${-width} ${-height} L ${width} ${height}
|
|
615
|
+
M ${-width} 0 L ${width} ${height * 2}
|
|
616
|
+
`;
|
|
617
|
+
else path = `
|
|
618
|
+
M ${-width} ${height} L ${width} ${-height}
|
|
619
|
+
M ${-width} ${height * 2} L ${width * 2} ${-height}
|
|
620
|
+
M 0 ${height * 2} L ${width * 2} 0
|
|
621
|
+
`;
|
|
622
|
+
shapes.push({
|
|
623
|
+
type: "line",
|
|
624
|
+
path,
|
|
625
|
+
stroke,
|
|
626
|
+
strokeWidth,
|
|
627
|
+
opacity
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
if (circlesProp) {
|
|
632
|
+
const circleDefs = Array.isArray(circlesProp) ? circlesProp : circlesProp === true ? [{}] : [circlesProp];
|
|
633
|
+
for (const circle of circleDefs) {
|
|
634
|
+
const fill = circle.color ?? "var(--color-surface-content, currentColor)";
|
|
635
|
+
const opacity = circle.opacity ?? 1;
|
|
636
|
+
const r = circle.radius ?? 1;
|
|
637
|
+
if (circle.stagger) shapes.push({
|
|
638
|
+
type: "circle",
|
|
639
|
+
cx: size / 4,
|
|
640
|
+
cy: size / 4,
|
|
641
|
+
r,
|
|
642
|
+
fill,
|
|
643
|
+
opacity
|
|
644
|
+
}, {
|
|
645
|
+
type: "circle",
|
|
646
|
+
cx: size * 3 / 4,
|
|
647
|
+
cy: size * 3 / 4,
|
|
648
|
+
r,
|
|
649
|
+
fill,
|
|
650
|
+
opacity
|
|
651
|
+
});
|
|
652
|
+
else shapes.push({
|
|
653
|
+
type: "circle",
|
|
654
|
+
cx: size / 2,
|
|
655
|
+
cy: size / 2,
|
|
656
|
+
r,
|
|
657
|
+
fill,
|
|
658
|
+
opacity
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
if (rectsProp) {
|
|
663
|
+
const rectDefs = Array.isArray(rectsProp) ? rectsProp : rectsProp === true ? [{}] : [rectsProp];
|
|
664
|
+
for (const rect of rectDefs) {
|
|
665
|
+
const inset = rect.inset ?? 0;
|
|
666
|
+
const fill = rect.color ?? "var(--color-surface-content, currentColor)";
|
|
667
|
+
const opacity = rect.opacity ?? 1;
|
|
668
|
+
shapes.push({
|
|
669
|
+
type: "rect",
|
|
670
|
+
x: inset,
|
|
671
|
+
y: inset,
|
|
672
|
+
width: Math.max(0, width - 2 * inset),
|
|
673
|
+
height: Math.max(0, height - 2 * inset),
|
|
674
|
+
rx: rect.rx,
|
|
675
|
+
ry: rect.ry,
|
|
676
|
+
fill,
|
|
677
|
+
opacity
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
return shapes;
|
|
682
|
+
}
|
|
683
|
+
//#endregion
|
|
684
|
+
//#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/Pattern/Pattern.svg.svelte
|
|
685
|
+
function Pattern_svg($$renderer, $$props) {
|
|
686
|
+
$$renderer.component(($$renderer) => {
|
|
687
|
+
const uid = props_id($$renderer);
|
|
688
|
+
let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, rects: rectsProp, background, patternContent, children, $$slots, $$events, ...rest } = $$props;
|
|
689
|
+
const shapes = derived(() => buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp));
|
|
690
|
+
$$renderer.push(`<defs><pattern${attributes({
|
|
691
|
+
id,
|
|
692
|
+
width,
|
|
693
|
+
height,
|
|
694
|
+
patternUnits: "userSpaceOnUse",
|
|
695
|
+
...extractLayerProps(rest, "lc-pattern")
|
|
696
|
+
}, void 0, void 0, void 0, 3)}>`);
|
|
697
|
+
if (patternContent) {
|
|
698
|
+
$$renderer.push("<!--[0-->");
|
|
699
|
+
patternContent?.($$renderer);
|
|
700
|
+
$$renderer.push(`<!---->`);
|
|
701
|
+
} else {
|
|
702
|
+
$$renderer.push("<!--[-1-->");
|
|
703
|
+
if (background) $$renderer.push(`<!--[0--><rect${attr("width", width)}${attr("height", height)}${attr("fill", background)}></rect>`);
|
|
704
|
+
else $$renderer.push("<!--[-1-->");
|
|
705
|
+
$$renderer.push(`<!--]--><!--[-->`);
|
|
706
|
+
const each_array = ensure_array_like(shapes().filter((s) => s.type === "line"));
|
|
707
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
708
|
+
let line = each_array[$$index];
|
|
709
|
+
$$renderer.push(`<path${attr("d", line.path)}${attr("stroke", line.stroke)}${attr("stroke-width", line.strokeWidth)} fill="none"${attr("opacity", line.opacity)}></path>`);
|
|
710
|
+
}
|
|
711
|
+
$$renderer.push(`<!--]--><!--[-->`);
|
|
712
|
+
const each_array_1 = ensure_array_like(shapes().filter((s) => s.type === "circle"));
|
|
713
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
714
|
+
let circle = each_array_1[$$index_1];
|
|
715
|
+
$$renderer.push(`<circle${attr("cx", circle.cx)}${attr("cy", circle.cy)}${attr("r", circle.r)}${attr("fill", circle.fill)}${attr("opacity", circle.opacity)}></circle>`);
|
|
716
|
+
}
|
|
717
|
+
$$renderer.push(`<!--]--><!--[-->`);
|
|
718
|
+
const each_array_2 = ensure_array_like(shapes().filter((s) => s.type === "rect"));
|
|
719
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
720
|
+
let rect = each_array_2[$$index_2];
|
|
721
|
+
$$renderer.push(`<rect${attr("x", rect.x)}${attr("y", rect.y)}${attr("width", rect.width)}${attr("height", rect.height)}${attr("rx", rect.rx)}${attr("ry", rect.ry)}${attr("fill", rect.fill)}${attr("opacity", rect.opacity)}></rect>`);
|
|
722
|
+
}
|
|
723
|
+
$$renderer.push(`<!--]-->`);
|
|
724
|
+
}
|
|
725
|
+
$$renderer.push(`<!--]--></pattern></defs>`);
|
|
726
|
+
children?.($$renderer, {
|
|
727
|
+
id,
|
|
728
|
+
pattern: `url(#${id})`
|
|
729
|
+
});
|
|
730
|
+
$$renderer.push(`<!---->`);
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
//#endregion
|
|
734
|
+
//#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/AnnotationRange/AnnotationRange.svg.svelte
|
|
735
|
+
function AnnotationRange_svg($$renderer, $$props) {
|
|
736
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
737
|
+
AnnotationRange_base($$renderer, spread_props([{
|
|
738
|
+
LinearGradient: LinearGradient_svg,
|
|
739
|
+
Pattern: Pattern_svg,
|
|
740
|
+
Rect: Rect_svg,
|
|
741
|
+
Text: Text_svg
|
|
742
|
+
}, props]));
|
|
743
|
+
}
|
|
744
|
+
//#endregion
|
|
745
|
+
//#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/LinearGradient/LinearGradient.canvas.svelte
|
|
746
|
+
function LinearGradient_canvas($$renderer, $$props) {
|
|
747
|
+
$$renderer.component(($$renderer) => {
|
|
748
|
+
const uid = props_id($$renderer);
|
|
749
|
+
let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, x1 = "0%", y1 = "0%", x2 = vertical ? "0%" : "100%", y2 = vertical ? "100%" : "0%", class: className, children, $$slots, $$events, ...rest } = $$props;
|
|
750
|
+
const ctx = getChartContext();
|
|
751
|
+
let canvasGradient = void 0;
|
|
752
|
+
function render(_ctx) {
|
|
753
|
+
const _stops = stops.map((stop, i) => {
|
|
754
|
+
if (Array.isArray(stop)) {
|
|
755
|
+
const { fill } = getComputedStyles(_ctx.canvas, {
|
|
756
|
+
styles: { fill: stop[1] },
|
|
757
|
+
classes: className
|
|
758
|
+
});
|
|
759
|
+
return {
|
|
760
|
+
offset: parsePercent(stop[0]),
|
|
761
|
+
color: fill
|
|
762
|
+
};
|
|
763
|
+
} else {
|
|
764
|
+
const { fill } = getComputedStyles(_ctx.canvas, {
|
|
765
|
+
styles: { fill: stop },
|
|
766
|
+
classes: className
|
|
767
|
+
});
|
|
768
|
+
return {
|
|
769
|
+
offset: i / (stops.length - 1),
|
|
770
|
+
color: fill
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
canvasGradient = createLinearGradient(_ctx, ctx.padding.left, ctx.padding.top, vertical ? ctx.padding.left : ctx.width - ctx.padding.right, vertical ? ctx.height + ctx.padding.bottom : ctx.padding.top, _stops);
|
|
775
|
+
}
|
|
776
|
+
ctx.registerComponent({
|
|
777
|
+
name: "Gradient",
|
|
778
|
+
kind: "group",
|
|
779
|
+
canvasRender: {
|
|
780
|
+
render,
|
|
781
|
+
deps: () => [
|
|
782
|
+
x1,
|
|
783
|
+
y1,
|
|
784
|
+
x2,
|
|
785
|
+
y2,
|
|
786
|
+
stops,
|
|
787
|
+
className
|
|
788
|
+
]
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
children?.($$renderer, {
|
|
792
|
+
id,
|
|
793
|
+
gradient: asAny(canvasGradient)
|
|
794
|
+
});
|
|
795
|
+
$$renderer.push(`<!---->`);
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
//#endregion
|
|
799
|
+
//#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/Pattern/Pattern.canvas.svelte
|
|
800
|
+
function Pattern_canvas($$renderer, $$props) {
|
|
801
|
+
$$renderer.component(($$renderer) => {
|
|
802
|
+
const uid = props_id($$renderer);
|
|
803
|
+
const chartCtx = getChartContext();
|
|
804
|
+
let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, rects: rectsProp, background, children } = $$props;
|
|
805
|
+
const shapes = derived(() => buildPatternShapes(linesProp, circlesProp, size, width, height, rectsProp));
|
|
806
|
+
let canvasPattern = null;
|
|
807
|
+
function render(_ctx) {
|
|
808
|
+
canvasPattern = createPattern(_ctx, width, height, shapes(), background);
|
|
809
|
+
}
|
|
810
|
+
chartCtx.registerComponent({
|
|
811
|
+
name: "Pattern",
|
|
812
|
+
kind: "group",
|
|
813
|
+
canvasRender: {
|
|
814
|
+
render,
|
|
815
|
+
deps: () => [
|
|
816
|
+
width,
|
|
817
|
+
height,
|
|
818
|
+
shapes(),
|
|
819
|
+
background
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
children?.($$renderer, {
|
|
824
|
+
id,
|
|
825
|
+
pattern: asAny(canvasPattern)
|
|
826
|
+
});
|
|
827
|
+
$$renderer.push(`<!---->`);
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
//#endregion
|
|
831
|
+
//#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/AnnotationRange/AnnotationRange.canvas.svelte
|
|
832
|
+
function AnnotationRange_canvas($$renderer, $$props) {
|
|
833
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
834
|
+
AnnotationRange_base($$renderer, spread_props([{
|
|
835
|
+
LinearGradient: LinearGradient_canvas,
|
|
836
|
+
Pattern: Pattern_canvas,
|
|
837
|
+
Rect: Rect_canvas,
|
|
838
|
+
Text: Text_canvas
|
|
839
|
+
}, props]));
|
|
840
|
+
}
|
|
841
|
+
//#endregion
|
|
842
|
+
//#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/LinearGradient/LinearGradient.html.svelte
|
|
843
|
+
function LinearGradient_html($$renderer, $$props) {
|
|
844
|
+
$$renderer.component(($$renderer) => {
|
|
845
|
+
const uid = props_id($$renderer);
|
|
846
|
+
let { id = createId("linearGradient-", uid), stops = ["var(--tw-gradient-from)", "var(--tw-gradient-to)"], vertical = false, rotate, children } = $$props;
|
|
847
|
+
function createCSSGradient() {
|
|
848
|
+
if (!stops?.length) return "";
|
|
849
|
+
let direction;
|
|
850
|
+
if (rotate !== void 0) direction = `${(vertical ? 180 : 90) + rotate}deg`;
|
|
851
|
+
else direction = vertical ? "to bottom" : "to right";
|
|
852
|
+
const cssStops = stops.map((stop, i) => {
|
|
853
|
+
if (Array.isArray(stop)) return `${stop[1]} ${stop[0]}`;
|
|
854
|
+
else return `${stop} ${i * (100 / (stops.length - 1))}%`;
|
|
855
|
+
}).join(", ");
|
|
856
|
+
return `linear-gradient(${direction}, ${cssStops})`;
|
|
857
|
+
}
|
|
858
|
+
children?.($$renderer, {
|
|
859
|
+
id,
|
|
860
|
+
gradient: createCSSGradient()
|
|
861
|
+
});
|
|
862
|
+
$$renderer.push(`<!---->`);
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
//#endregion
|
|
866
|
+
//#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/Pattern/Pattern.html.svelte
|
|
867
|
+
function Pattern_html($$renderer, $$props) {
|
|
868
|
+
$$renderer.component(($$renderer) => {
|
|
869
|
+
const uid = props_id($$renderer);
|
|
870
|
+
let { id = createId("pattern-", uid), size = 4, width = size, height = size, lines: linesProp, circles: circlesProp, background, children } = $$props;
|
|
871
|
+
function withOpacity(color, opacity) {
|
|
872
|
+
return opacity === 1 ? color : `color-mix(in srgb, ${color} ${opacity * 100}%, transparent)`;
|
|
873
|
+
}
|
|
874
|
+
function createCSSPattern() {
|
|
875
|
+
const layers = [];
|
|
876
|
+
if (linesProp) {
|
|
877
|
+
const lineDefs = Array.isArray(linesProp) ? linesProp : linesProp === true ? [{}] : [linesProp];
|
|
878
|
+
for (const line of lineDefs) {
|
|
879
|
+
const color = withOpacity(line.color ?? "var(--color-surface-content, currentColor)", line.opacity ?? 1);
|
|
880
|
+
const sw = line.width ?? 1;
|
|
881
|
+
let rotate = Math.round(line.rotate ?? 0) % 360;
|
|
882
|
+
if (rotate > 180) rotate = rotate - 360;
|
|
883
|
+
else if (rotate > 90) rotate = rotate - 180;
|
|
884
|
+
else if (rotate < -180) rotate = rotate + 360;
|
|
885
|
+
else if (rotate < -90) rotate = rotate + 180;
|
|
886
|
+
let angle;
|
|
887
|
+
let period;
|
|
888
|
+
if (rotate === 0) {
|
|
889
|
+
angle = 0;
|
|
890
|
+
period = height;
|
|
891
|
+
} else if (rotate === 90) {
|
|
892
|
+
angle = 90;
|
|
893
|
+
period = width;
|
|
894
|
+
} else if (rotate > 0) {
|
|
895
|
+
angle = 45;
|
|
896
|
+
period = width * height / Math.sqrt(width * width + height * height);
|
|
897
|
+
} else {
|
|
898
|
+
angle = 135;
|
|
899
|
+
period = width * height / Math.sqrt(width * width + height * height);
|
|
900
|
+
}
|
|
901
|
+
layers.push(`repeating-linear-gradient(${angle}deg, ${color} 0 ${sw}px, transparent ${sw}px ${period}px)`);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (circlesProp) {
|
|
905
|
+
const circleDefs = Array.isArray(circlesProp) ? circlesProp : circlesProp === true ? [{}] : [circlesProp];
|
|
906
|
+
for (const circle of circleDefs) {
|
|
907
|
+
const color = withOpacity(circle.color ?? "var(--color-surface-content, currentColor)", circle.opacity ?? 1);
|
|
908
|
+
const r = circle.radius ?? 1;
|
|
909
|
+
if (circle.stagger) layers.push(`radial-gradient(circle at 25% 25%, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`, `radial-gradient(circle at 75% 75%, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`);
|
|
910
|
+
else layers.push(`radial-gradient(circle at center, ${color} ${r}px, transparent ${r}px) 0 0 / ${size}px ${size}px`);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
const isImage = background != null && /gradient\(|url\(/i.test(background);
|
|
914
|
+
if (isImage) layers.push(`${background} 0 0 / ${width}px ${height}px`);
|
|
915
|
+
if (layers.length === 0) return background ?? "transparent";
|
|
916
|
+
return !isImage && background ? `${layers.join(", ")}, ${background}` : layers.join(", ");
|
|
917
|
+
}
|
|
918
|
+
children?.($$renderer, {
|
|
919
|
+
id,
|
|
920
|
+
pattern: createCSSPattern()
|
|
921
|
+
});
|
|
922
|
+
$$renderer.push(`<!---->`);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
//#endregion
|
|
926
|
+
//#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/AnnotationRange/AnnotationRange.html.svelte
|
|
927
|
+
function AnnotationRange_html($$renderer, $$props) {
|
|
928
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
929
|
+
AnnotationRange_base($$renderer, spread_props([{
|
|
930
|
+
LinearGradient: LinearGradient_html,
|
|
931
|
+
Pattern: Pattern_html,
|
|
932
|
+
Rect: Rect_html,
|
|
933
|
+
Text: Text_html
|
|
934
|
+
}, props]));
|
|
935
|
+
}
|
|
936
|
+
//#endregion
|
|
937
|
+
//#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/AnnotationRange/AnnotationRange.svelte
|
|
938
|
+
function AnnotationRange($$renderer, $$props) {
|
|
939
|
+
$$renderer.component(($$renderer) => {
|
|
940
|
+
const layerCtx = getLayerContext();
|
|
941
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
942
|
+
if (layerCtx === "svg") {
|
|
943
|
+
$$renderer.push("<!--[0-->");
|
|
944
|
+
AnnotationRange_svg($$renderer, spread_props([props]));
|
|
945
|
+
} else if (layerCtx === "canvas") {
|
|
946
|
+
$$renderer.push("<!--[1-->");
|
|
947
|
+
AnnotationRange_canvas($$renderer, spread_props([props]));
|
|
948
|
+
} else if (layerCtx === "html") {
|
|
949
|
+
$$renderer.push("<!--[2-->");
|
|
950
|
+
AnnotationRange_html($$renderer, spread_props([props]));
|
|
951
|
+
} else $$renderer.push("<!--[-1-->");
|
|
952
|
+
$$renderer.push(`<!--]-->`);
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
//#endregion
|
|
956
|
+
//#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/charts/ChartAnnotations.svelte
|
|
957
|
+
function ChartAnnotations($$renderer, $$props) {
|
|
958
|
+
$$renderer.component(($$renderer) => {
|
|
959
|
+
let { annotations, layer } = $$props;
|
|
960
|
+
const ctx = getChartContext();
|
|
961
|
+
let visibleAnnotations = derived(() => annotations.filter((a) => (a.layer === layer || a.layer == null && layer === "above") && (ctx.series.highlightKey == null || a.seriesKey == null || a.seriesKey === ctx.series.highlightKey) && ctx.series.visibleSeries.some((s) => a.seriesKey == null || a.seriesKey === s.key)));
|
|
962
|
+
$$renderer.push(`<!--[-->`);
|
|
963
|
+
const each_array = ensure_array_like(visibleAnnotations());
|
|
964
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
965
|
+
let annotation = each_array[$$index];
|
|
966
|
+
if (annotation.type === "point") {
|
|
967
|
+
$$renderer.push("<!--[0-->");
|
|
968
|
+
AnnotationPoint($$renderer, spread_props([annotation]));
|
|
969
|
+
} else if (annotation.type === "line") {
|
|
970
|
+
$$renderer.push("<!--[1-->");
|
|
971
|
+
AnnotationLine($$renderer, spread_props([annotation]));
|
|
972
|
+
} else if (annotation.type === "range") {
|
|
973
|
+
$$renderer.push("<!--[2-->");
|
|
974
|
+
AnnotationRange($$renderer, spread_props([annotation]));
|
|
975
|
+
} else $$renderer.push("<!--[-1-->");
|
|
976
|
+
$$renderer.push(`<!--]-->`);
|
|
977
|
+
}
|
|
978
|
+
$$renderer.push(`<!--]-->`);
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export { ChartAnnotations as default };
|
|
983
|
+
//# sourceMappingURL=ChartAnnotations.js-Ci22VB_6.js.map
|