99 noop ,
1010 Maybe ,
1111 TComputedBounds ,
12- getDocumentScroll
12+ getDocumentScroll ,
1313} from './utils'
1414import { TSelectableItem } from './Selectable.types'
1515import { SelectableGroupContext } from './SelectableGroup.context'
@@ -109,7 +109,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
109109 allowCtrlClick : false ,
110110 allowMetaClick : false ,
111111 allowShiftClick : false ,
112- selectOnClick : true
112+ selectOnClick : true ,
113113 }
114114
115115 state = { selectionMode : false }
@@ -131,7 +131,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
131131 mouseDownData : TMouseDownData = {
132132 selectboxY : 0 ,
133133 selectboxX : 0 ,
134- target : null
134+ target : null ,
135135 }
136136
137137 registry = new Set < TSelectableItem > ( )
@@ -160,12 +160,12 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
160160
161161 containerScroll = {
162162 scrollTop : 0 ,
163- scrollLeft : 0
163+ scrollLeft : 0 ,
164164 }
165165
166166 documentScroll = {
167167 scrollTop : 0 ,
168- scrollLeft : 0
168+ scrollLeft : 0 ,
169169 }
170170
171171 componentDidMount ( ) {
@@ -213,7 +213,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
213213
214214 this . containerScroll = {
215215 scrollTop,
216- scrollLeft
216+ scrollLeft,
217217 }
218218 }
219219
@@ -222,14 +222,14 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
222222
223223 this . documentScroll = {
224224 scrollTop : documentScrollTop ,
225- scrollLeft : documentScrollLeft
225+ scrollLeft : documentScrollLeft ,
226226 }
227227 }
228228
229229 get containerDocumentScroll ( ) {
230230 return {
231231 scrollTop : this . containerScroll . scrollTop + this . documentScroll . scrollTop ,
232- scrollLeft : this . containerScroll . scrollLeft + this . documentScroll . scrollLeft
232+ scrollLeft : this . containerScroll . scrollLeft + this . documentScroll . scrollLeft ,
233233 }
234234 }
235235
@@ -278,7 +278,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
278278 toggleSelectionMode ( ) {
279279 const {
280280 selectedItems,
281- state : { selectionMode }
281+ state : { selectionMode } ,
282282 } = this
283283
284284 if ( selectedItems . size && ! selectionMode ) {
@@ -362,7 +362,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
362362 x : selectboxX ,
363363 y : selectboxY ,
364364 width : Math . abs ( pointX - mouseDownData . selectboxX ) ,
365- height : Math . abs ( pointY - mouseDownData . selectboxY )
365+ height : Math . abs ( pointY - mouseDownData . selectboxY ) ,
366366 }
367367
368368 this . setSelectboxState ! ( selectboxState )
@@ -373,7 +373,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
373373 width : selectboxState . width ,
374374 height : selectboxState . height ,
375375 offsetWidth : selectboxState . width || 1 ,
376- offsetHeight : selectboxState . height || 1
376+ offsetHeight : selectboxState . height || 1 ,
377377 }
378378
379379 this . selectItems ( selectboxBounds )
@@ -391,7 +391,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
391391 tolerance : tolerance ! ,
392392 mixedDeselect : mixedDeselect ! ,
393393 enableDeselect : enableDeselect ! ,
394- isFromClick : options && options . isFromClick
394+ isFromClick : options && options . isFromClick ,
395395 } )
396396 }
397397 }
@@ -510,7 +510,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
510510 allowAltClick : this . props . allowAltClick ,
511511 allowCtrlClick : this . props . allowCtrlClick ,
512512 allowMetaClick : this . props . allowMetaClick ,
513- allowShiftClick : this . props . allowShiftClick
513+ allowShiftClick : this . props . allowShiftClick ,
514514 } )
515515 if ( this . mouseDownStarted || this . props . disabled || isNotLeftButtonClick ) {
516516 return
@@ -540,15 +540,15 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
540540 width : 0 ,
541541 height : 0 ,
542542 offsetHeight : bounds . offsetHeight ,
543- offsetWidth : bounds . offsetWidth
543+ offsetWidth : bounds . offsetWidth ,
544544 } ,
545545 {
546546 top : evt . pageY ,
547547 left : evt . pageX ,
548548 width : 0 ,
549549 height : 0 ,
550550 offsetWidth : 0 ,
551- offsetHeight : 0
551+ offsetHeight : 0 ,
552552 }
553553 )
554554
@@ -563,7 +563,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
563563 this . mouseDownData = {
564564 target : evt . target as HTMLElement ,
565565 selectboxY : evt . clientY - this . scrollBounds ! . top + this . containerScroll . scrollTop ,
566- selectboxX : evt . clientX - this . scrollBounds ! . left + this . containerScroll . scrollLeft
566+ selectboxX : evt . clientX - this . scrollBounds ! . left + this . containerScroll . scrollLeft ,
567567 }
568568
569569 evt . preventDefault ( )
@@ -616,7 +616,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
616616 x : 0 ,
617617 y : 0 ,
618618 width : 0 ,
619- height : 0
619+ height : 0 ,
620620 } )
621621 this . props . onSelectionFinish ! ( [ ...this . selectedItems ] )
622622 }
@@ -654,7 +654,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
654654
655655 // eslint-disable-next-line react/sort-comp
656656 defaultContainerStyle : CSSProperties = {
657- position : 'relative'
657+ position : 'relative' ,
658658 }
659659
660660 contextValue = {
@@ -663,8 +663,8 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
663663 unregister : this . unregisterSelectable ,
664664 selectAll : this . selectAll ,
665665 clearSelection : this . clearSelection ,
666- getScrolledContainer : ( ) => this . scrollContainer
667- }
666+ getScrolledContainer : ( ) => this . scrollContainer ,
667+ } ,
668668 }
669669
670670 handleClick ( evt : any , top : number , left : number ) {
@@ -689,7 +689,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
689689 width : 0 ,
690690 height : 0 ,
691691 offsetWidth : 0 ,
692- offsetHeight : 0
692+ offsetHeight : 0 ,
693693 } ,
694694 { isFromClick : true }
695695 )
@@ -714,7 +714,7 @@ export class SelectableGroup extends Component<TSelectableGroupProps> {
714714 selectionModeClass,
715715 fixedPosition,
716716 selectboxClassName,
717- children
717+ children,
718718 } = this . props
719719
720720 return (
0 commit comments