Skip to content

Commit

Permalink
VueUiOnion fixed tooltip traps layer order hidering events when gradi…
Browse files Browse the repository at this point in the history
…ents is enabled
  • Loading branch information
graphieros committed Mar 13, 2024
1 parent 041f6bd commit 90561cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-data-ui",
"private": false,
"version": "2.0.19",
"version": "2.0.20",
"type": "module",
"description": "A user-empowering data visualization Vue components library",
"keywords": [
Expand Down
29 changes: 15 additions & 14 deletions src/components/vue-ui-onion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,21 @@ defineExpose({
style="transform:rotate(-90deg);transform-origin: 50% 50%"
/>
<!-- GRADIENT -->
<g v-if="onionConfig.style.chart.useGradient">
<circle
v-for="onion in mutableDataset"
:cx="drawableArea.centerX"
:cy="drawableArea.centerY"
:r="onion.radius * 1.1"
stroke="none"
:fill="`url(#onion_gradient_${uid})`"
style="transform:rotate(-90deg);transform-origin: 50% 50%"
/>
</g>
<!-- TOOLTIP TRAPS -->
<circle
v-for="(onion, i) in mutableDataset"
Expand All @@ -454,20 +469,6 @@ defineExpose({
@mouseleave="selectedSerie = undefined; isTooltip = false"
/>
<!-- GRADIENT -->
<g v-if="onionConfig.style.chart.useGradient">
<circle
v-for="onion in mutableDataset"
:cx="drawableArea.centerX"
:cy="drawableArea.centerY"
:r="onion.radius * 1.1"
stroke="none"
:fill="`url(#onion_gradient_${uid})`"
style="transform:rotate(-90deg);transform-origin: 50% 50%"
/>
</g>
<!-- LABELS -->
<g v-if="onionConfig.style.chart.layout.labels.show">
<g v-for="(onion, i) in mutableDataset">
Expand Down

0 comments on commit 90561cd

Please sign in to comment.