Commit 93b63e51 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Small regression fixes after code cleanup

parent dfa4755e
<template>
<chart v-on:resize="resize">
<control-panel class="fjs-control-panel" name="Boxplot Panel">
<control-panel class="fjs-control-panel">
<data-box class="fjs-data-box"
header="Numerical Variables"
dataType="numerical"
......
......@@ -439,9 +439,9 @@
ctx.fill()
})
},
resize (height, width) {
this.height = height
resize ({width, height}) {
this.width = width
this.height = height
},
update_xyData (ids) {
this.xyData = ids
......
<template>
<chart v-on:resize="resize">
<control-panel class="fjs-control-panel" name="Heatmap Panel">
<control-panel class="fjs-control-panel" name="Heat">
<data-box class="fjs-data-box"
header="Numerical Variables"
dataType="numerical_array"
......
<template>
<chart v-on:resize="resize">
<control-panel class="fjs-control-panel" name="PCA Panel">
<control-panel class="fjs-control-panel">
<data-box class="fjs-data-box"
header="Numerical Variables"
dataType="numerical,numerical_array"
......
......@@ -18,11 +18,11 @@
},
methods: {
resize () {
const chartWidth = this.$parent.$el.parentNode.getBoundingClientRect().width
const chartHeight = this.$parent.$el.parentNode.getBoundingClientRect().height
const fontSize = Math.ceil((chartHeight < chartWidth ? chartHeight : chartWidth) / 50)
const width = this.$parent.$el.parentNode.getBoundingClientRect().width
const height = this.$parent.$el.parentNode.getBoundingClientRect().height
const fontSize = Math.ceil((height < width ? height : width) / 50)
this.$el.style['font-size'] = fontSize + 'pt'
this.$emit('resize', {height: chartHeight, width: chartWidth})
this.$emit('resize', {width, height})
},
focusControlPanel () {
const controlPanel = this.$children.find(d => d.$options.name === 'control-panel')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment