@egjs/flicking 4.12.0-beta.3 → 4.12.0-beta.5
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/declaration/Flicking.d.ts +244 -244
- package/declaration/camera/Camera.d.ts +90 -89
- package/declaration/camera/index.d.ts +4 -4
- package/declaration/camera/mode/BoundCameraMode.d.ts +13 -13
- package/declaration/camera/mode/CameraMode.d.ts +20 -20
- package/declaration/camera/mode/CircularCameraMode.d.ts +19 -19
- package/declaration/camera/mode/LinearCameraMode.d.ts +9 -9
- package/declaration/camera/mode/index.d.ts +6 -6
- package/declaration/cfc/getDefaultCameraTransform.d.ts +3 -3
- package/declaration/cfc/getRenderingPanels.d.ts +4 -4
- package/declaration/cfc/index.d.ts +5 -5
- package/declaration/cfc/sync.d.ts +4 -4
- package/declaration/cfc/withFlickingMethods.d.ts +2 -2
- package/declaration/const/axes.d.ts +8 -8
- package/declaration/const/error.d.ts +34 -34
- package/declaration/const/external.d.ts +48 -54
- package/declaration/control/AxesController.d.ts +44 -44
- package/declaration/control/Control.d.ts +45 -45
- package/declaration/control/FreeControl.d.ts +14 -14
- package/declaration/control/SnapControl.d.ts +16 -16
- package/declaration/control/StateMachine.d.ts +14 -14
- package/declaration/control/StrictControl.d.ts +20 -20
- package/declaration/control/index.d.ts +14 -14
- package/declaration/control/states/AnimatingState.d.ts +9 -9
- package/declaration/control/states/DisabledState.d.ts +9 -9
- package/declaration/control/states/DraggingState.d.ts +8 -8
- package/declaration/control/states/HoldingState.d.ts +10 -10
- package/declaration/control/states/IdleState.d.ts +9 -9
- package/declaration/control/states/State.d.ts +47 -47
- package/declaration/core/AnchorPoint.d.ts +15 -15
- package/declaration/core/AutoResizer.d.ts +16 -16
- package/declaration/core/FlickingError.d.ts +5 -5
- package/declaration/core/ResizeWatcher.d.ts +33 -33
- package/declaration/core/Viewport.d.ts +25 -25
- package/declaration/core/VirtualManager.d.ts +37 -37
- package/declaration/core/index.d.ts +6 -6
- package/declaration/core/panel/Panel.d.ts +89 -89
- package/declaration/core/panel/VirtualPanel.d.ts +19 -19
- package/declaration/core/panel/index.d.ts +5 -5
- package/declaration/core/panel/provider/ElementProvider.d.ts +8 -8
- package/declaration/core/panel/provider/VanillaElementProvider.d.ts +12 -12
- package/declaration/core/panel/provider/VirtualElementProvider.d.ts +15 -15
- package/declaration/core/panel/provider/index.d.ts +5 -5
- package/declaration/index.cjs.d.ts +3 -3
- package/declaration/index.d.ts +13 -14
- package/declaration/index.umd.d.ts +2 -2
- package/declaration/renderer/ExternalRenderer.d.ts +7 -7
- package/declaration/renderer/Renderer.d.ts +59 -59
- package/declaration/renderer/VanillaRenderer.d.ts +10 -10
- package/declaration/renderer/index.d.ts +6 -6
- package/declaration/renderer/strategy/NormalRenderingStrategy.d.ts +23 -23
- package/declaration/renderer/strategy/RenderingStrategy.d.ts +15 -15
- package/declaration/renderer/strategy/VirtualRenderingStrategy.d.ts +17 -17
- package/declaration/renderer/strategy/index.d.ts +5 -5
- package/declaration/type/event.d.ts +88 -88
- package/declaration/type/external.d.ts +31 -31
- package/declaration/type/internal.d.ts +13 -13
- package/declaration/utils.d.ts +45 -47
- package/dist/flicking.cjs.js +27 -328
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +27 -320
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +27 -329
- package/dist/flicking.js.map +1 -1
- package/dist/flicking.min.js +2 -2
- package/dist/flicking.min.js.map +1 -1
- package/dist/flicking.pkgd.js +785 -1094
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/camera/Camera.ts +24 -4
- package/src/const/external.ts +0 -14
- package/src/index.ts +0 -2
- package/src/index.umd.ts +0 -2
- package/src/utils.ts +0 -21
- package/declaration/CrossFlicking.d.ts +0 -35
- package/src/CrossFlicking.ts +0 -356
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
import Flicking, { FlickingOptions } from "../Flicking";
|
|
2
|
-
import Panel from "../core/panel/Panel";
|
|
3
|
-
import AnchorPoint from "../core/AnchorPoint";
|
|
4
|
-
import { ValueOf } from "../type/internal";
|
|
5
|
-
import { CameraMode } from "./mode";
|
|
6
|
-
export interface CameraOptions {
|
|
7
|
-
align: FlickingOptions["align"];
|
|
8
|
-
}
|
|
9
|
-
declare class Camera {
|
|
10
|
-
private _align;
|
|
11
|
-
private _flicking;
|
|
12
|
-
private _mode;
|
|
13
|
-
private _el;
|
|
14
|
-
private _transform;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
|
|
26
|
-
get
|
|
27
|
-
get
|
|
28
|
-
get
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
get
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
get
|
|
38
|
-
get
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
get
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
get
|
|
53
|
-
get
|
|
54
|
-
get
|
|
55
|
-
|
|
56
|
-
readonly
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
private
|
|
83
|
-
private
|
|
84
|
-
private
|
|
85
|
-
private
|
|
86
|
-
private
|
|
87
|
-
private
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
import Flicking, { FlickingOptions } from "../Flicking";
|
|
2
|
+
import Panel from "../core/panel/Panel";
|
|
3
|
+
import AnchorPoint from "../core/AnchorPoint";
|
|
4
|
+
import { ValueOf } from "../type/internal";
|
|
5
|
+
import { CameraMode } from "./mode";
|
|
6
|
+
export interface CameraOptions {
|
|
7
|
+
align: FlickingOptions["align"];
|
|
8
|
+
}
|
|
9
|
+
declare class Camera {
|
|
10
|
+
private _align;
|
|
11
|
+
private _flicking;
|
|
12
|
+
private _mode;
|
|
13
|
+
private _el;
|
|
14
|
+
private _transform;
|
|
15
|
+
private _lookedOffset;
|
|
16
|
+
private _position;
|
|
17
|
+
private _alignPos;
|
|
18
|
+
private _offset;
|
|
19
|
+
private _circularOffset;
|
|
20
|
+
private _circularEnabled;
|
|
21
|
+
private _range;
|
|
22
|
+
private _visiblePanels;
|
|
23
|
+
private _anchors;
|
|
24
|
+
private _needPanelTriggered;
|
|
25
|
+
private _panelOrder;
|
|
26
|
+
get element(): HTMLElement;
|
|
27
|
+
get children(): HTMLElement[];
|
|
28
|
+
get position(): number;
|
|
29
|
+
get alignPosition(): number;
|
|
30
|
+
get offset(): number;
|
|
31
|
+
get circularEnabled(): boolean;
|
|
32
|
+
get mode(): CameraMode;
|
|
33
|
+
get range(): {
|
|
34
|
+
min: number;
|
|
35
|
+
max: number;
|
|
36
|
+
};
|
|
37
|
+
get rangeDiff(): number;
|
|
38
|
+
get visiblePanels(): Panel[];
|
|
39
|
+
get visibleRange(): {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
};
|
|
43
|
+
get anchorPoints(): AnchorPoint[];
|
|
44
|
+
get controlParams(): {
|
|
45
|
+
range: {
|
|
46
|
+
min: number;
|
|
47
|
+
max: number;
|
|
48
|
+
};
|
|
49
|
+
position: number;
|
|
50
|
+
circular: boolean;
|
|
51
|
+
};
|
|
52
|
+
get atEdge(): boolean;
|
|
53
|
+
get size(): number;
|
|
54
|
+
get progress(): number;
|
|
55
|
+
get panelOrder(): ValueOf<{
|
|
56
|
+
readonly LTR: "ltr";
|
|
57
|
+
readonly RTL: "rtl";
|
|
58
|
+
}>;
|
|
59
|
+
get align(): FlickingOptions["align"];
|
|
60
|
+
set align(val: FlickingOptions["align"]);
|
|
61
|
+
constructor(flicking: Flicking, { align }?: Partial<CameraOptions>);
|
|
62
|
+
init(): this;
|
|
63
|
+
destroy(): this;
|
|
64
|
+
lookAt(pos: number): void;
|
|
65
|
+
getPrevAnchor(anchor: AnchorPoint): AnchorPoint | null;
|
|
66
|
+
getNextAnchor(anchor: AnchorPoint): AnchorPoint | null;
|
|
67
|
+
getProgressInPanel(panel: Panel): number;
|
|
68
|
+
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
69
|
+
findNearestAnchor(position: number): AnchorPoint | null;
|
|
70
|
+
findActiveAnchor(): AnchorPoint | null;
|
|
71
|
+
clampToReachablePosition(position: number): number;
|
|
72
|
+
canReach(panel: Panel): boolean;
|
|
73
|
+
canSee(panel: Panel): boolean;
|
|
74
|
+
updateRange(): this;
|
|
75
|
+
updateAlignPos(): this;
|
|
76
|
+
updateAnchors(): this;
|
|
77
|
+
updateAdaptiveHeight(): void;
|
|
78
|
+
updateOffset(): this;
|
|
79
|
+
updatePanelOrder(): this;
|
|
80
|
+
resetNeedPanelHistory(): this;
|
|
81
|
+
applyTransform(): this;
|
|
82
|
+
private _resetInternalValues;
|
|
83
|
+
private _refreshVisiblePanels;
|
|
84
|
+
private _checkNeedPanel;
|
|
85
|
+
private _checkReachEnd;
|
|
86
|
+
private _checkTranslateSupport;
|
|
87
|
+
private _updateMode;
|
|
88
|
+
private _togglePanels;
|
|
89
|
+
}
|
|
90
|
+
export default Camera;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Camera, { CameraOptions } from "./Camera";
|
|
2
|
-
export { Camera };
|
|
3
|
-
export type { CameraOptions };
|
|
4
|
-
export * from "./mode";
|
|
1
|
+
import Camera, { CameraOptions } from "./Camera";
|
|
2
|
+
export { Camera };
|
|
3
|
+
export type { CameraOptions };
|
|
4
|
+
export * from "./mode";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import AnchorPoint from "../../core/AnchorPoint";
|
|
2
|
-
import CameraMode from "./CameraMode";
|
|
3
|
-
declare class BoundCameraMode extends CameraMode {
|
|
4
|
-
checkAvailability(): boolean;
|
|
5
|
-
getRange(): {
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
};
|
|
9
|
-
getAnchors(): AnchorPoint[];
|
|
10
|
-
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
11
|
-
private _findNearestPanel;
|
|
12
|
-
}
|
|
13
|
-
export default BoundCameraMode;
|
|
1
|
+
import AnchorPoint from "../../core/AnchorPoint";
|
|
2
|
+
import CameraMode from "./CameraMode";
|
|
3
|
+
declare class BoundCameraMode extends CameraMode {
|
|
4
|
+
checkAvailability(): boolean;
|
|
5
|
+
getRange(): {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
};
|
|
9
|
+
getAnchors(): AnchorPoint[];
|
|
10
|
+
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
11
|
+
private _findNearestPanel;
|
|
12
|
+
}
|
|
13
|
+
export default BoundCameraMode;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import Flicking from "../../Flicking";
|
|
2
|
-
import Panel from "../../core/panel/Panel";
|
|
3
|
-
import AnchorPoint from "../../core/AnchorPoint";
|
|
4
|
-
declare abstract class CameraMode {
|
|
5
|
-
protected _flicking: Flicking;
|
|
6
|
-
constructor(flicking: Flicking);
|
|
7
|
-
abstract checkAvailability(): boolean;
|
|
8
|
-
abstract getRange(): {
|
|
9
|
-
min: number;
|
|
10
|
-
max: number;
|
|
11
|
-
};
|
|
12
|
-
getAnchors(): AnchorPoint[];
|
|
13
|
-
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
14
|
-
findNearestAnchor(position: number): AnchorPoint | null;
|
|
15
|
-
clampToReachablePosition(position: number): number;
|
|
16
|
-
getCircularOffset(): number;
|
|
17
|
-
canReach(panel: Panel): boolean;
|
|
18
|
-
canSee(panel: Panel): boolean;
|
|
19
|
-
}
|
|
20
|
-
export default CameraMode;
|
|
1
|
+
import Flicking from "../../Flicking";
|
|
2
|
+
import Panel from "../../core/panel/Panel";
|
|
3
|
+
import AnchorPoint from "../../core/AnchorPoint";
|
|
4
|
+
declare abstract class CameraMode {
|
|
5
|
+
protected _flicking: Flicking;
|
|
6
|
+
constructor(flicking: Flicking);
|
|
7
|
+
abstract checkAvailability(): boolean;
|
|
8
|
+
abstract getRange(): {
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
};
|
|
12
|
+
getAnchors(): AnchorPoint[];
|
|
13
|
+
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
14
|
+
findNearestAnchor(position: number): AnchorPoint | null;
|
|
15
|
+
clampToReachablePosition(position: number): number;
|
|
16
|
+
getCircularOffset(): number;
|
|
17
|
+
canReach(panel: Panel): boolean;
|
|
18
|
+
canSee(panel: Panel): boolean;
|
|
19
|
+
}
|
|
20
|
+
export default CameraMode;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import Panel from "../../core/panel/Panel";
|
|
2
|
-
import AnchorPoint from "../../core/AnchorPoint";
|
|
3
|
-
import CameraMode from "./CameraMode";
|
|
4
|
-
declare class CircularCameraMode extends CameraMode {
|
|
5
|
-
checkAvailability(): boolean;
|
|
6
|
-
getRange(): {
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
};
|
|
10
|
-
getAnchors(): AnchorPoint[];
|
|
11
|
-
findNearestAnchor(position: number): AnchorPoint | null;
|
|
12
|
-
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
13
|
-
getCircularOffset(): number;
|
|
14
|
-
clampToReachablePosition(position: number): number;
|
|
15
|
-
canReach(panel: Panel): boolean;
|
|
16
|
-
canSee(panel: Panel): boolean;
|
|
17
|
-
private _calcPanelAreaSum;
|
|
18
|
-
}
|
|
19
|
-
export default CircularCameraMode;
|
|
1
|
+
import Panel from "../../core/panel/Panel";
|
|
2
|
+
import AnchorPoint from "../../core/AnchorPoint";
|
|
3
|
+
import CameraMode from "./CameraMode";
|
|
4
|
+
declare class CircularCameraMode extends CameraMode {
|
|
5
|
+
checkAvailability(): boolean;
|
|
6
|
+
getRange(): {
|
|
7
|
+
min: number;
|
|
8
|
+
max: number;
|
|
9
|
+
};
|
|
10
|
+
getAnchors(): AnchorPoint[];
|
|
11
|
+
findNearestAnchor(position: number): AnchorPoint | null;
|
|
12
|
+
findAnchorIncludePosition(position: number): AnchorPoint | null;
|
|
13
|
+
getCircularOffset(): number;
|
|
14
|
+
clampToReachablePosition(position: number): number;
|
|
15
|
+
canReach(panel: Panel): boolean;
|
|
16
|
+
canSee(panel: Panel): boolean;
|
|
17
|
+
private _calcPanelAreaSum;
|
|
18
|
+
}
|
|
19
|
+
export default CircularCameraMode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import CameraMode from "./CameraMode";
|
|
2
|
-
declare class LinearCameraMode extends CameraMode {
|
|
3
|
-
checkAvailability(): boolean;
|
|
4
|
-
getRange(): {
|
|
5
|
-
min: number;
|
|
6
|
-
max: number;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export default LinearCameraMode;
|
|
1
|
+
import CameraMode from "./CameraMode";
|
|
2
|
+
declare class LinearCameraMode extends CameraMode {
|
|
3
|
+
checkAvailability(): boolean;
|
|
4
|
+
getRange(): {
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export default LinearCameraMode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CameraMode from "./CameraMode";
|
|
2
|
-
import LinearCameraMode from "./LinearCameraMode";
|
|
3
|
-
import CircularCameraMode from "./CircularCameraMode";
|
|
4
|
-
import BoundCameraMode from "./BoundCameraMode";
|
|
5
|
-
export { LinearCameraMode, CircularCameraMode, BoundCameraMode };
|
|
6
|
-
export type { CameraMode };
|
|
1
|
+
import CameraMode from "./CameraMode";
|
|
2
|
+
import LinearCameraMode from "./LinearCameraMode";
|
|
3
|
+
import CircularCameraMode from "./CircularCameraMode";
|
|
4
|
+
import BoundCameraMode from "./BoundCameraMode";
|
|
5
|
+
export { LinearCameraMode, CircularCameraMode, BoundCameraMode };
|
|
6
|
+
export type { CameraMode };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FlickingOptions } from "../Flicking";
|
|
2
|
-
declare const _default: (align?: FlickingOptions["align"], horizontal?: boolean, firstPanelSize?: string) => string;
|
|
3
|
-
export default _default;
|
|
1
|
+
import { FlickingOptions } from "../Flicking";
|
|
2
|
+
declare const _default: (align?: FlickingOptions["align"], horizontal?: boolean, firstPanelSize?: string) => string;
|
|
3
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiffResult } from "@egjs/list-differ";
|
|
2
|
-
import Flicking from "../Flicking";
|
|
3
|
-
declare const _default: <T>(flicking: Flicking, diffResult: DiffResult<T>) => T[];
|
|
4
|
-
export default _default;
|
|
1
|
+
import { DiffResult } from "@egjs/list-differ";
|
|
2
|
+
import Flicking from "../Flicking";
|
|
3
|
+
declare const _default: <T>(flicking: Flicking, diffResult: DiffResult<T>) => T[];
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import withFlickingMethods from "./withFlickingMethods";
|
|
2
|
-
import sync from "./sync";
|
|
3
|
-
import getRenderingPanels from "./getRenderingPanels";
|
|
4
|
-
import getDefaultCameraTransform from "./getDefaultCameraTransform";
|
|
5
|
-
export { withFlickingMethods, sync, getRenderingPanels, getDefaultCameraTransform };
|
|
1
|
+
import withFlickingMethods from "./withFlickingMethods";
|
|
2
|
+
import sync from "./sync";
|
|
3
|
+
import getRenderingPanels from "./getRenderingPanels";
|
|
4
|
+
import getDefaultCameraTransform from "./getDefaultCameraTransform";
|
|
5
|
+
export { withFlickingMethods, sync, getRenderingPanels, getDefaultCameraTransform };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DiffResult } from "@egjs/list-differ";
|
|
2
|
-
import Flicking from "../Flicking";
|
|
3
|
-
declare const _default: (flicking: Flicking, diffResult: DiffResult<any>, rendered: any[]) => void;
|
|
4
|
-
export default _default;
|
|
1
|
+
import { DiffResult } from "@egjs/list-differ";
|
|
2
|
+
import Flicking from "../Flicking";
|
|
3
|
+
declare const _default: (flicking: Flicking, diffResult: DiffResult<any>, rendered: any[]) => void;
|
|
4
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const withFlickingMethods: (prototype: any, flickingName: string) => void;
|
|
2
|
-
export default withFlickingMethods;
|
|
1
|
+
declare const withFlickingMethods: (prototype: any, flickingName: string) => void;
|
|
2
|
+
export default withFlickingMethods;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const EVENT: {
|
|
2
|
-
readonly HOLD: "hold";
|
|
3
|
-
readonly CHANGE: "change";
|
|
4
|
-
readonly RELEASE: "release";
|
|
5
|
-
readonly ANIMATION_END: "animationEnd";
|
|
6
|
-
readonly FINISH: "finish";
|
|
7
|
-
};
|
|
8
|
-
export declare const POSITION_KEY = "flick";
|
|
1
|
+
export declare const EVENT: {
|
|
2
|
+
readonly HOLD: "hold";
|
|
3
|
+
readonly CHANGE: "change";
|
|
4
|
+
readonly RELEASE: "release";
|
|
5
|
+
readonly ANIMATION_END: "animationEnd";
|
|
6
|
+
readonly FINISH: "finish";
|
|
7
|
+
};
|
|
8
|
+
export declare const POSITION_KEY = "flick";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export declare const CODE: {
|
|
2
|
-
readonly WRONG_TYPE: 0;
|
|
3
|
-
readonly ELEMENT_NOT_FOUND: 1;
|
|
4
|
-
readonly VAL_MUST_NOT_NULL: 2;
|
|
5
|
-
readonly NOT_ATTACHED_TO_FLICKING: 3;
|
|
6
|
-
readonly WRONG_OPTION: 4;
|
|
7
|
-
readonly INDEX_OUT_OF_RANGE: 5;
|
|
8
|
-
readonly POSITION_NOT_REACHABLE: 6;
|
|
9
|
-
readonly TRANSFORM_NOT_SUPPORTED: 7;
|
|
10
|
-
readonly STOP_CALLED_BY_USER: 8;
|
|
11
|
-
readonly ANIMATION_INTERRUPTED: 9;
|
|
12
|
-
readonly ANIMATION_ALREADY_PLAYING: 10;
|
|
13
|
-
readonly NOT_ALLOWED_IN_FRAMEWORK: 11;
|
|
14
|
-
readonly NOT_INITIALIZED: 12;
|
|
15
|
-
readonly NO_ACTIVE: 13;
|
|
16
|
-
readonly NOT_ALLOWED_IN_VIRTUAL: 14;
|
|
17
|
-
};
|
|
18
|
-
export declare const MESSAGE: {
|
|
19
|
-
readonly WRONG_TYPE: (wrongVal: any, correctTypes: string[]) => string;
|
|
20
|
-
readonly ELEMENT_NOT_FOUND: (selector: string) => string;
|
|
21
|
-
readonly VAL_MUST_NOT_NULL: (val: any, name: string) => string;
|
|
22
|
-
readonly NOT_ATTACHED_TO_FLICKING: "This module is not attached to the Flicking instance. \"init()\" should be called first.";
|
|
23
|
-
readonly WRONG_OPTION: (optionName: string, val: any) => string;
|
|
24
|
-
readonly INDEX_OUT_OF_RANGE: (val: number, min: number, max: number) => string;
|
|
25
|
-
readonly POSITION_NOT_REACHABLE: (position: number) => string;
|
|
26
|
-
readonly TRANSFORM_NOT_SUPPORTED: "Browser does not support CSS transform.";
|
|
27
|
-
readonly STOP_CALLED_BY_USER: "Event stop() is called by user.";
|
|
28
|
-
readonly ANIMATION_INTERRUPTED: "Animation is interrupted by user input.";
|
|
29
|
-
readonly ANIMATION_ALREADY_PLAYING: "Animation is already playing.";
|
|
30
|
-
readonly NOT_ALLOWED_IN_FRAMEWORK: "This behavior is not allowed in the frameworks like React, Vue, or Angular.";
|
|
31
|
-
readonly NOT_INITIALIZED: "Flicking is not initialized yet, call init() first.";
|
|
32
|
-
readonly NO_ACTIVE: "There's no active panel that Flicking has selected. This may be due to the absence of any panels.";
|
|
33
|
-
readonly NOT_ALLOWED_IN_VIRTUAL: "This behavior is not allowed when the virtual option is enabled";
|
|
34
|
-
};
|
|
1
|
+
export declare const CODE: {
|
|
2
|
+
readonly WRONG_TYPE: 0;
|
|
3
|
+
readonly ELEMENT_NOT_FOUND: 1;
|
|
4
|
+
readonly VAL_MUST_NOT_NULL: 2;
|
|
5
|
+
readonly NOT_ATTACHED_TO_FLICKING: 3;
|
|
6
|
+
readonly WRONG_OPTION: 4;
|
|
7
|
+
readonly INDEX_OUT_OF_RANGE: 5;
|
|
8
|
+
readonly POSITION_NOT_REACHABLE: 6;
|
|
9
|
+
readonly TRANSFORM_NOT_SUPPORTED: 7;
|
|
10
|
+
readonly STOP_CALLED_BY_USER: 8;
|
|
11
|
+
readonly ANIMATION_INTERRUPTED: 9;
|
|
12
|
+
readonly ANIMATION_ALREADY_PLAYING: 10;
|
|
13
|
+
readonly NOT_ALLOWED_IN_FRAMEWORK: 11;
|
|
14
|
+
readonly NOT_INITIALIZED: 12;
|
|
15
|
+
readonly NO_ACTIVE: 13;
|
|
16
|
+
readonly NOT_ALLOWED_IN_VIRTUAL: 14;
|
|
17
|
+
};
|
|
18
|
+
export declare const MESSAGE: {
|
|
19
|
+
readonly WRONG_TYPE: (wrongVal: any, correctTypes: string[]) => string;
|
|
20
|
+
readonly ELEMENT_NOT_FOUND: (selector: string) => string;
|
|
21
|
+
readonly VAL_MUST_NOT_NULL: (val: any, name: string) => string;
|
|
22
|
+
readonly NOT_ATTACHED_TO_FLICKING: "This module is not attached to the Flicking instance. \"init()\" should be called first.";
|
|
23
|
+
readonly WRONG_OPTION: (optionName: string, val: any) => string;
|
|
24
|
+
readonly INDEX_OUT_OF_RANGE: (val: number, min: number, max: number) => string;
|
|
25
|
+
readonly POSITION_NOT_REACHABLE: (position: number) => string;
|
|
26
|
+
readonly TRANSFORM_NOT_SUPPORTED: "Browser does not support CSS transform.";
|
|
27
|
+
readonly STOP_CALLED_BY_USER: "Event stop() is called by user.";
|
|
28
|
+
readonly ANIMATION_INTERRUPTED: "Animation is interrupted by user input.";
|
|
29
|
+
readonly ANIMATION_ALREADY_PLAYING: "Animation is already playing.";
|
|
30
|
+
readonly NOT_ALLOWED_IN_FRAMEWORK: "This behavior is not allowed in the frameworks like React, Vue, or Angular.";
|
|
31
|
+
readonly NOT_INITIALIZED: "Flicking is not initialized yet, call init() first.";
|
|
32
|
+
readonly NO_ACTIVE: "There's no active panel that Flicking has selected. This may be due to the absence of any panels.";
|
|
33
|
+
readonly NOT_ALLOWED_IN_VIRTUAL: "This behavior is not allowed when the virtual option is enabled";
|
|
34
|
+
};
|
|
@@ -1,54 +1,48 @@
|
|
|
1
|
-
export { CODE as ERROR_CODE } from "./error";
|
|
2
|
-
export declare const EVENTS: {
|
|
3
|
-
readonly READY: "ready";
|
|
4
|
-
readonly BEFORE_RESIZE: "beforeResize";
|
|
5
|
-
readonly AFTER_RESIZE: "afterResize";
|
|
6
|
-
readonly HOLD_START: "holdStart";
|
|
7
|
-
readonly HOLD_END: "holdEnd";
|
|
8
|
-
readonly MOVE_START: "moveStart";
|
|
9
|
-
readonly MOVE: "move";
|
|
10
|
-
readonly MOVE_END: "moveEnd";
|
|
11
|
-
readonly WILL_CHANGE: "willChange";
|
|
12
|
-
readonly CHANGED: "changed";
|
|
13
|
-
readonly WILL_RESTORE: "willRestore";
|
|
14
|
-
readonly RESTORED: "restored";
|
|
15
|
-
readonly SELECT: "select";
|
|
16
|
-
readonly NEED_PANEL: "needPanel";
|
|
17
|
-
readonly VISIBLE_CHANGE: "visibleChange";
|
|
18
|
-
readonly REACH_EDGE: "reachEdge";
|
|
19
|
-
readonly PANEL_CHANGE: "panelChange";
|
|
20
|
-
};
|
|
21
|
-
export declare const ALIGN: {
|
|
22
|
-
readonly PREV: "prev";
|
|
23
|
-
readonly CENTER: "center";
|
|
24
|
-
readonly NEXT: "next";
|
|
25
|
-
};
|
|
26
|
-
export declare const DIRECTION: {
|
|
27
|
-
readonly PREV: "PREV";
|
|
28
|
-
readonly NEXT: "NEXT";
|
|
29
|
-
readonly NONE: any;
|
|
30
|
-
};
|
|
31
|
-
export declare const MOVE_TYPE: {
|
|
32
|
-
readonly SNAP: "snap";
|
|
33
|
-
readonly FREE_SCROLL: "freeScroll";
|
|
34
|
-
readonly STRICT: "strict";
|
|
35
|
-
};
|
|
36
|
-
export declare const CLASS: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
readonly RTL: "rtl";
|
|
50
|
-
};
|
|
51
|
-
export declare const MOVE_DIRECTION: {
|
|
52
|
-
readonly HORIZONTAL: "horizontal";
|
|
53
|
-
readonly VERTICAL: "vertical";
|
|
54
|
-
};
|
|
1
|
+
export { CODE as ERROR_CODE } from "./error";
|
|
2
|
+
export declare const EVENTS: {
|
|
3
|
+
readonly READY: "ready";
|
|
4
|
+
readonly BEFORE_RESIZE: "beforeResize";
|
|
5
|
+
readonly AFTER_RESIZE: "afterResize";
|
|
6
|
+
readonly HOLD_START: "holdStart";
|
|
7
|
+
readonly HOLD_END: "holdEnd";
|
|
8
|
+
readonly MOVE_START: "moveStart";
|
|
9
|
+
readonly MOVE: "move";
|
|
10
|
+
readonly MOVE_END: "moveEnd";
|
|
11
|
+
readonly WILL_CHANGE: "willChange";
|
|
12
|
+
readonly CHANGED: "changed";
|
|
13
|
+
readonly WILL_RESTORE: "willRestore";
|
|
14
|
+
readonly RESTORED: "restored";
|
|
15
|
+
readonly SELECT: "select";
|
|
16
|
+
readonly NEED_PANEL: "needPanel";
|
|
17
|
+
readonly VISIBLE_CHANGE: "visibleChange";
|
|
18
|
+
readonly REACH_EDGE: "reachEdge";
|
|
19
|
+
readonly PANEL_CHANGE: "panelChange";
|
|
20
|
+
};
|
|
21
|
+
export declare const ALIGN: {
|
|
22
|
+
readonly PREV: "prev";
|
|
23
|
+
readonly CENTER: "center";
|
|
24
|
+
readonly NEXT: "next";
|
|
25
|
+
};
|
|
26
|
+
export declare const DIRECTION: {
|
|
27
|
+
readonly PREV: "PREV";
|
|
28
|
+
readonly NEXT: "NEXT";
|
|
29
|
+
readonly NONE: any;
|
|
30
|
+
};
|
|
31
|
+
export declare const MOVE_TYPE: {
|
|
32
|
+
readonly SNAP: "snap";
|
|
33
|
+
readonly FREE_SCROLL: "freeScroll";
|
|
34
|
+
readonly STRICT: "strict";
|
|
35
|
+
};
|
|
36
|
+
export declare const CLASS: {
|
|
37
|
+
VERTICAL: string;
|
|
38
|
+
HIDDEN: string;
|
|
39
|
+
DEFAULT_VIRTUAL: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const CIRCULAR_FALLBACK: {
|
|
42
|
+
readonly LINEAR: "linear";
|
|
43
|
+
readonly BOUND: "bound";
|
|
44
|
+
};
|
|
45
|
+
export declare const ORDER: {
|
|
46
|
+
readonly LTR: "ltr";
|
|
47
|
+
readonly RTL: "rtl";
|
|
48
|
+
};
|