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,1259 @@
|
|
|
1
|
+
import { ak as ensure_array_like, ar as attributes, al as stringify, an as clsx, am as bind_props, as as props_id, at as spread_props, ac as derived, ag as attr } from './server.js-CAEBuMIH.js';
|
|
2
|
+
import { a as getChartContext, b as cls, m as merge } from './common.js-BWQB8Die.js';
|
|
3
|
+
import { g as getLayerContext, a as getMarkData, b as getGeoContext, h as hasAnyDataProp, r as resolveGeoDataPair, c as resolveDataProp, f as flattenPathData, d as createKey, e as renderPathData } from './key.svelte.js-CWIvXc6L.js';
|
|
4
|
+
import { c as createControlledMotion, a as cubicInOut, e as extractTweenConfig, b as cubicIn, d as createMotion, f as createDataMotionMap } from './motion.svelte.js-DCHSFMu-.js';
|
|
5
|
+
|
|
6
|
+
//#region node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
|
|
7
|
+
var pi = Math.PI;
|
|
8
|
+
var tau = 2 * pi;
|
|
9
|
+
var epsilon = 1e-6;
|
|
10
|
+
var tauEpsilon = tau - epsilon;
|
|
11
|
+
function append(strings) {
|
|
12
|
+
this._ += strings[0];
|
|
13
|
+
for (let i = 1, n = strings.length; i < n; ++i) this._ += arguments[i] + strings[i];
|
|
14
|
+
}
|
|
15
|
+
function appendRound(digits) {
|
|
16
|
+
let d = Math.floor(digits);
|
|
17
|
+
if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);
|
|
18
|
+
if (d > 15) return append;
|
|
19
|
+
const k = 10 ** d;
|
|
20
|
+
return function(strings) {
|
|
21
|
+
this._ += strings[0];
|
|
22
|
+
for (let i = 1, n = strings.length; i < n; ++i) this._ += Math.round(arguments[i] * k) / k + strings[i];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
var Path = class {
|
|
26
|
+
constructor(digits) {
|
|
27
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null;
|
|
28
|
+
this._ = "";
|
|
29
|
+
this._append = digits == null ? append : appendRound(digits);
|
|
30
|
+
}
|
|
31
|
+
moveTo(x, y) {
|
|
32
|
+
this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`;
|
|
33
|
+
}
|
|
34
|
+
closePath() {
|
|
35
|
+
if (this._x1 !== null) {
|
|
36
|
+
this._x1 = this._x0, this._y1 = this._y0;
|
|
37
|
+
this._append`Z`;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
lineTo(x, y) {
|
|
41
|
+
this._append`L${this._x1 = +x},${this._y1 = +y}`;
|
|
42
|
+
}
|
|
43
|
+
quadraticCurveTo(x1, y1, x, y) {
|
|
44
|
+
this._append`Q${+x1},${+y1},${this._x1 = +x},${this._y1 = +y}`;
|
|
45
|
+
}
|
|
46
|
+
bezierCurveTo(x1, y1, x2, y2, x, y) {
|
|
47
|
+
this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x},${this._y1 = +y}`;
|
|
48
|
+
}
|
|
49
|
+
arcTo(x1, y1, x2, y2, r) {
|
|
50
|
+
x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
|
|
51
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
|
52
|
+
let x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;
|
|
53
|
+
if (this._x1 === null) this._append`M${this._x1 = x1},${this._y1 = y1}`;
|
|
54
|
+
else if (!(l01_2 > epsilon));
|
|
55
|
+
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) this._append`L${this._x1 = x1},${this._y1 = y1}`;
|
|
56
|
+
else {
|
|
57
|
+
let x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;
|
|
58
|
+
if (Math.abs(t01 - 1) > epsilon) this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`;
|
|
59
|
+
this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
arc(x, y, r, a0, a1, ccw) {
|
|
63
|
+
x = +x, y = +y, r = +r, ccw = !!ccw;
|
|
64
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
|
65
|
+
let dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;
|
|
66
|
+
if (this._x1 === null) this._append`M${x0},${y0}`;
|
|
67
|
+
else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) this._append`L${x0},${y0}`;
|
|
68
|
+
if (!r) return;
|
|
69
|
+
if (da < 0) da = da % tau + tau;
|
|
70
|
+
if (da > tauEpsilon) this._append`A${r},${r},0,1,${cw},${x - dx},${y - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`;
|
|
71
|
+
else if (da > epsilon) this._append`A${r},${r},0,${+(da >= pi)},${cw},${this._x1 = x + r * Math.cos(a1)},${this._y1 = y + r * Math.sin(a1)}`;
|
|
72
|
+
}
|
|
73
|
+
rect(x, y, w, h) {
|
|
74
|
+
this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${w = +w}v${+h}h${-w}Z`;
|
|
75
|
+
}
|
|
76
|
+
toString() {
|
|
77
|
+
return this._;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function path() {
|
|
81
|
+
return new Path();
|
|
82
|
+
}
|
|
83
|
+
path.prototype = Path.prototype;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/transition/index.js
|
|
86
|
+
/** @param {number} x */
|
|
87
|
+
var linear = (x) => x;
|
|
88
|
+
/**
|
|
89
|
+
* Animates the opacity of an element from 0 to the current opacity for `in` transitions and from the current opacity to 0 for `out` transitions.
|
|
90
|
+
*
|
|
91
|
+
* @param {Element} node
|
|
92
|
+
* @param {FadeParams} [params]
|
|
93
|
+
* @returns {TransitionConfig}
|
|
94
|
+
*/
|
|
95
|
+
function fade(node, { delay = 0, duration = 400, easing = linear } = {}) {
|
|
96
|
+
const o = +getComputedStyle(node).opacity;
|
|
97
|
+
return {
|
|
98
|
+
delay,
|
|
99
|
+
duration,
|
|
100
|
+
easing,
|
|
101
|
+
css: (t) => `opacity: ${t * o}`
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#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/createId.js
|
|
106
|
+
/**
|
|
107
|
+
* Creates a unique ID for a given prefix and uid.
|
|
108
|
+
*
|
|
109
|
+
* @param prefix - prefix to use for the id
|
|
110
|
+
* @param uid - the uid generated by $props.id()
|
|
111
|
+
*/
|
|
112
|
+
function createId(prefix, uid) {
|
|
113
|
+
return `${prefix}-${uid}`;
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#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/Group/Group.shared.svelte.js
|
|
117
|
+
var defaultKey = (_, i) => i;
|
|
118
|
+
var GroupState = class {
|
|
119
|
+
#getProps = () => ({});
|
|
120
|
+
/**
|
|
121
|
+
* Memoized props — the component's props closure allocates a fresh object
|
|
122
|
+
* (it spreads `rest`), so calling it once per derived meant one allocation
|
|
123
|
+
* per derived per update. Read it once here instead.
|
|
124
|
+
*/
|
|
125
|
+
#props = derived(() => this.#getProps());
|
|
126
|
+
chartCtx = getChartContext();
|
|
127
|
+
markData = getMarkData();
|
|
128
|
+
geo = getGeoContext();
|
|
129
|
+
#dataMode = derived(() => hasAnyDataProp(this.#props().x, this.#props().y));
|
|
130
|
+
get dataMode() {
|
|
131
|
+
return this.#dataMode();
|
|
132
|
+
}
|
|
133
|
+
set dataMode($$value) {
|
|
134
|
+
return this.#dataMode($$value);
|
|
135
|
+
}
|
|
136
|
+
#resolvedData = derived(() => this.dataMode ? this.markData(this.#props().data) : []);
|
|
137
|
+
#resolvedItems = derived(() => {
|
|
138
|
+
if (!this.dataMode) return [];
|
|
139
|
+
const keyFn = this.#props().key ?? defaultKey;
|
|
140
|
+
return this.#resolvedData().map((d, i) => {
|
|
141
|
+
const key = keyFn(d, i);
|
|
142
|
+
const resolved = this.#resolveGroup(d);
|
|
143
|
+
const animated = this.#dataMotionMap?.get(key);
|
|
144
|
+
return {
|
|
145
|
+
d,
|
|
146
|
+
key,
|
|
147
|
+
x: animated?.x ?? resolved.x,
|
|
148
|
+
y: animated?.y ?? resolved.y
|
|
149
|
+
};
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
get resolvedItems() {
|
|
153
|
+
return this.#resolvedItems();
|
|
154
|
+
}
|
|
155
|
+
set resolvedItems($$value) {
|
|
156
|
+
return this.#resolvedItems($$value);
|
|
157
|
+
}
|
|
158
|
+
#resolveGroup(d) {
|
|
159
|
+
const props = this.#props();
|
|
160
|
+
if (this.geo.projection) {
|
|
161
|
+
const [projX, projY] = resolveGeoDataPair(props.x, props.y, d, this.geo.projection);
|
|
162
|
+
return {
|
|
163
|
+
x: projX,
|
|
164
|
+
y: projY
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
x: resolveDataProp(props.x, d, this.chartCtx.xScale, 0),
|
|
169
|
+
y: resolveDataProp(props.y, d, this.chartCtx.yScale, 0)
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
#trueX = derived(() => {
|
|
173
|
+
const props = this.#props();
|
|
174
|
+
if (typeof props.x === "number") return props.x;
|
|
175
|
+
if (props.x == null && (props.center === "x" || props.center === true)) return this.chartCtx.width / 2;
|
|
176
|
+
return 0;
|
|
177
|
+
});
|
|
178
|
+
get trueX() {
|
|
179
|
+
return this.#trueX();
|
|
180
|
+
}
|
|
181
|
+
set trueX($$value) {
|
|
182
|
+
return this.#trueX($$value);
|
|
183
|
+
}
|
|
184
|
+
#trueY = derived(() => {
|
|
185
|
+
const props = this.#props();
|
|
186
|
+
if (typeof props.y === "number") return props.y;
|
|
187
|
+
if (props.y == null && (props.center === "y" || props.center === true)) return this.chartCtx.height / 2;
|
|
188
|
+
return 0;
|
|
189
|
+
});
|
|
190
|
+
get trueY() {
|
|
191
|
+
return this.#trueY();
|
|
192
|
+
}
|
|
193
|
+
set trueY($$value) {
|
|
194
|
+
return this.#trueY($$value);
|
|
195
|
+
}
|
|
196
|
+
#series = derived(() => {
|
|
197
|
+
const seriesKey = this.#props().seriesKey;
|
|
198
|
+
if (seriesKey == null) return void 0;
|
|
199
|
+
return this.chartCtx.series.series.find((s) => s.key === seriesKey);
|
|
200
|
+
});
|
|
201
|
+
get series() {
|
|
202
|
+
return this.#series();
|
|
203
|
+
}
|
|
204
|
+
set series($$value) {
|
|
205
|
+
return this.#series($$value);
|
|
206
|
+
}
|
|
207
|
+
#hidden = derived(() => this.series != null && !this.chartCtx.series.isVisible(this.series.key));
|
|
208
|
+
get hidden() {
|
|
209
|
+
return this.#hidden();
|
|
210
|
+
}
|
|
211
|
+
set hidden($$value) {
|
|
212
|
+
return this.#hidden($$value);
|
|
213
|
+
}
|
|
214
|
+
#seriesOpacity = derived(() => {
|
|
215
|
+
if (this.series?.key == null || this.chartCtx.series.visibleSeries.length <= 1 || this.chartCtx.series.isHighlighted(this.series.key, true)) return 1;
|
|
216
|
+
return .1;
|
|
217
|
+
});
|
|
218
|
+
get seriesOpacity() {
|
|
219
|
+
return this.#seriesOpacity();
|
|
220
|
+
}
|
|
221
|
+
set seriesOpacity($$value) {
|
|
222
|
+
return this.#seriesOpacity($$value);
|
|
223
|
+
}
|
|
224
|
+
#opacity = derived(() => {
|
|
225
|
+
const opacity = this.#props().opacity;
|
|
226
|
+
if (this.seriesOpacity === 1) return opacity;
|
|
227
|
+
return (opacity ?? 1) * this.seriesOpacity;
|
|
228
|
+
});
|
|
229
|
+
get opacity() {
|
|
230
|
+
return this.#opacity();
|
|
231
|
+
}
|
|
232
|
+
set opacity($$value) {
|
|
233
|
+
return this.#opacity($$value);
|
|
234
|
+
}
|
|
235
|
+
#dataMotionMap = null;
|
|
236
|
+
#motionX;
|
|
237
|
+
#motionY;
|
|
238
|
+
get motionX() {
|
|
239
|
+
return this.#motionX.current;
|
|
240
|
+
}
|
|
241
|
+
get motionY() {
|
|
242
|
+
return this.#motionY.current;
|
|
243
|
+
}
|
|
244
|
+
#transform = derived(() => {
|
|
245
|
+
const props = this.#props();
|
|
246
|
+
if (props.center || props.x != null || props.y != null) return `translate(${this.motionX}px, ${this.motionY}px)`;
|
|
247
|
+
});
|
|
248
|
+
get transform() {
|
|
249
|
+
return this.#transform();
|
|
250
|
+
}
|
|
251
|
+
set transform($$value) {
|
|
252
|
+
return this.#transform($$value);
|
|
253
|
+
}
|
|
254
|
+
#defaultTransitionIn = derived(() => extractTweenConfig(this.#props().motion)?.options ? fade : () => ({}));
|
|
255
|
+
get defaultTransitionIn() {
|
|
256
|
+
return this.#defaultTransitionIn();
|
|
257
|
+
}
|
|
258
|
+
set defaultTransitionIn($$value) {
|
|
259
|
+
return this.#defaultTransitionIn($$value);
|
|
260
|
+
}
|
|
261
|
+
defaultTransitionInParams = { easing: cubicIn };
|
|
262
|
+
constructor(getProps) {
|
|
263
|
+
this.#getProps = getProps;
|
|
264
|
+
const initial = getProps();
|
|
265
|
+
const initialX = initial.initialX ?? (typeof initial.x === "number" ? initial.x : void 0);
|
|
266
|
+
const initialY = initial.initialY ?? (typeof initial.y === "number" ? initial.y : void 0);
|
|
267
|
+
this.#motionX = createMotion(initialX, () => this.trueX, initial.motion);
|
|
268
|
+
this.#motionY = createMotion(initialY, () => this.trueY, initial.motion);
|
|
269
|
+
this.#dataMotionMap = createDataMotionMap(initial.motion);
|
|
270
|
+
if (this.#dataMotionMap) this.#dataMotionMap;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
//#endregion
|
|
274
|
+
//#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/Group/Group.svg.svelte
|
|
275
|
+
function Group_svg($$renderer, $$props) {
|
|
276
|
+
$$renderer.component(($$renderer) => {
|
|
277
|
+
let { preventTouchMove = false, transitionIn: transitionInProp, transitionInParams: transitionInParamsProp, class: className, children, ref: refProp = void 0, x, y, initialX, initialY, data, key, center, motion, seriesKey, opacity, $$slots, $$events, ...rest } = $$props;
|
|
278
|
+
const c = new GroupState(() => ({
|
|
279
|
+
preventTouchMove,
|
|
280
|
+
transitionIn: transitionInProp,
|
|
281
|
+
transitionInParams: transitionInParamsProp,
|
|
282
|
+
class: className,
|
|
283
|
+
children,
|
|
284
|
+
x,
|
|
285
|
+
y,
|
|
286
|
+
initialX,
|
|
287
|
+
initialY,
|
|
288
|
+
data,
|
|
289
|
+
key,
|
|
290
|
+
center,
|
|
291
|
+
motion,
|
|
292
|
+
seriesKey,
|
|
293
|
+
opacity,
|
|
294
|
+
...rest
|
|
295
|
+
}));
|
|
296
|
+
if (c.hidden) $$renderer.push("<!--[0-->");
|
|
297
|
+
else if (c.dataMode) {
|
|
298
|
+
$$renderer.push(`<!--[1--><!--[-->`);
|
|
299
|
+
const each_array = ensure_array_like(c.resolvedItems);
|
|
300
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
301
|
+
let item = each_array[$$index];
|
|
302
|
+
$$renderer.push(`<g${attributes({
|
|
303
|
+
class: clsx(["lc-group-g", className]),
|
|
304
|
+
...rest,
|
|
305
|
+
opacity: c.opacity
|
|
306
|
+
}, void 0, void 0, { transform: `translate(${stringify(item.x)}px, ${stringify(item.y)}px)` }, 3)}>`);
|
|
307
|
+
children?.($$renderer);
|
|
308
|
+
$$renderer.push(`<!----></g>`);
|
|
309
|
+
}
|
|
310
|
+
$$renderer.push(`<!--]-->`);
|
|
311
|
+
} else {
|
|
312
|
+
$$renderer.push(`<!--[-1--><g${attributes({
|
|
313
|
+
class: clsx(["lc-group-g", className]),
|
|
314
|
+
...rest,
|
|
315
|
+
opacity: c.opacity
|
|
316
|
+
}, void 0, void 0, { transform: c.transform }, 3)}>`);
|
|
317
|
+
children?.($$renderer);
|
|
318
|
+
$$renderer.push(`<!----></g>`);
|
|
319
|
+
}
|
|
320
|
+
$$renderer.push(`<!--]-->`);
|
|
321
|
+
bind_props($$props, { ref: refProp });
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
//#endregion
|
|
325
|
+
//#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/Group/Group.canvas.svelte
|
|
326
|
+
function Group_canvas($$renderer, $$props) {
|
|
327
|
+
$$renderer.component(($$renderer) => {
|
|
328
|
+
let { children, $$slots, $$events, ...rest } = $$props;
|
|
329
|
+
const c = new GroupState(() => ({
|
|
330
|
+
children,
|
|
331
|
+
...rest
|
|
332
|
+
}));
|
|
333
|
+
c.chartCtx.registerComponent({
|
|
334
|
+
name: "Group",
|
|
335
|
+
kind: "group",
|
|
336
|
+
canvasRender: {
|
|
337
|
+
render: (ctx) => {
|
|
338
|
+
ctx.translate(c.motionX ?? 0, c.motionY ?? 0);
|
|
339
|
+
if (c.opacity != null) ctx.globalAlpha *= c.opacity;
|
|
340
|
+
},
|
|
341
|
+
events: {
|
|
342
|
+
click: rest.onclick,
|
|
343
|
+
dblclick: rest.ondblclick,
|
|
344
|
+
pointerenter: rest.onpointerenter,
|
|
345
|
+
pointermove: rest.onpointermove,
|
|
346
|
+
pointerleave: rest.onpointerleave,
|
|
347
|
+
pointerdown: rest.onpointerdown
|
|
348
|
+
},
|
|
349
|
+
deps: () => [
|
|
350
|
+
c.motionX,
|
|
351
|
+
c.motionY,
|
|
352
|
+
c.opacity
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
if (!c.hidden) {
|
|
357
|
+
$$renderer.push("<!--[0-->");
|
|
358
|
+
children?.($$renderer);
|
|
359
|
+
$$renderer.push(`<!---->`);
|
|
360
|
+
} else $$renderer.push("<!--[-1-->");
|
|
361
|
+
$$renderer.push(`<!--]-->`);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#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/Group/Group.html.svelte
|
|
366
|
+
function Group_html($$renderer, $$props) {
|
|
367
|
+
$$renderer.component(($$renderer) => {
|
|
368
|
+
let { preventTouchMove = false, transitionIn: transitionInProp, transitionInParams: transitionInParamsProp, class: className, children, ref: refProp = void 0, x, y, initialX, initialY, data, key, center, motion, seriesKey, opacity, $$slots, $$events, ...rest } = $$props;
|
|
369
|
+
const c = new GroupState(() => ({
|
|
370
|
+
preventTouchMove,
|
|
371
|
+
transitionIn: transitionInProp,
|
|
372
|
+
transitionInParams: transitionInParamsProp,
|
|
373
|
+
class: className,
|
|
374
|
+
children,
|
|
375
|
+
x,
|
|
376
|
+
y,
|
|
377
|
+
initialX,
|
|
378
|
+
initialY,
|
|
379
|
+
data,
|
|
380
|
+
key,
|
|
381
|
+
center,
|
|
382
|
+
motion,
|
|
383
|
+
seriesKey,
|
|
384
|
+
opacity,
|
|
385
|
+
...rest
|
|
386
|
+
}));
|
|
387
|
+
if (c.hidden) $$renderer.push("<!--[0-->");
|
|
388
|
+
else if (c.dataMode) {
|
|
389
|
+
$$renderer.push(`<!--[1--><!--[-->`);
|
|
390
|
+
const each_array = ensure_array_like(c.resolvedItems);
|
|
391
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
392
|
+
let item = each_array[$$index];
|
|
393
|
+
$$renderer.push(`<div${attributes({
|
|
394
|
+
...rest,
|
|
395
|
+
class: clsx(["lc-group-div", className])
|
|
396
|
+
}, "svelte-1mg96lr", void 0, {
|
|
397
|
+
transform: `translate(${stringify(item.x)}px, ${stringify(item.y)}px)`,
|
|
398
|
+
opacity: c.opacity
|
|
399
|
+
})}>`);
|
|
400
|
+
children?.($$renderer);
|
|
401
|
+
$$renderer.push(`<!----></div>`);
|
|
402
|
+
}
|
|
403
|
+
$$renderer.push(`<!--]-->`);
|
|
404
|
+
} else {
|
|
405
|
+
$$renderer.push(`<!--[-1--><div${attributes({
|
|
406
|
+
...rest,
|
|
407
|
+
class: clsx(["lc-group-div", className])
|
|
408
|
+
}, "svelte-1mg96lr", void 0, {
|
|
409
|
+
transform: c.transform,
|
|
410
|
+
opacity: c.opacity
|
|
411
|
+
})}>`);
|
|
412
|
+
children?.($$renderer);
|
|
413
|
+
$$renderer.push(`<!----></div>`);
|
|
414
|
+
}
|
|
415
|
+
$$renderer.push(`<!--]-->`);
|
|
416
|
+
bind_props($$props, { ref: refProp });
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
420
|
+
//#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/Group/Group.svelte
|
|
421
|
+
function Group($$renderer, $$props) {
|
|
422
|
+
$$renderer.component(($$renderer) => {
|
|
423
|
+
const layerCtx = getLayerContext();
|
|
424
|
+
let { ref = void 0, $$slots, $$events, ...rest } = $$props;
|
|
425
|
+
let $$settled = true;
|
|
426
|
+
let $$inner_renderer;
|
|
427
|
+
function $$render_inner($$renderer) {
|
|
428
|
+
if (layerCtx === "svg") {
|
|
429
|
+
$$renderer.push("<!--[0-->");
|
|
430
|
+
Group_svg($$renderer, spread_props([rest, {
|
|
431
|
+
get ref() {
|
|
432
|
+
return ref;
|
|
433
|
+
},
|
|
434
|
+
set ref($$value) {
|
|
435
|
+
ref = $$value;
|
|
436
|
+
$$settled = false;
|
|
437
|
+
}
|
|
438
|
+
}]));
|
|
439
|
+
} else if (layerCtx === "canvas") {
|
|
440
|
+
$$renderer.push("<!--[1-->");
|
|
441
|
+
Group_canvas($$renderer, spread_props([rest]));
|
|
442
|
+
} else if (layerCtx === "html") {
|
|
443
|
+
$$renderer.push("<!--[2-->");
|
|
444
|
+
Group_html($$renderer, spread_props([rest, {
|
|
445
|
+
get ref() {
|
|
446
|
+
return ref;
|
|
447
|
+
},
|
|
448
|
+
set ref($$value) {
|
|
449
|
+
ref = $$value;
|
|
450
|
+
$$settled = false;
|
|
451
|
+
}
|
|
452
|
+
}]));
|
|
453
|
+
} else $$renderer.push("<!--[-1-->");
|
|
454
|
+
$$renderer.push(`<!--]-->`);
|
|
455
|
+
}
|
|
456
|
+
do {
|
|
457
|
+
$$settled = true;
|
|
458
|
+
$$inner_renderer = $$renderer.copy();
|
|
459
|
+
$$render_inner($$inner_renderer);
|
|
460
|
+
} while (!$$settled);
|
|
461
|
+
$$renderer.subsume($$inner_renderer);
|
|
462
|
+
bind_props($$props, { ref });
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
//#endregion
|
|
466
|
+
//#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/Marker.svelte
|
|
467
|
+
function Marker($$renderer, $$props) {
|
|
468
|
+
$$renderer.component(($$renderer) => {
|
|
469
|
+
const uid = props_id($$renderer);
|
|
470
|
+
let { type, id = createId("marker-", uid), size = 10, markerWidth = size, markerHeight = size, markerUnits = "userSpaceOnUse", orient = "auto-start-reverse", refX = ["arrow", "triangle"].includes(type ?? "") ? 9 : 5, refY = 5, viewBox = "0 0 10 10", class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
471
|
+
$$renderer.push(`<defs><marker${attributes({
|
|
472
|
+
id,
|
|
473
|
+
markerWidth,
|
|
474
|
+
markerHeight,
|
|
475
|
+
markerUnits,
|
|
476
|
+
orient,
|
|
477
|
+
refX,
|
|
478
|
+
refY,
|
|
479
|
+
viewBox,
|
|
480
|
+
"data-type": type,
|
|
481
|
+
...restProps,
|
|
482
|
+
class: clsx(cls("lc-marker", className))
|
|
483
|
+
}, "svelte-1vpz1s3", void 0, void 0, 3)}>`);
|
|
484
|
+
if (children) {
|
|
485
|
+
$$renderer.push("<!--[0-->");
|
|
486
|
+
children($$renderer);
|
|
487
|
+
$$renderer.push(`<!---->`);
|
|
488
|
+
} else if (type === "triangle") $$renderer.push(`<!--[1--><path d="M 0 0 L 10 5 L 0 10 z" class="lc-marker-triangle"></path>`);
|
|
489
|
+
else if (type === "arrow") $$renderer.push(`<!--[2--><polyline points="0 0, 10 5, 0 10" class="lc-marker-arrow"></polyline>`);
|
|
490
|
+
else if (type === "circle" || type === "circle-stroke" || type === "dot") $$renderer.push(`<!--[3--><circle${attr("cx", 5)}${attr("cy", 5)}${attr("r", 5)} class="lc-marker-circle"></circle>`);
|
|
491
|
+
else if (type === "line") $$renderer.push(`<!--[4--><polyline points="5 0, 5 10" class="lc-marker-line"></polyline>`);
|
|
492
|
+
else if (type === "square" || type === "square-stroke") $$renderer.push(`<!--[5--><rect${attr("x", 0)}${attr("y", 0)}${attr("width", 10)}${attr("height", 10)} class="lc-marker-square"></rect>`);
|
|
493
|
+
else $$renderer.push("<!--[-1-->");
|
|
494
|
+
$$renderer.push(`<!--]--></marker></defs>`);
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
//#endregion
|
|
498
|
+
//#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/MarkerWrapper.svelte
|
|
499
|
+
function MarkerWrapper($$renderer, $$props) {
|
|
500
|
+
let { id, marker } = $$props;
|
|
501
|
+
if (typeof marker === "function") {
|
|
502
|
+
$$renderer.push("<!--[0-->");
|
|
503
|
+
marker($$renderer, { id });
|
|
504
|
+
$$renderer.push(`<!---->`);
|
|
505
|
+
} else if (marker) {
|
|
506
|
+
$$renderer.push("<!--[1-->");
|
|
507
|
+
Marker($$renderer, spread_props([{
|
|
508
|
+
id,
|
|
509
|
+
type: typeof marker === "string" ? marker : void 0
|
|
510
|
+
}, typeof marker === "object" ? marker : null]));
|
|
511
|
+
} else $$renderer.push("<!--[-1-->");
|
|
512
|
+
$$renderer.push(`<!--]-->`);
|
|
513
|
+
}
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region node_modules/.pnpm/d3-interpolate-path@2.3.0/node_modules/d3-interpolate-path/build/d3-interpolate-path.mjs
|
|
516
|
+
function ownKeys(object, enumerableOnly) {
|
|
517
|
+
var keys = Object.keys(object);
|
|
518
|
+
if (Object.getOwnPropertySymbols) {
|
|
519
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
520
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
521
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
522
|
+
});
|
|
523
|
+
keys.push.apply(keys, symbols);
|
|
524
|
+
}
|
|
525
|
+
return keys;
|
|
526
|
+
}
|
|
527
|
+
function _objectSpread2(target) {
|
|
528
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
529
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
530
|
+
if (i % 2) ownKeys(Object(source), true).forEach(function(key) {
|
|
531
|
+
_defineProperty(target, key, source[key]);
|
|
532
|
+
});
|
|
533
|
+
else if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
534
|
+
else ownKeys(Object(source)).forEach(function(key) {
|
|
535
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
return target;
|
|
539
|
+
}
|
|
540
|
+
function _typeof(obj) {
|
|
541
|
+
"@babel/helpers - typeof";
|
|
542
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") _typeof = function(obj) {
|
|
543
|
+
return typeof obj;
|
|
544
|
+
};
|
|
545
|
+
else _typeof = function(obj) {
|
|
546
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
547
|
+
};
|
|
548
|
+
return _typeof(obj);
|
|
549
|
+
}
|
|
550
|
+
function _defineProperty(obj, key, value) {
|
|
551
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
552
|
+
value,
|
|
553
|
+
enumerable: true,
|
|
554
|
+
configurable: true,
|
|
555
|
+
writable: true
|
|
556
|
+
});
|
|
557
|
+
else obj[key] = value;
|
|
558
|
+
return obj;
|
|
559
|
+
}
|
|
560
|
+
function _extends() {
|
|
561
|
+
_extends = Object.assign || function(target) {
|
|
562
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
563
|
+
var source = arguments[i];
|
|
564
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
565
|
+
}
|
|
566
|
+
return target;
|
|
567
|
+
};
|
|
568
|
+
return _extends.apply(this, arguments);
|
|
569
|
+
}
|
|
570
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
571
|
+
if (!o) return;
|
|
572
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
573
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
574
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
575
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
576
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
577
|
+
}
|
|
578
|
+
function _arrayLikeToArray(arr, len) {
|
|
579
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
580
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
581
|
+
return arr2;
|
|
582
|
+
}
|
|
583
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
584
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
585
|
+
if (!it) {
|
|
586
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
|
|
587
|
+
if (it) o = it;
|
|
588
|
+
var i = 0;
|
|
589
|
+
var F = function() {};
|
|
590
|
+
return {
|
|
591
|
+
s: F,
|
|
592
|
+
n: function() {
|
|
593
|
+
if (i >= o.length) return { done: true };
|
|
594
|
+
return {
|
|
595
|
+
done: false,
|
|
596
|
+
value: o[i++]
|
|
597
|
+
};
|
|
598
|
+
},
|
|
599
|
+
e: function(e) {
|
|
600
|
+
throw e;
|
|
601
|
+
},
|
|
602
|
+
f: F
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
606
|
+
}
|
|
607
|
+
var normalCompletion = true, didErr = false, err;
|
|
608
|
+
return {
|
|
609
|
+
s: function() {
|
|
610
|
+
it = it.call(o);
|
|
611
|
+
},
|
|
612
|
+
n: function() {
|
|
613
|
+
var step = it.next();
|
|
614
|
+
normalCompletion = step.done;
|
|
615
|
+
return step;
|
|
616
|
+
},
|
|
617
|
+
e: function(e) {
|
|
618
|
+
didErr = true;
|
|
619
|
+
err = e;
|
|
620
|
+
},
|
|
621
|
+
f: function() {
|
|
622
|
+
try {
|
|
623
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
624
|
+
} finally {
|
|
625
|
+
if (didErr) throw err;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* de Casteljau's algorithm for drawing and splitting bezier curves.
|
|
632
|
+
* Inspired by https://pomax.github.io/bezierinfo/
|
|
633
|
+
*
|
|
634
|
+
* @param {Number[][]} points Array of [x,y] points: [start, control1, control2, ..., end]
|
|
635
|
+
* The original segment to split.
|
|
636
|
+
* @param {Number} t Where to split the curve (value between [0, 1])
|
|
637
|
+
* @return {Object} An object { left, right } where left is the segment from 0..t and
|
|
638
|
+
* right is the segment from t..1.
|
|
639
|
+
*/
|
|
640
|
+
function decasteljau(points, t) {
|
|
641
|
+
var left = [];
|
|
642
|
+
var right = [];
|
|
643
|
+
function decasteljauRecurse(points, t) {
|
|
644
|
+
if (points.length === 1) {
|
|
645
|
+
left.push(points[0]);
|
|
646
|
+
right.push(points[0]);
|
|
647
|
+
} else {
|
|
648
|
+
var newPoints = Array(points.length - 1);
|
|
649
|
+
for (var i = 0; i < newPoints.length; i++) {
|
|
650
|
+
if (i === 0) left.push(points[0]);
|
|
651
|
+
if (i === newPoints.length - 1) right.push(points[i + 1]);
|
|
652
|
+
newPoints[i] = [(1 - t) * points[i][0] + t * points[i + 1][0], (1 - t) * points[i][1] + t * points[i + 1][1]];
|
|
653
|
+
}
|
|
654
|
+
decasteljauRecurse(newPoints, t);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
if (points.length) decasteljauRecurse(points, t);
|
|
658
|
+
return {
|
|
659
|
+
left,
|
|
660
|
+
right: right.reverse()
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Convert segments represented as points back into a command object
|
|
665
|
+
*
|
|
666
|
+
* @param {Number[][]} points Array of [x,y] points: [start, control1, control2, ..., end]
|
|
667
|
+
* Represents a segment
|
|
668
|
+
* @return {Object} A command object representing the segment.
|
|
669
|
+
*/
|
|
670
|
+
function pointsToCommand(points) {
|
|
671
|
+
var command = {};
|
|
672
|
+
if (points.length === 4) {
|
|
673
|
+
command.x2 = points[2][0];
|
|
674
|
+
command.y2 = points[2][1];
|
|
675
|
+
}
|
|
676
|
+
if (points.length >= 3) {
|
|
677
|
+
command.x1 = points[1][0];
|
|
678
|
+
command.y1 = points[1][1];
|
|
679
|
+
}
|
|
680
|
+
command.x = points[points.length - 1][0];
|
|
681
|
+
command.y = points[points.length - 1][1];
|
|
682
|
+
if (points.length === 4) command.type = "C";
|
|
683
|
+
else if (points.length === 3) command.type = "Q";
|
|
684
|
+
else command.type = "L";
|
|
685
|
+
return command;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Runs de Casteljau's algorithm enough times to produce the desired number of segments.
|
|
689
|
+
*
|
|
690
|
+
* @param {Number[][]} points Array of [x,y] points for de Casteljau (the initial segment to split)
|
|
691
|
+
* @param {Number} segmentCount Number of segments to split the original into
|
|
692
|
+
* @return {Number[][][]} Array of segments
|
|
693
|
+
*/
|
|
694
|
+
function splitCurveAsPoints(points, segmentCount) {
|
|
695
|
+
segmentCount = segmentCount || 2;
|
|
696
|
+
var segments = [];
|
|
697
|
+
var remainingCurve = points;
|
|
698
|
+
var tIncrement = 1 / segmentCount;
|
|
699
|
+
for (var i = 0; i < segmentCount - 1; i++) {
|
|
700
|
+
var tRelative = tIncrement / (1 - tIncrement * i);
|
|
701
|
+
var split = decasteljau(remainingCurve, tRelative);
|
|
702
|
+
segments.push(split.left);
|
|
703
|
+
remainingCurve = split.right;
|
|
704
|
+
}
|
|
705
|
+
segments.push(remainingCurve);
|
|
706
|
+
return segments;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Convert command objects to arrays of points, run de Casteljau's algorithm on it
|
|
710
|
+
* to split into to the desired number of segments.
|
|
711
|
+
*
|
|
712
|
+
* @param {Object} commandStart The start command object
|
|
713
|
+
* @param {Object} commandEnd The end command object
|
|
714
|
+
* @param {Number} segmentCount The number of segments to create
|
|
715
|
+
* @return {Object[]} An array of commands representing the segments in sequence
|
|
716
|
+
*/
|
|
717
|
+
function splitCurve(commandStart, commandEnd, segmentCount) {
|
|
718
|
+
var points = [[commandStart.x, commandStart.y]];
|
|
719
|
+
if (commandEnd.x1 != null) points.push([commandEnd.x1, commandEnd.y1]);
|
|
720
|
+
if (commandEnd.x2 != null) points.push([commandEnd.x2, commandEnd.y2]);
|
|
721
|
+
points.push([commandEnd.x, commandEnd.y]);
|
|
722
|
+
return splitCurveAsPoints(points, segmentCount).map(pointsToCommand);
|
|
723
|
+
}
|
|
724
|
+
var commandTokenRegex = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g;
|
|
725
|
+
/**
|
|
726
|
+
* List of params for each command type in a path `d` attribute
|
|
727
|
+
*/
|
|
728
|
+
var typeMap = {
|
|
729
|
+
M: ["x", "y"],
|
|
730
|
+
L: ["x", "y"],
|
|
731
|
+
H: ["x"],
|
|
732
|
+
V: ["y"],
|
|
733
|
+
C: [
|
|
734
|
+
"x1",
|
|
735
|
+
"y1",
|
|
736
|
+
"x2",
|
|
737
|
+
"y2",
|
|
738
|
+
"x",
|
|
739
|
+
"y"
|
|
740
|
+
],
|
|
741
|
+
S: [
|
|
742
|
+
"x2",
|
|
743
|
+
"y2",
|
|
744
|
+
"x",
|
|
745
|
+
"y"
|
|
746
|
+
],
|
|
747
|
+
Q: [
|
|
748
|
+
"x1",
|
|
749
|
+
"y1",
|
|
750
|
+
"x",
|
|
751
|
+
"y"
|
|
752
|
+
],
|
|
753
|
+
T: ["x", "y"],
|
|
754
|
+
A: [
|
|
755
|
+
"rx",
|
|
756
|
+
"ry",
|
|
757
|
+
"xAxisRotation",
|
|
758
|
+
"largeArcFlag",
|
|
759
|
+
"sweepFlag",
|
|
760
|
+
"x",
|
|
761
|
+
"y"
|
|
762
|
+
],
|
|
763
|
+
Z: []
|
|
764
|
+
};
|
|
765
|
+
Object.keys(typeMap).forEach(function(key) {
|
|
766
|
+
typeMap[key.toLowerCase()] = typeMap[key];
|
|
767
|
+
});
|
|
768
|
+
function arrayOfLength(length, value) {
|
|
769
|
+
var array = Array(length);
|
|
770
|
+
for (var i = 0; i < length; i++) array[i] = value;
|
|
771
|
+
return array;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Converts a command object to a string to be used in a `d` attribute
|
|
775
|
+
* @param {Object} command A command object
|
|
776
|
+
* @return {String} The string for the `d` attribute
|
|
777
|
+
*/
|
|
778
|
+
function commandToString(command) {
|
|
779
|
+
return "".concat(command.type).concat(typeMap[command.type].map(function(p) {
|
|
780
|
+
return command[p];
|
|
781
|
+
}).join(","));
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Converts command A to have the same type as command B.
|
|
785
|
+
*
|
|
786
|
+
* e.g., L0,5 -> C0,5,0,5,0,5
|
|
787
|
+
*
|
|
788
|
+
* Uses these rules:
|
|
789
|
+
* x1 <- x
|
|
790
|
+
* x2 <- x
|
|
791
|
+
* y1 <- y
|
|
792
|
+
* y2 <- y
|
|
793
|
+
* rx <- 0
|
|
794
|
+
* ry <- 0
|
|
795
|
+
* xAxisRotation <- read from B
|
|
796
|
+
* largeArcFlag <- read from B
|
|
797
|
+
* sweepflag <- read from B
|
|
798
|
+
*
|
|
799
|
+
* @param {Object} aCommand Command object from path `d` attribute
|
|
800
|
+
* @param {Object} bCommand Command object from path `d` attribute to match against
|
|
801
|
+
* @return {Object} aCommand converted to type of bCommand
|
|
802
|
+
*/
|
|
803
|
+
function convertToSameType(aCommand, bCommand) {
|
|
804
|
+
var conversionMap = {
|
|
805
|
+
x1: "x",
|
|
806
|
+
y1: "y",
|
|
807
|
+
x2: "x",
|
|
808
|
+
y2: "y"
|
|
809
|
+
};
|
|
810
|
+
var readFromBKeys = [
|
|
811
|
+
"xAxisRotation",
|
|
812
|
+
"largeArcFlag",
|
|
813
|
+
"sweepFlag"
|
|
814
|
+
];
|
|
815
|
+
if (aCommand.type !== bCommand.type && bCommand.type.toUpperCase() !== "M") {
|
|
816
|
+
var aConverted = {};
|
|
817
|
+
Object.keys(bCommand).forEach(function(bKey) {
|
|
818
|
+
var bValue = bCommand[bKey];
|
|
819
|
+
var aValue = aCommand[bKey];
|
|
820
|
+
if (aValue === void 0) {
|
|
821
|
+
if (readFromBKeys.includes(bKey)) aValue = bValue;
|
|
822
|
+
else {
|
|
823
|
+
if (aValue === void 0 && conversionMap[bKey]) aValue = aCommand[conversionMap[bKey]];
|
|
824
|
+
if (aValue === void 0) aValue = 0;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
aConverted[bKey] = aValue;
|
|
828
|
+
});
|
|
829
|
+
aConverted.type = bCommand.type;
|
|
830
|
+
aCommand = aConverted;
|
|
831
|
+
}
|
|
832
|
+
return aCommand;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Interpolate between command objects commandStart and commandEnd segmentCount times.
|
|
836
|
+
* If the types are L, Q, or C then the curves are split as per de Casteljau's algorithm.
|
|
837
|
+
* Otherwise we just copy commandStart segmentCount - 1 times, finally ending with commandEnd.
|
|
838
|
+
*
|
|
839
|
+
* @param {Object} commandStart Command object at the beginning of the segment
|
|
840
|
+
* @param {Object} commandEnd Command object at the end of the segment
|
|
841
|
+
* @param {Number} segmentCount The number of segments to split this into. If only 1
|
|
842
|
+
* Then [commandEnd] is returned.
|
|
843
|
+
* @return {Object[]} Array of ~segmentCount command objects between commandStart and
|
|
844
|
+
* commandEnd. (Can be segmentCount+1 objects if commandStart is type M).
|
|
845
|
+
*/
|
|
846
|
+
function splitSegment(commandStart, commandEnd, segmentCount) {
|
|
847
|
+
var segments = [];
|
|
848
|
+
if (commandEnd.type === "L" || commandEnd.type === "Q" || commandEnd.type === "C") segments = segments.concat(splitCurve(commandStart, commandEnd, segmentCount));
|
|
849
|
+
else {
|
|
850
|
+
var copyCommand = _extends({}, commandStart);
|
|
851
|
+
if (copyCommand.type === "M") copyCommand.type = "L";
|
|
852
|
+
segments = segments.concat(arrayOfLength(segmentCount - 1).map(function() {
|
|
853
|
+
return copyCommand;
|
|
854
|
+
}));
|
|
855
|
+
segments.push(commandEnd);
|
|
856
|
+
}
|
|
857
|
+
return segments;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Extends an array of commandsToExtend to the length of the referenceCommands by
|
|
861
|
+
* splitting segments until the number of commands match. Ensures all the actual
|
|
862
|
+
* points of commandsToExtend are in the extended array.
|
|
863
|
+
*
|
|
864
|
+
* @param {Object[]} commandsToExtend The command object array to extend
|
|
865
|
+
* @param {Object[]} referenceCommands The command object array to match in length
|
|
866
|
+
* @param {Function} excludeSegment a function that takes a start command object and
|
|
867
|
+
* end command object and returns true if the segment should be excluded from splitting.
|
|
868
|
+
* @return {Object[]} The extended commandsToExtend array
|
|
869
|
+
*/
|
|
870
|
+
function extend(commandsToExtend, referenceCommands, excludeSegment) {
|
|
871
|
+
var numSegmentsToExtend = commandsToExtend.length - 1;
|
|
872
|
+
var numReferenceSegments = referenceCommands.length - 1;
|
|
873
|
+
var segmentRatio = numSegmentsToExtend / numReferenceSegments;
|
|
874
|
+
var extended = arrayOfLength(numReferenceSegments).reduce(function(accum, d, i) {
|
|
875
|
+
var insertIndex = Math.floor(segmentRatio * i);
|
|
876
|
+
if (excludeSegment && insertIndex < commandsToExtend.length - 1 && excludeSegment(commandsToExtend[insertIndex], commandsToExtend[insertIndex + 1])) {
|
|
877
|
+
var addToPriorSegment = segmentRatio * i % 1 < .5;
|
|
878
|
+
if (accum[insertIndex]) {
|
|
879
|
+
if (addToPriorSegment) {
|
|
880
|
+
if (insertIndex > 0) insertIndex -= 1;
|
|
881
|
+
else if (insertIndex < commandsToExtend.length - 1) insertIndex += 1;
|
|
882
|
+
} else if (insertIndex < commandsToExtend.length - 1) insertIndex += 1;
|
|
883
|
+
else if (insertIndex > 0) insertIndex -= 1;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
accum[insertIndex] = (accum[insertIndex] || 0) + 1;
|
|
887
|
+
return accum;
|
|
888
|
+
}, []).reduce(function(extended, segmentCount, i) {
|
|
889
|
+
if (i === commandsToExtend.length - 1) {
|
|
890
|
+
var lastCommandCopies = arrayOfLength(segmentCount, _extends({}, commandsToExtend[commandsToExtend.length - 1]));
|
|
891
|
+
if (lastCommandCopies[0].type === "M") lastCommandCopies.forEach(function(d) {
|
|
892
|
+
d.type = "L";
|
|
893
|
+
});
|
|
894
|
+
return extended.concat(lastCommandCopies);
|
|
895
|
+
}
|
|
896
|
+
return extended.concat(splitSegment(commandsToExtend[i], commandsToExtend[i + 1], segmentCount));
|
|
897
|
+
}, []);
|
|
898
|
+
extended.unshift(commandsToExtend[0]);
|
|
899
|
+
return extended;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Takes a path `d` string and converts it into an array of command
|
|
903
|
+
* objects. Drops the `Z` character.
|
|
904
|
+
*
|
|
905
|
+
* @param {String|null} d A path `d` string
|
|
906
|
+
*/
|
|
907
|
+
function pathCommandsFromString(d) {
|
|
908
|
+
var tokens = (d || "").match(commandTokenRegex) || [];
|
|
909
|
+
var commands = [];
|
|
910
|
+
var commandArgs;
|
|
911
|
+
var command;
|
|
912
|
+
for (var i = 0; i < tokens.length; ++i) {
|
|
913
|
+
commandArgs = typeMap[tokens[i]];
|
|
914
|
+
if (commandArgs) {
|
|
915
|
+
command = { type: tokens[i] };
|
|
916
|
+
for (var a = 0; a < commandArgs.length; ++a) command[commandArgs[a]] = +tokens[i + a + 1];
|
|
917
|
+
i += commandArgs.length;
|
|
918
|
+
commands.push(command);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
return commands;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Interpolate from A to B by extending A and B during interpolation to have
|
|
925
|
+
* the same number of points. This allows for a smooth transition when they
|
|
926
|
+
* have a different number of points.
|
|
927
|
+
*
|
|
928
|
+
* Ignores the `Z` command in paths unless both A and B end with it.
|
|
929
|
+
*
|
|
930
|
+
* This function works directly with arrays of command objects instead of with
|
|
931
|
+
* path `d` strings (see interpolatePath for working with `d` strings).
|
|
932
|
+
*
|
|
933
|
+
* @param {Object[]} aCommandsInput Array of path commands
|
|
934
|
+
* @param {Object[]} bCommandsInput Array of path commands
|
|
935
|
+
* @param {(Function|Object)} interpolateOptions
|
|
936
|
+
* @param {Function} interpolateOptions.excludeSegment a function that takes a start command object and
|
|
937
|
+
* end command object and returns true if the segment should be excluded from splitting.
|
|
938
|
+
* @param {Boolean} interpolateOptions.snapEndsToInput a boolean indicating whether end of input should
|
|
939
|
+
* be sourced from input argument or computed.
|
|
940
|
+
* @returns {Function} Interpolation function that maps t ([0, 1]) to an array of path commands.
|
|
941
|
+
*/
|
|
942
|
+
function interpolatePathCommands(aCommandsInput, bCommandsInput, interpolateOptions) {
|
|
943
|
+
var aCommands = aCommandsInput == null ? [] : aCommandsInput.slice();
|
|
944
|
+
var bCommands = bCommandsInput == null ? [] : bCommandsInput.slice();
|
|
945
|
+
var _ref = _typeof(interpolateOptions) === "object" ? interpolateOptions : {
|
|
946
|
+
excludeSegment: interpolateOptions,
|
|
947
|
+
snapEndsToInput: true
|
|
948
|
+
}, excludeSegment = _ref.excludeSegment, snapEndsToInput = _ref.snapEndsToInput;
|
|
949
|
+
if (!aCommands.length && !bCommands.length) return function nullInterpolator() {
|
|
950
|
+
return [];
|
|
951
|
+
};
|
|
952
|
+
var addZ = (aCommands.length === 0 || aCommands[aCommands.length - 1].type === "Z") && (bCommands.length === 0 || bCommands[bCommands.length - 1].type === "Z");
|
|
953
|
+
if (aCommands.length > 0 && aCommands[aCommands.length - 1].type === "Z") aCommands.pop();
|
|
954
|
+
if (bCommands.length > 0 && bCommands[bCommands.length - 1].type === "Z") bCommands.pop();
|
|
955
|
+
if (!aCommands.length) aCommands.push(bCommands[0]);
|
|
956
|
+
else if (!bCommands.length) bCommands.push(aCommands[0]);
|
|
957
|
+
if (Math.abs(bCommands.length - aCommands.length) !== 0) {
|
|
958
|
+
if (bCommands.length > aCommands.length) aCommands = extend(aCommands, bCommands, excludeSegment);
|
|
959
|
+
else if (bCommands.length < aCommands.length) bCommands = extend(bCommands, aCommands, excludeSegment);
|
|
960
|
+
}
|
|
961
|
+
aCommands = aCommands.map(function(aCommand, i) {
|
|
962
|
+
return convertToSameType(aCommand, bCommands[i]);
|
|
963
|
+
});
|
|
964
|
+
var interpolatedCommands = aCommands.map(function(aCommand) {
|
|
965
|
+
return _objectSpread2({}, aCommand);
|
|
966
|
+
});
|
|
967
|
+
if (addZ) {
|
|
968
|
+
interpolatedCommands.push({ type: "Z" });
|
|
969
|
+
aCommands.push({ type: "Z" });
|
|
970
|
+
}
|
|
971
|
+
return function pathCommandInterpolator(t) {
|
|
972
|
+
if (t === 1 && snapEndsToInput) return bCommandsInput == null ? [] : bCommandsInput;
|
|
973
|
+
if (t === 0) return aCommands;
|
|
974
|
+
for (var i = 0; i < interpolatedCommands.length; ++i) {
|
|
975
|
+
var aCommand = aCommands[i];
|
|
976
|
+
var bCommand = bCommands[i];
|
|
977
|
+
var interpolatedCommand = interpolatedCommands[i];
|
|
978
|
+
var _iterator = _createForOfIteratorHelper(typeMap[interpolatedCommand.type]), _step;
|
|
979
|
+
try {
|
|
980
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
981
|
+
var arg = _step.value;
|
|
982
|
+
interpolatedCommand[arg] = (1 - t) * aCommand[arg] + t * bCommand[arg];
|
|
983
|
+
if (arg === "largeArcFlag" || arg === "sweepFlag") interpolatedCommand[arg] = Math.round(interpolatedCommand[arg]);
|
|
984
|
+
}
|
|
985
|
+
} catch (err) {
|
|
986
|
+
_iterator.e(err);
|
|
987
|
+
} finally {
|
|
988
|
+
_iterator.f();
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return interpolatedCommands;
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
/** @typedef InterpolateOptions */
|
|
995
|
+
/**
|
|
996
|
+
* Interpolate from A to B by extending A and B during interpolation to have
|
|
997
|
+
* the same number of points. This allows for a smooth transition when they
|
|
998
|
+
* have a different number of points.
|
|
999
|
+
*
|
|
1000
|
+
* Ignores the `Z` character in paths unless both A and B end with it.
|
|
1001
|
+
*
|
|
1002
|
+
* @param {String} a The `d` attribute for a path
|
|
1003
|
+
* @param {String} b The `d` attribute for a path
|
|
1004
|
+
* @param {((command1, command2) => boolean|{
|
|
1005
|
+
* excludeSegment?: (command1, command2) => boolean;
|
|
1006
|
+
* snapEndsToInput?: boolean
|
|
1007
|
+
* })} interpolateOptions The excludeSegment function or an options object
|
|
1008
|
+
* - interpolateOptions.excludeSegment a function that takes a start command object and
|
|
1009
|
+
* end command object and returns true if the segment should be excluded from splitting.
|
|
1010
|
+
* - interpolateOptions.snapEndsToInput a boolean indicating whether end of input should
|
|
1011
|
+
* be sourced from input argument or computed.
|
|
1012
|
+
* @returns {Function} Interpolation function that maps t ([0, 1]) to a path `d` string.
|
|
1013
|
+
*/
|
|
1014
|
+
function interpolatePath(a, b, interpolateOptions) {
|
|
1015
|
+
var aCommands = pathCommandsFromString(a);
|
|
1016
|
+
var bCommands = pathCommandsFromString(b);
|
|
1017
|
+
var _ref2 = _typeof(interpolateOptions) === "object" ? interpolateOptions : {
|
|
1018
|
+
excludeSegment: interpolateOptions,
|
|
1019
|
+
snapEndsToInput: true
|
|
1020
|
+
}, excludeSegment = _ref2.excludeSegment, snapEndsToInput = _ref2.snapEndsToInput;
|
|
1021
|
+
if (!aCommands.length && !bCommands.length) return function nullInterpolator() {
|
|
1022
|
+
return "";
|
|
1023
|
+
};
|
|
1024
|
+
var commandInterpolator = interpolatePathCommands(aCommands, bCommands, {
|
|
1025
|
+
excludeSegment,
|
|
1026
|
+
snapEndsToInput
|
|
1027
|
+
});
|
|
1028
|
+
return function pathStringInterpolator(t) {
|
|
1029
|
+
if (t === 1 && snapEndsToInput) return b == null ? "" : b;
|
|
1030
|
+
var interpolatedCommands = commandInterpolator(t);
|
|
1031
|
+
var interpolatedString = "";
|
|
1032
|
+
var _iterator2 = _createForOfIteratorHelper(interpolatedCommands), _step2;
|
|
1033
|
+
try {
|
|
1034
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1035
|
+
var interpolatedCommand = _step2.value;
|
|
1036
|
+
interpolatedString += commandToString(interpolatedCommand);
|
|
1037
|
+
}
|
|
1038
|
+
} catch (err) {
|
|
1039
|
+
_iterator2.e(err);
|
|
1040
|
+
} finally {
|
|
1041
|
+
_iterator2.f();
|
|
1042
|
+
}
|
|
1043
|
+
return interpolatedString;
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#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/Path/Path.shared.svelte.js
|
|
1048
|
+
function resolvePathData(v) {
|
|
1049
|
+
return typeof v === "function" ? v() : v;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Reactive state shared by every per-layer Path variant.
|
|
1053
|
+
*/
|
|
1054
|
+
var PathState = class {
|
|
1055
|
+
#getPathData;
|
|
1056
|
+
chartCtx = getChartContext();
|
|
1057
|
+
#tweenedState;
|
|
1058
|
+
get tweenedPathData() {
|
|
1059
|
+
return this.#tweenedState.current;
|
|
1060
|
+
}
|
|
1061
|
+
drawKey = Symbol();
|
|
1062
|
+
/**
|
|
1063
|
+
* @param getPathData Hot-path getter — reads only `pathData`. Kept separate from
|
|
1064
|
+
* `getProps` so the `<path d=...>` updater (and the canvas
|
|
1065
|
+
* `tweenedPathData` consumer) does not subscribe to every
|
|
1066
|
+
* Path prop on every tick.
|
|
1067
|
+
* @param getProps Full-props getter — used for one-time / cold-path config
|
|
1068
|
+
* (motion, draw).
|
|
1069
|
+
*/
|
|
1070
|
+
constructor(getPathData, getProps = () => ({})) {
|
|
1071
|
+
this.#getPathData = () => resolvePathData(getPathData());
|
|
1072
|
+
const initial = getProps();
|
|
1073
|
+
const extractedTween = extractTweenConfig(initial.motion);
|
|
1074
|
+
const tweenedOptions = extractedTween ? {
|
|
1075
|
+
type: extractedTween.type,
|
|
1076
|
+
options: {
|
|
1077
|
+
interpolate: interpolatePath,
|
|
1078
|
+
...extractedTween.options
|
|
1079
|
+
}
|
|
1080
|
+
} : void 0;
|
|
1081
|
+
const defaultPathData = (() => {
|
|
1082
|
+
if (!tweenedOptions) return "";
|
|
1083
|
+
const resolved = resolvePathData(getPathData());
|
|
1084
|
+
if (resolved) return flattenPathData(resolved, Math.min(this.chartCtx.yScale(0) ?? this.chartCtx.yRange[0], this.chartCtx.yRange[0]));
|
|
1085
|
+
return "";
|
|
1086
|
+
})();
|
|
1087
|
+
this.#tweenedState = createMotion(defaultPathData, this.#getPathData, tweenedOptions);
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1090
|
+
//#endregion
|
|
1091
|
+
//#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/Path/Path.svg.svelte
|
|
1092
|
+
function Path_svg($$renderer, $$props) {
|
|
1093
|
+
$$renderer.component(($$renderer) => {
|
|
1094
|
+
const uid = props_id($$renderer);
|
|
1095
|
+
let { pathRef = void 0, marker, markerStart: markerStartProp, markerMid: markerMidProp, markerEnd: markerEndProp, startContent, endContent, draw: draw$1, motion, pathData: _pathData, class: classProp, fill: fillProp, fillOpacity: fillOpacityProp, stroke: strokeProp, strokeOpacity: strokeOpacityProp, strokeWidth: strokeWidthProp, opacity: opacityProp, $$slots, $$events, ...rest } = $$props;
|
|
1096
|
+
const c = new PathState(() => _pathData, () => ({
|
|
1097
|
+
draw: draw$1,
|
|
1098
|
+
motion
|
|
1099
|
+
}));
|
|
1100
|
+
const markerStart = derived(() => markerStartProp ?? marker);
|
|
1101
|
+
const markerMid = derived(() => markerMidProp ?? marker);
|
|
1102
|
+
const markerEnd = derived(() => markerEndProp ?? marker);
|
|
1103
|
+
const markerStartId = derived(() => markerStart() ? createId("marker-start", uid) : "");
|
|
1104
|
+
const markerMidId = derived(() => markerMid() ? createId("marker-mid", uid) : "");
|
|
1105
|
+
const markerEndId = derived(() => markerEnd() ? createId("marker-end", uid) : "");
|
|
1106
|
+
let staticEndPoint = void 0;
|
|
1107
|
+
const pathClass = derived(() => cls("lc-path", classProp));
|
|
1108
|
+
const endPointDuration = derived(() => {
|
|
1109
|
+
if (typeof draw$1 === "object" && draw$1.duration !== void 0 && typeof draw$1.duration !== "function") return draw$1.duration;
|
|
1110
|
+
return 800;
|
|
1111
|
+
});
|
|
1112
|
+
const endPoint = draw$1 && endContent ? createControlledMotion(void 0, {
|
|
1113
|
+
type: "tween",
|
|
1114
|
+
duration: () => endPointDuration(),
|
|
1115
|
+
easing: typeof draw$1 === "object" && draw$1.easing ? draw$1.easing : cubicInOut,
|
|
1116
|
+
interpolate() {
|
|
1117
|
+
return (t) => {
|
|
1118
|
+
const totalLength = pathRef?.getTotalLength() ?? 0;
|
|
1119
|
+
return pathRef?.getPointAtLength(totalLength * t);
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
}) : null;
|
|
1123
|
+
const currentEndPoint = derived(() => endPoint ? endPoint.current : staticEndPoint);
|
|
1124
|
+
$$renderer.push(`<!---->`);
|
|
1125
|
+
$$renderer.push(`<path${attributes({
|
|
1126
|
+
...rest,
|
|
1127
|
+
d: c.tweenedPathData,
|
|
1128
|
+
fill: fillProp,
|
|
1129
|
+
"fill-opacity": fillOpacityProp,
|
|
1130
|
+
stroke: strokeProp,
|
|
1131
|
+
"stroke-opacity": strokeOpacityProp,
|
|
1132
|
+
"stroke-width": strokeWidthProp,
|
|
1133
|
+
opacity: opacityProp,
|
|
1134
|
+
class: clsx(pathClass()),
|
|
1135
|
+
"marker-start": markerStartId() ? `url(#${markerStartId()})` : void 0,
|
|
1136
|
+
"marker-mid": markerMidId() ? `url(#${markerMidId()})` : void 0,
|
|
1137
|
+
"marker-end": markerEndId() ? `url(#${markerEndId()})` : void 0
|
|
1138
|
+
}, void 0, void 0, void 0, 3)}></path>`);
|
|
1139
|
+
if (markerStart()) {
|
|
1140
|
+
$$renderer.push("<!--[0-->");
|
|
1141
|
+
MarkerWrapper($$renderer, {
|
|
1142
|
+
id: markerStartId(),
|
|
1143
|
+
marker: markerStart()
|
|
1144
|
+
});
|
|
1145
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1146
|
+
$$renderer.push(`<!--]-->`);
|
|
1147
|
+
if (markerMid()) {
|
|
1148
|
+
$$renderer.push("<!--[0-->");
|
|
1149
|
+
MarkerWrapper($$renderer, {
|
|
1150
|
+
id: markerMidId(),
|
|
1151
|
+
marker: markerMid()
|
|
1152
|
+
});
|
|
1153
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1154
|
+
$$renderer.push(`<!--]-->`);
|
|
1155
|
+
if (markerEnd()) {
|
|
1156
|
+
$$renderer.push("<!--[0-->");
|
|
1157
|
+
MarkerWrapper($$renderer, {
|
|
1158
|
+
id: markerEndId(),
|
|
1159
|
+
marker: markerEnd()
|
|
1160
|
+
});
|
|
1161
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1162
|
+
$$renderer.push(`<!--]-->`);
|
|
1163
|
+
$$renderer.push("<!--[-1-->");
|
|
1164
|
+
$$renderer.push(`<!--]-->`);
|
|
1165
|
+
if (endContent && currentEndPoint()) {
|
|
1166
|
+
$$renderer.push("<!--[0-->");
|
|
1167
|
+
Group($$renderer, {
|
|
1168
|
+
x: currentEndPoint().x,
|
|
1169
|
+
y: currentEndPoint().y,
|
|
1170
|
+
class: "lc-path-g-end",
|
|
1171
|
+
children: ($$renderer) => {
|
|
1172
|
+
endContent($$renderer, {
|
|
1173
|
+
point: currentEndPoint(),
|
|
1174
|
+
value: {
|
|
1175
|
+
x: c.chartCtx.xScale?.invert?.(currentEndPoint().x),
|
|
1176
|
+
y: c.chartCtx.yScale?.invert?.(currentEndPoint().y)
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
$$renderer.push(`<!---->`);
|
|
1180
|
+
},
|
|
1181
|
+
$$slots: { default: true }
|
|
1182
|
+
});
|
|
1183
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1184
|
+
$$renderer.push(`<!--]-->`);
|
|
1185
|
+
$$renderer.push(`<!---->`);
|
|
1186
|
+
bind_props($$props, { pathRef });
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#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/Path/Path.canvas.svelte
|
|
1191
|
+
function Path_canvas($$renderer, $$props) {
|
|
1192
|
+
$$renderer.component(($$renderer) => {
|
|
1193
|
+
let { pathData, $$slots, $$events, ...rest } = $$props;
|
|
1194
|
+
const c = new PathState(() => pathData, () => rest);
|
|
1195
|
+
function render(ctx, styleOverrides) {
|
|
1196
|
+
renderPathData(ctx, c.tweenedPathData ?? "", styleOverrides ? merge({ styles: { strokeWidth: rest.strokeWidth } }, styleOverrides) : {
|
|
1197
|
+
styles: {
|
|
1198
|
+
fill: rest.fill,
|
|
1199
|
+
fillOpacity: rest.fillOpacity,
|
|
1200
|
+
stroke: rest.stroke,
|
|
1201
|
+
strokeOpacity: rest.strokeOpacity,
|
|
1202
|
+
strokeWidth: rest.strokeWidth,
|
|
1203
|
+
opacity: rest.opacity
|
|
1204
|
+
},
|
|
1205
|
+
classes: cls("lc-path", rest.class),
|
|
1206
|
+
style: rest.style
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
const fillKey = createKey(() => rest.fill);
|
|
1210
|
+
const strokeKey = createKey(() => rest.stroke);
|
|
1211
|
+
c.chartCtx.registerComponent({
|
|
1212
|
+
name: "Path",
|
|
1213
|
+
kind: "mark",
|
|
1214
|
+
canvasRender: {
|
|
1215
|
+
render,
|
|
1216
|
+
events: {
|
|
1217
|
+
get click() {
|
|
1218
|
+
return rest.onclick;
|
|
1219
|
+
},
|
|
1220
|
+
get pointerenter() {
|
|
1221
|
+
return rest.onpointerenter;
|
|
1222
|
+
},
|
|
1223
|
+
get pointermove() {
|
|
1224
|
+
return rest.onpointermove;
|
|
1225
|
+
},
|
|
1226
|
+
get pointerleave() {
|
|
1227
|
+
return rest.onpointerleave;
|
|
1228
|
+
},
|
|
1229
|
+
get pointerdown() {
|
|
1230
|
+
return rest.onpointerdown;
|
|
1231
|
+
},
|
|
1232
|
+
get pointerover() {
|
|
1233
|
+
return rest.onpointerover;
|
|
1234
|
+
},
|
|
1235
|
+
get pointerout() {
|
|
1236
|
+
return rest.onpointerout;
|
|
1237
|
+
},
|
|
1238
|
+
get touchmove() {
|
|
1239
|
+
return rest.ontouchmove;
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
deps: () => [
|
|
1243
|
+
fillKey.current,
|
|
1244
|
+
rest.fillOpacity,
|
|
1245
|
+
strokeKey.current,
|
|
1246
|
+
rest.strokeOpacity,
|
|
1247
|
+
rest.strokeWidth,
|
|
1248
|
+
rest.opacity,
|
|
1249
|
+
rest.class,
|
|
1250
|
+
c.tweenedPathData,
|
|
1251
|
+
rest.style
|
|
1252
|
+
]
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export { Group_svg as G, MarkerWrapper as M, Path as P, Path_svg as a, Path_canvas as b, createId as c, Group_canvas as d, Group_html as e, Group as f, fade as g, interpolatePath as i, path as p };
|
|
1259
|
+
//# sourceMappingURL=Path.canvas.js-DNAtnEBt.js.map
|