@primeui/vue-chart 0.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +1 -0
- package/dist/Chart.parts.d.ts +39 -0
- package/dist/Chart.vue.d.ts +27 -0
- package/dist/ChartCanvas.mjs +14 -0
- package/dist/ChartCanvas.render.spec.d.ts +1 -0
- package/dist/ChartCanvas.vue.d.ts +23 -0
- package/dist/ChartStacked.spec.d.ts +1 -0
- package/dist/ChartSvg.axes.spec.d.ts +1 -0
- package/dist/ChartSvg.context.spec.d.ts +1 -0
- package/dist/ChartSvg.customizations.spec.d.ts +1 -0
- package/dist/ChartSvg.features.spec.d.ts +1 -0
- package/dist/ChartSvg.legend.spec.d.ts +1 -0
- package/dist/ChartSvg.mjs +14 -0
- package/dist/ChartSvg.registration.spec.d.ts +1 -0
- package/dist/ChartSvg.render.spec.d.ts +1 -0
- package/dist/ChartSvg.vue.d.ts +23 -0
- package/dist/_test/fixtures.d.ts +34 -0
- package/dist/bundle-discipline.spec.d.ts +1 -0
- package/dist/chunk-2D3PWFR2.mjs +214 -0
- package/dist/chunk-32XIRBZ7.mjs +87 -0
- package/dist/chunk-372K2BMN.mjs +1476 -0
- package/dist/chunk-42J32DPD.mjs +70 -0
- package/dist/chunk-44BAFHPK.mjs +51 -0
- package/dist/chunk-4CRHCZV3.mjs +142 -0
- package/dist/chunk-4NJ2PSHV.mjs +230 -0
- package/dist/chunk-4THCGGER.mjs +53 -0
- package/dist/chunk-4UVPCLJ7.mjs +70 -0
- package/dist/chunk-54DLUFIA.mjs +96 -0
- package/dist/chunk-56NMBNNX.mjs +52 -0
- package/dist/chunk-5DWO3G33.mjs +276 -0
- package/dist/chunk-5FTUGKPC.mjs +167 -0
- package/dist/chunk-5SRBQVU5.mjs +6 -0
- package/dist/chunk-62NGBLQ7.mjs +28 -0
- package/dist/chunk-644ROAHU.mjs +362 -0
- package/dist/chunk-6S4JMPKC.mjs +55 -0
- package/dist/chunk-72KINEJ6.mjs +52 -0
- package/dist/chunk-7P6ASYW6.mjs +7 -0
- package/dist/chunk-AAX7FOW3.mjs +210 -0
- package/dist/chunk-AUI5R4DA.mjs +84 -0
- package/dist/chunk-CDXF6ZTL.mjs +50 -0
- package/dist/chunk-CQHNYT2V.mjs +1692 -0
- package/dist/chunk-DLUFOM5K.mjs +218 -0
- package/dist/chunk-DOOXGOOB.mjs +123 -0
- package/dist/chunk-DYVFVVTO.mjs +97 -0
- package/dist/chunk-E2U4W5FW.mjs +288 -0
- package/dist/chunk-E4ROAOPT.mjs +291 -0
- package/dist/chunk-FFBK7Q3W.mjs +91 -0
- package/dist/chunk-FQTWLAVA.mjs +23 -0
- package/dist/chunk-FZ3PZ66C.mjs +12 -0
- package/dist/chunk-GA4VV5V4.mjs +21 -0
- package/dist/chunk-GFC24374.mjs +244 -0
- package/dist/chunk-GX2MK6VT.mjs +255 -0
- package/dist/chunk-HANSF33Z.mjs +169 -0
- package/dist/chunk-HTZVV6VV.mjs +550 -0
- package/dist/chunk-J2P5JBHC.mjs +26 -0
- package/dist/chunk-J43KLCZF.mjs +10 -0
- package/dist/chunk-JKK3D33U.mjs +64 -0
- package/dist/chunk-K326BBF7.mjs +276 -0
- package/dist/chunk-KOWFD2AE.mjs +72 -0
- package/dist/chunk-LD57I4SY.mjs +5 -0
- package/dist/chunk-MDA22SIZ.mjs +29 -0
- package/dist/chunk-NLXOJSKK.mjs +727 -0
- package/dist/chunk-O6L3PNFC.mjs +49 -0
- package/dist/chunk-PJVOZSPF.mjs +55 -0
- package/dist/chunk-PQV55JYI.mjs +38 -0
- package/dist/chunk-PSSXPTLQ.mjs +210 -0
- package/dist/chunk-RQURY2H3.mjs +40 -0
- package/dist/chunk-RRHYGSK6.mjs +29 -0
- package/dist/chunk-RSAZ7V5Z.mjs +42 -0
- package/dist/chunk-RSTIA3KM.mjs +41 -0
- package/dist/chunk-TEOO4OLV.mjs +6 -0
- package/dist/chunk-TIV2FI4S.mjs +53 -0
- package/dist/chunk-UO27BCRL.mjs +86 -0
- package/dist/chunk-VWABO23U.mjs +143 -0
- package/dist/chunk-W5M3BR6N.mjs +26 -0
- package/dist/chunk-WA735Y26.mjs +101 -0
- package/dist/chunk-WKSQR6L5.mjs +247 -0
- package/dist/chunk-WYV2MHP6.mjs +34 -0
- package/dist/chunk-XBDNMPF7.mjs +87 -0
- package/dist/chunk-YGHWUR7K.mjs +45 -0
- package/dist/chunk-YRKAI2R2.mjs +151 -0
- package/dist/chunk-ZHFL3RYO.mjs +228 -0
- package/dist/chunk-ZNINPVG7.mjs +30 -0
- package/dist/chunk-ZRCOVQQM.mjs +47 -0
- package/dist/components/charts/ChartBar.mjs +13 -0
- package/dist/components/charts/ChartBar.vue.d.ts +11 -0
- package/dist/components/charts/ChartCandlestick.mjs +11 -0
- package/dist/components/charts/ChartCandlestick.vue.d.ts +11 -0
- package/dist/components/charts/ChartHeatmap.mjs +11 -0
- package/dist/components/charts/ChartHeatmap.vue.d.ts +11 -0
- package/dist/components/charts/ChartLine.mjs +11 -0
- package/dist/components/charts/ChartLine.vue.d.ts +11 -0
- package/dist/components/charts/ChartPie.mjs +11 -0
- package/dist/components/charts/ChartPie.vue.d.ts +15 -0
- package/dist/components/charts/ChartPolar.mjs +11 -0
- package/dist/components/charts/ChartPolar.vue.d.ts +11 -0
- package/dist/components/charts/ChartRadar.mjs +11 -0
- package/dist/components/charts/ChartRadar.vue.d.ts +11 -0
- package/dist/components/charts/ChartScatter.mjs +11 -0
- package/dist/components/charts/ChartScatter.vue.d.ts +11 -0
- package/dist/components/charts/ChartTreemap.mjs +10 -0
- package/dist/components/charts/ChartTreemap.vue.d.ts +15 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/containers/ChartDecimation.mjs +6 -0
- package/dist/components/containers/ChartDecimation.vue.d.ts +29 -0
- package/dist/components/containers/ChartGroup.mjs +4 -0
- package/dist/components/containers/ChartGroup.vue.d.ts +13 -0
- package/dist/components/containers/ChartOverlap.mjs +5 -0
- package/dist/components/containers/ChartOverlap.vue.d.ts +13 -0
- package/dist/components/containers/ChartRange.mjs +6 -0
- package/dist/components/containers/ChartRange.vue.d.ts +13 -0
- package/dist/components/containers/ChartStacked.mjs +6 -0
- package/dist/components/containers/ChartStacked.vue.d.ts +21 -0
- package/dist/components/containers/ChartWaterfall.mjs +5 -0
- package/dist/components/containers/ChartWaterfall.vue.d.ts +17 -0
- package/dist/components/containers/keys.d.ts +5 -0
- package/dist/components/customizations/ChartAccessibility.mjs +9 -0
- package/dist/components/customizations/ChartAccessibility.vue.d.ts +28 -0
- package/dist/components/customizations/ChartAnnotation.mjs +5 -0
- package/dist/components/customizations/ChartAnnotation.vue.d.ts +8 -0
- package/dist/components/customizations/ChartAxisCategory.mjs +3 -0
- package/dist/components/customizations/ChartAxisCategory.vue.d.ts +4 -0
- package/dist/components/customizations/ChartAxisGroup.mjs +3 -0
- package/dist/components/customizations/ChartAxisGroup.vue.d.ts +14 -0
- package/dist/components/customizations/ChartBreadcrumb.mjs +6 -0
- package/dist/components/customizations/ChartBreadcrumb.vue.d.ts +15 -0
- package/dist/components/customizations/ChartCaption.mjs +9 -0
- package/dist/components/customizations/ChartCaption.vue.d.ts +4 -0
- package/dist/components/customizations/ChartColorLegend.mjs +9 -0
- package/dist/components/customizations/ChartColorLegend.vue.d.ts +47 -0
- package/dist/components/customizations/ChartDataLabels.mjs +9 -0
- package/dist/components/customizations/ChartDataLabels.vue.d.ts +53 -0
- package/dist/components/customizations/ChartExportMenu.mjs +9 -0
- package/dist/components/customizations/ChartExportMenu.vue.d.ts +29 -0
- package/dist/components/customizations/ChartHover.mjs +9 -0
- package/dist/components/customizations/ChartHover.vue.d.ts +4 -0
- package/dist/components/customizations/ChartLegend.mjs +9 -0
- package/dist/components/customizations/ChartLegend.vue.d.ts +7 -0
- package/dist/components/customizations/ChartNavigator.mjs +10 -0
- package/dist/components/customizations/ChartNavigator.vue.d.ts +4 -0
- package/dist/components/customizations/ChartReferenceBand.mjs +5 -0
- package/dist/components/customizations/ChartReferenceBand.vue.d.ts +4 -0
- package/dist/components/customizations/ChartReferenceLine.mjs +5 -0
- package/dist/components/customizations/ChartReferenceLine.vue.d.ts +4 -0
- package/dist/components/customizations/ChartResponsive.mjs +9 -0
- package/dist/components/customizations/ChartResponsive.vue.d.ts +12 -0
- package/dist/components/customizations/ChartTitle.mjs +9 -0
- package/dist/components/customizations/ChartTitle.vue.d.ts +4 -0
- package/dist/components/customizations/ChartTooltip.mjs +9 -0
- package/dist/components/customizations/ChartTooltip.vue.d.ts +6 -0
- package/dist/components/customizations/ChartXAxis.mjs +10 -0
- package/dist/components/customizations/ChartXAxis.vue.d.ts +24 -0
- package/dist/components/customizations/ChartYAxis.mjs +10 -0
- package/dist/components/customizations/ChartYAxis.vue.d.ts +23 -0
- package/dist/components/customizations/ChartZoom.mjs +9 -0
- package/dist/components/customizations/ChartZoom.vue.d.ts +4 -0
- package/dist/components/customizations/axisGroupKeys.d.ts +8 -0
- package/dist/components/customizations/index.d.ts +20 -0
- package/dist/components/items/ChartItem.mjs +3 -0
- package/dist/components/items/ChartItem.vue.d.ts +4 -0
- package/dist/components/items/ChartTreemapGroup.mjs +5 -0
- package/dist/components/items/ChartTreemapGroup.vue.d.ts +11 -0
- package/dist/components/items/index.d.ts +1 -0
- package/dist/components/renderers/CartesianRenderer.mjs +9 -0
- package/dist/components/renderers/CartesianRenderer.vue.d.ts +66 -0
- package/dist/components/renderers/ColorLegendRenderer.mjs +2 -0
- package/dist/components/renderers/ColorLegendRenderer.vue.d.ts +15 -0
- package/dist/components/renderers/LegendRenderer.mjs +3 -0
- package/dist/components/renderers/LegendRenderer.vue.d.ts +20 -0
- package/dist/components/renderers/NavigatorRenderer.mjs +5 -0
- package/dist/components/renderers/NavigatorRenderer.vue.d.ts +16 -0
- package/dist/components/renderers/RadialRenderer.mjs +9 -0
- package/dist/components/renderers/RadialRenderer.vue.d.ts +39 -0
- package/dist/components/renderers/RectRenderer.mjs +9 -0
- package/dist/components/renderers/RectRenderer.vue.d.ts +32 -0
- package/dist/components/renderers/TooltipRenderer.mjs +4 -0
- package/dist/components/renderers/TooltipRenderer.vue.d.ts +11 -0
- package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -0
- package/dist/components/renderers/layers/BarLayerCanvas.vue.d.ts +3 -0
- package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -0
- package/dist/components/renderers/layers/BarLayerSvg.vue.d.ts +3 -0
- package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -0
- package/dist/components/renderers/layers/CandlestickLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -0
- package/dist/components/renderers/layers/HeatmapLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/LineLayer.mjs +9 -0
- package/dist/components/renderers/layers/LineLayer.vue.d.ts +3 -0
- package/dist/components/renderers/layers/PieLayer.mjs +9 -0
- package/dist/components/renderers/layers/PieLayer.vue.d.ts +12 -0
- package/dist/components/renderers/layers/PolarLayer.mjs +9 -0
- package/dist/components/renderers/layers/PolarLayer.vue.d.ts +16 -0
- package/dist/components/renderers/layers/RadarLayer.mjs +9 -0
- package/dist/components/renderers/layers/RadarLayer.vue.d.ts +16 -0
- package/dist/components/renderers/layers/ScatterLayer.mjs +9 -0
- package/dist/components/renderers/layers/ScatterLayer.vue.d.ts +3 -0
- package/dist/composables/index.d.ts +35 -0
- package/dist/composables/useAnimationProps.d.ts +21 -0
- package/dist/composables/useAxisComponentBase.d.ts +11 -0
- package/dist/composables/useAxisRegistration.d.ts +7 -0
- package/dist/composables/useAxisTransition.d.ts +6 -0
- package/dist/composables/useBarLayer.d.ts +9 -0
- package/dist/composables/useBarRenderer.canvas.d.ts +2 -0
- package/dist/composables/useBarRenderer.svg.d.ts +2 -0
- package/dist/composables/useBarRendererBase.d.ts +3 -0
- package/dist/composables/useCandlestickRenderer.d.ts +2 -0
- package/dist/composables/useCartesianAnimation.d.ts +2 -0
- package/dist/composables/useCartesianFrame.d.ts +72 -0
- package/dist/composables/useCartesianLayout.d.ts +3 -0
- package/dist/composables/useChartContext.d.ts +40 -0
- package/dist/composables/useChartLayers.d.ts +31 -0
- package/dist/composables/useChartRefreshHook.d.ts +1 -0
- package/dist/composables/useChartSync.d.ts +2 -0
- package/dist/composables/useChartSyncCoordinator.d.ts +23 -0
- package/dist/composables/useControllerLifecycle.d.ts +18 -0
- package/dist/composables/useCustomizationRegistration.d.ts +18 -0
- package/dist/composables/useDatasetAnimationContext.d.ts +14 -0
- package/dist/composables/useDatasetRegistration.d.ts +6 -0
- package/dist/composables/useDrilldownState.d.ts +3 -0
- package/dist/composables/useFamilyRenderers.d.ts +10 -0
- package/dist/composables/useFamilyRenderers.spec.d.ts +1 -0
- package/dist/composables/useHeatmapRenderer.d.ts +2 -0
- package/dist/composables/useItemCollector.d.ts +2 -0
- package/dist/composables/useKeyboardController.d.ts +8 -0
- package/dist/composables/useKeyboardNavigation.d.ts +2 -0
- package/dist/composables/useLineRenderer.d.ts +2 -0
- package/dist/composables/useNavigatorRenderer.d.ts +7 -0
- package/dist/composables/usePieRenderer.d.ts +2 -0
- package/dist/composables/usePolarRenderer.d.ts +2 -0
- package/dist/composables/usePropertyAnimations.d.ts +4 -0
- package/dist/composables/useRadarRenderer.d.ts +2 -0
- package/dist/composables/useRadialFrame.d.ts +39 -0
- package/dist/composables/useResponsiveConfig.d.ts +8 -0
- package/dist/composables/useResponsiveDimensions.d.ts +2 -0
- package/dist/composables/useScatterRenderer.d.ts +2 -0
- package/dist/composables/useTreemapRenderer.d.ts +2 -0
- package/dist/composables/useZoomController.d.ts +9 -0
- package/dist/composables/useZoomPan.d.ts +2 -0
- package/dist/context/ChartContext.d.ts +21 -0
- package/dist/context/index.d.ts +4 -0
- package/dist/context/keys.d.ts +52 -0
- package/dist/context/syncKeys.d.ts +5 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.mjs +67 -0
- package/dist/namespace.d.ts +1 -0
- package/dist/namespace.mjs +112 -0
- package/dist/release-date.d.ts +11 -0
- package/dist/types/animation.types.d.ts +38 -0
- package/dist/types/axes.types.d.ts +27 -0
- package/dist/types/axisComponentBase.types.d.ts +5 -0
- package/dist/types/axisGroup.types.d.ts +1 -0
- package/dist/types/bar.types.d.ts +42 -0
- package/dist/types/breadcrumb.types.d.ts +12 -0
- package/dist/types/candlestick.types.d.ts +41 -0
- package/dist/types/canvas.types.d.ts +5 -0
- package/dist/types/caption.types.d.ts +8 -0
- package/dist/types/cartesian.types.d.ts +22 -0
- package/dist/types/chart.types.d.ts +51 -0
- package/dist/types/heatmap.types.d.ts +58 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/item.types.d.ts +25 -0
- package/dist/types/keyboard.types.d.ts +24 -0
- package/dist/types/layout.types.d.ts +35 -0
- package/dist/types/legend.types.d.ts +13 -0
- package/dist/types/line.types.d.ts +64 -0
- package/dist/types/pie.types.d.ts +49 -0
- package/dist/types/polar.types.d.ts +63 -0
- package/dist/types/radar.types.d.ts +56 -0
- package/dist/types/responsiveDimensions.types.d.ts +16 -0
- package/dist/types/scatter.types.d.ts +50 -0
- package/dist/types/svg.types.d.ts +44 -0
- package/dist/types/tooltip.types.d.ts +6 -0
- package/dist/types/treemap.types.d.ts +50 -0
- package/dist/types/zoom.types.d.ts +45 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/styles.d.ts +10 -0
- package/package.json +63 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { useTreemapRenderer, usePropertyAnimations } from './chunk-CQHNYT2V.mjs';
|
|
2
|
+
import { useChartMethods, useChartState, useChartHover } from './chunk-HANSF33Z.mjs';
|
|
3
|
+
import { defineComponent, computed, toRef, shallowRef, onUnmounted, unref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
|
|
4
|
+
import { AnimatedPropertyStore, AnimationRegistry } from '@primeui/chart-core';
|
|
5
|
+
|
|
6
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "RectRenderer",
|
|
8
|
+
props: {
|
|
9
|
+
chartArea: {},
|
|
10
|
+
width: {},
|
|
11
|
+
height: {},
|
|
12
|
+
canvasEl: {},
|
|
13
|
+
drilldownState: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props, { expose: __expose }) {
|
|
16
|
+
const VNodeRenderer = defineComponent({
|
|
17
|
+
props: { node: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
} },
|
|
21
|
+
render() {
|
|
22
|
+
return this.node;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const props = __props;
|
|
26
|
+
const methods = useChartMethods();
|
|
27
|
+
const state = useChartState();
|
|
28
|
+
const hoverCtx = useChartHover();
|
|
29
|
+
const treemap = useTreemapRenderer({
|
|
30
|
+
chartArea: computed(() => props.chartArea),
|
|
31
|
+
renderer: methods.renderer,
|
|
32
|
+
canvasEl: toRef(props, "canvasEl"),
|
|
33
|
+
datasets: computed(() => state.value.datasets),
|
|
34
|
+
features: computed(() => state.value.features),
|
|
35
|
+
datasetVisibility: computed(() => state.value.datasetVisibility),
|
|
36
|
+
hover: computed(() => hoverCtx.value.hover),
|
|
37
|
+
width: computed(() => props.width),
|
|
38
|
+
height: computed(() => props.height),
|
|
39
|
+
chartId: methods.chartId,
|
|
40
|
+
drilldownState: props.drilldownState,
|
|
41
|
+
globalFont: methods.font,
|
|
42
|
+
theme: computed(() => methods.theme)
|
|
43
|
+
});
|
|
44
|
+
function hitTest(x, y) {
|
|
45
|
+
return treemap.hitTest(x, y);
|
|
46
|
+
}
|
|
47
|
+
function handleDrilldownClick(hit) {
|
|
48
|
+
return treemap.handleDrilldownClick(hit);
|
|
49
|
+
}
|
|
50
|
+
function prepareDrillOut() {
|
|
51
|
+
treemap.prepareDrillOut();
|
|
52
|
+
}
|
|
53
|
+
function updateHoverOverlay(hit) {
|
|
54
|
+
treemap.updateHoverOverlay(hit);
|
|
55
|
+
}
|
|
56
|
+
function getColorScaleInfo() {
|
|
57
|
+
return treemap.getColorScaleInfo();
|
|
58
|
+
}
|
|
59
|
+
const setWrapperRef = (el) => {
|
|
60
|
+
treemap.wrapperRef.value = el;
|
|
61
|
+
};
|
|
62
|
+
const setGroupRef = (el) => {
|
|
63
|
+
treemap.groupRef.value = el;
|
|
64
|
+
};
|
|
65
|
+
const setOverlayRef = (el) => {
|
|
66
|
+
treemap.overlayRef.value = el;
|
|
67
|
+
};
|
|
68
|
+
function getPlotArea() {
|
|
69
|
+
return props.chartArea ?? null;
|
|
70
|
+
}
|
|
71
|
+
function getPointPosition(datasetId, index) {
|
|
72
|
+
return treemap.getPointPosition(datasetId, index);
|
|
73
|
+
}
|
|
74
|
+
const mergedPropertyAnimations = computed(() => {
|
|
75
|
+
const f = state.value.features;
|
|
76
|
+
const animProps = f.get("animation")?.props;
|
|
77
|
+
if (animProps?.enabled === false) {
|
|
78
|
+
return void 0;
|
|
79
|
+
}
|
|
80
|
+
const merged = [];
|
|
81
|
+
if (animProps?.propertyAnimations) merged.push(...animProps.propertyAnimations);
|
|
82
|
+
f.forEach((entry, key) => {
|
|
83
|
+
if (typeof key !== "string" || !key.startsWith("animation:")) return;
|
|
84
|
+
const p = entry.props;
|
|
85
|
+
if (p.propertyAnimations) merged.push(...p.propertyAnimations);
|
|
86
|
+
});
|
|
87
|
+
if (!merged.length) {
|
|
88
|
+
return void 0;
|
|
89
|
+
}
|
|
90
|
+
return merged;
|
|
91
|
+
});
|
|
92
|
+
const animStoreRef = shallowRef(new AnimatedPropertyStore());
|
|
93
|
+
const animRegistry = new AnimationRegistry();
|
|
94
|
+
const propertyAnimatableControllers = [];
|
|
95
|
+
for (const candidate of [treemap]) {
|
|
96
|
+
const partial = candidate;
|
|
97
|
+
if (typeof partial.applyPropertyAnimations === "function" && typeof partial.renderFrameCycle === "function") {
|
|
98
|
+
propertyAnimatableControllers.push(partial);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
animRegistry.setRepaintCallback(() => {
|
|
102
|
+
const store = animStoreRef.value;
|
|
103
|
+
if (!store) return;
|
|
104
|
+
for (const c of propertyAnimatableControllers) c.applyPropertyAnimations(store);
|
|
105
|
+
});
|
|
106
|
+
function onPropertyComplete() {
|
|
107
|
+
for (const c of propertyAnimatableControllers) c.renderFrameCycle();
|
|
108
|
+
}
|
|
109
|
+
usePropertyAnimations(mergedPropertyAnimations, animRegistry, animStoreRef.value, onPropertyComplete);
|
|
110
|
+
onUnmounted(() => {
|
|
111
|
+
animRegistry.destroy();
|
|
112
|
+
animStoreRef.value?.destroy();
|
|
113
|
+
animStoreRef.value = null;
|
|
114
|
+
});
|
|
115
|
+
__expose({
|
|
116
|
+
hitTest,
|
|
117
|
+
handleDrilldownClick,
|
|
118
|
+
prepareDrillOut,
|
|
119
|
+
updateHoverOverlay,
|
|
120
|
+
getColorScaleInfo,
|
|
121
|
+
getPlotArea,
|
|
122
|
+
getPointPosition
|
|
123
|
+
});
|
|
124
|
+
return (_ctx, _cache) => {
|
|
125
|
+
return unref(methods).renderer === "svg" ? (openBlock(), createElementBlock("g", {
|
|
126
|
+
key: 0,
|
|
127
|
+
ref: setWrapperRef
|
|
128
|
+
}, [
|
|
129
|
+
createElementVNode("g", { ref: setGroupRef }),
|
|
130
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treemap).svgContent.value, (el) => {
|
|
131
|
+
return openBlock(), createBlock(unref(VNodeRenderer), {
|
|
132
|
+
key: el.key ?? el.props?.key,
|
|
133
|
+
node: el
|
|
134
|
+
}, null, 8, ["node"]);
|
|
135
|
+
}), 128)),
|
|
136
|
+
createElementVNode("g", { ref: setOverlayRef })
|
|
137
|
+
])) : createCommentVNode("", true);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var RectRenderer_default = _sfc_main;
|
|
142
|
+
|
|
143
|
+
export { RectRenderer_default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useChartMethods } from './chunk-HANSF33Z.mjs';
|
|
2
|
+
import { defineComponent, onMounted, watch, onUnmounted, renderSlot } from 'vue';
|
|
3
|
+
|
|
4
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ChartWaterfall",
|
|
6
|
+
props: { totalField: {} },
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const props = __props;
|
|
9
|
+
const methods = useChartMethods();
|
|
10
|
+
onMounted(() => {
|
|
11
|
+
methods.registerCustomization("waterfall", { totalField: props.totalField });
|
|
12
|
+
});
|
|
13
|
+
watch(() => props.totalField, (totalField) => {
|
|
14
|
+
methods.registerCustomization("waterfall", { totalField });
|
|
15
|
+
});
|
|
16
|
+
onUnmounted(() => {
|
|
17
|
+
methods.unregisterCustomization("waterfall");
|
|
18
|
+
});
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return renderSlot(_ctx.$slots, "default");
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var ChartWaterfall_default = _sfc_main;
|
|
25
|
+
|
|
26
|
+
export { ChartWaterfall_default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AXIS_GROUP_DEPTH_KEY, AXIS_GROUP_COLLECTOR_KEY, AXIS_GROUP_REGISTRY_KEY } from './chunk-5SRBQVU5.mjs';
|
|
2
|
+
import { defineComponent, inject, provide, ref, watch, onMounted, onUnmounted, renderSlot } from 'vue';
|
|
3
|
+
|
|
4
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ChartAxisGroup",
|
|
6
|
+
props: {
|
|
7
|
+
render: { type: Function },
|
|
8
|
+
label: {},
|
|
9
|
+
range: {},
|
|
10
|
+
labelStyle: {},
|
|
11
|
+
bracket: { type: [Boolean, Object] },
|
|
12
|
+
separator: { type: [Boolean, Object] },
|
|
13
|
+
fill: { type: [Boolean, Object] },
|
|
14
|
+
tickSeparator: { type: [Boolean, Object] }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const parentDepth = inject(AXIS_GROUP_DEPTH_KEY, -1);
|
|
19
|
+
const depth = parentDepth + 1;
|
|
20
|
+
provide(AXIS_GROUP_DEPTH_KEY, depth);
|
|
21
|
+
const categoryValues = ref([]);
|
|
22
|
+
const categoryCollector = {
|
|
23
|
+
addValue: (value) => {
|
|
24
|
+
if (!categoryValues.value.includes(value)) {
|
|
25
|
+
categoryValues.value = [...categoryValues.value, value];
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
removeValue: (value) => {
|
|
29
|
+
categoryValues.value = categoryValues.value.filter((v) => v !== value);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
provide(AXIS_GROUP_COLLECTOR_KEY, categoryCollector);
|
|
33
|
+
const parentCollector = inject(AXIS_GROUP_COLLECTOR_KEY, null);
|
|
34
|
+
const axisRegistry = inject(AXIS_GROUP_REGISTRY_KEY, null);
|
|
35
|
+
function buildDefinition() {
|
|
36
|
+
const def = {
|
|
37
|
+
label: props.label,
|
|
38
|
+
depth,
|
|
39
|
+
labelStyle: props.labelStyle,
|
|
40
|
+
bracket: props.bracket,
|
|
41
|
+
separator: props.separator,
|
|
42
|
+
fill: props.fill,
|
|
43
|
+
tickSeparator: props.tickSeparator,
|
|
44
|
+
render: props.render
|
|
45
|
+
};
|
|
46
|
+
if (props.range) {
|
|
47
|
+
def.range = props.range;
|
|
48
|
+
return def;
|
|
49
|
+
}
|
|
50
|
+
const vals = categoryValues.value;
|
|
51
|
+
const allNumeric = vals.length > 0 && vals.every((v) => typeof v === "number");
|
|
52
|
+
if (allNumeric && vals.length >= 2) {
|
|
53
|
+
const nums = vals;
|
|
54
|
+
def.range = [Math.min(...nums), Math.max(...nums)];
|
|
55
|
+
} else if (vals.length > 0) {
|
|
56
|
+
def.categories = vals.map(String);
|
|
57
|
+
}
|
|
58
|
+
return def;
|
|
59
|
+
}
|
|
60
|
+
let mounted = false;
|
|
61
|
+
watch(categoryValues, (newVals, oldVals) => {
|
|
62
|
+
if (parentCollector) {
|
|
63
|
+
if (oldVals) {
|
|
64
|
+
for (const v of oldVals) {
|
|
65
|
+
parentCollector.removeValue(v);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
for (const v of newVals) {
|
|
69
|
+
parentCollector.addValue(v);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (mounted && axisRegistry) {
|
|
73
|
+
axisRegistry.addGroup(buildDefinition());
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
let mountTimerId;
|
|
77
|
+
onMounted(() => {
|
|
78
|
+
mountTimerId = setTimeout(() => {
|
|
79
|
+
mounted = true;
|
|
80
|
+
if (axisRegistry) {
|
|
81
|
+
axisRegistry.addGroup(buildDefinition());
|
|
82
|
+
}
|
|
83
|
+
}, 0);
|
|
84
|
+
});
|
|
85
|
+
onUnmounted(() => {
|
|
86
|
+
clearTimeout(mountTimerId);
|
|
87
|
+
axisRegistry?.removeGroup(props.label);
|
|
88
|
+
if (parentCollector) {
|
|
89
|
+
for (const v of categoryValues.value) {
|
|
90
|
+
parentCollector.removeValue(v);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
return (_ctx, _cache) => {
|
|
95
|
+
return renderSlot(_ctx.$slots, "default");
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
var ChartAxisGroup_default = _sfc_main;
|
|
100
|
+
|
|
101
|
+
export { ChartAxisGroup_default };
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { CandlestickLayer_default } from './chunk-FFBK7Q3W.mjs';
|
|
2
|
+
import { CartesianRenderer_default } from './chunk-HTZVV6VV.mjs';
|
|
3
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
|
|
4
|
+
import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
|
|
5
|
+
import { defineComponent, useSlots, computed, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
6
|
+
import { candlestickRenderer } from '@primeui/chart-core';
|
|
7
|
+
|
|
8
|
+
var candlestickIdCounter = 0;
|
|
9
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "ChartCandlestick",
|
|
11
|
+
props: {
|
|
12
|
+
id: {},
|
|
13
|
+
name: {},
|
|
14
|
+
data: {},
|
|
15
|
+
timeField: { type: [
|
|
16
|
+
String,
|
|
17
|
+
Function,
|
|
18
|
+
Number,
|
|
19
|
+
Array
|
|
20
|
+
] },
|
|
21
|
+
openField: { type: [
|
|
22
|
+
String,
|
|
23
|
+
Function,
|
|
24
|
+
Number,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
highField: { type: [
|
|
28
|
+
String,
|
|
29
|
+
Function,
|
|
30
|
+
Number,
|
|
31
|
+
Array
|
|
32
|
+
] },
|
|
33
|
+
lowField: { type: [
|
|
34
|
+
String,
|
|
35
|
+
Function,
|
|
36
|
+
Number,
|
|
37
|
+
Array
|
|
38
|
+
] },
|
|
39
|
+
closeField: { type: [
|
|
40
|
+
String,
|
|
41
|
+
Function,
|
|
42
|
+
Number,
|
|
43
|
+
Array
|
|
44
|
+
] },
|
|
45
|
+
variant: {},
|
|
46
|
+
upColor: {},
|
|
47
|
+
downColor: {},
|
|
48
|
+
neutralColor: {},
|
|
49
|
+
color: { type: [
|
|
50
|
+
String,
|
|
51
|
+
Function,
|
|
52
|
+
Array
|
|
53
|
+
] },
|
|
54
|
+
barWidthRatio: {},
|
|
55
|
+
wickStrokeWidth: { type: [
|
|
56
|
+
String,
|
|
57
|
+
Function,
|
|
58
|
+
Number,
|
|
59
|
+
Array
|
|
60
|
+
] },
|
|
61
|
+
hoverColor: { type: [
|
|
62
|
+
String,
|
|
63
|
+
Function,
|
|
64
|
+
Array
|
|
65
|
+
] },
|
|
66
|
+
hoverBorderColor: { type: [
|
|
67
|
+
String,
|
|
68
|
+
Function,
|
|
69
|
+
Array
|
|
70
|
+
] },
|
|
71
|
+
xAxisId: {},
|
|
72
|
+
yAxisId: {},
|
|
73
|
+
order: {},
|
|
74
|
+
keyField: {},
|
|
75
|
+
borderUpColor: {},
|
|
76
|
+
borderDownColor: {},
|
|
77
|
+
borderNeutralColor: {},
|
|
78
|
+
borderColor: { type: [
|
|
79
|
+
String,
|
|
80
|
+
Function,
|
|
81
|
+
Array
|
|
82
|
+
] },
|
|
83
|
+
borderStrokeWidth: { type: [
|
|
84
|
+
String,
|
|
85
|
+
Function,
|
|
86
|
+
Number,
|
|
87
|
+
Array
|
|
88
|
+
] },
|
|
89
|
+
borderDash: { type: [
|
|
90
|
+
Array,
|
|
91
|
+
String,
|
|
92
|
+
Function
|
|
93
|
+
] },
|
|
94
|
+
borderDashOffset: { type: [
|
|
95
|
+
String,
|
|
96
|
+
Function,
|
|
97
|
+
Number,
|
|
98
|
+
Array
|
|
99
|
+
] },
|
|
100
|
+
borderJoinStyle: {},
|
|
101
|
+
borderAlign: {},
|
|
102
|
+
borderRadius: { type: [
|
|
103
|
+
String,
|
|
104
|
+
Function,
|
|
105
|
+
Number,
|
|
106
|
+
Object,
|
|
107
|
+
Array
|
|
108
|
+
] },
|
|
109
|
+
borderSkipped: { type: [
|
|
110
|
+
String,
|
|
111
|
+
Function,
|
|
112
|
+
Boolean,
|
|
113
|
+
Array
|
|
114
|
+
] },
|
|
115
|
+
animations: {}
|
|
116
|
+
},
|
|
117
|
+
setup(__props) {
|
|
118
|
+
useRendererHint("cartesian");
|
|
119
|
+
registerFamilyRenderer("cartesian", CartesianRenderer_default);
|
|
120
|
+
registerChartLayer("candlestick", {
|
|
121
|
+
family: "cartesian",
|
|
122
|
+
frameKind: "grid",
|
|
123
|
+
layer: CandlestickLayer_default,
|
|
124
|
+
axisHints: candlestickRenderer
|
|
125
|
+
});
|
|
126
|
+
const props = __props;
|
|
127
|
+
function generateCandlestickId() {
|
|
128
|
+
return `candlestick-auto-${++candlestickIdCounter}`;
|
|
129
|
+
}
|
|
130
|
+
const slots = useSlots();
|
|
131
|
+
const hasChildren = computed(() => !!slots.default);
|
|
132
|
+
const autoId = props.id || generateCandlestickId();
|
|
133
|
+
useDatasetAnimationRegistration(() => autoId, () => props.animations);
|
|
134
|
+
if (!hasChildren.value) {
|
|
135
|
+
const datasetId = computed(() => autoId);
|
|
136
|
+
const datasetProps = computed(() => ({
|
|
137
|
+
id: autoId,
|
|
138
|
+
data: props.data,
|
|
139
|
+
timeField: props.timeField,
|
|
140
|
+
openField: props.openField,
|
|
141
|
+
highField: props.highField,
|
|
142
|
+
lowField: props.lowField,
|
|
143
|
+
closeField: props.closeField,
|
|
144
|
+
name: props.name,
|
|
145
|
+
variant: props.variant,
|
|
146
|
+
upColor: props.upColor,
|
|
147
|
+
downColor: props.downColor,
|
|
148
|
+
neutralColor: props.neutralColor,
|
|
149
|
+
color: props.color,
|
|
150
|
+
barWidthRatio: props.barWidthRatio,
|
|
151
|
+
wickStrokeWidth: props.wickStrokeWidth,
|
|
152
|
+
xAxisId: props.xAxisId,
|
|
153
|
+
yAxisId: props.yAxisId,
|
|
154
|
+
order: props.order,
|
|
155
|
+
borderColor: props.borderColor,
|
|
156
|
+
borderStrokeWidth: props.borderStrokeWidth,
|
|
157
|
+
borderDash: props.borderDash,
|
|
158
|
+
borderDashOffset: props.borderDashOffset,
|
|
159
|
+
borderJoinStyle: props.borderJoinStyle,
|
|
160
|
+
borderAlign: props.borderAlign,
|
|
161
|
+
borderRadius: props.borderRadius,
|
|
162
|
+
borderUpColor: props.borderUpColor,
|
|
163
|
+
borderDownColor: props.borderDownColor,
|
|
164
|
+
borderNeutralColor: props.borderNeutralColor
|
|
165
|
+
}));
|
|
166
|
+
useDatasetRegistration({
|
|
167
|
+
id: datasetId,
|
|
168
|
+
type: "candlestick",
|
|
169
|
+
props: datasetProps
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
if (hasChildren.value) {
|
|
173
|
+
let buildSynthesizedProps2 = function() {
|
|
174
|
+
const items = getItems();
|
|
175
|
+
return {
|
|
176
|
+
id: autoId,
|
|
177
|
+
data: items,
|
|
178
|
+
timeField: (ctx) => ctx.datum.time ?? ctx.datum.label ?? "",
|
|
179
|
+
openField: (ctx) => ctx.datum.open ?? 0,
|
|
180
|
+
highField: (ctx) => ctx.datum.high ?? 0,
|
|
181
|
+
lowField: (ctx) => ctx.datum.low ?? 0,
|
|
182
|
+
closeField: (ctx) => ctx.datum.close ?? 0,
|
|
183
|
+
color: (ctx) => ctx.datum.color,
|
|
184
|
+
name: props.name,
|
|
185
|
+
variant: props.variant,
|
|
186
|
+
upColor: props.upColor,
|
|
187
|
+
downColor: props.downColor,
|
|
188
|
+
neutralColor: props.neutralColor,
|
|
189
|
+
barWidthRatio: props.barWidthRatio,
|
|
190
|
+
wickStrokeWidth: props.wickStrokeWidth,
|
|
191
|
+
xAxisId: props.xAxisId,
|
|
192
|
+
yAxisId: props.yAxisId,
|
|
193
|
+
order: props.order,
|
|
194
|
+
borderColor: props.borderColor,
|
|
195
|
+
borderStrokeWidth: props.borderStrokeWidth,
|
|
196
|
+
borderDash: props.borderDash,
|
|
197
|
+
borderDashOffset: props.borderDashOffset,
|
|
198
|
+
borderJoinStyle: props.borderJoinStyle,
|
|
199
|
+
borderAlign: props.borderAlign,
|
|
200
|
+
borderRadius: props.borderRadius,
|
|
201
|
+
borderUpColor: props.borderUpColor,
|
|
202
|
+
borderDownColor: props.borderDownColor,
|
|
203
|
+
borderNeutralColor: props.borderNeutralColor
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
const methods = useChartMethods();
|
|
207
|
+
const { getItems } = useItemCollector();
|
|
208
|
+
let isRegistered = false;
|
|
209
|
+
onMounted(() => {
|
|
210
|
+
methods.registerDataset(autoId, "candlestick", buildSynthesizedProps2());
|
|
211
|
+
isRegistered = true;
|
|
212
|
+
});
|
|
213
|
+
watch([
|
|
214
|
+
() => props.name,
|
|
215
|
+
() => props.variant,
|
|
216
|
+
() => props.upColor,
|
|
217
|
+
() => props.downColor,
|
|
218
|
+
() => props.neutralColor,
|
|
219
|
+
() => props.color,
|
|
220
|
+
() => props.order,
|
|
221
|
+
() => props.borderColor,
|
|
222
|
+
() => props.borderStrokeWidth,
|
|
223
|
+
() => props.borderDash,
|
|
224
|
+
() => props.borderDashOffset,
|
|
225
|
+
() => props.borderJoinStyle,
|
|
226
|
+
() => props.borderAlign,
|
|
227
|
+
() => props.borderRadius,
|
|
228
|
+
() => props.borderUpColor,
|
|
229
|
+
() => props.borderDownColor,
|
|
230
|
+
() => props.borderNeutralColor
|
|
231
|
+
], () => {
|
|
232
|
+
if (!isRegistered) return;
|
|
233
|
+
methods.updateDataset(autoId, buildSynthesizedProps2());
|
|
234
|
+
}, { flush: "post" });
|
|
235
|
+
onUnmounted(() => {
|
|
236
|
+
methods.unregisterDataset(autoId);
|
|
237
|
+
isRegistered = false;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
return (_ctx, _cache) => {
|
|
241
|
+
return hasChildren.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
var ChartCandlestick_default = _sfc_main;
|
|
246
|
+
|
|
247
|
+
export { ChartCandlestick_default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useCustomizationRegistration } from './chunk-PQV55JYI.mjs';
|
|
2
|
+
import { defineComponent, computed, renderSlot } from 'vue';
|
|
3
|
+
|
|
4
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ChartColorLegend",
|
|
6
|
+
props: {
|
|
7
|
+
position: {},
|
|
8
|
+
colorScale: {},
|
|
9
|
+
colorRange: {},
|
|
10
|
+
height: {},
|
|
11
|
+
width: {},
|
|
12
|
+
borderRadius: {},
|
|
13
|
+
ticks: {},
|
|
14
|
+
formatLabel: { type: Function },
|
|
15
|
+
steps: {},
|
|
16
|
+
labelSize: {},
|
|
17
|
+
labelColor: {},
|
|
18
|
+
showIndicator: { type: Boolean },
|
|
19
|
+
indicatorColor: {},
|
|
20
|
+
reservedSize: {},
|
|
21
|
+
render: { type: Function }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const registrationProps = computed(() => ({ ...props }));
|
|
26
|
+
useCustomizationRegistration("colorLegend", registrationProps);
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return renderSlot(_ctx.$slots, "default");
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
var ChartColorLegend_default = _sfc_main;
|
|
33
|
+
|
|
34
|
+
export { ChartColorLegend_default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AXIS_GROUP_REGISTRY_KEY } from './chunk-5SRBQVU5.mjs';
|
|
2
|
+
import { useAxisComponentBase } from './chunk-CQHNYT2V.mjs';
|
|
3
|
+
import { defineComponent, useSlots, computed, provide, renderSlot } from 'vue';
|
|
4
|
+
|
|
5
|
+
var __default__ = { inheritAttrs: false };
|
|
6
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...__default__,
|
|
8
|
+
__name: "ChartYAxis",
|
|
9
|
+
props: {
|
|
10
|
+
position: { default: "left" },
|
|
11
|
+
render: {},
|
|
12
|
+
renderTick: {},
|
|
13
|
+
id: {},
|
|
14
|
+
type: {},
|
|
15
|
+
min: {},
|
|
16
|
+
max: {},
|
|
17
|
+
label: {},
|
|
18
|
+
labelFontSize: {},
|
|
19
|
+
titleGap: {},
|
|
20
|
+
tickCount: {},
|
|
21
|
+
tickFormat: {},
|
|
22
|
+
tickRotation: {},
|
|
23
|
+
tickStyle: {},
|
|
24
|
+
color: {},
|
|
25
|
+
gridLines: { type: Boolean },
|
|
26
|
+
gridColor: {},
|
|
27
|
+
gridStyle: {},
|
|
28
|
+
gridStrokeWidth: {},
|
|
29
|
+
gridShape: {},
|
|
30
|
+
category: {},
|
|
31
|
+
gridOpacity: {},
|
|
32
|
+
tickInterval: {},
|
|
33
|
+
minorGridLines: { type: Boolean },
|
|
34
|
+
minorGridColor: {},
|
|
35
|
+
minorGridStrokeWidth: {},
|
|
36
|
+
minorGridOpacity: {},
|
|
37
|
+
minorGridCount: {},
|
|
38
|
+
minorGridStyle: {},
|
|
39
|
+
alternateGridColor: {},
|
|
40
|
+
alternateGridOpacity: {},
|
|
41
|
+
visible: { type: Boolean },
|
|
42
|
+
scale: {},
|
|
43
|
+
timezone: {},
|
|
44
|
+
dateTimeFormats: {},
|
|
45
|
+
tickConfig: {},
|
|
46
|
+
minUnit: {},
|
|
47
|
+
gapless: { type: Boolean },
|
|
48
|
+
grouping: {},
|
|
49
|
+
autoRotate: { type: Boolean },
|
|
50
|
+
autoRotateAngle: {},
|
|
51
|
+
labelMinSpacing: {},
|
|
52
|
+
autoSkip: { type: Boolean },
|
|
53
|
+
minGridDistance: {},
|
|
54
|
+
startFromZero: { type: Boolean },
|
|
55
|
+
reversed: { type: Boolean },
|
|
56
|
+
softMin: {},
|
|
57
|
+
softMax: {},
|
|
58
|
+
tickPosition: {},
|
|
59
|
+
minorTicks: { type: Boolean },
|
|
60
|
+
minorTickLength: {},
|
|
61
|
+
minorTickColor: {},
|
|
62
|
+
minorTickStrokeWidth: {},
|
|
63
|
+
showFirstLabel: { type: Boolean },
|
|
64
|
+
showLastLabel: { type: Boolean },
|
|
65
|
+
showLine: { type: Boolean },
|
|
66
|
+
showTicks: { type: Boolean },
|
|
67
|
+
showLabels: { type: Boolean },
|
|
68
|
+
chartPaddingMin: {},
|
|
69
|
+
chartPaddingMax: {}
|
|
70
|
+
},
|
|
71
|
+
setup(__props) {
|
|
72
|
+
const props = __props;
|
|
73
|
+
const slots = useSlots();
|
|
74
|
+
const hasChildren = !!slots.default;
|
|
75
|
+
const axisId = computed(() => props.id ?? props.category ?? props.position);
|
|
76
|
+
const { collectorValue } = useAxisComponentBase("y", axisId, props, hasChildren);
|
|
77
|
+
if (hasChildren) {
|
|
78
|
+
provide(AXIS_GROUP_REGISTRY_KEY, collectorValue);
|
|
79
|
+
}
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return renderSlot(_ctx.$slots, "default");
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var ChartYAxis_default = _sfc_main;
|
|
86
|
+
|
|
87
|
+
export { ChartYAxis_default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useCustomizationRegistration } from './chunk-PQV55JYI.mjs';
|
|
2
|
+
import { defineComponent, computed } from 'vue';
|
|
3
|
+
|
|
4
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ChartTooltip",
|
|
6
|
+
props: {
|
|
7
|
+
render: {},
|
|
8
|
+
mode: {},
|
|
9
|
+
snap: {},
|
|
10
|
+
crosshair: { type: [Boolean, Object] },
|
|
11
|
+
position: {},
|
|
12
|
+
offsetX: {},
|
|
13
|
+
offsetY: {},
|
|
14
|
+
followCursor: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
showDelay: {},
|
|
19
|
+
hideDelay: {},
|
|
20
|
+
valueFormatter: {}
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const registrationProps = computed(() => ({
|
|
25
|
+
mode: props.mode,
|
|
26
|
+
snap: props.snap,
|
|
27
|
+
render: props.render,
|
|
28
|
+
crosshair: props.crosshair,
|
|
29
|
+
position: props.position,
|
|
30
|
+
offsetX: props.offsetX,
|
|
31
|
+
offsetY: props.offsetY,
|
|
32
|
+
followCursor: props.followCursor,
|
|
33
|
+
showDelay: props.showDelay,
|
|
34
|
+
hideDelay: props.hideDelay,
|
|
35
|
+
valueFormatter: props.valueFormatter
|
|
36
|
+
}));
|
|
37
|
+
useCustomizationRegistration("tooltip", registrationProps);
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var ChartTooltip_default = _sfc_main;
|
|
44
|
+
|
|
45
|
+
export { ChartTooltip_default };
|