mirror of
https://github.com/dzeiocom/charts.git
synced 2025-04-22 10:42:09 +00:00
feat: Allow to clear every horizontal lines (#52)
This commit is contained in:
parent
b2c51f7be1
commit
dd023f96cc
@ -1,22 +1,16 @@
|
|||||||
root = true
|
root = true
|
||||||
|
|
||||||
# Base Configuration
|
|
||||||
[*]
|
[*]
|
||||||
indent_style = tab
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
end_of_line = lf
|
|
||||||
|
|
||||||
# Markdown Standards
|
|
||||||
[*.md]
|
[*.md]
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[*.{kt,kts}]
|
||||||
# Java/Kotlin Standards
|
ktlint_code_style = android
|
||||||
[*.{java,kt,kts,gradle,xml}]
|
|
||||||
indent_style = space
|
|
||||||
|
@ -237,6 +237,10 @@ class YAxis(
|
|||||||
lines.remove(y)
|
lines.remove(y)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun clearLines() {
|
||||||
|
lines.clear()
|
||||||
|
}
|
||||||
|
|
||||||
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
@Deprecated("use the new global function", ReplaceWith("YAxisInterface.addLine"))
|
||||||
override fun setGoalLine(height: Float?) {
|
override fun setGoalLine(height: Float?) {
|
||||||
if (height != null) {
|
if (height != null) {
|
||||||
|
@ -121,6 +121,11 @@ sealed interface YAxisInterface {
|
|||||||
*/
|
*/
|
||||||
fun removeLine(y: Float)
|
fun removeLine(y: Float)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove every lines
|
||||||
|
*/
|
||||||
|
fun clearLines()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the position of an [entry] Y position in the [drawableSpace]
|
* get the position of an [entry] Y position in the [drawableSpace]
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user