From 72cb135aff564c36bb7bc7277a9481a77af4b607 Mon Sep 17 00:00:00 2001 From: Matthijs Bon Date: Tue, 12 Oct 2021 11:29:35 +0200 Subject: [PATCH] Update typeDefs for labelActive Add description that 'span' element can be used and add HTMLElement as type --- src/ol/control/FullScreen.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/control/FullScreen.js b/src/ol/control/FullScreen.js index ee76f15be7..3c21dcd079 100644 --- a/src/ol/control/FullScreen.js +++ b/src/ol/control/FullScreen.js @@ -46,8 +46,9 @@ const FullScreenEventType = { * @property {string} [className='ol-full-screen'] CSS class name. * @property {string|Text|HTMLElement} [label='\u2922'] Text label to use for the button. * Instead of text, also an element (e.g. a `span` element) can be used. - * @property {string|Text} [labelActive='\u00d7'] Text label to use for the + * @property {string|Text|HTMLElement} [labelActive='\u00d7'] Text label to use for the * button when full-screen is active. + * Instead of text, also an element (e.g. a `span` element) can be used. * @property {string} [activeClassName=className + '-true'] CSS class name for the button * when full-screen is active. * @property {string} [inactiveClassName=className + '-false'] CSS class name for the button @@ -142,7 +143,7 @@ class FullScreen extends Control { /** * @private - * @type {Text} + * @type {Text|HTMLElement} */ this.labelActiveNode_ = typeof labelActive === 'string'