Skip to content

Commit 8260df5

Browse files
committed
VueUiRating minor bug fix
1 parent 3f814e7 commit 8260df5

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "1.9.77",
4+
"version": "1.9.78",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4973,7 +4973,7 @@ const moodRadarConfig = ref({
49734973
VueUiHeatmap
49744974
</template>
49754975
<template #info>
4976-
<BaseIcon name="chartTable" stroke="#ff6347"/>
4976+
<BaseIcon name="chartTable" stroke="#5f8bee"/>
49774977
<BaseIcon name="pdf" stroke="#5f8bee"/>
49784978
<BaseIcon name="image" stroke="#5f8bee"/>
49794979
<BaseIcon name="excel" stroke="#5f8bee"/>

src/atoms/BaseIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const icons = computed(() => {
3131
chartChestnut: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M4 3A1 1 0 004 9 1 1 0 004 3M4 12A1 1 0 004 17 1 1 0 004 12M9 4 19 4M9 7 17 7M9 10 15 10M9 13 13 13M9 16 11 16" />`,
3232
chartDonut: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M1 10A1 1 0 0019 10 1 1 0 001 10M6 10A1 1 0 0014 10 1 1 0 006 10M1 10 6 10M10 14 10 19M14 10" /><path stroke="none" stroke-width="none" fill="${props.stroke}" stroke-linecap="round" d="M1 10 6 10C6 12 8 14 10 14L10 19C6 19 1 16 1 10" style="opacity:0.3" />`,
3333
chartDonutEvolution: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M1 1 1 18C1 19 1 19 2 19L19 19M3 8A1 1 0 007 8 1 1 0 003 8M8 14A1 1 0 0012 14 1 1 0 008 14M14 4A1 1 0 0018 4 1 1 0 0014 4M7 10 9 12M11 12 15 6" />`,
34-
chartGauge: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M19 13A1 1 0 001 13M9 15A1 1 0 0011 15 1 1 0 009 15M10 14 11 8" />`,
34+
chartGauge: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M 19 13 A 1 1 0 0 0 1 13" style="opacity:0.3" /><path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M 9 15 A 1 1 0 0 0 11 15 A 1 1 0 0 0 9 15 M 10 14 L 10 8 M 10 4 C 6 4 1 7 1 13" />`,
3535
chartHeatmap: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M2 3 2 17C2 18 2 18 3 18L17 18C18 18 18 18 18 17L18 3C18 2 18 2 17 2L3 2C2 2 2 2 2 3M10 2 10 18M2 10 18 10M6 2 6 18M14 2 14 18M2 6 18 6M2 14 18 14"/><rect fill="${props.stroke}" stroke="none" x="2" y="6" height="4" width="4" style="opacity:0.5" /><rect fill="${props.stroke}" stroke="none" x="6" y="10" height="4" width="4" style="opacity:0.5" /><rect fill="${props.stroke}" stroke="none" x="6" y="14" height="4" width="4" style="opacity:0.5" /><rect fill="${props.stroke}" stroke="none" x="14" y="2" height="4" width="4" style="opacity:0.5" />`,
3636
chartLine: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" d="M1 1 1 18C1 19 1 19 2 19L19 19M3 17Q3 12 5 7 6 5 8 10 10 15 11 6 12 3 14 8 16 11 19 1" />`,
3737
chartMoodRadar: `<path fill="none" stroke="${props.stroke}" stroke-width="${props.strokeWidth}" stroke-linecap="round" stroke-linejoin="round" d="M10 4 4 9 6 16 14 16 16 9 10 4M9 2A1 1 0 0011 2 1 1 0 009 2M1 8A1 1 0 003 8 1 1 0 001 8M3 18A1 1 0 005 17 1 1 0 003 18M15 18A1 1 0 0017 17 1 1 0 0015 18M17 8A1 1 0 0019 8 1 1 0 0017 8" /><path stroke="none" stroke-width="none" fill="${props.stroke}" stroke-linecap="round" stroke-linejoin="round" d="M10 7 13 10 13 14 8 13 7 9 10 7" style="opacity:0.3" />`,

src/components/vue-ui-donut.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ function generatePdf(){
209209
isPrinting.value = false;
210210
});
211211
}, 100)
212-
213212
}
214213
215214
function showSpinnerImage() {
@@ -444,8 +443,8 @@ defineExpose({
444443
:fill="`url(#gradient_${uid})`"
445444
/>
446445

447-
<!-- TOOLTIP TRAPS -->
448-
<path
446+
<!-- TOOLTIP TRAPS -->
447+
<path
449448
v-for="(arc, i) in currentDonut"
450449
:data-cy="`donut-trap-${i}`"
451450
:d="arc.arcSlice"
@@ -550,7 +549,7 @@ defineExpose({
550549
</text>
551550
</g>
552551

553-
552+
554553

555554
<!-- LEGEND AS G -->
556555
<foreignObject
@@ -622,10 +621,10 @@ defineExpose({
622621
:config="dataTable.config"
623622
:title="`${donutConfig.style.chart.title.text}${donutConfig.style.chart.title.subtitle.text ? ` : ${donutConfig.style.chart.title.subtitle.text}` : ''}`"
624623
>
625-
<template #th="{th}">
624+
<template #th="{ th }">
626625
<div v-html="th" style="display:flex;align-items:center"></div>
627626
</template>
628-
<template #td="{td}">
627+
<template #td="{ td }">
629628
{{ td.name || td }}
630629
</template>
631630
</DataTable>

src/components/vue-ui-rating.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ function calcShapeFill(index, isImage = false) {
9191
const ratio = currentRating.value - index;
9292
const multiplicator = isImage ? 1 : 100;
9393
switch (true) {
94-
case ratio < 0:
95-
return 0;
94+
case ratio <= 0:
95+
return 0.001;
9696
case ratio > 1:
9797
return 1 * multiplicator;
9898
default:

0 commit comments

Comments
 (0)