Skip to content

Commit 7349502

Browse files
authored
Copilot: Add comprehensive KDoc documentation to all intern geom layer files with standardized format and proper Kotlin conventions (#285)
1 parent 565a037 commit 7349502

File tree

97 files changed

+1696
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1696
-2
lines changed

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/ABLineAesthetics.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ package org.jetbrains.letsPlot.intern.layer.geom
88
import org.jetbrains.letsPlot.intern.Options
99
import org.jetbrains.letsPlot.intern.OptionsCapsule
1010

11+
/**
12+
* Aesthetic properties supported by [geomABLine()][org.jetbrains.letsPlot.geom.geomABLine].
13+
*
14+
* @property slope The line slope.
15+
* @property intercept The value of y at the point where the line crosses the y-axis.
16+
* @property alpha Transparency level of a layer.
17+
* Understands numbers between 0 and 1.
18+
* @property color Color of the geometry.
19+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
20+
* @property linetype Type of the line.
21+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
22+
* a hex string (up to 8 digits for dash-gap lengths),
23+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
24+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
25+
* @property size Line width.
26+
*/
1127
interface ABLineAesthetics : OptionsCapsule {
1228
val slope: Any?
1329
val intercept: Any?

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/ABLineMapping.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ package org.jetbrains.letsPlot.intern.layer.geom
77

88
import org.jetbrains.letsPlot.intern.layer.WithGroupOption
99

10+
/**
11+
* Aesthetic mappings supported by [geomABLine()][org.jetbrains.letsPlot.geom.geomABLine].
12+
*
13+
* @param slope The line slope.
14+
* @param intercept The value of y at the point where the line crosses the y-axis.
15+
* @param alpha Transparency level of a layer.
16+
* Understands numbers between 0 and 1.
17+
* @param color Color of the geometry.
18+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
19+
* @param linetype Type of the line.
20+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
21+
* a hex string (up to 8 digits for dash-gap lengths),
22+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
23+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
24+
* @param size Line width.
25+
* @param group Grouping key. If not set, grouping may be inferred from other aesthetics (e.g., color, size).
26+
* @param paint_a Auxiliary paint channel A that can be used as either `color` or `fill` as needed. Map a variable here for composite/multi-channel color with a matching scale.
27+
* @param paint_b Auxiliary paint channel B. See `paint_a`.
28+
* @param paint_c Auxiliary paint channel C. See `paint_a`.
29+
*/
1030
class ABLineMapping(
1131
override var slope: Any? = null,
1232
override var intercept: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/AreaAesthetics.kt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ package org.jetbrains.letsPlot.intern.layer.geom
88
import org.jetbrains.letsPlot.intern.Options
99
import org.jetbrains.letsPlot.intern.OptionsCapsule
1010

11+
/**
12+
* Aesthetic properties supported by [geomArea()][org.jetbrains.letsPlot.geom.geomArea].
13+
*
14+
* @property x X-axis coordinates.
15+
* @property y Y-axis coordinates.
16+
* @property alpha Transparency level of a layer.
17+
* Understands numbers between 0 and 1.
18+
* @property color Color of the geometry.
19+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
20+
* @property fill Fill color.
21+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
22+
* @property linetype Type of the line of border.
23+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
24+
* a hex string (up to 8 digits for dash-gap lengths),
25+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
26+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
27+
* @property size Line width.
28+
*/
1129
interface AreaAesthetics : OptionsCapsule {
1230
val x: Any?
1331
val y: Any?

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/AreaMapping.kt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ package org.jetbrains.letsPlot.intern.layer.geom
77

88
import org.jetbrains.letsPlot.intern.layer.WithGroupOption
99

10+
/**
11+
* Aesthetic mappings supported by [geomArea()][org.jetbrains.letsPlot.geom.geomArea].
12+
*
13+
* @param x X-axis coordinates.
14+
* @param y Y-axis coordinates.
15+
* @param alpha Transparency level of a layer.
16+
* Understands numbers between 0 and 1.
17+
* @param color Color of the geometry.
18+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
19+
* @param fill Fill color.
20+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
21+
* @param linetype Type of the line of border.
22+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
23+
* a hex string (up to 8 digits for dash-gap lengths),
24+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
25+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
26+
* @param size Line width.
27+
* @param group Grouping key. If not set, grouping may be inferred from other aesthetics (e.g., color, size).
28+
* @param paint_a Auxiliary paint channel A that can be used as either `color` or `fill` as needed. Map a variable here for composite/multi-channel color with a matching scale.
29+
* @param paint_b Auxiliary paint channel B. See `paint_a`.
30+
* @param paint_c Auxiliary paint channel C. See `paint_a`.
31+
*/
1032
class AreaMapping(
1133
override var x: Any? = null,
1234
override var y: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/AreaRidgesAesthetics.kt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@ package org.jetbrains.letsPlot.intern.layer.geom
88
import org.jetbrains.letsPlot.intern.Options
99
import org.jetbrains.letsPlot.intern.OptionsCapsule
1010

11+
/**
12+
* Aesthetic properties supported by [geomAreaRidges()][org.jetbrains.letsPlot.geom.geomAreaRidges].
13+
*
14+
* @property x X-axis coordinates.
15+
* @property y Y-axis coordinates.
16+
* @property height Height of the ridge. Assumed to be between 0 and 1, though this is not required.
17+
* @property quantile Quantile values to draw quantile lines and fill quantiles of the geometry by color.
18+
* @property alpha Transparency level of a layer. Understands numbers between 0 and 1.
19+
* @property color Color of the geometry.
20+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
21+
* @property fill Fill color.
22+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
23+
* @property linetype Type of the line of border.
24+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
25+
* a hex string (up to 8 digits for dash-gap lengths),
26+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
27+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
28+
* @property size Defines line width.
29+
*/
1130
@Suppress("SpellCheckingInspection")
1231
interface AreaRidgesAesthetics : OptionsCapsule {
1332
val x: Any?

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/AreaRidgesMapping.kt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ package org.jetbrains.letsPlot.intern.layer.geom
77

88
import org.jetbrains.letsPlot.intern.layer.WithGroupOption
99

10+
/**
11+
* Aesthetic mappings supported by [geomAreaRidges()][org.jetbrains.letsPlot.geom.geomAreaRidges].
12+
*
13+
* @param x X-axis coordinates.
14+
* @param y Y-axis coordinates.
15+
* @param height Height of the ridge. Assumed to be between 0 and 1, though this is not required.
16+
* @param quantile Quantile values to draw quantile lines and fill quantiles of the geometry by color.
17+
* @param alpha Transparency level of a layer. Understands numbers between 0 and 1.
18+
* @param color Color of the geometry.
19+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
20+
* @param fill Fill color.
21+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
22+
* @param linetype Type of the line of border.
23+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
24+
* a hex string (up to 8 digits for dash-gap lengths),
25+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
26+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
27+
* @param size Defines line width.
28+
* @param group Grouping key. If not set, grouping may be inferred from other aesthetics (e.g., color, size).
29+
* @param paint_a Auxiliary paint channel A that can be used as either `color` or `fill` as needed. Map a variable here for composite/multi-channel color with a matching scale.
30+
* @param paint_b Auxiliary paint channel B. See `paint_a`.
31+
* @param paint_c Auxiliary paint channel C. See `paint_a`.
32+
*/
1033
class AreaRidgesMapping(
1134
override var x: Any? = null,
1235
override var y: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/AreaRidgesParameters.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ import org.jetbrains.letsPlot.core.spec.Option
99
import org.jetbrains.letsPlot.intern.Options
1010
import org.jetbrains.letsPlot.intern.OptionsCapsule
1111

12+
/**
13+
* Properties for parameters of [geomAreaRidges()][org.jetbrains.letsPlot.geom.geomAreaRidges].
14+
*
15+
* @property scale A multiplicative factor applied to height aesthetic.
16+
* If `scale = 1.0`, the heights of a ridges are automatically scaled
17+
* such that the ridge with `height = 1.0` just touches the one above.
18+
* @property minHeight A height cutoff on the drawn ridges.
19+
* All values that fall below this cutoff will be removed.
20+
* @property quantileLines Shows the quantile lines.
21+
*/
1222
interface AreaRidgesParameters : OptionsCapsule {
1323
val scale: Number?
1424
val minHeight: Number?

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/BandAesthetics.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ package org.jetbrains.letsPlot.intern.layer.geom
33
import org.jetbrains.letsPlot.intern.Options
44
import org.jetbrains.letsPlot.intern.OptionsCapsule
55

6+
/**
7+
* Aesthetic properties supported by [geomBand()][org.jetbrains.letsPlot.geom.geomBand].
8+
*
9+
* @property xmin Lower bound for the vertical band.
10+
* @property xmax Upper bound for the vertical band.
11+
* @property ymin Lower bound for the horizontal band.
12+
* @property ymax Upper bound for the horizontal band.
13+
* @property alpha Transparency level of a layer.
14+
* Understands numbers between 0 and 1.
15+
* @property color Color of the band border.
16+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
17+
* @property fill Fill color.
18+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
19+
* @property size Defines band border width.
20+
* @property linetype Type of the line.
21+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
22+
* a hex string (up to 8 digits for dash-gap lengths),
23+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
24+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
25+
*/
626
interface BandAesthetics : OptionsCapsule {
727
val xmin: Any?
828
val xmax: Any?

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/BandMapping.kt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@ package org.jetbrains.letsPlot.intern.layer.geom
22

33
import org.jetbrains.letsPlot.intern.layer.WithGroupOption
44

5+
/**
6+
* Aesthetic mappings supported by [geomBand()][org.jetbrains.letsPlot.geom.geomBand].
7+
*
8+
* @param xmin Lower bound for the vertical band.
9+
* @param xmax Upper bound for the vertical band.
10+
* @param ymin Lower bound for the horizontal band.
11+
* @param ymax Upper bound for the horizontal band.
12+
* @param alpha Transparency level of a layer.
13+
* Understands numbers between 0 and 1.
14+
* @param color Color of the band border.
15+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
16+
* @param fill Fill color.
17+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
18+
* @param size Defines band border width.
19+
* @param linetype Type of the line.
20+
* Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"),
21+
* a hex string (up to 8 digits for dash-gap lengths),
22+
* or a pattern `offset to listOf(dash, gap, ...)` / `listOf(dash, gap, ...)`.
23+
* For more info see: [aesthetics.html#line-types](https://lets-plot.org/kotlin/aesthetics.html#line-types).
24+
* @param group Grouping key. If not set, grouping may be inferred from other aesthetics (e.g., color, size).
25+
* @param paint_a Auxiliary paint channel A that can be used as either `color` or `fill` as needed. Map a variable here for composite/multi-channel color with a matching scale.
26+
* @param paint_b Auxiliary paint channel B. See `paint_a`.
27+
* @param paint_c Auxiliary paint channel C. See `paint_a`.
28+
*/
529
class BandMapping(
630
override var xmin: Any? = null,
731
override var xmax: Any? = null,

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/intern/layer/geom/BarAesthetics.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ package org.jetbrains.letsPlot.intern.layer.geom
88
import org.jetbrains.letsPlot.intern.Options
99
import org.jetbrains.letsPlot.intern.OptionsCapsule
1010

11+
/**
12+
* Aesthetic properties supported by [geomBar()][org.jetbrains.letsPlot.geom.geomBar].
13+
*
14+
* @property x X-axis value (this value will produce cases or bins for bars).
15+
* @property y Y-axis value (this value will be used to multiply the case's or bin's counts).
16+
* @property alpha Transparency level of a layer.
17+
* Understands numbers between 0 and 1.
18+
* @property color Color of the geometry.
19+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
20+
* @property fill Fill color.
21+
* For more info see: [aesthetics.html#color-and-fill](https://lets-plot.org/kotlin/aesthetics.html#color-and-fill).
22+
* @property width Width of a bar.
23+
* @property size Defines bar line width.
24+
*/
1125
interface BarAesthetics : OptionsCapsule {
1226
val x: Any?
1327
val y: Any?

0 commit comments

Comments
 (0)