@primeui/vue-chart 1.0.0-rc.1 → 1.0.0-rc.3
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/ChartCanvas.mjs +10 -10
- package/dist/ChartSvg.mjs +10 -10
- package/dist/RadarReference.spec.d.ts +1 -0
- package/dist/chunks/{chunk-QONZ3SCZ.mjs → chunk-2FGCWBQK.mjs} +1 -1
- package/dist/chunks/{chunk-4SLSYRNY.mjs → chunk-2VCCASMY.mjs} +5 -17
- package/dist/chunks/{chunk-IRGQNA5W.mjs → chunk-3ZXBNXFA.mjs} +10 -5
- package/dist/chunks/{chunk-CMJXLIEY.mjs → chunk-4B5OD4TC.mjs} +4 -13
- package/dist/chunks/{chunk-F7EK5D6J.mjs → chunk-4UH6LJNN.mjs} +4 -4
- package/dist/chunks/{chunk-YI3GLQYF.mjs → chunk-5CL32KCS.mjs} +6 -7
- package/dist/chunks/{chunk-GE2Y2FHS.mjs → chunk-6MD43V6R.mjs} +4 -4
- package/dist/chunks/{chunk-5ZLVNQ2L.mjs → chunk-7SY52FXI.mjs} +10 -6
- package/dist/chunks/{chunk-R4AZOPXC.mjs → chunk-AQK6S4DO.mjs} +1 -1
- package/dist/chunks/{chunk-EWDMF46D.mjs → chunk-B3QR3CVR.mjs} +1 -1
- package/dist/chunks/{chunk-UOMQNZMT.mjs → chunk-B7XC2DVN.mjs} +1 -1
- package/dist/chunks/{chunk-CRIB3I3L.mjs → chunk-BC6G3ODW.mjs} +1 -1
- package/dist/chunks/{chunk-YZQS2YBK.mjs → chunk-BVB7G6Y5.mjs} +12 -11
- package/dist/chunks/{chunk-GIDIMIWE.mjs → chunk-D2SPDSXY.mjs} +4 -4
- package/dist/chunks/{chunk-JVH4MDKX.mjs → chunk-D65PFBA5.mjs} +1 -1
- package/dist/chunks/{chunk-MGUGO3RV.mjs → chunk-DKLWPPME.mjs} +10 -0
- package/dist/chunks/{chunk-CGFPDWB4.mjs → chunk-DLRPM3GK.mjs} +1 -1
- package/dist/chunks/{chunk-3DINEX6C.mjs → chunk-DZIZEFTD.mjs} +1 -1
- package/dist/chunks/{chunk-LJZCE7LQ.mjs → chunk-EAHLFHB7.mjs} +58 -19
- package/dist/chunks/{chunk-IFZSHQDZ.mjs → chunk-EDDORION.mjs} +1 -1
- package/dist/chunks/{chunk-QOWKMWNO.mjs → chunk-F72RBTHC.mjs} +27 -5
- package/dist/chunks/{chunk-4Q3QUNX6.mjs → chunk-FGBZ3VPE.mjs} +2 -1
- package/dist/chunks/{chunk-L74BEYTD.mjs → chunk-FZ4TKLHE.mjs} +5 -5
- package/dist/chunks/{chunk-3XOLEGDL.mjs → chunk-G4V4FUNK.mjs} +5 -5
- package/dist/chunks/{chunk-DXKAPWMO.mjs → chunk-G5YSM76C.mjs} +1 -1
- package/dist/chunks/{chunk-3JA5JAHF.mjs → chunk-GRPL343U.mjs} +1 -1
- package/dist/chunks/{chunk-36DHPBYP.mjs → chunk-GV4YAVUN.mjs} +34 -9
- package/dist/chunks/{chunk-GV3CY6CQ.mjs → chunk-HXMG2ZBK.mjs} +1 -1
- package/dist/chunks/{chunk-3PJULFR5.mjs → chunk-IASQF4GU.mjs} +1 -3
- package/dist/chunks/{chunk-WVNDZNMV.mjs → chunk-ISDQNEMO.mjs} +1 -1
- package/dist/chunks/{chunk-TRGN3ZMM.mjs → chunk-JEC4JJ5P.mjs} +4 -30
- package/dist/chunks/{chunk-BSROML7P.mjs → chunk-KCLMHDWJ.mjs} +2 -2
- package/dist/chunks/{chunk-I2BWSDNR.mjs → chunk-KX5GTFS3.mjs} +19 -6
- package/dist/chunks/{chunk-3X27K5XC.mjs → chunk-L7XUBIMC.mjs} +24 -51
- package/dist/chunks/{chunk-2NZ3PUWW.mjs → chunk-LLYJBFOE.mjs} +2 -2
- package/dist/chunks/{chunk-DDRSIMLE.mjs → chunk-LNS6I3ZJ.mjs} +4 -4
- package/dist/chunks/{chunk-PR6MTWPJ.mjs → chunk-LWHQ3RXO.mjs} +1 -1
- package/dist/chunks/{chunk-CW2KYVYO.mjs → chunk-MCIY5P7K.mjs} +4 -4
- package/dist/chunks/{chunk-GLFXRR7N.mjs → chunk-MGNVYHQF.mjs} +53 -8
- package/dist/chunks/{chunk-2TOEQNJ6.mjs → chunk-MX74LV4I.mjs} +1 -1
- package/dist/chunks/{chunk-L73MEG22.mjs → chunk-NFVH44YP.mjs} +1 -3
- package/dist/chunks/{chunk-JPKNWLLP.mjs → chunk-NTTI64AJ.mjs} +8 -4
- package/dist/chunks/{chunk-LP2YESP6.mjs → chunk-OROBUJMJ.mjs} +1 -1
- package/dist/chunks/chunk-P3CYBDPQ.mjs +86 -0
- package/dist/chunks/{chunk-6Z4MZIJI.mjs → chunk-P43UWADF.mjs} +6 -4
- package/dist/chunks/chunk-Q3I4EL3N.mjs +23 -0
- package/dist/chunks/{chunk-HVLFOABV.mjs → chunk-QDCXS7WS.mjs} +3 -8
- package/dist/chunks/{chunk-4EU72IBK.mjs → chunk-QPX2OCOM.mjs} +20 -12
- package/dist/chunks/{chunk-ZLD5VNMP.mjs → chunk-QQGC223F.mjs} +2 -2
- package/dist/chunks/{chunk-ADAGGXFG.mjs → chunk-QWUGZTCV.mjs} +5 -6
- package/dist/chunks/{chunk-OJHEN5FG.mjs → chunk-TAFKOHFX.mjs} +5 -6
- package/dist/chunks/{chunk-HH5FUUXX.mjs → chunk-TLB6ZOL3.mjs} +3 -1
- package/dist/chunks/{chunk-SGLTVJUA.mjs → chunk-UA2J3TWE.mjs} +4 -4
- package/dist/chunks/{chunk-AKMQHU5T.mjs → chunk-V4KRWSEE.mjs} +2 -2
- package/dist/chunks/{chunk-U6X3GVJ3.mjs → chunk-VADMTZLH.mjs} +1 -1
- package/dist/chunks/{chunk-PCBF6FSQ.mjs → chunk-WCUZUBQ5.mjs} +21 -20
- package/dist/chunks/{chunk-ON2FAZTD.mjs → chunk-WHAJ2YDA.mjs} +1 -1
- package/dist/chunks/{chunk-X4NWFK7L.mjs → chunk-WNIMDHP5.mjs} +2 -2
- package/dist/chunks/{chunk-TZ23VBFU.mjs → chunk-XSKNTD24.mjs} +1 -1
- package/dist/chunks/{chunk-HHZFGQN2.mjs → chunk-YPRGZNY6.mjs} +1 -1
- package/dist/chunks/{chunk-UOZFNTVQ.mjs → chunk-YUQRDFQI.mjs} +2 -2
- package/dist/components/charts/ChartBar.mjs +10 -9
- package/dist/components/charts/ChartCandlestick.mjs +8 -7
- package/dist/components/charts/ChartHeatmap.mjs +8 -7
- package/dist/components/charts/ChartLine.mjs +8 -7
- package/dist/components/charts/ChartPie.mjs +8 -7
- package/dist/components/charts/ChartPolar.mjs +8 -8
- package/dist/components/charts/ChartRadar.mjs +8 -8
- package/dist/components/charts/ChartScatter.mjs +8 -7
- package/dist/components/charts/ChartTreemap.mjs +7 -6
- package/dist/components/containers/ChartDecimation.mjs +3 -3
- package/dist/components/containers/ChartGroup.mjs +2 -2
- package/dist/components/containers/ChartOverlap.mjs +3 -3
- package/dist/components/containers/ChartRange.mjs +3 -3
- package/dist/components/containers/ChartStacked.mjs +3 -3
- package/dist/components/containers/ChartWaterfall.mjs +3 -3
- package/dist/components/customizations/ChartAccessibility.mjs +5 -5
- package/dist/components/customizations/ChartAccessibility.vue.d.ts +3 -0
- package/dist/components/customizations/ChartAnnotation.mjs +3 -3
- package/dist/components/customizations/ChartAxisGroup.mjs +1 -1
- package/dist/components/customizations/ChartBreadcrumb.mjs +4 -4
- package/dist/components/customizations/ChartCaption.mjs +5 -5
- package/dist/components/customizations/ChartColorLegend.mjs +5 -5
- package/dist/components/customizations/ChartColorLegend.vue.d.ts +2 -2
- package/dist/components/customizations/ChartDataLabels.mjs +5 -5
- package/dist/components/customizations/ChartDataLabels.vue.d.ts +2 -0
- package/dist/components/customizations/ChartExportMenu.mjs +5 -5
- package/dist/components/customizations/ChartHover.mjs +5 -5
- package/dist/components/customizations/ChartLegend.mjs +5 -5
- package/dist/components/customizations/ChartNavigator.mjs +6 -6
- package/dist/components/customizations/ChartReferenceBand.mjs +3 -3
- package/dist/components/customizations/ChartReferenceLine.mjs +3 -3
- package/dist/components/customizations/ChartResponsive.mjs +5 -5
- package/dist/components/customizations/ChartTitle.mjs +5 -5
- package/dist/components/customizations/ChartTooltip.mjs +5 -5
- package/dist/components/customizations/ChartXAxis.mjs +5 -5
- package/dist/components/customizations/ChartYAxis.mjs +5 -5
- package/dist/components/customizations/ChartZoom.mjs +5 -5
- package/dist/components/items/ChartItem.mjs +2 -2
- package/dist/components/items/ChartTreemapGroup.mjs +3 -3
- package/dist/components/renderers/CartesianRenderer.mjs +6 -5
- package/dist/components/renderers/LegendRenderer.mjs +2 -2
- package/dist/components/renderers/NavigatorRenderer.mjs +3 -3
- package/dist/components/renderers/RadialRenderer.mjs +5 -5
- package/dist/components/renderers/RectRenderer.mjs +6 -5
- package/dist/components/renderers/TooltipRenderer.mjs +3 -3
- package/dist/components/renderers/layers/BarLayerCanvas.mjs +6 -6
- package/dist/components/renderers/layers/BarLayerSvg.mjs +6 -6
- package/dist/components/renderers/layers/CandlestickLayer.mjs +6 -5
- package/dist/components/renderers/layers/HeatmapLayer.mjs +6 -5
- package/dist/components/renderers/layers/LineLayer.mjs +5 -5
- package/dist/components/renderers/layers/PieLayer.mjs +4 -3
- package/dist/components/renderers/layers/PolarLayer.mjs +4 -4
- package/dist/components/renderers/layers/RadarLayer.mjs +4 -4
- package/dist/components/renderers/layers/ScatterLayer.mjs +5 -5
- package/dist/composables/useCartesianFrame.d.ts +3 -0
- package/dist/composables/useResponsiveConfig.d.ts +1 -0
- package/dist/composables/useResponsiveConfig.spec.d.ts +1 -0
- package/dist/context/ChartContext.d.ts +2 -0
- package/dist/context/index.d.ts +2 -2
- package/dist/context/keys.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +61 -61
- package/dist/namespace.mjs +61 -61
- package/dist/release-date.d.ts +1 -1
- package/dist/types/axes.types.d.ts +1 -1
- package/dist/types/heatmap.types.d.ts +3 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/line.types.d.ts +2 -2
- package/dist/types/scatter.types.d.ts +2 -0
- package/dist/types/treemap.types.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/ruleOverrides.d.ts +13 -0
- package/dist/utils/ruleOverrides.spec.d.ts +1 -0
- package/package.json +5 -4
- package/dist/chunks/chunk-JBWL3G7O.mjs +0 -86
- package/dist/chunks/chunk-ZH4A4L6W.mjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useChartMethods } from './chunk-
|
|
2
|
-
import { defineComponent, computed, ref,
|
|
3
|
-
import { resolveNavigatorConfig, calculateNavigatorLayout, configureCanvasHiDPI, renderNavigatorCanvas, HANDLE_WIDTH, GRIP_LINE_GAP, computeNavigatorJump, computeNavigatorJumpY, hitTestNavigator, computeNavigatorPan, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorPanY, computeNavigatorResizeTop, computeNavigatorResizeBottom } from '@primeui/chart-core';
|
|
1
|
+
import { useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
2
|
+
import { defineComponent, computed, ref, watch, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, createCommentVNode, toDisplayString, unref } from 'vue';
|
|
3
|
+
import { resolveNavigatorConfig, calculateNavigatorLayout, configureCanvasHiDPI, renderNavigatorCanvas, HANDLE_WIDTH, GRIP_LINE_GAP, getEasing, computeNavigatorJump, computeNavigatorJumpY, hitTestNavigator, computeNavigatorPan, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorPanY, computeNavigatorResizeTop, computeNavigatorResizeBottom } from '@primeui/chart-core';
|
|
4
4
|
|
|
5
5
|
var _hoisted_1 = ["transform"];
|
|
6
6
|
var _hoisted_2 = [
|
|
@@ -231,7 +231,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
231
|
const data = computed(() => layout.value.data);
|
|
232
232
|
const scales = computed(() => layout.value.scales);
|
|
233
233
|
const paths = computed(() => layout.value.paths);
|
|
234
|
-
const
|
|
234
|
+
const targetSelection = computed(() => layout.value.selection);
|
|
235
|
+
const selection = ref(targetSelection.value);
|
|
235
236
|
const ticks = computed(() => layout.value.ticks);
|
|
236
237
|
const additionalSeries = computed(() => layout.value.allSeries.slice(1));
|
|
237
238
|
const is2DNav = computed(() => data.value?.isNumericAxis ?? false);
|
|
@@ -240,6 +241,43 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
241
|
const gripY2 = computed(() => h.value * 0.7);
|
|
241
242
|
let dragCurrent = null;
|
|
242
243
|
const isDragging = ref(false);
|
|
244
|
+
let selRafId = null;
|
|
245
|
+
function cancelSelAnim() {
|
|
246
|
+
if (selRafId != null) {
|
|
247
|
+
cancelAnimationFrame(selRafId);
|
|
248
|
+
selRafId = null;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
function animateSelectionTo(target) {
|
|
252
|
+
const anim = resolved.value.animation;
|
|
253
|
+
const cur = selection.value;
|
|
254
|
+
if (anim === false || isDragging.value || cur.isZoomed !== target.isZoomed || cur.is2D !== target.is2D) {
|
|
255
|
+
cancelSelAnim();
|
|
256
|
+
selection.value = target;
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
const from = { ...cur };
|
|
260
|
+
const ease = getEasing(anim.easing);
|
|
261
|
+
const dur = Math.max(1, anim.duration);
|
|
262
|
+
const start = performance.now();
|
|
263
|
+
cancelSelAnim();
|
|
264
|
+
const step = (now) => {
|
|
265
|
+
const k = ease(Math.min(1, (now - start) / dur));
|
|
266
|
+
selection.value = {
|
|
267
|
+
...target,
|
|
268
|
+
x: from.x + (target.x - from.x) * k,
|
|
269
|
+
width: from.width + (target.width - from.width) * k,
|
|
270
|
+
y: from.y != null && target.y != null ? from.y + (target.y - from.y) * k : target.y,
|
|
271
|
+
height: from.height != null && target.height != null ? from.height + (target.height - from.height) * k : target.height
|
|
272
|
+
};
|
|
273
|
+
selRafId = (now - start) / dur < 1 ? requestAnimationFrame(step) : null;
|
|
274
|
+
};
|
|
275
|
+
selRafId = requestAnimationFrame(step);
|
|
276
|
+
}
|
|
277
|
+
watch(() => props.zoomState, () => animateSelectionTo(targetSelection.value), { deep: true });
|
|
278
|
+
watch(targetSelection, (next) => {
|
|
279
|
+
if (selRafId == null && !isDragging.value) selection.value = next;
|
|
280
|
+
});
|
|
243
281
|
function beginDrag(type, clientX, clientY, target, pointerId) {
|
|
244
282
|
const horizontal = data.value?.orientation === "horizontal";
|
|
245
283
|
const primary = horizontal ? props.zoomState.y : props.zoomState.x;
|
|
@@ -255,6 +293,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
255
293
|
startMaxY: props.zoomState.y?.max ?? 0
|
|
256
294
|
};
|
|
257
295
|
isDragging.value = true;
|
|
296
|
+
cancelSelAnim();
|
|
297
|
+
selection.value = targetSelection.value;
|
|
258
298
|
window.addEventListener("pointermove", handleWindowPointerMove);
|
|
259
299
|
window.addEventListener("pointerup", handleWindowPointerUp);
|
|
260
300
|
}
|
|
@@ -317,6 +357,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
317
357
|
window.removeEventListener("pointerup", handleWindowPointerUp);
|
|
318
358
|
}
|
|
319
359
|
onBeforeUnmount(() => {
|
|
360
|
+
cancelSelAnim();
|
|
320
361
|
window.removeEventListener("pointermove", handleWindowPointerMove);
|
|
321
362
|
window.removeEventListener("pointerup", handleWindowPointerUp);
|
|
322
363
|
});
|
|
@@ -364,14 +405,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
405
|
canvasRef,
|
|
365
406
|
layout,
|
|
366
407
|
w,
|
|
367
|
-
h
|
|
408
|
+
h,
|
|
409
|
+
selection
|
|
368
410
|
], () => {
|
|
369
411
|
if (props.renderer !== "canvas" || !canvasRef.value) return;
|
|
370
412
|
configureCanvasHiDPI(canvasRef.value, w.value, h.value);
|
|
371
413
|
const ctx = canvasRef.value.getContext("2d");
|
|
372
414
|
if (!ctx) return;
|
|
373
415
|
ctx.clearRect(0, 0, canvasRef.value.width, canvasRef.value.height);
|
|
374
|
-
renderNavigatorCanvas(ctx,
|
|
416
|
+
renderNavigatorCanvas(ctx, {
|
|
417
|
+
...layout.value,
|
|
418
|
+
selection: selection.value
|
|
419
|
+
});
|
|
375
420
|
}, { flush: "post" });
|
|
376
421
|
function handleCanvasPointerDown(e) {
|
|
377
422
|
if (!scales.value || !data.value) return;
|
|
@@ -380,7 +425,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
380
425
|
const rect = e.target.getBoundingClientRect();
|
|
381
426
|
const localX = e.clientX - rect.left;
|
|
382
427
|
const localY = e.clientY - rect.top;
|
|
383
|
-
const zone = hitTestNavigator(localX,
|
|
428
|
+
const zone = hitTestNavigator(localX, targetSelection.value, localY, resolved.value.handleWidth);
|
|
384
429
|
if (!zone) return;
|
|
385
430
|
if (zone === "background") {
|
|
386
431
|
const currentWidth = props.zoomState.x ? props.zoomState.x.max - props.zoomState.x.min : null;
|
|
@@ -410,7 +455,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
410
455
|
const rect = e.target.getBoundingClientRect();
|
|
411
456
|
const localX = e.clientX - rect.left;
|
|
412
457
|
const localY = e.clientY - rect.top;
|
|
413
|
-
const zone = hitTestNavigator(localX,
|
|
458
|
+
const zone = hitTestNavigator(localX, targetSelection.value, localY, resolved.value.handleWidth);
|
|
414
459
|
e.target.style.cursor = zone ? ZONE_CURSORS[zone] : "default";
|
|
415
460
|
}
|
|
416
461
|
return (_ctx, _cache) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useBarLayer, useBarRendererBase } from './chunk-
|
|
1
|
+
import { useBarLayer, useBarRendererBase } from './chunk-V4KRWSEE.mjs';
|
|
2
2
|
import { defineComponent, unref, openBlock, createElementBlock, createCommentVNode } from 'vue';
|
|
3
3
|
import { createBarRendererSvg } from '@primeui/chart-core/series/bar/controller-svg';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITEM_COLLECTOR_KEY } from './chunk-
|
|
1
|
+
import { ITEM_COLLECTOR_KEY } from './chunk-FGBZ3VPE.mjs';
|
|
2
2
|
import { defineComponent, inject, ref, provide, onMounted, onUnmounted, renderSlot } from 'vue';
|
|
3
3
|
import { shallowEqual } from '@primeui/chart-core';
|
|
4
4
|
|
|
@@ -7,7 +7,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
__name: "ChartTreemapGroup",
|
|
8
8
|
props: {
|
|
9
9
|
label: {},
|
|
10
|
-
secondaryLabel: {},
|
|
11
10
|
color: {},
|
|
12
11
|
opacity: {}
|
|
13
12
|
},
|
|
@@ -46,7 +45,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
45
|
const groupIndex = parentCollector.getNextIndex();
|
|
47
46
|
parentCollector.registerItem(groupIndex, {
|
|
48
47
|
category: props.label,
|
|
49
|
-
secondaryLabel: props.secondaryLabel,
|
|
50
48
|
value: 0,
|
|
51
49
|
color: props.color,
|
|
52
50
|
opacity: props.opacity,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerNavigatorRenderer } from './chunk-
|
|
2
|
-
import { useCustomizationRegistration } from './chunk-
|
|
3
|
-
import { NavigatorRenderer_default } from './chunk-
|
|
1
|
+
import { registerNavigatorRenderer } from './chunk-KX5GTFS3.mjs';
|
|
2
|
+
import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
|
|
3
|
+
import { NavigatorRenderer_default } from './chunk-MGNVYHQF.mjs';
|
|
4
4
|
import { defineComponent, getCurrentInstance, computed } from 'vue';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -39,7 +39,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
maskColor: props.maskColor,
|
|
40
40
|
backgroundColor: props.backgroundColor,
|
|
41
41
|
gridColor: props.gridColor,
|
|
42
|
-
labelColor: props.labelColor
|
|
42
|
+
labelColor: props.labelColor,
|
|
43
|
+
handleWidth: props.handleWidth,
|
|
44
|
+
gripLineGap: props.gripLineGap,
|
|
45
|
+
padding: props.padding,
|
|
46
|
+
animation: props.animation
|
|
43
47
|
}));
|
|
44
48
|
useCustomizationRegistration("navigator", registrationProps);
|
|
45
49
|
return (_ctx, _cache) => {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ChartBar_default } from './chunk-FZ4TKLHE.mjs';
|
|
2
|
+
import { ChartTreemap_default } from './chunk-QDCXS7WS.mjs';
|
|
3
|
+
import { ChartScatter_default } from './chunk-UA2J3TWE.mjs';
|
|
4
|
+
import { ChartRadar_default } from './chunk-4UH6LJNN.mjs';
|
|
5
|
+
import { ChartPolar_default } from './chunk-D2SPDSXY.mjs';
|
|
6
|
+
import { ChartPie_default } from './chunk-6MD43V6R.mjs';
|
|
7
|
+
import { ChartLine_default } from './chunk-LNS6I3ZJ.mjs';
|
|
8
|
+
import { ChartHeatmap_default } from './chunk-WCUZUBQ5.mjs';
|
|
9
|
+
import { ChartCandlestick_default } from './chunk-MCIY5P7K.mjs';
|
|
10
|
+
import { ChartAnnotation_default } from './chunk-WHAJ2YDA.mjs';
|
|
11
|
+
import { ChartAccessibility_default } from './chunk-P43UWADF.mjs';
|
|
12
|
+
import { ChartWaterfall_default } from './chunk-HXMG2ZBK.mjs';
|
|
13
|
+
import { ChartStacked_default } from './chunk-ISDQNEMO.mjs';
|
|
14
|
+
import { ChartRange_default } from './chunk-YPRGZNY6.mjs';
|
|
15
|
+
import { ChartOverlap_default } from './chunk-AQK6S4DO.mjs';
|
|
16
|
+
import { ChartGroup_default } from './chunk-GRPL343U.mjs';
|
|
17
|
+
import { ChartDecimation_default } from './chunk-XSKNTD24.mjs';
|
|
18
|
+
import { ChartHover_default } from './chunk-DZIZEFTD.mjs';
|
|
19
|
+
import { ChartExportMenu_default } from './chunk-WNIMDHP5.mjs';
|
|
20
|
+
import { ChartDataLabels_default } from './chunk-TLB6ZOL3.mjs';
|
|
21
|
+
import { ChartColorLegend_default } from './chunk-DLRPM3GK.mjs';
|
|
22
|
+
import { ChartCaption_default } from './chunk-YUQRDFQI.mjs';
|
|
23
|
+
import { ChartBreadcrumb_default } from './chunk-2FGCWBQK.mjs';
|
|
24
|
+
import { ChartAxisGroup_default } from './chunk-DKLWPPME.mjs';
|
|
25
|
+
import { ChartAxisCategory_default } from './chunk-QJCMFAHB.mjs';
|
|
26
|
+
import { ChartXAxis_default } from './chunk-G5YSM76C.mjs';
|
|
27
|
+
import { ChartTooltip_default } from './chunk-OROBUJMJ.mjs';
|
|
28
|
+
import { ChartTitle_default } from './chunk-LLYJBFOE.mjs';
|
|
29
|
+
import { ChartResponsive_default } from './chunk-B7XC2DVN.mjs';
|
|
30
|
+
import { ChartReferenceLine_default } from './chunk-BC6G3ODW.mjs';
|
|
31
|
+
import { ChartReferenceBand_default } from './chunk-VADMTZLH.mjs';
|
|
32
|
+
import { ChartNavigator_default } from './chunk-NTTI64AJ.mjs';
|
|
33
|
+
import { ChartLegend_default } from './chunk-2VCCASMY.mjs';
|
|
34
|
+
import { ChartTreemapGroup_default } from './chunk-NFVH44YP.mjs';
|
|
35
|
+
import { ChartItem_default } from './chunk-IASQF4GU.mjs';
|
|
36
|
+
import { ChartZoom_default } from './chunk-KCLMHDWJ.mjs';
|
|
37
|
+
import { ChartYAxis_default } from './chunk-D65PFBA5.mjs';
|
|
38
|
+
import { ChartSvg_default } from './chunk-B3QR3CVR.mjs';
|
|
39
|
+
import { ChartCanvas_default } from './chunk-LWHQ3RXO.mjs';
|
|
40
|
+
import { __export } from './chunk-VIHIR2BE.mjs';
|
|
41
|
+
|
|
42
|
+
// src/Chart.parts.ts
|
|
43
|
+
var Chart_parts_exports = {};
|
|
44
|
+
__export(Chart_parts_exports, {
|
|
45
|
+
Accessibility: () => ChartAccessibility_default,
|
|
46
|
+
Annotation: () => ChartAnnotation_default,
|
|
47
|
+
AxisCategory: () => ChartAxisCategory_default,
|
|
48
|
+
AxisGroup: () => ChartAxisGroup_default,
|
|
49
|
+
Bar: () => ChartBar_default,
|
|
50
|
+
Breadcrumb: () => ChartBreadcrumb_default,
|
|
51
|
+
Candlestick: () => ChartCandlestick_default,
|
|
52
|
+
Canvas: () => ChartCanvas_default,
|
|
53
|
+
Caption: () => ChartCaption_default,
|
|
54
|
+
ColorLegend: () => ChartColorLegend_default,
|
|
55
|
+
DataLabels: () => ChartDataLabels_default,
|
|
56
|
+
Decimation: () => ChartDecimation_default,
|
|
57
|
+
ExportMenu: () => ChartExportMenu_default,
|
|
58
|
+
Group: () => ChartGroup_default,
|
|
59
|
+
Heatmap: () => ChartHeatmap_default,
|
|
60
|
+
Hover: () => ChartHover_default,
|
|
61
|
+
Item: () => ChartItem_default,
|
|
62
|
+
Legend: () => ChartLegend_default,
|
|
63
|
+
Line: () => ChartLine_default,
|
|
64
|
+
Navigator: () => ChartNavigator_default,
|
|
65
|
+
Overlap: () => ChartOverlap_default,
|
|
66
|
+
Pie: () => ChartPie_default,
|
|
67
|
+
Polar: () => ChartPolar_default,
|
|
68
|
+
Radar: () => ChartRadar_default,
|
|
69
|
+
Range: () => ChartRange_default,
|
|
70
|
+
ReferenceBand: () => ChartReferenceBand_default,
|
|
71
|
+
ReferenceLine: () => ChartReferenceLine_default,
|
|
72
|
+
Responsive: () => ChartResponsive_default,
|
|
73
|
+
Scatter: () => ChartScatter_default,
|
|
74
|
+
Stacked: () => ChartStacked_default,
|
|
75
|
+
Svg: () => ChartSvg_default,
|
|
76
|
+
Title: () => ChartTitle_default,
|
|
77
|
+
Tooltip: () => ChartTooltip_default,
|
|
78
|
+
Treemap: () => ChartTreemap_default,
|
|
79
|
+
TreemapGroup: () => ChartTreemapGroup_default,
|
|
80
|
+
Waterfall: () => ChartWaterfall_default,
|
|
81
|
+
XAxis: () => ChartXAxis_default,
|
|
82
|
+
YAxis: () => ChartYAxis_default,
|
|
83
|
+
Zoom: () => ChartZoom_default
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export { Chart_parts_exports };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerKeyboardController } from './chunk-
|
|
2
|
-
import { useCustomizationRegistration } from './chunk-
|
|
1
|
+
import { registerKeyboardController } from './chunk-KX5GTFS3.mjs';
|
|
2
|
+
import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
|
|
3
3
|
import { defineComponent, getCurrentInstance, computed } from 'vue';
|
|
4
4
|
import { KeyboardNavigationController } from '@primeui/chart-core';
|
|
5
5
|
|
|
@@ -16,7 +16,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
pointDescriptionFormatter: { type: Function },
|
|
17
17
|
seriesDescriptionFormatter: { type: Function },
|
|
18
18
|
landmarkVerbosity: {},
|
|
19
|
-
keyboardNavigation: {}
|
|
19
|
+
keyboardNavigation: {},
|
|
20
|
+
patterns: { type: Boolean }
|
|
20
21
|
},
|
|
21
22
|
setup(__props) {
|
|
22
23
|
registerKeyboardController(KeyboardNavigationController);
|
|
@@ -35,7 +36,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
36
|
pointDescriptionFormatter: props.pointDescriptionFormatter,
|
|
36
37
|
seriesDescriptionFormatter: props.seriesDescriptionFormatter,
|
|
37
38
|
landmarkVerbosity: props.landmarkVerbosity,
|
|
38
|
-
keyboardNavigation: props.keyboardNavigation
|
|
39
|
+
keyboardNavigation: props.keyboardNavigation,
|
|
40
|
+
...props.patterns ? { patterns: true } : {}
|
|
39
41
|
};
|
|
40
42
|
});
|
|
41
43
|
useCustomizationRegistration("accessibility", registrationProps);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LEGEND_ITEM_BASE_STYLE as LEGEND_ITEM_BASE_STYLE$1, TOOLTIP_BASE_STYLE as TOOLTIP_BASE_STYLE$1, TOOLTIP_DEFAULT_STYLE as TOOLTIP_DEFAULT_STYLE$1 } from '@primeui/chart-core';
|
|
2
|
+
export { normalizeDataLabelConfig } from '@primeui/chart-core';
|
|
3
|
+
|
|
4
|
+
// src/utils/styles.ts
|
|
5
|
+
var LEGEND_ITEM_BASE_STYLE = LEGEND_ITEM_BASE_STYLE$1;
|
|
6
|
+
var TOOLTIP_BASE_STYLE = TOOLTIP_BASE_STYLE$1;
|
|
7
|
+
var TOOLTIP_DEFAULT_STYLE = TOOLTIP_DEFAULT_STYLE$1;
|
|
8
|
+
|
|
9
|
+
// src/utils/ruleOverrides.ts
|
|
10
|
+
function applyDataLabelRuleOverrides(base, ruleOverrides) {
|
|
11
|
+
const dlOverride = ruleOverrides?.dataLabels;
|
|
12
|
+
if (!dlOverride) return base;
|
|
13
|
+
const merged = new Map(base);
|
|
14
|
+
if (dlOverride.enabled === false) {
|
|
15
|
+
merged.delete("dataLabels");
|
|
16
|
+
} else {
|
|
17
|
+
const existing = merged.get("dataLabels");
|
|
18
|
+
if (existing) merged.set("dataLabels", { ...existing, props: { ...existing.props, ...dlOverride } });
|
|
19
|
+
}
|
|
20
|
+
return merged;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { LEGEND_ITEM_BASE_STYLE, TOOLTIP_BASE_STYLE, TOOLTIP_DEFAULT_STYLE, applyDataLabelRuleOverrides };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RectRenderer_default } from './chunk-
|
|
2
|
-
import { registerFamilyRenderer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
3
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
1
|
+
import { RectRenderer_default } from './chunk-3ZXBNXFA.mjs';
|
|
2
|
+
import { registerFamilyRenderer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
|
|
3
|
+
import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
4
4
|
import { defineComponent, useSlots, computed, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
var treemapIdCounter = 0;
|
|
@@ -29,7 +29,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
default: void 0
|
|
30
30
|
},
|
|
31
31
|
groupLabelHeight: {},
|
|
32
|
-
secondaryLabelField: {},
|
|
33
32
|
levels: {},
|
|
34
33
|
rootLabel: {},
|
|
35
34
|
drilldown: {
|
|
@@ -88,7 +87,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
87
|
groupPadding: props.groupPadding,
|
|
89
88
|
labelMinSize: props.labelMinSize,
|
|
90
89
|
groupLabelHeight: props.groupLabelHeight,
|
|
91
|
-
secondaryLabelField: props.secondaryLabelField,
|
|
92
90
|
levels: props.levels,
|
|
93
91
|
rootLabel: props.rootLabel,
|
|
94
92
|
drilldownMode: props.drilldownMode,
|
|
@@ -121,7 +119,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
121
119
|
let buildSynthesizedProps2 = function() {
|
|
122
120
|
const items = getItems();
|
|
123
121
|
const hasHierarchy = items.some((item) => item.nodeId != null);
|
|
124
|
-
const hasSecondaryLabel = items.some((item) => item.secondaryLabel != null);
|
|
125
122
|
const p = {
|
|
126
123
|
id: autoId,
|
|
127
124
|
data: items,
|
|
@@ -139,7 +136,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
136
|
groupPadding: props.groupPadding,
|
|
140
137
|
labelMinSize: props.labelMinSize,
|
|
141
138
|
groupLabelHeight: props.groupLabelHeight,
|
|
142
|
-
secondaryLabelField: hasSecondaryLabel ? "secondaryLabel" : props.secondaryLabelField,
|
|
143
139
|
levels: props.levels,
|
|
144
140
|
rootLabel: props.rootLabel,
|
|
145
141
|
drilldownMode: props.drilldownMode,
|
|
@@ -180,7 +176,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
176
|
() => props.labelMinSize,
|
|
181
177
|
() => props.showGroupLabel,
|
|
182
178
|
() => props.groupLabelHeight,
|
|
183
|
-
() => props.secondaryLabelField,
|
|
184
179
|
() => props.levels,
|
|
185
180
|
() => props.rootLabel,
|
|
186
181
|
() => props.drilldown,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { LegendRenderer_default } from './chunk-
|
|
1
|
+
import { LegendRenderer_default } from './chunk-JEC4JJ5P.mjs';
|
|
2
2
|
import { ColorLegendRenderer_default } from './chunk-S4YR4YK7.mjs';
|
|
3
|
-
import { TooltipRenderer_default } from './chunk-
|
|
4
|
-
import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-
|
|
5
|
-
import { NavigatorRenderer_default } from './chunk-
|
|
6
|
-
import { provideChartContext } from './chunk-
|
|
3
|
+
import { TooltipRenderer_default } from './chunk-GV4YAVUN.mjs';
|
|
4
|
+
import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-KX5GTFS3.mjs';
|
|
5
|
+
import { NavigatorRenderer_default } from './chunk-MGNVYHQF.mjs';
|
|
6
|
+
import { provideChartContext } from './chunk-F72RBTHC.mjs';
|
|
7
7
|
import { CHART_SYNC_INFO_KEY } from './chunk-H4HLHGUW.mjs';
|
|
8
|
-
import { TOOLTIP_CONTEXT_KEY } from './chunk-
|
|
9
|
-
import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, shallowRef, nextTick,
|
|
8
|
+
import { CHART_RULE_OVERRIDES_KEY, TOOLTIP_CONTEXT_KEY } from './chunk-FGBZ3VPE.mjs';
|
|
9
|
+
import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, provide, shallowRef, nextTick, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, unref, createBlock, resolveDynamicComponent, withCtx, createTextVNode, Fragment, renderList, withModifiers } from 'vue';
|
|
10
10
|
import { resolveTheme, ChartStateController, buildChartDataTable, themeToCssVars, configureCanvasHiDPI, computeCrosshairLayout, buildAnnotationContext, DEFAULT_FONT_FAMILY, renderAnnotationsCanvas, resolveDirFromElement, observeDocumentDir } from '@primeui/chart-core';
|
|
11
11
|
import { verifyLicense } from '@primeui/license-manager';
|
|
12
12
|
|
|
13
13
|
// src/release-date.ts
|
|
14
|
-
var RELEASE_DATE = "2026-
|
|
14
|
+
var RELEASE_DATE = "2026-07-15";
|
|
15
15
|
|
|
16
16
|
// src/Chart.vue
|
|
17
17
|
var _hoisted_1 = {
|
|
@@ -337,7 +337,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
337
337
|
const measuredCaptionHeight = ref(0);
|
|
338
338
|
const drilldownState = useDrilldownState(computed(() => state.value.datasets));
|
|
339
339
|
const responsiveFeature = computed(() => state.value.features.get("responsive")?.props);
|
|
340
|
-
const { defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
|
|
340
|
+
const { tier, defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
|
|
341
|
+
provide(CHART_RULE_OVERRIDES_KEY, ruleOverrides);
|
|
341
342
|
const chartStateController = new ChartStateController();
|
|
342
343
|
onBeforeUnmount(() => chartStateController.destroy());
|
|
343
344
|
const coreState = computed(() => chartStateController.compute({
|
|
@@ -696,12 +697,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
696
697
|
cursorValueText: tooltip.value.cursorFormattedValue ?? "",
|
|
697
698
|
barValueText: tooltip.value.formattedValue ?? String(tooltip.value.value),
|
|
698
699
|
barColor: tooltip.value.color,
|
|
699
|
-
allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0
|
|
700
|
+
allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0,
|
|
701
|
+
// Value→value domain (bar/line/scatter): the independent-axis badge follows the
|
|
702
|
+
// cursor instead of snapping to the datum, matching the value-axis badge.
|
|
703
|
+
independentAxisIsValue: tooltip.value.independentIsCategory === false
|
|
700
704
|
});
|
|
701
705
|
});
|
|
702
706
|
const annotations = computed(() => state.value.annotations);
|
|
703
707
|
const annotationContext = computed(() => {
|
|
704
708
|
if (!annotations.value?.size || !chartArea.value) return null;
|
|
709
|
+
if (ruleOverrides.value.annotations?.enabled === false) return null;
|
|
705
710
|
const outerArea = chartArea.value;
|
|
706
711
|
let xScale = null;
|
|
707
712
|
let yScale = null;
|
|
@@ -745,7 +750,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
745
750
|
datasetId: hover.datasetId,
|
|
746
751
|
index: hover.index
|
|
747
752
|
} : null,
|
|
748
|
-
theme: methods.theme
|
|
753
|
+
theme: methods.theme,
|
|
754
|
+
tier: tier.value,
|
|
755
|
+
defaults: adaptive.value,
|
|
756
|
+
ruleOverrides: ruleOverrides.value
|
|
749
757
|
});
|
|
750
758
|
});
|
|
751
759
|
const annotationClipRect = computed(() => {
|
|
@@ -1392,7 +1400,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1392
1400
|
}, toDisplayString(label.text), 9, _hoisted_31)]);
|
|
1393
1401
|
}), 128))
|
|
1394
1402
|
], 8, _hoisted_18)) : createCommentVNode("", true),
|
|
1395
|
-
tooltipConfig.value && !
|
|
1403
|
+
tooltipConfig.value && !crosshairData.value && !unref(zoomIsDragging) && unref(ruleOverrides).tooltip?.enabled !== false ? (openBlock(), createBlock(TooltipRenderer_default, {
|
|
1396
1404
|
key: 12,
|
|
1397
1405
|
"tooltip-config": tooltipConfig.value,
|
|
1398
1406
|
rtl: resolvedDir.value === "rtl",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useChartMethods } from './chunk-
|
|
2
|
-
import { CHART_REFRESH_NONCE_KEY } from './chunk-
|
|
1
|
+
import { useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
2
|
+
import { CHART_REFRESH_NONCE_KEY } from './chunk-FGBZ3VPE.mjs';
|
|
3
3
|
import { shallowEqual } from '@primeui/chart-core';
|
|
4
4
|
import { inject, ref, watch, shallowRef, onMounted, onUnmounted } from 'vue';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
|
|
2
|
-
import { normalizeDataLabelConfig } from './chunk-
|
|
2
|
+
import { applyDataLabelRuleOverrides, normalizeDataLabelConfig } from './chunk-Q3I4EL3N.mjs';
|
|
3
3
|
import { useRadialFrameRegistration } from './chunk-7EZEZMGG.mjs';
|
|
4
|
-
import { useChartMethods, useChartState, useChartHover } from './chunk-
|
|
4
|
+
import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
|
|
5
5
|
import { defineComponent, computed, toRef, unref, openBlock, createElementBlock, createCommentVNode, ref, watch } from 'vue';
|
|
6
6
|
import { createPolarRendererCanvas } from '@primeui/chart-core/series/polar/controller-canvas';
|
|
7
7
|
import { createPolarRendererSvg } from '@primeui/chart-core/series/polar/controller-svg';
|
|
@@ -59,9 +59,7 @@ function usePolarRenderer(options) {
|
|
|
59
59
|
});
|
|
60
60
|
const { applyPropertyAnimations, renderFrameCycle } = useControllerLifecycle(controller);
|
|
61
61
|
function hitTest(x, y) {
|
|
62
|
-
|
|
63
|
-
if (!hit) return null;
|
|
64
|
-
return { datasetId: hit.datasetId, index: hit.index, label: hit.label, value: hit.value, color: hit.color };
|
|
62
|
+
return controller.hitTest(x, y);
|
|
65
63
|
}
|
|
66
64
|
function getPointPosition(datasetId, index) {
|
|
67
65
|
const layout = layoutRef.value;
|
|
@@ -120,12 +118,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
118
|
const methods = useChartMethods();
|
|
121
119
|
const state = useChartState();
|
|
122
120
|
const hoverCtx = useChartHover();
|
|
121
|
+
const ruleOverrides = useRuleOverrides();
|
|
123
122
|
const polar = usePolarRenderer({
|
|
124
123
|
chartArea: computed(() => props.chartArea),
|
|
125
124
|
renderer: methods.renderer,
|
|
126
125
|
canvasEl: toRef(props, "canvasEl"),
|
|
127
126
|
datasets: computed(() => state.value.datasets),
|
|
128
|
-
features: computed(() => state.value.features),
|
|
127
|
+
features: computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value)),
|
|
129
128
|
hover: computed(() => hoverCtx.value.hover),
|
|
130
129
|
datasetVisibility: computed(() => state.value.datasetVisibility),
|
|
131
130
|
globalFont: methods.font,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
|
|
2
|
-
import { normalizeDataLabelConfig } from './chunk-
|
|
2
|
+
import { applyDataLabelRuleOverrides, normalizeDataLabelConfig } from './chunk-Q3I4EL3N.mjs';
|
|
3
3
|
import { useRadialFrameRegistration } from './chunk-7EZEZMGG.mjs';
|
|
4
|
-
import { useChartMethods, useChartState, useChartHover } from './chunk-
|
|
4
|
+
import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
|
|
5
5
|
import { defineComponent, computed, toRef, unref, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createBlock, resolveDynamicComponent, createCommentVNode, ref, watch } from 'vue';
|
|
6
6
|
import { buildMarkerRenderItems, safeRenderProp, DEFAULT_HOVER_DIM_OPACITY } from '@primeui/chart-core';
|
|
7
7
|
import { createRadarRendererCanvas } from '@primeui/chart-core/series/radar/controller-canvas';
|
|
@@ -64,9 +64,7 @@ function useRadarRenderer(options) {
|
|
|
64
64
|
});
|
|
65
65
|
const { applyPropertyAnimations, renderFrameCycle } = useControllerLifecycle(controller);
|
|
66
66
|
function hitTest(x, y) {
|
|
67
|
-
|
|
68
|
-
if (!hit) return null;
|
|
69
|
-
return { datasetId: hit.datasetId, index: hit.index, label: hit.label, value: hit.value, color: hit.color };
|
|
67
|
+
return controller.hitTest(x, y);
|
|
70
68
|
}
|
|
71
69
|
function findAllNearest(x, y) {
|
|
72
70
|
const result = controller.findAllNearest(x, y);
|
|
@@ -112,12 +110,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
110
|
const methods = useChartMethods();
|
|
113
111
|
const state = useChartState();
|
|
114
112
|
const hoverCtx = useChartHover();
|
|
113
|
+
const ruleOverrides = useRuleOverrides();
|
|
115
114
|
const radar = useRadarRenderer({
|
|
116
115
|
chartArea: computed(() => props.chartArea),
|
|
117
116
|
renderer: methods.renderer,
|
|
118
117
|
canvasEl: toRef(props, "canvasEl"),
|
|
119
118
|
datasets: computed(() => state.value.datasets),
|
|
120
|
-
features: computed(() => state.value.features),
|
|
119
|
+
features: computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value)),
|
|
121
120
|
hover: computed(() => hoverCtx.value.hover),
|
|
122
121
|
datasetVisibility: computed(() => state.value.datasetVisibility),
|
|
123
122
|
globalFont: methods.font,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCustomizationRegistration } from './chunk-
|
|
1
|
+
import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
|
|
2
2
|
import { defineComponent, computed } from 'vue';
|
|
3
3
|
|
|
4
4
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -10,6 +10,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
fontSize: { default: 12 },
|
|
11
11
|
fontWeight: { default: "normal" },
|
|
12
12
|
fontFamily: { default: "system-ui, sans-serif" },
|
|
13
|
+
rotation: {},
|
|
13
14
|
display: { default: "value" },
|
|
14
15
|
minPercentage: { default: 5 },
|
|
15
16
|
distance: {},
|
|
@@ -27,6 +28,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
fontSize: props.fontSize,
|
|
28
29
|
fontFamily: props.fontFamily,
|
|
29
30
|
color: props.color,
|
|
31
|
+
rotation: props.rotation,
|
|
30
32
|
display: props.display,
|
|
31
33
|
minPercentage: props.minPercentage,
|
|
32
34
|
formatter: props.formatter,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CartesianRenderer_default } from './chunk-
|
|
2
|
-
import { ScatterLayer_default } from './chunk-
|
|
3
|
-
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
4
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
1
|
+
import { CartesianRenderer_default } from './chunk-BVB7G6Y5.mjs';
|
|
2
|
+
import { ScatterLayer_default } from './chunk-EAHLFHB7.mjs';
|
|
3
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
|
|
4
|
+
import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
5
5
|
import { defineComponent, useSlots, computed, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
6
6
|
import { resolveAccessor } from '@primeui/chart-core/utils';
|
|
7
7
|
import { scatterRenderer } from '@primeui/chart-core/series/scatter';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-
|
|
2
|
-
import { useChartMethods, useChartState, useChartHover } from './chunk-
|
|
1
|
+
import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
|
|
2
|
+
import { useChartMethods, useChartState, useChartHover } from './chunk-F72RBTHC.mjs';
|
|
3
3
|
import { resolveBarLabels, safeRenderProp } from '@primeui/chart-core';
|
|
4
4
|
import { computed, h, ref, shallowRef, watch, onUnmounted } from 'vue';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HeatmapLayer_default } from './chunk-
|
|
2
|
-
import { CartesianRenderer_default } from './chunk-
|
|
3
|
-
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
4
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
1
|
+
import { HeatmapLayer_default } from './chunk-L7XUBIMC.mjs';
|
|
2
|
+
import { CartesianRenderer_default } from './chunk-BVB7G6Y5.mjs';
|
|
3
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
|
|
4
|
+
import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
5
5
|
import { defineComponent, useSlots, computed, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
6
6
|
import { heatmapRenderer } from '@primeui/chart-core/series/heatmap';
|
|
7
7
|
|
|
@@ -11,10 +11,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
props: {
|
|
12
12
|
id: {},
|
|
13
13
|
data: {},
|
|
14
|
-
valueField: {
|
|
14
|
+
valueField: { type: [
|
|
15
|
+
String,
|
|
16
|
+
Function,
|
|
17
|
+
Number,
|
|
18
|
+
null,
|
|
19
|
+
Array
|
|
20
|
+
] },
|
|
15
21
|
name: {},
|
|
16
|
-
categoryXField: {
|
|
17
|
-
|
|
22
|
+
categoryXField: { type: [
|
|
23
|
+
String,
|
|
24
|
+
Function,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
categoryYField: { type: [
|
|
28
|
+
String,
|
|
29
|
+
Function,
|
|
30
|
+
Array
|
|
31
|
+
] },
|
|
18
32
|
color: {},
|
|
19
33
|
colorScale: {},
|
|
20
34
|
colorRange: {},
|
|
@@ -24,13 +38,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
38
|
yAxisId: {},
|
|
25
39
|
min: {},
|
|
26
40
|
max: {},
|
|
27
|
-
showLabels: { type: Boolean },
|
|
28
|
-
labelFormat: { type: Function },
|
|
29
|
-
labelColor: { type: [
|
|
30
|
-
String,
|
|
31
|
-
Function,
|
|
32
|
-
Array
|
|
33
|
-
] },
|
|
34
41
|
hoverColor: { type: [
|
|
35
42
|
String,
|
|
36
43
|
Function,
|
|
@@ -125,9 +132,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
132
|
yAxisId: props.yAxisId,
|
|
126
133
|
min: props.min,
|
|
127
134
|
max: props.max,
|
|
128
|
-
showLabels: props.showLabels,
|
|
129
|
-
labelFormat: props.labelFormat,
|
|
130
|
-
labelColor: props.labelColor,
|
|
131
135
|
showEmptyCells: props.showEmptyCells,
|
|
132
136
|
opacity: props.opacity,
|
|
133
137
|
renderContent: props.renderContent,
|
|
@@ -166,9 +170,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
166
170
|
yAxisId: props.yAxisId,
|
|
167
171
|
min: props.min,
|
|
168
172
|
max: props.max,
|
|
169
|
-
showLabels: props.showLabels,
|
|
170
|
-
labelFormat: props.labelFormat,
|
|
171
|
-
labelColor: props.labelColor,
|
|
172
173
|
showEmptyCells: props.showEmptyCells,
|
|
173
174
|
opacity: props.opacity,
|
|
174
175
|
renderContent: props.renderContent,
|