src/sap.ui.support/src/sap/ui/support/supportRules/ui/external/Highlighter.js
function (elementId) {
				var highlighter;
				var targetDomElement;
				var targetRect;

				if (_highLighter === null && !document.getElementById("ui5-highlighter")) {
					_createHighLighter();
				} else {
					_showHighLighter();
				}

				highlighter = _highLighter.firstElementChild;
				targetDomElement = document.getElementById(elementId);

				if (targetDomElement) {
					targetRect = targetDomElement.getBoundingClientRect();

					highlighter.style.top = targetRect.top + "px";
					highlighter.style.left = targetRect.left + "px";
					highlighter.style.height = targetRect.height + "px";
					highlighter.style.width = targetRect.width + "px";
				}

				return this;
			}
function (elementId) {
				var highlighter;
				var targetDomElement;
				var targetRect;

				if (_highLighter === null && !document.getElementById("ui5-highlighter")) {
					_createHighLighter();
				} else {
					_showHighLighter();
				}

				highlighter = _highLighter.firstElementChild;
				targetDomElement = document.getElementById(elementId);

				if (targetDomElement) {
					targetRect = targetDomElement.getBoundingClientRect();

					highlighter.style.top = targetRect.top + "px";
					highlighter.style.left = targetRect.left + "px";
					highlighter.style.height = targetRect.height + "px";
					highlighter.style.width = targetRect.width + "px";
				}

				return this;
			}
function ( elementId ) { var highlighter ; var targetDomElement ; var targetRect ; if ( _highLighter === null && ! document . getElementById ( "ui5-highlighter" ) ) { _createHighLighter ( ) ; } else { _showHighLighter ( ) ; } highlighter = _highLighter . firstElementChild ; targetDomElement = document . getElementById ( elementId ) ; if ( targetDomElement ) { targetRect = targetDomElement . getBoundingClientRect ( ) ; highlighter . style . top = targetRect . top + "px" ; highlighter . style . left = targetRect . left + "px" ; highlighter . style . height = targetRect . height + "px" ; highlighter . style . width = targetRect . width + "px" ; } return this ; }
Set the position of the visual highlighter.
@param {string} elementId - The id of the DOM element that need to be highlighted
@returns {exports}
Set the position of the visual highlighter .