Add documentation for the selector options

This commit is contained in:
Philip Matsson
2024-10-10 14:47:20 +02:00
committed by Matthieu Baumann
parent 1f790a4b54
commit 765c0d0dcb

View File

@@ -147,6 +147,10 @@ import { Polyline } from "./shapes/Polyline";
* @property {boolean} [realFullscreen=false] - Whether to use real fullscreen mode.
* @property {boolean} [pixelateCanvas=true] - Whether to pixelate the canvas.
* @property {boolean} [manualSelection=false] - When set to true, no selection will be performed, only events will be generated.
* @property {Object} [selector] - More options for the the selector.
* @property {string} [selector.color] - Color of the selector, defaults to the color of the reticle. Can be a hex color or a function returning a hex color.
* @property {number} [selector.lineWidth=2] - Width of the selector line.
*
* @example
* let aladin = A.aladin({
target: 'galactic center',