You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.5 KiB

{"ast":null,"code":"import getInvertedMultiplier from \"./getInvertedMultiplier\";\nexport default function getDistanceForDirection(layout, gestureDirection) {\n var multiplier = getInvertedMultiplier(gestureDirection);\n switch (gestureDirection) {\n case 'vertical':\n case 'vertical-inverted':\n return layout.height * multiplier;\n case 'horizontal':\n case 'horizontal-inverted':\n return layout.width * multiplier;\n }\n}","map":{"version":3,"sources":["getDistanceForDirection.tsx"],"names":["getInvertedMultiplier","getDistanceForDirection","layout","gestureDirection","multiplier","height","width"],"mappings":"AACA,OAAOA,qBAAqB;AAE5B,eAAe,SAASC,uBAAuB,CAC7CC,MAAc,EACdC,gBAAkC,EAC1B;EACR,IAAMC,UAAU,GAAGJ,qBAAqB,CAACG,gBAAgB,CAAC;EAE1D,QAAQA,gBAAgB;IACtB,KAAK,UAAU;IACf,KAAK,mBAAmB;MACtB,OAAOD,MAAM,CAACG,MAAM,GAAGD,UAAU;IACnC,KAAK,YAAY;IACjB,KAAK,qBAAqB;MACxB,OAAOF,MAAM,CAACI,KAAK,GAAGF,UAAU;EAAA;AAEtC","sourceRoot":"../../src","sourcesContent":["import getInvertedMultiplier from './getInvertedMultiplier';\nexport default function getDistanceForDirection(layout, gestureDirection) {\n const multiplier = getInvertedMultiplier(gestureDirection);\n switch (gestureDirection) {\n case 'vertical':\n case 'vertical-inverted':\n return layout.height * multiplier;\n case 'horizontal':\n case 'horizontal-inverted':\n return layout.width * multiplier;\n }\n}\n//# sourceMappingURL=getDistanceForDirection.js.map"]},"metadata":{},"sourceType":"module"}