Skip to content

Commit 2e676d4

Browse files
committed
Improvement - VueUiDonut - Add optional start animation, set serie segregation animation optional
1 parent fc38d94 commit 2e676d4

File tree

8 files changed

+457
-490
lines changed

8 files changed

+457
-490
lines changed

TestingArena/ArenaVueUiDonut.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ function alterDataset() {
6767
6868
const model = ref([
6969
{ key: 'type', def: 'classic', type: 'select', options: ['classic', 'polar']},
70+
{ key: 'useSerieToggleAnimation', def: true, type: 'checkbox'},
71+
{ key: 'loadAnimation.show', def: true, type: 'checkbox'},
72+
{ key: 'loadAnimation.durationMs', def: 1000, type: 'number', min: 0, max: 5000, step: 500},
73+
{ key: 'loadAnimation.staggerMs', def: 50, type: 'number', min: 0, max: 1000, step: 25},
74+
7075
{ key: 'responsive', def: false, type: 'checkbox'},
7176
{ key: 'userOptions.show', def: true, type: 'checkbox', label: 'showUserOptions', category: 'general' },
7277
{ key: 'userOptions.buttons.pdf', def: true, type: 'checkbox' },
@@ -134,7 +139,7 @@ const model = ref([
134139
{ key: 'style.chart.layout.labels.hollow.average.value.suffix', def: '', type: 'text', label: ['hollow', 'average', 'value', 'is', 'suffix'], category: 'labels' },
135140
{ 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' },
136141
{ 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' },
142+
{ key: 'style.chart.layout.donut.strokeWidth', def: 64, type: 'range', min: 3, max: 130, label: 'thickness', category: 'donut' },
138143
{ key: 'style.chart.layout.donut.borderWidth', def: 1, type: 'range', min: 0, max: 36, label: ['border', 'is', 'thickness'], category: 'donut' },
139144
{ key: 'style.chart.layout.donut.useShadow', def: false, type: 'checkbox' },
140145
{ key: 'style.chart.layout.donut.shadowColor', def: '#1A1A1A', type: 'color' },

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: {

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ describe('<VueUiDonut />', () => {
6767
'firstSeparator',
6868
'name',
6969
'path',
70+
'pattern',
7071
'patternIndex',
7172
'proportion',
7273
'ratio',

0 commit comments

Comments
 (0)