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 CHANGED
@@ -4,7 +4,7 @@ Modern multi touch gesture recognizer using rxjs.
4
4
 
5
5
  # Documentation
6
6
 
7
- Head over the [documentation](https://github.com/mbret/gesturx/wiki/Documentation).
7
+ Head over the [documentation](https://bret-maxime.gitbook.io/gesturx).
8
8
 
9
9
  # Demo
10
10
 
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
- abstract events$: Observable<Event>;
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