@egjs/flicking 4.11.3 → 4.12.0-beta.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/declaration/Flicking.d.ts +244 -240
- package/declaration/camera/Camera.d.ts +89 -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 -48
- 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 -13
- 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 -45
- package/dist/flicking.cjs.js +63 -39
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +63 -39
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +63 -39
- 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 +63 -39
- 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 +1 -1
- package/src/Flicking.ts +24 -2
- package/src/control/AxesController.ts +1 -1
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.
|
|
7
|
+
version: 4.12.0-beta.0
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -6305,7 +6305,7 @@ version: 4.11.3
|
|
|
6305
6305
|
});
|
|
6306
6306
|
this._panInput = new PanInput(flicking.viewport.element, {
|
|
6307
6307
|
inputType: flicking.inputType,
|
|
6308
|
-
threshold:
|
|
6308
|
+
threshold: flicking.dragThreshold,
|
|
6309
6309
|
iOSEdgeSwipeThreshold: flicking.iOSEdgeSwipeThreshold,
|
|
6310
6310
|
preventDefaultOnDrag: flicking.preventDefaultOnDrag,
|
|
6311
6311
|
scale: flicking.horizontal ? [flicking.camera.panelOrder === ORDER.RTL ? 1 : -1, 0] : [0, -1],
|
|
@@ -11133,40 +11133,42 @@ version: 4.11.3
|
|
|
11133
11133
|
moveType = _v === void 0 ? "snap" : _v,
|
|
11134
11134
|
_w = _b.threshold,
|
|
11135
11135
|
threshold = _w === void 0 ? 40 : _w,
|
|
11136
|
-
_x = _b.
|
|
11137
|
-
|
|
11138
|
-
_y = _b.
|
|
11139
|
-
|
|
11140
|
-
_z = _b.
|
|
11141
|
-
|
|
11142
|
-
_0 = _b.
|
|
11143
|
-
|
|
11144
|
-
_1 = _b.
|
|
11145
|
-
|
|
11146
|
-
_2 = _b.
|
|
11147
|
-
|
|
11148
|
-
_3 = _b.
|
|
11149
|
-
|
|
11150
|
-
_4 = _b.
|
|
11151
|
-
|
|
11152
|
-
_5 = _b.
|
|
11153
|
-
|
|
11154
|
-
_6 = _b.
|
|
11155
|
-
|
|
11156
|
-
_7 = _b.
|
|
11157
|
-
|
|
11158
|
-
_8 = _b.
|
|
11159
|
-
|
|
11160
|
-
_9 = _b.
|
|
11161
|
-
|
|
11162
|
-
_10 = _b.
|
|
11163
|
-
|
|
11164
|
-
_11 = _b.
|
|
11165
|
-
|
|
11166
|
-
_12 = _b.
|
|
11167
|
-
|
|
11168
|
-
_13 = _b.
|
|
11169
|
-
|
|
11136
|
+
_x = _b.dragThreshold,
|
|
11137
|
+
dragThreshold = _x === void 0 ? 1 : _x,
|
|
11138
|
+
_y = _b.interruptable,
|
|
11139
|
+
interruptable = _y === void 0 ? true : _y,
|
|
11140
|
+
_z = _b.bounce,
|
|
11141
|
+
bounce = _z === void 0 ? "20%" : _z,
|
|
11142
|
+
_0 = _b.iOSEdgeSwipeThreshold,
|
|
11143
|
+
iOSEdgeSwipeThreshold = _0 === void 0 ? 30 : _0,
|
|
11144
|
+
_1 = _b.preventClickOnDrag,
|
|
11145
|
+
preventClickOnDrag = _1 === void 0 ? true : _1,
|
|
11146
|
+
_2 = _b.preventDefaultOnDrag,
|
|
11147
|
+
preventDefaultOnDrag = _2 === void 0 ? false : _2,
|
|
11148
|
+
_3 = _b.disableOnInit,
|
|
11149
|
+
disableOnInit = _3 === void 0 ? false : _3,
|
|
11150
|
+
_4 = _b.changeOnHold,
|
|
11151
|
+
changeOnHold = _4 === void 0 ? false : _4,
|
|
11152
|
+
_5 = _b.renderOnlyVisible,
|
|
11153
|
+
renderOnlyVisible = _5 === void 0 ? false : _5,
|
|
11154
|
+
_6 = _b.virtual,
|
|
11155
|
+
virtual = _6 === void 0 ? null : _6,
|
|
11156
|
+
_7 = _b.autoInit,
|
|
11157
|
+
autoInit = _7 === void 0 ? true : _7,
|
|
11158
|
+
_8 = _b.autoResize,
|
|
11159
|
+
autoResize = _8 === void 0 ? true : _8,
|
|
11160
|
+
_9 = _b.useResizeObserver,
|
|
11161
|
+
useResizeObserver = _9 === void 0 ? true : _9,
|
|
11162
|
+
_10 = _b.resizeDebounce,
|
|
11163
|
+
resizeDebounce = _10 === void 0 ? 0 : _10,
|
|
11164
|
+
_11 = _b.maxResizeDebounce,
|
|
11165
|
+
maxResizeDebounce = _11 === void 0 ? 100 : _11,
|
|
11166
|
+
_12 = _b.useFractionalSize,
|
|
11167
|
+
useFractionalSize = _12 === void 0 ? false : _12,
|
|
11168
|
+
_13 = _b.externalRenderer,
|
|
11169
|
+
externalRenderer = _13 === void 0 ? null : _13,
|
|
11170
|
+
_14 = _b.renderExternal,
|
|
11171
|
+
renderExternal = _14 === void 0 ? null : _14;
|
|
11170
11172
|
var _this = _super.call(this) || this;
|
|
11171
11173
|
// Internal states
|
|
11172
11174
|
_this._initialized = false;
|
|
@@ -11192,6 +11194,7 @@ version: 4.11.3
|
|
|
11192
11194
|
_this._inputType = inputType;
|
|
11193
11195
|
_this._moveType = moveType;
|
|
11194
11196
|
_this._threshold = threshold;
|
|
11197
|
+
_this._dragThreshold = dragThreshold;
|
|
11195
11198
|
_this._interruptable = interruptable;
|
|
11196
11199
|
_this._bounce = bounce;
|
|
11197
11200
|
_this._iOSEdgeSwipeThreshold = iOSEdgeSwipeThreshold;
|
|
@@ -11506,7 +11509,7 @@ version: 4.11.3
|
|
|
11506
11509
|
Object.defineProperty(__proto, "defaultIndex", {
|
|
11507
11510
|
/**
|
|
11508
11511
|
* Index of the panel to move when Flicking's {@link Flicking#init init()} is called. A zero-based integer
|
|
11509
|
-
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는
|
|
11512
|
+
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다.
|
|
11510
11513
|
* @type {number}
|
|
11511
11514
|
* @default 0
|
|
11512
11515
|
* @see {@link https://naver.github.io/egjs-flicking/Options#defaultindex defaultIndex ( Options )}
|
|
@@ -11871,7 +11874,7 @@ version: 4.11.3
|
|
|
11871
11874
|
Object.defineProperty(__proto, "threshold", {
|
|
11872
11875
|
/**
|
|
11873
11876
|
* Movement threshold to change panel (unit: px). It should be dragged above the threshold to change the current panel.
|
|
11874
|
-
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이
|
|
11877
|
+
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능합니다.
|
|
11875
11878
|
* @type {number}
|
|
11876
11879
|
* @default 40
|
|
11877
11880
|
* @see {@link https://naver.github.io/egjs-flicking/Options#threshold Threshold ( Options )}
|
|
@@ -11885,6 +11888,27 @@ version: 4.11.3
|
|
|
11885
11888
|
enumerable: false,
|
|
11886
11889
|
configurable: true
|
|
11887
11890
|
});
|
|
11891
|
+
Object.defineProperty(__proto, "dragThreshold", {
|
|
11892
|
+
/**
|
|
11893
|
+
* Minimal distance of user input before recognizing (unit: px). It should be dragged above the dragThreshold to move the panel.
|
|
11894
|
+
* @ko 사용자의 입력을 인식하기 위한 최소한의 거리 (단위: px). 주어진 값 이상으로 스크롤해야만 패널이 움직입니다.
|
|
11895
|
+
* @type {number}
|
|
11896
|
+
* @default 1
|
|
11897
|
+
* @see {@link https://naver.github.io/egjs-flicking/Options#dragThreshold dragThreshold ( Options )}
|
|
11898
|
+
*/
|
|
11899
|
+
get: function () {
|
|
11900
|
+
return this._dragThreshold;
|
|
11901
|
+
},
|
|
11902
|
+
set: function (val) {
|
|
11903
|
+
this._dragThreshold = val;
|
|
11904
|
+
var panInput = this._control.controller.panInput;
|
|
11905
|
+
if (panInput) {
|
|
11906
|
+
panInput.options.threshold = val;
|
|
11907
|
+
}
|
|
11908
|
+
},
|
|
11909
|
+
enumerable: false,
|
|
11910
|
+
configurable: true
|
|
11911
|
+
});
|
|
11888
11912
|
Object.defineProperty(__proto, "interruptable", {
|
|
11889
11913
|
/**
|
|
11890
11914
|
* Set animation to be interruptable by click/touch.
|
|
@@ -12959,7 +12983,7 @@ version: 4.11.3
|
|
|
12959
12983
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12960
12984
|
* ```
|
|
12961
12985
|
*/
|
|
12962
|
-
Flicking.VERSION = "4.
|
|
12986
|
+
Flicking.VERSION = "4.12.0-beta.0";
|
|
12963
12987
|
return Flicking;
|
|
12964
12988
|
}(Component);
|
|
12965
12989
|
|