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
5.6 KiB
1 line
5.6 KiB
{"ast":null,"code":"import _construct from \"@babel/runtime/helpers/construct\";\nimport { FlingGesture } from \"./flingGesture\";\nimport { ForceTouchGesture } from \"./forceTouchGesture\";\nimport { ComposedGesture, ExclusiveGesture, SimultaneousGesture } from \"./gestureComposition\";\nimport { LongPressGesture } from \"./longPressGesture\";\nimport { PanGesture } from \"./panGesture\";\nimport { PinchGesture } from \"./pinchGesture\";\nimport { RotationGesture } from \"./rotationGesture\";\nimport { TapGesture } from \"./tapGesture\";\nimport { NativeGesture } from \"./nativeGesture\";\nimport { ManualGesture } from \"./manualGesture\";\nexport var GestureObjects = {\n Tap: function Tap() {\n return new TapGesture();\n },\n Pan: function Pan() {\n return new PanGesture();\n },\n Pinch: function Pinch() {\n return new PinchGesture();\n },\n Rotation: function Rotation() {\n return new RotationGesture();\n },\n Fling: function Fling() {\n return new FlingGesture();\n },\n LongPress: function LongPress() {\n return new LongPressGesture();\n },\n ForceTouch: function ForceTouch() {\n return new ForceTouchGesture();\n },\n Native: function Native() {\n return new NativeGesture();\n },\n Manual: function Manual() {\n return new ManualGesture();\n },\n Race: function Race() {\n for (var _len = arguments.length, gestures = new Array(_len), _key = 0; _key < _len; _key++) {\n gestures[_key] = arguments[_key];\n }\n return _construct(ComposedGesture, gestures);\n },\n Simultaneous: function Simultaneous() {\n for (var _len2 = arguments.length, gestures = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n gestures[_key2] = arguments[_key2];\n }\n return _construct(SimultaneousGesture, gestures);\n },\n Exclusive: function Exclusive() {\n for (var _len3 = arguments.length, gestures = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n gestures[_key3] = arguments[_key3];\n }\n return _construct(ExclusiveGesture, gestures);\n }\n};","map":{"version":3,"sources":["gestureObjects.ts"],"names":["FlingGesture","ForceTouchGesture","ComposedGesture","ExclusiveGesture","SimultaneousGesture","LongPressGesture","PanGesture","PinchGesture","RotationGesture","TapGesture","NativeGesture","ManualGesture","GestureObjects","Tap","Pan","Pinch","Rotation","Fling","LongPress","ForceTouch","Native","Manual","Race","gestures","Simultaneous","Exclusive"],"mappings":";AAAA,SAASA,YAAT;AACA,SAASC,iBAAT;AAEA,SACEC,eADF,EAEEC,gBAFF,EAGEC,mBAHF;AAKA,SAASC,gBAAT;AACA,SAASC,UAAT;AACA,SAASC,YAAT;AACA,SAASC,eAAT;AACA,SAASC,UAAT;AACA,SAASC,aAAT;AACA,SAASC,aAAT;AAEA,OAAO,IAAMC,cAAc,GAAG;EAC5BC,GAAG,EAAE,eAAM;IACT,OAAO,IAAIJ,UAAJ,EAAP;EACD,CAH2B;EAK5BK,GAAG,EAAE,eAAM;IACT,OAAO,IAAIR,UAAJ,EAAP;EACD,CAP2B;EAS5BS,KAAK,EAAE,iBAAM;IACX,OAAO,IAAIR,YAAJ,EAAP;EACD,CAX2B;EAa5BS,QAAQ,EAAE,oBAAM;IACd,OAAO,IAAIR,eAAJ,EAAP;EACD,CAf2B;EAiB5BS,KAAK,EAAE,iBAAM;IACX,OAAO,IAAIjB,YAAJ,EAAP;EACD,CAnB2B;EAqB5BkB,SAAS,EAAE,qBAAM;IACf,OAAO,IAAIb,gBAAJ,EAAP;EACD,CAvB2B;EAyB5Bc,UAAU,EAAE,sBAAM;IAChB,OAAO,IAAIlB,iBAAJ,EAAP;EACD,CA3B2B;EA6B5BmB,MAAM,EAAE,kBAAM;IACZ,OAAO,IAAIV,aAAJ,EAAP;EACD,CA/B2B;EAiC5BW,MAAM,EAAE,kBAAM;IACZ,OAAO,IAAIV,aAAJ,EAAP;EACD,CAnC2B;EAyC5BW,IAAI,EAAE,gBAA4B;IAAA,kCAAxBC,QAAJ;MAAIA,QAAJ;IAAA;IACJ,kBAAWrB,eAAJ,EAAuBqB,QAA9B;EACD,CA3C2B;EAgD5BC,YAAY,0BAAyB;IAAA,mCAArBD,QAAJ;MAAIA,QAAJ;IAAA;IACV,kBAAWnB,mBAAJ,EAA2BmB,QAAlC;EACD,CAlD2B;EA2D5BE,SAAS,uBAAyB;IAAA,mCAArBF,QAAJ;MAAIA,QAAJ;IAAA;IACP,kBAAWpB,gBAAJ,EAAwBoB,QAA/B;EACD;AA7D2B,CAAvB","sourcesContent":["import { FlingGesture } from './flingGesture';\nimport { ForceTouchGesture } from './forceTouchGesture';\nimport { Gesture } from './gesture';\nimport {\n ComposedGesture,\n ExclusiveGesture,\n SimultaneousGesture,\n} from './gestureComposition';\nimport { LongPressGesture } from './longPressGesture';\nimport { PanGesture } from './panGesture';\nimport { PinchGesture } from './pinchGesture';\nimport { RotationGesture } from './rotationGesture';\nimport { TapGesture } from './tapGesture';\nimport { NativeGesture } from './nativeGesture';\nimport { ManualGesture } from './manualGesture';\n\nexport const GestureObjects = {\n Tap: () => {\n return new TapGesture();\n },\n\n Pan: () => {\n return new PanGesture();\n },\n\n Pinch: () => {\n return new PinchGesture();\n },\n\n Rotation: () => {\n return new RotationGesture();\n },\n\n Fling: () => {\n return new FlingGesture();\n },\n\n LongPress: () => {\n return new LongPressGesture();\n },\n\n ForceTouch: () => {\n return new ForceTouchGesture();\n },\n\n Native: () => {\n return new NativeGesture();\n },\n\n Manual: () => {\n return new ManualGesture();\n },\n\n /**\n * Builds a composed gesture consisting of gestures provided as parameters.\n * The first one that becomes active cancels the rest of gestures.\n */\n Race: (...gestures: Gesture[]) => {\n return new ComposedGesture(...gestures);\n },\n\n /**\n * Builds a composed gesture that allows all base gestures to run simultaneously.\n */\n Simultaneous(...gestures: Gesture[]) {\n return new SimultaneousGesture(...gestures);\n },\n\n /**\n * Builds a composed gesture where only one of the provided gestures can become active.\n * Priority is decided through the order of gestures: the first one has higher priority\n * than the second one, second one has higher priority than the third one, and so on.\n * For example, to make a gesture that recognizes both single and double tap you need\n * to call Exclusive(doubleTap, singleTap).\n */\n Exclusive(...gestures: Gesture[]) {\n return new ExclusiveGesture(...gestures);\n },\n};\n"]},"metadata":{},"sourceType":"module"} |