@@ -845,8 +845,7 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
845845 const isSameSelection =
846846 mappedElements . length === copiedElements . length &&
847847 mappedElements . every (
848- ( mappedElement , index ) =>
849- mappedElement === copiedElements [ index ] ,
848+ ( mappedElement , index ) => mappedElement === copiedElements [ index ] ,
850849 ) ;
851850 if ( ! isSameSelection ) continue ;
852851 const existingItem = currentItems . find (
@@ -862,9 +861,8 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
862861 }
863862 }
864863
865- const elementSelectors = copiedElements . map (
866- ( copiedElement , index ) =>
867- createElementSelector ( copiedElement , index === 0 ) ,
864+ const elementSelectors = copiedElements . map ( ( copiedElement , index ) =>
865+ createElementSelector ( copiedElement , index === 0 ) ,
868866 ) ;
869867
870868 const updatedCommentItems = addCommentItem ( {
@@ -3262,10 +3260,7 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
32623260 const newBoundsCenterX = newBounds . x + newBounds . width / 2 ;
32633261 const newBoundsHalfWidth = newBounds . width / 2 ;
32643262 let newMouseX : number ;
3265- if (
3266- instance . mouseXOffsetRatio !== undefined &&
3267- newBoundsHalfWidth > 0
3268- ) {
3263+ if ( instance . mouseXOffsetRatio !== undefined && newBoundsHalfWidth > 0 ) {
32693264 newMouseX =
32703265 newBoundsCenterX + instance . mouseXOffsetRatio * newBoundsHalfWidth ;
32713266 } else if ( instance . mouseXOffsetFromCenter !== undefined ) {
0 commit comments