Skip to content

Commit fb98eb5

Browse files
committed
Fix - VueUiCirclePack - Fix inconsistent sizing; add responsive mode #275
1 parent fb769ba commit fb98eb5

File tree

4 files changed

+427
-265
lines changed

4 files changed

+427
-265
lines changed

TestingArena/ArenaVueUiCirclePack.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ function makeDs({ name, qty, maxVal }) {
2929
return datapoints;
3030
}
3131
32-
const dataset = ref(undefined);
32+
const dataset = ref(makeDs({ name: "Pack 1", qty: 5, maxVal: 12000 }));
3333
3434
onMounted(() => {
35-
setTimeout(() => {
36-
dataset.value = makeDs({ name: "Pack 1", qty: 5, maxVal: 12000 })
37-
}, 2000)
35+
// setTimeout(() => {
36+
// dataset.value = makeDs({ name: "Pack 1", qty: 5, maxVal: 12000 })
37+
// }, 2000)
3838
3939
// setTimeout(() => {
4040
// dataset.value = undefined;
@@ -79,7 +79,9 @@ const model = ref([
7979
{ key: "debug", def: true, type: "checkbox" },
8080
{ key: "loading", def: false, type: "checkbox" },
8181
{ key: "userOptions.show", def: true, type: "checkbox" },
82-
{ key: "style.chart.backgroundColor", def: "#FFFFFF", type: "color" },
82+
{ key: "style.chart.backgroundColor", def: "#FFFFDD", type: "color" },
83+
{ key: "style.chart.width", def: 512, type: "number", min: 0, max: 1000 },
84+
{ key: "style.chart.height", def: 512, type: "number", min: 0, max: 1000 },
8385
{ key: "style.chart.color", def: "#1A1A1A", type: "color" },
8486
{ key: "style.chart.title.text", def: "Title", type: "text" },
8587
{ key: "style.chart.title.subtitle.text", def: "Subtitle", type: "text" },
@@ -302,7 +304,7 @@ onMounted(async() => {
302304
</div>
303305

304306
<div style="width: 600px; height: 600px; resize: both; overflow: auto; background: white">
305-
<LocalVueUiCirclePack :dataset="dataset" :config="config" ref="local" :key="`local_${step}`" @selectDatapoint="selectDatapoint"></LocalVueUiCirclePack>
307+
<LocalVueUiCirclePack :dataset="dataset" :config="{...config, responsive: true}" ref="local" :key="`local_${step}`" @selectDatapoint="selectDatapoint"></LocalVueUiCirclePack>
306308
</div>
307309
<Box>
308310
<template #title>VueUiCirclePack</template>

0 commit comments

Comments
 (0)