Skip to content
Snippets Groups Projects
Commit e0ed7d24 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

dynamic width

parent 86351141
No related branches found
No related tags found
No related merge requests found
Pipeline #119270 passed
...@@ -69,6 +69,8 @@ const computedWidth = computed(() => { ...@@ -69,6 +69,8 @@ const computedWidth = computed(() => {
return Math.max(currentWidth, 550); return Math.max(currentWidth, 550);
}); });
const allHits: Ref<Record<string, any> | undefined> = ref(undefined) const allHits: Ref<Record<string, any> | undefined> = ref(undefined)
onMounted(async () => { onMounted(async () => {
const params = { const params = {
...@@ -193,12 +195,10 @@ function namesToAccessionChips(names: string[]) { ...@@ -193,12 +195,10 @@ function namesToAccessionChips(names: string[]) {
} }
const systemPanel: Ref<string[]> = ref([]) const systemPanel: Ref<string[]> = ref([])
const layoutPlot: Ref<string> = ref("grid") const layoutPlot: Ref<string> = ref("grid")
const binPlotOptions = ref({ const binPlotOptions = ref({
marginLeft: 150, marginLeft: 150,
marginBottom: 200, marginBottom: 200,
padding: 0, padding: 0,
width: 1920,
grid: true, grid: true,
x: { tickRotate: 90, tip: true, }, x: { tickRotate: 90, tip: true, },
...@@ -209,6 +209,8 @@ const binPlotDataOptions = computed(() => { ...@@ -209,6 +209,8 @@ const binPlotDataOptions = computed(() => {
const toValueAllHits = toValue(allHits) const toValueAllHits = toValue(allHits)
return toValueAllHits?.hits?.length > 0 ? { return toValueAllHits?.hits?.length > 0 ? {
...binPlotOptions.value, ...binPlotOptions.value,
width: width.value,
color: { color: {
...binPlotOptions.value.color, ...binPlotOptions.value.color,
type: scaleType.value type: scaleType.value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment