Skip to content

Commit b38a4fa

Browse files
committed
Relax type of xmin, xmax, ymin, ymax parameters in geomBand to allow date-time values to be passed.
1 parent 5f2b112 commit b38a4fa

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ object Geom {
318318

319319
@Suppress("ClassName")
320320
class band(
321-
override val xmin: Number? = null,
322-
override val xmax: Number? = null,
323-
override val ymin: Number? = null,
324-
override val ymax: Number? = null,
321+
override val xmin: Any? = null,
322+
override val xmax: Any? = null,
323+
override val ymin: Any? = null,
324+
override val ymax: Any? = null,
325325
override val alpha: Number? = null,
326326
override val color: Any? = null,
327327
override val fill: Any? = null,
@@ -339,7 +339,8 @@ object Geom {
339339
) {
340340
override val parameters = this.seal()
341341

342-
override fun seal() = super<BandAesthetics>.seal() + super<WithColorOption>.seal() + super<WithFillOption>.seal()
342+
override fun seal() =
343+
super<BandAesthetics>.seal() + super<WithColorOption>.seal() + super<WithFillOption>.seal()
343344
}
344345

345346
@Suppress("ClassName")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ class geomBand(
6868
manualKey: Any? = null,
6969
sampling: SamplingOptions? = null,
7070
tooltips: TooltipOptions? = null,
71-
override val xmin: Number? = null,
72-
override val xmax: Number? = null,
73-
override val ymin: Number? = null,
74-
override val ymax: Number? = null,
71+
override val xmin: Any? = null,
72+
override val xmax: Any? = null,
73+
override val ymin: Any? = null,
74+
override val ymax: Any? = null,
7575
override val alpha: Number? = null,
7676
override val color: Any? = null,
7777
override val fill: Any? = null,

0 commit comments

Comments
 (0)