mirror of
https://github.com/dzeiocom/charts.git
synced 2025-04-22 18:52:08 +00:00
fix: Remove deprecated elements
This commit is contained in:
parent
6ab36e9ade
commit
df985b23ab
@ -43,13 +43,6 @@ class YAxis(
|
||||
private var min: Float? = null
|
||||
private var max: Float? = null
|
||||
|
||||
@Deprecated("use the new global function", replaceWith = ReplaceWith("YAxisInterface.addLine"))
|
||||
override var drawZeroLine: Boolean = false
|
||||
set(value) {
|
||||
addLine(0f, Line())
|
||||
field = value
|
||||
}
|
||||
|
||||
override var scrollEnabled: Boolean = false
|
||||
|
||||
private val rect = Rect()
|
||||
@ -245,13 +238,6 @@ class YAxis(
|
||||
lines.clear()
|
||||
}
|
||||
|
||||
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
||||
override fun setGoalLine(height: Float?) {
|
||||
if (height != null) {
|
||||
addLine(height, Line(true))
|
||||
}
|
||||
}
|
||||
|
||||
override fun getPositionOnRect(entry: Entry, drawableSpace: RectF): Float {
|
||||
if (view.type == ChartType.STACKED) {
|
||||
val serie = view.series.find { it.entries.contains(entry) }
|
||||
|
@ -41,12 +41,6 @@ sealed interface YAxisInterface {
|
||||
|
||||
var onValueFormat: (value: Float) -> String
|
||||
|
||||
/**
|
||||
* do the Zero line gets drawn?
|
||||
*/
|
||||
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
||||
var drawZeroLine: Boolean
|
||||
|
||||
/**
|
||||
* run when manually refreshing the system
|
||||
*
|
||||
@ -92,13 +86,6 @@ sealed interface YAxisInterface {
|
||||
*/
|
||||
fun onDraw(canvas: Canvas, space: RectF): Float
|
||||
|
||||
/**
|
||||
* Add a Goal line
|
||||
*
|
||||
*/
|
||||
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
||||
fun setGoalLine(height: Float?)
|
||||
|
||||
/**
|
||||
* add a line on the Chart
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user