@readerseye2/cr_viewer 1.0.23 → 1.0.25
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageSectionWrap.d.ts","sourceRoot":"","sources":["../../src/components/PageSectionWrap.tsx"],"names":[],"mappings":"AAgGA,iCAAiC;AACjC,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,cAAc,EAAE,UAAU,GAAG,IAAI,CAAC;CACnC,CAAC;AA+BF,MAAM,CAAC,OAAO,UAAU,eAAe,
|
|
1
|
+
{"version":3,"file":"PageSectionWrap.d.ts","sourceRoot":"","sources":["../../src/components/PageSectionWrap.tsx"],"names":[],"mappings":"AAgGA,iCAAiC;AACjC,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,cAAc,EAAE,UAAU,GAAG,IAAI,CAAC;CACnC,CAAC;AA+BF,MAAM,CAAC,OAAO,UAAU,eAAe,4CAmnBtC"}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type Opts
|
|
2
|
+
type Opts = {
|
|
3
3
|
onPrev: () => void;
|
|
4
4
|
onNext: () => void;
|
|
5
|
-
onSingle?: (
|
|
6
|
-
onDouble?: (
|
|
5
|
+
onSingle?: () => void;
|
|
6
|
+
onDouble?: () => void;
|
|
7
7
|
shouldIgnoreTarget?: (t: EventTarget | null) => boolean;
|
|
8
|
-
/** 스와이프(
|
|
8
|
+
/** 스와이프(터치/드래그)에만 적용되는 추가 무시 판별 */
|
|
9
9
|
shouldIgnoreSwipe?: (t: EventTarget | null) => boolean;
|
|
10
10
|
horizontalThreshold?: number;
|
|
11
|
-
verticalTolerance?: number;
|
|
12
11
|
velocityThreshold?: number;
|
|
13
12
|
singleDelayMs?: number;
|
|
14
13
|
doubleClickWindowMs?: number;
|
|
15
|
-
suppressAfterSwipeMs?: number;
|
|
16
14
|
onDragMove?: (offset: number) => void;
|
|
17
15
|
onDragEnd?: () => void;
|
|
16
|
+
/** horizontalThreshold 대신 페이지 전환에 쓸 별도 임계값 */
|
|
18
17
|
pageTransitionThreshold?: number;
|
|
19
18
|
};
|
|
20
|
-
export declare function useSwipePagerClicks<E extends HTMLElement = HTMLDivElement>(opts: Opts
|
|
19
|
+
export declare function useSwipePagerClicks<E extends HTMLElement = HTMLDivElement>(opts: Opts): {
|
|
20
|
+
onTouchStart: (e: React.TouchEvent<E>) => void;
|
|
21
|
+
onTouchMove: (e: React.TouchEvent<E>) => void;
|
|
22
|
+
onTouchEnd: (e: React.TouchEvent<E>) => void;
|
|
23
|
+
onTouchCancel: () => void;
|
|
21
24
|
onPointerDown: (e: React.PointerEvent<E>) => void;
|
|
22
25
|
onPointerMove: (e: React.PointerEvent<E>) => void;
|
|
23
26
|
onPointerUp: (e: React.PointerEvent<E>) => void;
|
|
24
|
-
onPointerCancel: () => void;
|
|
25
|
-
onPointerLeave: (e: React.PointerEvent<E>) => void;
|
|
27
|
+
onPointerCancel: (e: React.PointerEvent<E>) => void;
|
|
26
28
|
onLostPointerCapture: () => void;
|
|
27
29
|
onClick: (e: React.MouseEvent<E>) => void;
|
|
28
|
-
onDoubleClick: (e: React.MouseEvent<E>) => void;
|
|
29
30
|
};
|
|
30
31
|
export default useSwipePagerClicks;
|
|
31
32
|
//# sourceMappingURL=useSwipePageClicks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwipePageClicks.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwipePageClicks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"useSwipePageClicks.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwipePageClicks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB,kBAAkB,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC;IACxD,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,OAAO,CAAC;IAGvD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,8CAA8C;IAC9C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,wBAA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