From 49458c557dc43c52e4cdf18ee19e95561c04ef4c Mon Sep 17 00:00:00 2001 From: Alex Bajcz <15620636+BajczA475@users.noreply.github.com> Date: Fri, 10 Oct 2025 07:39:38 -0500 Subject: [PATCH] Update arrowhead.R In re: Issue#83--inserting some documentation that will clarify how specifying styling aspects for lines and arrowheads separately works. --- R/arrowhead.R | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/R/arrowhead.R b/R/arrowhead.R index 6e7b02a..00ed5f3 100644 --- a/R/arrowhead.R +++ b/R/arrowhead.R @@ -20,6 +20,13 @@ arrowheadDependency <- function() { #' \href{https://github.com/slutske22/leaflet-arrowheads}{leaflet-arrowheads} #' for further details. #' +#' It is possible to style the lines and the arrowheads separately; put styling +#' specifications for the lines inside \code{\link{addArrowhead}} and the +#' specifications for the arrowheads inside \code{\link{arrowheadOptions}}. +#' A dashArray provided for the lines will also apply to the arrowheads, +#' but the latter can be overruled by specifying a separate dashArray +#' for the arrowheads inside \code{\link{arrowheadOptions}}. +#' #' @inheritParams leaflet::addPolylines #' @param options A named list of options. See \code{\link{arrowheadOptions}} #' @family Arrowhead Functions