From e080f9f7d0f5f509d3872d15522f7c41bb15c819 Mon Sep 17 00:00:00 2001 From: Philip Matsson Date: Fri, 12 Apr 2024 17:04:12 +0200 Subject: [PATCH] Add documentation for the lineDash option --- src/js/A.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/A.js b/src/js/A.js index 88e1947e..c1d95829 100644 --- a/src/js/A.js +++ b/src/js/A.js @@ -319,10 +319,11 @@ A.vector = function (ra1, dec1, ra2, dec2, options) { * @param {Object} options - Options for configuring the graphic overlay. * @param {string} [options.color] - The color of the graphic overlay. * @param {number} [options.lineWidth] - The width of the lines in the graphic overlay. + * @param {Array} [options.lineDash] - The dash pattern for the lines in the graphic overlay. * @returns {Overlay} Returns a new Overlay object representing the graphic overlay. * * @example - * var overlay = A.graphicOverlay({ color: '#ee2345', lineWidth: 3 }); + * var overlay = A.graphicOverlay({ color: '#ee2345', lineWidth: 3, lineDash: [2, 4]}); */ A.graphicOverlay = function (options) { return new Overlay(options);