@egjs/flicking 4.10.8 → 4.11.1

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.
@@ -55,6 +55,7 @@ export interface FlickingOptions {
55
55
  bounce: number | string | [number | string, number | string];
56
56
  iOSEdgeSwipeThreshold: number;
57
57
  preventClickOnDrag: boolean;
58
+ preventDefaultOnDrag: boolean;
58
59
  disableOnInit: boolean;
59
60
  changeOnHold: boolean;
60
61
  renderOnlyVisible: boolean;
@@ -103,6 +104,7 @@ declare class Flicking extends Component<FlickingEvents> {
103
104
  private _bounce;
104
105
  private _iOSEdgeSwipeThreshold;
105
106
  private _preventClickOnDrag;
107
+ private _preventDefaultOnDrag;
106
108
  private _disableOnInit;
107
109
  private _changeOnHold;
108
110
  private _renderOnlyVisible;
@@ -158,6 +160,7 @@ declare class Flicking extends Component<FlickingEvents> {
158
160
  get bounce(): FlickingOptions["bounce"];
159
161
  get iOSEdgeSwipeThreshold(): FlickingOptions["iOSEdgeSwipeThreshold"];
160
162
  get preventClickOnDrag(): FlickingOptions["preventClickOnDrag"];
163
+ get preventDefaultOnDrag(): FlickingOptions["preventDefaultOnDrag"];
161
164
  get disableOnInit(): FlickingOptions["disableOnInit"];
162
165
  get changeOnHold(): FlickingOptions["changeOnHold"];
163
166
  get renderOnlyVisible(): FlickingOptions["renderOnlyVisible"];
@@ -195,12 +198,13 @@ declare class Flicking extends Component<FlickingEvents> {
195
198
  set bounce(val: FlickingOptions["bounce"]);
196
199
  set iOSEdgeSwipeThreshold(val: FlickingOptions["iOSEdgeSwipeThreshold"]);
197
200
  set preventClickOnDrag(val: FlickingOptions["preventClickOnDrag"]);
201
+ set preventDefaultOnDrag(val: FlickingOptions["preventDefaultOnDrag"]);
198
202
  set disableOnInit(val: FlickingOptions["disableOnInit"]);
199
203
  set changeOnHold(val: FlickingOptions["changeOnHold"]);
200
204
  set renderOnlyVisible(val: FlickingOptions["renderOnlyVisible"]);
201
205
  set autoResize(val: FlickingOptions["autoResize"]);
202
206
  set useResizeObserver(val: FlickingOptions["useResizeObserver"]);
203
- constructor(root: HTMLElement | string, { align, defaultIndex, horizontal, circular, circularFallback, bound, adaptive, panelsPerView, noPanelStyleOverride, resizeOnContentsReady, nested, needPanelThreshold, preventEventsBeforeInit, deceleration, duration, easing, inputType, moveType, threshold, interruptable, bounce, iOSEdgeSwipeThreshold, preventClickOnDrag, disableOnInit, changeOnHold, renderOnlyVisible, virtual, autoInit, autoResize, useResizeObserver, resizeDebounce, maxResizeDebounce, useFractionalSize, externalRenderer, renderExternal }?: Partial<FlickingOptions>);
207
+ constructor(root: HTMLElement | string, { align, defaultIndex, horizontal, circular, circularFallback, bound, adaptive, panelsPerView, noPanelStyleOverride, resizeOnContentsReady, nested, needPanelThreshold, preventEventsBeforeInit, deceleration, duration, easing, inputType, moveType, threshold, interruptable, bounce, iOSEdgeSwipeThreshold, preventClickOnDrag, preventDefaultOnDrag, disableOnInit, changeOnHold, renderOnlyVisible, virtual, autoInit, autoResize, useResizeObserver, resizeDebounce, maxResizeDebounce, useFractionalSize, externalRenderer, renderExternal }?: Partial<FlickingOptions>);
204
208
  init(): Promise<void>;
205
209
  destroy(): void;
206
210
  prev(duration?: number): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import Flicking, { FlickingOptions } from "../Flicking";
2
2
  import Panel from "../core/panel/Panel";
3
3
  import AnchorPoint from "../core/AnchorPoint";
4
+ import { ValueOf } from "../type/internal";
4
5
  import { CameraMode } from "./mode";
5
6
  export interface CameraOptions {
6
7
  align: FlickingOptions["align"];
@@ -20,6 +21,7 @@ declare class Camera {
20
21
  private _visiblePanels;
21
22
  private _anchors;
22
23
  private _needPanelTriggered;
24
+ private _panelOrder;
23
25
  get element(): HTMLElement;
24
26
  get children(): HTMLElement[];
25
27
  get position(): number;
@@ -49,6 +51,10 @@ declare class Camera {
49
51
  get atEdge(): boolean;
50
52
  get size(): number;
51
53
  get progress(): number;
54
+ get panelOrder(): ValueOf<{
55
+ readonly LTR: "ltr";
56
+ readonly RTL: "rtl";
57
+ }>;
52
58
  get align(): FlickingOptions["align"];
53
59
  set align(val: FlickingOptions["align"]);
54
60
  constructor(flicking: Flicking, { align }?: Partial<CameraOptions>);
@@ -69,6 +75,7 @@ declare class Camera {
69
75
  updateAnchors(): this;
70
76
  updateAdaptiveHeight(): void;
71
77
  updateOffset(): this;
78
+ updatePanelOrder(): this;
72
79
  resetNeedPanelHistory(): this;
73
80
  applyTransform(): this;
74
81
  private _resetInternalValues;
@@ -42,3 +42,7 @@ export declare const CIRCULAR_FALLBACK: {
42
42
  readonly LINEAR: "linear";
43
43
  readonly BOUND: "bound";
44
44
  };
45
+ export declare const ORDER: {
46
+ readonly LTR: "ltr";
47
+ readonly RTL: "rtl";
48
+ };
@@ -0,0 +1,3 @@
1
+ import Flicking from "./index";
2
+ export default Flicking;
3
+ export * from "./index";