diff --git a/examples/al-customize-share-url-fn.html b/examples/al-customize-share-url-fn.html new file mode 100644 index 00000000..90a33ca4 --- /dev/null +++ b/examples/al-customize-share-url-fn.html @@ -0,0 +1,22 @@ + + + + + + +
+ + + + + + diff --git a/src/js/Aladin.js b/src/js/Aladin.js index db9210ed..34eee9ed 100644 --- a/src/js/Aladin.js +++ b/src/js/Aladin.js @@ -107,21 +107,21 @@ import { Polyline } from "./shapes/Polyline"; * @property {boolean} [showCooGridControl=false] - Whether to show the coordinate grid control toolbar. * CSS class for that button is `aladin-grid-control` * @property {boolean} [showSettingsControl=false] - Whether to show the settings control toolbar. - * CSS class for that button is `aladin-settings-control` + * CSS class for that button is `aladin-settings-control` * @property {boolean} [showColorPickerControl=false] - Whether to show the color picker tool. * CSS class for that button is `aladin-colorPicker-control` * @property {boolean} [showShareControl=false] - Whether to show the share control toolbar. - * CSS class for that button is `aladin-share-control` + * CSS class for that button is `aladin-share-control` * @property {boolean} [showStatusBar=true] - Whether to show the status bar. Enabled by default. - * CSS class for that button is `aladin-status-bar` + * CSS class for that button is `aladin-status-bar` * @property {boolean} [showFrame=true] - Whether to show the viewport frame. - * CSS class for that button is `aladin-cooFrame` + * CSS class for that button is `aladin-cooFrame` * @property {boolean} [showFov=true] - Whether to show the field of view indicator. - * CSS class for that button is `aladin-fov` + * CSS class for that button is `aladin-fov` * @property {boolean} [showCooLocation=true] - Whether to show the coordinate location indicator. - * CSS class for that button is `aladin-location` + * CSS class for that button is `aladin-location` * @property {boolean} [showProjectionControl=true] - Whether to show the projection control toolbar. - * CSS class for that button is `aladin-projection-control` + * CSS class for that button is `aladin-projection-control` * @property {boolean} [showContextMenu=false] - Whether to show the context menu. * @property {boolean} [showReticle=true] - Whether to show the reticle. * @property {boolean} [showCatalog=true] - Whether to show the catalog. @@ -131,20 +131,20 @@ import { Polyline } from "./shapes/Polyline"; * @property {boolean} [fullScreen=false] - Whether to start in full-screen mode. * @property {string} [reticleColor="rgb(178, 50, 178)"] - Color of the reticle in RGB format. * @property {number} [reticleSize=22] - Size of the reticle. - * - * @property {string} [gridColor="rgb(178, 50, 178)"] - Color of the grid in RGB format. + * + * @property {string} [gridColor="rgb(178, 50, 178)"] - Color of the grid in RGB format. * Is overshadowed by gridOptions.color if defined. - * @property {number} [gridOpacity=0.8] - Opacity of the grid (0 to 1). + * @property {number} [gridOpacity=0.8] - Opacity of the grid (0 to 1). * Is overshadowed by gridOptions.opacity if defined. * @property {Object} [gridOptions] - More options for the grid. - * @property {string} [gridOptions.color="rgb(178, 50, 178)"] - Color of the grid. Can be specified as a named color + * @property {string} [gridOptions.color="rgb(178, 50, 178)"] - Color of the grid. Can be specified as a named color * (see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/named-color| named colors}), - * as rgb (ex: "rgb(178, 50, 178)"), or as a hex color (ex: "#86D6AE"). + * as rgb (ex: "rgb(178, 50, 178)"), or as a hex color (ex: "#86D6AE"). * @property {number} [gridOptions.thickness=2] - The thickness of the grid, in pixels. * @property {number} [gridOptions.opacity=0.8] - Opacity of the grid and labels. It is comprised between 0 and 1. * @property {boolean} [gridOptions.showLabels=true] - Whether the grid has labels. * @property {number} [gridOptions.labelSize=15] - The font size of the labels. - * + * * @property {string} [projection="SIN"] - Projection type. Can be 'SIN' for orthographic, 'MOL' for mollweide, 'AIT' for hammer-aitoff, 'ZEA' for zenital equal-area or 'MER' for mercator * @property {boolean} [longitudeReversed=false] - Longitude reverse axis flag. Set to true to reverse the longitude axis. This is especially needed for planetary survey visualization. Default is set to false. * @property {boolean} [log=true] - Whether to log events. @@ -155,7 +155,7 @@ import { Polyline } from "./shapes/Polyline"; * @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', @@ -254,7 +254,7 @@ import { Polyline } from "./shapes/Polyline"; /** * @typedef {('select'|'objectsSelected'|'objectClicked'|'objectHovered'|'objectHoveredStop'|'footprintClicked'|'footprintHovered'|'positionChanged'|'zoomChanged'|'rotationChanged'|'click'|'rightClickMove'|'mouseMove'|'wheelTriggered'|'fullScreenToggled'|'cooFrameChanged'|'resizeChanged'|'projectionChanged'|'layerChanged')} EventListener - * + * *