1+ 'worklet' ;
12import type { ControlledSizes } from '../../../../../types' ;
23import { reorderInsert , resolveDimension } from '../../../../../utils' ;
34
@@ -27,7 +28,6 @@ const getGroupItemIndex = (
2728 group : Array < string > ,
2829 keyToIndex : Record < string , number >
2930) => {
30- 'worklet' ;
3131 const key = group [ inGroupIndex ] ;
3232 if ( key === undefined ) return null ;
3333 return keyToIndex [ key ] ?? null ;
@@ -38,8 +38,6 @@ export const getTotalGroupSize = (
3838 mainItemSizes : ControlledSizes ,
3939 gap : number
4040) => {
41- 'worklet' ;
42-
4341 const sizesSum = group . reduce (
4442 ( total , key ) => total + ( resolveDimension ( mainItemSizes , key ) ?? 0 ) ,
4543 0
@@ -64,7 +62,6 @@ const getIndexesWhenSwappedToGroupBefore = ({
6462 mainGap,
6563 mainItemSizes
6664} : ItemGroupSwapProps ) : SwappedGroupIndexesResult => {
67- 'worklet' ;
6865 if ( groupSizeLimit === Infinity ) {
6966 return null ;
7067 }
@@ -149,7 +146,6 @@ const getIndexesWhenSwappedToGroupAfter = ({
149146 mainGap,
150147 mainItemSizes
151148} : ItemGroupSwapProps ) : SwappedGroupIndexesResult => {
152- 'worklet' ;
153149 const activeGroup = itemGroups [ currentGroupIndex ] ;
154150 if ( groupSizeLimit === Infinity || activeGroup === undefined ) {
155151 return null ;
@@ -231,7 +227,6 @@ const getIndexesWhenSwappedToGroupAfter = ({
231227export const getSwappedToGroupBeforeIndices = (
232228 props : ItemGroupSwapProps
233229) : ItemGroupSwapResult | null => {
234- 'worklet' ;
235230 const indexes = getIndexesWhenSwappedToGroupBefore ( props ) ;
236231 if ( indexes === null ) return null ;
237232
@@ -252,7 +247,6 @@ export const getSwappedToGroupBeforeIndices = (
252247export const getSwappedToGroupAfterIndices = (
253248 props : ItemGroupSwapProps
254249) : ItemGroupSwapResult | null => {
255- 'worklet' ;
256250 const indexes = getIndexesWhenSwappedToGroupAfter ( props ) ;
257251 if ( indexes === null ) return null ;
258252
0 commit comments