Skip to content

Commit 5f2b112

Browse files
committed
Relax type of xintercept, yintercept parameters in vline/hline to allow date-time values to be passed.
1 parent 4f1544d commit 5f2b112

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/Geom.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ object Geom {
277277
@Suppress("ClassName")
278278
class hline(
279279
@Suppress("SpellCheckingInspection")
280-
override val yintercept: Number? = null,
280+
override val yintercept: Any? = null,
281281
override val alpha: Number? = null,
282282
override val color: Any? = null,
283283
override val linetype: Any? = null,
@@ -298,7 +298,7 @@ object Geom {
298298
@Suppress("ClassName")
299299
class vline(
300300
@Suppress("SpellCheckingInspection")
301-
override val xintercept: Number? = null,
301+
override val xintercept: Any? = null,
302302
override val alpha: Number? = null,
303303
override val color: Any? = null,
304304
override val linetype: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_hline.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class geomHLine(
7272
tooltips: TooltipOptions? = null,
7373
orientation: String? = null,
7474
@Suppress("SpellCheckingInspection")
75-
override val yintercept: Number? = null,
75+
override val yintercept: Any? = null,
7676
override val alpha: Number? = null,
7777
override val color: Any? = null,
7878
override val linetype: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/geom/geom_vline.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class geomVLine(
7272
sampling: SamplingOptions? = null,
7373
tooltips: TooltipOptions? = null,
7474
orientation: String? = null,
75-
override val xintercept: Number? = null,
75+
override val xintercept: Any? = null,
7676
override val alpha: Number? = null,
7777
override val color: Any? = null,
7878
override val linetype: Any? = null,

0 commit comments

Comments
 (0)