Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
93b63e51
Commit
93b63e51
authored
Feb 12, 2018
by
Sascha Herzinger
Browse files
Small regression fixes after code cleanup
parent
dfa4755e
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/vue/charts/Boxplot.vue
View file @
93b63e51
<
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"
...
...
src/vue/charts/CorrelationAnalysis.vue
View file @
93b63e51
...
...
@@ -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
...
...
src/vue/charts/Heatmap.vue
View file @
93b63e51
<
template
>
<chart
v-on:resize=
"resize"
>
<control-panel
class=
"fjs-control-panel"
name=
"Heat
map Panel
"
>
<control-panel
class=
"fjs-control-panel"
name=
"Heat"
>
<data-box
class=
"fjs-data-box"
header=
"Numerical Variables"
dataType=
"numerical_array"
...
...
src/vue/charts/PCA.vue
View file @
93b63e51
<
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"
...
...
src/vue/components/Chart.vue
View file @
93b63e51
...
...
@@ -18,11 +18,11 @@
},
methods
:
{
resize
()
{
const
chartW
idth
=
this
.
$parent
.
$el
.
parentNode
.
getBoundingClientRect
().
width
const
chartH
eight
=
this
.
$parent
.
$el
.
parentNode
.
getBoundingClientRect
().
height
const
fontSize
=
Math
.
ceil
((
chartH
eight
<
chartW
idth
?
chartH
eight
:
chartW
idth
)
/
50
)
const
w
idth
=
this
.
$parent
.
$el
.
parentNode
.
getBoundingClientRect
().
width
const
h
eight
=
this
.
$parent
.
$el
.
parentNode
.
getBoundingClientRect
().
height
const
fontSize
=
Math
.
ceil
((
h
eight
<
w
idth
?
h
eight
:
w
idth
)
/
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
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment