REF rename critical text to threshold
This commit is contained in:
parent
5ebe32cf3a
commit
b2fe79705c
2
core
2
core
|
@ -1 +1 @@
|
||||||
Subproject commit de87caf9fad50386331fc5ce91e366434f2ebf53
|
Subproject commit 5d077e82cf855a441d664b0c5968db2c56de5b96
|
|
@ -11,7 +11,7 @@ local Arc = require 'Arc'
|
||||||
local Text = require 'Text'
|
local Text = require 'Text'
|
||||||
local Table = require 'Table'
|
local Table = require 'Table'
|
||||||
local CompoundBar = require 'CompoundBar'
|
local CompoundBar = require 'CompoundBar'
|
||||||
local CriticalText = require 'CriticalText'
|
local ThresholdText = require 'ThresholdText'
|
||||||
local TextColumn = require 'TextColumn'
|
local TextColumn = require 'TextColumn'
|
||||||
local Line = require 'Line'
|
local Line = require 'Line'
|
||||||
local Timeseries = require 'Timeseries'
|
local Timeseries = require 'Timeseries'
|
||||||
|
@ -157,12 +157,12 @@ end
|
||||||
M.initPercentPlot_formatted = function(x, y, w, h, spacing, label, update_freq, format)
|
M.initPercentPlot_formatted = function(x, y, w, h, spacing, label, update_freq, format)
|
||||||
return {
|
return {
|
||||||
label = _left_text(F.make_point(x, y), label),
|
label = _left_text(F.make_point(x, y), label),
|
||||||
value = CriticalText.build_formatted(
|
value = ThresholdText.build_formatted(
|
||||||
F.make_point(x + w, y),
|
F.make_point(x + w, y),
|
||||||
nil,
|
nil,
|
||||||
M.right_text_style,
|
M.right_text_style,
|
||||||
format,
|
format,
|
||||||
CriticalText.style(Theme.CRITICAL_FG, 80)
|
ThresholdText.style(Theme.CRITICAL_FG, 80)
|
||||||
),
|
),
|
||||||
plot = M.initThemedLabelPlot(
|
plot = M.initThemedLabelPlot(
|
||||||
x,
|
x,
|
||||||
|
@ -185,7 +185,7 @@ M.percent_plot_draw_static = function(pp, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.percent_plot_draw_dynamic = function(pp, cr)
|
M.percent_plot_draw_dynamic = function(pp, cr)
|
||||||
CriticalText.draw(pp.value, cr)
|
ThresholdText.draw(pp.value, cr)
|
||||||
Timeseries.draw_dynamic(pp.plot, cr)
|
Timeseries.draw_dynamic(pp.plot, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ end
|
||||||
M.initTextRing = function(x, y, r, fmt, limit)
|
M.initTextRing = function(x, y, r, fmt, limit)
|
||||||
return {
|
return {
|
||||||
ring = M.initRing(x, y, r),
|
ring = M.initRing(x, y, r),
|
||||||
value = CriticalText.build_formatted(
|
value = ThresholdText.build_formatted(
|
||||||
F.make_point(x, y),
|
F.make_point(x, y),
|
||||||
nil,
|
nil,
|
||||||
Text.style(
|
Text.style(
|
||||||
|
@ -321,7 +321,7 @@ M.initTextRing = function(x, y, r, fmt, limit)
|
||||||
'center'
|
'center'
|
||||||
),
|
),
|
||||||
fmt,
|
fmt,
|
||||||
CriticalText.style(Theme.CRITICAL_FG, limit)
|
ThresholdText.style(Theme.CRITICAL_FG, limit)
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -331,11 +331,11 @@ M.text_ring_draw_static = function(tr, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.text_ring_draw_dynamic = function(tr, cr)
|
M.text_ring_draw_dynamic = function(tr, cr)
|
||||||
CriticalText.draw(tr.value, cr)
|
ThresholdText.draw(tr.value, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.text_ring_set = function(tr, cr, value)
|
M.text_ring_set = function(tr, cr, value)
|
||||||
CriticalText.set(tr.value, cr, value)
|
ThresholdText.set(tr.value, cr, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
@ -455,7 +455,7 @@ end
|
||||||
M.initTextRowCrit = function(x, y, w, label, append_end, limit)
|
M.initTextRowCrit = function(x, y, w, label, append_end, limit)
|
||||||
return{
|
return{
|
||||||
label = _left_text(F.make_point(x, y), label),
|
label = _left_text(F.make_point(x, y), label),
|
||||||
value = CriticalText.build_formatted(
|
value = ThresholdText.build_formatted(
|
||||||
F.make_point(x + w, y),
|
F.make_point(x + w, y),
|
||||||
nil,
|
nil,
|
||||||
Text.style(
|
Text.style(
|
||||||
|
@ -465,7 +465,7 @@ M.initTextRowCrit = function(x, y, w, label, append_end, limit)
|
||||||
'center'
|
'center'
|
||||||
),
|
),
|
||||||
append_end,
|
append_end,
|
||||||
CriticalText.style(Theme.CRITICAL_FG, limit)
|
ThresholdText.style(Theme.CRITICAL_FG, limit)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -473,11 +473,11 @@ end
|
||||||
M.text_row_crit_draw_static = M.text_row_draw_static
|
M.text_row_crit_draw_static = M.text_row_draw_static
|
||||||
|
|
||||||
M.text_row_crit_draw_dynamic = function(row, cr)
|
M.text_row_crit_draw_dynamic = function(row, cr)
|
||||||
CriticalText.draw(row.value, cr)
|
ThresholdText.draw(row.value, cr)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.text_row_crit_set = function(row, cr, value)
|
M.text_row_crit_set = function(row, cr, value)
|
||||||
CriticalText.set(row.value, cr, value)
|
ThresholdText.set(row.value, cr, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue