Skip to content

Commit c907713

Browse files
committed
New feature - VueUiWheel - Add 3d mode
1 parent 8e84b1b commit c907713

File tree

4 files changed

+444
-45
lines changed

4 files changed

+444
-45
lines changed

TestingArena/ArenaVueUiWheel.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const dataset = ref(undefined);
1212
1313
onMounted(() => {
1414
setTimeout(() => {
15-
dataset.value = { percentage: 75 };
15+
dataset.value = { percentage: 99 };
1616
}, 2000)
1717
})
1818
@@ -23,6 +23,7 @@ onMounted(() => {
2323
// }, 3000)
2424
// })
2525
26+
2627
const isPropsToggled = ref(false);
2728
function toggleProps() {
2829
isPropsToggled.value = !isPropsToggled.value;
@@ -46,6 +47,7 @@ function alterDataset() {
4647
}
4748
4849
const model = ref([
50+
{ key: 'layout', def: '3d', type: 'select', options: ['3d', 'classic']},
4951
{ key: 'debug', def: true, type: 'checkbox'},
5052
{ key: 'loading', def: false, type: 'checkbox'},
5153
{ key: 'responsive', def: false, type: 'checkbox'},
@@ -63,23 +65,37 @@ const model = ref([
6365
{ key: 'style.chart.animation.use', def: true, type: 'checkbox'},
6466
{ key: 'style.chart.animation.speed', def: 0.5, type: 'number', min: 0, max: 2, step: 0.01},
6567
{ key: 'style.chart.animation.acceleration', def: 1, type: 'number', min: 0, max: 10, step: 0.1},
68+
69+
{ key: 'style.chart.layout.wheel.radiusRatio', def: 0.9, type: 'number', min: 0.1, max: 1, step: 0.01 },
70+
{ key: 'style.chart.layout.wheel.tiltAngle3d', def: 50, type: 'number', min: 10, max: 80 },
71+
6672
{ key: 'style.chart.layout.wheel.ticks.rounded', def: true, type: 'checkbox'},
6773
{ key: 'style.chart.layout.wheel.ticks.inactiveColor', def: '#e1e5e8', type: 'color'},
6874
{ key: 'style.chart.layout.wheel.ticks.activeColor', def: '#5f8bee', type: 'color'},
69-
{ key: 'style.chart.layout.wheel.ticks.sizeRatio', def: 0.9, type: 'range', min: 0, max: 1, step: 0.01 },
70-
{ key: 'style.chart.layout.wheel.ticks.gradient.show', def: true, type: 'checkbox'},
71-
{ key: 'style.chart.layout.wheel.ticks.gradient.shiftHueIntensity', def: 100, type:'range', min: 0, max: 100},
75+
{ key: 'style.chart.layout.wheel.ticks.sizeRatio', def: 0.85, type: 'range', min: 0, max: 1, step: 0.01 },
76+
{ key: 'style.chart.layout.wheel.ticks.gradient.show', def: false, type: 'checkbox'},
77+
{ key: 'style.chart.layout.wheel.ticks.gradient.shiftHueIntensity', def: 12, type:'range', min: 0, max: 100},
7278
{ key: 'style.chart.layout.wheel.ticks.quantity', def: 100, type: 'range', min: 1, max: 1000},
73-
{ key: 'style.chart.layout.wheel.ticks.strokeWidth', def: 5, type: 'range', min: 0.1, max: 12, step: 0.1},
79+
{ key: 'style.chart.layout.wheel.ticks.strokeWidth', def: 0, type: 'range', min: 0.1, max: 12, step: 0.1},
80+
{ key: 'style.chart.layout.wheel.ticks.stroke', def: '#FFFFFF', type: 'color'},
7481
{ key: 'style.chart.layout.wheel.ticks.type', def: 'arc', type: 'select', options: ['classic', 'arc']},
82+
{ key: 'style.chart.layout.wheel.ticks.spacingRatio3d', def: 0.8, type: 'number', min: 0.1, max: 1, step: 0.1},
83+
{ key: 'style.chart.layout.wheel.ticks.shadeColorRatio3d', def: 0.15, type: 'number', min: 0.1, max: 1, step: 0.1},
7584
7685
{ key: 'style.chart.layout.innerCircle.show', def: true, type: 'checkbox'},
7786
{ key: 'style.chart.layout.innerCircle.stroke', def: '#e1e5e8', type: 'color'},
7887
{ key: 'style.chart.layout.innerCircle.strokeWidth', def: 1, type: 'range', min: 0, max: 48},
88+
{ key: 'style.chart.layout.innerCircle.radiusRatio', def: 0.9, type: 'number', min: 0, max: 2, step: 0.1},
89+
7990
{ key: 'style.chart.layout.percentage.show', def: true, type: 'checkbox'},
80-
{ key: 'style.chart.layout.percentage.fontSize', def: 48, type: 'range', min: 8, max: 100},
91+
{ key: 'style.chart.layout.percentage.fontSize', def: 80, type: 'range', min: 8, max: 100},
8192
{ key: 'style.chart.layout.percentage.rounding', def: 1, type: 'range', min: 0, max: 12},
8293
{ key: 'style.chart.layout.percentage.bold', def: true, type: 'checkbox'},
94+
{ key: 'style.chart.layout.percentage.offsetX', def: 12, type: 'number', min: -100, max: 100 },
95+
{ key: 'style.chart.layout.percentage.offsetY', def: -16, type: 'number', min: -100, max: 100 },
96+
{ key: 'style.chart.layout.percentage.stroke', def: '#FFFFFF', type: 'color'},
97+
{ key: 'style.chart.layout.percentage.strokeWidth', def: 6, type: 'number', min: 0, max: 12 },
98+
8399
{ key: 'style.chart.title.text', def: 'Lorem ipsum dolor sic amet', type: 'text'},
84100
{ key: 'style.chart.title.text', def: 'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis', type: 'text'},
85101
{ key: 'style.chart.title.color', def: '#1A1A1A', type: 'color'},

0 commit comments

Comments
 (0)