@@ -70,10 +70,10 @@ class ScrollPadlock {
70
70
* @public
71
71
* @throws {TypeError } Throws when the given constructor arguments are invalid.
72
72
* @throws {Error } Throws when an instance is already attached to the given dom element.
73
- * @param {HTMLElement | ScrollPadlockOptions } [scrollingElementArgument] - The given scrollable
73
+ * @param {HTMLElement|ConstructorOptions } [scrollingElementArgument] - The given scrollable
74
74
* element whose scroll needs to be controlled or an options object.
75
75
* @param {string } [cssClassNameArgument] - The locked-state css class or an options object.
76
- * @param {Client } [clientArgument] - The client environment object (window).
76
+ * @param {GlobalContext } [clientArgument] - The client environment object (window).
77
77
*/
78
78
constructor ( scrollingElementArgument , cssClassNameArgument , clientArgument = globalThis ) {
79
79
// The Padlock first argument type
@@ -303,7 +303,7 @@ class ScrollPadlock {
303
303
/**
304
304
* A reference to the client "window" object.
305
305
* @private
306
- * @type {Client }
306
+ * @type {GlobalContext }
307
307
* @memberof ScrollPadlock
308
308
*/
309
309
#window = null ;
@@ -382,15 +382,15 @@ class ScrollPadlock {
382
382
383
383
/**
384
384
* The current scroll position.
385
- * @type {Types. ScrollPosition }
385
+ * @type {ScrollPosition }
386
386
* @private
387
387
* @memberof ScrollPadlock
388
388
*/
389
389
#scrollCurrent = null ;
390
390
391
391
/**
392
392
* The scroll position saving, the scroll position stored for later use.
393
- * @type {Types. ScrollPosition }
393
+ * @type {ScrollPosition }
394
394
* @private
395
395
* @memberof ScrollPadlock
396
396
*/
@@ -475,7 +475,7 @@ class ScrollPadlock {
475
475
* const padlock = new ScrollPadlock();
476
476
*
477
477
* padlock.scroll // --> { top: 123, left: 345 }
478
- * @returns {Types. ScrollPosition } The current scroll position object or the
478
+ * @returns {ScrollPosition } The current scroll position object or the
479
479
* scroll position previously saved if on a locked state.
480
480
*/
481
481
get scroll ( ) {
@@ -492,7 +492,7 @@ class ScrollPadlock {
492
492
* const padlock = new ScrollPadlock();
493
493
*
494
494
* padlock.scroll = { top: 123, left: 345 }
495
- * @param {Types. ScrollPosition } position - The scroll position to be set
495
+ * @param {ScrollPosition } position - The scroll position to be set
496
496
* or saved if on a locked state.
497
497
*/
498
498
set scroll ( position ) {
@@ -517,7 +517,7 @@ class ScrollPadlock {
517
517
* const padlock = new ScrollPadlock();
518
518
*
519
519
* padlock.layout // --> { outerHeight: 123, outerWidth: 345, innerWidth: 123, ... }
520
- * @returns {Types.Layout } The layout object.
520
+ * @returns {LayoutDimensions } The layout object.
521
521
*/
522
522
get layout ( ) {
523
523
return this . #layout;
@@ -578,7 +578,7 @@ class ScrollPadlock {
578
578
* Window resize event handler, bound with the wrapper function.
579
579
* @private
580
580
* @memberof ScrollPadlock
581
- * @type {Handler }
581
+ * @type {EventHandler }
582
582
*/
583
583
#handleResize = this . #resizeHandler. bind ( this ) ;
584
584
@@ -600,7 +600,7 @@ class ScrollPadlock {
600
600
* Element scroll event handler, bound with the wrapper function.
601
601
* @private
602
602
* @memberof ScrollPadlock
603
- * @type {Handler }
603
+ * @type {EventHandler }
604
604
*/
605
605
#handleScroll = this . #scrollHandler. bind ( this ) ;
606
606
@@ -620,7 +620,7 @@ class ScrollPadlock {
620
620
* Scrolls the given element to a given scroll position.
621
621
* @private
622
622
* @memberof ScrollPadlock
623
- * @param {Types. ScrollPosition } position - The scroll position to be set.
623
+ * @param {ScrollPosition } position - The scroll position to be set.
624
624
* @returns {void } Nothing.
625
625
*/
626
626
#scrollTo = ( position ) => this . #scrollEventElement?. scrollTo (
@@ -679,7 +679,7 @@ class ScrollPadlock {
679
679
* Updates the layout object.
680
680
* @private
681
681
* @memberof ScrollPadlock
682
- * @returns {Types.ScrollPosition } The layout object.
682
+ * @returns {LayoutDimensions } The layout object.
683
683
*/
684
684
#updateLayout( ) {
685
685
// If the elements involved are set (if not the instance has been probably destroyed)
@@ -696,7 +696,7 @@ class ScrollPadlock {
696
696
* Refresh the scroll position at a (temporarly) unlocked state.
697
697
* @private
698
698
* @memberof ScrollPadlock
699
- * @returns {Types. ScrollPosition } The current scroll position object.
699
+ * @returns {ScrollPosition } The current scroll position object.
700
700
*/
701
701
#updateScrollCurrent( ) {
702
702
// If the involved element is set (if not the instance has been probably destroyed)
0 commit comments