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,2052 @@
|
|
|
1
|
+
import { at as spread_props, ak as ensure_array_like, ac as derived, as as props_id, am as bind_props } from './server.js-CAEBuMIH.js';
|
|
2
|
+
import { a as getChartContext, b as cls, e as accessor } from './common.js-BWQB8Die.js';
|
|
3
|
+
import { g as getLayerContext, u as getFacetPanel, b as getGeoContext } from './key.svelte.js-CWIvXc6L.js';
|
|
4
|
+
import { C as ClipPath_svg, a as ClipPath_canvas, l as linearClosed_default, e as extent } from './ClipPath.canvas.js-CFTBDWVU.js';
|
|
5
|
+
import { s as stream_default, h as hypot, a as atan2$1, d as degrees$1, b as asin$1, A as Adder, n as noop, p as path_default, r as radians$1, t as tau, c as sqrt$1, i as identity_default, e as sin$1, f as cos$1, g as abs, j as boundsStream, k as epsilon, q as quarterPi, l as pi$1, m as sign$1, o as halfPi$1, u as atan, v as acos } from './path.js-BizMrlzb.js';
|
|
6
|
+
import { m as max$1 } from './max.js-CuS0BpRI.js';
|
|
7
|
+
import { a as Path_svg, G as Group_svg, b as Path_canvas, d as Group_canvas, c as createId, p as path } from './Path.canvas.js-DNAtnEBt.js';
|
|
8
|
+
import { p as pointRadial_default } from './pointRadial.js-Deeu1LXx.js';
|
|
9
|
+
import { D as Delaunay, a as area_default$1, c as centroid_default$1 } from './centroid.js-BnGN3LH0.js';
|
|
10
|
+
import './uneval.js-DaakSYFQ.js';
|
|
11
|
+
import './motion.svelte.js-DCHSFMu-.js';
|
|
12
|
+
|
|
13
|
+
//#region node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/merge.js
|
|
14
|
+
function* flatten(arrays) {
|
|
15
|
+
for (const array of arrays) yield* array;
|
|
16
|
+
}
|
|
17
|
+
function merge(arrays) {
|
|
18
|
+
return Array.from(flatten(arrays));
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/area.js
|
|
22
|
+
var areaRingSum = new Adder();
|
|
23
|
+
var areaSum = new Adder();
|
|
24
|
+
var lambda00$1;
|
|
25
|
+
var phi00$1;
|
|
26
|
+
var lambda0$1;
|
|
27
|
+
var cosPhi0$1;
|
|
28
|
+
var sinPhi0$1;
|
|
29
|
+
var areaStream = {
|
|
30
|
+
point: noop,
|
|
31
|
+
lineStart: noop,
|
|
32
|
+
lineEnd: noop,
|
|
33
|
+
polygonStart: function() {
|
|
34
|
+
areaRingSum = new Adder();
|
|
35
|
+
areaStream.lineStart = areaRingStart;
|
|
36
|
+
areaStream.lineEnd = areaRingEnd;
|
|
37
|
+
},
|
|
38
|
+
polygonEnd: function() {
|
|
39
|
+
var areaRing = +areaRingSum;
|
|
40
|
+
areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);
|
|
41
|
+
this.lineStart = this.lineEnd = this.point = noop;
|
|
42
|
+
},
|
|
43
|
+
sphere: function() {
|
|
44
|
+
areaSum.add(tau);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
function areaRingStart() {
|
|
48
|
+
areaStream.point = areaPointFirst;
|
|
49
|
+
}
|
|
50
|
+
function areaRingEnd() {
|
|
51
|
+
areaPoint(lambda00$1, phi00$1);
|
|
52
|
+
}
|
|
53
|
+
function areaPointFirst(lambda, phi) {
|
|
54
|
+
areaStream.point = areaPoint;
|
|
55
|
+
lambda00$1 = lambda, phi00$1 = phi;
|
|
56
|
+
lambda *= radians$1, phi *= radians$1;
|
|
57
|
+
lambda0$1 = lambda, cosPhi0$1 = cos$1(phi = phi / 2 + quarterPi), sinPhi0$1 = sin$1(phi);
|
|
58
|
+
}
|
|
59
|
+
function areaPoint(lambda, phi) {
|
|
60
|
+
lambda *= radians$1, phi *= radians$1;
|
|
61
|
+
phi = phi / 2 + quarterPi;
|
|
62
|
+
var dLambda = lambda - lambda0$1, sdLambda = dLambda >= 0 ? 1 : -1, adLambda = sdLambda * dLambda, cosPhi = cos$1(phi), sinPhi = sin$1(phi), k = sinPhi0$1 * sinPhi, u = cosPhi0$1 * cosPhi + k * cos$1(adLambda), v = k * sdLambda * sin$1(adLambda);
|
|
63
|
+
areaRingSum.add(atan2$1(v, u));
|
|
64
|
+
lambda0$1 = lambda, cosPhi0$1 = cosPhi, sinPhi0$1 = sinPhi;
|
|
65
|
+
}
|
|
66
|
+
function area_default(object) {
|
|
67
|
+
areaSum = new Adder();
|
|
68
|
+
stream_default(object, areaStream);
|
|
69
|
+
return areaSum * 2;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/cartesian.js
|
|
73
|
+
function spherical$1(cartesian) {
|
|
74
|
+
return [atan2$1(cartesian[1], cartesian[0]), asin$1(cartesian[2])];
|
|
75
|
+
}
|
|
76
|
+
function cartesian$1(spherical) {
|
|
77
|
+
var lambda = spherical[0], phi = spherical[1], cosPhi = cos$1(phi);
|
|
78
|
+
return [
|
|
79
|
+
cosPhi * cos$1(lambda),
|
|
80
|
+
cosPhi * sin$1(lambda),
|
|
81
|
+
sin$1(phi)
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
function cartesianDot$1(a, b) {
|
|
85
|
+
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
86
|
+
}
|
|
87
|
+
function cartesianCross$1(a, b) {
|
|
88
|
+
return [
|
|
89
|
+
a[1] * b[2] - a[2] * b[1],
|
|
90
|
+
a[2] * b[0] - a[0] * b[2],
|
|
91
|
+
a[0] * b[1] - a[1] * b[0]
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
function cartesianAddInPlace(a, b) {
|
|
95
|
+
a[0] += b[0], a[1] += b[1], a[2] += b[2];
|
|
96
|
+
}
|
|
97
|
+
function cartesianScale(vector, k) {
|
|
98
|
+
return [
|
|
99
|
+
vector[0] * k,
|
|
100
|
+
vector[1] * k,
|
|
101
|
+
vector[2] * k
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
function cartesianNormalizeInPlace(d) {
|
|
105
|
+
var l = sqrt$1(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
|
|
106
|
+
d[0] /= l, d[1] /= l, d[2] /= l;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/centroid.js
|
|
110
|
+
var W0;
|
|
111
|
+
var W1;
|
|
112
|
+
var X0;
|
|
113
|
+
var Y0;
|
|
114
|
+
var Z0;
|
|
115
|
+
var X1;
|
|
116
|
+
var Y1;
|
|
117
|
+
var Z1;
|
|
118
|
+
var X2;
|
|
119
|
+
var Y2;
|
|
120
|
+
var Z2;
|
|
121
|
+
var lambda00;
|
|
122
|
+
var phi00;
|
|
123
|
+
var x0;
|
|
124
|
+
var y0;
|
|
125
|
+
var z0;
|
|
126
|
+
var centroidStream = {
|
|
127
|
+
sphere: noop,
|
|
128
|
+
point: centroidPoint,
|
|
129
|
+
lineStart: centroidLineStart,
|
|
130
|
+
lineEnd: centroidLineEnd,
|
|
131
|
+
polygonStart: function() {
|
|
132
|
+
centroidStream.lineStart = centroidRingStart;
|
|
133
|
+
centroidStream.lineEnd = centroidRingEnd;
|
|
134
|
+
},
|
|
135
|
+
polygonEnd: function() {
|
|
136
|
+
centroidStream.lineStart = centroidLineStart;
|
|
137
|
+
centroidStream.lineEnd = centroidLineEnd;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
function centroidPoint(lambda, phi) {
|
|
141
|
+
lambda *= radians$1, phi *= radians$1;
|
|
142
|
+
var cosPhi = cos$1(phi);
|
|
143
|
+
centroidPointCartesian(cosPhi * cos$1(lambda), cosPhi * sin$1(lambda), sin$1(phi));
|
|
144
|
+
}
|
|
145
|
+
function centroidPointCartesian(x, y, z) {
|
|
146
|
+
++W0;
|
|
147
|
+
X0 += (x - X0) / W0;
|
|
148
|
+
Y0 += (y - Y0) / W0;
|
|
149
|
+
Z0 += (z - Z0) / W0;
|
|
150
|
+
}
|
|
151
|
+
function centroidLineStart() {
|
|
152
|
+
centroidStream.point = centroidLinePointFirst;
|
|
153
|
+
}
|
|
154
|
+
function centroidLinePointFirst(lambda, phi) {
|
|
155
|
+
lambda *= radians$1, phi *= radians$1;
|
|
156
|
+
var cosPhi = cos$1(phi);
|
|
157
|
+
x0 = cosPhi * cos$1(lambda);
|
|
158
|
+
y0 = cosPhi * sin$1(lambda);
|
|
159
|
+
z0 = sin$1(phi);
|
|
160
|
+
centroidStream.point = centroidLinePoint;
|
|
161
|
+
centroidPointCartesian(x0, y0, z0);
|
|
162
|
+
}
|
|
163
|
+
function centroidLinePoint(lambda, phi) {
|
|
164
|
+
lambda *= radians$1, phi *= radians$1;
|
|
165
|
+
var cosPhi = cos$1(phi), x = cosPhi * cos$1(lambda), y = cosPhi * sin$1(lambda), z = sin$1(phi), w = atan2$1(sqrt$1((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);
|
|
166
|
+
W1 += w;
|
|
167
|
+
X1 += w * (x0 + (x0 = x));
|
|
168
|
+
Y1 += w * (y0 + (y0 = y));
|
|
169
|
+
Z1 += w * (z0 + (z0 = z));
|
|
170
|
+
centroidPointCartesian(x0, y0, z0);
|
|
171
|
+
}
|
|
172
|
+
function centroidLineEnd() {
|
|
173
|
+
centroidStream.point = centroidPoint;
|
|
174
|
+
}
|
|
175
|
+
function centroidRingStart() {
|
|
176
|
+
centroidStream.point = centroidRingPointFirst;
|
|
177
|
+
}
|
|
178
|
+
function centroidRingEnd() {
|
|
179
|
+
centroidRingPoint(lambda00, phi00);
|
|
180
|
+
centroidStream.point = centroidPoint;
|
|
181
|
+
}
|
|
182
|
+
function centroidRingPointFirst(lambda, phi) {
|
|
183
|
+
lambda00 = lambda, phi00 = phi;
|
|
184
|
+
lambda *= radians$1, phi *= radians$1;
|
|
185
|
+
centroidStream.point = centroidRingPoint;
|
|
186
|
+
var cosPhi = cos$1(phi);
|
|
187
|
+
x0 = cosPhi * cos$1(lambda);
|
|
188
|
+
y0 = cosPhi * sin$1(lambda);
|
|
189
|
+
z0 = sin$1(phi);
|
|
190
|
+
centroidPointCartesian(x0, y0, z0);
|
|
191
|
+
}
|
|
192
|
+
function centroidRingPoint(lambda, phi) {
|
|
193
|
+
lambda *= radians$1, phi *= radians$1;
|
|
194
|
+
var cosPhi = cos$1(phi), x = cosPhi * cos$1(lambda), y = cosPhi * sin$1(lambda), z = sin$1(phi), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = hypot(cx, cy, cz), w = asin$1(m), v = m && -w / m;
|
|
195
|
+
X2.add(v * cx);
|
|
196
|
+
Y2.add(v * cy);
|
|
197
|
+
Z2.add(v * cz);
|
|
198
|
+
W1 += w;
|
|
199
|
+
X1 += w * (x0 + (x0 = x));
|
|
200
|
+
Y1 += w * (y0 + (y0 = y));
|
|
201
|
+
Z1 += w * (z0 + (z0 = z));
|
|
202
|
+
centroidPointCartesian(x0, y0, z0);
|
|
203
|
+
}
|
|
204
|
+
function centroid_default(object) {
|
|
205
|
+
W0 = W1 = X0 = Y0 = Z0 = X1 = Y1 = Z1 = 0;
|
|
206
|
+
X2 = new Adder();
|
|
207
|
+
Y2 = new Adder();
|
|
208
|
+
Z2 = new Adder();
|
|
209
|
+
stream_default(object, centroidStream);
|
|
210
|
+
var x = +X2, y = +Y2, z = +Z2, m = hypot(x, y, z);
|
|
211
|
+
if (m < 1e-12) {
|
|
212
|
+
x = X1, y = Y1, z = Z1;
|
|
213
|
+
if (W1 < 1e-6) x = X0, y = Y0, z = Z0;
|
|
214
|
+
m = hypot(x, y, z);
|
|
215
|
+
if (m < 1e-12) return [NaN, NaN];
|
|
216
|
+
}
|
|
217
|
+
return [atan2$1(y, x) * degrees$1, asin$1(z / m) * degrees$1];
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/compose.js
|
|
221
|
+
function compose_default(a, b) {
|
|
222
|
+
function compose(x, y) {
|
|
223
|
+
return x = a(x, y), b(x[0], x[1]);
|
|
224
|
+
}
|
|
225
|
+
if (a.invert && b.invert) compose.invert = function(x, y) {
|
|
226
|
+
return x = b.invert(x, y), x && a.invert(x[0], x[1]);
|
|
227
|
+
};
|
|
228
|
+
return compose;
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/rotation.js
|
|
232
|
+
function rotationIdentity(lambda, phi) {
|
|
233
|
+
if (abs(lambda) > pi$1) lambda -= Math.round(lambda / tau) * tau;
|
|
234
|
+
return [lambda, phi];
|
|
235
|
+
}
|
|
236
|
+
rotationIdentity.invert = rotationIdentity;
|
|
237
|
+
function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
|
|
238
|
+
return (deltaLambda %= tau) ? deltaPhi || deltaGamma ? compose_default(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma)) : rotationLambda(deltaLambda) : deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma) : rotationIdentity;
|
|
239
|
+
}
|
|
240
|
+
function forwardRotationLambda(deltaLambda) {
|
|
241
|
+
return function(lambda, phi) {
|
|
242
|
+
lambda += deltaLambda;
|
|
243
|
+
if (abs(lambda) > pi$1) lambda -= Math.round(lambda / tau) * tau;
|
|
244
|
+
return [lambda, phi];
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
function rotationLambda(deltaLambda) {
|
|
248
|
+
var rotation = forwardRotationLambda(deltaLambda);
|
|
249
|
+
rotation.invert = forwardRotationLambda(-deltaLambda);
|
|
250
|
+
return rotation;
|
|
251
|
+
}
|
|
252
|
+
function rotationPhiGamma(deltaPhi, deltaGamma) {
|
|
253
|
+
var cosDeltaPhi = cos$1(deltaPhi), sinDeltaPhi = sin$1(deltaPhi), cosDeltaGamma = cos$1(deltaGamma), sinDeltaGamma = sin$1(deltaGamma);
|
|
254
|
+
function rotation(lambda, phi) {
|
|
255
|
+
var cosPhi = cos$1(phi), x = cos$1(lambda) * cosPhi, y = sin$1(lambda) * cosPhi, z = sin$1(phi), k = z * cosDeltaPhi + x * sinDeltaPhi;
|
|
256
|
+
return [atan2$1(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi), asin$1(k * cosDeltaGamma + y * sinDeltaGamma)];
|
|
257
|
+
}
|
|
258
|
+
rotation.invert = function(lambda, phi) {
|
|
259
|
+
var cosPhi = cos$1(phi), x = cos$1(lambda) * cosPhi, y = sin$1(lambda) * cosPhi, z = sin$1(phi), k = z * cosDeltaGamma - y * sinDeltaGamma;
|
|
260
|
+
return [atan2$1(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi), asin$1(k * cosDeltaPhi - x * sinDeltaPhi)];
|
|
261
|
+
};
|
|
262
|
+
return rotation;
|
|
263
|
+
}
|
|
264
|
+
function rotation_default(rotate) {
|
|
265
|
+
rotate = rotateRadians(rotate[0] * radians$1, rotate[1] * radians$1, rotate.length > 2 ? rotate[2] * radians$1 : 0);
|
|
266
|
+
function forward(coordinates) {
|
|
267
|
+
coordinates = rotate(coordinates[0] * radians$1, coordinates[1] * radians$1);
|
|
268
|
+
return coordinates[0] *= degrees$1, coordinates[1] *= degrees$1, coordinates;
|
|
269
|
+
}
|
|
270
|
+
forward.invert = function(coordinates) {
|
|
271
|
+
coordinates = rotate.invert(coordinates[0] * radians$1, coordinates[1] * radians$1);
|
|
272
|
+
return coordinates[0] *= degrees$1, coordinates[1] *= degrees$1, coordinates;
|
|
273
|
+
};
|
|
274
|
+
return forward;
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/circle.js
|
|
278
|
+
function circleStream(stream, radius, delta, direction, t0, t1) {
|
|
279
|
+
if (!delta) return;
|
|
280
|
+
var cosRadius = cos$1(radius), sinRadius = sin$1(radius), step = direction * delta;
|
|
281
|
+
if (t0 == null) {
|
|
282
|
+
t0 = radius + direction * tau;
|
|
283
|
+
t1 = radius - step / 2;
|
|
284
|
+
} else {
|
|
285
|
+
t0 = circleRadius(cosRadius, t0);
|
|
286
|
+
t1 = circleRadius(cosRadius, t1);
|
|
287
|
+
if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;
|
|
288
|
+
}
|
|
289
|
+
for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
|
|
290
|
+
point = spherical$1([
|
|
291
|
+
cosRadius,
|
|
292
|
+
-sinRadius * cos$1(t),
|
|
293
|
+
-sinRadius * sin$1(t)
|
|
294
|
+
]);
|
|
295
|
+
stream.point(point[0], point[1]);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function circleRadius(cosRadius, point) {
|
|
299
|
+
point = cartesian$1(point), point[0] -= cosRadius;
|
|
300
|
+
cartesianNormalizeInPlace(point);
|
|
301
|
+
var radius = acos(-point[1]);
|
|
302
|
+
return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/buffer.js
|
|
306
|
+
function buffer_default() {
|
|
307
|
+
var lines = [], line;
|
|
308
|
+
return {
|
|
309
|
+
point: function(x, y, m) {
|
|
310
|
+
line.push([
|
|
311
|
+
x,
|
|
312
|
+
y,
|
|
313
|
+
m
|
|
314
|
+
]);
|
|
315
|
+
},
|
|
316
|
+
lineStart: function() {
|
|
317
|
+
lines.push(line = []);
|
|
318
|
+
},
|
|
319
|
+
lineEnd: noop,
|
|
320
|
+
rejoin: function() {
|
|
321
|
+
if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
|
|
322
|
+
},
|
|
323
|
+
result: function() {
|
|
324
|
+
var result = lines;
|
|
325
|
+
lines = [];
|
|
326
|
+
line = null;
|
|
327
|
+
return result;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/pointEqual.js
|
|
333
|
+
function pointEqual_default(a, b) {
|
|
334
|
+
return abs(a[0] - b[0]) < 1e-6 && abs(a[1] - b[1]) < 1e-6;
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/rejoin.js
|
|
338
|
+
function Intersection(point, points, other, entry) {
|
|
339
|
+
this.x = point;
|
|
340
|
+
this.z = points;
|
|
341
|
+
this.o = other;
|
|
342
|
+
this.e = entry;
|
|
343
|
+
this.v = false;
|
|
344
|
+
this.n = this.p = null;
|
|
345
|
+
}
|
|
346
|
+
function rejoin_default(segments, compareIntersection, startInside, interpolate, stream) {
|
|
347
|
+
var subject = [], clip = [], i, n;
|
|
348
|
+
segments.forEach(function(segment) {
|
|
349
|
+
if ((n = segment.length - 1) <= 0) return;
|
|
350
|
+
var n, p0 = segment[0], p1 = segment[n], x;
|
|
351
|
+
if (pointEqual_default(p0, p1)) {
|
|
352
|
+
if (!p0[2] && !p1[2]) {
|
|
353
|
+
stream.lineStart();
|
|
354
|
+
for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);
|
|
355
|
+
stream.lineEnd();
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
p1[0] += 2 * epsilon;
|
|
359
|
+
}
|
|
360
|
+
subject.push(x = new Intersection(p0, segment, null, true));
|
|
361
|
+
clip.push(x.o = new Intersection(p0, null, x, false));
|
|
362
|
+
subject.push(x = new Intersection(p1, segment, null, false));
|
|
363
|
+
clip.push(x.o = new Intersection(p1, null, x, true));
|
|
364
|
+
});
|
|
365
|
+
if (!subject.length) return;
|
|
366
|
+
clip.sort(compareIntersection);
|
|
367
|
+
link(subject);
|
|
368
|
+
link(clip);
|
|
369
|
+
for (i = 0, n = clip.length; i < n; ++i) clip[i].e = startInside = !startInside;
|
|
370
|
+
var start = subject[0], points, point;
|
|
371
|
+
while (1) {
|
|
372
|
+
var current = start, isSubject = true;
|
|
373
|
+
while (current.v) if ((current = current.n) === start) return;
|
|
374
|
+
points = current.z;
|
|
375
|
+
stream.lineStart();
|
|
376
|
+
do {
|
|
377
|
+
current.v = current.o.v = true;
|
|
378
|
+
if (current.e) {
|
|
379
|
+
if (isSubject) for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);
|
|
380
|
+
else interpolate(current.x, current.n.x, 1, stream);
|
|
381
|
+
current = current.n;
|
|
382
|
+
} else {
|
|
383
|
+
if (isSubject) {
|
|
384
|
+
points = current.p.z;
|
|
385
|
+
for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);
|
|
386
|
+
} else interpolate(current.x, current.p.x, -1, stream);
|
|
387
|
+
current = current.p;
|
|
388
|
+
}
|
|
389
|
+
current = current.o;
|
|
390
|
+
points = current.z;
|
|
391
|
+
isSubject = !isSubject;
|
|
392
|
+
} while (!current.v);
|
|
393
|
+
stream.lineEnd();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function link(array) {
|
|
397
|
+
if (!(n = array.length)) return;
|
|
398
|
+
var n, i = 0, a = array[0], b;
|
|
399
|
+
while (++i < n) {
|
|
400
|
+
a.n = b = array[i];
|
|
401
|
+
b.p = a;
|
|
402
|
+
a = b;
|
|
403
|
+
}
|
|
404
|
+
a.n = b = array[0];
|
|
405
|
+
b.p = a;
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/polygonContains.js
|
|
409
|
+
function longitude(point) {
|
|
410
|
+
return abs(point[0]) <= pi$1 ? point[0] : sign$1(point[0]) * ((abs(point[0]) + pi$1) % tau - pi$1);
|
|
411
|
+
}
|
|
412
|
+
function polygonContains_default(polygon, point) {
|
|
413
|
+
var lambda = longitude(point), phi = point[1], sinPhi = sin$1(phi), normal = [
|
|
414
|
+
sin$1(lambda),
|
|
415
|
+
-cos$1(lambda),
|
|
416
|
+
0
|
|
417
|
+
], angle = 0, winding = 0;
|
|
418
|
+
var sum = new Adder();
|
|
419
|
+
if (sinPhi === 1) phi = halfPi$1 + epsilon;
|
|
420
|
+
else if (sinPhi === -1) phi = -halfPi$1 - epsilon;
|
|
421
|
+
for (var i = 0, n = polygon.length; i < n; ++i) {
|
|
422
|
+
if (!(m = (ring = polygon[i]).length)) continue;
|
|
423
|
+
var ring, m, point0 = ring[m - 1], lambda0 = longitude(point0), phi0 = point0[1] / 2 + quarterPi, sinPhi0 = sin$1(phi0), cosPhi0 = cos$1(phi0);
|
|
424
|
+
for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {
|
|
425
|
+
var point1 = ring[j], lambda1 = longitude(point1), phi1 = point1[1] / 2 + quarterPi, sinPhi1 = sin$1(phi1), cosPhi1 = cos$1(phi1), delta = lambda1 - lambda0, sign = delta >= 0 ? 1 : -1, absDelta = sign * delta, antimeridian = absDelta > pi$1, k = sinPhi0 * sinPhi1;
|
|
426
|
+
sum.add(atan2$1(k * sign * sin$1(absDelta), cosPhi0 * cosPhi1 + k * cos$1(absDelta)));
|
|
427
|
+
angle += antimeridian ? delta + sign * tau : delta;
|
|
428
|
+
if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {
|
|
429
|
+
var arc = cartesianCross$1(cartesian$1(point0), cartesian$1(point1));
|
|
430
|
+
cartesianNormalizeInPlace(arc);
|
|
431
|
+
var intersection = cartesianCross$1(normal, arc);
|
|
432
|
+
cartesianNormalizeInPlace(intersection);
|
|
433
|
+
var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin$1(intersection[2]);
|
|
434
|
+
if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) winding += antimeridian ^ delta >= 0 ? 1 : -1;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return (angle < -1e-6 || angle < 1e-6 && sum < -1e-12) ^ winding & 1;
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/index.js
|
|
442
|
+
function clip_default(pointVisible, clipLine, interpolate, start) {
|
|
443
|
+
return function(sink) {
|
|
444
|
+
var line = clipLine(sink), ringBuffer = buffer_default(), ringSink = clipLine(ringBuffer), polygonStarted = false, polygon, segments, ring;
|
|
445
|
+
var clip = {
|
|
446
|
+
point,
|
|
447
|
+
lineStart,
|
|
448
|
+
lineEnd,
|
|
449
|
+
polygonStart: function() {
|
|
450
|
+
clip.point = pointRing;
|
|
451
|
+
clip.lineStart = ringStart;
|
|
452
|
+
clip.lineEnd = ringEnd;
|
|
453
|
+
segments = [];
|
|
454
|
+
polygon = [];
|
|
455
|
+
},
|
|
456
|
+
polygonEnd: function() {
|
|
457
|
+
clip.point = point;
|
|
458
|
+
clip.lineStart = lineStart;
|
|
459
|
+
clip.lineEnd = lineEnd;
|
|
460
|
+
segments = merge(segments);
|
|
461
|
+
var startInside = polygonContains_default(polygon, start);
|
|
462
|
+
if (segments.length) {
|
|
463
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
464
|
+
rejoin_default(segments, compareIntersection, startInside, interpolate, sink);
|
|
465
|
+
} else if (startInside) {
|
|
466
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
467
|
+
sink.lineStart();
|
|
468
|
+
interpolate(null, null, 1, sink);
|
|
469
|
+
sink.lineEnd();
|
|
470
|
+
}
|
|
471
|
+
if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
|
|
472
|
+
segments = polygon = null;
|
|
473
|
+
},
|
|
474
|
+
sphere: function() {
|
|
475
|
+
sink.polygonStart();
|
|
476
|
+
sink.lineStart();
|
|
477
|
+
interpolate(null, null, 1, sink);
|
|
478
|
+
sink.lineEnd();
|
|
479
|
+
sink.polygonEnd();
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
function point(lambda, phi) {
|
|
483
|
+
if (pointVisible(lambda, phi)) sink.point(lambda, phi);
|
|
484
|
+
}
|
|
485
|
+
function pointLine(lambda, phi) {
|
|
486
|
+
line.point(lambda, phi);
|
|
487
|
+
}
|
|
488
|
+
function lineStart() {
|
|
489
|
+
clip.point = pointLine;
|
|
490
|
+
line.lineStart();
|
|
491
|
+
}
|
|
492
|
+
function lineEnd() {
|
|
493
|
+
clip.point = point;
|
|
494
|
+
line.lineEnd();
|
|
495
|
+
}
|
|
496
|
+
function pointRing(lambda, phi) {
|
|
497
|
+
ring.push([lambda, phi]);
|
|
498
|
+
ringSink.point(lambda, phi);
|
|
499
|
+
}
|
|
500
|
+
function ringStart() {
|
|
501
|
+
ringSink.lineStart();
|
|
502
|
+
ring = [];
|
|
503
|
+
}
|
|
504
|
+
function ringEnd() {
|
|
505
|
+
pointRing(ring[0][0], ring[0][1]);
|
|
506
|
+
ringSink.lineEnd();
|
|
507
|
+
var clean = ringSink.clean(), ringSegments = ringBuffer.result(), i, n = ringSegments.length, m, segment, point;
|
|
508
|
+
ring.pop();
|
|
509
|
+
polygon.push(ring);
|
|
510
|
+
ring = null;
|
|
511
|
+
if (!n) return;
|
|
512
|
+
if (clean & 1) {
|
|
513
|
+
segment = ringSegments[0];
|
|
514
|
+
if ((m = segment.length - 1) > 0) {
|
|
515
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
516
|
+
sink.lineStart();
|
|
517
|
+
for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);
|
|
518
|
+
sink.lineEnd();
|
|
519
|
+
}
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
|
|
523
|
+
segments.push(ringSegments.filter(validSegment));
|
|
524
|
+
}
|
|
525
|
+
return clip;
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
function validSegment(segment) {
|
|
529
|
+
return segment.length > 1;
|
|
530
|
+
}
|
|
531
|
+
function compareIntersection(a, b) {
|
|
532
|
+
return ((a = a.x)[0] < 0 ? a[1] - halfPi$1 - epsilon : halfPi$1 - a[1]) - ((b = b.x)[0] < 0 ? b[1] - halfPi$1 - epsilon : halfPi$1 - b[1]);
|
|
533
|
+
}
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/antimeridian.js
|
|
536
|
+
var antimeridian_default = clip_default(function() {
|
|
537
|
+
return true;
|
|
538
|
+
}, clipAntimeridianLine, clipAntimeridianInterpolate, [-pi$1, -halfPi$1]);
|
|
539
|
+
function clipAntimeridianLine(stream) {
|
|
540
|
+
var lambda0 = NaN, phi0 = NaN, sign0 = NaN, clean;
|
|
541
|
+
return {
|
|
542
|
+
lineStart: function() {
|
|
543
|
+
stream.lineStart();
|
|
544
|
+
clean = 1;
|
|
545
|
+
},
|
|
546
|
+
point: function(lambda1, phi1) {
|
|
547
|
+
var sign1 = lambda1 > 0 ? pi$1 : -pi$1, delta = abs(lambda1 - lambda0);
|
|
548
|
+
if (abs(delta - pi$1) < 1e-6) {
|
|
549
|
+
stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi$1 : -halfPi$1);
|
|
550
|
+
stream.point(sign0, phi0);
|
|
551
|
+
stream.lineEnd();
|
|
552
|
+
stream.lineStart();
|
|
553
|
+
stream.point(sign1, phi0);
|
|
554
|
+
stream.point(lambda1, phi0);
|
|
555
|
+
clean = 0;
|
|
556
|
+
} else if (sign0 !== sign1 && delta >= pi$1) {
|
|
557
|
+
if (abs(lambda0 - sign0) < 1e-6) lambda0 -= sign0 * epsilon;
|
|
558
|
+
if (abs(lambda1 - sign1) < 1e-6) lambda1 -= sign1 * epsilon;
|
|
559
|
+
phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);
|
|
560
|
+
stream.point(sign0, phi0);
|
|
561
|
+
stream.lineEnd();
|
|
562
|
+
stream.lineStart();
|
|
563
|
+
stream.point(sign1, phi0);
|
|
564
|
+
clean = 0;
|
|
565
|
+
}
|
|
566
|
+
stream.point(lambda0 = lambda1, phi0 = phi1);
|
|
567
|
+
sign0 = sign1;
|
|
568
|
+
},
|
|
569
|
+
lineEnd: function() {
|
|
570
|
+
stream.lineEnd();
|
|
571
|
+
lambda0 = phi0 = NaN;
|
|
572
|
+
},
|
|
573
|
+
clean: function() {
|
|
574
|
+
return 2 - clean;
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {
|
|
579
|
+
var cosPhi0, cosPhi1, sinLambda0Lambda1 = sin$1(lambda0 - lambda1);
|
|
580
|
+
return abs(sinLambda0Lambda1) > 1e-6 ? atan((sin$1(phi0) * (cosPhi1 = cos$1(phi1)) * sin$1(lambda1) - sin$1(phi1) * (cosPhi0 = cos$1(phi0)) * sin$1(lambda0)) / (cosPhi0 * cosPhi1 * sinLambda0Lambda1)) : (phi0 + phi1) / 2;
|
|
581
|
+
}
|
|
582
|
+
function clipAntimeridianInterpolate(from, to, direction, stream) {
|
|
583
|
+
var phi;
|
|
584
|
+
if (from == null) {
|
|
585
|
+
phi = direction * halfPi$1;
|
|
586
|
+
stream.point(-pi$1, phi);
|
|
587
|
+
stream.point(0, phi);
|
|
588
|
+
stream.point(pi$1, phi);
|
|
589
|
+
stream.point(pi$1, 0);
|
|
590
|
+
stream.point(pi$1, -phi);
|
|
591
|
+
stream.point(0, -phi);
|
|
592
|
+
stream.point(-pi$1, -phi);
|
|
593
|
+
stream.point(-pi$1, 0);
|
|
594
|
+
stream.point(-pi$1, phi);
|
|
595
|
+
} else if (abs(from[0] - to[0]) > 1e-6) {
|
|
596
|
+
var lambda = from[0] < to[0] ? pi$1 : -pi$1;
|
|
597
|
+
phi = direction * lambda / 2;
|
|
598
|
+
stream.point(-lambda, phi);
|
|
599
|
+
stream.point(0, phi);
|
|
600
|
+
stream.point(lambda, phi);
|
|
601
|
+
} else stream.point(to[0], to[1]);
|
|
602
|
+
}
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/circle.js
|
|
605
|
+
function circle_default(radius) {
|
|
606
|
+
var cr = cos$1(radius), delta = 2 * radians$1, smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
|
|
607
|
+
function interpolate(from, to, direction, stream) {
|
|
608
|
+
circleStream(stream, radius, delta, direction, from, to);
|
|
609
|
+
}
|
|
610
|
+
function visible(lambda, phi) {
|
|
611
|
+
return cos$1(lambda) * cos$1(phi) > cr;
|
|
612
|
+
}
|
|
613
|
+
function clipLine(stream) {
|
|
614
|
+
var point0, c0, v0, v00, clean;
|
|
615
|
+
return {
|
|
616
|
+
lineStart: function() {
|
|
617
|
+
v00 = v0 = false;
|
|
618
|
+
clean = 1;
|
|
619
|
+
},
|
|
620
|
+
point: function(lambda, phi) {
|
|
621
|
+
var point1 = [lambda, phi], point2, v = visible(lambda, phi), c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? pi$1 : -pi$1), phi) : 0;
|
|
622
|
+
if (!point0 && (v00 = v0 = v)) stream.lineStart();
|
|
623
|
+
if (v !== v0) {
|
|
624
|
+
point2 = intersect(point0, point1);
|
|
625
|
+
if (!point2 || pointEqual_default(point0, point2) || pointEqual_default(point1, point2)) point1[2] = 1;
|
|
626
|
+
}
|
|
627
|
+
if (v !== v0) {
|
|
628
|
+
clean = 0;
|
|
629
|
+
if (v) {
|
|
630
|
+
stream.lineStart();
|
|
631
|
+
point2 = intersect(point1, point0);
|
|
632
|
+
stream.point(point2[0], point2[1]);
|
|
633
|
+
} else {
|
|
634
|
+
point2 = intersect(point0, point1);
|
|
635
|
+
stream.point(point2[0], point2[1], 2);
|
|
636
|
+
stream.lineEnd();
|
|
637
|
+
}
|
|
638
|
+
point0 = point2;
|
|
639
|
+
} else if (notHemisphere && point0 && smallRadius ^ v) {
|
|
640
|
+
var t;
|
|
641
|
+
if (!(c & c0) && (t = intersect(point1, point0, true))) {
|
|
642
|
+
clean = 0;
|
|
643
|
+
if (smallRadius) {
|
|
644
|
+
stream.lineStart();
|
|
645
|
+
stream.point(t[0][0], t[0][1]);
|
|
646
|
+
stream.point(t[1][0], t[1][1]);
|
|
647
|
+
stream.lineEnd();
|
|
648
|
+
} else {
|
|
649
|
+
stream.point(t[1][0], t[1][1]);
|
|
650
|
+
stream.lineEnd();
|
|
651
|
+
stream.lineStart();
|
|
652
|
+
stream.point(t[0][0], t[0][1], 3);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if (v && (!point0 || !pointEqual_default(point0, point1))) stream.point(point1[0], point1[1]);
|
|
657
|
+
point0 = point1, v0 = v, c0 = c;
|
|
658
|
+
},
|
|
659
|
+
lineEnd: function() {
|
|
660
|
+
if (v0) stream.lineEnd();
|
|
661
|
+
point0 = null;
|
|
662
|
+
},
|
|
663
|
+
clean: function() {
|
|
664
|
+
return clean | (v00 && v0) << 1;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
function intersect(a, b, two) {
|
|
669
|
+
var pa = cartesian$1(a), pb = cartesian$1(b);
|
|
670
|
+
var n1 = [
|
|
671
|
+
1,
|
|
672
|
+
0,
|
|
673
|
+
0
|
|
674
|
+
], n2 = cartesianCross$1(pa, pb), n2n2 = cartesianDot$1(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2;
|
|
675
|
+
if (!determinant) return !two && a;
|
|
676
|
+
var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = cartesianCross$1(n1, n2), A = cartesianScale(n1, c1);
|
|
677
|
+
cartesianAddInPlace(A, cartesianScale(n2, c2));
|
|
678
|
+
var u = n1xn2, w = cartesianDot$1(A, u), uu = cartesianDot$1(u, u), t2 = w * w - uu * (cartesianDot$1(A, A) - 1);
|
|
679
|
+
if (t2 < 0) return;
|
|
680
|
+
var t = sqrt$1(t2), q = cartesianScale(u, (-w - t) / uu);
|
|
681
|
+
cartesianAddInPlace(q, A);
|
|
682
|
+
q = spherical$1(q);
|
|
683
|
+
if (!two) return q;
|
|
684
|
+
var lambda0 = a[0], lambda1 = b[0], phi0 = a[1], phi1 = b[1], z;
|
|
685
|
+
if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;
|
|
686
|
+
var delta = lambda1 - lambda0, polar = abs(delta - pi$1) < epsilon, meridian = polar || delta < 1e-6;
|
|
687
|
+
if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
|
|
688
|
+
if (meridian ? polar ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < 1e-6 ? phi0 : phi1) : phi0 <= q[1] && q[1] <= phi1 : delta > pi$1 ^ (lambda0 <= q[0] && q[0] <= lambda1)) {
|
|
689
|
+
var q1 = cartesianScale(u, (-w + t) / uu);
|
|
690
|
+
cartesianAddInPlace(q1, A);
|
|
691
|
+
return [q, spherical$1(q1)];
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
function code(lambda, phi) {
|
|
695
|
+
var r = smallRadius ? radius : pi$1 - radius, code = 0;
|
|
696
|
+
if (lambda < -r) code |= 1;
|
|
697
|
+
else if (lambda > r) code |= 2;
|
|
698
|
+
if (phi < -r) code |= 4;
|
|
699
|
+
else if (phi > r) code |= 8;
|
|
700
|
+
return code;
|
|
701
|
+
}
|
|
702
|
+
return clip_default(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi$1, radius - pi$1]);
|
|
703
|
+
}
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/line.js
|
|
706
|
+
function line_default(a, b, x0, y0, x1, y1) {
|
|
707
|
+
var ax = a[0], ay = a[1], bx = b[0], by = b[1], t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r = x0 - ax;
|
|
708
|
+
if (!dx && r > 0) return;
|
|
709
|
+
r /= dx;
|
|
710
|
+
if (dx < 0) {
|
|
711
|
+
if (r < t0) return;
|
|
712
|
+
if (r < t1) t1 = r;
|
|
713
|
+
} else if (dx > 0) {
|
|
714
|
+
if (r > t1) return;
|
|
715
|
+
if (r > t0) t0 = r;
|
|
716
|
+
}
|
|
717
|
+
r = x1 - ax;
|
|
718
|
+
if (!dx && r < 0) return;
|
|
719
|
+
r /= dx;
|
|
720
|
+
if (dx < 0) {
|
|
721
|
+
if (r > t1) return;
|
|
722
|
+
if (r > t0) t0 = r;
|
|
723
|
+
} else if (dx > 0) {
|
|
724
|
+
if (r < t0) return;
|
|
725
|
+
if (r < t1) t1 = r;
|
|
726
|
+
}
|
|
727
|
+
r = y0 - ay;
|
|
728
|
+
if (!dy && r > 0) return;
|
|
729
|
+
r /= dy;
|
|
730
|
+
if (dy < 0) {
|
|
731
|
+
if (r < t0) return;
|
|
732
|
+
if (r < t1) t1 = r;
|
|
733
|
+
} else if (dy > 0) {
|
|
734
|
+
if (r > t1) return;
|
|
735
|
+
if (r > t0) t0 = r;
|
|
736
|
+
}
|
|
737
|
+
r = y1 - ay;
|
|
738
|
+
if (!dy && r < 0) return;
|
|
739
|
+
r /= dy;
|
|
740
|
+
if (dy < 0) {
|
|
741
|
+
if (r > t1) return;
|
|
742
|
+
if (r > t0) t0 = r;
|
|
743
|
+
} else if (dy > 0) {
|
|
744
|
+
if (r < t0) return;
|
|
745
|
+
if (r < t1) t1 = r;
|
|
746
|
+
}
|
|
747
|
+
if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;
|
|
748
|
+
if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;
|
|
749
|
+
return true;
|
|
750
|
+
}
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/clip/rectangle.js
|
|
753
|
+
var clipMax = 1e9;
|
|
754
|
+
var clipMin = -clipMax;
|
|
755
|
+
function clipRectangle(x0, y0, x1, y1) {
|
|
756
|
+
function visible(x, y) {
|
|
757
|
+
return x0 <= x && x <= x1 && y0 <= y && y <= y1;
|
|
758
|
+
}
|
|
759
|
+
function interpolate(from, to, direction, stream) {
|
|
760
|
+
var a = 0, a1 = 0;
|
|
761
|
+
if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoint(from, to) < 0 ^ direction > 0) do
|
|
762
|
+
stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
|
|
763
|
+
while ((a = (a + direction + 4) % 4) !== a1);
|
|
764
|
+
else stream.point(to[0], to[1]);
|
|
765
|
+
}
|
|
766
|
+
function corner(p, direction) {
|
|
767
|
+
return abs(p[0] - x0) < 1e-6 ? direction > 0 ? 0 : 3 : abs(p[0] - x1) < 1e-6 ? direction > 0 ? 2 : 1 : abs(p[1] - y0) < 1e-6 ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2;
|
|
768
|
+
}
|
|
769
|
+
function compareIntersection(a, b) {
|
|
770
|
+
return comparePoint(a.x, b.x);
|
|
771
|
+
}
|
|
772
|
+
function comparePoint(a, b) {
|
|
773
|
+
var ca = corner(a, 1), cb = corner(b, 1);
|
|
774
|
+
return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0];
|
|
775
|
+
}
|
|
776
|
+
return function(stream) {
|
|
777
|
+
var activeStream = stream, bufferStream = buffer_default(), segments, polygon, ring, x__, y__, v__, x_, y_, v_, first, clean;
|
|
778
|
+
var clipStream = {
|
|
779
|
+
point,
|
|
780
|
+
lineStart,
|
|
781
|
+
lineEnd,
|
|
782
|
+
polygonStart,
|
|
783
|
+
polygonEnd
|
|
784
|
+
};
|
|
785
|
+
function point(x, y) {
|
|
786
|
+
if (visible(x, y)) activeStream.point(x, y);
|
|
787
|
+
}
|
|
788
|
+
function polygonInside() {
|
|
789
|
+
var winding = 0;
|
|
790
|
+
for (var i = 0, n = polygon.length; i < n; ++i) for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {
|
|
791
|
+
a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];
|
|
792
|
+
if (a1 <= y1) {
|
|
793
|
+
if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding;
|
|
794
|
+
} else if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding;
|
|
795
|
+
}
|
|
796
|
+
return winding;
|
|
797
|
+
}
|
|
798
|
+
function polygonStart() {
|
|
799
|
+
activeStream = bufferStream, segments = [], polygon = [], clean = true;
|
|
800
|
+
}
|
|
801
|
+
function polygonEnd() {
|
|
802
|
+
var startInside = polygonInside(), cleanInside = clean && startInside, visible = (segments = merge(segments)).length;
|
|
803
|
+
if (cleanInside || visible) {
|
|
804
|
+
stream.polygonStart();
|
|
805
|
+
if (cleanInside) {
|
|
806
|
+
stream.lineStart();
|
|
807
|
+
interpolate(null, null, 1, stream);
|
|
808
|
+
stream.lineEnd();
|
|
809
|
+
}
|
|
810
|
+
if (visible) rejoin_default(segments, compareIntersection, startInside, interpolate, stream);
|
|
811
|
+
stream.polygonEnd();
|
|
812
|
+
}
|
|
813
|
+
activeStream = stream, segments = polygon = ring = null;
|
|
814
|
+
}
|
|
815
|
+
function lineStart() {
|
|
816
|
+
clipStream.point = linePoint;
|
|
817
|
+
if (polygon) polygon.push(ring = []);
|
|
818
|
+
first = true;
|
|
819
|
+
v_ = false;
|
|
820
|
+
x_ = y_ = NaN;
|
|
821
|
+
}
|
|
822
|
+
function lineEnd() {
|
|
823
|
+
if (segments) {
|
|
824
|
+
linePoint(x__, y__);
|
|
825
|
+
if (v__ && v_) bufferStream.rejoin();
|
|
826
|
+
segments.push(bufferStream.result());
|
|
827
|
+
}
|
|
828
|
+
clipStream.point = point;
|
|
829
|
+
if (v_) activeStream.lineEnd();
|
|
830
|
+
}
|
|
831
|
+
function linePoint(x, y) {
|
|
832
|
+
var v = visible(x, y);
|
|
833
|
+
if (polygon) ring.push([x, y]);
|
|
834
|
+
if (first) {
|
|
835
|
+
x__ = x, y__ = y, v__ = v;
|
|
836
|
+
first = false;
|
|
837
|
+
if (v) {
|
|
838
|
+
activeStream.lineStart();
|
|
839
|
+
activeStream.point(x, y);
|
|
840
|
+
}
|
|
841
|
+
} else if (v && v_) activeStream.point(x, y);
|
|
842
|
+
else {
|
|
843
|
+
var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];
|
|
844
|
+
if (line_default(a, b, x0, y0, x1, y1)) {
|
|
845
|
+
if (!v_) {
|
|
846
|
+
activeStream.lineStart();
|
|
847
|
+
activeStream.point(a[0], a[1]);
|
|
848
|
+
}
|
|
849
|
+
activeStream.point(b[0], b[1]);
|
|
850
|
+
if (!v) activeStream.lineEnd();
|
|
851
|
+
clean = false;
|
|
852
|
+
} else if (v) {
|
|
853
|
+
activeStream.lineStart();
|
|
854
|
+
activeStream.point(x, y);
|
|
855
|
+
clean = false;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
x_ = x, y_ = y, v_ = v;
|
|
859
|
+
}
|
|
860
|
+
return clipStream;
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/length.js
|
|
865
|
+
var lengthSum;
|
|
866
|
+
var lambda0;
|
|
867
|
+
var sinPhi0;
|
|
868
|
+
var cosPhi0;
|
|
869
|
+
var lengthStream = {
|
|
870
|
+
sphere: noop,
|
|
871
|
+
point: noop,
|
|
872
|
+
lineStart: lengthLineStart,
|
|
873
|
+
lineEnd: noop,
|
|
874
|
+
polygonStart: noop,
|
|
875
|
+
polygonEnd: noop
|
|
876
|
+
};
|
|
877
|
+
function lengthLineStart() {
|
|
878
|
+
lengthStream.point = lengthPointFirst;
|
|
879
|
+
lengthStream.lineEnd = lengthLineEnd;
|
|
880
|
+
}
|
|
881
|
+
function lengthLineEnd() {
|
|
882
|
+
lengthStream.point = lengthStream.lineEnd = noop;
|
|
883
|
+
}
|
|
884
|
+
function lengthPointFirst(lambda, phi) {
|
|
885
|
+
lambda *= radians$1, phi *= radians$1;
|
|
886
|
+
lambda0 = lambda, sinPhi0 = sin$1(phi), cosPhi0 = cos$1(phi);
|
|
887
|
+
lengthStream.point = lengthPoint;
|
|
888
|
+
}
|
|
889
|
+
function lengthPoint(lambda, phi) {
|
|
890
|
+
lambda *= radians$1, phi *= radians$1;
|
|
891
|
+
var sinPhi = sin$1(phi), cosPhi = cos$1(phi), delta = abs(lambda - lambda0), cosDelta = cos$1(delta), x = cosPhi * sin$1(delta), y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta, z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;
|
|
892
|
+
lengthSum.add(atan2$1(sqrt$1(x * x + y * y), z));
|
|
893
|
+
lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;
|
|
894
|
+
}
|
|
895
|
+
function length_default(object) {
|
|
896
|
+
lengthSum = new Adder();
|
|
897
|
+
stream_default(object, lengthStream);
|
|
898
|
+
return +lengthSum;
|
|
899
|
+
}
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/distance.js
|
|
902
|
+
var coordinates = [null, null];
|
|
903
|
+
var object = {
|
|
904
|
+
type: "LineString",
|
|
905
|
+
coordinates
|
|
906
|
+
};
|
|
907
|
+
function distance_default(a, b) {
|
|
908
|
+
coordinates[0] = a;
|
|
909
|
+
coordinates[1] = b;
|
|
910
|
+
return length_default(object);
|
|
911
|
+
}
|
|
912
|
+
//#endregion
|
|
913
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/transform.js
|
|
914
|
+
function transform_default(methods) {
|
|
915
|
+
return { stream: transformer(methods) };
|
|
916
|
+
}
|
|
917
|
+
function transformer(methods) {
|
|
918
|
+
return function(stream) {
|
|
919
|
+
var s = new TransformStream();
|
|
920
|
+
for (var key in methods) s[key] = methods[key];
|
|
921
|
+
s.stream = stream;
|
|
922
|
+
return s;
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
function TransformStream() {}
|
|
926
|
+
TransformStream.prototype = {
|
|
927
|
+
constructor: TransformStream,
|
|
928
|
+
point: function(x, y) {
|
|
929
|
+
this.stream.point(x, y);
|
|
930
|
+
},
|
|
931
|
+
sphere: function() {
|
|
932
|
+
this.stream.sphere();
|
|
933
|
+
},
|
|
934
|
+
lineStart: function() {
|
|
935
|
+
this.stream.lineStart();
|
|
936
|
+
},
|
|
937
|
+
lineEnd: function() {
|
|
938
|
+
this.stream.lineEnd();
|
|
939
|
+
},
|
|
940
|
+
polygonStart: function() {
|
|
941
|
+
this.stream.polygonStart();
|
|
942
|
+
},
|
|
943
|
+
polygonEnd: function() {
|
|
944
|
+
this.stream.polygonEnd();
|
|
945
|
+
}
|
|
946
|
+
};
|
|
947
|
+
//#endregion
|
|
948
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/projection/fit.js
|
|
949
|
+
function fit(projection, fitBounds, object) {
|
|
950
|
+
var clip = projection.clipExtent && projection.clipExtent();
|
|
951
|
+
projection.scale(150).translate([0, 0]);
|
|
952
|
+
if (clip != null) projection.clipExtent(null);
|
|
953
|
+
stream_default(object, projection.stream(boundsStream));
|
|
954
|
+
fitBounds(boundsStream.result());
|
|
955
|
+
if (clip != null) projection.clipExtent(clip);
|
|
956
|
+
return projection;
|
|
957
|
+
}
|
|
958
|
+
function fitExtent(projection, extent, object) {
|
|
959
|
+
return fit(projection, function(b) {
|
|
960
|
+
var w = extent[1][0] - extent[0][0], h = extent[1][1] - extent[0][1], k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])), x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2, y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;
|
|
961
|
+
projection.scale(150 * k).translate([x, y]);
|
|
962
|
+
}, object);
|
|
963
|
+
}
|
|
964
|
+
function fitSize(projection, size, object) {
|
|
965
|
+
return fitExtent(projection, [[0, 0], size], object);
|
|
966
|
+
}
|
|
967
|
+
function fitWidth(projection, width, object) {
|
|
968
|
+
return fit(projection, function(b) {
|
|
969
|
+
var w = +width, k = w / (b[1][0] - b[0][0]), x = (w - k * (b[1][0] + b[0][0])) / 2, y = -k * b[0][1];
|
|
970
|
+
projection.scale(150 * k).translate([x, y]);
|
|
971
|
+
}, object);
|
|
972
|
+
}
|
|
973
|
+
function fitHeight(projection, height, object) {
|
|
974
|
+
return fit(projection, function(b) {
|
|
975
|
+
var h = +height, k = h / (b[1][1] - b[0][1]), x = -k * b[0][0], y = (h - k * (b[1][1] + b[0][1])) / 2;
|
|
976
|
+
projection.scale(150 * k).translate([x, y]);
|
|
977
|
+
}, object);
|
|
978
|
+
}
|
|
979
|
+
//#endregion
|
|
980
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/projection/resample.js
|
|
981
|
+
var maxDepth = 16;
|
|
982
|
+
var cosMinDistance = cos$1(30 * radians$1);
|
|
983
|
+
function resample_default(project, delta2) {
|
|
984
|
+
return +delta2 ? resample(project, delta2) : resampleNone(project);
|
|
985
|
+
}
|
|
986
|
+
function resampleNone(project) {
|
|
987
|
+
return transformer({ point: function(x, y) {
|
|
988
|
+
x = project(x, y);
|
|
989
|
+
this.stream.point(x[0], x[1]);
|
|
990
|
+
} });
|
|
991
|
+
}
|
|
992
|
+
function resample(project, delta2) {
|
|
993
|
+
function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
|
|
994
|
+
var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy;
|
|
995
|
+
if (d2 > 4 * delta2 && depth--) {
|
|
996
|
+
var a = a0 + a1, b = b0 + b1, c = c0 + c1, m = sqrt$1(a * a + b * b + c * c), phi2 = asin$1(c /= m), lambda2 = abs(abs(c) - 1) < 1e-6 || abs(lambda0 - lambda1) < 1e-6 ? (lambda0 + lambda1) / 2 : atan2$1(b, a), p = project(lambda2, phi2), x2 = p[0], y2 = p[1], dx2 = x2 - x0, dy2 = y2 - y0, dz = dy * dx2 - dx * dy2;
|
|
997
|
+
if (dz * dz / d2 > delta2 || abs((dx * dx2 + dy * dy2) / d2 - .5) > .3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {
|
|
998
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);
|
|
999
|
+
stream.point(x2, y2);
|
|
1000
|
+
resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
return function(stream) {
|
|
1005
|
+
var lambda00, x00, y00, a00, b00, c00, lambda0, x0, y0, a0, b0, c0;
|
|
1006
|
+
var resampleStream = {
|
|
1007
|
+
point,
|
|
1008
|
+
lineStart,
|
|
1009
|
+
lineEnd,
|
|
1010
|
+
polygonStart: function() {
|
|
1011
|
+
stream.polygonStart();
|
|
1012
|
+
resampleStream.lineStart = ringStart;
|
|
1013
|
+
},
|
|
1014
|
+
polygonEnd: function() {
|
|
1015
|
+
stream.polygonEnd();
|
|
1016
|
+
resampleStream.lineStart = lineStart;
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
function point(x, y) {
|
|
1020
|
+
x = project(x, y);
|
|
1021
|
+
stream.point(x[0], x[1]);
|
|
1022
|
+
}
|
|
1023
|
+
function lineStart() {
|
|
1024
|
+
x0 = NaN;
|
|
1025
|
+
resampleStream.point = linePoint;
|
|
1026
|
+
stream.lineStart();
|
|
1027
|
+
}
|
|
1028
|
+
function linePoint(lambda, phi) {
|
|
1029
|
+
var c = cartesian$1([lambda, phi]), p = project(lambda, phi);
|
|
1030
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);
|
|
1031
|
+
stream.point(x0, y0);
|
|
1032
|
+
}
|
|
1033
|
+
function lineEnd() {
|
|
1034
|
+
resampleStream.point = point;
|
|
1035
|
+
stream.lineEnd();
|
|
1036
|
+
}
|
|
1037
|
+
function ringStart() {
|
|
1038
|
+
lineStart();
|
|
1039
|
+
resampleStream.point = ringPoint;
|
|
1040
|
+
resampleStream.lineEnd = ringEnd;
|
|
1041
|
+
}
|
|
1042
|
+
function ringPoint(lambda, phi) {
|
|
1043
|
+
linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;
|
|
1044
|
+
resampleStream.point = linePoint;
|
|
1045
|
+
}
|
|
1046
|
+
function ringEnd() {
|
|
1047
|
+
resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);
|
|
1048
|
+
resampleStream.lineEnd = lineEnd;
|
|
1049
|
+
lineEnd();
|
|
1050
|
+
}
|
|
1051
|
+
return resampleStream;
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
//#endregion
|
|
1055
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/projection/index.js
|
|
1056
|
+
var transformRadians = transformer({ point: function(x, y) {
|
|
1057
|
+
this.stream.point(x * radians$1, y * radians$1);
|
|
1058
|
+
} });
|
|
1059
|
+
function transformRotate(rotate) {
|
|
1060
|
+
return transformer({ point: function(x, y) {
|
|
1061
|
+
var r = rotate(x, y);
|
|
1062
|
+
return this.stream.point(r[0], r[1]);
|
|
1063
|
+
} });
|
|
1064
|
+
}
|
|
1065
|
+
function scaleTranslate(k, dx, dy, sx, sy) {
|
|
1066
|
+
function transform(x, y) {
|
|
1067
|
+
x *= sx;
|
|
1068
|
+
y *= sy;
|
|
1069
|
+
return [dx + k * x, dy - k * y];
|
|
1070
|
+
}
|
|
1071
|
+
transform.invert = function(x, y) {
|
|
1072
|
+
return [(x - dx) / k * sx, (dy - y) / k * sy];
|
|
1073
|
+
};
|
|
1074
|
+
return transform;
|
|
1075
|
+
}
|
|
1076
|
+
function scaleTranslateRotate(k, dx, dy, sx, sy, alpha) {
|
|
1077
|
+
if (!alpha) return scaleTranslate(k, dx, dy, sx, sy);
|
|
1078
|
+
var cosAlpha = cos$1(alpha), sinAlpha = sin$1(alpha), a = cosAlpha * k, b = sinAlpha * k, ai = cosAlpha / k, bi = sinAlpha / k, ci = (sinAlpha * dy - cosAlpha * dx) / k, fi = (sinAlpha * dx + cosAlpha * dy) / k;
|
|
1079
|
+
function transform(x, y) {
|
|
1080
|
+
x *= sx;
|
|
1081
|
+
y *= sy;
|
|
1082
|
+
return [a * x - b * y + dx, dy - b * x - a * y];
|
|
1083
|
+
}
|
|
1084
|
+
transform.invert = function(x, y) {
|
|
1085
|
+
return [sx * (ai * x - bi * y + ci), sy * (fi - bi * x - ai * y)];
|
|
1086
|
+
};
|
|
1087
|
+
return transform;
|
|
1088
|
+
}
|
|
1089
|
+
function projection(project) {
|
|
1090
|
+
return projectionMutator(function() {
|
|
1091
|
+
return project;
|
|
1092
|
+
})();
|
|
1093
|
+
}
|
|
1094
|
+
function projectionMutator(projectAt) {
|
|
1095
|
+
var project, k = 150, x = 480, y = 250, lambda = 0, phi = 0, deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, alpha = 0, sx = 1, sy = 1, theta = null, preclip = antimeridian_default, x0 = null, y0, x1, y1, postclip = identity_default, delta2 = .5, projectResample, projectTransform, projectRotateTransform, cache, cacheStream;
|
|
1096
|
+
function projection(point) {
|
|
1097
|
+
return projectRotateTransform(point[0] * radians$1, point[1] * radians$1);
|
|
1098
|
+
}
|
|
1099
|
+
function invert(point) {
|
|
1100
|
+
point = projectRotateTransform.invert(point[0], point[1]);
|
|
1101
|
+
return point && [point[0] * degrees$1, point[1] * degrees$1];
|
|
1102
|
+
}
|
|
1103
|
+
projection.stream = function(stream) {
|
|
1104
|
+
return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));
|
|
1105
|
+
};
|
|
1106
|
+
projection.preclip = function(_) {
|
|
1107
|
+
return arguments.length ? (preclip = _, theta = void 0, reset()) : preclip;
|
|
1108
|
+
};
|
|
1109
|
+
projection.postclip = function(_) {
|
|
1110
|
+
return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;
|
|
1111
|
+
};
|
|
1112
|
+
projection.clipAngle = function(_) {
|
|
1113
|
+
return arguments.length ? (preclip = +_ ? circle_default(theta = _ * radians$1) : (theta = null, antimeridian_default), reset()) : theta * degrees$1;
|
|
1114
|
+
};
|
|
1115
|
+
projection.clipExtent = function(_) {
|
|
1116
|
+
return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity_default) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];
|
|
1117
|
+
};
|
|
1118
|
+
projection.scale = function(_) {
|
|
1119
|
+
return arguments.length ? (k = +_, recenter()) : k;
|
|
1120
|
+
};
|
|
1121
|
+
projection.translate = function(_) {
|
|
1122
|
+
return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];
|
|
1123
|
+
};
|
|
1124
|
+
projection.center = function(_) {
|
|
1125
|
+
return arguments.length ? (lambda = _[0] % 360 * radians$1, phi = _[1] % 360 * radians$1, recenter()) : [lambda * degrees$1, phi * degrees$1];
|
|
1126
|
+
};
|
|
1127
|
+
projection.rotate = function(_) {
|
|
1128
|
+
return arguments.length ? (deltaLambda = _[0] % 360 * radians$1, deltaPhi = _[1] % 360 * radians$1, deltaGamma = _.length > 2 ? _[2] % 360 * radians$1 : 0, recenter()) : [
|
|
1129
|
+
deltaLambda * degrees$1,
|
|
1130
|
+
deltaPhi * degrees$1,
|
|
1131
|
+
deltaGamma * degrees$1
|
|
1132
|
+
];
|
|
1133
|
+
};
|
|
1134
|
+
projection.angle = function(_) {
|
|
1135
|
+
return arguments.length ? (alpha = _ % 360 * radians$1, recenter()) : alpha * degrees$1;
|
|
1136
|
+
};
|
|
1137
|
+
projection.reflectX = function(_) {
|
|
1138
|
+
return arguments.length ? (sx = _ ? -1 : 1, recenter()) : sx < 0;
|
|
1139
|
+
};
|
|
1140
|
+
projection.reflectY = function(_) {
|
|
1141
|
+
return arguments.length ? (sy = _ ? -1 : 1, recenter()) : sy < 0;
|
|
1142
|
+
};
|
|
1143
|
+
projection.precision = function(_) {
|
|
1144
|
+
return arguments.length ? (projectResample = resample_default(projectTransform, delta2 = _ * _), reset()) : sqrt$1(delta2);
|
|
1145
|
+
};
|
|
1146
|
+
projection.fitExtent = function(extent, object) {
|
|
1147
|
+
return fitExtent(projection, extent, object);
|
|
1148
|
+
};
|
|
1149
|
+
projection.fitSize = function(size, object) {
|
|
1150
|
+
return fitSize(projection, size, object);
|
|
1151
|
+
};
|
|
1152
|
+
projection.fitWidth = function(width, object) {
|
|
1153
|
+
return fitWidth(projection, width, object);
|
|
1154
|
+
};
|
|
1155
|
+
projection.fitHeight = function(height, object) {
|
|
1156
|
+
return fitHeight(projection, height, object);
|
|
1157
|
+
};
|
|
1158
|
+
function recenter() {
|
|
1159
|
+
var center = scaleTranslateRotate(k, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform = scaleTranslateRotate(k, x - center[0], y - center[1], sx, sy, alpha);
|
|
1160
|
+
rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);
|
|
1161
|
+
projectTransform = compose_default(project, transform);
|
|
1162
|
+
projectRotateTransform = compose_default(rotate, projectTransform);
|
|
1163
|
+
projectResample = resample_default(projectTransform, delta2);
|
|
1164
|
+
return reset();
|
|
1165
|
+
}
|
|
1166
|
+
function reset() {
|
|
1167
|
+
cache = cacheStream = null;
|
|
1168
|
+
return projection;
|
|
1169
|
+
}
|
|
1170
|
+
return function() {
|
|
1171
|
+
project = projectAt.apply(this, arguments);
|
|
1172
|
+
projection.invert = project.invert && invert;
|
|
1173
|
+
return recenter();
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/projection/azimuthal.js
|
|
1178
|
+
function azimuthalInvert(angle) {
|
|
1179
|
+
return function(x, y) {
|
|
1180
|
+
var z = sqrt$1(x * x + y * y), c = angle(z), sc = sin$1(c), cc = cos$1(c);
|
|
1181
|
+
return [atan2$1(x * sc, z * cc), asin$1(z && y * sc / z)];
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
//#endregion
|
|
1185
|
+
//#region node_modules/.pnpm/d3-geo@3.1.1/node_modules/d3-geo/src/projection/stereographic.js
|
|
1186
|
+
function stereographicRaw(x, y) {
|
|
1187
|
+
var cy = cos$1(y), k = 1 + cos$1(x) * cy;
|
|
1188
|
+
return [cy * sin$1(x) / k, sin$1(y) / k];
|
|
1189
|
+
}
|
|
1190
|
+
stereographicRaw.invert = azimuthalInvert(function(z) {
|
|
1191
|
+
return 2 * atan(z);
|
|
1192
|
+
});
|
|
1193
|
+
function stereographic_default() {
|
|
1194
|
+
return projection(stereographicRaw).scale(250).clipAngle(142);
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region node_modules/.pnpm/d3-geo-voronoi@2.1.0/node_modules/d3-geo-voronoi/src/math.js
|
|
1198
|
+
var pi = Math.PI;
|
|
1199
|
+
var halfPi = pi / 2;
|
|
1200
|
+
var degrees = 180 / pi;
|
|
1201
|
+
var radians = pi / 180;
|
|
1202
|
+
var atan2 = Math.atan2;
|
|
1203
|
+
var cos = Math.cos;
|
|
1204
|
+
var max = Math.max;
|
|
1205
|
+
var min = Math.min;
|
|
1206
|
+
var sin = Math.sin;
|
|
1207
|
+
var sign = Math.sign || function(x) {
|
|
1208
|
+
return x > 0 ? 1 : x < 0 ? -1 : 0;
|
|
1209
|
+
};
|
|
1210
|
+
var sqrt = Math.sqrt;
|
|
1211
|
+
function asin(x) {
|
|
1212
|
+
return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);
|
|
1213
|
+
}
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region node_modules/.pnpm/d3-geo-voronoi@2.1.0/node_modules/d3-geo-voronoi/src/cartesian.js
|
|
1216
|
+
function cartesianDot(a, b) {
|
|
1217
|
+
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
1218
|
+
}
|
|
1219
|
+
function cartesianCross(a, b) {
|
|
1220
|
+
return [
|
|
1221
|
+
a[1] * b[2] - a[2] * b[1],
|
|
1222
|
+
a[2] * b[0] - a[0] * b[2],
|
|
1223
|
+
a[0] * b[1] - a[1] * b[0]
|
|
1224
|
+
];
|
|
1225
|
+
}
|
|
1226
|
+
function cartesianAdd(a, b) {
|
|
1227
|
+
return [
|
|
1228
|
+
a[0] + b[0],
|
|
1229
|
+
a[1] + b[1],
|
|
1230
|
+
a[2] + b[2]
|
|
1231
|
+
];
|
|
1232
|
+
}
|
|
1233
|
+
function cartesianNormalize(d) {
|
|
1234
|
+
var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
|
|
1235
|
+
return [
|
|
1236
|
+
d[0] / l,
|
|
1237
|
+
d[1] / l,
|
|
1238
|
+
d[2] / l
|
|
1239
|
+
];
|
|
1240
|
+
}
|
|
1241
|
+
//#endregion
|
|
1242
|
+
//#region node_modules/.pnpm/d3-geo-voronoi@2.1.0/node_modules/d3-geo-voronoi/src/delaunay.js
|
|
1243
|
+
function spherical(cartesian) {
|
|
1244
|
+
return [atan2(cartesian[1], cartesian[0]) * degrees, asin(max(-1, min(1, cartesian[2]))) * degrees];
|
|
1245
|
+
}
|
|
1246
|
+
function cartesian(coordinates) {
|
|
1247
|
+
const lambda = coordinates[0] * radians, phi = coordinates[1] * radians, cosphi = cos(phi);
|
|
1248
|
+
return [
|
|
1249
|
+
cosphi * cos(lambda),
|
|
1250
|
+
cosphi * sin(lambda),
|
|
1251
|
+
sin(phi)
|
|
1252
|
+
];
|
|
1253
|
+
}
|
|
1254
|
+
function excess(triangle) {
|
|
1255
|
+
triangle = triangle.map((p) => cartesian(p));
|
|
1256
|
+
return cartesianDot(triangle[0], cartesianCross(triangle[2], triangle[1]));
|
|
1257
|
+
}
|
|
1258
|
+
function geoDelaunay(points) {
|
|
1259
|
+
const delaunay = geo_delaunay_from(points), triangles = geo_triangles(delaunay), edges = geo_edges(triangles, points), neighbors = geo_neighbors(triangles, points.length), find = geo_find(neighbors, points), { polygons, centers } = geo_polygons(geo_circumcenters(triangles, points), triangles, points);
|
|
1260
|
+
return {
|
|
1261
|
+
delaunay,
|
|
1262
|
+
edges,
|
|
1263
|
+
triangles,
|
|
1264
|
+
centers,
|
|
1265
|
+
neighbors,
|
|
1266
|
+
polygons,
|
|
1267
|
+
mesh: geo_mesh(polygons),
|
|
1268
|
+
hull: geo_hull(triangles, points),
|
|
1269
|
+
urquhart: geo_urquhart(edges, triangles),
|
|
1270
|
+
find
|
|
1271
|
+
};
|
|
1272
|
+
}
|
|
1273
|
+
function geo_find(neighbors, points) {
|
|
1274
|
+
function distance2(a, b) {
|
|
1275
|
+
let x = a[0] - b[0], y = a[1] - b[1], z = a[2] - b[2];
|
|
1276
|
+
return x * x + y * y + z * z;
|
|
1277
|
+
}
|
|
1278
|
+
return function find(x, y, next) {
|
|
1279
|
+
if (next === void 0) next = 0;
|
|
1280
|
+
let cell, dist, found = next;
|
|
1281
|
+
const xyz = cartesian([x, y]);
|
|
1282
|
+
do {
|
|
1283
|
+
cell = next;
|
|
1284
|
+
next = null;
|
|
1285
|
+
dist = distance2(xyz, cartesian(points[cell]));
|
|
1286
|
+
neighbors[cell].forEach((i) => {
|
|
1287
|
+
let ndist = distance2(xyz, cartesian(points[i]));
|
|
1288
|
+
if (ndist < dist) {
|
|
1289
|
+
dist = ndist;
|
|
1290
|
+
next = i;
|
|
1291
|
+
found = i;
|
|
1292
|
+
return;
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
} while (next !== null);
|
|
1296
|
+
return found;
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
function geo_delaunay_from(points) {
|
|
1300
|
+
if (points.length < 2) return {};
|
|
1301
|
+
let pivot = 0;
|
|
1302
|
+
while (isNaN(points[pivot][0] + points[pivot][1]) && pivot++ < points.length);
|
|
1303
|
+
const r = rotation_default(points[pivot]), projection = stereographic_default().translate([0, 0]).scale(1).rotate(r.invert([180, 0]));
|
|
1304
|
+
points = points.map(projection);
|
|
1305
|
+
const zeros = [];
|
|
1306
|
+
let max2 = 1;
|
|
1307
|
+
for (let i = 0, n = points.length; i < n; i++) {
|
|
1308
|
+
let m = points[i][0] ** 2 + points[i][1] ** 2;
|
|
1309
|
+
if (!isFinite(m) || m > 1e32) zeros.push(i);
|
|
1310
|
+
else if (m > max2) max2 = m;
|
|
1311
|
+
}
|
|
1312
|
+
const FAR = 1e6 * sqrt(max2);
|
|
1313
|
+
zeros.forEach((i) => points[i] = [FAR, 0]);
|
|
1314
|
+
points.push([0, FAR]);
|
|
1315
|
+
points.push([-FAR, 0]);
|
|
1316
|
+
points.push([0, -FAR]);
|
|
1317
|
+
const delaunay = Delaunay.from(points);
|
|
1318
|
+
delaunay.projection = projection;
|
|
1319
|
+
const { triangles, halfedges, inedges } = delaunay;
|
|
1320
|
+
for (let i = 0, l = halfedges.length; i < l; i++) if (halfedges[i] < 0) {
|
|
1321
|
+
const j = i % 3 == 2 ? i - 2 : i + 1;
|
|
1322
|
+
const k = i % 3 == 0 ? i + 2 : i - 1;
|
|
1323
|
+
const a = halfedges[j];
|
|
1324
|
+
const b = halfedges[k];
|
|
1325
|
+
halfedges[a] = b;
|
|
1326
|
+
halfedges[b] = a;
|
|
1327
|
+
halfedges[j] = halfedges[k] = -1;
|
|
1328
|
+
triangles[i] = triangles[j] = triangles[k] = pivot;
|
|
1329
|
+
inedges[triangles[a]] = a % 3 == 0 ? a + 2 : a - 1;
|
|
1330
|
+
inedges[triangles[b]] = b % 3 == 0 ? b + 2 : b - 1;
|
|
1331
|
+
i += 2 - i % 3;
|
|
1332
|
+
} else if (triangles[i] > points.length - 3 - 1) triangles[i] = pivot;
|
|
1333
|
+
return delaunay;
|
|
1334
|
+
}
|
|
1335
|
+
function geo_edges(triangles, points) {
|
|
1336
|
+
const _index = /* @__PURE__ */ new Set();
|
|
1337
|
+
if (points.length === 2) return [[0, 1]];
|
|
1338
|
+
triangles.forEach((tri) => {
|
|
1339
|
+
if (tri[0] === tri[1]) return;
|
|
1340
|
+
if (excess(tri.map((i) => points[i])) < 0) return;
|
|
1341
|
+
for (let i = 0, j; i < 3; i++) {
|
|
1342
|
+
j = (i + 1) % 3;
|
|
1343
|
+
_index.add(extent([tri[i], tri[j]]).join("-"));
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
return Array.from(_index, (d) => d.split("-").map(Number));
|
|
1347
|
+
}
|
|
1348
|
+
function geo_triangles(delaunay) {
|
|
1349
|
+
const { triangles } = delaunay;
|
|
1350
|
+
if (!triangles) return [];
|
|
1351
|
+
const geo_triangles = [];
|
|
1352
|
+
for (let i = 0, n = triangles.length / 3; i < n; i++) {
|
|
1353
|
+
const a = triangles[3 * i], b = triangles[3 * i + 1], c = triangles[3 * i + 2];
|
|
1354
|
+
if (a !== b && b !== c) geo_triangles.push([
|
|
1355
|
+
a,
|
|
1356
|
+
c,
|
|
1357
|
+
b
|
|
1358
|
+
]);
|
|
1359
|
+
}
|
|
1360
|
+
return geo_triangles;
|
|
1361
|
+
}
|
|
1362
|
+
function geo_circumcenters(triangles, points) {
|
|
1363
|
+
return triangles.map((tri) => {
|
|
1364
|
+
const c = tri.map((i) => points[i]).map(cartesian);
|
|
1365
|
+
return spherical(cartesianNormalize(cartesianAdd(cartesianAdd(cartesianCross(c[1], c[0]), cartesianCross(c[2], c[1])), cartesianCross(c[0], c[2]))));
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
function geo_neighbors(triangles, npoints) {
|
|
1369
|
+
const neighbors = [];
|
|
1370
|
+
triangles.forEach((tri) => {
|
|
1371
|
+
for (let j = 0; j < 3; j++) {
|
|
1372
|
+
const a = tri[j], b = tri[(j + 1) % 3];
|
|
1373
|
+
neighbors[a] = neighbors[a] || [];
|
|
1374
|
+
neighbors[a].push(b);
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
if (triangles.length === 0) {
|
|
1378
|
+
if (npoints === 2) neighbors[0] = [1], neighbors[1] = [0];
|
|
1379
|
+
else if (npoints === 1) neighbors[0] = [];
|
|
1380
|
+
}
|
|
1381
|
+
return neighbors;
|
|
1382
|
+
}
|
|
1383
|
+
function geo_polygons(circumcenters, triangles, points) {
|
|
1384
|
+
const polygons = [];
|
|
1385
|
+
const centers = circumcenters.slice();
|
|
1386
|
+
if (triangles.length === 0) {
|
|
1387
|
+
if (points.length < 2) return {
|
|
1388
|
+
polygons,
|
|
1389
|
+
centers
|
|
1390
|
+
};
|
|
1391
|
+
if (points.length === 2) {
|
|
1392
|
+
const a = cartesian(points[0]), b = cartesian(points[1]), m = cartesianNormalize(cartesianAdd(a, b)), c = cartesianCross(m, cartesianNormalize(cartesianCross(a, b)));
|
|
1393
|
+
const poly = [
|
|
1394
|
+
m,
|
|
1395
|
+
cartesianCross(m, c),
|
|
1396
|
+
cartesianCross(cartesianCross(m, c), c),
|
|
1397
|
+
cartesianCross(cartesianCross(cartesianCross(m, c), c), c)
|
|
1398
|
+
].map(spherical).map(supplement);
|
|
1399
|
+
return polygons.push(poly), polygons.push(poly.slice().reverse()), {
|
|
1400
|
+
polygons,
|
|
1401
|
+
centers
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
triangles.forEach((tri, t) => {
|
|
1406
|
+
for (let j = 0; j < 3; j++) {
|
|
1407
|
+
const a = tri[j], b = tri[(j + 1) % 3], c = tri[(j + 2) % 3];
|
|
1408
|
+
polygons[a] = polygons[a] || [];
|
|
1409
|
+
polygons[a].push([
|
|
1410
|
+
b,
|
|
1411
|
+
c,
|
|
1412
|
+
t,
|
|
1413
|
+
[
|
|
1414
|
+
a,
|
|
1415
|
+
b,
|
|
1416
|
+
c
|
|
1417
|
+
]
|
|
1418
|
+
]);
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
const reordered = polygons.map((poly) => {
|
|
1422
|
+
const p = [poly[0][2]];
|
|
1423
|
+
let k = poly[0][1];
|
|
1424
|
+
for (let i = 1; i < poly.length; i++) for (let j = 0; j < poly.length; j++) if (poly[j][0] == k) {
|
|
1425
|
+
k = poly[j][1];
|
|
1426
|
+
p.push(poly[j][2]);
|
|
1427
|
+
break;
|
|
1428
|
+
}
|
|
1429
|
+
if (p.length > 2) return p;
|
|
1430
|
+
else if (p.length == 2) {
|
|
1431
|
+
const R0 = o_midpoint(points[poly[0][3][0]], points[poly[0][3][1]], centers[p[0]]), R1 = o_midpoint(points[poly[0][3][2]], points[poly[0][3][0]], centers[p[0]]);
|
|
1432
|
+
const i0 = supplement(R0), i1 = supplement(R1);
|
|
1433
|
+
return [
|
|
1434
|
+
p[0],
|
|
1435
|
+
i1,
|
|
1436
|
+
p[1],
|
|
1437
|
+
i0
|
|
1438
|
+
];
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
function supplement(point) {
|
|
1442
|
+
let f = -1;
|
|
1443
|
+
centers.slice(triangles.length, Infinity).forEach((p, i) => {
|
|
1444
|
+
if (p[0] === point[0] && p[1] === point[1]) f = i + triangles.length;
|
|
1445
|
+
});
|
|
1446
|
+
if (f < 0) f = centers.length, centers.push(point);
|
|
1447
|
+
return f;
|
|
1448
|
+
}
|
|
1449
|
+
return {
|
|
1450
|
+
polygons: reordered,
|
|
1451
|
+
centers
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
function o_midpoint(a, b, c) {
|
|
1455
|
+
a = cartesian(a);
|
|
1456
|
+
b = cartesian(b);
|
|
1457
|
+
c = cartesian(c);
|
|
1458
|
+
const s = sign(cartesianDot(cartesianCross(b, a), c));
|
|
1459
|
+
return spherical(cartesianNormalize(cartesianAdd(a, b)).map((d) => s * d));
|
|
1460
|
+
}
|
|
1461
|
+
function geo_mesh(polygons) {
|
|
1462
|
+
const mesh = [];
|
|
1463
|
+
polygons.forEach((poly) => {
|
|
1464
|
+
if (!poly) return;
|
|
1465
|
+
let p = poly[poly.length - 1];
|
|
1466
|
+
for (let q of poly) {
|
|
1467
|
+
if (q > p) mesh.push([p, q]);
|
|
1468
|
+
p = q;
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
return mesh;
|
|
1472
|
+
}
|
|
1473
|
+
function geo_urquhart(edges, triangles) {
|
|
1474
|
+
return function(distances) {
|
|
1475
|
+
const _lengths = /* @__PURE__ */ new Map(), _urquhart = /* @__PURE__ */ new Map();
|
|
1476
|
+
edges.forEach((edge, i) => {
|
|
1477
|
+
const u = edge.join("-");
|
|
1478
|
+
_lengths.set(u, distances[i]);
|
|
1479
|
+
_urquhart.set(u, true);
|
|
1480
|
+
});
|
|
1481
|
+
triangles.forEach((tri) => {
|
|
1482
|
+
let l = 0, remove = -1;
|
|
1483
|
+
for (let j = 0; j < 3; j++) {
|
|
1484
|
+
let u = extent([tri[j], tri[(j + 1) % 3]]).join("-");
|
|
1485
|
+
if (_lengths.get(u) > l) {
|
|
1486
|
+
l = _lengths.get(u);
|
|
1487
|
+
remove = u;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
_urquhart.set(remove, false);
|
|
1491
|
+
});
|
|
1492
|
+
return edges.map((edge) => _urquhart.get(edge.join("-")));
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
function geo_hull(triangles, points) {
|
|
1496
|
+
const _hull = /* @__PURE__ */ new Set(), hull = [];
|
|
1497
|
+
triangles.map((tri) => {
|
|
1498
|
+
if (excess(tri.map((i) => points[i > points.length ? 0 : i])) > 1e-12) return;
|
|
1499
|
+
for (let i = 0; i < 3; i++) {
|
|
1500
|
+
let e = [tri[i], tri[(i + 1) % 3]], code = `${e[0]}-${e[1]}`;
|
|
1501
|
+
if (_hull.has(code)) _hull.delete(code);
|
|
1502
|
+
else _hull.add(`${e[1]}-${e[0]}`);
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
const _index = /* @__PURE__ */ new Map();
|
|
1506
|
+
let start;
|
|
1507
|
+
_hull.forEach((e) => {
|
|
1508
|
+
e = e.split("-").map(Number);
|
|
1509
|
+
_index.set(e[0], e[1]);
|
|
1510
|
+
start = e[0];
|
|
1511
|
+
});
|
|
1512
|
+
if (start === void 0) return hull;
|
|
1513
|
+
let next = start;
|
|
1514
|
+
do {
|
|
1515
|
+
hull.push(next);
|
|
1516
|
+
let n = _index.get(next);
|
|
1517
|
+
_index.set(next, -1);
|
|
1518
|
+
next = n;
|
|
1519
|
+
} while (next > -1 && next !== start);
|
|
1520
|
+
return hull;
|
|
1521
|
+
}
|
|
1522
|
+
//#endregion
|
|
1523
|
+
//#region node_modules/.pnpm/d3-geo-voronoi@2.1.0/node_modules/d3-geo-voronoi/src/voronoi.js
|
|
1524
|
+
function geoVoronoi(data) {
|
|
1525
|
+
const v = function(data) {
|
|
1526
|
+
v.delaunay = null;
|
|
1527
|
+
v._data = data;
|
|
1528
|
+
if (typeof v._data === "object" && v._data.type === "FeatureCollection") v._data = v._data.features;
|
|
1529
|
+
if (typeof v._data === "object") {
|
|
1530
|
+
const temp = v._data.map((d) => [
|
|
1531
|
+
v._vx(d),
|
|
1532
|
+
v._vy(d),
|
|
1533
|
+
d
|
|
1534
|
+
]).filter((d) => isFinite(d[0] + d[1]));
|
|
1535
|
+
v.points = temp.map((d) => [d[0], d[1]]);
|
|
1536
|
+
v.valid = temp.map((d) => d[2]);
|
|
1537
|
+
v.delaunay = geoDelaunay(v.points);
|
|
1538
|
+
}
|
|
1539
|
+
return v;
|
|
1540
|
+
};
|
|
1541
|
+
v._vx = function(d) {
|
|
1542
|
+
if (typeof d == "object" && "type" in d) return centroid_default(d)[0];
|
|
1543
|
+
if (0 in d) return d[0];
|
|
1544
|
+
};
|
|
1545
|
+
v._vy = function(d) {
|
|
1546
|
+
if (typeof d == "object" && "type" in d) return centroid_default(d)[1];
|
|
1547
|
+
if (1 in d) return d[1];
|
|
1548
|
+
};
|
|
1549
|
+
v.x = function(f) {
|
|
1550
|
+
if (!f) return v._vx;
|
|
1551
|
+
v._vx = f;
|
|
1552
|
+
return v;
|
|
1553
|
+
};
|
|
1554
|
+
v.y = function(f) {
|
|
1555
|
+
if (!f) return v._vy;
|
|
1556
|
+
v._vy = f;
|
|
1557
|
+
return v;
|
|
1558
|
+
};
|
|
1559
|
+
v.polygons = function(data) {
|
|
1560
|
+
if (data !== void 0) v(data);
|
|
1561
|
+
if (!v.delaunay) return false;
|
|
1562
|
+
const coll = {
|
|
1563
|
+
type: "FeatureCollection",
|
|
1564
|
+
features: []
|
|
1565
|
+
};
|
|
1566
|
+
if (v.valid.length === 0) return coll;
|
|
1567
|
+
v.delaunay.polygons.forEach((poly, i) => coll.features.push({
|
|
1568
|
+
type: "Feature",
|
|
1569
|
+
geometry: !poly ? null : {
|
|
1570
|
+
type: "Polygon",
|
|
1571
|
+
coordinates: [[...poly, poly[0]].map((i) => v.delaunay.centers[i])]
|
|
1572
|
+
},
|
|
1573
|
+
properties: {
|
|
1574
|
+
site: v.valid[i],
|
|
1575
|
+
sitecoordinates: v.points[i],
|
|
1576
|
+
neighbours: v.delaunay.neighbors[i]
|
|
1577
|
+
}
|
|
1578
|
+
}));
|
|
1579
|
+
if (v.valid.length === 1) coll.features.push({
|
|
1580
|
+
type: "Feature",
|
|
1581
|
+
geometry: { type: "Sphere" },
|
|
1582
|
+
properties: {
|
|
1583
|
+
site: v.valid[0],
|
|
1584
|
+
sitecoordinates: v.points[0],
|
|
1585
|
+
neighbours: []
|
|
1586
|
+
}
|
|
1587
|
+
});
|
|
1588
|
+
return coll;
|
|
1589
|
+
};
|
|
1590
|
+
v.triangles = function(data) {
|
|
1591
|
+
if (data !== void 0) v(data);
|
|
1592
|
+
if (!v.delaunay) return false;
|
|
1593
|
+
return {
|
|
1594
|
+
type: "FeatureCollection",
|
|
1595
|
+
features: v.delaunay.triangles.map((tri, index) => {
|
|
1596
|
+
tri = tri.map((i) => v.points[i]);
|
|
1597
|
+
tri.center = v.delaunay.centers[index];
|
|
1598
|
+
return tri;
|
|
1599
|
+
}).filter((tri) => excess(tri) > 0).map((tri) => ({
|
|
1600
|
+
type: "Feature",
|
|
1601
|
+
properties: { circumcenter: tri.center },
|
|
1602
|
+
geometry: {
|
|
1603
|
+
type: "Polygon",
|
|
1604
|
+
coordinates: [[...tri, tri[0]]]
|
|
1605
|
+
}
|
|
1606
|
+
}))
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
v.links = function(data) {
|
|
1610
|
+
if (data !== void 0) v(data);
|
|
1611
|
+
if (!v.delaunay) return false;
|
|
1612
|
+
const _distances = v.delaunay.edges.map((e) => distance_default(v.points[e[0]], v.points[e[1]])), _urquart = v.delaunay.urquhart(_distances);
|
|
1613
|
+
return {
|
|
1614
|
+
type: "FeatureCollection",
|
|
1615
|
+
features: v.delaunay.edges.map((e, i) => ({
|
|
1616
|
+
type: "Feature",
|
|
1617
|
+
properties: {
|
|
1618
|
+
source: v.valid[e[0]],
|
|
1619
|
+
target: v.valid[e[1]],
|
|
1620
|
+
length: _distances[i],
|
|
1621
|
+
urquhart: !!_urquart[i]
|
|
1622
|
+
},
|
|
1623
|
+
geometry: {
|
|
1624
|
+
type: "LineString",
|
|
1625
|
+
coordinates: [v.points[e[0]], v.points[e[1]]]
|
|
1626
|
+
}
|
|
1627
|
+
}))
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
v.mesh = function(data) {
|
|
1631
|
+
if (data !== void 0) v(data);
|
|
1632
|
+
if (!v.delaunay) return false;
|
|
1633
|
+
return {
|
|
1634
|
+
type: "MultiLineString",
|
|
1635
|
+
coordinates: v.delaunay.edges.map((e) => [v.points[e[0]], v.points[e[1]]])
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
v.cellMesh = function(data) {
|
|
1639
|
+
if (data !== void 0) v(data);
|
|
1640
|
+
if (!v.delaunay) return false;
|
|
1641
|
+
const { centers, polygons } = v.delaunay;
|
|
1642
|
+
const coordinates = [];
|
|
1643
|
+
for (const p of polygons) {
|
|
1644
|
+
if (!p) continue;
|
|
1645
|
+
for (let n = p.length, p0 = p[n - 1], p1 = p[0], i = 0; i < n; p0 = p1, p1 = p[++i]) if (p1 > p0) coordinates.push([centers[p0], centers[p1]]);
|
|
1646
|
+
}
|
|
1647
|
+
return {
|
|
1648
|
+
type: "MultiLineString",
|
|
1649
|
+
coordinates
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
v._found = void 0;
|
|
1653
|
+
v.find = function(x, y, radius) {
|
|
1654
|
+
v._found = v.delaunay.find(x, y, v._found);
|
|
1655
|
+
if (!radius || distance_default([x, y], v.points[v._found]) < radius) return v._found;
|
|
1656
|
+
};
|
|
1657
|
+
v.hull = function(data) {
|
|
1658
|
+
if (data !== void 0) v(data);
|
|
1659
|
+
const hull = v.delaunay.hull, points = v.points;
|
|
1660
|
+
return hull.length === 0 ? null : {
|
|
1661
|
+
type: "Polygon",
|
|
1662
|
+
coordinates: [[...hull.map((i) => points[i]), points[hull[0]]]]
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
return data ? v(data) : v;
|
|
1666
|
+
}
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#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/geo.js
|
|
1669
|
+
/**
|
|
1670
|
+
* Render a geoPath() using curve factory
|
|
1671
|
+
* @see {@link https://observablehq.com/@d3/context-to-curve}
|
|
1672
|
+
*/
|
|
1673
|
+
function geoCurvePath(projection, curve, context) {
|
|
1674
|
+
const pathContext = path() ;
|
|
1675
|
+
const geoPath = path_default(projection, curveContext(curve(pathContext)));
|
|
1676
|
+
const fn = (object) => {
|
|
1677
|
+
geoPath(object);
|
|
1678
|
+
return context === void 0 ? pathContext + "" : void 0;
|
|
1679
|
+
};
|
|
1680
|
+
Object.setPrototypeOf(fn, geoPath);
|
|
1681
|
+
return fn;
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
* Translate Curve to GeoContext interface
|
|
1685
|
+
*/
|
|
1686
|
+
function curveContext(curve) {
|
|
1687
|
+
return {
|
|
1688
|
+
beginPath() {},
|
|
1689
|
+
moveTo(x, y) {
|
|
1690
|
+
curve.lineStart();
|
|
1691
|
+
curve.point(x, y);
|
|
1692
|
+
},
|
|
1693
|
+
arc(x, y, radius, startAngle, endAngle, anticlockwise) {},
|
|
1694
|
+
lineTo(x, y) {
|
|
1695
|
+
curve.point(x, y);
|
|
1696
|
+
},
|
|
1697
|
+
closePath() {
|
|
1698
|
+
curve.lineEnd();
|
|
1699
|
+
}
|
|
1700
|
+
};
|
|
1701
|
+
}
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#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/geo/GeoPath/GeoPath.base.svelte
|
|
1704
|
+
function GeoPath_base($$renderer, $$props) {
|
|
1705
|
+
$$renderer.component(($$renderer) => {
|
|
1706
|
+
let { Path, geoTransform, geojson, tooltip, curve = linearClosed_default, onclick, onpointerenter, onpointermove, onpointerleave, class: className, ref: refProp = void 0, children, $$slots, $$events, ...restProps } = $$props;
|
|
1707
|
+
const ctx = getChartContext();
|
|
1708
|
+
const geo = getGeoContext();
|
|
1709
|
+
const projection = derived(() => geoTransform && geo.projection ? transform_default(geoTransform(geo.projection)) : geo.projection);
|
|
1710
|
+
const geoPath = derived(() => {
|
|
1711
|
+
if (!projection()) return;
|
|
1712
|
+
if (curve === linearClosed_default) return path_default(projection());
|
|
1713
|
+
return geoCurvePath(projection(), curve);
|
|
1714
|
+
});
|
|
1715
|
+
const pathData = derived(() => geojson ? geoPath()?.(geojson) ?? "" : "");
|
|
1716
|
+
function _onClick(e) {
|
|
1717
|
+
onclick?.(e, geoPath());
|
|
1718
|
+
}
|
|
1719
|
+
function _onPointerEnter(e) {
|
|
1720
|
+
onpointerenter?.(e);
|
|
1721
|
+
if (tooltip) ctx?.tooltip.show(e, geojson);
|
|
1722
|
+
}
|
|
1723
|
+
function _onPointerMove(e) {
|
|
1724
|
+
onpointermove?.(e);
|
|
1725
|
+
if (tooltip) ctx.tooltip.show(e, geojson);
|
|
1726
|
+
}
|
|
1727
|
+
function _onPointerLeave(e) {
|
|
1728
|
+
onpointerleave?.(e);
|
|
1729
|
+
if (tooltip) ctx.tooltip.hide();
|
|
1730
|
+
}
|
|
1731
|
+
if (children) {
|
|
1732
|
+
$$renderer.push("<!--[0-->");
|
|
1733
|
+
children($$renderer, { geoPath: geoPath() });
|
|
1734
|
+
$$renderer.push(`<!---->`);
|
|
1735
|
+
} else {
|
|
1736
|
+
$$renderer.push("<!--[-1-->");
|
|
1737
|
+
if (Path) {
|
|
1738
|
+
$$renderer.push("<!--[-->");
|
|
1739
|
+
Path($$renderer, spread_props([
|
|
1740
|
+
{ pathData: pathData() },
|
|
1741
|
+
restProps,
|
|
1742
|
+
onclick && { onclick: _onClick },
|
|
1743
|
+
(tooltip || onpointerenter) && { onpointerenter: _onPointerEnter },
|
|
1744
|
+
(tooltip || onpointermove) && { onpointermove: _onPointerMove },
|
|
1745
|
+
(tooltip || onpointerleave) && { onpointerleave: _onPointerLeave },
|
|
1746
|
+
{
|
|
1747
|
+
class: cls("lc-geo-path", className),
|
|
1748
|
+
pathRef: refProp
|
|
1749
|
+
}
|
|
1750
|
+
]));
|
|
1751
|
+
$$renderer.push("<!--]-->");
|
|
1752
|
+
} else {
|
|
1753
|
+
$$renderer.push("<!--[!-->");
|
|
1754
|
+
$$renderer.push("<!--]-->");
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
$$renderer.push(`<!--]-->`);
|
|
1758
|
+
bind_props($$props, { ref: refProp });
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1761
|
+
//#endregion
|
|
1762
|
+
//#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/geo/GeoPath/GeoPath.svg.svelte
|
|
1763
|
+
function GeoPath_svg($$renderer, $$props) {
|
|
1764
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
1765
|
+
GeoPath_base($$renderer, spread_props([{ Path: Path_svg }, props]));
|
|
1766
|
+
}
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#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/geo/GeoPath/GeoPath.canvas.svelte
|
|
1769
|
+
function GeoPath_canvas($$renderer, $$props) {
|
|
1770
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
1771
|
+
GeoPath_base($$renderer, spread_props([{ Path: Path_canvas }, props]));
|
|
1772
|
+
}
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#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/geo/GeoPath/GeoPath.svelte
|
|
1775
|
+
function GeoPath($$renderer, $$props) {
|
|
1776
|
+
$$renderer.component(($$renderer) => {
|
|
1777
|
+
const layerCtx = getLayerContext();
|
|
1778
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
1779
|
+
if (layerCtx === "svg") {
|
|
1780
|
+
$$renderer.push("<!--[0-->");
|
|
1781
|
+
GeoPath_svg($$renderer, spread_props([props]));
|
|
1782
|
+
} else if (layerCtx === "canvas") {
|
|
1783
|
+
$$renderer.push("<!--[1-->");
|
|
1784
|
+
GeoPath_canvas($$renderer, spread_props([props]));
|
|
1785
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1786
|
+
$$renderer.push(`<!--]-->`);
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
//#endregion
|
|
1790
|
+
//#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/Voronoi/Voronoi.base.svelte
|
|
1791
|
+
function Voronoi_base($$renderer, $$props) {
|
|
1792
|
+
$$renderer.component(($$renderer) => {
|
|
1793
|
+
let { Group, Path, CircleClipPath, data, x: xProp, y: yProp, r, classes = {}, onclick, onpointerenter, onpointerdown, onpointermove, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
1794
|
+
const ctx = getChartContext();
|
|
1795
|
+
const facetPanel = getFacetPanel();
|
|
1796
|
+
const geo = getGeoContext();
|
|
1797
|
+
const xAccessorOverride = derived(() => xProp != null ? accessor(xProp) : void 0);
|
|
1798
|
+
const yAccessorOverride = derived(() => yProp != null ? accessor(yProp) : void 0);
|
|
1799
|
+
const points = derived(() => (data ?? facetPanel?.().data ?? ctx.flatData).map((d) => {
|
|
1800
|
+
const xValue = xAccessorOverride() ? geo.projection ? xAccessorOverride()(d) : ctx.xScale(xAccessorOverride()(d)) : geo.projection ? ctx.x(d) : ctx.xGet(d);
|
|
1801
|
+
const yValue = yAccessorOverride() ? geo.projection ? yAccessorOverride()(d) : ctx.yScale(yAccessorOverride()(d)) : geo.projection ? ctx.y(d) : ctx.yGet(d);
|
|
1802
|
+
const x = Array.isArray(xValue) ? max$1(xValue) : xValue;
|
|
1803
|
+
const y = Array.isArray(yValue) ? max$1(yValue) : yValue;
|
|
1804
|
+
let point;
|
|
1805
|
+
if (ctx.radial) {
|
|
1806
|
+
const radialPoint = pointRadial_default(x, y);
|
|
1807
|
+
point = [radialPoint[0] + ctx.width / 2, radialPoint[1] + ctx.height / 2];
|
|
1808
|
+
} else point = [x, y];
|
|
1809
|
+
point.data = d;
|
|
1810
|
+
return point;
|
|
1811
|
+
}));
|
|
1812
|
+
const boundWidth = derived(() => Math.max(ctx.width, 0));
|
|
1813
|
+
const boundHeight = derived(() => Math.max(ctx.height, 0));
|
|
1814
|
+
const disableClip = derived(() => r === 0 || r == null || r === Infinity);
|
|
1815
|
+
const voronoi = derived(() => geo.projection ? null : Delaunay.from(points()).voronoi([
|
|
1816
|
+
0,
|
|
1817
|
+
0,
|
|
1818
|
+
boundWidth(),
|
|
1819
|
+
boundHeight()
|
|
1820
|
+
]));
|
|
1821
|
+
const geoPolygons = derived(() => geo.projection ? geoVoronoi().polygons(points()) : null);
|
|
1822
|
+
const cells = derived(() => {
|
|
1823
|
+
if (!children) return [];
|
|
1824
|
+
if (geo.projection && geoPolygons()) return geoPolygons().features.map((feature, index) => {
|
|
1825
|
+
const projectedPoint = geo.projection?.(feature.properties.sitecoordinates) ?? null;
|
|
1826
|
+
const ring = (feature.geometry?.coordinates?.[0] ?? []).map((coord) => geo.projection?.(coord)).filter((p) => p != null);
|
|
1827
|
+
const polygon = ring.length ? ring : null;
|
|
1828
|
+
const projectedCentroid = geo.projection?.(centroid_default(feature)) ?? null;
|
|
1829
|
+
return {
|
|
1830
|
+
data: feature.properties.site?.data,
|
|
1831
|
+
index,
|
|
1832
|
+
point: projectedPoint ?? [NaN, NaN],
|
|
1833
|
+
polygon,
|
|
1834
|
+
centroid: projectedCentroid && Number.isFinite(projectedCentroid[0]) ? projectedCentroid : null,
|
|
1835
|
+
area: area_default(feature)
|
|
1836
|
+
};
|
|
1837
|
+
});
|
|
1838
|
+
if (voronoi()) return points().map((point, index) => {
|
|
1839
|
+
const polygon = voronoi().cellPolygon(index);
|
|
1840
|
+
return {
|
|
1841
|
+
data: point.data,
|
|
1842
|
+
index,
|
|
1843
|
+
point: [point[0], point[1]],
|
|
1844
|
+
polygon,
|
|
1845
|
+
centroid: polygon ? centroid_default$1(polygon) : null,
|
|
1846
|
+
area: polygon ? Math.abs(area_default$1(polygon)) : 0
|
|
1847
|
+
};
|
|
1848
|
+
});
|
|
1849
|
+
return [];
|
|
1850
|
+
});
|
|
1851
|
+
if (Group) {
|
|
1852
|
+
$$renderer.push("<!--[-->");
|
|
1853
|
+
Group($$renderer, spread_props([restProps, {
|
|
1854
|
+
class: cls("lc-voronoi-g", classes.root, className),
|
|
1855
|
+
children: ($$renderer) => {
|
|
1856
|
+
if (geo.projection) {
|
|
1857
|
+
$$renderer.push("<!--[0-->");
|
|
1858
|
+
if (geoPolygons()) {
|
|
1859
|
+
$$renderer.push(`<!--[0--><!--[-->`);
|
|
1860
|
+
const each_array = ensure_array_like(geoPolygons().features);
|
|
1861
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1862
|
+
let feature = each_array[$$index];
|
|
1863
|
+
const point = r ? geo.projection?.(feature.properties.sitecoordinates) : null;
|
|
1864
|
+
if (CircleClipPath) {
|
|
1865
|
+
$$renderer.push("<!--[-->");
|
|
1866
|
+
CircleClipPath($$renderer, {
|
|
1867
|
+
cx: point?.[0],
|
|
1868
|
+
cy: point?.[1],
|
|
1869
|
+
r: r ?? 0,
|
|
1870
|
+
disabled: point == null || disableClip(),
|
|
1871
|
+
children: ($$renderer) => {
|
|
1872
|
+
GeoPath($$renderer, {
|
|
1873
|
+
geojson: feature,
|
|
1874
|
+
class: ["lc-voronoi-geo-path", classes.path],
|
|
1875
|
+
onclick: (e) => onclick?.(e, {
|
|
1876
|
+
data: feature.properties.site.data,
|
|
1877
|
+
feature
|
|
1878
|
+
}),
|
|
1879
|
+
onpointerenter: (e) => onpointerenter?.(e, {
|
|
1880
|
+
data: feature.properties.site.data,
|
|
1881
|
+
feature
|
|
1882
|
+
}),
|
|
1883
|
+
onpointermove: (e) => onpointermove?.(e, {
|
|
1884
|
+
data: feature.properties.site.data,
|
|
1885
|
+
feature
|
|
1886
|
+
}),
|
|
1887
|
+
onpointerdown: (e) => onpointerdown?.(e, {
|
|
1888
|
+
data: feature.properties.site.data,
|
|
1889
|
+
feature
|
|
1890
|
+
}),
|
|
1891
|
+
ontouchmove: (e) => {
|
|
1892
|
+
e.preventDefault();
|
|
1893
|
+
}
|
|
1894
|
+
});
|
|
1895
|
+
},
|
|
1896
|
+
$$slots: { default: true }
|
|
1897
|
+
});
|
|
1898
|
+
$$renderer.push("<!--]-->");
|
|
1899
|
+
} else {
|
|
1900
|
+
$$renderer.push("<!--[!-->");
|
|
1901
|
+
$$renderer.push("<!--]-->");
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
$$renderer.push(`<!--]-->`);
|
|
1905
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1906
|
+
$$renderer.push(`<!--]-->`);
|
|
1907
|
+
} else if (voronoi()) {
|
|
1908
|
+
$$renderer.push(`<!--[1--><!--[-->`);
|
|
1909
|
+
const each_array_1 = ensure_array_like(points());
|
|
1910
|
+
for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {
|
|
1911
|
+
let point = each_array_1[i];
|
|
1912
|
+
const pathData = voronoi().renderCell(i);
|
|
1913
|
+
if (pathData) {
|
|
1914
|
+
$$renderer.push("<!--[0-->");
|
|
1915
|
+
if (CircleClipPath) {
|
|
1916
|
+
$$renderer.push("<!--[-->");
|
|
1917
|
+
CircleClipPath($$renderer, {
|
|
1918
|
+
cx: point[0],
|
|
1919
|
+
cy: point[1],
|
|
1920
|
+
r: r ?? 0,
|
|
1921
|
+
disabled: disableClip(),
|
|
1922
|
+
children: ($$renderer) => {
|
|
1923
|
+
if (Path) {
|
|
1924
|
+
$$renderer.push("<!--[-->");
|
|
1925
|
+
Path($$renderer, {
|
|
1926
|
+
pathData,
|
|
1927
|
+
class: ["lc-voronoi-path", classes.path],
|
|
1928
|
+
onclick: (e) => onclick?.(e, {
|
|
1929
|
+
data: point.data,
|
|
1930
|
+
point
|
|
1931
|
+
}),
|
|
1932
|
+
onpointerenter: (e) => onpointerenter?.(e, {
|
|
1933
|
+
data: point.data,
|
|
1934
|
+
point
|
|
1935
|
+
}),
|
|
1936
|
+
onpointermove: (e) => onpointermove?.(e, {
|
|
1937
|
+
data: point.data,
|
|
1938
|
+
point
|
|
1939
|
+
}),
|
|
1940
|
+
onpointerdown: (e) => onpointerdown?.(e, {
|
|
1941
|
+
data: point.data,
|
|
1942
|
+
point
|
|
1943
|
+
}),
|
|
1944
|
+
ontouchmove: (e) => {
|
|
1945
|
+
e.preventDefault();
|
|
1946
|
+
}
|
|
1947
|
+
});
|
|
1948
|
+
$$renderer.push("<!--]-->");
|
|
1949
|
+
} else {
|
|
1950
|
+
$$renderer.push("<!--[!-->");
|
|
1951
|
+
$$renderer.push("<!--]-->");
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
$$slots: { default: true }
|
|
1955
|
+
});
|
|
1956
|
+
$$renderer.push("<!--]-->");
|
|
1957
|
+
} else {
|
|
1958
|
+
$$renderer.push("<!--[!-->");
|
|
1959
|
+
$$renderer.push("<!--]-->");
|
|
1960
|
+
}
|
|
1961
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1962
|
+
$$renderer.push(`<!--]-->`);
|
|
1963
|
+
}
|
|
1964
|
+
$$renderer.push(`<!--]-->`);
|
|
1965
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1966
|
+
$$renderer.push(`<!--]--> `);
|
|
1967
|
+
children?.($$renderer, { cells: cells() });
|
|
1968
|
+
$$renderer.push(`<!---->`);
|
|
1969
|
+
},
|
|
1970
|
+
$$slots: { default: true }
|
|
1971
|
+
}]));
|
|
1972
|
+
$$renderer.push("<!--]-->");
|
|
1973
|
+
} else {
|
|
1974
|
+
$$renderer.push("<!--[!-->");
|
|
1975
|
+
$$renderer.push("<!--]-->");
|
|
1976
|
+
}
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
//#endregion
|
|
1980
|
+
//#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/CircleClipPath/CircleClipPath.base.svelte
|
|
1981
|
+
function CircleClipPath_base($$renderer, $$props) {
|
|
1982
|
+
$$renderer.component(($$renderer) => {
|
|
1983
|
+
const uid = props_id($$renderer);
|
|
1984
|
+
let { ClipPath, id = createId("clipPath-", uid), cx = 0, cy = 0, r, disabled = false, invert = false, children } = $$props;
|
|
1985
|
+
const path = derived(() => `M${cx - r},${cy} a${r},${r} 0 1,0 ${2 * r},0 a${r},${r} 0 1,0 ${ -2 * r},0 Z`);
|
|
1986
|
+
if (ClipPath) {
|
|
1987
|
+
$$renderer.push("<!--[-->");
|
|
1988
|
+
ClipPath($$renderer, {
|
|
1989
|
+
id,
|
|
1990
|
+
disabled,
|
|
1991
|
+
invert,
|
|
1992
|
+
children,
|
|
1993
|
+
path: path()
|
|
1994
|
+
});
|
|
1995
|
+
$$renderer.push("<!--]-->");
|
|
1996
|
+
} else {
|
|
1997
|
+
$$renderer.push("<!--[!-->");
|
|
1998
|
+
$$renderer.push("<!--]-->");
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
//#endregion
|
|
2003
|
+
//#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/CircleClipPath/CircleClipPath.svg.svelte
|
|
2004
|
+
function CircleClipPath_svg($$renderer, $$props) {
|
|
2005
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
2006
|
+
CircleClipPath_base($$renderer, spread_props([{ ClipPath: ClipPath_svg }, props]));
|
|
2007
|
+
}
|
|
2008
|
+
//#endregion
|
|
2009
|
+
//#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/Voronoi/Voronoi.svg.svelte
|
|
2010
|
+
function Voronoi_svg($$renderer, $$props) {
|
|
2011
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
2012
|
+
Voronoi_base($$renderer, spread_props([{
|
|
2013
|
+
Group: Group_svg,
|
|
2014
|
+
Path: Path_svg,
|
|
2015
|
+
CircleClipPath: CircleClipPath_svg
|
|
2016
|
+
}, props]));
|
|
2017
|
+
}
|
|
2018
|
+
//#endregion
|
|
2019
|
+
//#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/CircleClipPath/CircleClipPath.canvas.svelte
|
|
2020
|
+
function CircleClipPath_canvas($$renderer, $$props) {
|
|
2021
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
2022
|
+
CircleClipPath_base($$renderer, spread_props([{ ClipPath: ClipPath_canvas }, props]));
|
|
2023
|
+
}
|
|
2024
|
+
//#endregion
|
|
2025
|
+
//#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/Voronoi/Voronoi.canvas.svelte
|
|
2026
|
+
function Voronoi_canvas($$renderer, $$props) {
|
|
2027
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
2028
|
+
Voronoi_base($$renderer, spread_props([{
|
|
2029
|
+
Group: Group_canvas,
|
|
2030
|
+
Path: Path_canvas,
|
|
2031
|
+
CircleClipPath: CircleClipPath_canvas
|
|
2032
|
+
}, props]));
|
|
2033
|
+
}
|
|
2034
|
+
//#endregion
|
|
2035
|
+
//#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/Voronoi/Voronoi.svelte
|
|
2036
|
+
function Voronoi($$renderer, $$props) {
|
|
2037
|
+
$$renderer.component(($$renderer) => {
|
|
2038
|
+
const layerCtx = getLayerContext();
|
|
2039
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
2040
|
+
if (layerCtx === "svg") {
|
|
2041
|
+
$$renderer.push("<!--[0-->");
|
|
2042
|
+
Voronoi_svg($$renderer, spread_props([props]));
|
|
2043
|
+
} else if (layerCtx === "canvas") {
|
|
2044
|
+
$$renderer.push("<!--[1-->");
|
|
2045
|
+
Voronoi_canvas($$renderer, spread_props([props]));
|
|
2046
|
+
} else $$renderer.push("<!--[-1-->");
|
|
2047
|
+
$$renderer.push(`<!--]-->`);
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
export { Voronoi as default };
|
|
2052
|
+
//# sourceMappingURL=Voronoi.js-DevTsXQE.js.map
|