Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
df822a66
Commit
df822a66
authored
Sep 10, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial render/refresh timing issues
parent
100ab0ba
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
public/app/features/panel/metrics_panel_ctrl.ts
+1
-0
public/app/features/panel/panel_ctrl.ts
+2
-4
public/app/features/plugins/plugin_component.ts
+1
-2
public/app/plugins/panel/graph/graph.ts
+1
-0
No files found.
public/app/features/panel/metrics_panel_ctrl.ts
View file @
df822a66
...
...
@@ -60,6 +60,7 @@ class MetricsPanelCtrl extends PanelCtrl {
}
private
onMetricsPanelRefresh
()
{
console
.
log
(
'metrics_panel_ctrl:onRefresh'
);
// ignore fetching data if another panel is in fullscreen
if
(
this
.
otherPanelInFullscreenMode
())
{
return
;
...
...
public/app/features/panel/panel_ctrl.ts
View file @
df822a66
...
...
@@ -57,12 +57,9 @@ export class PanelCtrl {
});
}
init
()
{
this
.
dashboard
.
panelInitialized
(
this
.
panel
);
}
panelDidMount
()
{
this
.
events
.
emit
(
'component-did-mount'
);
this
.
dashboard
.
panelInitialized
(
this
.
panel
);
}
renderingCompleted
()
{
...
...
@@ -248,6 +245,7 @@ export class PanelCtrl {
}
render
(
payload
?)
{
console
.
log
(
'panel_ctrl:render'
);
this
.
timing
.
renderStart
=
new
Date
().
getTime
();
this
.
events
.
emit
(
'render'
,
payload
);
}
...
...
public/app/features/plugins/plugin_component.ts
View file @
df822a66
...
...
@@ -209,9 +209,8 @@ function pluginDirectiveLoader($compile, datasourceSrv, $rootScope, $q, $http, $
setTimeout
(()
=>
{
elem
.
append
(
child
);
scope
.
$applyAsync
(()
=>
{
console
.
log
(
'post appendAndCompile, broadcast refresh'
,
scope
.
panel
);
scope
.
$broadcast
(
'component-did-mount'
);
scope
.
$broadcast
(
'refresh'
);
console
.
log
(
'appendAndCompile'
,
scope
.
panel
);
});
});
}
...
...
public/app/plugins/panel/graph/graph.ts
View file @
df822a66
...
...
@@ -80,6 +80,7 @@ class GraphElement {
this
.
annotations
=
this
.
ctrl
.
annotations
||
[];
this
.
buildFlotPairs
(
this
.
data
);
const
graphHeight
=
this
.
elem
.
height
();
console
.
log
(
'graphHeight'
,
graphHeight
);
updateLegendValues
(
this
.
data
,
this
.
panel
,
graphHeight
);
this
.
ctrl
.
events
.
emit
(
'render-legend'
);
...
...
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