split static and dynamic table drawing
This commit is contained in:
parent
ba4ea08453
commit
3be242ef32
2
core
2
core
|
@ -1 +1 @@
|
||||||
Subproject commit 36cc286cb33dff4a649bee9d8b2620f6033fd14a
|
Subproject commit 17b93c4cc6eb1ace1e79e388f710dd27fd069536
|
|
@ -206,6 +206,8 @@ local draw_static = function(cr)
|
||||||
|
|
||||||
Text.draw(swap.label, cr)
|
Text.draw(swap.label, cr)
|
||||||
TextColumn.draw(cache.labels, cr)
|
TextColumn.draw(cache.labels, cr)
|
||||||
|
|
||||||
|
Table.draw_static(tbl, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
local draw_dynamic = function(cr)
|
local draw_dynamic = function(cr)
|
||||||
|
@ -220,7 +222,7 @@ local draw_dynamic = function(cr)
|
||||||
|
|
||||||
LabelPlot.draw(plot, cr)
|
LabelPlot.draw(plot, cr)
|
||||||
|
|
||||||
Table.draw(tbl, cr)
|
Table.draw_dynamic(tbl, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.draw_static = draw_static
|
M.draw_static = draw_static
|
||||||
|
|
|
@ -265,6 +265,8 @@ local draw_static = function(cr)
|
||||||
Line.draw(separator, cr)
|
Line.draw(separator, cr)
|
||||||
|
|
||||||
Text.draw(total_load.label, cr)
|
Text.draw(total_load.label, cr)
|
||||||
|
|
||||||
|
Table.draw_static(tbl, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
local draw_dynamic = function(cr)
|
local draw_dynamic = function(cr)
|
||||||
|
@ -282,7 +284,7 @@ local draw_dynamic = function(cr)
|
||||||
CriticalText.draw(total_load.value, cr)
|
CriticalText.draw(total_load.value, cr)
|
||||||
LabelPlot.draw(plot, cr)
|
LabelPlot.draw(plot, cr)
|
||||||
|
|
||||||
Table.draw(tbl, cr)
|
Table.draw_dynamic(tbl, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.draw_static = draw_static
|
M.draw_static = draw_static
|
||||||
|
|
Loading…
Reference in New Issue