gesturx 1.7.6 → 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/dist/index.d.ts CHANGED
@@ -58,6 +58,7 @@ export declare interface PinchEvent extends RecognizerEvent {
58
58
  export declare class PinchRecognizer extends Recognizer<PinchRecognizerOptions, PinchEvent> implements PinchRecognizerInterface {
59
59
  events$: Observable<PinchEvent>;
60
60
  start$: Observable<PinchEvent>;
61
+ end$: Observable<PinchEvent>;
61
62
  constructor(config?: RecognizerConfig<PinchRecognizerOptions>);
62
63
  update(options: RecognizerConfig<PinchRecognizerOptions>): void;
63
64
  }
@@ -139,13 +140,16 @@ export declare abstract class Recognizer<Options extends object = never, Event e
139
140
  protected pointerMove$: Observable<PointerEvent>;
140
141
  protected pointerOff$: Observable<PointerEvent>;
141
142
  state$: Observable<State>;
142
- abstract events$: Observable<Event>;
143
- protected failWith$: Observable<unknown>;
144
143
  config$: Observable<RecognizerConfig<Options> & {
145
144
  panConfig?: PanConfig | undefined;
146
145
  } & {
147
146
  container: HTMLElement;
148
147
  }>;
148
+ abstract events$: Observable<Event>;
149
+ /**
150
+ * Track active running failWith recognizers
151
+ */
152
+ protected failWithActive$: Observable<boolean>;
149
153
  constructor(config?: RecognizerConfig<Options>, panConfig?: PanConfig);
150
154
  private updateInternal;
151
155
  update(config: Partial<RecognizerConfig<Options>>, panConfig?: PanConfig): void;
@@ -157,6 +161,7 @@ export declare type RecognizerConfig<Options> = {
157
161
  options?: Options;
158
162
  failWith?: {
159
163
  start$: Observable<unknown>;
164
+ end$: Observable<unknown>;
160
165
  }[];
161
166
  };
162
167