Skip to content

Commit a363ab0

Browse files
committed
Improvement - VueUiChestnut - Set better proportions for expanded donuts
1 parent 3f96043 commit a363ab0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/vue-ui-chestnut.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function pickNut(branch) {
371371
branch.x2 + 24 + FINAL_CONFIG.value.style.chart.layout.nuts.offsetX,
372372
branch.y1 + svg.value.branchSize / 2,
373373
80,
374-
80
374+
80,
375375
);
376376
emit('selectNut', branch.breakdown)
377377
})
@@ -1026,7 +1026,7 @@ defineExpose({
10261026
16,
10271027
false,
10281028
false,
1029-
64
1029+
64,
10301030
)"
10311031
:stroke="arc.color"
10321032
stroke-width="1"
@@ -1057,15 +1057,15 @@ defineExpose({
10571057
<circle
10581058
:cx="selectedNut.x2 + 24 + FINAL_CONFIG.style.chart.layout.nuts.offsetX"
10591059
:cy="selectedNut.y1 + svg.branchSize / 2"
1060-
:r="100"
1060+
:r="110"
10611061
:fill="`url(#nutpick_${uid})`"
10621062
@click="leaveNut"
10631063
:class="FINAL_CONFIG.style.chart.layout.nuts.selected.useMotion ? 'vue-ui-chestnut-animated' : ''"
10641064
/>
10651065
<circle
10661066
:cx="selectedNut.x2 + 24 + FINAL_CONFIG.style.chart.layout.nuts.offsetX"
10671067
:cy="selectedNut.y1 + svg.branchSize / 2"
1068-
:r="48"
1068+
:r="64"
10691069
:fill="FINAL_CONFIG.style.chart.backgroundColor"
10701070
@click="leaveNut"
10711071
:class="FINAL_CONFIG.style.chart.layout.nuts.selected.useMotion ? 'vue-ui-chestnut-animated' : ''"
@@ -1112,9 +1112,9 @@ defineExpose({
11121112
v-if="isArcBigEnough(arc)"
11131113
:x="calcMarkerOffsetX(arc).x"
11141114
:text-anchor="calcMarkerOffsetX(arc).anchor"
1115-
:y="calcMarkerOffsetY(arc)"
1115+
:y="calcMarkerOffsetY(arc) - (FINAL_CONFIG.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6)"
11161116
:fill="arc.color"
1117-
:font-size="FINAL_CONFIG.style.chart.layout.nuts.selected.labels.dataLabels.fontSize"
1117+
:font-size="FINAL_CONFIG.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2"
11181118
:style="`font-weight:${FINAL_CONFIG.style.chart.layout.nuts.selected.labels.dataLabels.bold ? 'bold': ''}`"
11191119
:class="FINAL_CONFIG.style.chart.layout.nuts.selected.useMotion ? 'vue-ui-chestnut-animated' : ''"
11201120
>

0 commit comments

Comments
 (0)