gesturx 1.7.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.js +445 -404
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export declare interface PinchEvent extends RecognizerEvent {
|
|
|
57
57
|
|
|
58
58
|
export declare class PinchRecognizer extends Recognizer<PinchRecognizerOptions, PinchEvent> implements PinchRecognizerInterface {
|
|
59
59
|
events$: Observable<PinchEvent>;
|
|
60
|
+
start$: Observable<PinchEvent>;
|
|
61
|
+
end$: Observable<PinchEvent>;
|
|
60
62
|
constructor(config?: RecognizerConfig<PinchRecognizerOptions>);
|
|
61
63
|
update(options: RecognizerConfig<PinchRecognizerOptions>): void;
|
|
62
64
|
}
|
|
@@ -138,13 +140,16 @@ export declare abstract class Recognizer<Options extends object = never, Event e
|
|
|
138
140
|
protected pointerMove$: Observable<PointerEvent>;
|
|
139
141
|
protected pointerOff$: Observable<PointerEvent>;
|
|
140
142
|
state$: Observable<State>;
|
|
141
|
-
|
|
142
|
-
protected failWith$: Observable<unknown>;
|
|
143
|
-
protected config$: Observable<RecognizerConfig<Options> & {
|
|
143
|
+
config$: Observable<RecognizerConfig<Options> & {
|
|
144
144
|
panConfig?: PanConfig | undefined;
|
|
145
145
|
} & {
|
|
146
146
|
container: HTMLElement;
|
|
147
147
|
}>;
|
|
148
|
+
abstract events$: Observable<Event>;
|
|
149
|
+
/**
|
|
150
|
+
* Track active running failWith recognizers
|
|
151
|
+
*/
|
|
152
|
+
protected failWithActive$: Observable<boolean>;
|
|
148
153
|
constructor(config?: RecognizerConfig<Options>, panConfig?: PanConfig);
|
|
149
154
|
private updateInternal;
|
|
150
155
|
update(config: Partial<RecognizerConfig<Options>>, panConfig?: PanConfig): void;
|
|
@@ -156,6 +161,7 @@ export declare type RecognizerConfig<Options> = {
|
|
|
156
161
|
options?: Options;
|
|
157
162
|
failWith?: {
|
|
158
163
|
start$: Observable<unknown>;
|
|
164
|
+
end$: Observable<unknown>;
|
|
159
165
|
}[];
|
|
160
166
|
};
|
|
161
167
|
|