MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _getRotationData

Function _getRotationData

packages/core/ui/gestures/index.ios.ts:465–478  ·  view source on GitHub ↗
(args: GestureEventData)

Source from the content-addressed store, hash-verified

463}
464
465function _getRotationData(args: GestureEventData): RotationGestureEventData {
466 const recognizer = <UIRotationGestureRecognizer>args.ios;
467
468 return <RotationGestureEventData>{
469 type: args.type,
470 view: args.view,
471 ios: args.ios,
472 android: undefined,
473 rotation: recognizer.rotation * (180.0 / Math.PI),
474 object: args.view,
475 eventName: toString(args.type),
476 state: getState(recognizer),
477 };
478}
479
480function _getLongPressData(args: GestureEventData): GestureEventDataWithState {
481 const recognizer = <UILongPressGestureRecognizer>args.ios;

Callers 1

_attachMethod · 0.85

Calls 2

toStringFunction · 0.90
getStateFunction · 0.85

Tested by

no test coverage detected