|
| 1 | +#' Line Configuration |
| 2 | +#' |
| 3 | +#' Line elements are used to represent the line in a line chart. |
| 4 | + |
| 5 | +#' @param tension number 0 Bézier curve tension (0 for no Bézier curves). |
| 6 | +#' @param backgroundColor Color Chart.defaults.backgroundColor Line fill color. |
| 7 | +#' @param borderWidth number 3 Line stroke width. |
| 8 | +#' @param borderColor Color Chart.defaults.borderColor Line stroke color. |
| 9 | +#' @param borderCapStyle string 'butt' Line cap style. See MDN |
| 10 | +#' @param borderDash number[] [] Line dash. See MDN |
| 11 | +#' @param borderDashOffset number 0.0 Line dash offset. See MDN |
| 12 | +#' @param borderJoinStyle 'round'|'bevel'|'miter' 'miter' Line join style. See MDN |
| 13 | +#' @param capBezierPoints boolean true true to keep Bézier control inside the chart, false for no restriction. |
| 14 | +#' @param cubicInterpolationMode string 'default' Interpolation mode to apply. See more... |
| 15 | +#' @param fill boolean|string false How to fill the area under the line. See area charts. |
| 16 | +#' @param stepped boolean false true to show the line as a stepped line (tension will be ignored). |
| 17 | +#' |
| 18 | +#' @return a list |
| 19 | +#' |
| 20 | +#' @export |
| 21 | +cjs_config_line <- function( |
| 22 | + tension = 0, |
| 23 | + backgroundColor = NULL, |
| 24 | + borderWidth = 3, |
| 25 | + borderColor = NULL, |
| 26 | + borderCapStyle = 'butt', |
| 27 | + borderDash = NULL, |
| 28 | + borderDashOffset = NULL, |
| 29 | + borderJoinStyle = 'miter', |
| 30 | + capBezierPoints = TRUE, |
| 31 | + cubicInterpolationMode = 'default', |
| 32 | + fill = FALSE, |
| 33 | + stepped = FALSE) { |
| 34 | + |
| 35 | + parameters <- as.list(environment()) |
| 36 | + parameters <- get_non_null_parameters(parameters) |
| 37 | + parameters |
| 38 | + |
| 39 | +} |
0 commit comments