Skip to content

Commit 90561cd

Browse files
committed
VueUiOnion fixed tooltip traps layer order hidering events when gradients is enabled
1 parent 041f6bd commit 90561cd

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.0.19",
4+
"version": "2.0.20",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-onion.vue

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,21 @@ defineExpose({
430430
style="transform:rotate(-90deg);transform-origin: 50% 50%"
431431
/>
432432
433+
434+
435+
<!-- GRADIENT -->
436+
<g v-if="onionConfig.style.chart.useGradient">
437+
<circle
438+
v-for="onion in mutableDataset"
439+
:cx="drawableArea.centerX"
440+
:cy="drawableArea.centerY"
441+
:r="onion.radius * 1.1"
442+
stroke="none"
443+
:fill="`url(#onion_gradient_${uid})`"
444+
style="transform:rotate(-90deg);transform-origin: 50% 50%"
445+
/>
446+
</g>
447+
433448
<!-- TOOLTIP TRAPS -->
434449
<circle
435450
v-for="(onion, i) in mutableDataset"
@@ -454,20 +469,6 @@ defineExpose({
454469
@mouseleave="selectedSerie = undefined; isTooltip = false"
455470
/>
456471
457-
458-
<!-- GRADIENT -->
459-
<g v-if="onionConfig.style.chart.useGradient">
460-
<circle
461-
v-for="onion in mutableDataset"
462-
:cx="drawableArea.centerX"
463-
:cy="drawableArea.centerY"
464-
:r="onion.radius * 1.1"
465-
stroke="none"
466-
:fill="`url(#onion_gradient_${uid})`"
467-
style="transform:rotate(-90deg);transform-origin: 50% 50%"
468-
/>
469-
</g>
470-
471472
<!-- LABELS -->
472473
<g v-if="onionConfig.style.chart.layout.labels.show">
473474
<g v-for="(onion, i) in mutableDataset">

0 commit comments

Comments
 (0)