mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
add angular integration
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Gesture, GestureConfig, createGesture } from '@ionic/core';
|
import { Gesture, GestureConfig, PressRecognizerOptions, createGesture, createPressRecognizer } from '@ionic/core';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
@ -11,4 +11,11 @@ export class GestureController {
|
|||||||
create(opts: GestureConfig): Gesture {
|
create(opts: GestureConfig): Gesture {
|
||||||
return createGesture(opts);
|
return createGesture(opts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new Press recognizer gesture
|
||||||
|
*/
|
||||||
|
pressRecognizer(opts: PressRecognizerOptions): Gesture {
|
||||||
|
return createPressRecognizer(opts);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
1
core/src/interface.d.ts
vendored
1
core/src/interface.d.ts
vendored
@ -34,7 +34,6 @@ export * from './components/virtual-scroll/virtual-scroll-interface';
|
|||||||
export { Animation, AnimationBuilder } from './utils/animation/animation-interface';
|
export { Animation, AnimationBuilder } from './utils/animation/animation-interface';
|
||||||
export * from './utils/overlays-interface';
|
export * from './utils/overlays-interface';
|
||||||
export * from './global/config';
|
export * from './global/config';
|
||||||
|
|
||||||
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
|
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
|
||||||
export { PressRecognizerOptions } from './utils/gesture/recognizers/press';
|
export { PressRecognizerOptions } from './utils/gesture/recognizers/press';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user