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
3.6 KiB
1 line
3.6 KiB
{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { BaseGesture } from \"./gesture\";\nexport var FlingGesture = function (_BaseGesture) {\n _inherits(FlingGesture, _BaseGesture);\n var _super = _createSuper(FlingGesture);\n function FlingGesture() {\n var _this;\n _classCallCheck(this, FlingGesture);\n _this = _super.call(this);\n _defineProperty(_assertThisInitialized(_this), \"config\", {});\n _this.handlerName = 'FlingGestureHandler';\n return _this;\n }\n _createClass(FlingGesture, [{\n key: \"numberOfPointers\",\n value: function numberOfPointers(pointers) {\n this.config.numberOfPointers = pointers;\n return this;\n }\n }, {\n key: \"direction\",\n value: function direction(_direction) {\n this.config.direction = _direction;\n return this;\n }\n }]);\n return FlingGesture;\n}(BaseGesture);","map":{"version":3,"sources":["flingGesture.ts"],"names":["BaseGesture","FlingGesture","constructor","handlerName","numberOfPointers","pointers","config","direction"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,WAAT;AAMA,WAAaC,YAAN;EAAA;EAAA;EAGLC,wBAAc;IAAA;IAAA;IACZ;IADY,eAAA,gCAAA,QAAA,EAF0C,CAAA,CAE1C,CAAA;IAGZ,MAAKC,WAAL,GAAmB,qBAAnB;IAAA;EACD;EAAA;IAAA;IAAA,OAEDC,0BAAiBC,QAAD,EAAmB;MACjC,IAAA,CAAKC,MAAL,CAAYF,gBAAZ,GAA+BC,QAA/B;MACA,OAAO,IAAP;IACD;EAAA;IAAA;IAAA,OAEDE,mBAAUA,UAAD,EAAoB;MAC3B,IAAA,CAAKD,MAAL,CAAYC,SAAZ,GAAwBA,UAAxB;MACA,OAAO,IAAP;IACD;EAAA;EAAA;AAAA,EAjB+BP,WAA3B","sourcesContent":["import { BaseGesture, BaseGestureConfig } from './gesture';\nimport {\n FlingGestureConfig,\n FlingGestureHandlerEventPayload,\n} from '../FlingGestureHandler';\n\nexport class FlingGesture extends BaseGesture<FlingGestureHandlerEventPayload> {\n public config: BaseGestureConfig & FlingGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'FlingGestureHandler';\n }\n\n numberOfPointers(pointers: number) {\n this.config.numberOfPointers = pointers;\n return this;\n }\n\n direction(direction: number) {\n this.config.direction = direction;\n return this;\n }\n}\n\nexport type FlingGestureType = InstanceType<typeof FlingGesture>;\n"]},"metadata":{},"sourceType":"module"} |