Skip to content

Commit 4bd8e8e

Browse files
authored
Merge pull request #207 from graphieros/ft-donut-animations
Ft donut animations
2 parents fc38d94 + f9e688c commit 4bd8e8e

File tree

10 files changed

+541
-545
lines changed

10 files changed

+541
-545
lines changed

TestingArena/ArenaVueUiDonut.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ function alterDataset() {
6666
}
6767
6868
const model = ref([
69-
{ key: 'type', def: 'classic', type: 'select', options: ['classic', 'polar']},
69+
{ key: 'type', def: 'polar', type: 'select', options: ['classic', 'polar']},
70+
{ key: 'serieToggleAnimation.show', def: true, type: 'checkbox'},
71+
{ key: 'serieToggleAnimation.durationMs', def: 500, type: 'number', min: 0, max: 5000, step: 100},
72+
{ key: 'loadAnimation.show', def: true, type: 'checkbox'},
73+
{ key: 'loadAnimation.durationMs', def: 1000, type: 'number', min: 0, max: 5000, step: 500},
74+
{ key: 'loadAnimation.staggerMs', def: 50, type: 'number', min: 0, max: 1000, step: 25},
75+
7076
{ key: 'responsive', def: false, type: 'checkbox'},
7177
{ key: 'userOptions.show', def: true, type: 'checkbox', label: 'showUserOptions', category: 'general' },
7278
{ key: 'userOptions.buttons.pdf', def: true, type: 'checkbox' },
@@ -134,9 +140,9 @@ const model = ref([
134140
{ key: 'style.chart.layout.labels.hollow.average.value.suffix', def: '', type: 'text', label: ['hollow', 'average', 'value', 'is', 'suffix'], category: 'labels' },
135141
{ key: 'style.chart.layout.labels.hollow.average.value.offsetY', def: 0, type: 'number', min: -100, max: 100, label: ['hollow', 'average', 'value', 'is', 'offsetY'], category: 'labels' },
136142
{ key: 'style.chart.layout.labels.hollow.average.value.rounding', def: 0, type: 'number', min: 0, max: 6, label: ['hollow', 'average', 'value', 'is', 'rounding'], category: 'labels' },
137-
{ key: 'style.chart.layout.donut.strokeWidth', def: 6, type: 'range', min: 3, max: 130, label: 'thickness', category: 'donut' },
143+
{ key: 'style.chart.layout.donut.strokeWidth', def: 64, type: 'range', min: 3, max: 130, label: 'thickness', category: 'donut' },
138144
{ key: 'style.chart.layout.donut.borderWidth', def: 1, type: 'range', min: 0, max: 36, label: ['border', 'is', 'thickness'], category: 'donut' },
139-
{ key: 'style.chart.layout.donut.useShadow', def: false, type: 'checkbox' },
145+
{ key: 'style.chart.layout.donut.useShadow', def: true, type: 'checkbox' },
140146
{ key: 'style.chart.layout.donut.shadowColor', def: '#1A1A1A', type: 'color' },
141147
{ key: 'style.chart.legend.show', def: true, type: 'checkbox', label: 'show', category: 'legend' },
142148
{ key: 'style.chart.legend.backgroundColor', def: '#FFFFFF20', type: 'color', label: 'backgroundColor', category: 'legend' },

cypress/fixtures/vdui-components.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ export const components = [
520520
{ name: "C", values: [3], comment: "C-C" },
521521
],
522522
config: {
523+
loadAnimation: {
524+
show: false,
525+
},
523526
style: {
524527
chart: {
525528
comments: {

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": "2.10.2",
4+
"version": "2.10.3-beta.3",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
77
"keywords": [

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const components = ref([ //------|
125125
* Modify the index to display a component
126126
* [0] = VueUiXy
127127
*/
128-
const selectedComponent = ref(components.value[37]);
128+
const selectedComponent = ref(components.value[1]);
129129
130130
/**
131131
* Legacy testing arena where some non chart components can be tested

src/components/vue-ui-donut.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ describe('<VueUiDonut />', () => {
6767
'firstSeparator',
6868
'name',
6969
'path',
70+
'pattern',
7071
'patternIndex',
72+
'seriesIndex',
7173
'proportion',
7274
'ratio',
7375
'separator',
74-
'seriesIndex',
76+
'ghost',
7577
'startX',
7678
'startY',
7779
'value'

0 commit comments

Comments
 (0)