vue-data-ui 3.26.5 → 3.27.1-beta.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/dist/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-CJeSufxg.js +1 -0
- package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
- package/dist/BaseIcon-Cz30ODFA.js +1 -0
- package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
- package/dist/ColorPicker-CUjEw53A.js +1 -0
- package/dist/DataTable-DSUA5M9p.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-DdvXld3a.js +1 -0
- package/dist/Legend-DokTll4u.js +1 -0
- package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
- package/dist/PackageVersion-D6pKL176.js +1 -0
- package/dist/PenAndPaper-DvJJaeU2.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-tkp65OcG.js +1 -0
- package/dist/SlicerPreview-GFRs2EWB.js +1 -0
- package/dist/SparkTooltip-BlJLvizH.js +1 -0
- package/dist/Title-BRAjxtjG.js +1 -0
- package/dist/Tooltip-BUXB0i6z.js +1 -0
- package/dist/UserOptions-D65t74CM.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-NwZO-elv.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
- package/dist/exposedLib-CMTeSmyW.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-8sM3sVWU.js +1 -0
- package/dist/labelUtils-Djp5nJtN.js +1 -0
- package/dist/lib-zDxoqrgo.js +12 -0
- package/dist/package-DIR2F6AE.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-Dlv_ks7R.js +1 -0
- package/dist/render-common-DOYi0f4Z.js +1 -0
- package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17969 -17813
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -120
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CT9phgWx.js +1 -0
- package/dist/useObjectBindings-DM3xDKV3.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-CnyKPIFM.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-BG41UScx.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
- package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
- package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
- package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
- package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
- package/dist/vue-ui-bump-DYajIrva.js +10 -0
- package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
- package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
- package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
- package/dist/vue-ui-chord-fAckHfOW.js +21 -0
- package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
- package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
- package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
- package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
- package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
- package/dist/vue-ui-donut-BaEodt-3.js +22 -0
- package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
- package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
- package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
- package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
- package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
- package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
- package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
- package/dist/vue-ui-geo-CX3yH18H.js +1 -0
- package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
- package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
- package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
- package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
- package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
- package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
- package/dist/vue-ui-label-D1Aog-zO.js +7 -0
- package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
- package/dist/vue-ui-molecule-B13qVX71.js +1 -0
- package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
- package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
- package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
- package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
- package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
- package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
- package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
- package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
- package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
- package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
- package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
- package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
- package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
- package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
- package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
- package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
- package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
- package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
- package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
- package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
- package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
- package/dist/vue-ui-table-Br2JgD_L.js +14 -0
- package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
- package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
- package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
- package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
- package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
- package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
- package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
- package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
- package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
- package/dist/vue-ui-world-Cp0DeauH.js +19 -0
- package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
- package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
- package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-BQbcOtfC.js +0 -116
- package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
- package/dist/BaseIcon-CIK6Sqo3.js +0 -484
- package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
- package/dist/ColorPicker-Cb7qpvFt.js +0 -257
- package/dist/DataTable-B6LDCXBz.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-CwdgCb7Q.js +0 -187
- package/dist/Legend-D9FGXIbQ.js +0 -156
- package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
- package/dist/PackageVersion-CslTvFsC.js +0 -12
- package/dist/PenAndPaper-C1EcBgJW.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BZgQLgu5.js +0 -143
- package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
- package/dist/SparkTooltip-D4cRlyuq.js +0 -93
- package/dist/Title-Bd98RysU.js +0 -87
- package/dist/Tooltip-DmQeI5WE.js +0 -312
- package/dist/UserOptions-B_yBcZ1-.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-B_RJohlM.js +0 -237
- package/dist/exposedLib-C-JlvWAt.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-KURaWjZI.js +0 -129
- package/dist/labelUtils-DShv2Mbg.js +0 -19
- package/dist/lib-TWIH5fGr.js +0 -2152
- package/dist/package-DbTqd5lc.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-CLl24Afl.js +0 -90
- package/dist/render-common-CKv-jztN.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-DObkR9Aa.js +0 -8008
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-BxOdWM0c.js +0 -12
- package/dist/useObjectBindings-CPmyIJxB.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-8Y1Rju0Y.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-C3G5Zdl5.js +0 -191
- package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
- package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
- package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
- package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
- package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
- package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
- package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
- package/dist/vue-ui-chord-64akfaem.js +0 -1347
- package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
- package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
- package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
- package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
- package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
- package/dist/vue-ui-donut-8joMj08Z.js +0 -974
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
- package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
- package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
- package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-hill-DONFacXR.js +0 -1747
- package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
- package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
- package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
- package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CueHa1Pm.js +0 -1979
- package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
- package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
- package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
- package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
- package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
- package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-D295mJIf.js +0 -1352
- package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
- package/dist/vue-ui-timer-BULpjYiI.js +0 -451
- package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
- package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
- package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
- package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
- package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
- package/dist/vue-ui-world-B755-zji.js +0 -3021
- package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
- package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
- package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-DdjDL6aq.js +0 -491
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./lib-TWIH5fGr.js";
|
|
2
|
-
//#region src/dom-to-png.js
|
|
3
|
-
async function t(e) {
|
|
4
|
-
let t = e.querySelectorAll("img"), n = Array.from(t).map((e) => new Promise((t) => {
|
|
5
|
-
if (!e.src || e.src.startsWith("data:")) return t();
|
|
6
|
-
if (e.complete && e.naturalWidth !== 0) {
|
|
7
|
-
try {
|
|
8
|
-
let t = document.createElement("canvas");
|
|
9
|
-
t.width = e.naturalWidth, t.height = e.naturalHeight, t.getContext("2d").drawImage(e, 0, 0), e.src = t.toDataURL();
|
|
10
|
-
} catch {}
|
|
11
|
-
return t();
|
|
12
|
-
}
|
|
13
|
-
let n = new window.Image();
|
|
14
|
-
n.crossOrigin = "anonymous", n.onload = function() {
|
|
15
|
-
try {
|
|
16
|
-
let t = document.createElement("canvas");
|
|
17
|
-
t.width = n.naturalWidth, t.height = n.naturalHeight, t.getContext("2d").drawImage(n, 0, 0), e.src = t.toDataURL();
|
|
18
|
-
} catch {}
|
|
19
|
-
t();
|
|
20
|
-
}, n.onerror = function() {
|
|
21
|
-
t();
|
|
22
|
-
}, n.src = e.src;
|
|
23
|
-
}));
|
|
24
|
-
await Promise.all(n);
|
|
25
|
-
}
|
|
26
|
-
function n(e) {
|
|
27
|
-
e.querySelectorAll("[data-dom-to-png-ignore]").forEach((e) => {
|
|
28
|
-
e.remove();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function r(e, t, n) {
|
|
32
|
-
let i = window.getComputedStyle(t), a = t.getBoundingClientRect(), o = i.display.includes("flex"), s = {}, c = e.getAttribute("style");
|
|
33
|
-
typeof c != "string" && (c = ""), c.split(";").forEach((e) => {
|
|
34
|
-
if (typeof e == "string" && e.trim()) {
|
|
35
|
-
let [t, n] = e.split(":");
|
|
36
|
-
t && n !== void 0 && (s[t.trim()] = n.trim());
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
for (let e = 0; e < i.length; e += 1) {
|
|
40
|
-
let t = i[e];
|
|
41
|
-
s[t] = i.getPropertyValue(t);
|
|
42
|
-
}
|
|
43
|
-
s.color = i.color, s["background-color"] = i.backgroundColor;
|
|
44
|
-
let l = i.fontFamily || n || "";
|
|
45
|
-
(!l || l.trim() === "" || l === "inherit" || l === "initial" || l.toLowerCase().startsWith("system-ui") || l.toLowerCase() === "sans-serif" || l.toLowerCase() === "serif" || l.toLowerCase() === "monospace") && (l = "Helvetica, Arial, sans-serif"), s["font-family"] = l, s["font-size"] = i.fontSize, s["font-weight"] = i.fontWeight, (o || i.display.includes("grid") || [
|
|
46
|
-
"inline-block",
|
|
47
|
-
"absolute",
|
|
48
|
-
"fixed"
|
|
49
|
-
].includes(i.position)) && (a.width > 0 && (s.width = a.width + "px"), a.height > 0 && (s.height = a.height + "px")), o && i.flexWrap === "nowrap" && (s["white-space"] = "nowrap"), [
|
|
50
|
-
"box-sizing",
|
|
51
|
-
"padding",
|
|
52
|
-
"margin",
|
|
53
|
-
"border"
|
|
54
|
-
].forEach((e) => {
|
|
55
|
-
s[e] = i.getPropertyValue(e);
|
|
56
|
-
}), s.overflow = "visible", s["overflow-x"] = "visible", s["overflow-y"] = "visible";
|
|
57
|
-
let u = "";
|
|
58
|
-
for (let e in s) u += `${e}:${s[e]};`;
|
|
59
|
-
e.setAttribute("style", u);
|
|
60
|
-
let d = e.children || [], f = t.children || [];
|
|
61
|
-
for (let e = 0; e < d.length; e++) d[e].nodeType === 1 && f[e] && r(d[e], f[e], l);
|
|
62
|
-
}
|
|
63
|
-
function i(e, t) {
|
|
64
|
-
e.querySelectorAll("text").forEach((e) => {
|
|
65
|
-
e.setAttribute("font-family", t), e.style.fontFamily = t;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function a(e) {
|
|
69
|
-
let t = new TextEncoder().encode(e), n = "";
|
|
70
|
-
return t.forEach((e) => n += String.fromCharCode(e)), btoa(n);
|
|
71
|
-
}
|
|
72
|
-
function o(e, t, n) {
|
|
73
|
-
let r = new XMLSerializer().serializeToString(e);
|
|
74
|
-
r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (r = r.replace(/^<svg/, "<svg xmlns=\"http://www.w3.org/2000/svg\""));
|
|
75
|
-
let i = window.btoa(unescape(encodeURIComponent(r))), a = new window.Image();
|
|
76
|
-
return a.src = `data:image/svg+xml;base64,${i}`, new Promise((e, r) => {
|
|
77
|
-
a.onload = function() {
|
|
78
|
-
let r = document.createElement("canvas");
|
|
79
|
-
r.width = t, r.height = n, r.getContext("2d").drawImage(a, 0, 0, t, n), e(r.toDataURL("image/png", 1));
|
|
80
|
-
}, a.onerror = (e) => r(e);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function s(e) {
|
|
84
|
-
if (e.nodeType !== 1) return;
|
|
85
|
-
let t = window.getComputedStyle(e), n = "";
|
|
86
|
-
for (let e = 0; e < t.length; e++) {
|
|
87
|
-
let r = t[e];
|
|
88
|
-
n += `${r}:${t.getPropertyValue(r)};`;
|
|
89
|
-
}
|
|
90
|
-
e.setAttribute("style", n);
|
|
91
|
-
for (let t = 0; t < e.children.length; t++) s(e.children[t]);
|
|
92
|
-
}
|
|
93
|
-
function c() {
|
|
94
|
-
let e = [];
|
|
95
|
-
for (let t of document.styleSheets) try {
|
|
96
|
-
let n = t.cssRules;
|
|
97
|
-
if (!n) continue;
|
|
98
|
-
for (let t of n) (typeof CSSFontFaceRule < "u" && t instanceof CSSFontFaceRule || t.cssText.trim().startsWith("@font-face")) && e.push(t.cssText);
|
|
99
|
-
} catch {
|
|
100
|
-
continue;
|
|
101
|
-
}
|
|
102
|
-
return e;
|
|
103
|
-
}
|
|
104
|
-
function l(e) {
|
|
105
|
-
let t = c();
|
|
106
|
-
if (!t.length) return;
|
|
107
|
-
let n = document.createElement("style");
|
|
108
|
-
n.setAttribute("type", "text/css"), n.textContent = t.join("\n");
|
|
109
|
-
let r = e.querySelector("defs") || document.createElementNS("http://www.w3.org/2000/svg", "defs");
|
|
110
|
-
r.appendChild(n), e.querySelector("defs") || e.insertBefore(r, e.firstChild);
|
|
111
|
-
}
|
|
112
|
-
function u(e, t) {
|
|
113
|
-
let n = e.querySelectorAll("foreignObject"), r = t.querySelectorAll("foreignObject");
|
|
114
|
-
n.forEach((e, t) => {
|
|
115
|
-
let n = r[t];
|
|
116
|
-
if (!n) return;
|
|
117
|
-
function i(e, t) {
|
|
118
|
-
if (!e || !t) return;
|
|
119
|
-
if (e.nodeType === 1 && t.nodeType === 1) {
|
|
120
|
-
let n = window.getComputedStyle(t), r = "";
|
|
121
|
-
for (let e = 0; e < n.length; e++) {
|
|
122
|
-
let t = n[e];
|
|
123
|
-
r += `${t}:${n.getPropertyValue(t)};`;
|
|
124
|
-
}
|
|
125
|
-
e.setAttribute("style", r);
|
|
126
|
-
}
|
|
127
|
-
let n = e.children || [], r = t.children || [];
|
|
128
|
-
for (let e = 0; e < n.length; e++) i(n[e], r[e]);
|
|
129
|
-
}
|
|
130
|
-
i(e, n);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function d(e) {
|
|
134
|
-
e.querySelectorAll("foreignObject").forEach((e) => {
|
|
135
|
-
let t = "", n = Array.from(e.querySelectorAll("*"));
|
|
136
|
-
if (n.length !== 0) {
|
|
137
|
-
for (let e of document.styleSheets) {
|
|
138
|
-
let r;
|
|
139
|
-
try {
|
|
140
|
-
r = e.cssRules;
|
|
141
|
-
} catch {
|
|
142
|
-
continue;
|
|
143
|
-
}
|
|
144
|
-
if (r) {
|
|
145
|
-
for (let e of r) if (typeof CSSStyleRule > "u" || e instanceof CSSStyleRule) try {
|
|
146
|
-
n.some((t) => t.matches(e.selectorText)) && (t += e.cssText + "\n");
|
|
147
|
-
} catch {
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (t) {
|
|
153
|
-
let n = document.createElement("style");
|
|
154
|
-
n.textContent = t, e.insertBefore(n, e.firstChild);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function f(e) {
|
|
160
|
-
e.querySelectorAll("foreignObject").forEach((e) => {
|
|
161
|
-
let t = e.firstElementChild;
|
|
162
|
-
t && t.tagName.toLowerCase() !== "svg" && t.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
function p(e, t) {
|
|
166
|
-
let n = e.querySelectorAll("foreignObject"), r = t.querySelectorAll("foreignObject");
|
|
167
|
-
n.forEach((e, t) => {
|
|
168
|
-
let n = r[t];
|
|
169
|
-
if (!e || !n) return;
|
|
170
|
-
let i = e.firstElementChild, a = n.firstElementChild;
|
|
171
|
-
i && a && m(i, a);
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
function m(e, t) {
|
|
175
|
-
if (e.nodeType !== 1 || !t) return;
|
|
176
|
-
r(e, t);
|
|
177
|
-
let n = e.children || [], i = t.children || [];
|
|
178
|
-
for (let e = 0; e < n.length; e++) m(n[e], i[e]);
|
|
179
|
-
}
|
|
180
|
-
function h(e, t) {
|
|
181
|
-
let n = Array.from(t.querySelectorAll("img"));
|
|
182
|
-
e.querySelectorAll("img").forEach((e) => {
|
|
183
|
-
let t = e.getAttribute("src"), r = n.find((e) => e.getAttribute("src") === t);
|
|
184
|
-
if (r) {
|
|
185
|
-
let t = window.getComputedStyle(r), n = "";
|
|
186
|
-
for (let e = 0; e < t.length; e++) {
|
|
187
|
-
let r = t[e];
|
|
188
|
-
n += `${r}:${t.getPropertyValue(r)};`;
|
|
189
|
-
}
|
|
190
|
-
e.setAttribute("style", n);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
async function g({ container: c, scale: m = 2, base64: g = !1 }) {
|
|
195
|
-
if (!c) throw Error("No container provided");
|
|
196
|
-
await document.fonts.ready;
|
|
197
|
-
let _ = window.getComputedStyle(c).fontFamily || "Helvetica";
|
|
198
|
-
_.toLowerCase().includes("helvetica") || (_ += ", Helvetica");
|
|
199
|
-
let v = c.cloneNode(!0), y = v.querySelectorAll("canvas"), b = c.querySelectorAll("canvas");
|
|
200
|
-
for (let e = 0; e < b.length; e += 1) {
|
|
201
|
-
let t = b[e], n = y[e];
|
|
202
|
-
if (t && n) {
|
|
203
|
-
let e = document.createElement("img");
|
|
204
|
-
e.src = t.toDataURL("image/png"), e.width = t.width, e.height = t.height, e.style.width = t.style.width || t.width + "px", e.style.height = t.style.height || t.height + "px", n.replaceWith(e);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
let x = c.querySelector("svg[aria-label]"), S = v.querySelector("svg[aria-label]");
|
|
208
|
-
if (x && S) {
|
|
209
|
-
f(S), d(S), u(S, x), p(S, x), s(S), i(S, _), h(S, x), await t(S);
|
|
210
|
-
let e = x.getBoundingClientRect(), n = e.width, r = e.height, a = await o(S, Math.round(n * m), Math.round(r * m)), c = document.createElement("img");
|
|
211
|
-
c.src = a, c.width = n, c.height = r, c.style.width = n + "px", c.style.height = r + "px", S.parentNode.replaceChild(c, S);
|
|
212
|
-
}
|
|
213
|
-
r(v, c, _), h(v, c), n(v), await t(v);
|
|
214
|
-
let { width: C, height: w } = c.getBoundingClientRect(), T = Math.round(Math.max(v.scrollWidth, C) * m), E = Math.round(Math.max(v.scrollHeight, w) * 1.01 * m), D = document.createElementNS(e, "svg");
|
|
215
|
-
D.setAttribute("viewBox", `0 0 ${T} ${E}`), D.setAttribute("width", T), D.setAttribute("height", E), D.setAttribute("style", `font-family:${_};`);
|
|
216
|
-
let O = document.createElementNS(e, "foreignObject");
|
|
217
|
-
O.setAttribute("x", 0), O.setAttribute("y", 0), O.setAttribute("width", T), O.setAttribute("height", E), O.setAttribute("style", `font-family:${_};`), v.style.transform = `scale(${m})`, v.style.transformOrigin = "top left", v.style.width = C + "px", v.style.height = w + "px", v.style.background = window.getComputedStyle(c).backgroundColor, O.appendChild(v), l(D), D.appendChild(O);
|
|
218
|
-
let k = a(new XMLSerializer().serializeToString(D)), A = new window.Image();
|
|
219
|
-
A.crossOrigin = "anonymous";
|
|
220
|
-
let j = `data:image/svg+xml;base64,${k}`;
|
|
221
|
-
return A.src = j, g ? new Promise((e) => {
|
|
222
|
-
e(j);
|
|
223
|
-
}) : new Promise((e, t) => {
|
|
224
|
-
A.onload = function() {
|
|
225
|
-
try {
|
|
226
|
-
let t = document.createElement("canvas");
|
|
227
|
-
t.width = T, t.height = E, t.getContext("2d").drawImage(A, 0, 0, T, E), e(t.toDataURL("image/png", 1));
|
|
228
|
-
} catch (e) {
|
|
229
|
-
t("Failed to draw SVG on canvas: " + e);
|
|
230
|
-
}
|
|
231
|
-
}, A.onerror = function() {
|
|
232
|
-
t("Failed to load SVG image for conversion");
|
|
233
|
-
};
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
237
|
-
export { g as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Jt as e, Pt as t, Q as n, S as r, m as i, tn as a, u as o } from "./lib-TWIH5fGr.js";
|
|
2
|
-
//#region src/exposedLib.js
|
|
3
|
-
function s(e, n) {
|
|
4
|
-
let i = r(e);
|
|
5
|
-
return t(i, n);
|
|
6
|
-
}
|
|
7
|
-
function c(e, t) {
|
|
8
|
-
let i = r(e);
|
|
9
|
-
return n(i, t);
|
|
10
|
-
}
|
|
11
|
-
function l(t, n) {
|
|
12
|
-
let i = r(t);
|
|
13
|
-
return e(i, n);
|
|
14
|
-
}
|
|
15
|
-
function u({ defaultConfig: e, userConfig: t }) {
|
|
16
|
-
return a({
|
|
17
|
-
defaultConfig: e,
|
|
18
|
-
userConfig: t
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function d(e) {
|
|
22
|
-
return o(e);
|
|
23
|
-
}
|
|
24
|
-
function f(e) {
|
|
25
|
-
return i(e);
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { u as a, f as i, c as n, l as o, s as r, d as t };
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
//#region src/geoProjections.js
|
|
2
|
-
function e(e, t = []) {
|
|
3
|
-
return {
|
|
4
|
-
type: "FeatureCollection",
|
|
5
|
-
features: e.features.map((e) => {
|
|
6
|
-
let n = {};
|
|
7
|
-
return t.forEach((t) => {
|
|
8
|
-
e.properties && e.properties.hasOwnProperty(t) && (n[t] = e.properties[t]);
|
|
9
|
-
}), {
|
|
10
|
-
type: "Feature",
|
|
11
|
-
geometry: e.geometry,
|
|
12
|
-
properties: n
|
|
13
|
-
};
|
|
14
|
-
})
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
18
|
-
function r(e) {
|
|
19
|
-
return e * Math.PI / 180;
|
|
20
|
-
}
|
|
21
|
-
function i(e) {
|
|
22
|
-
return Math.round(e * 100) / 100;
|
|
23
|
-
}
|
|
24
|
-
function a(e, t) {
|
|
25
|
-
return {
|
|
26
|
-
cx: e / 2,
|
|
27
|
-
cy: t / 2,
|
|
28
|
-
radius: Math.min(e, t) / 2 * .95
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function o(e, t, n = [0, 0]) {
|
|
32
|
-
let [i, o] = n, s = r(o);
|
|
33
|
-
return {
|
|
34
|
-
...a(e, t),
|
|
35
|
-
lon0Rad: r(i),
|
|
36
|
-
sinLat0: Math.sin(s),
|
|
37
|
-
cosLat0: Math.cos(s)
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function s([e, t]) {
|
|
41
|
-
let n = r(t);
|
|
42
|
-
return {
|
|
43
|
-
lon: e,
|
|
44
|
-
lat: t,
|
|
45
|
-
lonRad: r(e),
|
|
46
|
-
sinLat: Math.sin(n),
|
|
47
|
-
cosLat: Math.cos(n)
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function c(e, t) {
|
|
51
|
-
let n = e.lonRad - t.lon0Rad, r = Math.sin(n), i = Math.cos(n);
|
|
52
|
-
return {
|
|
53
|
-
x: e.cosLat * r,
|
|
54
|
-
y: t.cosLat0 * e.sinLat - t.sinLat0 * e.cosLat * i,
|
|
55
|
-
z: t.sinLat0 * e.sinLat + t.cosLat0 * e.cosLat * i
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function l(e, t = [0, 0]) {
|
|
59
|
-
return c(s(e), o(1, 1, t));
|
|
60
|
-
}
|
|
61
|
-
function u(e, t, n = 10) {
|
|
62
|
-
let { cx: r, cy: i, radius: o } = a(e, t), s = r - o - n, c = i - o - n, l = r + o + n, u = i + o + n;
|
|
63
|
-
return {
|
|
64
|
-
minX: Math.floor(s),
|
|
65
|
-
minY: Math.floor(c),
|
|
66
|
-
width: Math.ceil(l - s),
|
|
67
|
-
height: Math.ceil(u - c)
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function d(e, t) {
|
|
71
|
-
return c(e, t).z >= -1e-9;
|
|
72
|
-
}
|
|
73
|
-
function f(e, t = [0, 0]) {
|
|
74
|
-
return l(e, t).z >= -1e-9;
|
|
75
|
-
}
|
|
76
|
-
function p(e, t, n = !1) {
|
|
77
|
-
let r = c(e, t);
|
|
78
|
-
if (r.z < -1e-9) {
|
|
79
|
-
if (!n) return [NaN, NaN];
|
|
80
|
-
let e = Math.hypot(r.x, r.y);
|
|
81
|
-
return !Number.isFinite(e) || e <= 1e-9 ? [NaN, NaN] : [t.cx + t.radius * (r.x / e), t.cy - t.radius * (r.y / e)];
|
|
82
|
-
}
|
|
83
|
-
return [t.cx + t.radius * r.x, t.cy - t.radius * r.y];
|
|
84
|
-
}
|
|
85
|
-
function m(e, t, n, r = [0, 0], i = !1) {
|
|
86
|
-
return p(s(e), o(t, n, r), i);
|
|
87
|
-
}
|
|
88
|
-
function h(e) {
|
|
89
|
-
return ((e + 180) % 360 + 360) % 360 - 180;
|
|
90
|
-
}
|
|
91
|
-
function g(e, t, n) {
|
|
92
|
-
let r = h(t.lon - e.lon);
|
|
93
|
-
return s([e.lon + r * n, e.lat + (t.lat - e.lat) * n]);
|
|
94
|
-
}
|
|
95
|
-
function _(e, t, n) {
|
|
96
|
-
let r = 0, i = 1, a = d(e, n);
|
|
97
|
-
for (let o = 0; o < 24; o += 1) {
|
|
98
|
-
let o = (r + i) / 2;
|
|
99
|
-
d(g(e, t, o), n) === a ? r = o : i = o;
|
|
100
|
-
}
|
|
101
|
-
return g(e, t, (r + i) / 2);
|
|
102
|
-
}
|
|
103
|
-
function v(e, t) {
|
|
104
|
-
return Math.abs(e[0] - t[0]) < 1e-12 && Math.abs(e[1] - t[1]) < 1e-12;
|
|
105
|
-
}
|
|
106
|
-
function y(e) {
|
|
107
|
-
if (!Array.isArray(e)) return [];
|
|
108
|
-
let n = t.get(e);
|
|
109
|
-
if (n) return n;
|
|
110
|
-
let r = [];
|
|
111
|
-
for (let t of e) {
|
|
112
|
-
let e = r[r.length - 1];
|
|
113
|
-
(!e || !v(e, t)) && r.push(t);
|
|
114
|
-
}
|
|
115
|
-
return r.length > 1 && v(r[0], r[r.length - 1]) && r.pop(), t.set(e, r), r;
|
|
116
|
-
}
|
|
117
|
-
function b(e) {
|
|
118
|
-
if (!Array.isArray(e)) return [];
|
|
119
|
-
let t = n.get(e);
|
|
120
|
-
if (t) return t;
|
|
121
|
-
let r = y(e).map(s);
|
|
122
|
-
return n.set(e, r), r;
|
|
123
|
-
}
|
|
124
|
-
function x(e) {
|
|
125
|
-
let t = "", n = 0, r = null, a = null;
|
|
126
|
-
for (let o of e) {
|
|
127
|
-
if (!o || !Number.isFinite(o[0]) || !Number.isFinite(o[1])) continue;
|
|
128
|
-
let e = i(o[0]), s = i(o[1]);
|
|
129
|
-
r !== null && Math.abs(r - e) < 1e-8 && Math.abs(a - s) < 1e-8 || (t += n === 0 ? `M${e},${s}` : `L${e},${s}`, r = e, a = s, n += 1);
|
|
130
|
-
}
|
|
131
|
-
return n < 3 ? "" : `${t}Z`;
|
|
132
|
-
}
|
|
133
|
-
function S(e, t) {
|
|
134
|
-
let n = b(e), r = n.length;
|
|
135
|
-
if (r < 3) return "";
|
|
136
|
-
let i = Array(r), a = !1, o = !1;
|
|
137
|
-
for (let e = 0; e < r; e += 1) i[e] = d(n[e], t), i[e] && (a = !0);
|
|
138
|
-
for (let e = 0; e < r; e += 1) {
|
|
139
|
-
let t = (e - 1 + r) % r;
|
|
140
|
-
if (i[e] !== i[t]) {
|
|
141
|
-
o = !0;
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
if (!a && !o) return "";
|
|
146
|
-
let s = [];
|
|
147
|
-
for (let e = 0; e < r; e += 1) {
|
|
148
|
-
let a = n[e], o = n[(e - 1 + r) % r], c = i[e];
|
|
149
|
-
if (i[(e - 1 + r) % r] !== c) {
|
|
150
|
-
let e = _(o, a, t);
|
|
151
|
-
s.push(p(e, t, !1));
|
|
152
|
-
}
|
|
153
|
-
s.push(p(a, t, !c));
|
|
154
|
-
}
|
|
155
|
-
return x(s);
|
|
156
|
-
}
|
|
157
|
-
function C(e, t, n, r, i = [0, 0]) {
|
|
158
|
-
return x(y(e).map((e) => t(e, n, r, i)));
|
|
159
|
-
}
|
|
160
|
-
function w(e, { projection: t = "globe", width: n, height: r, center: i = [0, 0] } = {}) {
|
|
161
|
-
if (!e || !n || !r) return "";
|
|
162
|
-
let a = T[t] || T.globe, s = t === "globe" ? o(n, r, i) : null, c = (e) => e.map((e) => t === "globe" ? S(e, s) : C(e, a, n, r, i)).filter(Boolean).join(" ");
|
|
163
|
-
return e.type === "Polygon" ? c(e.coordinates) : e.type === "MultiPolygon" ? e.coordinates.map(c).filter(Boolean).join(" ") : "";
|
|
164
|
-
}
|
|
165
|
-
var T = {
|
|
166
|
-
mercator([e, t], n, r, i) {
|
|
167
|
-
t = Math.max(Math.min(t, 85.05113), -85.05113);
|
|
168
|
-
let [a, o] = i, s = (e - a) * Math.PI / 180, c = n / (2 * Math.PI) * (s + Math.PI), l = (e) => Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 180 / 2)), u = l(85.05113), d = l(-72);
|
|
169
|
-
return [c, (l(t) - u) / (d - u) * r];
|
|
170
|
-
},
|
|
171
|
-
equirectangular([e, t], n, r, i) {
|
|
172
|
-
let [a, o] = i;
|
|
173
|
-
return t = Math.max(Math.min(t, 90), -80), [(e - a + 180) / 360 * n, (90 - (t - o)) / 170 * r];
|
|
174
|
-
},
|
|
175
|
-
robinson([e, t], n, r, i) {
|
|
176
|
-
let a = [
|
|
177
|
-
[1, 0],
|
|
178
|
-
[.9986, .062],
|
|
179
|
-
[.9954, .124],
|
|
180
|
-
[.99, .186],
|
|
181
|
-
[.9822, .248],
|
|
182
|
-
[.973, .31],
|
|
183
|
-
[.96, .372],
|
|
184
|
-
[.9427, .434],
|
|
185
|
-
[.9216, .4958],
|
|
186
|
-
[.8962, .5571],
|
|
187
|
-
[.8679, .6176],
|
|
188
|
-
[.835, .6769],
|
|
189
|
-
[.7986, .7346],
|
|
190
|
-
[.7597, .7903],
|
|
191
|
-
[.7186, .8435],
|
|
192
|
-
[.6732, .8936],
|
|
193
|
-
[.6213, .9394],
|
|
194
|
-
[.5722, .9761],
|
|
195
|
-
[.5322, 1]
|
|
196
|
-
], [o, s] = i;
|
|
197
|
-
e -= o, t = Math.max(-89.9999, Math.min(89.9999, t));
|
|
198
|
-
let c = Math.abs(t), l = Math.floor(c / 5), u = c % 5 / 5, [d, f] = a[l], [p, m] = a[Math.min(l + 1, a.length - 1)], h = d + (p - d) * u, g = f + (m - f) * u, _ = e * Math.PI / 180, v = n / 2 + n / 2 * h * _ / Math.PI, y = r / 2 - r / 2 * Math.sign(t) * g / 1;
|
|
199
|
-
return !Number.isFinite(v) || !Number.isFinite(y) ? [-9999, -9999] : [v, y];
|
|
200
|
-
},
|
|
201
|
-
mollweide([e, t], n, r, i) {
|
|
202
|
-
t = Math.max(Math.min(t, 89.9999), -89.9999);
|
|
203
|
-
let [a] = i, o = (e - a) * Math.PI / 180, s = t * Math.PI / 180, c = s, l = 1, u = 0;
|
|
204
|
-
for (; Math.abs(l) > 1e-10 && u < 10;) l = -(2 * c + Math.sin(2 * c) - Math.PI * Math.sin(s)) / (2 + 2 * Math.cos(2 * c)), c += l, u++;
|
|
205
|
-
isFinite(c) || (c = s > 0 ? Math.PI / 2 : -Math.PI / 2);
|
|
206
|
-
let d = n / (2 * Math.SQRT2), f = (2 * Math.SQRT2 / Math.PI * d * o * Math.cos(c) + 2 * d) / (4.6 * d) * n, p = -d * Math.SQRT2 * Math.sin(c), m = -d * Math.SQRT2, h = d * Math.SQRT2, g = (p - m) / (h - m) * r;
|
|
207
|
-
return [isFinite(f) ? f : 0, isFinite(g) ? g : 0];
|
|
208
|
-
},
|
|
209
|
-
winkelTripel([e, t], n, r, i) {
|
|
210
|
-
let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = s * Math.cos(Math.PI / 6), u = c, d = Math.acos(Math.cos(c) * Math.cos(s / 2)), f = 2 * Math.cos(c) * Math.sin(s / 2) / (Math.sin(d) / d || 1), p = Math.sin(c) / (Math.sin(d) / d || 1);
|
|
211
|
-
return [n / 2 + n / (2 * Math.PI) * (l + f) / 2, r / 2 - r / (2 * Math.PI) * (u + p) / 2];
|
|
212
|
-
},
|
|
213
|
-
aitoff([e, t], n, r, i) {
|
|
214
|
-
Math.sinc || (Math.sinc = function(e) {
|
|
215
|
-
return e === 0 ? 1 : Math.sin(Math.PI * e) / (Math.PI * e);
|
|
216
|
-
});
|
|
217
|
-
let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = Math.acos(Math.cos(c) * Math.cos(s / 2)), u = 0, d = 0;
|
|
218
|
-
return l !== 0 && (u = 2 * Math.cos(c) * Math.sin(s / 2) / Math.sinc(l / Math.PI), d = Math.sin(c) / Math.sinc(l / Math.PI)), u = n / 2 + n / 4 * u, d = r / 2 - r / 2 * d, [u, d];
|
|
219
|
-
},
|
|
220
|
-
hammer([e, t], n, r, i) {
|
|
221
|
-
let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = Math.sqrt(1 + Math.cos(c) * Math.cos(s / 2));
|
|
222
|
-
return [n / 2 + n / 2 * (2 * Math.SQRT2 * Math.cos(c) * Math.sin(s / 2) / l) / 2.8284271247461903, r / 2 - r / 2 * (Math.SQRT2 * Math.sin(c) / l) / 1.4142135623730951];
|
|
223
|
-
},
|
|
224
|
-
bonne([e, t], n, r, i = [0, 0]) {
|
|
225
|
-
let a = 45 * Math.PI / 180, [o, s] = i, c = (e - o) * Math.PI / 180, l = Math.max(Math.min(t, 89.9), -89.9) * Math.PI / 180, u = 1 / Math.tan(a), d = u + a - l, f = d === 0 ? 0 : c * Math.cos(l) / d, p = Math.min(n, r) / 2.6;
|
|
226
|
-
return [n / 2 + p * d * Math.sin(f), r / 2 - p * (u - d * Math.cos(f))];
|
|
227
|
-
},
|
|
228
|
-
sinusoidal([e, t], n, r, i) {
|
|
229
|
-
let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180;
|
|
230
|
-
return [n / 2 + n / (2 * Math.PI) * s * Math.cos(c), r / 2 - r / Math.PI * c];
|
|
231
|
-
},
|
|
232
|
-
gallPeters([e, t], n, r, i) {
|
|
233
|
-
let [a, o] = i;
|
|
234
|
-
return t = Math.max(Math.min(t, 89.9999), -89.9999), [(e - a + 180) / 360 * n, r / 2 - r / Math.PI * Math.sin(t * Math.PI / 180)];
|
|
235
|
-
},
|
|
236
|
-
vanDerGrinten([e, t], n, r, i = [0, 0]) {
|
|
237
|
-
let a = Math.PI, o = Math.PI / 2, s = 1e-6, c = (e - (i[0] || 0)) * a / 180, l = (t - (i[1] || 0)) * a / 180, u = Math.abs(c), d = Math.abs(l), f, p;
|
|
238
|
-
if (d < s) f = c, p = 0;
|
|
239
|
-
else if (u < s || Math.abs(d - o) < s) f = 0, p = Math.sign(l) * a * Math.tan(Math.asin(d / o) / 2);
|
|
240
|
-
else {
|
|
241
|
-
let e = d / o, t = Math.cos(Math.asin(e)), n = .5 * Math.abs(a / c - c / a), r = n * n, i = t / (e + t - 1), s = i * (2 / e - 1), u = s * s, m = u + r, h = i - u, g = r + i;
|
|
242
|
-
f = Math.sign(c) * a * (n * h + Math.sqrt(Math.max(0, r * h * h - m * (i * i - u)))) / m, p = Math.sign(l) * a * (s * g - n * Math.sqrt(Math.max(0, (r + 1) * m - g * g))) / m;
|
|
243
|
-
}
|
|
244
|
-
let m = n / 2 / a * .98, h = n / 2, g = r / 2;
|
|
245
|
-
return [h + f * m, g - p * m];
|
|
246
|
-
},
|
|
247
|
-
globe(e, t, n, r = [0, 0]) {
|
|
248
|
-
return m(e, t, n, r, !1);
|
|
249
|
-
},
|
|
250
|
-
azimuthalEquidistant([e, t], n, r, i = [0, 0]) {
|
|
251
|
-
let a = (e) => e * Math.PI / 180, [o, s] = i, c = a(e - o), l = a(t), u = a(s), d = Math.sin(u) * Math.sin(l) + Math.cos(u) * Math.cos(l) * Math.cos(c), f = Math.acos(Math.max(-1, Math.min(1, d))), p = f === 0 ? 1 : f / Math.sin(f), m = p * Math.cos(l) * Math.sin(c), h = p * (Math.cos(u) * Math.sin(l) - Math.sin(u) * Math.cos(l) * Math.cos(c)), g = Math.min(n, r) / 2 / Math.PI, _ = n / 2, v = r / 2;
|
|
252
|
-
return [_ + m * g, v - h * g];
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
function E(e, t, n, r, i = [0, 0]) {
|
|
256
|
-
if (e === T.globe) return u(n, r);
|
|
257
|
-
let a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
|
|
258
|
-
for (let l of t) {
|
|
259
|
-
let t = l.geometry, u = t.type === "Polygon" ? [t.coordinates] : t.type === "MultiPolygon" ? t.coordinates : [];
|
|
260
|
-
for (let t of u) for (let l of t) for (let [t, u] of l) {
|
|
261
|
-
let [l, d] = e([t, u], n, r, i);
|
|
262
|
-
Number.isFinite(l) && Number.isFinite(d) && (a = Math.min(a, l), s = Math.max(s, l), o = Math.min(o, d), c = Math.max(c, d));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
return !Number.isFinite(a) || !Number.isFinite(o) || !Number.isFinite(s) || !Number.isFinite(c) ? {
|
|
266
|
-
minX: 0,
|
|
267
|
-
minY: 0,
|
|
268
|
-
width: n,
|
|
269
|
-
height: r
|
|
270
|
-
} : {
|
|
271
|
-
minX: Math.floor(a) - 10,
|
|
272
|
-
minY: Math.floor(o) - 10,
|
|
273
|
-
width: Math.ceil(s - a) + 20,
|
|
274
|
-
height: Math.ceil(c - o) + 20
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
function D(e, t, n) {
|
|
278
|
-
let r = e.find((e) => e.properties.admin === t || e.properties.name === t), i = e.find((e) => e.properties.admin === n || e.properties.name === n);
|
|
279
|
-
return r && i && (r.geometry.type === "Polygon" && (r.geometry = {
|
|
280
|
-
type: "MultiPolygon",
|
|
281
|
-
coordinates: [r.geometry.coordinates]
|
|
282
|
-
}), i.geometry.type === "Polygon" ? r.geometry.coordinates.push(i.geometry.coordinates) : i.geometry.type === "MultiPolygon" && r.geometry.coordinates.push(...i.geometry.coordinates), e = e.filter((e) => e.properties.admin !== n && e.properties.name !== n)), e;
|
|
283
|
-
}
|
|
284
|
-
function O(e, t) {
|
|
285
|
-
let n = Array.isArray(t) ? t.map((e) => ({ ...e })) : t.features ? t.features.map((e) => ({ ...e })) : [];
|
|
286
|
-
return e.style.chart.territory.showTaiwanAsPartOfChina && (n = D(n, "China", "Taiwan")), t.type === "FeatureCollection" ? {
|
|
287
|
-
...t,
|
|
288
|
-
features: n
|
|
289
|
-
} : n;
|
|
290
|
-
}
|
|
291
|
-
var k = {
|
|
292
|
-
projections: T,
|
|
293
|
-
getProjectedBounds: E,
|
|
294
|
-
setupTerritories: O,
|
|
295
|
-
simplifyGeoJSON: e,
|
|
296
|
-
geoToPath: w,
|
|
297
|
-
getGlobeMetrics: a,
|
|
298
|
-
getGlobeBounds: u,
|
|
299
|
-
isGlobePointVisible: f
|
|
300
|
-
};
|
|
301
|
-
//#endregion
|
|
302
|
-
export { k as t };
|