From 0ba291b1791b33d1e5d9a776c2b55e62036ba2db Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 27 Apr 2018 17:19:43 +0200 Subject: [PATCH] JSdoc form custom map options --- .../src/main/js/map/CustomMapOptions.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend-js/src/main/js/map/CustomMapOptions.js b/frontend-js/src/main/js/map/CustomMapOptions.js index c10921f98f..0c57bb21a4 100644 --- a/frontend-js/src/main/js/map/CustomMapOptions.js +++ b/frontend-js/src/main/js/map/CustomMapOptions.js @@ -46,6 +46,11 @@ CustomMapOptions.prototype.isBigLogo = function () { CustomMapOptions.prototype.getProject = function () { return this._project; }; + +/** + * + * @param {Project} project + */ CustomMapOptions.prototype.setProject = function (project) { this._project = project; }; @@ -67,6 +72,11 @@ CustomMapOptions.prototype.setPlugins = function (plugins) { CustomMapOptions.prototype.getConfiguration = function () { return this._configuration; }; + +/** + * + * @param {Configuration} configuration + */ CustomMapOptions.prototype.setConfiguration = function (configuration) { this._configuration = configuration; }; @@ -82,9 +92,19 @@ CustomMapOptions.prototype.getProjectId = function () { return this._projectId; } }; + +/** + * + * @param {string} projectId + */ CustomMapOptions.prototype.setProjectId = function (projectId) { this._projectId = projectId; }; + +/** + * + * @param {boolean} debug + */ CustomMapOptions.prototype.setDebug = function (debug) { if (debug !== undefined) { if (typeof debug !== "boolean") { @@ -102,6 +122,10 @@ CustomMapOptions.prototype.isDebug = function () { return this._debug === true; }; +/** + * + * @param {HTMLElement} element + */ CustomMapOptions.prototype.setElement = function (element) { this._element = element; }; -- GitLab