vevet 3.3.1 → 3.4.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/lib/cjs/components/AnimationFrame/index.js.map +1 -1
- package/lib/cjs/components/BaseTimeline/index.js.map +1 -1
- package/lib/cjs/components/Ctx2D/index.js.map +1 -1
- package/lib/cjs/components/CustomCursor/index.js.map +1 -1
- package/lib/cjs/components/DraggerBase/index.js.map +1 -1
- package/lib/cjs/components/DraggerMove/index.js.map +1 -1
- package/lib/cjs/components/Marquee/index.js +8 -0
- package/lib/cjs/components/Marquee/index.js.map +1 -1
- package/lib/cjs/components/Preloader/index.js.map +1 -1
- package/lib/cjs/components/ProgressPreloader/index.js.map +1 -1
- package/lib/cjs/components/ScrollBar/index.js.map +1 -1
- package/lib/cjs/components/ScrollView/index.js.map +1 -1
- package/lib/cjs/components/SmoothScroll/index.js.map +1 -1
- package/lib/cjs/components/SmoothScrollDragPlugin/index.js.map +1 -1
- package/lib/cjs/components/SmoothScrollKeyboardPlugin/index.js.map +1 -1
- package/lib/cjs/components/SplitText/index.js.map +1 -1
- package/lib/cjs/components/Timeline/index.js.map +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/components/AnimationFrame/index.js.map +1 -1
- package/lib/esm/components/BaseTimeline/index.js.map +1 -1
- package/lib/esm/components/Ctx2D/index.js.map +1 -1
- package/lib/esm/components/CustomCursor/index.js.map +1 -1
- package/lib/esm/components/DraggerBase/index.js.map +1 -1
- package/lib/esm/components/DraggerMove/index.js.map +1 -1
- package/lib/esm/components/Marquee/index.js +8 -0
- package/lib/esm/components/Marquee/index.js.map +1 -1
- package/lib/esm/components/Preloader/index.js.map +1 -1
- package/lib/esm/components/ProgressPreloader/index.js.map +1 -1
- package/lib/esm/components/ScrollBar/index.js.map +1 -1
- package/lib/esm/components/ScrollView/index.js.map +1 -1
- package/lib/esm/components/SmoothScroll/index.js.map +1 -1
- package/lib/esm/components/SmoothScrollDragPlugin/index.js.map +1 -1
- package/lib/esm/components/SmoothScrollKeyboardPlugin/index.js.map +1 -1
- package/lib/esm/components/SplitText/index.js.map +1 -1
- package/lib/esm/components/Timeline/index.js.map +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/components/AnimationFrame/index.d.ts +11 -11
- package/lib/types/components/AnimationFrame/index.d.ts.map +1 -1
- package/lib/types/components/BaseTimeline/index.d.ts +7 -4
- package/lib/types/components/BaseTimeline/index.d.ts.map +1 -1
- package/lib/types/components/Ctx2D/index.d.ts +6 -6
- package/lib/types/components/Ctx2D/index.d.ts.map +1 -1
- package/lib/types/components/CustomCursor/index.d.ts +20 -19
- package/lib/types/components/CustomCursor/index.d.ts.map +1 -1
- package/lib/types/components/DraggerBase/index.d.ts +11 -10
- package/lib/types/components/DraggerBase/index.d.ts.map +1 -1
- package/lib/types/components/DraggerMove/index.d.ts +1 -1
- package/lib/types/components/DraggerMove/index.d.ts.map +1 -1
- package/lib/types/components/Marquee/index.d.ts +2 -1
- package/lib/types/components/Marquee/index.d.ts.map +1 -1
- package/lib/types/components/Preloader/index.d.ts +7 -7
- package/lib/types/components/Preloader/index.d.ts.map +1 -1
- package/lib/types/components/ProgressPreloader/index.d.ts +11 -9
- package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -1
- package/lib/types/components/ScrollBar/index.d.ts +5 -4
- package/lib/types/components/ScrollBar/index.d.ts.map +1 -1
- package/lib/types/components/ScrollView/index.d.ts +1 -1
- package/lib/types/components/ScrollView/index.d.ts.map +1 -1
- package/lib/types/components/SmoothScroll/index.d.ts +6 -4
- package/lib/types/components/SmoothScroll/index.d.ts.map +1 -1
- package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +12 -10
- package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +1 -1
- package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +5 -4
- package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +1 -1
- package/lib/types/components/SplitText/index.d.ts +13 -13
- package/lib/types/components/SplitText/index.d.ts.map +1 -1
- package/lib/types/components/Timeline/index.d.ts +5 -5
- package/lib/types/components/Timeline/index.d.ts.map +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AnimationFrame/index.ts +11 -11
- package/src/components/BaseTimeline/index.ts +4 -4
- package/src/components/Ctx2D/index.ts +6 -6
- package/src/components/CustomCursor/index.ts +19 -19
- package/src/components/DraggerBase/index.ts +10 -10
- package/src/components/DraggerMove/index.ts +1 -1
- package/src/components/Marquee/index.ts +11 -1
- package/src/components/Preloader/index.ts +7 -7
- package/src/components/ProgressPreloader/index.ts +9 -9
- package/src/components/ScrollBar/index.ts +4 -4
- package/src/components/ScrollView/index.ts +1 -1
- package/src/components/SmoothScroll/index.ts +4 -4
- package/src/components/SmoothScrollDragPlugin/index.ts +10 -10
- package/src/components/SmoothScrollKeyboardPlugin/index.ts +4 -4
- package/src/components/SplitText/index.ts +13 -13
- package/src/components/Timeline/index.ts +5 -5
- package/src/version.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnimationFrame } from '../AnimationFrame';
|
|
1
2
|
import { NCustomCursor } from './types';
|
|
2
3
|
import { Component as ComponentClass } from '../../base/Component';
|
|
3
4
|
export type { NCustomCursor };
|
|
@@ -19,33 +20,33 @@ export declare class CustomCursor<StaticProps extends NCustomCursor.IStaticProps
|
|
|
19
20
|
/** Cursor container */
|
|
20
21
|
get container(): Window | Element;
|
|
21
22
|
/** Cursor container */
|
|
22
|
-
|
|
23
|
+
protected _container: Element | Window;
|
|
23
24
|
/** The container is window */
|
|
24
|
-
|
|
25
|
+
protected _isContainerWindow: boolean;
|
|
25
26
|
/** DOM parent for the cursor element */
|
|
26
27
|
get domContainer(): HTMLElement;
|
|
27
28
|
/** Cursor element (outer element) */
|
|
28
29
|
get outerElement(): HTMLElement;
|
|
29
30
|
/** Outer cursor element */
|
|
30
|
-
|
|
31
|
+
protected _outerElement: HTMLElement;
|
|
31
32
|
/** Cursor element (inner element) */
|
|
32
33
|
get innerElement(): HTMLElement;
|
|
33
34
|
/** Inner cursor element */
|
|
34
|
-
|
|
35
|
+
protected _innerElement: HTMLElement;
|
|
35
36
|
/** Hovered element */
|
|
36
|
-
|
|
37
|
+
protected _hoveredElement?: NCustomCursor.IHoveredElement | undefined;
|
|
37
38
|
/** Hovered element */
|
|
38
39
|
get hoveredElement(): NCustomCursor.IHoveredElement | undefined;
|
|
39
40
|
/** Hovered element */
|
|
40
41
|
set hoveredElement(value: NCustomCursor.IHoveredElement | undefined);
|
|
41
42
|
/** Animation frame */
|
|
42
|
-
|
|
43
|
+
protected _animationFrame: AnimationFrame;
|
|
43
44
|
/** Current cursor coordinates */
|
|
44
|
-
|
|
45
|
+
protected _coords: NCustomCursor.ICoords;
|
|
45
46
|
/** Current cursor coordinates */
|
|
46
47
|
get coords(): NCustomCursor.ICoords;
|
|
47
48
|
/** Target cursor coordinates */
|
|
48
|
-
|
|
49
|
+
protected _targetCoords: NCustomCursor.ICoords;
|
|
49
50
|
/** Target cursor coordinates */
|
|
50
51
|
get targetCoords(): {
|
|
51
52
|
x: number;
|
|
@@ -59,21 +60,21 @@ export declare class CustomCursor<StaticProps extends NCustomCursor.IStaticProps
|
|
|
59
60
|
/** Handle properties mutation */
|
|
60
61
|
protected _onPropsMutate(): void;
|
|
61
62
|
/** Create custom cursor */
|
|
62
|
-
|
|
63
|
+
protected _createCursor(): void;
|
|
63
64
|
/** Set module events */
|
|
64
|
-
|
|
65
|
+
protected _setEvents(): void;
|
|
65
66
|
/** Event on mouse enter */
|
|
66
|
-
|
|
67
|
+
protected _handleMouseEnter(evt: MouseEvent): void;
|
|
67
68
|
/** Event on mouse leave */
|
|
68
|
-
|
|
69
|
+
protected _handleMouseLeave(): void;
|
|
69
70
|
/** Event on mouse move */
|
|
70
|
-
|
|
71
|
+
protected _handleMouseMove(evt: MouseEvent): void;
|
|
71
72
|
/** Event on mouse down */
|
|
72
|
-
|
|
73
|
+
protected _handleMouseDown(evt: MouseEvent): void;
|
|
73
74
|
/** Event on mouse up */
|
|
74
|
-
|
|
75
|
+
protected _handleMouseUp(): void;
|
|
75
76
|
/** Event on window blur */
|
|
76
|
-
|
|
77
|
+
protected _handleWindowBlur(): void;
|
|
77
78
|
/** Set hover events on an element */
|
|
78
79
|
addHoverElement(settingsProp: NCustomCursor.IHoveredElement, enterTimeout?: number): {
|
|
79
80
|
remove: () => void;
|
|
@@ -85,11 +86,11 @@ export declare class CustomCursor<StaticProps extends NCustomCursor.IStaticProps
|
|
|
85
86
|
/** Render the scene */
|
|
86
87
|
render(): void;
|
|
87
88
|
/** Recalculate current coordinates */
|
|
88
|
-
|
|
89
|
+
protected _calculateCoords(): void;
|
|
89
90
|
/** Linear interpolation */
|
|
90
|
-
|
|
91
|
+
protected _lerp(current: number, target: number): number;
|
|
91
92
|
/** Render elements */
|
|
92
|
-
|
|
93
|
+
protected _renderElements(): NCustomCursor.ICoords;
|
|
93
94
|
/** Enable cursor animation */
|
|
94
95
|
protected _enable(): void;
|
|
95
96
|
/** Disable cursor animation */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomCursor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CustomCursor/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG/D,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B;;GAEG;AACH,qBAAa,YAAY,CACvB,WAAW,SAAS,aAAa,CAAC,YAAY,GAAG,aAAa,CAAC,YAAY,EAC3E,eAAe,SAAS,aAAa,CAAC,gBAAgB,GAAG,aAAa,CAAC,gBAAgB,EACvF,cAAc,SA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,SAAS,CAAC,cAAc;IAUxB,2BAA2B;IAC3B,SAAS,CAAC,aAAa;IA4CvB,wBAAwB;IACxB,SAAS,CAAC,UAAU;IAwCpB,2BAA2B;IAC3B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,UAAU;IAS3C,2BAA2B;IAC3B,SAAS,CAAC,iBAAiB;IAI3B,0BAA0B;IAC1B,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU;IAW1C,0BAA0B;IAC1B,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU;IAO1C,wBAAwB;IACxB,SAAS,CAAC,cAAc;IAKxB,2BAA2B;IAC3B,SAAS,CAAC,iBAAiB;IAI3B,qCAAqC;IAC9B,eAAe,CACpB,YAAY,EAAE,aAAa,CAAC,eAAe,EAC3C,YAAY,SAAM;;;IA2CpB;;OAEG;IACH,IAAW,oBAAoB,YAS9B;IAED,uBAAuB;IAChB,MAAM;IAcb,sCAAsC;IACtC,SAAS,CAAC,gBAAgB;IAS1B,2BAA2B;IAC3B,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAY/C,sBAAsB;IACtB,SAAS,CAAC,eAAe,IAAI,aAAa,CAAC,OAAO;IAmBlD,8BAA8B;IAC9B,SAAS,CAAC,OAAO;IAOjB,+BAA+B;IAC/B,SAAS,CAAC,QAAQ;CAMnB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { IAddEventListener } from 'vevet-dom';
|
|
2
3
|
import { NDraggerBase } from './types';
|
|
3
4
|
import { Component as ComponentClass } from '../../base/Component';
|
|
@@ -13,7 +14,7 @@ export declare abstract class DraggerBase<StaticProps extends NDraggerBase.IStat
|
|
|
13
14
|
};
|
|
14
15
|
get prefix(): string;
|
|
15
16
|
/** Preloader container */
|
|
16
|
-
|
|
17
|
+
protected _container: Element | Window;
|
|
17
18
|
/** Preloader container */
|
|
18
19
|
get container(): Window | Element;
|
|
19
20
|
/** Runtime events */
|
|
@@ -21,29 +22,29 @@ export declare abstract class DraggerBase<StaticProps extends NDraggerBase.IStat
|
|
|
21
22
|
/** Dragging at the moment */
|
|
22
23
|
get isDragging(): boolean;
|
|
23
24
|
/** Current pointer id */
|
|
24
|
-
|
|
25
|
+
protected _pointerID: number | null;
|
|
25
26
|
/** Current pointer id */
|
|
26
27
|
protected get pointerID(): number | null;
|
|
27
28
|
/** Current coordinates */
|
|
28
|
-
|
|
29
|
+
protected _coords: NDraggerBase.IVector2;
|
|
29
30
|
/** Current coordinates */
|
|
30
31
|
get coords(): NDraggerBase.IVector2;
|
|
31
32
|
/** Current coordinates */
|
|
32
33
|
protected set coords(value: NDraggerBase.IVector2);
|
|
33
34
|
/** Last coordinates */
|
|
34
|
-
|
|
35
|
+
protected _prevCoords: NDraggerBase.IVector2;
|
|
35
36
|
/** Last coordinates */
|
|
36
37
|
get prevCoords(): NDraggerBase.IVector2;
|
|
37
38
|
/** Last coordinates */
|
|
38
39
|
protected set prevCoords(value: NDraggerBase.IVector2);
|
|
39
40
|
/** Coordinates on drag start */
|
|
40
|
-
|
|
41
|
+
protected _startCoords: NDraggerBase.IVector2;
|
|
41
42
|
/** Coordinates on drag start */
|
|
42
43
|
get startCoords(): NDraggerBase.IVector2;
|
|
43
44
|
/** Timeout of `handleEnd` */
|
|
44
|
-
|
|
45
|
+
protected _handleEndTimeout?: NodeJS.Timeout;
|
|
45
46
|
/** Current event type */
|
|
46
|
-
|
|
47
|
+
protected _type?: 'mouse' | 'touch';
|
|
47
48
|
/** Current event type */
|
|
48
49
|
get type(): "mouse" | "touch" | undefined;
|
|
49
50
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit?: boolean);
|
|
@@ -53,7 +54,7 @@ export declare abstract class DraggerBase<StaticProps extends NDraggerBase.IStat
|
|
|
53
54
|
/** Add runtime events */
|
|
54
55
|
protected _addRuntimeEvents(): void;
|
|
55
56
|
/** Remove runtime events */
|
|
56
|
-
|
|
57
|
+
protected _removeRuntimeEvents(): void;
|
|
57
58
|
/** Get normalized event coordinates */
|
|
58
59
|
protected _getEventCoords(event: NDraggerBase.TEvent): {
|
|
59
60
|
x: number;
|
|
@@ -65,9 +66,9 @@ export declare abstract class DraggerBase<StaticProps extends NDraggerBase.IStat
|
|
|
65
66
|
pointerId: null;
|
|
66
67
|
};
|
|
67
68
|
/** Event on drag start */
|
|
68
|
-
|
|
69
|
+
protected _handleStart(event: NDraggerBase.TEvent): boolean;
|
|
69
70
|
/** Event on drag end */
|
|
70
|
-
|
|
71
|
+
protected handleEnd(event: NDraggerBase.TEvent): void;
|
|
71
72
|
/** Event on drag end */
|
|
72
73
|
protected _handleEnd(event: NDraggerBase.TEvent): void;
|
|
73
74
|
/** Cancel dragging */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DraggerBase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE/D,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;GAEG;AACH,8BAAsB,WAAW,CAC/B,WAAW,SAAS,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,YAAY,EACzE,eAAe,SAAS,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,EACrF,cAAc,SAAS,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,CAClF,SAAQ,cAAc,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IACpE,SAAS,CAAC,gBAAgB;;;;;IAS1B,IAAI,MAAM,WAET;IAED,0BAA0B;IAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DraggerBase/index.ts"],"names":[],"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AAgC;IAChC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC;IAE9C,gCAAgC;IAChC,IAAI,WAAW,0BAEd;IAED,6BAA6B;IAC7B,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;IAE7C,yBAAyB;IACzB,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAEpC,yBAAyB;IACzB,IAAI,IAAI,kCAEP;gBAEW,YAAY,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,OAAO,UAAO;IAoBxE,SAAS,CAAC,KAAK;IAMf,yBAAyB;IACzB,SAAS,CAAC,UAAU;IAgBpB,yBAAyB;IACzB,SAAS,CAAC,iBAAiB;IA4B3B,4BAA4B;IAC5B,SAAS,CAAC,oBAAoB;IAM9B,uCAAuC;IACvC,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;;;;;;;;;IAqBpD,0BAA0B;IAC1B,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IAuCjD,wBAAwB;IACxB,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IAkB9C,wBAAwB;IAExB,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IAI/C,sBAAsB;IACf,MAAM;IAMb,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAWnB"}
|
|
@@ -27,7 +27,7 @@ export declare class DraggerMove<StaticProps extends NDraggerMove.IStaticProps =
|
|
|
27
27
|
protected _handleMove(event: NDraggerBase.TEvent): boolean;
|
|
28
28
|
/** Event on drag end */
|
|
29
29
|
protected _handleEnd(event: NDraggerBase.TEvent): void;
|
|
30
|
-
|
|
30
|
+
protected _togglePointerEvents(isEnabledProp: boolean): void;
|
|
31
31
|
/** Destroy the module */
|
|
32
32
|
protected _destroy(): void;
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DraggerMove/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;GAEG;AACH,qBAAa,WAAW,CACtB,WAAW,SAAS,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,YAAY,EACzE,eAAe,SAAS,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,EACrF,cAAc,SAAS,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,CAClF,SAAQ,WAAW,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IACjE,SAAS,CAAC,gBAAgB;;;;;;IAO1B,gBAAgB;IAChB,IAAI,UAAU;;;MAKb;IAED,kDAAkD;IAClD,IAAI,UAAU;;;MAKb;IAED,yBAAyB;IACzB,SAAS,CAAC,iBAAiB;IAoC3B,oBAAoB;IACpB,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IA0BhD,wBAAwB;IACxB,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IAM/C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DraggerMove/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;GAEG;AACH,qBAAa,WAAW,CACtB,WAAW,SAAS,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC,YAAY,EACzE,eAAe,SAAS,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,EACrF,cAAc,SAAS,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,eAAe,CAClF,SAAQ,WAAW,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IACjE,SAAS,CAAC,gBAAgB;;;;;;IAO1B,gBAAgB;IAChB,IAAI,UAAU;;;MAKb;IAED,kDAAkD;IAClD,IAAI,UAAU;;;MAKb;IAED,yBAAyB;IACzB,SAAS,CAAC,iBAAiB;IAoC3B,oBAAoB;IACpB,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IA0BhD,wBAAwB;IACxB,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM;IAM/C,SAAS,CAAC,oBAAoB,CAAC,aAAa,EAAE,OAAO;IAiBrD,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAGnB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NMarquee } from './types';
|
|
2
2
|
import { Component as ComponentClass } from '../../base/Component';
|
|
3
|
+
import { AnimationFrame } from '../AnimationFrame';
|
|
3
4
|
export type { NMarquee };
|
|
4
5
|
/**
|
|
5
6
|
* Custom Marquee
|
|
@@ -35,7 +36,7 @@ export declare class Marquee<StaticProps extends NMarquee.IStaticProps = NMarque
|
|
|
35
36
|
/** Can play */
|
|
36
37
|
protected _canPlay: boolean;
|
|
37
38
|
/** Animation frame */
|
|
38
|
-
|
|
39
|
+
protected _animationFrame?: AnimationFrame;
|
|
39
40
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit?: boolean);
|
|
40
41
|
/** Init the class */
|
|
41
42
|
protected _init(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Marquee/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,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e,EAAE,OAAO,UAAO;IAwBxE,qBAAqB;IACrB,SAAS,CAAC,KAAK;IAMf,iCAAiC;IACjC,SAAS,CAAC,cAAc;IAUxB,uBAAuB;IACvB,SAAS,CAAC,UAAU;IA2Cb,MAAM;IAQb,SAAS,CAAC,YAAY;IAiDtB,2BAA2B;IAC3B,SAAS,CAAC,WAAW,CAAC,OAAO,UAAQ;IA6BrC;;;;OAIG;IACH,SAAS,CAAC,iBAAiB;IAuB3B;;OAEG;IACH,SAAS,CAAC,oBAAoB;IAK9B,qBAAqB;IACd,MAAM,CAAC,KAAK,SAAmB;IAItC,qBAAqB;IACrB,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM;IAmCpC,SAAS,CAAC,QAAQ;CAOnB"}
|
|
@@ -12,15 +12,15 @@ export declare class Preloader<StaticProps extends NPreloader.IStaticProps = NPr
|
|
|
12
12
|
};
|
|
13
13
|
get prefix(): string;
|
|
14
14
|
/** Preloader container */
|
|
15
|
-
|
|
15
|
+
protected _container?: HTMLElement | false;
|
|
16
16
|
/** Preloader container */
|
|
17
17
|
get container(): false | HTMLElement | undefined;
|
|
18
18
|
/** Preloader start time */
|
|
19
|
-
|
|
19
|
+
protected _startTime: number;
|
|
20
20
|
/** Preloader start time */
|
|
21
21
|
get startTime(): number;
|
|
22
22
|
/** Preloader end time */
|
|
23
|
-
|
|
23
|
+
protected _endTime: number;
|
|
24
24
|
/** Preloader end time */
|
|
25
25
|
get endTime(): number;
|
|
26
26
|
/**
|
|
@@ -28,9 +28,9 @@ export declare class Preloader<StaticProps extends NPreloader.IStaticProps = NPr
|
|
|
28
28
|
*/
|
|
29
29
|
get totalTime(): number;
|
|
30
30
|
/** Preloader is to be hidden */
|
|
31
|
-
|
|
31
|
+
protected _isToBeHidden: boolean;
|
|
32
32
|
/** Preloader is hidden */
|
|
33
|
-
|
|
33
|
+
protected _isHidden: boolean;
|
|
34
34
|
/** Preloader is hidden */
|
|
35
35
|
get isHidden(): boolean;
|
|
36
36
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit?: boolean);
|
|
@@ -41,11 +41,11 @@ export declare class Preloader<StaticProps extends NPreloader.IStaticProps = NPr
|
|
|
41
41
|
/** Catch the moment when the page is fully loaded */
|
|
42
42
|
protected _onLoaded(): PCancelable<any>;
|
|
43
43
|
/** When the page is fully loaded */
|
|
44
|
-
|
|
44
|
+
protected _handleLoaded(): void;
|
|
45
45
|
/** Hide the preloader */
|
|
46
46
|
hide(duration?: number): PCancelable<any>;
|
|
47
47
|
/** Handle the moment when the preloader is hidden */
|
|
48
|
-
|
|
48
|
+
protected _handleHidden(): void;
|
|
49
49
|
/** Callback for the moment when the preloader starts hiding */
|
|
50
50
|
onHide(action: () => void): import("../..").NCallbacks.IAddedCallback | undefined;
|
|
51
51
|
/** Callback for the moment when the preloader is hidden */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Preloader/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG/D,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,SAAS,CACpB,WAAW,SAAS,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,EACrE,eAAe,SAAS,UAAU,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,EACjF,cAAc,SAAS,UAAU,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAC9E,SAAQ,cAAc,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IACpE,SAAS,CAAC,gBAAgB;;;;IAQ1B,IAAI,MAAM,WAET;IAED,0BAA0B;IAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src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SAAS,CAAC,SAAS;IAInB,oCAAoC;IACpC,SAAS,CAAC,aAAa;IASvB,yBAAyB;IAClB,IAAI,CACT,QAAQ,SAED;IAgCT,qDAAqD;IACrD,SAAS,CAAC,aAAa;IAKvB,+DAA+D;IACxD,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI;IAUhC,2DAA2D;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI;CASnC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PCancelable } from '../../utils/common/PCancelable';
|
|
2
|
+
import { AnimationFrame } from '../AnimationFrame';
|
|
2
3
|
import { Preloader } from '../Preloader';
|
|
4
|
+
import { Timeline } from '../Timeline';
|
|
3
5
|
import { NProgressPreloader } from './types';
|
|
4
6
|
export type { NProgressPreloader };
|
|
5
7
|
/**
|
|
@@ -18,35 +20,35 @@ export declare class ProgressPreloader<StaticProps extends NProgressPreloader.IS
|
|
|
18
20
|
hideAnimation: number;
|
|
19
21
|
};
|
|
20
22
|
/** Images to be preloaded */
|
|
21
|
-
|
|
23
|
+
protected _images: HTMLImageElement[];
|
|
22
24
|
/** Images to be preloaded */
|
|
23
25
|
get images(): HTMLImageElement[];
|
|
24
26
|
/** Videos to be preloaded */
|
|
25
|
-
|
|
27
|
+
protected _videos: HTMLVideoElement[];
|
|
26
28
|
/** Videos to be preloaded */
|
|
27
29
|
get videos(): HTMLVideoElement[];
|
|
28
30
|
/** Custom resources to be preloaded */
|
|
29
|
-
|
|
31
|
+
protected _customResources: NProgressPreloader.ICustomResourceData[];
|
|
30
32
|
/** Custom resources to be preloaded */
|
|
31
33
|
get customResources(): NProgressPreloader.ICustomResourceData[];
|
|
32
|
-
|
|
34
|
+
protected _resourcesQuantity: number;
|
|
33
35
|
/** Quantity of resources to be preloader */
|
|
34
36
|
get resourcesQuantity(): number;
|
|
35
37
|
/** Quantity of loaded resources */
|
|
36
|
-
|
|
38
|
+
protected _loadedResourcesQuantity: number;
|
|
37
39
|
/** Quantity of loaded resources */
|
|
38
40
|
get loadedResourcesQuantity(): number;
|
|
39
41
|
/** Loading progress */
|
|
40
42
|
get loadProgress(): number;
|
|
41
43
|
/** Preloader progress */
|
|
42
|
-
|
|
44
|
+
protected _progress: number;
|
|
43
45
|
/** Preloader progress */
|
|
44
46
|
get progress(): number;
|
|
45
47
|
protected set progress(val: number);
|
|
46
48
|
/** Animation frame for smooth progress calculation */
|
|
47
|
-
|
|
49
|
+
protected _animationFrame?: AnimationFrame;
|
|
48
50
|
/** Timeline to finish progress animation */
|
|
49
|
-
|
|
51
|
+
protected _endTimeline?: Timeline;
|
|
50
52
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit?: boolean);
|
|
51
53
|
protected _init(): void;
|
|
52
54
|
/** Set events */
|
|
@@ -58,7 +60,7 @@ export declare class ProgressPreloader<StaticProps extends NProgressPreloader.IS
|
|
|
58
60
|
/** Preload all resources */
|
|
59
61
|
protected _preloadResources(): void;
|
|
60
62
|
/** Event on resource loaded */
|
|
61
|
-
|
|
63
|
+
protected _handleLoadedResource({ element, isSuccess, }: NProgressPreloader.IHandleLoadedResourceParameter): void;
|
|
62
64
|
/** Iterate quantity of loaded resources */
|
|
63
65
|
iterateLoadedResources(quantityProp?: number): void;
|
|
64
66
|
/** Iterate quantity of total resources */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressPreloader/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressPreloader/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aA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CAA4C;IAC5C,SAAS,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC;gBAEtB,YAAY,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,OAAO,UAAO;IAgBxE,SAAS,CAAC,KAAK;IAMf,iBAAiB;IACjB,SAAS,CAAC,UAAU;IA0BpB,oCAAoC;IACpC,SAAS,CAAC,aAAa;IAwDvB,qDAAqD;IACrD,SAAS,CAAC,SAAS;IAmBnB,4BAA4B;IAC5B,SAAS,CAAC,iBAAiB;IAwB3B,+BAA+B;IAC/B,SAAS,CAAC,qBAAqB,CAAC,EAC9B,OAAO,EACP,SAAS,GACV,EAAE,kBAAkB,CAAC,8BAA8B;IAmBpD,2CAA2C;IACpC,sBAAsB,CAAC,YAAY,SAAI;IAQ9C,0CAA0C;IACnC,wBAAwB,CAAC,QAAQ,SAAI;IAI5C,+BAA+B;IAC/B,SAAS,CAAC,qBAAqB;IA4C/B,4BAA4B;IAC5B,SAAS,CAAC,QAAQ;CAMnB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SmoothScroll } from '../SmoothScroll';
|
|
2
|
+
import Bar from './Bar';
|
|
2
3
|
import { NScrollBar } from './types';
|
|
3
4
|
import { Component as ComponentClass } from '../../base/Component';
|
|
4
5
|
export type { NScrollBar };
|
|
@@ -18,7 +19,7 @@ export declare class ScrollBar<StaticProps extends NScrollBar.IStaticProps = NSc
|
|
|
18
19
|
};
|
|
19
20
|
get prefix(): string;
|
|
20
21
|
/** Scroll container */
|
|
21
|
-
|
|
22
|
+
protected _container: Element | Window | SmoothScroll;
|
|
22
23
|
/** Scroll container */
|
|
23
24
|
get container(): Window | Element | SmoothScroll<import("../SmoothScroll").NSmoothScroll.IStaticProps, import("../SmoothScroll").NSmoothScroll.IChangeableProps, import("../SmoothScroll").NSmoothScroll.ICallbacksTypes>;
|
|
24
25
|
/** Scrollable element */
|
|
@@ -28,12 +29,12 @@ export declare class ScrollBar<StaticProps extends NScrollBar.IStaticProps = NSc
|
|
|
28
29
|
*/
|
|
29
30
|
get domParent(): Element;
|
|
30
31
|
/** Horizontal scrollbar */
|
|
31
|
-
|
|
32
|
+
protected _xBar: Bar;
|
|
32
33
|
/** Vertical scrollbar */
|
|
33
|
-
|
|
34
|
+
protected _yBar: Bar;
|
|
34
35
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit?: boolean);
|
|
35
36
|
protected _init(): void;
|
|
36
|
-
|
|
37
|
+
protected _setEvents(): void;
|
|
37
38
|
protected _onPropsMutate(): void;
|
|
38
39
|
/** Resize the scene */
|
|
39
40
|
resize(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollBar/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollBar/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAI/D,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B;;GAEG;AACH,qBAAa,SAAS,CACpB,WAAW,SAAS,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,EACrE,eAAe,SAAS,UAAU,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,EACjF,cAAc,SAAS,UAAU,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAC9E,SAAQ,cAAc,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IACpE,SAAS,CAAC,gBAAgB;;;;;;;;;;IAc1B,IAAI,MAAM,WAET;IAED,uBAAuB;IACvB,SAAS,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;IAEtD,uBAAuB;IACvB,IAAI,SAAS,6MAEZ;IAED,yBAAyB;IACzB,IAAI,iBAAiB,YAYpB;IAED;;OAEG;IACH,IAAI,SAAS,YAkBZ;IAED,2BAA2B;IAC3B,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IAErB,yBAAyB;IACzB,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;gBAET,YAAY,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,OAAO,UAAO;IA8CxE,SAAS,CAAC,KAAK;IAOf,SAAS,CAAC,UAAU;IA+BpB,SAAS,CAAC,cAAc;IAKxB,uBAAuB;IAChB,MAAM;IAKb,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAOnB"}
|
|
@@ -47,7 +47,7 @@ export declare class ScrollView<StaticProps extends NScrollView.IStaticProps = N
|
|
|
47
47
|
height: number;
|
|
48
48
|
};
|
|
49
49
|
/** Set view events */
|
|
50
|
-
|
|
50
|
+
protected _setViewEvents(): void;
|
|
51
51
|
/** Remove View events */
|
|
52
52
|
protected _removeViewEvents(): void;
|
|
53
53
|
/** Event on IntersectionObserver In */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;GAEG;AACH,qBAAa,UAAU,CACrB,WAAW,SAAS,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,EACvE,eAAe,SAAS,WAAW,CAAC,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,EACnF,cAAc,SAAS,WAAW,CAAC,eA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BAAqB;IACd,UAAU,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU;IAmBnD,wBAAwB;IACjB,aAAa,CAAC,WAAW,EAAE,OAAO;IAUzC,0BAA0B;IACnB,cAAc;IAKrB,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAKnB"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { Component as ComponentClass } from '../../base/Component';
|
|
3
3
|
import { NSmoothScroll } from './types';
|
|
4
4
|
import { IScrollLike } from '../../types/general';
|
|
5
|
+
import { Elements } from './Elements';
|
|
6
|
+
import { AnimationFrame } from './AnimatonFrame';
|
|
5
7
|
export type { NSmoothScroll };
|
|
6
8
|
/**
|
|
7
9
|
* Smooth scrolling
|
|
@@ -27,10 +29,10 @@ export declare class SmoothScroll<StaticProps extends NSmoothScroll.IStaticProps
|
|
|
27
29
|
};
|
|
28
30
|
get prefix(): string;
|
|
29
31
|
/** Scroll container */
|
|
30
|
-
|
|
32
|
+
protected _container: HTMLElement;
|
|
31
33
|
/** Scroll container */
|
|
32
34
|
get container(): HTMLElement;
|
|
33
|
-
|
|
35
|
+
protected _elements: Elements;
|
|
34
36
|
/**
|
|
35
37
|
* Scroll wrapper. If the element does not exist indide the `container`,
|
|
36
38
|
* it will be created automatically
|
|
@@ -89,7 +91,7 @@ export declare class SmoothScroll<StaticProps extends NSmoothScroll.IStaticProps
|
|
|
89
91
|
/** If the approximation between the target and current scroll values must be instantaneous */
|
|
90
92
|
protected _isInstant?: boolean;
|
|
91
93
|
/** Animation frame */
|
|
92
|
-
|
|
94
|
+
protected _animationFrame: AnimationFrame;
|
|
93
95
|
/** Frame index */
|
|
94
96
|
protected _frameIndex: number;
|
|
95
97
|
/** Equal lerp for all elements */
|
|
@@ -103,7 +105,7 @@ export declare class SmoothScroll<StaticProps extends NSmoothScroll.IStaticProps
|
|
|
103
105
|
/** Set events */
|
|
104
106
|
protected _setEvents(): void;
|
|
105
107
|
/** Set resize events */
|
|
106
|
-
|
|
108
|
+
protected _setResize(): void;
|
|
107
109
|
/** Handle properties mutation */
|
|
108
110
|
protected _onPropsMutate(): void;
|
|
109
111
|
/** Recalculate scroll sizes */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SmoothScroll/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SmoothScroll/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B;;GAEG;AACH,qBAAa,YAAY,CACrB,WAAW,SAAS,aAAa,CAAC,YAAY,GAAG,aAAa,CAAC,YAAY,EAC3E,eAAe,SAAS,aAAa,CAAC,gBAAgB,GAAG,aAAa,CAAC,gBAAgB,EACvF,cAAc,SAAS,aAAa,CAAC,eAAe,GAAG,aAAa,CAAC,eAAe,CAEtF,SAAQ,cAAc,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CACnE,YAAW,WAAW;IAEtB,SAAS,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;IAsB1B,IAAI,MAAM,WAET;IAED,uBAAuB;IACvB,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC;IAElC,uBAAuB;IACvB,IAAI,SAAS,gBAEZ;IAED,SAAS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BxB,yBAAyB;IACzB,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,SAAkB;IASvE,eAAe;IACf,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ;IAcnD,gBAAgB;IACT,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,eAAe;IAsBxD,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAYnB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Plugin } from '../../base/Plugin';
|
|
2
2
|
import { NSmoothScrollDragPlugin } from './types';
|
|
3
3
|
import type { SmoothScroll as SmoothScrollInstance } from '../SmoothScroll';
|
|
4
|
+
import { DraggerMove, NDraggerMove } from '../DraggerMove';
|
|
5
|
+
import { NCallbacks } from '../../base/Callbacks';
|
|
4
6
|
export type { NSmoothScrollDragPlugin };
|
|
5
7
|
/**
|
|
6
8
|
* Add dragger to `SmoothScroll`
|
|
@@ -14,34 +16,34 @@ export declare class SmoothScrollDragPlugin<StaticProp extends NSmoothScrollDrag
|
|
|
14
16
|
stopPropagationDirection: string;
|
|
15
17
|
};
|
|
16
18
|
/** Dragger component */
|
|
17
|
-
|
|
19
|
+
protected _dragger?: DraggerMove;
|
|
18
20
|
/** Component callbacks */
|
|
19
|
-
|
|
21
|
+
protected _componentCallbacks?: NCallbacks.IAddedCallback[];
|
|
20
22
|
/** If is dragging at the moment */
|
|
21
23
|
get isDragging(): boolean;
|
|
22
24
|
/**
|
|
23
25
|
* Current lerp of SmoothScroll
|
|
24
26
|
*/
|
|
25
|
-
|
|
27
|
+
protected _prevComponentLerp?: number;
|
|
26
28
|
/** Initialize the class */
|
|
27
29
|
protected _init(): void;
|
|
28
30
|
protected _onPropsMutate(): void;
|
|
29
31
|
/** Add or remove dragger */
|
|
30
|
-
|
|
32
|
+
protected _toggleDragger(): void;
|
|
31
33
|
/** Add dragger */
|
|
32
|
-
|
|
34
|
+
protected _addDragger(): void;
|
|
33
35
|
/** Remove dragger */
|
|
34
|
-
|
|
36
|
+
protected _removeDragger(): void;
|
|
35
37
|
/** Check if dragging is available */
|
|
36
|
-
|
|
38
|
+
protected _getIsDragAvailable(): boolean;
|
|
37
39
|
/** Callback on dragging start */
|
|
38
|
-
|
|
40
|
+
protected _handleDragStart(): void;
|
|
39
41
|
/** Callback on drag move */
|
|
40
|
-
|
|
42
|
+
protected _handleDragMove({ event, coords, start, step, }: NDraggerMove.ICallbacksTypes['move']): void;
|
|
41
43
|
/**
|
|
42
44
|
* Callback on dragging end
|
|
43
45
|
*/
|
|
44
|
-
|
|
46
|
+
protected _handleDragEnd(): void;
|
|
45
47
|
/** Destroy the plugin */
|
|
46
48
|
protected _destroy(): void;
|
|
47
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SmoothScrollDragPlugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SmoothScrollDragPlugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAExC;;GAEG;AACH,qBAAa,sBAAsB,CACjC,UAAU,SAAS,uBAAuB,CAAC,YAAY,GAAG,uBAAuB,CAAC,YAAY,EAC9F,cAAc,SAAS,uBAAuB,CAAC,gBAAgB,GAAG,uBAAuB,CAAC,gBAAgB,EAC1G,cAAc,SAAS,uBAAuB,CAAC,eAAe,GAAG,uBAAuB,CAAC,eAAe,CACxG,SAAQ,MAAM,CACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,oBAAoB,CACrB;IACC,SAAS,CAAC,gBAAgB;;;;;;;IAW1B,wBAAwB;IACxB,SAAS,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IAEjC,0BAA0B;IAC1B,SAAS,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC,cAAc,EAAE,CAAC;IAE5D,mCAAmC;IACnC,IAAI,UAAU,YAEb;IAED;;OAEG;IACH,SAAS,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAEtC,2BAA2B;IAC3B,SAAS,CAAC,KAAK;IAMf,SAAS,CAAC,cAAc;IAMxB,4BAA4B;IAC5B,SAAS,CAAC,cAAc;IAQxB,kBAAkB;IAClB,SAAS,CAAC,WAAW;IA4BrB,qBAAqB;IACrB,SAAS,CAAC,cAAc;IAYxB,qCAAqC;IACrC,SAAS,CAAC,mBAAmB;IAkB7B,iCAAiC;IACjC,SAAS,CAAC,gBAAgB;IAiB1B,4BAA4B;IAC5B,SAAS,CAAC,eAAe,CAAC,EACxB,KAAK,EACL,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC;IA2CvC;;OAEG;IACH,SAAS,CAAC,cAAc;IAiBxB,yBAAyB;IACzB,SAAS,CAAC,QAAQ;CAKnB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { Plugin } from '../../base/Plugin';
|
|
2
3
|
import { NSmoothScrollKeyboardPlugin } from './types';
|
|
3
4
|
import type { SmoothScroll as SmoothScrollInstance } from '../SmoothScroll';
|
|
@@ -9,15 +10,15 @@ export declare class SmoothScrollKeyboardPlugin<StaticProps extends NSmoothScrol
|
|
|
9
10
|
protected _getDefaultProps(): import("ts-essentials").DeepRequired<StaticProps & ChangeableProps> & {
|
|
10
11
|
iterator: number;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
protected _tabDebounceTimeout?: NodeJS.Timeout;
|
|
13
14
|
/** Initialize the class */
|
|
14
15
|
protected _init(): void;
|
|
15
16
|
/** Check if keyboard events may be ignored */
|
|
16
|
-
|
|
17
|
+
protected _canIgnoreKeyboardEvents(): boolean;
|
|
17
18
|
/** Check if scroll container is in viewport */
|
|
18
|
-
|
|
19
|
+
protected _checkScrollContainerInViewport(): boolean;
|
|
19
20
|
/** Check if scroll ended */
|
|
20
|
-
|
|
21
|
+
protected _checkIsEndOfScroll(): boolean;
|
|
21
22
|
/** Event on `keydown` */
|
|
22
23
|
protected _handleKeydown(event: KeyboardEvent): void;
|
|
23
24
|
/** Handle Tab key */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SmoothScrollKeyboardPlugin/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,YAAY,EAAE,2BAA2B,EAAE,CAAC;AAE5C;;GAEG;AACH,qBAAa,0BAA0B,CACrC,WAAW,SAAS,2BAA2B,CAAC,YAAY,GAAG,2BAA2B,CAAC,YAAY,EACvG,eAAe,SAAS,2BAA2B,CAAC,gBAAgB,GAAG,2BAA2B,CAAC,gBAAgB,EACnH,cAAc,SAAS,2BAA2B,CAAC,eAAe,GAAG,2BAA2B,CAAC,eAAe,CAChH,SAAQ,MAAM,CACd,WAA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